@evercam/ui 0.0.52-beta.9 → 0.0.53
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 +23 -0
- package/dist/index.mjs +1214 -1064
- 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 +39 -5
- package/dist/src/index.d.ts +38 -4
- package/dist/src/types.d.ts +8 -0
- package/dist/style.css +1 -1
- package/dist/styles.css +9 -3
- package/dist/tags.json +6 -1
- package/dist/web-types.json +49 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import q from "vue";
|
|
2
|
-
import * as
|
|
2
|
+
import * as u from "d3";
|
|
3
3
|
import V from "moment-timezone";
|
|
4
|
-
var
|
|
4
|
+
var E = /* @__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))(E || {}), B = /* @__PURE__ */ ((e) => (e.warning = "warning", e.error = "error", e.info = "info", e.success = "success", e.primary = "primary", e.brand = "brand", e.default = "default", e))(B || {}), te = /* @__PURE__ */ ((e) => (e.overview = "overview", e.detailed = "detailed", e.detailedBackground = "detailedBackground", e))(te || {}), Y = /* @__PURE__ */ ((e) => (e.bars = "bars", e.lineGraph = "lineGraph", e.barChart = "barGraph", e))(Y || {}), re = /* @__PURE__ */ ((e) => (e.zoom = "zoom", e.autoPan = "autoPan", e.initial = "initial", e))(re || {});
|
|
5
5
|
const rt = q.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
@@ -15,7 +15,7 @@ const rt = q.extend({
|
|
|
15
15
|
},
|
|
16
16
|
size: {
|
|
17
17
|
type: String,
|
|
18
|
-
default:
|
|
18
|
+
default: E.base
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
data() {
|
|
@@ -29,18 +29,18 @@ const rt = q.extend({
|
|
|
29
29
|
[B.success]: "e-bg-lime-500 e-text-white"
|
|
30
30
|
},
|
|
31
31
|
sizes: {
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
32
|
+
[E.dot]: "e-w-2 e-h-2",
|
|
33
|
+
[E.xs]: "e-w-3 e-h-3",
|
|
34
|
+
[E.sm]: "e-w-4 e-h-4",
|
|
35
|
+
[E.md]: "e-w-5 e-h-5",
|
|
36
|
+
[E.lg]: "e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",
|
|
37
|
+
[E.xl]: "e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
41
|
computed: {
|
|
42
42
|
badgeClasses() {
|
|
43
|
-
const e = this.colors[this.color] || this.colors[B.default], t = this.sizes[this.size] || this.sizes[
|
|
43
|
+
const e = this.colors[this.color] || this.colors[B.default], t = this.sizes[this.size] || this.sizes[E.md];
|
|
44
44
|
return [
|
|
45
45
|
"e-flex e-items-center e-justify-center e-rounded-full",
|
|
46
46
|
e,
|
|
@@ -48,61 +48,61 @@ const rt = q.extend({
|
|
|
48
48
|
];
|
|
49
49
|
},
|
|
50
50
|
showText() {
|
|
51
|
-
return [
|
|
51
|
+
return [E.lg, E.xl].includes(this.size);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function I(e, t, r,
|
|
55
|
+
function I(e, t, r, i, a, o, n, f) {
|
|
56
56
|
var l = typeof e == "function" ? e.options : e;
|
|
57
|
-
t && (l.render = t, l.staticRenderFns = r, l._compiled = !0),
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
|
|
57
|
+
t && (l.render = t, l.staticRenderFns = r, l._compiled = !0), i && (l.functional = !0), o && (l._scopeId = "data-v-" + o);
|
|
58
|
+
var s;
|
|
59
|
+
if (n ? (s = function(c) {
|
|
60
|
+
c = c || // cached call
|
|
61
61
|
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
62
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !
|
|
63
|
-
}, l._ssrRegister =
|
|
64
|
-
|
|
62
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ != "undefined" && (c = __VUE_SSR_CONTEXT__), a && a.call(this, c), c && c._registeredComponents && c._registeredComponents.add(n);
|
|
63
|
+
}, l._ssrRegister = s) : a && (s = f ? function() {
|
|
64
|
+
a.call(
|
|
65
65
|
this,
|
|
66
66
|
(l.functional ? this.parent : this).$root.$options.shadowRoot
|
|
67
67
|
);
|
|
68
|
-
} :
|
|
68
|
+
} : a), s)
|
|
69
69
|
if (l.functional) {
|
|
70
|
-
l._injectStyles =
|
|
71
|
-
var
|
|
72
|
-
l.render = function(
|
|
73
|
-
return
|
|
70
|
+
l._injectStyles = s;
|
|
71
|
+
var d = l.render;
|
|
72
|
+
l.render = function(g, x) {
|
|
73
|
+
return s.call(x), d(g, x);
|
|
74
74
|
};
|
|
75
75
|
} else {
|
|
76
76
|
var v = l.beforeCreate;
|
|
77
|
-
l.beforeCreate = v ? [].concat(v,
|
|
77
|
+
l.beforeCreate = v ? [].concat(v, s) : [s];
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
exports: e,
|
|
81
81
|
options: l
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var it = 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
|
+
}, nt = [], st = /* @__PURE__ */ I(
|
|
88
88
|
rt,
|
|
89
|
-
nt,
|
|
90
89
|
it,
|
|
90
|
+
nt,
|
|
91
91
|
!1,
|
|
92
92
|
null,
|
|
93
93
|
null,
|
|
94
94
|
null,
|
|
95
95
|
null
|
|
96
96
|
);
|
|
97
|
-
const
|
|
97
|
+
const Pe = st.exports, at = q.extend({
|
|
98
98
|
name: "EAvatar",
|
|
99
99
|
components: {
|
|
100
|
-
Badge:
|
|
100
|
+
Badge: Pe
|
|
101
101
|
},
|
|
102
102
|
props: {
|
|
103
103
|
size: {
|
|
104
104
|
type: String,
|
|
105
|
-
default:
|
|
105
|
+
default: E.md
|
|
106
106
|
},
|
|
107
107
|
showBadge: {
|
|
108
108
|
type: Boolean,
|
|
@@ -118,7 +118,7 @@ const Me = st.exports, at = q.extend({
|
|
|
118
118
|
},
|
|
119
119
|
badgeSize: {
|
|
120
120
|
type: String,
|
|
121
|
-
default:
|
|
121
|
+
default: E.md
|
|
122
122
|
},
|
|
123
123
|
image: {
|
|
124
124
|
type: String,
|
|
@@ -128,12 +128,12 @@ const Me = st.exports, at = q.extend({
|
|
|
128
128
|
data() {
|
|
129
129
|
return {
|
|
130
130
|
sizes: {
|
|
131
|
-
[
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
135
|
-
[
|
|
136
|
-
[
|
|
131
|
+
[E.xs]: "e-w-8 e-h-8 e-text-xs",
|
|
132
|
+
[E.sm]: "e-w-10 e-h-10 e-text-sm",
|
|
133
|
+
[E.md]: "e-w-14 e-h-14 e-text-base",
|
|
134
|
+
[E.lg]: "e-w-20 e-h-20 e-text-2xl",
|
|
135
|
+
[E.xl]: "e-w-28 e-h-28 e-text-3xl",
|
|
136
|
+
[E["2xl"]]: "e-w-36 e-h-36 e-text-5xl"
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
},
|
|
@@ -141,7 +141,7 @@ const Me = st.exports, at = q.extend({
|
|
|
141
141
|
avatarClasses() {
|
|
142
142
|
return [
|
|
143
143
|
"e-flex e-items-center e-justify-center e-rounded-full e-bg-purple-500 e-text-white e-font-medium",
|
|
144
|
-
this.sizes[this.size] || this.sizes[
|
|
144
|
+
this.sizes[this.size] || this.sizes[E.xs]
|
|
145
145
|
];
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -167,7 +167,7 @@ const ct = ut.exports;
|
|
|
167
167
|
function dt(e) {
|
|
168
168
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var Fe = {}, ze = {}, me = {};
|
|
171
171
|
(function(e) {
|
|
172
172
|
Object.defineProperty(e, "__esModule", {
|
|
173
173
|
value: !0
|
|
@@ -181,20 +181,20 @@ var Pe = {}, ze = {}, me = {};
|
|
|
181
181
|
if (r = `${r}`, r === "0")
|
|
182
182
|
return "0";
|
|
183
183
|
if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))
|
|
184
|
-
return r.replace(/^[+-]?/, (
|
|
185
|
-
let
|
|
184
|
+
return r.replace(/^[+-]?/, (a) => a === "-" ? "" : "-");
|
|
185
|
+
let i = [
|
|
186
186
|
"var",
|
|
187
187
|
"calc",
|
|
188
188
|
"min",
|
|
189
189
|
"max",
|
|
190
190
|
"clamp"
|
|
191
191
|
];
|
|
192
|
-
for (const
|
|
193
|
-
if (r.includes(`${
|
|
192
|
+
for (const a of i)
|
|
193
|
+
if (r.includes(`${a}(`))
|
|
194
194
|
return `calc(${r} * -1)`;
|
|
195
195
|
}
|
|
196
196
|
})(me);
|
|
197
|
-
var
|
|
197
|
+
var Le = {};
|
|
198
198
|
(function(e) {
|
|
199
199
|
Object.defineProperty(e, "__esModule", {
|
|
200
200
|
value: !0
|
|
@@ -381,8 +381,8 @@ var He = {};
|
|
|
381
381
|
"willChange",
|
|
382
382
|
"content"
|
|
383
383
|
];
|
|
384
|
-
})(
|
|
385
|
-
var
|
|
384
|
+
})(Le);
|
|
385
|
+
var Ge = {};
|
|
386
386
|
(function(e) {
|
|
387
387
|
Object.defineProperty(e, "__esModule", {
|
|
388
388
|
value: !0
|
|
@@ -392,99 +392,99 @@ var Le = {};
|
|
|
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 pe = {},
|
|
402
|
-
return { isColorSupported: !1, reset:
|
|
400
|
+
})(Ge);
|
|
401
|
+
var pe = {}, ne = {}, ge = { exports: {} }, F = String, He = function() {
|
|
402
|
+
return { isColorSupported: !1, reset: F, bold: F, dim: F, italic: F, underline: F, inverse: F, hidden: F, strikethrough: F, black: F, red: F, green: F, yellow: F, blue: F, magenta: F, cyan: F, white: F, gray: F, bgBlack: F, bgRed: F, bgGreen: F, bgYellow: F, bgBlue: F, bgMagenta: F, bgCyan: F, bgWhite: F };
|
|
403
403
|
};
|
|
404
|
-
ge.exports =
|
|
405
|
-
ge.exports.createColors =
|
|
404
|
+
ge.exports = He();
|
|
405
|
+
ge.exports.createColors = He;
|
|
406
406
|
var Be = ge.exports;
|
|
407
407
|
(function(e) {
|
|
408
408
|
Object.defineProperty(e, "__esModule", {
|
|
409
409
|
value: !0
|
|
410
410
|
});
|
|
411
|
-
function t(l,
|
|
412
|
-
for (var
|
|
413
|
-
Object.defineProperty(l,
|
|
411
|
+
function t(l, s) {
|
|
412
|
+
for (var d in s)
|
|
413
|
+
Object.defineProperty(l, d, {
|
|
414
414
|
enumerable: !0,
|
|
415
|
-
get:
|
|
415
|
+
get: s[d]
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
t(e, {
|
|
419
419
|
dim: function() {
|
|
420
|
-
return
|
|
420
|
+
return n;
|
|
421
421
|
},
|
|
422
422
|
default: function() {
|
|
423
|
-
return
|
|
423
|
+
return f;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const r = /* @__PURE__ */
|
|
427
|
-
function
|
|
426
|
+
const r = /* @__PURE__ */ i(Be);
|
|
427
|
+
function i(l) {
|
|
428
428
|
return l && l.__esModule ? l : {
|
|
429
429
|
default: l
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
|
-
let
|
|
433
|
-
function o(l,
|
|
434
|
-
typeof process != "undefined" && process.env.JEST_WORKER_ID ||
|
|
432
|
+
let a = /* @__PURE__ */ new Set();
|
|
433
|
+
function o(l, s, d) {
|
|
434
|
+
typeof process != "undefined" && process.env.JEST_WORKER_ID || d && a.has(d) || (d && a.add(d), 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
|
-
const
|
|
440
|
-
info(l,
|
|
439
|
+
const f = {
|
|
440
|
+
info(l, s) {
|
|
441
441
|
o(r.default.bold(r.default.cyan("info")), ...Array.isArray(l) ? [
|
|
442
442
|
l
|
|
443
443
|
] : [
|
|
444
|
-
|
|
444
|
+
s,
|
|
445
445
|
l
|
|
446
446
|
]);
|
|
447
447
|
},
|
|
448
|
-
warn(l,
|
|
448
|
+
warn(l, s) {
|
|
449
449
|
o(r.default.bold(r.default.yellow("warn")), ...Array.isArray(l) ? [
|
|
450
450
|
l
|
|
451
451
|
] : [
|
|
452
|
-
|
|
452
|
+
s,
|
|
453
453
|
l
|
|
454
454
|
]);
|
|
455
455
|
},
|
|
456
|
-
risk(l,
|
|
456
|
+
risk(l, s) {
|
|
457
457
|
o(r.default.bold(r.default.magenta("risk")), ...Array.isArray(l) ? [
|
|
458
458
|
l
|
|
459
459
|
] : [
|
|
460
|
-
|
|
460
|
+
s,
|
|
461
461
|
l
|
|
462
462
|
]);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
})(
|
|
465
|
+
})(ne);
|
|
466
466
|
(function(e) {
|
|
467
467
|
Object.defineProperty(e, "__esModule", {
|
|
468
468
|
value: !0
|
|
469
469
|
}), Object.defineProperty(e, "default", {
|
|
470
470
|
enumerable: !0,
|
|
471
471
|
get: function() {
|
|
472
|
-
return
|
|
472
|
+
return a;
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
const t = /* @__PURE__ */ r(
|
|
475
|
+
const t = /* @__PURE__ */ r(ne);
|
|
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: f }) {
|
|
482
|
+
t.default.warn(`${n}-color-renamed`, [
|
|
483
|
+
`As of Tailwind CSS ${o}, \`${n}\` has been renamed to \`${f}\`.`,
|
|
484
484
|
"Update your configuration file to silence this warning."
|
|
485
485
|
]);
|
|
486
486
|
}
|
|
487
|
-
const
|
|
487
|
+
const a = {
|
|
488
488
|
inherit: "inherit",
|
|
489
489
|
current: "currentColor",
|
|
490
490
|
transparent: "transparent",
|
|
@@ -777,35 +777,35 @@ var Be = ge.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
|
|
829
|
-
var
|
|
830
|
-
!(r == null || (
|
|
826
|
+
function t(r, ...i) {
|
|
827
|
+
for (let n of i) {
|
|
828
|
+
for (let f in n) {
|
|
829
|
+
var a;
|
|
830
|
+
!(r == null || (a = r.hasOwnProperty) === null || a === void 0) && a.call(r, f) || (r[f] = n[f]);
|
|
831
831
|
}
|
|
832
|
-
for (let
|
|
832
|
+
for (let f of Object.getOwnPropertySymbols(n)) {
|
|
833
833
|
var o;
|
|
834
|
-
!(r == null || (o = r.hasOwnProperty) === null || o === void 0) && o.call(r,
|
|
834
|
+
!(r == null || (o = r.hasOwnProperty) === null || o === void 0) && o.call(r, f) || (r[f] = n[f]);
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
return r;
|
|
@@ -850,8 +850,8 @@ var Re = {};
|
|
|
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
|
}
|
|
@@ -861,26 +861,26 @@ var We = {}, se = {};
|
|
|
861
861
|
Object.defineProperty(e, "__esModule", {
|
|
862
862
|
value: !0
|
|
863
863
|
});
|
|
864
|
-
function t(v,
|
|
865
|
-
for (var
|
|
866
|
-
Object.defineProperty(v,
|
|
864
|
+
function t(v, c) {
|
|
865
|
+
for (var g in c)
|
|
866
|
+
Object.defineProperty(v, g, {
|
|
867
867
|
enumerable: !0,
|
|
868
|
-
get:
|
|
868
|
+
get: c[g]
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
t(e, {
|
|
872
872
|
flagEnabled: function() {
|
|
873
|
-
return
|
|
873
|
+
return f;
|
|
874
874
|
},
|
|
875
875
|
issueFlagNotices: function() {
|
|
876
|
-
return
|
|
876
|
+
return s;
|
|
877
877
|
},
|
|
878
878
|
default: function() {
|
|
879
|
-
return
|
|
879
|
+
return d;
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
|
-
const r = /* @__PURE__ */
|
|
883
|
-
function
|
|
882
|
+
const r = /* @__PURE__ */ a(Be), i = /* @__PURE__ */ a(ne);
|
|
883
|
+
function a(v) {
|
|
884
884
|
return v && v.__esModule ? v : {
|
|
885
885
|
default: v
|
|
886
886
|
};
|
|
@@ -894,7 +894,7 @@ var We = {}, se = {};
|
|
|
894
894
|
get relativeContentPathsByDefault() {
|
|
895
895
|
return !1;
|
|
896
896
|
}
|
|
897
|
-
},
|
|
897
|
+
}, n = {
|
|
898
898
|
future: [
|
|
899
899
|
"hoverOnlyWhenSupported",
|
|
900
900
|
"respectDefaultRingColorOpacity",
|
|
@@ -906,33 +906,33 @@ var We = {}, se = {};
|
|
|
906
906
|
"generalizedModifiers"
|
|
907
907
|
]
|
|
908
908
|
};
|
|
909
|
-
function
|
|
910
|
-
if (
|
|
911
|
-
var
|
|
912
|
-
return v.future === "all" || ((k = (
|
|
909
|
+
function f(v, c) {
|
|
910
|
+
if (n.future.includes(c)) {
|
|
911
|
+
var g, x, k;
|
|
912
|
+
return v.future === "all" || ((k = (x = v == null || (g = v.future) === null || g === void 0 ? void 0 : g[c]) !== null && x !== void 0 ? x : o[c]) !== null && k !== void 0 ? k : !1);
|
|
913
913
|
}
|
|
914
|
-
if (
|
|
915
|
-
var
|
|
916
|
-
return v.experimental === "all" || ((
|
|
914
|
+
if (n.experimental.includes(c)) {
|
|
915
|
+
var M, z, L;
|
|
916
|
+
return v.experimental === "all" || ((L = (z = v == null || (M = v.experimental) === null || M === void 0 ? void 0 : M[c]) !== null && z !== void 0 ? z : o[c]) !== 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
|
|
923
|
-
var
|
|
924
|
-
return Object.keys((
|
|
922
|
+
return n.experimental;
|
|
923
|
+
var c;
|
|
924
|
+
return Object.keys((c = v == null ? void 0 : v.experimental) !== null && c !== void 0 ? c : {}).filter((g) => n.experimental.includes(g) && v.experimental[g]);
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function s(v) {
|
|
927
927
|
if (process.env.JEST_WORKER_ID === void 0 && l(v).length > 0) {
|
|
928
|
-
let
|
|
929
|
-
|
|
930
|
-
`You have enabled experimental features: ${
|
|
928
|
+
let c = l(v).map((g) => r.default.yellow(g)).join(", ");
|
|
929
|
+
i.default.warn("experimental-flags-enabled", [
|
|
930
|
+
`You have enabled experimental features: ${c}`,
|
|
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
|
|
935
|
+
const d = n;
|
|
936
936
|
})(se);
|
|
937
937
|
(function(e) {
|
|
938
938
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -943,63 +943,63 @@ var We = {}, se = {};
|
|
|
943
943
|
return o;
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
|
-
const t = se, r = /* @__PURE__ */
|
|
947
|
-
function n
|
|
946
|
+
const t = se, r = /* @__PURE__ */ a(ne);
|
|
947
|
+
function i(n) {
|
|
948
948
|
if (typeof WeakMap != "function")
|
|
949
949
|
return null;
|
|
950
|
-
var
|
|
951
|
-
return (
|
|
952
|
-
return
|
|
953
|
-
})(
|
|
950
|
+
var f = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap();
|
|
951
|
+
return (i = function(s) {
|
|
952
|
+
return s ? l : f;
|
|
953
|
+
})(n);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
if (!
|
|
957
|
-
return
|
|
958
|
-
if (
|
|
955
|
+
function a(n, f) {
|
|
956
|
+
if (!f && 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(
|
|
965
|
-
var
|
|
966
|
-
for (var v in
|
|
967
|
-
if (v !== "default" && Object.prototype.hasOwnProperty.call(
|
|
968
|
-
var
|
|
969
|
-
|
|
962
|
+
var l = i(f);
|
|
963
|
+
if (l && l.has(n))
|
|
964
|
+
return l.get(n);
|
|
965
|
+
var s = {}, d = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
966
|
+
for (var v in n)
|
|
967
|
+
if (v !== "default" && Object.prototype.hasOwnProperty.call(n, v)) {
|
|
968
|
+
var c = d ? Object.getOwnPropertyDescriptor(n, v) : null;
|
|
969
|
+
c && (c.get || c.set) ? Object.defineProperty(s, v, c) : s[v] = n[v];
|
|
970
970
|
}
|
|
971
|
-
return
|
|
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
|
-
].includes(
|
|
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
|
|
992
|
-
if (typeof
|
|
990
|
+
if (typeof n.content.extract == "object") {
|
|
991
|
+
for (let s of Object.values(n.content.extract))
|
|
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
|
|
998
|
-
if (typeof
|
|
996
|
+
if (typeof n.content.transform == "object") {
|
|
997
|
+
for (let s of Object.values(n.content.transform))
|
|
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,78 +1009,78 @@ var We = {}, se = {};
|
|
|
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
|
-
]),
|
|
1013
|
-
var
|
|
1014
|
-
let { content:
|
|
1015
|
-
return Array.isArray(
|
|
1016
|
-
})(),
|
|
1017
|
-
let { blocklist:
|
|
1018
|
-
if (Array.isArray(
|
|
1019
|
-
if (
|
|
1020
|
-
return
|
|
1012
|
+
]), n.safelist = (() => {
|
|
1013
|
+
var s;
|
|
1014
|
+
let { content: d, purge: v, safelist: c } = n;
|
|
1015
|
+
return Array.isArray(c) ? c : Array.isArray(d == null ? void 0 : d.safelist) ? d.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
|
+
})(), n.blocklist = (() => {
|
|
1017
|
+
let { blocklist: s } = n;
|
|
1018
|
+
if (Array.isArray(s)) {
|
|
1019
|
+
if (s.every((d) => typeof d == "string"))
|
|
1020
|
+
return s;
|
|
1021
1021
|
r.default.warn("blocklist-invalid", [
|
|
1022
1022
|
"The `blocklist` option must be an array of strings.",
|
|
1023
1023
|
"https://tailwindcss.com/docs/content-configuration#discarding-classes"
|
|
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:
|
|
1040
|
-
return
|
|
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:
|
|
1044
|
-
return Array.isArray(
|
|
1043
|
+
let { content: s, purge: d } = n;
|
|
1044
|
+
return Array.isArray(d) ? d : Array.isArray(d == null ? void 0 : d.content) ? d.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
|
-
let
|
|
1048
|
-
var
|
|
1049
|
-
return !((
|
|
1050
|
-
})(),
|
|
1051
|
-
var
|
|
1052
|
-
if (!((
|
|
1053
|
-
return
|
|
1054
|
-
if (!((
|
|
1055
|
-
return
|
|
1047
|
+
let s = (() => {
|
|
1048
|
+
var c, g, x, k, M, z, L, P, G, H;
|
|
1049
|
+
return !((c = n.purge) === null || c === void 0) && c.extract ? n.purge.extract : !((g = n.content) === null || g === void 0) && g.extract ? n.content.extract : !((x = n.purge) === null || x === void 0 || (k = x.extract) === null || k === void 0) && k.DEFAULT ? n.purge.extract.DEFAULT : !((M = n.content) === null || M === void 0 || (z = M.extract) === null || z === void 0) && z.DEFAULT ? n.content.extract.DEFAULT : !((L = n.purge) === null || L === void 0 || (P = L.options) === null || P === void 0) && P.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
|
+
})(), d = {}, v = (() => {
|
|
1051
|
+
var c, g, x, k;
|
|
1052
|
+
if (!((c = n.purge) === null || c === void 0 || (g = c.options) === null || g === void 0) && g.defaultExtractor)
|
|
1053
|
+
return n.purge.options.defaultExtractor;
|
|
1054
|
+
if (!((x = n.content) === null || x === void 0 || (k = x.options) === null || k === void 0) && k.defaultExtractor)
|
|
1055
|
+
return n.content.options.defaultExtractor;
|
|
1056
1056
|
})();
|
|
1057
|
-
if (v !== void 0 && (
|
|
1058
|
-
|
|
1059
|
-
else if (Array.isArray(
|
|
1060
|
-
for (let { extensions:
|
|
1061
|
-
for (let
|
|
1062
|
-
|
|
1057
|
+
if (v !== void 0 && (d.DEFAULT = v), typeof s == "function")
|
|
1058
|
+
d.DEFAULT = s;
|
|
1059
|
+
else if (Array.isArray(s))
|
|
1060
|
+
for (let { extensions: c, extractor: g } of s != null ? s : [])
|
|
1061
|
+
for (let x of c)
|
|
1062
|
+
d[x] = g;
|
|
1063
1063
|
else
|
|
1064
|
-
typeof
|
|
1065
|
-
return
|
|
1064
|
+
typeof s == "object" && s !== null && Object.assign(d, s);
|
|
1065
|
+
return d;
|
|
1066
1066
|
})(),
|
|
1067
1067
|
transform: (() => {
|
|
1068
|
-
let
|
|
1069
|
-
var v,
|
|
1070
|
-
return !((v =
|
|
1071
|
-
})(),
|
|
1072
|
-
return typeof
|
|
1068
|
+
let s = (() => {
|
|
1069
|
+
var v, c, g, x, k, M;
|
|
1070
|
+
return !((v = n.purge) === null || v === void 0) && v.transform ? n.purge.transform : !((c = n.content) === null || c === void 0) && c.transform ? n.content.transform : !((g = n.purge) === null || g === void 0 || (x = g.transform) === null || x === void 0) && x.DEFAULT ? n.purge.transform.DEFAULT : !((k = n.content) === null || k === void 0 || (M = k.transform) === null || M === void 0) && M.DEFAULT ? n.content.transform.DEFAULT : {};
|
|
1071
|
+
})(), d = {};
|
|
1072
|
+
return typeof s == "function" && (d.DEFAULT = s), typeof s == "object" && s !== null && Object.assign(d, s), d;
|
|
1073
1073
|
})()
|
|
1074
1074
|
};
|
|
1075
|
-
for (let
|
|
1076
|
-
if (typeof
|
|
1075
|
+
for (let s of n.content.files)
|
|
1076
|
+
if (typeof s == "string" && /{([^,]*?)}/g.test(s)) {
|
|
1077
1077
|
r.default.warn("invalid-glob-braces", [
|
|
1078
|
-
`The glob pattern ${(0, r.dim)(
|
|
1079
|
-
`Update it to ${(0, r.dim)(
|
|
1078
|
+
`The glob pattern ${(0, r.dim)(s)} in your Tailwind CSS configuration is invalid.`,
|
|
1079
|
+
`Update it to ${(0, r.dim)(s.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
|
|
1080
1080
|
]);
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
|
-
return
|
|
1083
|
+
return n;
|
|
1084
1084
|
}
|
|
1085
1085
|
})(We);
|
|
1086
1086
|
var Ne = {};
|
|
@@ -1096,8 +1096,8 @@ var Ne = {};
|
|
|
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
|
})(Ne);
|
|
1103
1103
|
var Ue = {};
|
|
@@ -1111,9 +1111,9 @@ var Ue = {};
|
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
function t(r) {
|
|
1114
|
-
return Array.isArray(r) ? r.map((
|
|
1115
|
-
|
|
1116
|
-
t(
|
|
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
|
+
t(a)
|
|
1117
1117
|
])) : r;
|
|
1118
1118
|
}
|
|
1119
1119
|
})(Ue);
|
|
@@ -1888,33 +1888,33 @@ var ve = {}, ye = {}, Xe = {};
|
|
|
1888
1888
|
Object.defineProperty(e, "__esModule", {
|
|
1889
1889
|
value: !0
|
|
1890
1890
|
});
|
|
1891
|
-
function t(
|
|
1892
|
-
for (var
|
|
1893
|
-
Object.defineProperty(
|
|
1891
|
+
function t(x, k) {
|
|
1892
|
+
for (var M in k)
|
|
1893
|
+
Object.defineProperty(x, M, {
|
|
1894
1894
|
enumerable: !0,
|
|
1895
|
-
get: k[
|
|
1895
|
+
get: k[M]
|
|
1896
1896
|
});
|
|
1897
1897
|
}
|
|
1898
1898
|
t(e, {
|
|
1899
1899
|
parseColor: function() {
|
|
1900
|
-
return
|
|
1900
|
+
return c;
|
|
1901
1901
|
},
|
|
1902
1902
|
formatColor: function() {
|
|
1903
|
-
return
|
|
1903
|
+
return g;
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
|
-
const r = /* @__PURE__ */
|
|
1907
|
-
function
|
|
1908
|
-
return
|
|
1909
|
-
default:
|
|
1906
|
+
const r = /* @__PURE__ */ i(Xe);
|
|
1907
|
+
function i(x) {
|
|
1908
|
+
return x && x.__esModule ? x : {
|
|
1909
|
+
default: x
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
|
-
let
|
|
1913
|
-
function
|
|
1914
|
-
var
|
|
1915
|
-
if (typeof
|
|
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+)%?/, f = /(?:\s*,\s*|\s+)/, l = /\s*[,/]\s*/, s = /var\(--(?:[^ )]*?)\)/, d = new RegExp(`^(rgba?)\\(\\s*(${n.source}|${s.source})(?:${f.source}(${n.source}|${s.source}))?(?:${f.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})(?:${f.source}(${n.source}|${s.source}))?(?:${f.source}(${n.source}|${s.source}))?(?:${l.source}(${n.source}|${s.source}))?\\s*\\)$`);
|
|
1913
|
+
function c(x, { loose: k = !1 } = {}) {
|
|
1914
|
+
var M, z;
|
|
1915
|
+
if (typeof x != "string")
|
|
1916
1916
|
return null;
|
|
1917
|
-
if (
|
|
1917
|
+
if (x = x.trim(), x === "transparent")
|
|
1918
1918
|
return {
|
|
1919
1919
|
mode: "rgb",
|
|
1920
1920
|
color: [
|
|
@@ -1924,117 +1924,117 @@ var ve = {}, ye = {}, Xe = {};
|
|
|
1924
1924
|
],
|
|
1925
1925
|
alpha: "0"
|
|
1926
1926
|
};
|
|
1927
|
-
if (
|
|
1927
|
+
if (x in r.default)
|
|
1928
1928
|
return {
|
|
1929
1929
|
mode: "rgb",
|
|
1930
|
-
color: r.default[
|
|
1930
|
+
color: r.default[x].map((R) => R.toString())
|
|
1931
1931
|
};
|
|
1932
|
-
let
|
|
1932
|
+
let L = x.replace(o, (R, U, W, b, D) => [
|
|
1933
1933
|
"#",
|
|
1934
1934
|
U,
|
|
1935
1935
|
U,
|
|
1936
1936
|
W,
|
|
1937
1937
|
W,
|
|
1938
|
-
|
|
1939
|
-
|
|
1938
|
+
b,
|
|
1939
|
+
b,
|
|
1940
1940
|
D ? D + D : ""
|
|
1941
|
-
].join("")).match(
|
|
1942
|
-
if (
|
|
1941
|
+
].join("")).match(a);
|
|
1942
|
+
if (L !== null)
|
|
1943
1943
|
return {
|
|
1944
1944
|
mode: "rgb",
|
|
1945
1945
|
color: [
|
|
1946
|
-
parseInt(
|
|
1947
|
-
parseInt(
|
|
1948
|
-
parseInt(
|
|
1946
|
+
parseInt(L[1], 16),
|
|
1947
|
+
parseInt(L[2], 16),
|
|
1948
|
+
parseInt(L[3], 16)
|
|
1949
1949
|
].map((R) => R.toString()),
|
|
1950
|
-
alpha:
|
|
1950
|
+
alpha: L[4] ? (parseInt(L[4], 16) / 255).toString() : void 0
|
|
1951
1951
|
};
|
|
1952
|
-
var
|
|
1953
|
-
let
|
|
1954
|
-
if (
|
|
1952
|
+
var P;
|
|
1953
|
+
let G = (P = x.match(d)) !== null && P !== void 0 ? P : x.match(v);
|
|
1954
|
+
if (G === null)
|
|
1955
1955
|
return null;
|
|
1956
|
-
let
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1956
|
+
let H = [
|
|
1957
|
+
G[2],
|
|
1958
|
+
G[3],
|
|
1959
|
+
G[4]
|
|
1960
1960
|
].filter(Boolean).map((R) => R.toString());
|
|
1961
|
-
return
|
|
1962
|
-
mode:
|
|
1961
|
+
return H.length === 2 && H[0].startsWith("var(") ? {
|
|
1962
|
+
mode: G[1],
|
|
1963
1963
|
color: [
|
|
1964
|
-
|
|
1964
|
+
H[0]
|
|
1965
1965
|
],
|
|
1966
|
-
alpha:
|
|
1967
|
-
} : !k &&
|
|
1968
|
-
mode:
|
|
1969
|
-
color:
|
|
1970
|
-
alpha: (
|
|
1966
|
+
alpha: H[1]
|
|
1967
|
+
} : !k && H.length !== 3 || H.length < 3 && !H.some((R) => /^var\(.*?\)$/.test(R)) ? null : {
|
|
1968
|
+
mode: G[1],
|
|
1969
|
+
color: H,
|
|
1970
|
+
alpha: (M = G[5]) === null || M === void 0 || (z = M.toString) === null || z === void 0 ? void 0 : z.call(M)
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1974
|
-
let z =
|
|
1975
|
-
return
|
|
1973
|
+
function g({ mode: x, color: k, alpha: M }) {
|
|
1974
|
+
let z = M !== void 0;
|
|
1975
|
+
return x === "rgba" || x === "hsla" ? `${x}(${k.join(", ")}${z ? `, ${M}` : ""})` : `${x}(${k.join(" ")}${z ? ` / ${M}` : ""})`;
|
|
1976
1976
|
}
|
|
1977
1977
|
})(ye);
|
|
1978
1978
|
(function(e) {
|
|
1979
1979
|
Object.defineProperty(e, "__esModule", {
|
|
1980
1980
|
value: !0
|
|
1981
1981
|
});
|
|
1982
|
-
function t(o,
|
|
1983
|
-
for (var
|
|
1984
|
-
Object.defineProperty(o,
|
|
1982
|
+
function t(o, n) {
|
|
1983
|
+
for (var f in n)
|
|
1984
|
+
Object.defineProperty(o, f, {
|
|
1985
1985
|
enumerable: !0,
|
|
1986
|
-
get:
|
|
1986
|
+
get: n[f]
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
1989
|
t(e, {
|
|
1990
1990
|
withAlphaValue: function() {
|
|
1991
|
-
return
|
|
1991
|
+
return i;
|
|
1992
1992
|
},
|
|
1993
1993
|
default: function() {
|
|
1994
|
-
return
|
|
1994
|
+
return a;
|
|
1995
1995
|
}
|
|
1996
1996
|
});
|
|
1997
1997
|
const r = ye;
|
|
1998
|
-
function
|
|
1998
|
+
function i(o, n, f) {
|
|
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
|
-
return l === null ?
|
|
2006
|
+
return l === null ? f : (0, r.formatColor)({
|
|
2007
2007
|
...l,
|
|
2008
|
-
alpha:
|
|
2008
|
+
alpha: n
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2012
|
-
let l = [].concat(
|
|
2011
|
+
function a({ color: o, property: n, variable: f }) {
|
|
2012
|
+
let l = [].concat(n);
|
|
2013
2013
|
if (typeof o == "function")
|
|
2014
2014
|
return {
|
|
2015
|
-
[
|
|
2016
|
-
...Object.fromEntries(l.map((
|
|
2017
|
-
|
|
2015
|
+
[f]: "1",
|
|
2016
|
+
...Object.fromEntries(l.map((d) => [
|
|
2017
|
+
d,
|
|
2018
2018
|
o({
|
|
2019
|
-
opacityVariable:
|
|
2020
|
-
opacityValue: `var(${
|
|
2019
|
+
opacityVariable: f,
|
|
2020
|
+
opacityValue: `var(${f})`
|
|
2021
2021
|
})
|
|
2022
2022
|
]))
|
|
2023
2023
|
};
|
|
2024
|
-
const
|
|
2025
|
-
return
|
|
2026
|
-
|
|
2024
|
+
const s = (0, r.parseColor)(o);
|
|
2025
|
+
return s === null ? Object.fromEntries(l.map((d) => [
|
|
2026
|
+
d,
|
|
2027
2027
|
o
|
|
2028
|
-
])) :
|
|
2029
|
-
|
|
2028
|
+
])) : s.alpha !== void 0 ? Object.fromEntries(l.map((d) => [
|
|
2029
|
+
d,
|
|
2030
2030
|
o
|
|
2031
2031
|
])) : {
|
|
2032
|
-
[
|
|
2033
|
-
...Object.fromEntries(l.map((
|
|
2034
|
-
|
|
2032
|
+
[f]: "1",
|
|
2033
|
+
...Object.fromEntries(l.map((d) => [
|
|
2034
|
+
d,
|
|
2035
2035
|
(0, r.formatColor)({
|
|
2036
|
-
...
|
|
2037
|
-
alpha: `var(${
|
|
2036
|
+
...s,
|
|
2037
|
+
alpha: `var(${f})`
|
|
2038
2038
|
})
|
|
2039
2039
|
]))
|
|
2040
2040
|
};
|
|
@@ -2050,149 +2050,149 @@ var be = {}, qe = {}, ae = {};
|
|
|
2050
2050
|
return t;
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
|
-
function t(r,
|
|
2054
|
-
let
|
|
2053
|
+
function t(r, i) {
|
|
2054
|
+
let a = [], o = [], n = 0, f = !1;
|
|
2055
2055
|
for (let l = 0; l < r.length; l++) {
|
|
2056
|
-
let
|
|
2057
|
-
|
|
2056
|
+
let s = r[l];
|
|
2057
|
+
a.length === 0 && s === i[0] && !f && (i.length === 1 || r.slice(l, l + i.length) === i) && (o.push(r.slice(n, l)), n = l + i.length), f ? f = !1 : s === "\\" && (f = !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
|
})(ae);
|
|
2062
2062
|
(function(e) {
|
|
2063
2063
|
Object.defineProperty(e, "__esModule", {
|
|
2064
2064
|
value: !0
|
|
2065
2065
|
});
|
|
2066
|
-
function t(l,
|
|
2067
|
-
for (var
|
|
2068
|
-
Object.defineProperty(l,
|
|
2066
|
+
function t(l, s) {
|
|
2067
|
+
for (var d in s)
|
|
2068
|
+
Object.defineProperty(l, d, {
|
|
2069
2069
|
enumerable: !0,
|
|
2070
|
-
get:
|
|
2070
|
+
get: s[d]
|
|
2071
2071
|
});
|
|
2072
2072
|
}
|
|
2073
2073
|
t(e, {
|
|
2074
2074
|
parseBoxShadowValue: function() {
|
|
2075
|
-
return
|
|
2075
|
+
return n;
|
|
2076
2076
|
},
|
|
2077
2077
|
formatBoxShadowValue: function() {
|
|
2078
|
-
return
|
|
2078
|
+
return f;
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
2081
|
const r = ae;
|
|
2082
|
-
let
|
|
2082
|
+
let i = /* @__PURE__ */ new Set([
|
|
2083
2083
|
"inset",
|
|
2084
2084
|
"inherit",
|
|
2085
2085
|
"initial",
|
|
2086
2086
|
"revert",
|
|
2087
2087
|
"unset"
|
|
2088
|
-
]),
|
|
2089
|
-
function
|
|
2090
|
-
return (0, r.splitAtTopLevelOnly)(l, ",").map((
|
|
2091
|
-
let v =
|
|
2088
|
+
]), a = /\ +(?![^(]*\))/g, o = /^-?(\d+|\.\d+)(.*?)$/g;
|
|
2089
|
+
function n(l) {
|
|
2090
|
+
return (0, r.splitAtTopLevelOnly)(l, ",").map((d) => {
|
|
2091
|
+
let v = d.trim(), c = {
|
|
2092
2092
|
raw: v
|
|
2093
|
-
},
|
|
2094
|
-
for (let k of
|
|
2095
|
-
o.lastIndex = 0, !
|
|
2096
|
-
return
|
|
2093
|
+
}, g = v.split(a), x = /* @__PURE__ */ new Set();
|
|
2094
|
+
for (let k of g)
|
|
2095
|
+
o.lastIndex = 0, !x.has("KEYWORD") && i.has(k) ? (c.keyword = k, x.add("KEYWORD")) : o.test(k) ? x.has("X") ? x.has("Y") ? x.has("BLUR") ? x.has("SPREAD") || (c.spread = k, x.add("SPREAD")) : (c.blur = k, x.add("BLUR")) : (c.y = k, x.add("Y")) : (c.x = k, x.add("X")) : c.color ? (c.unknown || (c.unknown = []), c.unknown.push(k)) : c.color = k;
|
|
2096
|
+
return c.valid = c.x !== void 0 && c.y !== void 0, c;
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2100
|
-
return l.map((
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
].filter(Boolean).join(" ") :
|
|
2099
|
+
function f(l) {
|
|
2100
|
+
return l.map((s) => s.valid ? [
|
|
2101
|
+
s.keyword,
|
|
2102
|
+
s.x,
|
|
2103
|
+
s.y,
|
|
2104
|
+
s.blur,
|
|
2105
|
+
s.spread,
|
|
2106
|
+
s.color
|
|
2107
|
+
].filter(Boolean).join(" ") : s.raw).join(", ");
|
|
2108
2108
|
}
|
|
2109
2109
|
})(qe);
|
|
2110
2110
|
(function(e) {
|
|
2111
2111
|
Object.defineProperty(e, "__esModule", {
|
|
2112
2112
|
value: !0
|
|
2113
2113
|
});
|
|
2114
|
-
function t(
|
|
2115
|
-
for (var
|
|
2116
|
-
Object.defineProperty(
|
|
2114
|
+
function t(m, w) {
|
|
2115
|
+
for (var A in w)
|
|
2116
|
+
Object.defineProperty(m, A, {
|
|
2117
2117
|
enumerable: !0,
|
|
2118
|
-
get: w[
|
|
2118
|
+
get: w[A]
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
2121
|
t(e, {
|
|
2122
2122
|
normalize: function() {
|
|
2123
|
-
return
|
|
2123
|
+
return s;
|
|
2124
2124
|
},
|
|
2125
2125
|
url: function() {
|
|
2126
2126
|
return v;
|
|
2127
2127
|
},
|
|
2128
2128
|
number: function() {
|
|
2129
|
-
return
|
|
2129
|
+
return c;
|
|
2130
2130
|
},
|
|
2131
2131
|
percentage: function() {
|
|
2132
|
-
return
|
|
2132
|
+
return g;
|
|
2133
2133
|
},
|
|
2134
2134
|
length: function() {
|
|
2135
|
-
return
|
|
2135
|
+
return M;
|
|
2136
2136
|
},
|
|
2137
2137
|
lineWidth: function() {
|
|
2138
|
-
return
|
|
2138
|
+
return L;
|
|
2139
2139
|
},
|
|
2140
2140
|
shadow: function() {
|
|
2141
|
-
return
|
|
2141
|
+
return P;
|
|
2142
2142
|
},
|
|
2143
2143
|
color: function() {
|
|
2144
|
-
return
|
|
2144
|
+
return G;
|
|
2145
2145
|
},
|
|
2146
2146
|
image: function() {
|
|
2147
|
-
return
|
|
2147
|
+
return H;
|
|
2148
2148
|
},
|
|
2149
2149
|
gradient: function() {
|
|
2150
2150
|
return U;
|
|
2151
2151
|
},
|
|
2152
2152
|
position: function() {
|
|
2153
|
-
return
|
|
2153
|
+
return b;
|
|
2154
2154
|
},
|
|
2155
2155
|
familyName: function() {
|
|
2156
2156
|
return D;
|
|
2157
2157
|
},
|
|
2158
2158
|
genericName: function() {
|
|
2159
|
-
return
|
|
2159
|
+
return p;
|
|
2160
2160
|
},
|
|
2161
2161
|
absoluteSize: function() {
|
|
2162
|
-
return
|
|
2162
|
+
return C;
|
|
2163
2163
|
},
|
|
2164
2164
|
relativeSize: function() {
|
|
2165
2165
|
return $;
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
|
-
const r = ye,
|
|
2168
|
+
const r = ye, i = qe, a = ae;
|
|
2169
2169
|
let o = [
|
|
2170
2170
|
"min",
|
|
2171
2171
|
"max",
|
|
2172
2172
|
"clamp",
|
|
2173
2173
|
"calc"
|
|
2174
2174
|
];
|
|
2175
|
-
function
|
|
2176
|
-
return o.some((w) => new RegExp(`^${w}\\(.*\\)`).test(
|
|
2175
|
+
function n(m) {
|
|
2176
|
+
return o.some((w) => new RegExp(`^${w}\\(.*\\)`).test(m));
|
|
2177
2177
|
}
|
|
2178
|
-
const
|
|
2179
|
-
function
|
|
2180
|
-
return
|
|
2178
|
+
const f = "--tw-placeholder", l = new RegExp(f, "g");
|
|
2179
|
+
function s(m, w = !0) {
|
|
2180
|
+
return m.startsWith("--") ? `var(${m})` : m.includes("url(") ? m.split(/(url\(.*?\))/g).filter(Boolean).map((A) => /^url\(.*?\)$/.test(A) ? A : s(A, !1)).join("") : (m = m.replace(/([^\\])_+/g, (A, O) => O + " ".repeat(A.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), w && (m = m.trim()), m = d(m), m);
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2183
|
-
return
|
|
2184
|
-
let
|
|
2185
|
-
return w.replace(/var\((--.+?)[,)]/g, (O, Q) => (
|
|
2182
|
+
function d(m) {
|
|
2183
|
+
return m.replace(/(calc|min|max|clamp)\(.+\)/g, (w) => {
|
|
2184
|
+
let A = [];
|
|
2185
|
+
return w.replace(/var\((--.+?)[,)]/g, (O, Q) => (A.push(Q), O.replace(Q, f))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ").replace(l, () => A.shift());
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
2188
|
-
function v(
|
|
2189
|
-
return
|
|
2188
|
+
function v(m) {
|
|
2189
|
+
return m.startsWith("url(");
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2192
|
-
return !isNaN(Number(
|
|
2191
|
+
function c(m) {
|
|
2192
|
+
return !isNaN(Number(m)) || n(m);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2195
|
-
return
|
|
2194
|
+
function g(m) {
|
|
2195
|
+
return m.endsWith("%") && c(m.slice(0, -1)) || n(m);
|
|
2196
2196
|
}
|
|
2197
2197
|
let k = `(?:${[
|
|
2198
2198
|
"cm",
|
|
@@ -2227,33 +2227,33 @@ var be = {}, qe = {}, ae = {};
|
|
|
2227
2227
|
"cqmin",
|
|
2228
2228
|
"cqmax"
|
|
2229
2229
|
].join("|")})`;
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2230
|
+
function M(m) {
|
|
2231
|
+
return m === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${k}$`).test(m) || n(m);
|
|
2232
2232
|
}
|
|
2233
2233
|
let z = /* @__PURE__ */ new Set([
|
|
2234
2234
|
"thin",
|
|
2235
2235
|
"medium",
|
|
2236
2236
|
"thick"
|
|
2237
2237
|
]);
|
|
2238
|
-
function
|
|
2239
|
-
return z.has(
|
|
2238
|
+
function L(m) {
|
|
2239
|
+
return z.has(m);
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2242
|
-
let w = (0,
|
|
2243
|
-
for (let
|
|
2244
|
-
if (!
|
|
2241
|
+
function P(m) {
|
|
2242
|
+
let w = (0, i.parseBoxShadowValue)(s(m));
|
|
2243
|
+
for (let A of w)
|
|
2244
|
+
if (!A.valid)
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
return !0;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function G(m) {
|
|
2249
2249
|
let w = 0;
|
|
2250
|
-
return (0,
|
|
2250
|
+
return (0, a.splitAtTopLevelOnly)(m, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 : (0, r.parseColor)(O, {
|
|
2251
2251
|
loose: !0
|
|
2252
2252
|
}) !== null ? (w++, !0) : !1)) ? w > 0 : !1;
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function H(m) {
|
|
2255
2255
|
let w = 0;
|
|
2256
|
-
return (0,
|
|
2256
|
+
return (0, a.splitAtTopLevelOnly)(m, ",").every((O) => (O = s(O), O.startsWith("var(") ? !0 : v(O) || U(O) || [
|
|
2257
2257
|
"element(",
|
|
2258
2258
|
"image(",
|
|
2259
2259
|
"cross-fade(",
|
|
@@ -2268,10 +2268,10 @@ var be = {}, qe = {}, ae = {};
|
|
|
2268
2268
|
"repeating-linear-gradient",
|
|
2269
2269
|
"repeating-radial-gradient"
|
|
2270
2270
|
]);
|
|
2271
|
-
function U(
|
|
2272
|
-
|
|
2271
|
+
function U(m) {
|
|
2272
|
+
m = s(m);
|
|
2273
2273
|
for (let w of R)
|
|
2274
|
-
if (
|
|
2274
|
+
if (m.startsWith(`${w}(`))
|
|
2275
2275
|
return !0;
|
|
2276
2276
|
return !1;
|
|
2277
2277
|
}
|
|
@@ -2282,15 +2282,15 @@ var be = {}, qe = {}, ae = {};
|
|
|
2282
2282
|
"bottom",
|
|
2283
2283
|
"left"
|
|
2284
2284
|
]);
|
|
2285
|
-
function
|
|
2285
|
+
function b(m) {
|
|
2286
2286
|
let w = 0;
|
|
2287
|
-
return (0,
|
|
2287
|
+
return (0, a.splitAtTopLevelOnly)(m, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 : W.has(O) || M(O) || g(O) ? (w++, !0) : !1)) ? w > 0 : !1;
|
|
2288
2288
|
}
|
|
2289
|
-
function D(
|
|
2289
|
+
function D(m) {
|
|
2290
2290
|
let w = 0;
|
|
2291
|
-
return (0,
|
|
2291
|
+
return (0, a.splitAtTopLevelOnly)(m, ",").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
|
-
let
|
|
2293
|
+
let S = /* @__PURE__ */ new Set([
|
|
2294
2294
|
"serif",
|
|
2295
2295
|
"sans-serif",
|
|
2296
2296
|
"monospace",
|
|
@@ -2305,10 +2305,10 @@ var be = {}, qe = {}, ae = {};
|
|
|
2305
2305
|
"emoji",
|
|
2306
2306
|
"fangsong"
|
|
2307
2307
|
]);
|
|
2308
|
-
function m
|
|
2309
|
-
return
|
|
2308
|
+
function p(m) {
|
|
2309
|
+
return S.has(m);
|
|
2310
2310
|
}
|
|
2311
|
-
let
|
|
2311
|
+
let _ = /* @__PURE__ */ new Set([
|
|
2312
2312
|
"xx-small",
|
|
2313
2313
|
"x-small",
|
|
2314
2314
|
"small",
|
|
@@ -2318,56 +2318,56 @@ var be = {}, qe = {}, ae = {};
|
|
|
2318
2318
|
"x-large",
|
|
2319
2319
|
"xxx-large"
|
|
2320
2320
|
]);
|
|
2321
|
-
function
|
|
2322
|
-
return
|
|
2321
|
+
function C(m) {
|
|
2322
|
+
return _.has(m);
|
|
2323
2323
|
}
|
|
2324
|
-
let
|
|
2324
|
+
let y = /* @__PURE__ */ new Set([
|
|
2325
2325
|
"larger",
|
|
2326
2326
|
"smaller"
|
|
2327
2327
|
]);
|
|
2328
|
-
function $(
|
|
2329
|
-
return
|
|
2328
|
+
function $(m) {
|
|
2329
|
+
return y.has(m);
|
|
2330
2330
|
}
|
|
2331
2331
|
})(be);
|
|
2332
|
-
var
|
|
2332
|
+
var Ze = {};
|
|
2333
2333
|
(function(e) {
|
|
2334
2334
|
Object.defineProperty(e, "__esModule", {
|
|
2335
2335
|
value: !0
|
|
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 = be, r = ae;
|
|
2343
|
-
function
|
|
2343
|
+
function i(a) {
|
|
2344
2344
|
let o = [
|
|
2345
2345
|
"cover",
|
|
2346
2346
|
"contain"
|
|
2347
2347
|
];
|
|
2348
|
-
return (0, r.splitAtTopLevelOnly)(
|
|
2349
|
-
let
|
|
2350
|
-
return
|
|
2348
|
+
return (0, r.splitAtTopLevelOnly)(a, ",").every((n) => {
|
|
2349
|
+
let f = (0, r.splitAtTopLevelOnly)(n, "_").filter(Boolean);
|
|
2350
|
+
return f.length === 1 && o.includes(f[0]) ? !0 : f.length !== 1 && f.length !== 2 ? !1 : f.every((l) => (0, t.length)(l) || (0, t.percentage)(l) || l === "auto");
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
2353
|
-
})(
|
|
2353
|
+
})(Ze);
|
|
2354
2354
|
(function(e) {
|
|
2355
2355
|
Object.defineProperty(e, "__esModule", {
|
|
2356
2356
|
value: !0
|
|
2357
2357
|
});
|
|
2358
|
-
function t(
|
|
2359
|
-
for (var
|
|
2360
|
-
Object.defineProperty(
|
|
2358
|
+
function t(b, D) {
|
|
2359
|
+
for (var S in D)
|
|
2360
|
+
Object.defineProperty(b, S, {
|
|
2361
2361
|
enumerable: !0,
|
|
2362
|
-
get: D[
|
|
2362
|
+
get: D[S]
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
t(e, {
|
|
2366
2366
|
updateAllClasses: function() {
|
|
2367
|
-
return
|
|
2367
|
+
return s;
|
|
2368
2368
|
},
|
|
2369
2369
|
asValue: function() {
|
|
2370
|
-
return
|
|
2370
|
+
return c;
|
|
2371
2371
|
},
|
|
2372
2372
|
parseColorFormat: function() {
|
|
2373
2373
|
return k;
|
|
@@ -2376,10 +2376,10 @@ var Ye = {};
|
|
|
2376
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 U;
|
|
@@ -2388,168 +2388,168 @@ var Ye = {};
|
|
|
2388
2388
|
return W;
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
|
-
const r = /* @__PURE__ */ l(Ve),
|
|
2392
|
-
function l(
|
|
2393
|
-
return
|
|
2394
|
-
default:
|
|
2391
|
+
const r = /* @__PURE__ */ l(Ve), i = ve, a = be, o = /* @__PURE__ */ l(me), n = Ze, f = se;
|
|
2392
|
+
function l(b) {
|
|
2393
|
+
return b && b.__esModule ? b : {
|
|
2394
|
+
default: b
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2398
|
-
|
|
2399
|
-
|
|
2397
|
+
function s(b, D) {
|
|
2398
|
+
b.walkClasses((S) => {
|
|
2399
|
+
S.value = D(S.value), S.raws && S.raws.value && (S.raws.value = (0, r.default)(S.raws.value));
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2403
|
-
if (!
|
|
2402
|
+
function d(b, D) {
|
|
2403
|
+
if (!g(b))
|
|
2404
2404
|
return;
|
|
2405
|
-
let
|
|
2406
|
-
if (D(
|
|
2407
|
-
return (0,
|
|
2405
|
+
let S = b.slice(1, -1);
|
|
2406
|
+
if (D(S))
|
|
2407
|
+
return (0, a.normalize)(S);
|
|
2408
2408
|
}
|
|
2409
|
-
function v(
|
|
2410
|
-
let
|
|
2411
|
-
if (
|
|
2412
|
-
return (0, o.default)(
|
|
2413
|
-
if (
|
|
2414
|
-
let
|
|
2415
|
-
return
|
|
2409
|
+
function v(b, D = {}, S) {
|
|
2410
|
+
let p = D[b];
|
|
2411
|
+
if (p !== void 0)
|
|
2412
|
+
return (0, o.default)(p);
|
|
2413
|
+
if (g(b)) {
|
|
2414
|
+
let _ = d(b, S);
|
|
2415
|
+
return _ === void 0 ? void 0 : (0, o.default)(_);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2419
|
-
var
|
|
2420
|
-
let
|
|
2421
|
-
return
|
|
2418
|
+
function c(b, D = {}, { validate: S = () => !0 } = {}) {
|
|
2419
|
+
var p;
|
|
2420
|
+
let _ = (p = D.values) === null || p === void 0 ? void 0 : p[b];
|
|
2421
|
+
return _ !== void 0 ? _ : D.supportsNegativeValues && b.startsWith("-") ? v(b.slice(1), D.values, S) : d(b, S);
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2423
|
+
function g(b) {
|
|
2424
|
+
return b.startsWith("[") && b.endsWith("]");
|
|
2425
2425
|
}
|
|
2426
|
-
function b
|
|
2427
|
-
let D =
|
|
2428
|
-
return D === -1 || D ===
|
|
2429
|
-
|
|
2426
|
+
function x(b) {
|
|
2427
|
+
let D = b.lastIndexOf("/");
|
|
2428
|
+
return D === -1 || D === b.length - 1 ? [
|
|
2429
|
+
b,
|
|
2430
2430
|
void 0
|
|
2431
|
-
] :
|
|
2432
|
-
|
|
2431
|
+
] : g(b) && !b.includes("]/[") ? [
|
|
2432
|
+
b,
|
|
2433
2433
|
void 0
|
|
2434
2434
|
] : [
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
b.slice(0, D),
|
|
2436
|
+
b.slice(D + 1)
|
|
2437
2437
|
];
|
|
2438
2438
|
}
|
|
2439
|
-
function k(
|
|
2440
|
-
if (typeof
|
|
2441
|
-
let D =
|
|
2442
|
-
return ({ opacityValue:
|
|
2439
|
+
function k(b) {
|
|
2440
|
+
if (typeof b == "string" && b.includes("<alpha-value>")) {
|
|
2441
|
+
let D = b;
|
|
2442
|
+
return ({ opacityValue: S = 1 }) => D.replace("<alpha-value>", S);
|
|
2443
2443
|
}
|
|
2444
|
-
return
|
|
2444
|
+
return b;
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2447
|
-
return (0,
|
|
2446
|
+
function M(b) {
|
|
2447
|
+
return (0, a.normalize)(b.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function z(
|
|
2450
|
-
var
|
|
2451
|
-
if (((
|
|
2452
|
-
var
|
|
2453
|
-
return k((
|
|
2449
|
+
function z(b, D = {}, { tailwindConfig: S = {} } = {}) {
|
|
2450
|
+
var p;
|
|
2451
|
+
if (((p = D.values) === null || p === void 0 ? void 0 : p[b]) !== void 0) {
|
|
2452
|
+
var _;
|
|
2453
|
+
return k((_ = D.values) === null || _ === void 0 ? void 0 : _[b]);
|
|
2454
2454
|
}
|
|
2455
|
-
let [
|
|
2456
|
-
if (
|
|
2457
|
-
var $,
|
|
2458
|
-
let O = (
|
|
2459
|
-
return O === void 0 ? void 0 : (O = k(O),
|
|
2455
|
+
let [C, y] = x(b);
|
|
2456
|
+
if (y !== void 0) {
|
|
2457
|
+
var $, m, w, A;
|
|
2458
|
+
let O = (A = ($ = D.values) === null || $ === void 0 ? void 0 : $[C]) !== null && A !== void 0 ? A : g(C) ? C.slice(1, -1) : void 0;
|
|
2459
|
+
return O === void 0 ? void 0 : (O = k(O), g(y) ? (0, i.withAlphaValue)(O, M(y)) : ((m = S.theme) === null || m === void 0 || (w = m.opacity) === null || w === void 0 ? void 0 : w[y]) === void 0 ? void 0 : (0, i.withAlphaValue)(O, S.theme.opacity[y]));
|
|
2460
2460
|
}
|
|
2461
|
-
return
|
|
2462
|
-
validate:
|
|
2461
|
+
return c(b, D, {
|
|
2462
|
+
validate: a.color
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2466
|
-
var
|
|
2467
|
-
return (
|
|
2465
|
+
function L(b, D = {}) {
|
|
2466
|
+
var S;
|
|
2467
|
+
return (S = D.values) === null || S === void 0 ? void 0 : S[b];
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2470
|
-
return (D,
|
|
2471
|
-
validate:
|
|
2469
|
+
function P(b) {
|
|
2470
|
+
return (D, S) => c(D, S, {
|
|
2471
|
+
validate: b
|
|
2472
2472
|
});
|
|
2473
2473
|
}
|
|
2474
|
-
let
|
|
2475
|
-
any:
|
|
2474
|
+
let G = {
|
|
2475
|
+
any: c,
|
|
2476
2476
|
color: z,
|
|
2477
|
-
url:
|
|
2478
|
-
image:
|
|
2479
|
-
length:
|
|
2480
|
-
percentage:
|
|
2481
|
-
position:
|
|
2482
|
-
lookup:
|
|
2483
|
-
"generic-name":
|
|
2484
|
-
"family-name":
|
|
2485
|
-
number:
|
|
2486
|
-
"line-width":
|
|
2487
|
-
"absolute-size":
|
|
2488
|
-
"relative-size":
|
|
2489
|
-
shadow:
|
|
2490
|
-
size:
|
|
2491
|
-
},
|
|
2492
|
-
function R(
|
|
2493
|
-
let
|
|
2494
|
-
return
|
|
2477
|
+
url: P(a.url),
|
|
2478
|
+
image: P(a.image),
|
|
2479
|
+
length: P(a.length),
|
|
2480
|
+
percentage: P(a.percentage),
|
|
2481
|
+
position: P(a.position),
|
|
2482
|
+
lookup: L,
|
|
2483
|
+
"generic-name": P(a.genericName),
|
|
2484
|
+
"family-name": P(a.familyName),
|
|
2485
|
+
number: P(a.number),
|
|
2486
|
+
"line-width": P(a.lineWidth),
|
|
2487
|
+
"absolute-size": P(a.absoluteSize),
|
|
2488
|
+
"relative-size": P(a.relativeSize),
|
|
2489
|
+
shadow: P(a.shadow),
|
|
2490
|
+
size: P(n.backgroundSize)
|
|
2491
|
+
}, H = Object.keys(G);
|
|
2492
|
+
function R(b, D) {
|
|
2493
|
+
let S = b.indexOf(D);
|
|
2494
|
+
return S === -1 ? [
|
|
2495
2495
|
void 0,
|
|
2496
|
-
|
|
2496
|
+
b
|
|
2497
2497
|
] : [
|
|
2498
|
-
|
|
2499
|
-
|
|
2498
|
+
b.slice(0, S),
|
|
2499
|
+
b.slice(S + 1)
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
2502
|
-
function U(
|
|
2503
|
-
if (
|
|
2504
|
-
for (let { type:
|
|
2505
|
-
let
|
|
2506
|
-
tailwindConfig:
|
|
2502
|
+
function U(b, D, S, p) {
|
|
2503
|
+
if (S.values && D in S.values)
|
|
2504
|
+
for (let { type: C } of b != null ? b : []) {
|
|
2505
|
+
let y = G[C](D, S, {
|
|
2506
|
+
tailwindConfig: p
|
|
2507
2507
|
});
|
|
2508
|
-
if (
|
|
2508
|
+
if (y !== void 0)
|
|
2509
2509
|
return [
|
|
2510
|
-
|
|
2511
|
-
|
|
2510
|
+
y,
|
|
2511
|
+
C,
|
|
2512
2512
|
null
|
|
2513
2513
|
];
|
|
2514
2514
|
}
|
|
2515
|
-
if (
|
|
2516
|
-
let
|
|
2517
|
-
if (!/^[\w-_]+$/g.test(
|
|
2518
|
-
$ =
|
|
2519
|
-
else if (
|
|
2515
|
+
if (g(D)) {
|
|
2516
|
+
let C = D.slice(1, -1), [y, $] = R(C, ":");
|
|
2517
|
+
if (!/^[\w-_]+$/g.test(y))
|
|
2518
|
+
$ = C;
|
|
2519
|
+
else if (y !== void 0 && !H.includes(y))
|
|
2520
2520
|
return [];
|
|
2521
|
-
if ($.length > 0 &&
|
|
2521
|
+
if ($.length > 0 && H.includes(y))
|
|
2522
2522
|
return [
|
|
2523
|
-
|
|
2524
|
-
|
|
2523
|
+
c(`[${$}]`, S),
|
|
2524
|
+
y,
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let
|
|
2529
|
-
for (let
|
|
2530
|
-
return
|
|
2528
|
+
let _ = W(b, D, S, p);
|
|
2529
|
+
for (let C of _)
|
|
2530
|
+
return C;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
|
-
function* W(
|
|
2534
|
-
let
|
|
2535
|
-
if (
|
|
2536
|
-
var
|
|
2537
|
-
let
|
|
2538
|
-
|
|
2533
|
+
function* W(b, D, S, p) {
|
|
2534
|
+
let _ = (0, f.flagEnabled)(p, "generalizedModifiers"), [C, y] = x(D);
|
|
2535
|
+
if (_ && S.modifiers != null && (S.modifiers === "any" || typeof S.modifiers == "object" && (y && g(y) || y in S.modifiers)) || (C = D, y = void 0), y !== void 0 && C === "" && (C = "DEFAULT"), y !== void 0 && typeof S.modifiers == "object") {
|
|
2536
|
+
var m, w;
|
|
2537
|
+
let A = (w = (m = S.modifiers) === null || m === void 0 ? void 0 : m[y]) !== null && w !== void 0 ? w : null;
|
|
2538
|
+
A !== null ? y = A : g(y) && (y = M(y));
|
|
2539
2539
|
}
|
|
2540
|
-
for (let { type:
|
|
2541
|
-
let O =
|
|
2542
|
-
tailwindConfig:
|
|
2540
|
+
for (let { type: A } of b != null ? b : []) {
|
|
2541
|
+
let O = G[A](C, S, {
|
|
2542
|
+
tailwindConfig: p
|
|
2543
2543
|
});
|
|
2544
2544
|
O !== void 0 && (yield [
|
|
2545
2545
|
O,
|
|
2546
|
-
|
|
2547
|
-
|
|
2546
|
+
A,
|
|
2547
|
+
y != null ? y : null
|
|
2548
2548
|
]);
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
2551
|
})(Ie);
|
|
2552
|
-
var
|
|
2552
|
+
var Ye = {};
|
|
2553
2553
|
(function(e) {
|
|
2554
2554
|
Object.defineProperty(e, "__esModule", {
|
|
2555
2555
|
value: !0
|
|
@@ -2562,170 +2562,170 @@ var Ze = {};
|
|
|
2562
2562
|
function t(r) {
|
|
2563
2563
|
return typeof r == "function" ? r({}) : r;
|
|
2564
2564
|
}
|
|
2565
|
-
})(
|
|
2565
|
+
})(Ye);
|
|
2566
2566
|
(function(e) {
|
|
2567
2567
|
Object.defineProperty(e, "__esModule", {
|
|
2568
2568
|
value: !0
|
|
2569
2569
|
}), Object.defineProperty(e, "default", {
|
|
2570
2570
|
enumerable: !0,
|
|
2571
2571
|
get: function() {
|
|
2572
|
-
return
|
|
2572
|
+
return S;
|
|
2573
2573
|
}
|
|
2574
2574
|
});
|
|
2575
|
-
const t = /* @__PURE__ */
|
|
2576
|
-
function
|
|
2577
|
-
return
|
|
2578
|
-
default:
|
|
2575
|
+
const t = /* @__PURE__ */ g(me), r = /* @__PURE__ */ g(Le), i = /* @__PURE__ */ g(Ge), a = /* @__PURE__ */ g(pe), o = je, n = Re, f = We, l = /* @__PURE__ */ g(Ne), s = Ue, d = Ie, v = ve, c = /* @__PURE__ */ g(Ye);
|
|
2576
|
+
function g(p) {
|
|
2577
|
+
return p && p.__esModule ? p : {
|
|
2578
|
+
default: p
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return typeof
|
|
2581
|
+
function x(p) {
|
|
2582
|
+
return typeof p == "function";
|
|
2583
2583
|
}
|
|
2584
|
-
function k(
|
|
2585
|
-
let
|
|
2586
|
-
for (let
|
|
2587
|
-
for (let $ in
|
|
2588
|
-
let
|
|
2589
|
-
|
|
2584
|
+
function k(p, ..._) {
|
|
2585
|
+
let C = _.pop();
|
|
2586
|
+
for (let y of _)
|
|
2587
|
+
for (let $ in y) {
|
|
2588
|
+
let m = C(p[$], y[$]);
|
|
2589
|
+
m === void 0 ? (0, l.default)(p[$]) && (0, l.default)(y[$]) ? p[$] = k({}, p[$], y[$], C) : p[$] = y[$] : p[$] = m;
|
|
2590
2590
|
}
|
|
2591
|
-
return
|
|
2591
|
+
return p;
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2594
|
-
colors:
|
|
2595
|
-
negative(
|
|
2596
|
-
return Object.keys(
|
|
2597
|
-
let
|
|
2598
|
-
return
|
|
2593
|
+
const M = {
|
|
2594
|
+
colors: a.default,
|
|
2595
|
+
negative(p) {
|
|
2596
|
+
return Object.keys(p).filter((_) => p[_] !== "0").reduce((_, C) => {
|
|
2597
|
+
let y = (0, t.default)(p[C]);
|
|
2598
|
+
return y !== void 0 && (_[`-${C}`] = y), _;
|
|
2599
2599
|
}, {});
|
|
2600
2600
|
},
|
|
2601
|
-
breakpoints(
|
|
2602
|
-
return Object.keys(
|
|
2603
|
-
...
|
|
2604
|
-
[`screen-${
|
|
2601
|
+
breakpoints(p) {
|
|
2602
|
+
return Object.keys(p).filter((_) => typeof p[_] == "string").reduce((_, C) => ({
|
|
2603
|
+
..._,
|
|
2604
|
+
[`screen-${C}`]: p[C]
|
|
2605
2605
|
}), {});
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
|
-
function z(
|
|
2609
|
-
return
|
|
2608
|
+
function z(p, ..._) {
|
|
2609
|
+
return x(p) ? p(..._) : p;
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2612
|
-
return
|
|
2611
|
+
function L(p) {
|
|
2612
|
+
return p.reduce((_, { extend: C }) => k(_, C, (y, $) => y === void 0 ? [
|
|
2613
2613
|
$
|
|
2614
|
-
] : Array.isArray(
|
|
2614
|
+
] : Array.isArray(y) ? [
|
|
2615
2615
|
$,
|
|
2616
|
-
...
|
|
2616
|
+
...y
|
|
2617
2617
|
] : [
|
|
2618
2618
|
$,
|
|
2619
|
-
|
|
2619
|
+
y
|
|
2620
2620
|
]), {});
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function P(p) {
|
|
2623
2623
|
return {
|
|
2624
|
-
...
|
|
2624
|
+
...p.reduce((_, C) => (0, o.defaults)(_, C), {}),
|
|
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(p)
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2631
|
-
if (Array.isArray(
|
|
2632
|
-
return
|
|
2633
|
-
if (Array.isArray(
|
|
2630
|
+
function G(p, _) {
|
|
2631
|
+
if (Array.isArray(p) && (0, l.default)(p[0]))
|
|
2632
|
+
return p.concat(_);
|
|
2633
|
+
if (Array.isArray(_) && (0, l.default)(_[0]) && (0, l.default)(p))
|
|
2634
2634
|
return [
|
|
2635
|
-
|
|
2636
|
-
...
|
|
2635
|
+
p,
|
|
2636
|
+
..._
|
|
2637
2637
|
];
|
|
2638
|
-
if (Array.isArray(
|
|
2639
|
-
return
|
|
2638
|
+
if (Array.isArray(_))
|
|
2639
|
+
return _;
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2642
|
-
return k(
|
|
2643
|
-
|
|
2644
|
-
...
|
|
2645
|
-
].map((w) => z(w, $,
|
|
2641
|
+
function H({ extend: p, ..._ }) {
|
|
2642
|
+
return k(_, p, (C, y) => !x(C) && !y.some(x) ? k({}, C, ...y, G) : ($, m) => k({}, ...[
|
|
2643
|
+
C,
|
|
2644
|
+
...y
|
|
2645
|
+
].map((w) => z(w, $, m)), G));
|
|
2646
2646
|
}
|
|
2647
|
-
function* R(
|
|
2648
|
-
let
|
|
2649
|
-
if (
|
|
2647
|
+
function* R(p) {
|
|
2648
|
+
let _ = (0, n.toPath)(p);
|
|
2649
|
+
if (_.length === 0 || (yield _, Array.isArray(p)))
|
|
2650
2650
|
return;
|
|
2651
|
-
let
|
|
2652
|
-
if (
|
|
2653
|
-
let [, $,
|
|
2654
|
-
w.alpha =
|
|
2651
|
+
let C = /^(.*?)\s*\/\s*([^/]+)$/, y = p.match(C);
|
|
2652
|
+
if (y !== null) {
|
|
2653
|
+
let [, $, m] = y, w = (0, n.toPath)($);
|
|
2654
|
+
w.alpha = m, yield w;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
function U(
|
|
2658
|
-
const
|
|
2659
|
-
for (const $ of R(
|
|
2660
|
-
let
|
|
2661
|
-
for (; w != null &&
|
|
2662
|
-
w = w[$[
|
|
2657
|
+
function U(p) {
|
|
2658
|
+
const _ = (C, y) => {
|
|
2659
|
+
for (const $ of R(C)) {
|
|
2660
|
+
let m = 0, w = p;
|
|
2661
|
+
for (; w != null && m < $.length; )
|
|
2662
|
+
w = w[$[m++]], w = x(w) && ($.alpha === void 0 || m <= $.length - 1) ? w(_, M) : w;
|
|
2663
2663
|
if (w !== void 0) {
|
|
2664
2664
|
if ($.alpha !== void 0) {
|
|
2665
|
-
let
|
|
2666
|
-
return (0, v.withAlphaValue)(
|
|
2665
|
+
let A = (0, d.parseColorFormat)(w);
|
|
2666
|
+
return (0, v.withAlphaValue)(A, $.alpha, (0, c.default)(A));
|
|
2667
2667
|
}
|
|
2668
|
-
return (0, l.default)(w) ? (0,
|
|
2668
|
+
return (0, l.default)(w) ? (0, s.cloneDeep)(w) : w;
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
|
-
return
|
|
2671
|
+
return y;
|
|
2672
2672
|
};
|
|
2673
|
-
return Object.assign(
|
|
2674
|
-
theme:
|
|
2675
|
-
...
|
|
2676
|
-
}), Object.keys(
|
|
2673
|
+
return Object.assign(_, {
|
|
2674
|
+
theme: _,
|
|
2675
|
+
...M
|
|
2676
|
+
}), Object.keys(p).reduce((C, y) => (C[y] = x(p[y]) ? p[y](_, M) : p[y], C), {});
|
|
2677
2677
|
}
|
|
2678
|
-
function W(
|
|
2679
|
-
let
|
|
2680
|
-
return
|
|
2681
|
-
|
|
2682
|
-
...
|
|
2683
|
-
|
|
2678
|
+
function W(p) {
|
|
2679
|
+
let _ = [];
|
|
2680
|
+
return p.forEach((C) => {
|
|
2681
|
+
_ = [
|
|
2682
|
+
..._,
|
|
2683
|
+
C
|
|
2684
2684
|
];
|
|
2685
|
-
var
|
|
2686
|
-
const $ = (
|
|
2687
|
-
$.length !== 0 && $.forEach((
|
|
2688
|
-
|
|
2685
|
+
var y;
|
|
2686
|
+
const $ = (y = C == null ? void 0 : C.plugins) !== null && y !== void 0 ? y : [];
|
|
2687
|
+
$.length !== 0 && $.forEach((m) => {
|
|
2688
|
+
m.__isOptionsFunction && (m = m());
|
|
2689
2689
|
var w;
|
|
2690
|
-
|
|
2691
|
-
...
|
|
2690
|
+
_ = [
|
|
2691
|
+
..._,
|
|
2692
2692
|
...W([
|
|
2693
|
-
(w =
|
|
2693
|
+
(w = m == null ? void 0 : m.config) !== null && w !== void 0 ? w : {}
|
|
2694
2694
|
])
|
|
2695
2695
|
];
|
|
2696
2696
|
});
|
|
2697
|
-
}),
|
|
2697
|
+
}), _;
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function b(p) {
|
|
2700
2700
|
return [
|
|
2701
|
-
...
|
|
2702
|
-
].reduceRight((
|
|
2703
|
-
corePlugins:
|
|
2704
|
-
}) : (0,
|
|
2701
|
+
...p
|
|
2702
|
+
].reduceRight((C, y) => x(y) ? y({
|
|
2703
|
+
corePlugins: C
|
|
2704
|
+
}) : (0, i.default)(y, C), r.default);
|
|
2705
2705
|
}
|
|
2706
|
-
function D(
|
|
2706
|
+
function D(p) {
|
|
2707
2707
|
return [
|
|
2708
|
-
...
|
|
2709
|
-
].reduceRight((
|
|
2710
|
-
...
|
|
2711
|
-
...
|
|
2708
|
+
...p
|
|
2709
|
+
].reduceRight((C, y) => [
|
|
2710
|
+
...C,
|
|
2711
|
+
...y
|
|
2712
2712
|
], []);
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2715
|
-
let
|
|
2716
|
-
...W(
|
|
2714
|
+
function S(p) {
|
|
2715
|
+
let _ = [
|
|
2716
|
+
...W(p),
|
|
2717
2717
|
{
|
|
2718
2718
|
prefix: "",
|
|
2719
2719
|
important: !1,
|
|
2720
2720
|
separator: ":"
|
|
2721
2721
|
}
|
|
2722
2722
|
];
|
|
2723
|
-
var
|
|
2724
|
-
return (0,
|
|
2725
|
-
theme: U(
|
|
2726
|
-
corePlugins:
|
|
2727
|
-
plugins: D(
|
|
2728
|
-
}, ...
|
|
2723
|
+
var C, y;
|
|
2724
|
+
return (0, f.normalizeConfig)((0, o.defaults)({
|
|
2725
|
+
theme: U(H(P(_.map(($) => (C = $ == null ? void 0 : $.theme) !== null && C !== void 0 ? C : {})))),
|
|
2726
|
+
corePlugins: b(_.map(($) => $.corePlugins)),
|
|
2727
|
+
plugins: D(p.map(($) => (y = $ == null ? void 0 : $.plugins) !== null && y !== void 0 ? y : []))
|
|
2728
|
+
}, ..._));
|
|
2729
2729
|
}
|
|
2730
2730
|
})(ze);
|
|
2731
2731
|
var Ke = {}, ft = {
|
|
@@ -3725,26 +3725,26 @@ var Ke = {}, ft = {
|
|
|
3725
3725
|
}), Object.defineProperty(e, "default", {
|
|
3726
3726
|
enumerable: !0,
|
|
3727
3727
|
get: function() {
|
|
3728
|
-
return
|
|
3728
|
+
return a;
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
|
-
const t = /* @__PURE__ */
|
|
3732
|
-
function
|
|
3731
|
+
const t = /* @__PURE__ */ i(ft), r = se;
|
|
3732
|
+
function i(o) {
|
|
3733
3733
|
return o && o.__esModule ? o : {
|
|
3734
3734
|
default: o
|
|
3735
3735
|
};
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3738
|
-
var
|
|
3739
|
-
const
|
|
3737
|
+
function a(o) {
|
|
3738
|
+
var n;
|
|
3739
|
+
const f = ((n = o == null ? void 0 : o.presets) !== null && n !== void 0 ? n : [
|
|
3740
3740
|
t.default
|
|
3741
|
-
]).slice().reverse().flatMap((
|
|
3741
|
+
]).slice().reverse().flatMap((d) => a(d instanceof Function ? d() : d)), l = {
|
|
3742
3742
|
// Add experimental configs here...
|
|
3743
3743
|
respectDefaultRingColorOpacity: {
|
|
3744
3744
|
theme: {
|
|
3745
|
-
ringColor: ({ theme:
|
|
3745
|
+
ringColor: ({ theme: d }) => ({
|
|
3746
3746
|
DEFAULT: "#3b82f67f",
|
|
3747
|
-
...
|
|
3747
|
+
...d("colors")
|
|
3748
3748
|
})
|
|
3749
3749
|
}
|
|
3750
3750
|
},
|
|
@@ -3758,11 +3758,11 @@ var Ke = {}, ft = {
|
|
|
3758
3758
|
textOpacity: !1
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
|
-
},
|
|
3761
|
+
}, s = Object.keys(l).filter((d) => (0, r.flagEnabled)(o, d)).map((d) => l[d]);
|
|
3762
3762
|
return [
|
|
3763
3763
|
o,
|
|
3764
|
-
...
|
|
3765
|
-
...
|
|
3764
|
+
...s,
|
|
3765
|
+
...f
|
|
3766
3766
|
];
|
|
3767
3767
|
}
|
|
3768
3768
|
})(Ke);
|
|
@@ -3772,24 +3772,24 @@ var Ke = {}, ft = {
|
|
|
3772
3772
|
}), Object.defineProperty(e, "default", {
|
|
3773
3773
|
enumerable: !0,
|
|
3774
3774
|
get: function() {
|
|
3775
|
-
return
|
|
3775
|
+
return a;
|
|
3776
3776
|
}
|
|
3777
3777
|
});
|
|
3778
|
-
const t = /* @__PURE__ */
|
|
3779
|
-
function
|
|
3778
|
+
const t = /* @__PURE__ */ i(ze), r = /* @__PURE__ */ i(Ke);
|
|
3779
|
+
function i(o) {
|
|
3780
3780
|
return o && o.__esModule ? o : {
|
|
3781
3781
|
default: o
|
|
3782
3782
|
};
|
|
3783
3783
|
}
|
|
3784
|
-
function
|
|
3785
|
-
let [, ...
|
|
3784
|
+
function a(...o) {
|
|
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
|
-
})(
|
|
3792
|
-
let oe =
|
|
3791
|
+
})(Fe);
|
|
3792
|
+
let oe = Fe;
|
|
3793
3793
|
var ht = (oe.__esModule ? oe : { default: oe }).default;
|
|
3794
3794
|
const mt = /* @__PURE__ */ dt(ht);
|
|
3795
3795
|
let le = pe;
|
|
@@ -3917,34 +3917,34 @@ const pt = {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
]
|
|
3919
3919
|
}, Je = mt(vt), yt = Je.theme.fontSize, bt = Je.theme.colors, lr = [
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3920
|
+
E.dot,
|
|
3921
|
+
E.xs,
|
|
3922
|
+
E.sm,
|
|
3923
|
+
E.md,
|
|
3924
|
+
E.lg,
|
|
3925
|
+
E.xl
|
|
3926
3926
|
], ur = [
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3927
|
+
E.xs,
|
|
3928
|
+
E.sm,
|
|
3929
|
+
E.md,
|
|
3930
|
+
E.lg,
|
|
3931
|
+
E.xl,
|
|
3932
|
+
E["2xl"]
|
|
3933
3933
|
], xt = [
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3934
|
+
E.xs,
|
|
3935
|
+
E.sm,
|
|
3936
|
+
E.md,
|
|
3937
|
+
E.base,
|
|
3938
|
+
E.lg,
|
|
3939
|
+
E.xl,
|
|
3940
|
+
E["2xl"],
|
|
3941
|
+
E["3xl"],
|
|
3942
|
+
E["4xl"],
|
|
3943
|
+
E["5xl"],
|
|
3944
|
+
E["6xl"],
|
|
3945
|
+
E["7xl"],
|
|
3946
|
+
E["8xl"],
|
|
3947
|
+
E["9xl"]
|
|
3948
3948
|
], cr = [
|
|
3949
3949
|
B.warning,
|
|
3950
3950
|
B.error,
|
|
@@ -3976,7 +3976,7 @@ const pt = {
|
|
|
3976
3976
|
},
|
|
3977
3977
|
size: {
|
|
3978
3978
|
type: String,
|
|
3979
|
-
default:
|
|
3979
|
+
default: E.sm
|
|
3980
3980
|
}
|
|
3981
3981
|
},
|
|
3982
3982
|
computed: {
|
|
@@ -3987,8 +3987,8 @@ const pt = {
|
|
|
3987
3987
|
}), {});
|
|
3988
3988
|
},
|
|
3989
3989
|
iconClasses() {
|
|
3990
|
-
var
|
|
3991
|
-
const e = this.sizes[this.size] || this.sizes[
|
|
3990
|
+
var i, a;
|
|
3991
|
+
const e = this.sizes[this.size] || this.sizes[E.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,
|
|
@@ -3998,13 +3998,13 @@ const pt = {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
});
|
|
4001
|
-
var
|
|
4001
|
+
var Ct = function() {
|
|
4002
4002
|
var t = this, r = t._self._c;
|
|
4003
4003
|
return r("div", { staticClass: "e-icon" }, [r("i", { class: t.iconClasses })]);
|
|
4004
|
-
},
|
|
4004
|
+
}, wt = [], St = /* @__PURE__ */ I(
|
|
4005
4005
|
_t,
|
|
4006
|
-
wt,
|
|
4007
4006
|
Ct,
|
|
4007
|
+
wt,
|
|
4008
4008
|
!1,
|
|
4009
4009
|
null,
|
|
4010
4010
|
null,
|
|
@@ -4028,7 +4028,7 @@ const Tt = St.exports, Et = q.extend({
|
|
|
4028
4028
|
},
|
|
4029
4029
|
size: {
|
|
4030
4030
|
type: String,
|
|
4031
|
-
default:
|
|
4031
|
+
default: E.base
|
|
4032
4032
|
},
|
|
4033
4033
|
opacity: {
|
|
4034
4034
|
type: [String, Number],
|
|
@@ -4043,7 +4043,7 @@ const Tt = St.exports, Et = q.extend({
|
|
|
4043
4043
|
},
|
|
4044
4044
|
computed: {
|
|
4045
4045
|
computedSize() {
|
|
4046
|
-
return this.sizes[
|
|
4046
|
+
return this.sizes[E[this.size]] || this.size || this.sizes[E.base];
|
|
4047
4047
|
},
|
|
4048
4048
|
fill() {
|
|
4049
4049
|
let e = {
|
|
@@ -4079,17 +4079,17 @@ var $t = 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
|
-
},
|
|
4082
|
+
}, kt = [], Dt = /* @__PURE__ */ I(
|
|
4083
4083
|
Et,
|
|
4084
4084
|
$t,
|
|
4085
|
-
|
|
4085
|
+
kt,
|
|
4086
4086
|
!1,
|
|
4087
4087
|
null,
|
|
4088
4088
|
"29711f67",
|
|
4089
4089
|
null,
|
|
4090
4090
|
null
|
|
4091
4091
|
);
|
|
4092
|
-
const Qe =
|
|
4092
|
+
const Qe = Dt.exports, Ot = q.extend({
|
|
4093
4093
|
props: {
|
|
4094
4094
|
align: {
|
|
4095
4095
|
type: String,
|
|
@@ -4149,20 +4149,20 @@ const Qe = kt.exports, Ot = q.extend({
|
|
|
4149
4149
|
}
|
|
4150
4150
|
}
|
|
4151
4151
|
});
|
|
4152
|
-
var
|
|
4152
|
+
var Mt = 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
|
-
},
|
|
4155
|
+
}, At = [], Pt = /* @__PURE__ */ I(
|
|
4156
4156
|
Ot,
|
|
4157
|
+
Mt,
|
|
4157
4158
|
At,
|
|
4158
|
-
Ft,
|
|
4159
4159
|
!1,
|
|
4160
4160
|
null,
|
|
4161
4161
|
null,
|
|
4162
4162
|
null,
|
|
4163
4163
|
null
|
|
4164
4164
|
);
|
|
4165
|
-
const
|
|
4165
|
+
const Ft = Pt.exports, zt = q.extend({
|
|
4166
4166
|
props: {
|
|
4167
4167
|
alignSelf: {
|
|
4168
4168
|
type: String,
|
|
@@ -4266,20 +4266,20 @@ const Pt = Mt.exports, zt = q.extend({
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
});
|
|
4269
|
-
var
|
|
4269
|
+
var Lt = 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
|
-
},
|
|
4272
|
+
}, Gt = [], Ht = /* @__PURE__ */ I(
|
|
4273
4273
|
zt,
|
|
4274
|
-
Ht,
|
|
4275
4274
|
Lt,
|
|
4275
|
+
Gt,
|
|
4276
4276
|
!1,
|
|
4277
4277
|
null,
|
|
4278
4278
|
null,
|
|
4279
4279
|
null,
|
|
4280
4280
|
null
|
|
4281
4281
|
);
|
|
4282
|
-
const Bt =
|
|
4282
|
+
const Bt = Ht.exports;
|
|
4283
4283
|
function et() {
|
|
4284
4284
|
const e = document;
|
|
4285
4285
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
@@ -4312,10 +4312,10 @@ function Rt() {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
function Wt(e, t) {
|
|
4314
4314
|
let r = null;
|
|
4315
|
-
return function(...
|
|
4316
|
-
const
|
|
4315
|
+
return function(...i) {
|
|
4316
|
+
const a = this;
|
|
4317
4317
|
r !== null && clearTimeout(r), r = setTimeout(() => {
|
|
4318
|
-
r = null, e.apply(
|
|
4318
|
+
r = null, e.apply(a, i);
|
|
4319
4319
|
}, t || 1e3);
|
|
4320
4320
|
};
|
|
4321
4321
|
}
|
|
@@ -4334,8 +4334,8 @@ const ue = new Intl.NumberFormat(void 0, {
|
|
|
4334
4334
|
"statechanged",
|
|
4335
4335
|
"error"
|
|
4336
4336
|
], ee = (e) => {
|
|
4337
|
-
const t = Math.floor(e % 60), r = Math.floor(e / 60) % 60,
|
|
4338
|
-
return
|
|
4337
|
+
const t = Math.floor(e % 60), r = Math.floor(e / 60) % 60, i = Math.floor(e / 3600);
|
|
4338
|
+
return i === 0 ? `${r}:${ue.format(t)}` : `${i}:${ue.format(
|
|
4339
4339
|
r
|
|
4340
4340
|
)}:${ue.format(t)}`;
|
|
4341
4341
|
}, Nt = q.extend({
|
|
@@ -4410,11 +4410,11 @@ const ue = new Intl.NumberFormat(void 0, {
|
|
|
4410
4410
|
const t = this.$refs.player, r = this.$refs.timelineContainer;
|
|
4411
4411
|
t.addEventListener(
|
|
4412
4412
|
e,
|
|
4413
|
-
(
|
|
4413
|
+
(i) => {
|
|
4414
4414
|
e === "loadeddata" && (this.videoLength = ee(t.duration)), e === "timeupdate" && (this.percentagePlayed = t.currentTime / t.duration * 100, r.style.setProperty(
|
|
4415
4415
|
"--progress-position",
|
|
4416
4416
|
this.percentagePlayed.toString()
|
|
4417
|
-
)), this.$emit(e, { event:
|
|
4417
|
+
)), this.$emit(e, { event: i, player: this });
|
|
4418
4418
|
},
|
|
4419
4419
|
!0
|
|
4420
4420
|
);
|
|
@@ -4423,11 +4423,11 @@ const ue = new Intl.NumberFormat(void 0, {
|
|
|
4423
4423
|
const t = this.$refs.player, r = this.$refs.timelineContainer;
|
|
4424
4424
|
t.addEventListener(
|
|
4425
4425
|
e,
|
|
4426
|
-
(
|
|
4426
|
+
(i) => {
|
|
4427
4427
|
e === "loadeddata" && (this.videoLength = ee(t.duration)), e === "timeupdate" && (this.percentagePlayed = t.currentTime / t.duration * 100, r.style.setProperty(
|
|
4428
4428
|
"--progress-position",
|
|
4429
4429
|
this.percentagePlayed.toString()
|
|
4430
|
-
)), this.$emit(e, { event:
|
|
4430
|
+
)), this.$emit(e, { event: i, player: this });
|
|
4431
4431
|
},
|
|
4432
4432
|
!0
|
|
4433
4433
|
);
|
|
@@ -4543,13 +4543,13 @@ const ue = new Intl.NumberFormat(void 0, {
|
|
|
4543
4543
|
const t = this.$refs.player;
|
|
4544
4544
|
if (!document.body.contains(t))
|
|
4545
4545
|
return;
|
|
4546
|
-
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;
|
|
4547
4547
|
r.style.setProperty(
|
|
4548
4548
|
"--preview-position",
|
|
4549
|
-
|
|
4549
|
+
a.toString()
|
|
4550
4550
|
), this.isScrubbing && (e.preventDefault(), r.style.setProperty(
|
|
4551
4551
|
"--progress-position",
|
|
4552
|
-
|
|
4552
|
+
a.toString()
|
|
4553
4553
|
));
|
|
4554
4554
|
},
|
|
4555
4555
|
skip(e = 5) {
|
|
@@ -4557,18 +4557,18 @@ const ue = new Intl.NumberFormat(void 0, {
|
|
|
4557
4557
|
t.currentTime += e;
|
|
4558
4558
|
},
|
|
4559
4559
|
async toggleScrubbing(e) {
|
|
4560
|
-
const t = this.$refs.timelineContainer, r = this.$refs.videoContainer,
|
|
4561
|
-
if (!
|
|
4560
|
+
const t = this.$refs.timelineContainer, r = this.$refs.videoContainer, i = this.$refs.player;
|
|
4561
|
+
if (!i)
|
|
4562
4562
|
return;
|
|
4563
|
-
const
|
|
4563
|
+
const a = t.getBoundingClientRect(), o = Math.min(Math.max(0, e.x - a.x), a.width) / a.width;
|
|
4564
4564
|
if (this.isScrubbing = (e.buttons & 1) === 1, r.classList.toggle("scrubbing", this.isScrubbing), this.isScrubbing) {
|
|
4565
|
-
this.wasPaused =
|
|
4565
|
+
this.wasPaused = i.paused, await i.pause(), this.handleTimelineUpdate(e);
|
|
4566
4566
|
return;
|
|
4567
4567
|
}
|
|
4568
|
-
if (this.realtime = o * this.videoDuration,
|
|
4568
|
+
if (this.realtime = o * this.videoDuration, i.currentTime = o * this.videoDuration, this.wasPaused)
|
|
4569
4569
|
return;
|
|
4570
|
-
const
|
|
4571
|
-
|
|
4570
|
+
const n = i.play();
|
|
4571
|
+
n !== void 0 && n.then(() => this.handleTimelineUpdate(e)).catch(console.error);
|
|
4572
4572
|
},
|
|
4573
4573
|
handleKeyDown(e) {
|
|
4574
4574
|
var r;
|
|
@@ -4595,8 +4595,8 @@ const ue = new Intl.NumberFormat(void 0, {
|
|
|
4595
4595
|
});
|
|
4596
4596
|
var Ut = function() {
|
|
4597
4597
|
var t = this, r = t._self._c;
|
|
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(
|
|
4599
|
-
return r("source", t._g({ 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));
|
|
4600
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: {
|
|
4601
4601
|
"fa-play": !t.playing,
|
|
4602
4602
|
"fa-pause": t.playing
|
|
@@ -4617,34 +4617,34 @@ var Ut = function() {
|
|
|
4617
4617
|
null,
|
|
4618
4618
|
null
|
|
4619
4619
|
);
|
|
4620
|
-
const Xt = Vt.exports,
|
|
4621
|
-
const t =
|
|
4620
|
+
const Xt = Vt.exports, ie = (e) => {
|
|
4621
|
+
const t = u.utcFormat("%_d")(e), i = {
|
|
4622
4622
|
1: "st",
|
|
4623
4623
|
2: "nd",
|
|
4624
4624
|
3: "rd"
|
|
4625
4625
|
}[t.charAt(1)] || "th";
|
|
4626
|
-
return `${t}${
|
|
4626
|
+
return `${t}${i}`;
|
|
4627
4627
|
}, _e = (e) => new Date(
|
|
4628
4628
|
Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate() + 1)
|
|
4629
|
-
).getUTCDate() === 1 ? "" :
|
|
4630
|
-
const t =
|
|
4629
|
+
).getUTCDate() === 1 ? "" : u.utcFormat("%-d")(e), K = (e) => ["0", " 0", "00"].includes(u.utcFormat("%H")(e)) ? "" : `${u.utcFormat("%H")(e)}h`, X = (e) => {
|
|
4630
|
+
const t = u.utcFormat("%H:%M")(e);
|
|
4631
4631
|
return t === "00:00" ? "" : t;
|
|
4632
|
-
}, ce = (e) =>
|
|
4633
|
-
const t = X(e), r =
|
|
4634
|
-
return t || `${
|
|
4632
|
+
}, ce = (e) => u.utcFormat("%M:%S")(e), Ce = (e) => `${u.utcFormat("%Hh%Mm")(e)}`, he = (e) => {
|
|
4633
|
+
const t = X(e), r = ie(e), i = u.utcFormat("%B")(e);
|
|
4634
|
+
return t || `${i} ${r}`;
|
|
4635
4635
|
}, de = (e) => {
|
|
4636
|
-
const t = X(e), r = Number.parseInt(
|
|
4637
|
-
return t && r % 6 === 0 ? `${
|
|
4636
|
+
const t = X(e), r = Number.parseInt(u.utcFormat("%H")(e)), i = ie(e), a = u.utcFormat("%B")(e);
|
|
4637
|
+
return t && r % 6 === 0 ? `${a} ${i} ${t}` : he(e);
|
|
4638
4638
|
}, J = (e) => (t) => {
|
|
4639
|
-
const r =
|
|
4640
|
-
return !(
|
|
4639
|
+
const r = u.utcFormat("%H")(t);
|
|
4640
|
+
return !(u.utcFormat("%M")(t) === "00" && Number.parseInt(r) % e === 0);
|
|
4641
4641
|
}, fe = (e) => (t) => {
|
|
4642
|
-
const r =
|
|
4642
|
+
const r = u.utcFormat("%M")(t);
|
|
4643
4643
|
return Number.parseInt(r) % e !== 0;
|
|
4644
|
-
},
|
|
4645
|
-
const r =
|
|
4646
|
-
return Number.parseInt(r) % e !== 0 && Number.parseInt(
|
|
4647
|
-
},
|
|
4644
|
+
}, we = (e) => (t) => {
|
|
4645
|
+
const r = u.utcFormat("%M")(t), i = u.utcFormat("%S")(t);
|
|
4646
|
+
return Number.parseInt(r) % e !== 0 && Number.parseInt(i) === 0;
|
|
4647
|
+
}, T = {
|
|
4648
4648
|
_10_seconds: 25e-6,
|
|
4649
4649
|
_20_seconds: 1e-4,
|
|
4650
4650
|
_30_seconds: 15e-5,
|
|
@@ -4666,296 +4666,296 @@ const Xt = Vt.exports, ne = (e) => {
|
|
|
4666
4666
|
_3_months: 33,
|
|
4667
4667
|
infinity: 1 / 0
|
|
4668
4668
|
};
|
|
4669
|
-
var Te, Ee, $e,
|
|
4669
|
+
var Te, Ee, $e, ke, De, Oe, Me, Ae;
|
|
4670
4670
|
const qt = {
|
|
4671
4671
|
[te.overview]: [
|
|
4672
4672
|
{
|
|
4673
|
-
precision:
|
|
4674
|
-
interval:
|
|
4675
|
-
format:
|
|
4673
|
+
precision: T._30_seconds,
|
|
4674
|
+
interval: u.utcMinute.every(2),
|
|
4675
|
+
format: Ce
|
|
4676
4676
|
},
|
|
4677
4677
|
{
|
|
4678
|
-
precision:
|
|
4679
|
-
interval:
|
|
4680
|
-
format:
|
|
4678
|
+
precision: T._1_minute,
|
|
4679
|
+
interval: u.utcMinute.every(5),
|
|
4680
|
+
format: Ce
|
|
4681
4681
|
},
|
|
4682
4682
|
{
|
|
4683
|
-
precision:
|
|
4684
|
-
interval:
|
|
4683
|
+
precision: T._2_minutes,
|
|
4684
|
+
interval: u.utcMinute.every(10),
|
|
4685
4685
|
format: he
|
|
4686
4686
|
},
|
|
4687
4687
|
{
|
|
4688
|
-
precision:
|
|
4689
|
-
interval:
|
|
4688
|
+
precision: T._5_minutes,
|
|
4689
|
+
interval: u.utcMinute.every(20),
|
|
4690
4690
|
format: de
|
|
4691
4691
|
},
|
|
4692
4692
|
{
|
|
4693
|
-
precision:
|
|
4694
|
-
interval:
|
|
4693
|
+
precision: T._15_minutes,
|
|
4694
|
+
interval: u.utcHour,
|
|
4695
4695
|
format: de
|
|
4696
4696
|
},
|
|
4697
4697
|
{
|
|
4698
|
-
precision:
|
|
4699
|
-
interval:
|
|
4698
|
+
precision: T._30_minutes,
|
|
4699
|
+
interval: u.utcHour.every(2),
|
|
4700
4700
|
format: de
|
|
4701
4701
|
},
|
|
4702
4702
|
{
|
|
4703
|
-
precision:
|
|
4704
|
-
interval:
|
|
4703
|
+
precision: T._2_hours,
|
|
4704
|
+
interval: u.utcHour.every(6),
|
|
4705
4705
|
format: (e) => {
|
|
4706
|
-
const t = X(e), r =
|
|
4707
|
-
return t || `${
|
|
4706
|
+
const t = X(e), r = ie(e), i = u.utcFormat("%B")(e);
|
|
4707
|
+
return t || `${i} ${r}`;
|
|
4708
4708
|
}
|
|
4709
4709
|
},
|
|
4710
4710
|
{
|
|
4711
|
-
precision:
|
|
4712
|
-
interval:
|
|
4711
|
+
precision: T._3_hours,
|
|
4712
|
+
interval: u.utcHour.every(12),
|
|
4713
4713
|
format: he
|
|
4714
4714
|
},
|
|
4715
4715
|
{
|
|
4716
|
-
precision:
|
|
4717
|
-
interval:
|
|
4716
|
+
precision: T._6_hours,
|
|
4717
|
+
interval: u.utcHour.every(24),
|
|
4718
4718
|
format: (e) => {
|
|
4719
|
-
const t =
|
|
4720
|
-
return `${
|
|
4719
|
+
const t = ie(e);
|
|
4720
|
+
return `${u.utcFormat("%b")(e)} ${t}`;
|
|
4721
4721
|
}
|
|
4722
4722
|
},
|
|
4723
4723
|
{
|
|
4724
|
-
precision:
|
|
4725
|
-
interval:
|
|
4724
|
+
precision: T._2_days,
|
|
4725
|
+
interval: u.utcMonth,
|
|
4726
4726
|
format: (e) => {
|
|
4727
4727
|
const r = e.getUTCMonth() === 0 && e.getUTCDate() === 1 ? "%Y – %B" : "%B";
|
|
4728
|
-
return
|
|
4728
|
+
return u.utcFormat(r)(e);
|
|
4729
4729
|
}
|
|
4730
4730
|
},
|
|
4731
4731
|
{
|
|
4732
|
-
precision:
|
|
4733
|
-
interval:
|
|
4732
|
+
precision: T.infinity,
|
|
4733
|
+
interval: u.utcYear,
|
|
4734
4734
|
format: "%Y"
|
|
4735
4735
|
}
|
|
4736
4736
|
],
|
|
4737
4737
|
[te.detailed]: [
|
|
4738
4738
|
{
|
|
4739
|
-
precision:
|
|
4740
|
-
interval:
|
|
4739
|
+
precision: T._10_seconds,
|
|
4740
|
+
interval: u.utcSecond.every(10),
|
|
4741
4741
|
format: ce
|
|
4742
4742
|
},
|
|
4743
4743
|
{
|
|
4744
|
-
precision:
|
|
4745
|
-
interval: (Te =
|
|
4744
|
+
precision: T._20_seconds,
|
|
4745
|
+
interval: (Te = u.utcSecond.every(20)) == null ? void 0 : Te.filter(we(2)),
|
|
4746
4746
|
format: ce
|
|
4747
4747
|
},
|
|
4748
4748
|
{
|
|
4749
|
-
precision:
|
|
4750
|
-
interval: (Ee =
|
|
4749
|
+
precision: T._30_seconds,
|
|
4750
|
+
interval: (Ee = u.utcSecond.every(30)) == null ? void 0 : Ee.filter(we(2)),
|
|
4751
4751
|
format: ce
|
|
4752
4752
|
},
|
|
4753
4753
|
{
|
|
4754
|
-
precision:
|
|
4755
|
-
interval:
|
|
4754
|
+
precision: T._1_minute,
|
|
4755
|
+
interval: u.utcMinute.filter(fe(5)),
|
|
4756
4756
|
format: X
|
|
4757
4757
|
},
|
|
4758
4758
|
{
|
|
4759
|
-
precision:
|
|
4760
|
-
interval: ($e =
|
|
4759
|
+
precision: T._2_minutes,
|
|
4760
|
+
interval: ($e = u.utcMinute.every(2)) == null ? void 0 : $e.filter(fe(10)),
|
|
4761
4761
|
format: X
|
|
4762
4762
|
},
|
|
4763
4763
|
{
|
|
4764
|
-
precision:
|
|
4765
|
-
interval: (
|
|
4764
|
+
precision: T._5_minutes,
|
|
4765
|
+
interval: (ke = u.utcMinute.every(5)) == null ? void 0 : ke.filter(fe(20)),
|
|
4766
4766
|
format: X
|
|
4767
4767
|
},
|
|
4768
4768
|
{
|
|
4769
|
-
precision:
|
|
4770
|
-
interval: (
|
|
4769
|
+
precision: T._15_minutes,
|
|
4770
|
+
interval: (De = u.utcMinute.every(15)) == null ? void 0 : De.filter(J(1)),
|
|
4771
4771
|
format: X
|
|
4772
4772
|
},
|
|
4773
4773
|
{
|
|
4774
|
-
precision:
|
|
4775
|
-
interval: (Oe =
|
|
4774
|
+
precision: T._30_minutes,
|
|
4775
|
+
interval: (Oe = u.utcMinute.every(30)) == null ? void 0 : Oe.filter(J(2)),
|
|
4776
4776
|
format: X
|
|
4777
4777
|
},
|
|
4778
4778
|
{
|
|
4779
|
-
precision:
|
|
4780
|
-
interval:
|
|
4779
|
+
precision: T._1_hour,
|
|
4780
|
+
interval: u.utcHour.filter(J(6)),
|
|
4781
4781
|
format: K
|
|
4782
4782
|
},
|
|
4783
4783
|
{
|
|
4784
|
-
precision:
|
|
4785
|
-
interval: (
|
|
4784
|
+
precision: T._2_hours,
|
|
4785
|
+
interval: (Me = u.utcHour.every(2)) == null ? void 0 : Me.filter(J(6)),
|
|
4786
4786
|
format: K
|
|
4787
4787
|
},
|
|
4788
4788
|
{
|
|
4789
|
-
precision:
|
|
4790
|
-
interval: (
|
|
4789
|
+
precision: T._3_hours,
|
|
4790
|
+
interval: (Ae = u.utcHour.every(3)) == null ? void 0 : Ae.filter(J(12)),
|
|
4791
4791
|
format: K
|
|
4792
4792
|
},
|
|
4793
4793
|
{
|
|
4794
|
-
precision:
|
|
4795
|
-
interval:
|
|
4794
|
+
precision: T._4_hours,
|
|
4795
|
+
interval: u.utcHour.every(4),
|
|
4796
4796
|
format: K
|
|
4797
4797
|
},
|
|
4798
4798
|
{
|
|
4799
|
-
precision:
|
|
4800
|
-
interval:
|
|
4799
|
+
precision: T._6_hours,
|
|
4800
|
+
interval: u.utcHour.every(6),
|
|
4801
4801
|
format: K
|
|
4802
4802
|
},
|
|
4803
4803
|
{
|
|
4804
|
-
precision:
|
|
4805
|
-
interval:
|
|
4804
|
+
precision: T._1_day,
|
|
4805
|
+
interval: u.utcDay,
|
|
4806
4806
|
format: _e
|
|
4807
4807
|
},
|
|
4808
4808
|
{
|
|
4809
|
-
precision:
|
|
4810
|
-
interval:
|
|
4809
|
+
precision: T._2_days,
|
|
4810
|
+
interval: u.utcDay.every(2),
|
|
4811
4811
|
format: _e
|
|
4812
4812
|
},
|
|
4813
4813
|
{
|
|
4814
|
-
precision:
|
|
4815
|
-
interval:
|
|
4814
|
+
precision: T._1_month,
|
|
4815
|
+
interval: u.utcMonth,
|
|
4816
4816
|
format: "%B"
|
|
4817
4817
|
},
|
|
4818
4818
|
{
|
|
4819
|
-
precision:
|
|
4820
|
-
interval:
|
|
4819
|
+
precision: T._1_month_abbr,
|
|
4820
|
+
interval: u.utcMonth,
|
|
4821
4821
|
format: "%b"
|
|
4822
4822
|
},
|
|
4823
4823
|
{
|
|
4824
|
-
precision:
|
|
4825
|
-
interval:
|
|
4826
|
-
format: (e) =>
|
|
4824
|
+
precision: T._1_month_letter,
|
|
4825
|
+
interval: u.utcMonth,
|
|
4826
|
+
format: (e) => u.utcFormat("%B")(e).charAt(0)
|
|
4827
4827
|
},
|
|
4828
4828
|
{
|
|
4829
|
-
precision:
|
|
4830
|
-
interval:
|
|
4829
|
+
precision: T._3_months,
|
|
4830
|
+
interval: u.utcMonth.every(3),
|
|
4831
4831
|
format: "Q%q"
|
|
4832
4832
|
},
|
|
4833
4833
|
{
|
|
4834
|
-
precision:
|
|
4835
|
-
interval:
|
|
4834
|
+
precision: T.infinity,
|
|
4835
|
+
interval: u.utcMonth.every(3),
|
|
4836
4836
|
format: ""
|
|
4837
4837
|
}
|
|
4838
4838
|
],
|
|
4839
4839
|
[te.detailedBackground]: [
|
|
4840
4840
|
{
|
|
4841
|
-
precision:
|
|
4842
|
-
interval:
|
|
4841
|
+
precision: T._10_seconds,
|
|
4842
|
+
interval: u.utcSecond,
|
|
4843
4843
|
format: ""
|
|
4844
4844
|
},
|
|
4845
4845
|
{
|
|
4846
|
-
precision:
|
|
4847
|
-
interval:
|
|
4846
|
+
precision: T._20_seconds,
|
|
4847
|
+
interval: u.utcSecond.every(5),
|
|
4848
4848
|
format: ""
|
|
4849
4849
|
},
|
|
4850
4850
|
{
|
|
4851
|
-
precision:
|
|
4852
|
-
interval:
|
|
4851
|
+
precision: T._30_seconds,
|
|
4852
|
+
interval: u.utcSecond.every(10),
|
|
4853
4853
|
format: ""
|
|
4854
4854
|
},
|
|
4855
4855
|
{
|
|
4856
|
-
precision:
|
|
4857
|
-
interval:
|
|
4856
|
+
precision: T._1_minute,
|
|
4857
|
+
interval: u.utcSecond.every(20),
|
|
4858
4858
|
format: ""
|
|
4859
4859
|
},
|
|
4860
4860
|
{
|
|
4861
|
-
precision:
|
|
4862
|
-
interval:
|
|
4861
|
+
precision: T._2_minutes,
|
|
4862
|
+
interval: u.utcSecond.every(30),
|
|
4863
4863
|
format: ""
|
|
4864
4864
|
},
|
|
4865
4865
|
{
|
|
4866
|
-
precision:
|
|
4867
|
-
interval:
|
|
4866
|
+
precision: T._5_minutes,
|
|
4867
|
+
interval: u.utcMinute,
|
|
4868
4868
|
format: ""
|
|
4869
4869
|
},
|
|
4870
4870
|
{
|
|
4871
|
-
precision:
|
|
4872
|
-
interval:
|
|
4871
|
+
precision: T._15_minutes,
|
|
4872
|
+
interval: u.utcMinute.every(3),
|
|
4873
4873
|
format: ""
|
|
4874
4874
|
},
|
|
4875
4875
|
{
|
|
4876
|
-
precision:
|
|
4877
|
-
interval:
|
|
4876
|
+
precision: T._30_minutes,
|
|
4877
|
+
interval: u.utcMinute.every(6),
|
|
4878
4878
|
format: ""
|
|
4879
4879
|
},
|
|
4880
4880
|
{
|
|
4881
|
-
precision:
|
|
4882
|
-
interval:
|
|
4881
|
+
precision: T._1_hour,
|
|
4882
|
+
interval: u.utcMinute.every(15),
|
|
4883
4883
|
format: ""
|
|
4884
4884
|
},
|
|
4885
4885
|
{
|
|
4886
|
-
precision:
|
|
4887
|
-
interval:
|
|
4886
|
+
precision: T._2_hours,
|
|
4887
|
+
interval: u.utcMinute.every(30),
|
|
4888
4888
|
format: ""
|
|
4889
4889
|
},
|
|
4890
4890
|
{
|
|
4891
|
-
precision:
|
|
4892
|
-
interval:
|
|
4891
|
+
precision: T._3_hours,
|
|
4892
|
+
interval: u.utcHour,
|
|
4893
4893
|
format: ""
|
|
4894
4894
|
},
|
|
4895
4895
|
{
|
|
4896
|
-
precision:
|
|
4897
|
-
interval:
|
|
4896
|
+
precision: T._4_hours,
|
|
4897
|
+
interval: u.utcHour,
|
|
4898
4898
|
format: ""
|
|
4899
4899
|
},
|
|
4900
4900
|
{
|
|
4901
|
-
precision:
|
|
4902
|
-
interval:
|
|
4901
|
+
precision: T._6_hours,
|
|
4902
|
+
interval: u.utcMinute.every(120),
|
|
4903
4903
|
format: ""
|
|
4904
4904
|
},
|
|
4905
4905
|
{
|
|
4906
|
-
precision:
|
|
4907
|
-
interval:
|
|
4906
|
+
precision: T._1_day,
|
|
4907
|
+
interval: u.utcHour.every(8),
|
|
4908
4908
|
format: ""
|
|
4909
4909
|
},
|
|
4910
4910
|
{
|
|
4911
|
-
precision:
|
|
4912
|
-
interval:
|
|
4911
|
+
precision: T._2_days,
|
|
4912
|
+
interval: u.utcHour.every(12),
|
|
4913
4913
|
format: ""
|
|
4914
4914
|
},
|
|
4915
4915
|
{
|
|
4916
|
-
precision:
|
|
4917
|
-
interval:
|
|
4916
|
+
precision: T._1_month,
|
|
4917
|
+
interval: u.utcDay.filter((e) => {
|
|
4918
4918
|
const t = e.getUTCDate(), r = new Date(
|
|
4919
4919
|
e.getUTCFullYear(),
|
|
4920
4920
|
e.getUTCMonth() + 1,
|
|
4921
4921
|
0
|
|
4922
|
-
).getUTCDate(),
|
|
4923
|
-
return t ===
|
|
4922
|
+
).getUTCDate(), i = Math.ceil(r / 5);
|
|
4923
|
+
return t === i || t === 2 * i || t === 3 * i || t === 4 * i;
|
|
4924
4924
|
}),
|
|
4925
4925
|
format: ""
|
|
4926
4926
|
},
|
|
4927
4927
|
{
|
|
4928
|
-
precision:
|
|
4929
|
-
interval:
|
|
4928
|
+
precision: T._1_month_abbr,
|
|
4929
|
+
interval: u.utcDay.filter((e) => {
|
|
4930
4930
|
const t = e.getUTCDate(), r = new Date(
|
|
4931
4931
|
e.getUTCFullYear(),
|
|
4932
4932
|
e.getUTCMonth() + 1,
|
|
4933
4933
|
0
|
|
4934
|
-
).getUTCDate(),
|
|
4935
|
-
return t ===
|
|
4934
|
+
).getUTCDate(), i = Math.ceil(r / 4);
|
|
4935
|
+
return t === i || t === 2 * i || t === 3 * i;
|
|
4936
4936
|
}),
|
|
4937
4937
|
format: ""
|
|
4938
4938
|
},
|
|
4939
4939
|
{
|
|
4940
|
-
precision:
|
|
4941
|
-
interval:
|
|
4940
|
+
precision: T._1_month_letter,
|
|
4941
|
+
interval: u.utcDay.filter((e) => {
|
|
4942
4942
|
const t = e.getUTCDate(), r = new Date(
|
|
4943
4943
|
e.getUTCFullYear(),
|
|
4944
4944
|
e.getUTCMonth() + 1,
|
|
4945
4945
|
0
|
|
4946
|
-
).getUTCDate(),
|
|
4947
|
-
return t ===
|
|
4946
|
+
).getUTCDate(), i = Math.ceil(r / 2);
|
|
4947
|
+
return t === i;
|
|
4948
4948
|
}),
|
|
4949
4949
|
format: ""
|
|
4950
4950
|
},
|
|
4951
4951
|
{
|
|
4952
|
-
precision:
|
|
4953
|
-
interval:
|
|
4952
|
+
precision: T._3_months,
|
|
4953
|
+
interval: u.utcMonth,
|
|
4954
4954
|
format: ""
|
|
4955
4955
|
},
|
|
4956
4956
|
{
|
|
4957
|
-
precision:
|
|
4958
|
-
interval:
|
|
4957
|
+
precision: T.infinity,
|
|
4958
|
+
interval: u.utcMonth,
|
|
4959
4959
|
format: ""
|
|
4960
4960
|
}
|
|
4961
4961
|
]
|
|
@@ -4966,46 +4966,55 @@ const qt = {
|
|
|
4966
4966
|
console.error("Invalid callback function provided to v-resize-observer");
|
|
4967
4967
|
return;
|
|
4968
4968
|
}
|
|
4969
|
-
const
|
|
4970
|
-
(
|
|
4971
|
-
|
|
4969
|
+
const i = new ResizeObserver(
|
|
4970
|
+
(a) => {
|
|
4971
|
+
a[0] && r(a[0]);
|
|
4972
4972
|
}
|
|
4973
4973
|
);
|
|
4974
|
-
|
|
4974
|
+
i.observe(e), e.__resizeObserver__ = i;
|
|
4975
4975
|
},
|
|
4976
4976
|
unbind(e) {
|
|
4977
4977
|
e.__resizeObserver__ && (e.__resizeObserver__.disconnect(), delete e.__resizeObserver__);
|
|
4978
4978
|
}
|
|
4979
|
-
},
|
|
4979
|
+
}, Zt = [
|
|
4980
4980
|
{
|
|
4981
4981
|
name: "resize-observer",
|
|
4982
4982
|
definition: tt
|
|
4983
4983
|
}
|
|
4984
|
-
],
|
|
4984
|
+
], h = {
|
|
4985
4985
|
eventGroup: "event-group",
|
|
4986
4986
|
eventGroupBg: "event-group-bg",
|
|
4987
4987
|
eventRect: "event-rect",
|
|
4988
|
+
eventBarContainer: "event-bar-container",
|
|
4989
|
+
eventBarContainerHovered: "event-bar-container--hovered",
|
|
4990
|
+
eventBarContainerSelected: "event-bar-container--selected",
|
|
4988
4991
|
eventBar: "event-bar",
|
|
4989
4992
|
eventBarHoverZone: "event-bar-hover-zone",
|
|
4990
4993
|
eventBarCap: "event-bar-cap",
|
|
4991
4994
|
eventRectText: "event-rect-text",
|
|
4995
|
+
eventRectHovered: "event-rect--hovered",
|
|
4996
|
+
eventRectSelected: "event-rect--selected",
|
|
4997
|
+
labelGroup: "label-g",
|
|
4992
4998
|
labelBg: "label-bg",
|
|
4993
4999
|
labelBgFill: "label-bg-fill",
|
|
4994
5000
|
labelText: "label-text",
|
|
4995
5001
|
loadingIndicator: "loading-indicator",
|
|
4996
5002
|
xAxis: "x-axis",
|
|
4997
5003
|
selectedTimestampCursor: "selected-timestamp-cursor",
|
|
5004
|
+
marker: "marker",
|
|
5005
|
+
markerLabel: "marker-label",
|
|
5006
|
+
markerLine: "marker-line",
|
|
4998
5007
|
barChartGroup: "bar-chart-group",
|
|
4999
5008
|
lineGraphGroup: "line-graph-group",
|
|
5000
5009
|
lineGraphPath: "line-graph-path",
|
|
5001
5010
|
lineGraphHoverZone: "line-graph-hover-zone",
|
|
5002
5011
|
lineGraphDot: "line-graph-dot",
|
|
5003
5012
|
curtain: "curtain"
|
|
5004
|
-
},
|
|
5013
|
+
}, Z = {
|
|
5005
5014
|
transparencyGradient: "transparency-gradient",
|
|
5006
5015
|
transparencyGradientLight: "transparency-gradient-light",
|
|
5007
5016
|
loadingGradient: "loading-gradient"
|
|
5008
|
-
},
|
|
5017
|
+
}, Yt = q.extend({
|
|
5009
5018
|
name: "ETimeline",
|
|
5010
5019
|
directives: {
|
|
5011
5020
|
resizeObserver: tt
|
|
@@ -5091,6 +5100,10 @@ const qt = {
|
|
|
5091
5100
|
type: [String, void 0],
|
|
5092
5101
|
default: void 0
|
|
5093
5102
|
},
|
|
5103
|
+
selectedClass: {
|
|
5104
|
+
type: [String, void 0],
|
|
5105
|
+
default: void 0
|
|
5106
|
+
},
|
|
5094
5107
|
panOnDateClick: {
|
|
5095
5108
|
type: Boolean,
|
|
5096
5109
|
default: !1
|
|
@@ -5098,6 +5111,22 @@ const qt = {
|
|
|
5098
5111
|
panTransitionDuration: {
|
|
5099
5112
|
type: Number,
|
|
5100
5113
|
default: 500
|
|
5114
|
+
},
|
|
5115
|
+
selectedDate: {
|
|
5116
|
+
type: String,
|
|
5117
|
+
default: ""
|
|
5118
|
+
},
|
|
5119
|
+
autoResize: {
|
|
5120
|
+
type: Boolean,
|
|
5121
|
+
default: !0
|
|
5122
|
+
},
|
|
5123
|
+
markers: {
|
|
5124
|
+
type: Array,
|
|
5125
|
+
default: () => []
|
|
5126
|
+
},
|
|
5127
|
+
stickyMarkers: {
|
|
5128
|
+
type: Boolean,
|
|
5129
|
+
default: !0
|
|
5101
5130
|
}
|
|
5102
5131
|
},
|
|
5103
5132
|
data() {
|
|
@@ -5139,7 +5168,10 @@ const qt = {
|
|
|
5139
5168
|
textPadding: 5,
|
|
5140
5169
|
debouncedOnResize: () => {
|
|
5141
5170
|
},
|
|
5142
|
-
isFirstPaint: !0
|
|
5171
|
+
isFirstPaint: !0,
|
|
5172
|
+
timeouts: [],
|
|
5173
|
+
groupsVisibility: {},
|
|
5174
|
+
markersPositions: {}
|
|
5143
5175
|
};
|
|
5144
5176
|
},
|
|
5145
5177
|
computed: {
|
|
@@ -5160,7 +5192,7 @@ const qt = {
|
|
|
5160
5192
|
},
|
|
5161
5193
|
lineGraphGroups() {
|
|
5162
5194
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
5163
|
-
(e, [t, r]) => r.chartType ===
|
|
5195
|
+
(e, [t, r]) => r.chartType === Y.lineGraph ? { ...e, [t]: r } : e,
|
|
5164
5196
|
{}
|
|
5165
5197
|
);
|
|
5166
5198
|
},
|
|
@@ -5172,13 +5204,13 @@ const qt = {
|
|
|
5172
5204
|
},
|
|
5173
5205
|
barGroups() {
|
|
5174
5206
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
5175
|
-
(e, [t, r]) => !r.chartType || r.chartType ===
|
|
5207
|
+
(e, [t, r]) => !r.chartType || r.chartType === Y.bars ? { ...e, [t]: r } : e,
|
|
5176
5208
|
{}
|
|
5177
5209
|
);
|
|
5178
5210
|
},
|
|
5179
5211
|
barChartGroups() {
|
|
5180
5212
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
5181
|
-
(e, [t, r]) => r.chartType ===
|
|
5213
|
+
(e, [t, r]) => r.chartType === Y.barChart ? { ...e, [t]: r } : e,
|
|
5182
5214
|
{}
|
|
5183
5215
|
);
|
|
5184
5216
|
},
|
|
@@ -5188,9 +5220,9 @@ const qt = {
|
|
|
5188
5220
|
labelRectWidth() {
|
|
5189
5221
|
return Object.values(
|
|
5190
5222
|
this.eventsGroups
|
|
5191
|
-
).reduce((r,
|
|
5192
|
-
var
|
|
5193
|
-
return Math.max(r, (
|
|
5223
|
+
).reduce((r, i) => {
|
|
5224
|
+
var a;
|
|
5225
|
+
return Math.max(r, (a = i.label) == null ? void 0 : a.length);
|
|
5194
5226
|
}, 0) * this.characterWidth + 2 * this.textPadding;
|
|
5195
5227
|
},
|
|
5196
5228
|
combinedXAxesHeight() {
|
|
@@ -5203,7 +5235,7 @@ const qt = {
|
|
|
5203
5235
|
},
|
|
5204
5236
|
filteredEventsGroups() {
|
|
5205
5237
|
const e = Object.entries(this.eventsGroups).filter(
|
|
5206
|
-
([t, r]) =>
|
|
5238
|
+
([t, r]) => this.getCurrentGroupVisibility(t)
|
|
5207
5239
|
);
|
|
5208
5240
|
return Object.fromEntries(e);
|
|
5209
5241
|
},
|
|
@@ -5260,6 +5292,20 @@ const qt = {
|
|
|
5260
5292
|
...Object.values(this.lineGraphGroups),
|
|
5261
5293
|
...Object.values(this.barChartGroups)
|
|
5262
5294
|
].map((e) => e.events).flat();
|
|
5295
|
+
},
|
|
5296
|
+
hiddenGroupsLabels() {
|
|
5297
|
+
return Object.entries(this.groupsVisibility).reduce(
|
|
5298
|
+
(e, [t, r]) => r ? e : [...e, t],
|
|
5299
|
+
[]
|
|
5300
|
+
);
|
|
5301
|
+
},
|
|
5302
|
+
minHoverZone() {
|
|
5303
|
+
return this.showLabels ? this.labelRectWidth : 0;
|
|
5304
|
+
},
|
|
5305
|
+
sortedMarkers() {
|
|
5306
|
+
return [...this.markers].sort(
|
|
5307
|
+
(e, t) => new Date(e.timestamp).getTime() > new Date(t.timestamp).getTime() ? 1 : -1
|
|
5308
|
+
);
|
|
5263
5309
|
}
|
|
5264
5310
|
},
|
|
5265
5311
|
watch: {
|
|
@@ -5269,6 +5315,9 @@ const qt = {
|
|
|
5269
5315
|
selectedTimestamp() {
|
|
5270
5316
|
this.repositionSelectedTimestampCursor();
|
|
5271
5317
|
},
|
|
5318
|
+
markers() {
|
|
5319
|
+
this.updateMarkersPositions();
|
|
5320
|
+
},
|
|
5272
5321
|
startDate() {
|
|
5273
5322
|
this.zoomToStartAndEndDates();
|
|
5274
5323
|
},
|
|
@@ -5285,6 +5334,12 @@ const qt = {
|
|
|
5285
5334
|
this.cursor.style.left = t + "px", this.isHoveringTimeline = !0;
|
|
5286
5335
|
} else
|
|
5287
5336
|
this.isHoveringTimeline = !1;
|
|
5337
|
+
},
|
|
5338
|
+
selectedDate(e) {
|
|
5339
|
+
e && this.panToTimestamp(e);
|
|
5340
|
+
},
|
|
5341
|
+
groupsVisibility() {
|
|
5342
|
+
this.updateAndRedrawTimeline();
|
|
5288
5343
|
}
|
|
5289
5344
|
},
|
|
5290
5345
|
created() {
|
|
@@ -5294,43 +5349,45 @@ const qt = {
|
|
|
5294
5349
|
this.initTimeline();
|
|
5295
5350
|
},
|
|
5296
5351
|
beforeDestroy() {
|
|
5297
|
-
document.removeEventListener("mouseup", this.handleDocumentMouseUp);
|
|
5352
|
+
this.clearTimeline(), document.removeEventListener("mouseup", this.handleDocumentMouseUp);
|
|
5298
5353
|
},
|
|
5299
5354
|
methods: {
|
|
5300
5355
|
initTimeline(e, t) {
|
|
5301
|
-
if (this.initRefs(), !this.timeline) {
|
|
5302
|
-
|
|
5356
|
+
if (this.initRefs(), !this.timeline || this.timeline.offsetWidth === 0) {
|
|
5357
|
+
this.timeouts.push(
|
|
5358
|
+
setTimeout(this.initTimeline, 500)
|
|
5359
|
+
);
|
|
5303
5360
|
return;
|
|
5304
5361
|
}
|
|
5305
|
-
this.initSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(e, t), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.initCurtains(), this.emitCurtainChange(), this.initSelectedTimestampCursor(), this.registerEventsListeners(), this.emitVisibleInterval(re.initial);
|
|
5362
|
+
this.initSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(e, t), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.curtains && (this.initCurtains(), this.emitCurtainChange()), this.initSelectedTimestampCursor(), this.updateMarkersPositions(), this.registerEventsListeners(), this.emitVisibleInterval(re.initial), this.selectedDate && this.panOnDateClick && this.panToTimestamp(this.selectedDate);
|
|
5306
5363
|
},
|
|
5307
5364
|
initRefs() {
|
|
5308
5365
|
this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp;
|
|
5309
5366
|
},
|
|
5310
5367
|
initSvg() {
|
|
5311
|
-
this.svg =
|
|
5368
|
+
this.svg = u.select(this.timeline).append("svg").attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
|
|
5312
5369
|
},
|
|
5313
5370
|
initDefs() {
|
|
5314
5371
|
const e = this.svg.append("defs");
|
|
5315
5372
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
5316
5373
|
([t, r]) => {
|
|
5317
|
-
const { color:
|
|
5318
|
-
o.append("stop").attr("offset", "0%").attr("stop-color",
|
|
5319
|
-
|
|
5374
|
+
const { color: i, chartType: a } = r, o = e.append("linearGradient").attr("id", `${Z.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
5375
|
+
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"), [Y.lineGraph, Y.barChart].includes(
|
|
5376
|
+
a
|
|
5320
5377
|
) && [
|
|
5321
5378
|
{
|
|
5322
|
-
id:
|
|
5379
|
+
id: Z.transparencyGradientLight,
|
|
5323
5380
|
stop: 38,
|
|
5324
5381
|
opacity: 0.3
|
|
5325
5382
|
},
|
|
5326
5383
|
{
|
|
5327
|
-
id:
|
|
5384
|
+
id: Z.transparencyGradient,
|
|
5328
5385
|
stop: 130,
|
|
5329
5386
|
opacity: 0.4
|
|
5330
5387
|
}
|
|
5331
|
-
].forEach(({ id:
|
|
5332
|
-
const
|
|
5333
|
-
|
|
5388
|
+
].forEach(({ id: f, stop: l, opacity: s }) => {
|
|
5389
|
+
const d = e.append("linearGradient").attr("id", `${f}-${t}`).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
|
|
5390
|
+
d.append("stop").attr("offset", "0%").style("stop-color", i).style("stop-opacity", s), d.append("stop").attr("offset", `${l}%`).style("stop-color", i).style("stop-opacity", 0);
|
|
5334
5391
|
});
|
|
5335
5392
|
}
|
|
5336
5393
|
);
|
|
@@ -5340,32 +5397,50 @@ const qt = {
|
|
|
5340
5397
|
this.utcOffset = V.parseZone(e).utcOffset();
|
|
5341
5398
|
},
|
|
5342
5399
|
initTimeScale(e, t) {
|
|
5343
|
-
const r = e || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate,
|
|
5344
|
-
this.timeScale =
|
|
5400
|
+
const r = e || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = t || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
|
|
5401
|
+
this.timeScale = u.scaleTime().domain([this.tzStringToDate(r), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
|
|
5345
5402
|
},
|
|
5346
5403
|
initXAxes() {
|
|
5347
5404
|
let e = 0;
|
|
5348
5405
|
const t = 5;
|
|
5349
5406
|
for (const r in this.xAxesConfig) {
|
|
5350
|
-
const
|
|
5351
|
-
this.xAxes[r] =
|
|
5407
|
+
const i = this.createAxis(r);
|
|
5408
|
+
this.xAxes[r] = i, this.svg.append("g").classed(h.xAxis, !0).classed(`${h.xAxis}-${r}`, !0).attr("transform", `translate(0, ${e || t})`).call(i), this.translateTicksText(r), e += this.axisHeight;
|
|
5352
5409
|
}
|
|
5353
5410
|
},
|
|
5354
5411
|
initYScale() {
|
|
5355
|
-
this.yScale =
|
|
5412
|
+
this.yScale = u.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
|
|
5356
5413
|
},
|
|
5357
5414
|
updateYScaleDomain() {
|
|
5358
|
-
const [e, t] = this.timeScale.domain(), r = this.flattenedCounts.filter((
|
|
5359
|
-
const o = new Date(
|
|
5360
|
-
return
|
|
5361
|
-
}),
|
|
5362
|
-
this.yScale.domain([0,
|
|
5415
|
+
const [e, t] = this.timeScale.domain(), r = this.flattenedCounts.filter((a) => {
|
|
5416
|
+
const o = new Date(a.startDate || a.timestamp), n = new Date(a.endDate || a.timestamp);
|
|
5417
|
+
return n >= e && n <= t || o >= e && o <= t;
|
|
5418
|
+
}), i = u.max(r, (a) => a.count);
|
|
5419
|
+
this.yScale.domain([0, i]);
|
|
5363
5420
|
},
|
|
5364
5421
|
initZoomBehavior() {
|
|
5365
|
-
this.disableZoom || (this.zoomBehavior =
|
|
5422
|
+
this.disableZoom || (this.zoomBehavior = u.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior));
|
|
5366
5423
|
},
|
|
5367
5424
|
initSelectedTimestampCursor() {
|
|
5368
|
-
this.svg.append("line").attr("class",
|
|
5425
|
+
this.svg.append("line").attr("class", h.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();
|
|
5426
|
+
},
|
|
5427
|
+
updateMarkersPositions() {
|
|
5428
|
+
this.sortedMarkers.forEach((r, i, a) => {
|
|
5429
|
+
const o = typeof r.timestamp == "string" ? this.tzStringToDate(r.timestamp) : r.timestamp, n = this.timeScale(o);
|
|
5430
|
+
let f = !1;
|
|
5431
|
+
const l = this.stickyMarkers ? Math.max(n, i * 12) : n;
|
|
5432
|
+
if (i < a.length - 1) {
|
|
5433
|
+
const s = a[i + 1], d = typeof s.timestamp == "string" ? this.tzStringToDate(s.timestamp) : s.timestamp, v = this.timeScale(d);
|
|
5434
|
+
f = (this.stickyMarkers ? Math.max(v, (i + 1) * 12) : n) - l < 200 + 12;
|
|
5435
|
+
}
|
|
5436
|
+
this.markersPositions = {
|
|
5437
|
+
...this.markersPositions,
|
|
5438
|
+
[r.id]: {
|
|
5439
|
+
isHidden: f,
|
|
5440
|
+
position: l
|
|
5441
|
+
}
|
|
5442
|
+
};
|
|
5443
|
+
});
|
|
5369
5444
|
},
|
|
5370
5445
|
updateAndRedrawTimeline() {
|
|
5371
5446
|
const { startDate: e, endDate: t } = this.getCurrentTimeBounds();
|
|
@@ -5375,7 +5450,7 @@ const qt = {
|
|
|
5375
5450
|
this.svg && this.svg.remove(), this.countsByTimestamp = {};
|
|
5376
5451
|
},
|
|
5377
5452
|
repositionSelectedTimestampCursor() {
|
|
5378
|
-
const e = this.svg.select(`.${
|
|
5453
|
+
const e = this.svg.select(`.${h.selectedTimestampCursor}`);
|
|
5379
5454
|
if (!this.selectedTimestamp) {
|
|
5380
5455
|
e.style("opacity", 0);
|
|
5381
5456
|
return;
|
|
@@ -5395,34 +5470,27 @@ const qt = {
|
|
|
5395
5470
|
if (this.visibleFrom && this.visibleFrom.getTime() === t.getTime() && this.visibleTo && this.visibleTo.getTime() === r.getTime())
|
|
5396
5471
|
return;
|
|
5397
5472
|
this.visibleFrom = t, this.visibleTo = r;
|
|
5398
|
-
const
|
|
5473
|
+
const i = this.dateToTzString(this.visibleFrom), a = this.dateToTzString(this.visibleTo);
|
|
5399
5474
|
this.$emit("visible-interval-change", {
|
|
5400
|
-
fromDate:
|
|
5401
|
-
toDate:
|
|
5475
|
+
fromDate: i,
|
|
5476
|
+
toDate: a,
|
|
5402
5477
|
trigger: e,
|
|
5403
5478
|
transform: this.transformDiff
|
|
5404
5479
|
});
|
|
5405
5480
|
},
|
|
5406
5481
|
createAxis(e) {
|
|
5407
5482
|
const t = this.xAxesConfig[e], r = this.getAxisTicksConfig(t);
|
|
5408
|
-
return
|
|
5483
|
+
return u.axisBottom(this.timeScale).ticks(r.interval).tickFormat(r.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
|
|
5409
5484
|
},
|
|
5410
5485
|
getAxisTicksConfig(e) {
|
|
5411
5486
|
const { interval: t, format: r } = e.find(
|
|
5412
|
-
(
|
|
5487
|
+
(a) => a.precision >= this.currentTimeScaleDensity && a.interval
|
|
5413
5488
|
);
|
|
5414
5489
|
return {
|
|
5415
|
-
formatFn: (
|
|
5490
|
+
formatFn: (a) => typeof r == "function" ? r(a) : u.timeFormat(r)(a),
|
|
5416
5491
|
interval: t
|
|
5417
5492
|
};
|
|
5418
5493
|
},
|
|
5419
|
-
panToTimestamp(e) {
|
|
5420
|
-
const t = this.tzStringToDate(e), r = this.timeScale(t), n = c.zoomTransform(this.svg.node()), s = n.x - r + this.timeline.offsetWidth / 2;
|
|
5421
|
-
this.svg.transition().duration(this.panTransitionDuration).call(
|
|
5422
|
-
this.zoomBehavior.transform,
|
|
5423
|
-
c.zoomIdentity.translate(s, 0).scale(n.k)
|
|
5424
|
-
), this.emitVisibleInterval(re.autoPan);
|
|
5425
|
-
},
|
|
5426
5494
|
onResize(e) {
|
|
5427
5495
|
this.isFirstPaint ? (this.handleResize(e), this.isFirstPaint = !1) : this.debouncedOnResize(e);
|
|
5428
5496
|
},
|
|
@@ -5433,13 +5501,13 @@ const qt = {
|
|
|
5433
5501
|
if (!this.showLabels)
|
|
5434
5502
|
return;
|
|
5435
5503
|
const e = this;
|
|
5436
|
-
this.svg.selectAll(`.${
|
|
5437
|
-
|
|
5438
|
-
}), this.svg.selectAll(`.${
|
|
5439
|
-
const t =
|
|
5504
|
+
this.svg.selectAll(`.${h.labelBg}`).each(function() {
|
|
5505
|
+
u.select(this).style("fill", e.dark ? "black" : "white");
|
|
5506
|
+
}), this.svg.selectAll(`.${h.labelBgFill}`).each(function() {
|
|
5507
|
+
const t = u.select(this), r = t.node().dataset.color;
|
|
5440
5508
|
t.style("fill", e.getLabelBackgroundColor(r)).style("stroke", e.getTextFillColor(r)).style("stroke-width", 0.25);
|
|
5441
|
-
}), this.svg.selectAll(`.${
|
|
5442
|
-
const t =
|
|
5509
|
+
}), this.svg.selectAll(`.${h.labelText}`).each(function() {
|
|
5510
|
+
const t = u.select(this), r = t.node().dataset.color;
|
|
5443
5511
|
t.style("fill", e.getTextFillColor(r));
|
|
5444
5512
|
});
|
|
5445
5513
|
},
|
|
@@ -5455,26 +5523,37 @@ const qt = {
|
|
|
5455
5523
|
handleMouseMove(e) {
|
|
5456
5524
|
if (this.isMouseDown)
|
|
5457
5525
|
return;
|
|
5458
|
-
const t = e.offsetX
|
|
5526
|
+
const t = e.offsetX;
|
|
5527
|
+
if (t <= this.minHoverZone) {
|
|
5528
|
+
this.isHoveringTimeline = !1;
|
|
5529
|
+
return;
|
|
5530
|
+
}
|
|
5531
|
+
const r = this.timeScale.invert(t);
|
|
5459
5532
|
this.hoveredTimestamp = this.dateToTzString(r), this.isHoveringTimeline = !0, this.$emit("hovered-timestamp", this.hoveredTimestamp), this.cursor.style.left = t + "px", this.tooltip && (this.eventTooltipStyle = {
|
|
5460
5533
|
left: `${t}px`,
|
|
5461
5534
|
bottom: `${this.timeline.getBoundingClientRect().height}px`,
|
|
5462
5535
|
zIndex: 100
|
|
5463
|
-
}
|
|
5536
|
+
});
|
|
5464
5537
|
},
|
|
5465
5538
|
handleClick(e) {
|
|
5466
|
-
const t = e.offsetX
|
|
5467
|
-
|
|
5539
|
+
const t = e.offsetX;
|
|
5540
|
+
if (t <= this.minHoverZone)
|
|
5541
|
+
return;
|
|
5542
|
+
const r = this.timeScale.invert(t), i = this.dateToTzString(r);
|
|
5543
|
+
this.$emit("date-clicked", i), this.isHoveringEvent && this.$emit("event-clicked", {
|
|
5468
5544
|
event: this.hoveredEvent,
|
|
5469
5545
|
type: this.hoveredEventType
|
|
5470
|
-
}), this.panOnDateClick && this.panToTimestamp(
|
|
5546
|
+
}), this.panOnDateClick && this.panToTimestamp(i);
|
|
5547
|
+
},
|
|
5548
|
+
handleMarkerClick(e) {
|
|
5549
|
+
this.$emit("marker-clicked", e), this.panToTimestamp(e.timestamp);
|
|
5471
5550
|
},
|
|
5472
5551
|
handleLineMouseOver(e, t, r) {
|
|
5473
5552
|
this.hoveredCounts = Object.entries(
|
|
5474
5553
|
this.countsByTimestamp[`${t.timestamp}`]
|
|
5475
|
-
).reduce((
|
|
5476
|
-
const [o,
|
|
5477
|
-
return [...
|
|
5554
|
+
).reduce((i, a) => {
|
|
5555
|
+
const [o, n] = a;
|
|
5556
|
+
return [...i, { type: o, count: n }];
|
|
5478
5557
|
}, []), this.hoveredEvent = t, this.isHoveringEvent = !0, this.$emit("event-mouseover", {
|
|
5479
5558
|
eventData: t,
|
|
5480
5559
|
eventType: r,
|
|
@@ -5485,26 +5564,26 @@ const qt = {
|
|
|
5485
5564
|
this.isHoveringEvent = !1, this.hoveredCounts = [], this.$emit("event-mouseout");
|
|
5486
5565
|
},
|
|
5487
5566
|
handleBarMouseOver(e, t, r) {
|
|
5488
|
-
this.hoveredEvent = t, this.hoveredEventType = r, this.isHoveringEvent = !0, this.$emit("event-mouseover", { eventData: t, eventType: r });
|
|
5567
|
+
e.offsetX <= this.minHoverZone || (this.hoveredEvent = t, this.hoveredEventType = r, this.isHoveringEvent = !0, this.$emit("event-mouseover", { eventData: t, eventType: r }));
|
|
5489
5568
|
},
|
|
5490
5569
|
handleBarMouseOut() {
|
|
5491
5570
|
this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
|
|
5492
5571
|
},
|
|
5493
5572
|
handleLabelMouseOver(e) {
|
|
5494
|
-
|
|
5495
|
-
`${
|
|
5573
|
+
u.selectAll(`.${h.lineGraphGroup}-${e}`).classed(
|
|
5574
|
+
`${h.lineGraphGroup}--highlighted`,
|
|
5496
5575
|
!0
|
|
5497
|
-
),
|
|
5498
|
-
`${
|
|
5576
|
+
), u.selectAll(`.${h.lineGraphGroup}-label`).classed(
|
|
5577
|
+
`${h.lineGraphGroup}-label--highlighted`,
|
|
5499
5578
|
!0
|
|
5500
5579
|
);
|
|
5501
5580
|
},
|
|
5502
5581
|
handleLabelMouseLeave(e) {
|
|
5503
|
-
|
|
5504
|
-
`${
|
|
5582
|
+
u.selectAll(`.${h.lineGraphGroup}-${e}`).classed(
|
|
5583
|
+
`${h.lineGraphGroup}--highlighted`,
|
|
5505
5584
|
!1
|
|
5506
|
-
),
|
|
5507
|
-
`${
|
|
5585
|
+
), u.selectAll(`.${h.lineGraphGroup}-label`).classed(
|
|
5586
|
+
`${h.lineGraphGroup}-label--highlighted`,
|
|
5508
5587
|
!1
|
|
5509
5588
|
);
|
|
5510
5589
|
},
|
|
@@ -5516,9 +5595,16 @@ const qt = {
|
|
|
5516
5595
|
scale: r,
|
|
5517
5596
|
translation: e.transform.x - this.lastTransform.x
|
|
5518
5597
|
}, this.lastTransform = { ...e.transform };
|
|
5519
|
-
for (const
|
|
5520
|
-
this.rescaleAxis(
|
|
5521
|
-
this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.emitVisibleInterval(re.zoom), this.curtains && this.emitCurtainChange();
|
|
5598
|
+
for (const i in this.xAxes)
|
|
5599
|
+
this.rescaleAxis(i, t), this.translateTicksText(i);
|
|
5600
|
+
this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.updateMarkersPositions(), this.emitVisibleInterval(re.zoom), this.curtains && this.emitCurtainChange();
|
|
5601
|
+
},
|
|
5602
|
+
panToTimestamp(e) {
|
|
5603
|
+
const t = this.tzStringToDate(e), r = this.timeScale(t), i = u.zoomTransform(this.svg.node()), a = i.x - r + this.timeline.offsetWidth / 2;
|
|
5604
|
+
this.svg.transition().duration(this.panTransitionDuration).call(
|
|
5605
|
+
this.zoomBehavior.transform,
|
|
5606
|
+
u.zoomIdentity.translate(a, 0).scale(i.k)
|
|
5607
|
+
), this.emitVisibleInterval(re.autoPan);
|
|
5522
5608
|
},
|
|
5523
5609
|
emitCurtainChange() {
|
|
5524
5610
|
const { startDate: e, endDate: t } = this.calculateDateRangeFromCurtains();
|
|
@@ -5528,15 +5614,8 @@ const qt = {
|
|
|
5528
5614
|
});
|
|
5529
5615
|
},
|
|
5530
5616
|
calculateDateRangeFromCurtains() {
|
|
5531
|
-
const e = this.timeline.offsetWidth, t = this.timeScale.domain(), r = t[1].getTime() - t[0].getTime(),
|
|
5532
|
-
return { startDate: o, endDate:
|
|
5533
|
-
},
|
|
5534
|
-
updateCurtainsOnResize(e) {
|
|
5535
|
-
const { startDate: t, endDate: r } = this.calculateDateRangeFromCurtains(), n = this.timeScale.domain(), s = n[1].getTime() - n[0].getTime(), o = t.getTime() - n[0].getTime(), i = n[1].getTime() - r.getTime();
|
|
5536
|
-
this.leftCurtainWidth = o / s * e, this.rightCurtainWidth = i / s * e, this.svg.select(`.${p.curtain}--left`).attr("width", this.leftCurtainWidth), this.svg.select(`.${p.curtain}--right`).attr(
|
|
5537
|
-
"x",
|
|
5538
|
-
e - this.rightCurtainWidth + this.curtainHandleWidth * 2
|
|
5539
|
-
).attr("width", this.rightCurtainWidth);
|
|
5617
|
+
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);
|
|
5618
|
+
return { startDate: o, endDate: n };
|
|
5540
5619
|
},
|
|
5541
5620
|
handleDragStart() {
|
|
5542
5621
|
this.isDraggingCurtain = !0;
|
|
@@ -5550,54 +5629,57 @@ const qt = {
|
|
|
5550
5629
|
e.x,
|
|
5551
5630
|
this.timeline.offsetWidth - this.rightCurtainWidth
|
|
5552
5631
|
);
|
|
5553
|
-
this.leftCurtainWidth = Math.max(0, t), this.svg.select(`.${
|
|
5632
|
+
this.leftCurtainWidth = Math.max(0, t), this.svg.select(`.${h.curtain}--left`).attr("width", this.leftCurtainWidth), this.emitCurtainChange();
|
|
5554
5633
|
},
|
|
5555
5634
|
handleRightDrag(e) {
|
|
5556
5635
|
e.sourceEvent.stopPropagation();
|
|
5557
5636
|
const t = this.timeline.offsetWidth, r = Math.min(
|
|
5558
5637
|
this.timeline.offsetWidth - e.x,
|
|
5559
5638
|
this.timeline.offsetWidth - this.leftCurtainWidth
|
|
5560
|
-
),
|
|
5561
|
-
this.rightCurtainWidth = Math.max(0, r), this.svg.select(`.${
|
|
5639
|
+
), i = t - r;
|
|
5640
|
+
this.rightCurtainWidth = Math.max(0, r), this.svg.select(`.${h.curtain}--right`).attr("width", this.rightCurtainWidth).attr("x", i), this.emitCurtainChange();
|
|
5562
5641
|
},
|
|
5563
5642
|
zoomToStartAndEndDates() {
|
|
5564
|
-
const e = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, t = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, r = this.tzStringToDate(e),
|
|
5565
|
-
this.timeScale =
|
|
5566
|
-
for (const
|
|
5567
|
-
this.rescaleAxis(
|
|
5568
|
-
this.updateEventsBars(), this.updateLineGraphs(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor();
|
|
5643
|
+
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];
|
|
5644
|
+
this.timeScale = u.scaleTime().domain(o).range(n), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
|
|
5645
|
+
for (const f in this.xAxes)
|
|
5646
|
+
this.rescaleAxis(f, this.timeScale), this.translateTicksText(f);
|
|
5647
|
+
this.updateEventsBars(), this.updateLineGraphs(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.updateMarkersPositions();
|
|
5569
5648
|
},
|
|
5570
5649
|
rescaleAxis(e, t) {
|
|
5571
|
-
const r = this.xAxes[e],
|
|
5650
|
+
const r = this.xAxes[e], i = this.getAxisTicksConfig(
|
|
5572
5651
|
this.xAxesConfig[e]
|
|
5573
5652
|
);
|
|
5574
|
-
r.scale(t).ticks(
|
|
5653
|
+
r.scale(t).ticks(i.interval).tickFormat(i.formatFn).tickSizeOuter(0), this.svg.select(`.${h.xAxis}-${e}`).call(r);
|
|
5575
5654
|
},
|
|
5576
5655
|
translateTicksText(e) {
|
|
5577
|
-
this.svg.select(`.${
|
|
5578
|
-
let t =
|
|
5656
|
+
this.svg.select(`.${h.xAxis}-${e}`).selectAll(".tick text").each(function() {
|
|
5657
|
+
let t = u.select(this), r = t.node().getBBox();
|
|
5579
5658
|
t.attr("x", r.height / 2).attr("y", 0).style("text-anchor", "start");
|
|
5580
5659
|
});
|
|
5581
5660
|
},
|
|
5582
5661
|
updateEventsBars() {
|
|
5583
|
-
const e = `.${
|
|
5662
|
+
const e = `.${h.eventGroup} > rect.${h.eventRect}`;
|
|
5584
5663
|
this.svg.selectAll(e).attr("x", this.getEventRectX).attr("width", this.getEventRectWidth);
|
|
5585
|
-
const t = `.${
|
|
5664
|
+
const t = `.${h.eventGroup} > text.${h.eventRectText}`;
|
|
5586
5665
|
this.svg.selectAll(t).attr("x", (r) => this.getEventRectX(r) + this.textPadding).text(this.getEventText);
|
|
5587
5666
|
},
|
|
5588
5667
|
updateBarChart() {
|
|
5589
|
-
const e =
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5668
|
+
const e = Object.keys(this.barChartGroups).length;
|
|
5669
|
+
Object.keys(this.barChartGroups).forEach((t, r) => {
|
|
5670
|
+
const i = (c) => (this.getEventRectWidth(c) - this.barXPadding * 2) / e, a = (c) => this.yScale.range()[0] - this.yScale(c.count), o = (c) => this.getEventRectX(c) + this.barXPadding + r * i(c), n = (c) => this.yScale(c.count), f = `.${h.eventBarContainer}-${t}`, l = this.svg.selectAll(f), s = `.${h.barChartGroup} rect.${h.eventBarHoverZone}`;
|
|
5671
|
+
l.selectAll(s).attr("x", o).attr("width", i);
|
|
5672
|
+
const d = `.${h.barChartGroup} rect.${h.eventBar}`;
|
|
5673
|
+
l.selectAll(d).attr("x", o).attr("width", i).attr("y", n).attr("height", a);
|
|
5674
|
+
const v = `.${h.barChartGroup} rect.${h.eventBarCap}`;
|
|
5675
|
+
l.selectAll(v).attr("x", o).attr("width", i).attr("y", n);
|
|
5676
|
+
});
|
|
5595
5677
|
},
|
|
5596
5678
|
updateLineGraphs() {
|
|
5597
5679
|
Object.entries(this.lineGraphGroups).forEach(([e]) => {
|
|
5598
|
-
const t =
|
|
5680
|
+
const t = u.area().x((r) => this.timeScale(this.tzStringToDate(r.timestamp))).y0(this.timelineHeight).y1((r) => this.yScale(r.count)).curve(u.curveMonotoneX);
|
|
5599
5681
|
this.svg.selectAll(
|
|
5600
|
-
`.${
|
|
5682
|
+
`.${h.lineGraphPath}-${e}`
|
|
5601
5683
|
).attr("d", (r) => t(r));
|
|
5602
5684
|
});
|
|
5603
5685
|
},
|
|
@@ -5605,14 +5687,14 @@ const qt = {
|
|
|
5605
5687
|
Object.keys(this.lineGraphGroups).forEach((e) => {
|
|
5606
5688
|
const t = this;
|
|
5607
5689
|
this.svg.selectAll(
|
|
5608
|
-
`.${
|
|
5690
|
+
`.${h.lineGraphDot}-${e}`
|
|
5609
5691
|
).each(function(r) {
|
|
5610
|
-
|
|
5692
|
+
u.select(this).attr("cx", t.timeScale(t.tzStringToDate(r.timestamp))).attr("cy", t.yScale(r.count));
|
|
5611
5693
|
}), this.svg.selectAll(
|
|
5612
|
-
`.${
|
|
5694
|
+
`.${h.lineGraphHoverZone}-${e}`
|
|
5613
5695
|
).each(function(r) {
|
|
5614
|
-
const
|
|
5615
|
-
|
|
5696
|
+
const i = t.timeScale(t.tzStringToDate(r.timestamp).getTime()) - 15;
|
|
5697
|
+
u.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", t.chartHeight);
|
|
5616
5698
|
});
|
|
5617
5699
|
});
|
|
5618
5700
|
},
|
|
@@ -5623,65 +5705,66 @@ const qt = {
|
|
|
5623
5705
|
if (!e)
|
|
5624
5706
|
return 0;
|
|
5625
5707
|
if (e.startDate && e.endDate) {
|
|
5626
|
-
const t = new Date(e.startDate), r = new Date(e.endDate),
|
|
5627
|
-
return Math.max(
|
|
5708
|
+
const t = new Date(e.startDate), r = new Date(e.endDate), i = this.timeScale(r) - this.timeScale(t);
|
|
5709
|
+
return Math.max(i, this.rectMinWidth);
|
|
5628
5710
|
} else {
|
|
5629
5711
|
const t = 1 / (this.currentTimeScaleDensity * 3600);
|
|
5630
5712
|
return Math.max(t, this.rectMinWidth);
|
|
5631
5713
|
}
|
|
5632
5714
|
},
|
|
5633
5715
|
getEventText(e) {
|
|
5634
|
-
var
|
|
5716
|
+
var i;
|
|
5635
5717
|
const r = (this.getEventRectWidth(e) - this.textPadding) / this.characterWidth;
|
|
5636
|
-
return r < 4 ? "" : ((
|
|
5718
|
+
return r < 4 ? "" : ((i = e.text) == null ? void 0 : i.length) <= r ? e.text : `${e.text.slice(0, r - 3)}...`;
|
|
5637
5719
|
},
|
|
5638
5720
|
initCurtains() {
|
|
5639
5721
|
if (!this.curtains)
|
|
5640
5722
|
return;
|
|
5641
5723
|
const e = this.timeline.offsetWidth, t = this.timelineHeight;
|
|
5642
|
-
this.svg.append("rect").classed(`${
|
|
5643
|
-
|
|
5644
|
-
), this.svg.append("rect").classed(`${
|
|
5724
|
+
this.svg.append("rect").classed(`${h.curtain} ${h.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(
|
|
5725
|
+
u.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
|
|
5726
|
+
), this.svg.append("rect").classed(`${h.curtain} ${h.curtain}--right`, !0).attr(
|
|
5645
5727
|
"x",
|
|
5646
5728
|
e - this.rightCurtainWidth + this.curtainHandleWidth * 2
|
|
5647
5729
|
).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(
|
|
5648
|
-
|
|
5730
|
+
u.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
|
|
5649
5731
|
);
|
|
5650
5732
|
},
|
|
5651
5733
|
drawEventsGroups() {
|
|
5652
|
-
this.svg.selectAll(`g.${
|
|
5734
|
+
this.svg.selectAll(`g.${h.eventGroup}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups(), this.drawBarChartEventsGroups();
|
|
5653
5735
|
},
|
|
5654
5736
|
drawLineGraphEventsGroups() {
|
|
5655
5737
|
const e = this.combinedXAxesHeight, t = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
|
|
5656
|
-
Object.entries(t).forEach(([r,
|
|
5657
|
-
const
|
|
5658
|
-
`${
|
|
5738
|
+
Object.entries(t).forEach(([r, i]) => {
|
|
5739
|
+
const a = this.svg.append("g").classed(
|
|
5740
|
+
`${h.lineGraphGroup} ${h.lineGraphGroup}-${r}`,
|
|
5659
5741
|
!0
|
|
5660
|
-
).attr("transform", `translate(0,${e})`), { color: o, events:
|
|
5742
|
+
).attr("transform", `translate(0,${e})`), { color: o, events: n } = i;
|
|
5661
5743
|
this.drawLineGraph({
|
|
5662
|
-
events:
|
|
5663
|
-
gElement:
|
|
5744
|
+
events: n,
|
|
5745
|
+
gElement: a,
|
|
5664
5746
|
color: o,
|
|
5665
5747
|
type: r
|
|
5666
5748
|
}), this.drawLineGraphHoverZones({
|
|
5667
|
-
events:
|
|
5668
|
-
gElement:
|
|
5749
|
+
events: n,
|
|
5750
|
+
gElement: a,
|
|
5669
5751
|
color: o,
|
|
5670
5752
|
type: r
|
|
5671
5753
|
});
|
|
5672
5754
|
}), Object.entries(this.lineGraphGroups).forEach(
|
|
5673
|
-
([r,
|
|
5674
|
-
const { color: o, isLoading:
|
|
5755
|
+
([r, i], a) => {
|
|
5756
|
+
const { color: o, isLoading: n, label: f } = i, l = this.chartHeight - this.barChartHeight * (a + 1), s = e + this.chartHeight - this.barChartHeight, d = this.svg.append("g").classed(`${h.lineGraphGroup}-label`, !0).attr("transform", `translate(0,${e})`).on("mouseover", () => this.handleLabelMouseOver(r)).on("mouseleave", () => this.handleLabelMouseLeave(r));
|
|
5675
5757
|
this.drawProgressIndicator({
|
|
5676
5758
|
type: r,
|
|
5677
5759
|
color: o,
|
|
5678
|
-
isLoading:
|
|
5679
|
-
yPosition:
|
|
5760
|
+
isLoading: n,
|
|
5761
|
+
yPosition: s
|
|
5680
5762
|
}), this.drawTextLabel({
|
|
5681
5763
|
color: o,
|
|
5682
|
-
label:
|
|
5764
|
+
label: f,
|
|
5765
|
+
type: r,
|
|
5683
5766
|
yPosition: l,
|
|
5684
|
-
gElement:
|
|
5767
|
+
gElement: d
|
|
5685
5768
|
});
|
|
5686
5769
|
}
|
|
5687
5770
|
);
|
|
@@ -5690,82 +5773,84 @@ const qt = {
|
|
|
5690
5773
|
events: e,
|
|
5691
5774
|
gElement: t,
|
|
5692
5775
|
color: r,
|
|
5693
|
-
type:
|
|
5776
|
+
type: i
|
|
5694
5777
|
}) {
|
|
5695
|
-
const
|
|
5696
|
-
t.append("defs").append("clipPath").attr("id", o).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), t.append("path").datum(e).classed(`${
|
|
5778
|
+
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}`;
|
|
5779
|
+
t.append("defs").append("clipPath").attr("id", o).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), t.append("path").datum(e).classed(`${h.lineGraphPath}-${i}`, !0).attr("fill", `url(#${Z.transparencyGradientLight}-${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})`);
|
|
5697
5780
|
},
|
|
5698
5781
|
drawLineGraphHoverZones({
|
|
5699
5782
|
events: e,
|
|
5700
5783
|
gElement: t,
|
|
5701
5784
|
color: r,
|
|
5702
|
-
type:
|
|
5785
|
+
type: i
|
|
5703
5786
|
}) {
|
|
5704
|
-
e.forEach((
|
|
5705
|
-
const o = `${
|
|
5787
|
+
e.forEach((a) => {
|
|
5788
|
+
const o = `${a.timestamp}`;
|
|
5706
5789
|
this.countsByTimestamp[o] = {
|
|
5707
5790
|
...this.countsByTimestamp[o] || {},
|
|
5708
|
-
[
|
|
5791
|
+
[i]: a.count
|
|
5709
5792
|
};
|
|
5710
|
-
const
|
|
5711
|
-
`${
|
|
5793
|
+
const n = t.append("circle").classed(
|
|
5794
|
+
`${h.lineGraphDot} ${h.lineGraphDot}-${i}`,
|
|
5712
5795
|
!0
|
|
5713
|
-
).attr("cx", this.timeScale(this.tzStringToDate(
|
|
5796
|
+
).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);
|
|
5714
5797
|
this.dotsByTimestamp[o] = [
|
|
5715
5798
|
...this.dotsByTimestamp[o] || [],
|
|
5716
|
-
|
|
5717
|
-
], t.append("rect").classed(`${
|
|
5718
|
-
this.handleLineMouseOver(
|
|
5719
|
-
(l) => l.classed(`${
|
|
5799
|
+
n
|
|
5800
|
+
], t.append("rect").classed(`${h.lineGraphHoverZone}-${i}`, !0).attr("x", this.timeScale(this.tzStringToDate(a.timestamp)) - 15).attr("y", 0).attr("width", 30).attr("height", this.chartHeight).attr("fill", "transparent").datum(a).on("mouseover", (f) => {
|
|
5801
|
+
this.handleLineMouseOver(f, a, i), this.dotsByTimestamp[o].forEach(
|
|
5802
|
+
(l) => l.classed(`${h.lineGraphDot}--active`, !0)
|
|
5720
5803
|
);
|
|
5721
5804
|
}).on("mouseout", () => {
|
|
5722
5805
|
this.handleLineMouseOut(), this.dotsByTimestamp[o].forEach(
|
|
5723
|
-
(
|
|
5806
|
+
(f) => f.classed(`${h.lineGraphDot}--active`, !1)
|
|
5724
5807
|
);
|
|
5725
5808
|
});
|
|
5726
5809
|
});
|
|
5727
5810
|
},
|
|
5728
5811
|
drawBarEventsGroups() {
|
|
5729
5812
|
Object.entries(this.barGroups).forEach(([e, t], r) => {
|
|
5730
|
-
const { color:
|
|
5813
|
+
const { color: i, bgColor: a, label: o, events: n, isLoading: f } = t, l = this.hasChart ? this.chartHeight : 0, s = r * this.barChartHeight + this.combinedXAxesHeight + l;
|
|
5731
5814
|
this.drawProgressIndicator({
|
|
5732
|
-
yPosition:
|
|
5815
|
+
yPosition: s,
|
|
5733
5816
|
type: e,
|
|
5734
|
-
color:
|
|
5735
|
-
isLoading:
|
|
5817
|
+
color: i,
|
|
5818
|
+
isLoading: f
|
|
5736
5819
|
});
|
|
5737
|
-
const
|
|
5820
|
+
const d = this.svg.append("g").attr("data-color", i).classed(h.eventGroup, !0).classed(`${h.eventGroup}-${e}`, !0);
|
|
5738
5821
|
this.drawBackground({
|
|
5739
|
-
color:
|
|
5740
|
-
gElement:
|
|
5741
|
-
yPosition:
|
|
5822
|
+
color: a || i,
|
|
5823
|
+
gElement: d,
|
|
5824
|
+
yPosition: s
|
|
5742
5825
|
}), this.drawBars({
|
|
5743
|
-
events:
|
|
5744
|
-
color:
|
|
5745
|
-
gElement:
|
|
5746
|
-
yPosition:
|
|
5826
|
+
events: n,
|
|
5827
|
+
color: i,
|
|
5828
|
+
gElement: d,
|
|
5829
|
+
yPosition: s,
|
|
5747
5830
|
type: e
|
|
5748
5831
|
}), this.drawTextLabel({
|
|
5749
|
-
color:
|
|
5832
|
+
color: i,
|
|
5750
5833
|
label: o,
|
|
5751
|
-
|
|
5752
|
-
|
|
5834
|
+
type: e,
|
|
5835
|
+
gElement: d,
|
|
5836
|
+
yPosition: s
|
|
5753
5837
|
});
|
|
5754
5838
|
});
|
|
5755
5839
|
},
|
|
5756
5840
|
drawBarChartEventsGroups() {
|
|
5757
5841
|
const e = this.combinedXAxesHeight, t = this.barChartGroups;
|
|
5758
|
-
Object.entries(t).forEach(([r,
|
|
5759
|
-
const
|
|
5760
|
-
`${
|
|
5842
|
+
Object.entries(t).forEach(([r, i], a) => {
|
|
5843
|
+
const o = this.svg.append("g").classed(
|
|
5844
|
+
`${h.barChartGroup} ${h.barChartGroup}-${r}`,
|
|
5761
5845
|
!0
|
|
5762
|
-
).attr("transform", `translate(0,${e})`), { color:
|
|
5846
|
+
).attr("transform", `translate(0,${e})`), { color: n, events: f } = i;
|
|
5763
5847
|
this.drawBarsChart({
|
|
5764
|
-
events:
|
|
5765
|
-
color:
|
|
5766
|
-
gElement:
|
|
5848
|
+
events: f,
|
|
5849
|
+
color: n,
|
|
5850
|
+
gElement: o,
|
|
5767
5851
|
yOffset: e,
|
|
5768
|
-
type: r
|
|
5852
|
+
type: r,
|
|
5853
|
+
index: a
|
|
5769
5854
|
});
|
|
5770
5855
|
});
|
|
5771
5856
|
},
|
|
@@ -5775,93 +5860,148 @@ const qt = {
|
|
|
5775
5860
|
isLoading: r
|
|
5776
5861
|
}) {
|
|
5777
5862
|
this.svg.append("rect").classed(
|
|
5778
|
-
`${
|
|
5863
|
+
`${h.loadingIndicator} ${h.loadingIndicator}-${t}`,
|
|
5779
5864
|
!0
|
|
5780
|
-
).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${
|
|
5865
|
+
).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Z.loadingGradient}-${t})`).style("visibility", r ? "visible" : "hidden");
|
|
5781
5866
|
},
|
|
5782
5867
|
drawBackground({
|
|
5783
5868
|
color: e,
|
|
5784
5869
|
yPosition: t,
|
|
5785
5870
|
gElement: r
|
|
5786
5871
|
}) {
|
|
5787
|
-
r.append("rect").attr("class",
|
|
5872
|
+
r.append("rect").attr("class", h.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);
|
|
5788
5873
|
},
|
|
5789
5874
|
drawBars({
|
|
5790
5875
|
events: e,
|
|
5791
5876
|
gElement: t,
|
|
5792
5877
|
yPosition: r,
|
|
5793
|
-
color:
|
|
5794
|
-
type:
|
|
5878
|
+
color: i,
|
|
5879
|
+
type: a
|
|
5795
5880
|
}) {
|
|
5796
5881
|
const o = this;
|
|
5797
|
-
t.selectAll(
|
|
5882
|
+
t.selectAll(h.eventRect).data(e).enter().append("rect").attr(
|
|
5798
5883
|
"class",
|
|
5799
|
-
(
|
|
5800
|
-
).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", (
|
|
5801
|
-
|
|
5884
|
+
(n) => h.eventRect + (n.className ? ` ${n.className}` : "")
|
|
5885
|
+
).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, f) {
|
|
5886
|
+
u.select(this).classed(h.eventRectHovered, !0), o.handleBarMouseOver(n, f, a);
|
|
5802
5887
|
}).on("mouseout", function() {
|
|
5803
|
-
|
|
5804
|
-
}), t.selectAll(
|
|
5888
|
+
u.select(this).classed(h.eventRectHovered, !1), o.handleBarMouseOut();
|
|
5889
|
+
}), t.selectAll(h.eventRectText).data(e.filter((n) => !!n.text)).enter().append("text").attr("class", h.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(
|
|
5805
5890
|
"fill",
|
|
5806
|
-
(
|
|
5891
|
+
(n) => this.getTextFillColor(n.color || i, 0.75)
|
|
5807
5892
|
).text(this.getEventText);
|
|
5808
5893
|
},
|
|
5809
5894
|
drawBarsChart({
|
|
5810
5895
|
events: e,
|
|
5811
5896
|
gElement: t,
|
|
5812
5897
|
color: r,
|
|
5813
|
-
yOffset:
|
|
5814
|
-
type:
|
|
5898
|
+
yOffset: i,
|
|
5899
|
+
type: a,
|
|
5900
|
+
index: o
|
|
5815
5901
|
}) {
|
|
5816
|
-
const
|
|
5817
|
-
t.selectAll(p.eventBarHoverZone).data(e).enter().append("rect").attr(
|
|
5902
|
+
const n = this, f = Object.keys(this.barChartGroups).length, l = (g) => (this.getEventRectWidth(g) - this.barXPadding * 2) / f, s = (g) => this.yScale.range()[0] - this.yScale(g.count), d = (g) => this.getEventRectX(g) + this.barXPadding + o * l(g), v = (g) => this.yScale(g.count), c = t.selectAll(h.eventBarContainer).data(e).enter().append("g").attr(
|
|
5818
5903
|
"class",
|
|
5819
|
-
|
|
5820
|
-
)
|
|
5821
|
-
|
|
5822
|
-
f.classed(`${p.eventBarHoverZone}--hovered`, !0), f.attr("fill-opacity", 0.2), o.handleBarMouseOver(u, v, s);
|
|
5823
|
-
}).on("mouseout", function() {
|
|
5824
|
-
const u = c.select(this);
|
|
5825
|
-
u.attr("fill-opacity", 0), u.classed(`${p.eventBarHoverZone}--hovered`, !1), o.handleBarMouseOut();
|
|
5826
|
-
}), t.selectAll(p.eventBar).data(e).enter().append("rect").attr(
|
|
5904
|
+
`${h.eventBarContainer} ${h.eventBarContainer}-${a}`
|
|
5905
|
+
);
|
|
5906
|
+
c.append("rect").attr(
|
|
5827
5907
|
"class",
|
|
5828
|
-
(
|
|
5829
|
-
).attr("x",
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
const u = c.select(this);
|
|
5834
|
-
u.attr("fill", `url(#${Y.transparencyGradient}-${s})`), u.attr("fill-opacity", 1), u.classed(`${p.eventBar}--hovered`, !1), o.handleBarMouseOut();
|
|
5835
|
-
}), t.selectAll(p.eventBarCap).data(e).enter().append("rect").attr(
|
|
5908
|
+
(g) => h.eventBarHoverZone + (g.className ? ` ${g.className}` : "")
|
|
5909
|
+
).attr("x", d).attr("y", -i).attr("width", l).attr("height", this.yScale.range()[0] + i).attr("fill", (g) => g.color || r).attr("fill-opacity", 0), c.append("rect").attr(
|
|
5910
|
+
"class",
|
|
5911
|
+
(g) => h.eventBar + (g.className ? ` ${g.className}` : "")
|
|
5912
|
+
).attr("x", d).attr("y", v).attr("width", l).attr("height", s).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${Z.transparencyGradient}-${a})`), c.append("rect").attr(
|
|
5836
5913
|
"class",
|
|
5837
|
-
(
|
|
5838
|
-
).attr("x",
|
|
5914
|
+
(g) => h.eventBarCap + (g.className ? ` ${g.className}` : "")
|
|
5915
|
+
).attr("x", d).attr("y", v).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (g) => g.color || r), c.on("mouseover", function(g, x) {
|
|
5916
|
+
const k = u.select(this);
|
|
5917
|
+
n.onBarChartBarMouseOver(k, r), n.handleBarMouseOver(g, x, a);
|
|
5918
|
+
}).on("mouseout", function() {
|
|
5919
|
+
const g = u.select(this);
|
|
5920
|
+
n.onBarChartBarMouseOut(g, a), n.handleBarMouseOut();
|
|
5921
|
+
}).on("click", function() {
|
|
5922
|
+
t.selectAll(`.${h.eventBarContainerSelected}`).classed(h.eventBarContainerSelected, !1), u.select(this).classed(h.eventBarContainerSelected, !0);
|
|
5923
|
+
});
|
|
5924
|
+
},
|
|
5925
|
+
onBarChartBarMouseOver(e, t) {
|
|
5926
|
+
e.classed(h.eventBarContainerHovered, !0), e.selectAll(`.${h.eventBarHoverZone}`).attr("fill-opacity", 0.2);
|
|
5927
|
+
const i = e.selectAll(`.${h.eventBar}`);
|
|
5928
|
+
i.attr("fill", t), i.attr("fill-opacity", 0.5);
|
|
5929
|
+
},
|
|
5930
|
+
onBarChartBarMouseOut(e, t) {
|
|
5931
|
+
e.classed(h.eventBarContainerHovered, !1), e.selectAll(`.${h.eventBarHoverZone}`).attr("fill-opacity", 0);
|
|
5932
|
+
const i = e.selectAll(`.${h.eventBar}`);
|
|
5933
|
+
i.attr("fill", `url(#${Z.transparencyGradient}-${t})`), i.attr("fill-opacity", 1);
|
|
5839
5934
|
},
|
|
5840
5935
|
drawTextLabel({
|
|
5841
5936
|
gElement: e,
|
|
5842
5937
|
yPosition: t,
|
|
5843
5938
|
color: r,
|
|
5844
|
-
label:
|
|
5939
|
+
label: i,
|
|
5940
|
+
type: a
|
|
5845
5941
|
}) {
|
|
5846
5942
|
if (!this.showLabels)
|
|
5847
5943
|
return;
|
|
5848
|
-
const
|
|
5944
|
+
const o = {
|
|
5849
5945
|
x: -5,
|
|
5850
5946
|
y: t,
|
|
5851
5947
|
w: this.labelRectWidth,
|
|
5852
5948
|
h: this.barChartHeight,
|
|
5853
5949
|
radius: 3
|
|
5854
|
-
};
|
|
5855
|
-
|
|
5950
|
+
}, n = e.append("g").attr("class", `${h.labelGroup} ${h.labelGroup}-${a}`).style("cursor", "pointer").on("click", () => this.toggleGroupVisibility(a));
|
|
5951
|
+
n.append("rect").attr("class", h.labelBg).attr("data-color", r).attr("x", o.x).attr("y", o.y).attr("width", o.w).attr("height", o.h).attr("rx", o.radius).attr("ry", o.radius).style("fill", this.dark ? "#131a29" : "white"), n.append("rect").attr("class", h.labelBgFill).attr("data-color", r).attr("x", o.x).attr("y", o.y).attr("width", o.w).attr("height", o.h).attr("rx", o.radius).attr("ry", o.radius).style("fill", this.getLabelBackgroundColor(r)).style("stroke", this.getTextFillColor(r)).style("stroke-width", 0.25), n.append("text").attr("class", h.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);
|
|
5856
5952
|
},
|
|
5857
5953
|
getTextFillColor(e, t = 0) {
|
|
5858
|
-
var r,
|
|
5859
|
-
return (this.dark ? (r =
|
|
5954
|
+
var r, i;
|
|
5955
|
+
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();
|
|
5860
5956
|
},
|
|
5861
5957
|
getLabelBackgroundColor(e) {
|
|
5862
|
-
let t =
|
|
5958
|
+
let t = u.color(e);
|
|
5863
5959
|
return t.opacity = this.dark ? 0.2 : 0.5, t.toString();
|
|
5864
5960
|
},
|
|
5961
|
+
getCurrentGroupVisibility(e) {
|
|
5962
|
+
const t = this.groupsVisibility[e];
|
|
5963
|
+
if (t !== void 0)
|
|
5964
|
+
return t;
|
|
5965
|
+
const r = this.eventsGroups[e].isHidden;
|
|
5966
|
+
return r !== void 0 ? !r : !0;
|
|
5967
|
+
},
|
|
5968
|
+
toggleGroupVisibility(e) {
|
|
5969
|
+
this.groupsVisibility = {
|
|
5970
|
+
...this.groupsVisibility,
|
|
5971
|
+
[e]: !this.getCurrentGroupVisibility(e)
|
|
5972
|
+
};
|
|
5973
|
+
},
|
|
5974
|
+
getExternalLabelStyles(e) {
|
|
5975
|
+
const t = this.eventsGroups[e].color;
|
|
5976
|
+
return {
|
|
5977
|
+
background: this.getLabelBackgroundColor(t),
|
|
5978
|
+
color: this.getTextFillColor(t)
|
|
5979
|
+
};
|
|
5980
|
+
},
|
|
5981
|
+
getExternalLabelWrapperStyles(e) {
|
|
5982
|
+
const t = this.eventsGroups[e].color;
|
|
5983
|
+
return {
|
|
5984
|
+
borderColor: this.getTextFillColor(t)
|
|
5985
|
+
};
|
|
5986
|
+
},
|
|
5987
|
+
getMarkerContainerStyle(e) {
|
|
5988
|
+
return {
|
|
5989
|
+
top: "0",
|
|
5990
|
+
left: `${this.markersPositions[e.id].position}px`
|
|
5991
|
+
};
|
|
5992
|
+
},
|
|
5993
|
+
getMarkerLabelStyle(e) {
|
|
5994
|
+
return {
|
|
5995
|
+
background: e.color,
|
|
5996
|
+
color: e.textColor || ""
|
|
5997
|
+
};
|
|
5998
|
+
},
|
|
5999
|
+
getMarkerLineStyle(e) {
|
|
6000
|
+
return {
|
|
6001
|
+
background: e.color,
|
|
6002
|
+
height: `${this.timelineHeight + 24}px`
|
|
6003
|
+
};
|
|
6004
|
+
},
|
|
5865
6005
|
tzStringToDate(e) {
|
|
5866
6006
|
return V(e).add(this.utcOffset, "minutes").toDate();
|
|
5867
6007
|
},
|
|
@@ -5879,38 +6019,48 @@ const qt = {
|
|
|
5879
6019
|
fillTimeGaps(e) {
|
|
5880
6020
|
if (e.length <= 1)
|
|
5881
6021
|
return e;
|
|
5882
|
-
const t = this.insertZerosAtInterval, r = (o) => o.clone().add(1, t),
|
|
5883
|
-
let
|
|
6022
|
+
const t = this.insertZerosAtInterval, r = (o) => o.clone().add(1, t), i = (o) => o.clone().subtract(1, t);
|
|
6023
|
+
let a = [];
|
|
5884
6024
|
for (let o = 0; o < e.length; o++) {
|
|
5885
|
-
const
|
|
5886
|
-
if (
|
|
6025
|
+
const n = e[o];
|
|
6026
|
+
if (a.push(n), o === e.length - 1)
|
|
5887
6027
|
break;
|
|
5888
|
-
const
|
|
5889
|
-
if (
|
|
5890
|
-
const
|
|
5891
|
-
|
|
6028
|
+
const f = e[o + 1], l = V(n.timestamp), s = V(f.timestamp);
|
|
6029
|
+
if (s.diff(l, t) > 1) {
|
|
6030
|
+
const d = r(l).toISOString(), v = i(s).toISOString();
|
|
6031
|
+
a.push({ timestamp: d, count: 0 }), d !== v && a.push({ timestamp: v, count: 0 });
|
|
5892
6032
|
}
|
|
5893
6033
|
}
|
|
5894
6034
|
if (this.flattenLineGraphEnds) {
|
|
5895
|
-
const o = V(e[0].timestamp),
|
|
5896
|
-
|
|
5897
|
-
{ timestamp:
|
|
5898
|
-
...
|
|
6035
|
+
const o = V(e[0].timestamp), n = V(e[e.length - 1].timestamp), f = i(o).toISOString(), l = r(n).toISOString();
|
|
6036
|
+
a = [
|
|
6037
|
+
{ timestamp: f, count: 0 },
|
|
6038
|
+
...a,
|
|
5899
6039
|
{ timestamp: l, count: 0 }
|
|
5900
6040
|
];
|
|
5901
6041
|
}
|
|
5902
|
-
return
|
|
6042
|
+
return a;
|
|
5903
6043
|
},
|
|
5904
6044
|
fillEvents(e) {
|
|
5905
6045
|
return this.placeholderLineChartGroup.map((t) => e.find(
|
|
5906
|
-
(
|
|
6046
|
+
(i) => i.timestamp === t.timestamp
|
|
5907
6047
|
) || t);
|
|
5908
6048
|
}
|
|
5909
6049
|
}
|
|
5910
6050
|
});
|
|
5911
6051
|
var Kt = function() {
|
|
5912
6052
|
var t = this, r = t._self._c;
|
|
5913
|
-
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 }),
|
|
6053
|
+
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 }), t._l(t.sortedMarkers, function(i) {
|
|
6054
|
+
return r("div", { key: i.id, staticClass: "e-absolute marker", class: { "marker--hidden": t.markersPositions[i.id].isHidden }, style: t.getMarkerContainerStyle(i), on: { click: function(a) {
|
|
6055
|
+
return t.handleMarkerClick(i);
|
|
6056
|
+
} } }, [t._t(`marker.${i.id}`, function() {
|
|
6057
|
+
return [r("div", { staticClass: "marker-label e-absolute" }, [r("div", { staticClass: "marker-label-text", style: t.getMarkerLabelStyle(i) }, [t._v(" " + t._s(i.label) + " ")])]), r("div", { staticClass: "marker-line e-absolute e-pointer-events-none", style: t.getMarkerLineStyle(i) })];
|
|
6058
|
+
}, { marker: i })], 2);
|
|
6059
|
+
}), t.autoResize ? r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.onResize, expression: "onResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }) : r("div", { ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-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", { staticClass: "external-labels-container e-flex" }, t._l(t.hiddenGroupsLabels, function(i) {
|
|
6060
|
+
return r("div", { key: i, staticClass: "external-label", class: t.classes.background, style: t.getExternalLabelWrapperStyles(i), on: { click: function(a) {
|
|
6061
|
+
return t.toggleGroupVisibility(i);
|
|
6062
|
+
} } }, [r("div", { staticClass: "external-label__content", style: t.getExternalLabelStyles(i) }, [t._v(" " + t._s(i) + " ")])]);
|
|
6063
|
+
}), 0), r("div", { ref: "tooltip", staticClass: "e-absolute", style: t.eventTooltipStyle }, [t._t("tooltip", function() {
|
|
5914
6064
|
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isHoveringEvent && !t.isInteractingWithCurtain && !t.cursorTimestamp, expression: `
|
|
5915
6065
|
isHoveringTimeline &&
|
|
5916
6066
|
!isHoveringEvent &&
|
|
@@ -5918,12 +6068,12 @@ var Kt = function() {
|
|
|
5918
6068
|
!cursorTimestamp
|
|
5919
6069
|
` }], 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) + " ")])];
|
|
5920
6070
|
}, { 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() {
|
|
5921
|
-
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(
|
|
5922
|
-
return r("div", { key:
|
|
6071
|
+
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) {
|
|
6072
|
+
return r("div", { key: a }, [r("strong", [t._v(t._s(i.type) + " Count")]), t._v(": " + t._s(i.count) + " ")]);
|
|
5923
6073
|
})], 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()];
|
|
5924
|
-
}, { event: t.hoveredEvent, counts: t.hoveredCounts, active: t.isHoveringEvent && !t.isInteractingWithCurtain, type: t.hoveredEventType })], 2)]);
|
|
6074
|
+
}, { event: t.hoveredEvent, counts: t.hoveredCounts, active: t.isHoveringEvent && !t.isInteractingWithCurtain, type: t.hoveredEventType })], 2)], 2);
|
|
5925
6075
|
}, Jt = [], Qt = /* @__PURE__ */ I(
|
|
5926
|
-
|
|
6076
|
+
Yt,
|
|
5927
6077
|
Kt,
|
|
5928
6078
|
Jt,
|
|
5929
6079
|
!1,
|
|
@@ -5989,22 +6139,22 @@ const er = Qt.exports, tr = {
|
|
|
5989
6139
|
var rr = function() {
|
|
5990
6140
|
var t = this, r = t._self._c;
|
|
5991
6141
|
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))]);
|
|
5992
|
-
},
|
|
6142
|
+
}, ir = [], nr = /* @__PURE__ */ I(
|
|
5993
6143
|
tr,
|
|
5994
6144
|
rr,
|
|
5995
|
-
|
|
6145
|
+
ir,
|
|
5996
6146
|
!1,
|
|
5997
6147
|
null,
|
|
5998
6148
|
"0ecf4a71",
|
|
5999
6149
|
null,
|
|
6000
6150
|
null
|
|
6001
6151
|
);
|
|
6002
|
-
const sr =
|
|
6152
|
+
const sr = nr.exports, Se = {
|
|
6003
6153
|
EAvatar: ct,
|
|
6004
|
-
EBadge:
|
|
6154
|
+
EBadge: Pe,
|
|
6005
6155
|
EIcon: Tt,
|
|
6006
6156
|
ESpinner: Qe,
|
|
6007
|
-
ERow:
|
|
6157
|
+
ERow: Ft,
|
|
6008
6158
|
ECol: Bt,
|
|
6009
6159
|
EVideoPlayer: Xt,
|
|
6010
6160
|
ETimeline: er,
|
|
@@ -6013,7 +6163,7 @@ const sr = ir.exports, Se = {
|
|
|
6013
6163
|
install(e) {
|
|
6014
6164
|
Object.keys(Se).forEach((t) => {
|
|
6015
6165
|
e.component(t, Se[t]);
|
|
6016
|
-
}),
|
|
6166
|
+
}), Zt.forEach(({ name: t, definition: r }) => {
|
|
6017
6167
|
e.directive(t, r);
|
|
6018
6168
|
});
|
|
6019
6169
|
}
|
|
@@ -6024,12 +6174,12 @@ export {
|
|
|
6024
6174
|
lr as BadgeSizes,
|
|
6025
6175
|
B as BaseColor,
|
|
6026
6176
|
bt as Colors,
|
|
6027
|
-
|
|
6177
|
+
Zt as DirectivesMap,
|
|
6028
6178
|
ct as EAvatar,
|
|
6029
|
-
|
|
6179
|
+
Pe as EBadge,
|
|
6030
6180
|
Bt as ECol,
|
|
6031
6181
|
Tt as EIcon,
|
|
6032
|
-
|
|
6182
|
+
Ft as ERow,
|
|
6033
6183
|
Qe as ESpinner,
|
|
6034
6184
|
er as ETimeline,
|
|
6035
6185
|
dr as EVENTS,
|
|
@@ -6037,10 +6187,10 @@ export {
|
|
|
6037
6187
|
Xt as EVideoPlayer,
|
|
6038
6188
|
xt as IconSizes,
|
|
6039
6189
|
tt as ResizeObserverDirective,
|
|
6040
|
-
|
|
6190
|
+
E as Size,
|
|
6041
6191
|
yt as TextSizes,
|
|
6042
6192
|
te as TimelineAxis,
|
|
6043
|
-
|
|
6193
|
+
Y as TimelineChartType,
|
|
6044
6194
|
re as TimelineIntervalChangeTrigger,
|
|
6045
6195
|
Se as components,
|
|
6046
6196
|
Wt as debounce,
|