@samhammer/tiptob 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-components.js +764 -766
- package/dist/web-components.js.map +1 -1
- package/package.json +1 -1
package/dist/web-components.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Fi = "5";
|
|
2
2
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Fi);
|
|
3
|
-
const
|
|
4
|
-
var gr = Array.isArray, Qi = Array.prototype.indexOf, vr = Array.from, Cn = Object.keys,
|
|
3
|
+
const Ln = 1, kn = 2, Mo = 4, Ui = 8, Zi = 16, zi = 1, ji = 2, Wi = 4, Gi = 8, qi = 16, Yi = 4, Ki = 1, Xi = 2, Ho = "[", cr = "[!", dr = "]", it = {}, fe = Symbol(), Ji = "http://www.w3.org/1999/xhtml", ro = !1;
|
|
4
|
+
var gr = Array.isArray, Qi = Array.prototype.indexOf, vr = Array.from, Cn = Object.keys, kt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, ea = Object.getOwnPropertyDescriptors, ta = Object.prototype, na = Array.prototype, Ro = Object.getPrototypeOf, oo = Object.isExtensible;
|
|
5
5
|
function ra(e) {
|
|
6
6
|
return typeof e == "function";
|
|
7
7
|
}
|
|
@@ -17,7 +17,7 @@ function oa() {
|
|
|
17
17
|
});
|
|
18
18
|
return { promise: n, resolve: e, reject: t };
|
|
19
19
|
}
|
|
20
|
-
const Te = 2, hr = 4, pr = 8, Rt = 16,
|
|
20
|
+
const Te = 2, hr = 4, pr = 8, Rt = 16, qe = 32, ct = 64, Io = 128, Ee = 256, En = 512, le = 1024, ye = 2048, dt = 4096, Oe = 8192, gt = 16384, xn = 32768, nn = 65536, io = 1 << 17, ia = 1 << 18, _r = 1 << 19, No = 1 << 20, er = 1 << 21, mr = 1 << 22, lt = 1 << 23, qt = Symbol("$state"), Vo = Symbol("legacy props"), aa = Symbol(""), br = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
23
|
}(), Do = 3, xt = 8;
|
|
@@ -30,10 +30,10 @@ function sa(e) {
|
|
|
30
30
|
function ua() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function fa(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ca() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
39
|
function da(e) {
|
|
@@ -61,24 +61,24 @@ function rn(e) {
|
|
|
61
61
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
62
62
|
}
|
|
63
63
|
let B = !1;
|
|
64
|
-
function
|
|
64
|
+
function We(e) {
|
|
65
65
|
B = e;
|
|
66
66
|
}
|
|
67
67
|
let F;
|
|
68
|
-
function
|
|
68
|
+
function ke(e) {
|
|
69
69
|
if (e === null)
|
|
70
70
|
throw rn(), it;
|
|
71
71
|
return F = e;
|
|
72
72
|
}
|
|
73
73
|
function St() {
|
|
74
|
-
return
|
|
74
|
+
return ke(
|
|
75
75
|
/** @type {TemplateNode} */
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ Ye(F)
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
function V(e) {
|
|
80
80
|
if (B) {
|
|
81
|
-
if (/* @__PURE__ */
|
|
81
|
+
if (/* @__PURE__ */ Ye(F) !== null)
|
|
82
82
|
throw rn(), it;
|
|
83
83
|
F = e;
|
|
84
84
|
}
|
|
@@ -93,11 +93,11 @@ function tr() {
|
|
|
93
93
|
if (n === dr) {
|
|
94
94
|
if (e === 0) return t;
|
|
95
95
|
e -= 1;
|
|
96
|
-
} else (n === Ho || n ===
|
|
96
|
+
} else (n === Ho || n === cr) && (e += 1);
|
|
97
97
|
}
|
|
98
98
|
var r = (
|
|
99
99
|
/** @type {TemplateNode} */
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ Ye(t)
|
|
101
101
|
);
|
|
102
102
|
t.remove(), t = r;
|
|
103
103
|
}
|
|
@@ -127,7 +127,7 @@ let oe = null;
|
|
|
127
127
|
function yn(e) {
|
|
128
128
|
oe = e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function W(e, t = !1, n) {
|
|
131
131
|
oe = {
|
|
132
132
|
p: oe,
|
|
133
133
|
c: null,
|
|
@@ -137,7 +137,7 @@ function G(e, t = !1, n) {
|
|
|
137
137
|
l: Ot && !t ? { s: null, u: null, $: [] } : null
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function G(e) {
|
|
141
141
|
var t = (
|
|
142
142
|
/** @type {ComponentContext} */
|
|
143
143
|
oe
|
|
@@ -179,9 +179,9 @@ function wr(e, t) {
|
|
|
179
179
|
}
|
|
180
180
|
function Fo(e) {
|
|
181
181
|
const t = Ea.get(e);
|
|
182
|
-
t && (
|
|
182
|
+
t && (kt(e, "message", {
|
|
183
183
|
value: t.message
|
|
184
|
-
}),
|
|
184
|
+
}), kt(e, "stack", {
|
|
185
185
|
value: t.stack
|
|
186
186
|
}));
|
|
187
187
|
}
|
|
@@ -198,13 +198,13 @@ function Zo() {
|
|
|
198
198
|
function on(e) {
|
|
199
199
|
Kt.length === 0 && queueMicrotask(Uo), Kt.push(e);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Aa(e) {
|
|
202
202
|
Xt.length === 0 && Ta(Zo), Xt.push(e);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function La() {
|
|
205
205
|
Kt.length > 0 && Uo(), Xt.length > 0 && Zo();
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ka() {
|
|
208
208
|
for (var e = (
|
|
209
209
|
/** @type {Effect} */
|
|
210
210
|
O.b
|
|
@@ -229,7 +229,7 @@ function Cr(e) {
|
|
|
229
229
|
rv: 0,
|
|
230
230
|
v: (
|
|
231
231
|
/** @type {V} */
|
|
232
|
-
|
|
232
|
+
fe
|
|
233
233
|
),
|
|
234
234
|
wv: 0,
|
|
235
235
|
parent: n ?? O,
|
|
@@ -252,34 +252,34 @@ function xa(e, t) {
|
|
|
252
252
|
void 0
|
|
253
253
|
), o = Qt(
|
|
254
254
|
/** @type {V} */
|
|
255
|
-
|
|
255
|
+
fe
|
|
256
256
|
), a = null, s = !$;
|
|
257
257
|
return Pa(() => {
|
|
258
258
|
try {
|
|
259
|
-
var
|
|
259
|
+
var f = e();
|
|
260
260
|
} catch (p) {
|
|
261
|
-
|
|
261
|
+
f = Promise.reject(p);
|
|
262
262
|
}
|
|
263
|
-
var l = () =>
|
|
264
|
-
i = a?.then(l, l) ?? Promise.resolve(
|
|
263
|
+
var l = () => f;
|
|
264
|
+
i = a?.then(l, l) ?? Promise.resolve(f), a = i;
|
|
265
265
|
var g = (
|
|
266
266
|
/** @type {Batch} */
|
|
267
267
|
ne
|
|
268
|
-
),
|
|
269
|
-
s && (r.update_pending_count(1),
|
|
268
|
+
), c = r.pending;
|
|
269
|
+
s && (r.update_pending_count(1), c || g.increment());
|
|
270
270
|
const v = (p, d = void 0) => {
|
|
271
|
-
a = null,
|
|
271
|
+
a = null, c || g.activate(), d ? d !== br && (o.f |= lt, en(o, d)) : ((o.f & lt) !== 0 && (o.f ^= lt), en(o, p)), s && (r.update_pending_count(-1), c || g.decrement()), Wo();
|
|
272
272
|
};
|
|
273
273
|
if (i.then(v, (p) => v(null, p || "unknown")), g)
|
|
274
274
|
return () => {
|
|
275
275
|
queueMicrotask(() => g.neuter());
|
|
276
276
|
};
|
|
277
|
-
}), new Promise((
|
|
277
|
+
}), new Promise((f) => {
|
|
278
278
|
function l(g) {
|
|
279
|
-
function
|
|
280
|
-
g === i ?
|
|
279
|
+
function c() {
|
|
280
|
+
g === i ? f(o) : l(i);
|
|
281
281
|
}
|
|
282
|
-
g.then(
|
|
282
|
+
g.then(c, c);
|
|
283
283
|
}
|
|
284
284
|
l(i);
|
|
285
285
|
});
|
|
@@ -315,20 +315,20 @@ function yr(e) {
|
|
|
315
315
|
var t, n = O;
|
|
316
316
|
tt(Sa(e));
|
|
317
317
|
try {
|
|
318
|
-
zo(e), t =
|
|
318
|
+
zo(e), t = fi(e);
|
|
319
319
|
} finally {
|
|
320
320
|
tt(n);
|
|
321
321
|
}
|
|
322
322
|
return t;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function jo(e) {
|
|
325
325
|
var t = yr(e);
|
|
326
326
|
if (e.equals(t) || (e.v = t, e.wv = si()), !vt)
|
|
327
327
|
if (Mt !== null)
|
|
328
328
|
Mt.set(e, e.v);
|
|
329
329
|
else {
|
|
330
330
|
var n = (Xe || (e.f & Ee) !== 0) && e.deps !== null ? dt : le;
|
|
331
|
-
|
|
331
|
+
ce(e, n);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
function Ma(e, t, n) {
|
|
@@ -340,17 +340,17 @@ function Ma(e, t, n) {
|
|
|
340
340
|
var i = ne, o = (
|
|
341
341
|
/** @type {Effect} */
|
|
342
342
|
O
|
|
343
|
-
), a = Ha(), s =
|
|
344
|
-
Promise.all(t.map((
|
|
343
|
+
), a = Ha(), s = ka();
|
|
344
|
+
Promise.all(t.map((f) => /* @__PURE__ */ xa(f))).then((f) => {
|
|
345
345
|
i?.activate(), a();
|
|
346
346
|
try {
|
|
347
|
-
n([...e.map(r), ...
|
|
347
|
+
n([...e.map(r), ...f]);
|
|
348
348
|
} catch (l) {
|
|
349
349
|
(o.f & gt) === 0 && wr(l, o);
|
|
350
350
|
}
|
|
351
|
-
i?.deactivate(),
|
|
352
|
-
}).catch((
|
|
353
|
-
s.error(
|
|
351
|
+
i?.deactivate(), Wo();
|
|
352
|
+
}).catch((f) => {
|
|
353
|
+
s.error(f);
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
function Ha() {
|
|
@@ -359,7 +359,7 @@ function Ha() {
|
|
|
359
359
|
tt(e), Pe(t), yn(n);
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Wo() {
|
|
363
363
|
tt(null), Pe(null), yn(null);
|
|
364
364
|
}
|
|
365
365
|
const vn = /* @__PURE__ */ new Set();
|
|
@@ -398,7 +398,7 @@ class Nt {
|
|
|
398
398
|
* True if an async effect inside this batch resolved and
|
|
399
399
|
* its parent branch was already deleted
|
|
400
400
|
*/
|
|
401
|
-
#
|
|
401
|
+
#f = !1;
|
|
402
402
|
/**
|
|
403
403
|
* Async effects (created inside `async_derived`) encountered during processing.
|
|
404
404
|
* These run after the rest of the batch has updated, since they should
|
|
@@ -455,11 +455,11 @@ class Nt {
|
|
|
455
455
|
this.#g(o);
|
|
456
456
|
if (this.#i.length === 0 && this.#r === 0) {
|
|
457
457
|
var r = this.#o, i = this.#n;
|
|
458
|
-
this.#o = [], this.#n = [], this.#a = [], this.#
|
|
458
|
+
this.#o = [], this.#n = [], this.#a = [], this.#c(), ao(r), ao(i), this.#u?.resolve();
|
|
459
459
|
} else {
|
|
460
|
-
for (const o of this.#o)
|
|
461
|
-
for (const o of this.#n)
|
|
462
|
-
for (const o of this.#a)
|
|
460
|
+
for (const o of this.#o) ce(o, le);
|
|
461
|
+
for (const o of this.#n) ce(o, le);
|
|
462
|
+
for (const o of this.#a) ce(o, le);
|
|
463
463
|
}
|
|
464
464
|
if (n) {
|
|
465
465
|
for (const [o, { v: a, wv: s }] of n)
|
|
@@ -467,9 +467,9 @@ class Nt {
|
|
|
467
467
|
Mt = null;
|
|
468
468
|
}
|
|
469
469
|
for (const o of this.#i)
|
|
470
|
-
|
|
470
|
+
Yt(o);
|
|
471
471
|
for (const o of this.#s)
|
|
472
|
-
|
|
472
|
+
Yt(o);
|
|
473
473
|
this.#i = [], this.#s = [];
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
@@ -480,7 +480,7 @@ class Nt {
|
|
|
480
480
|
#g(t) {
|
|
481
481
|
t.f ^= le;
|
|
482
482
|
for (var n = t.first; n !== null; ) {
|
|
483
|
-
var r = n.f, i = (r & (
|
|
483
|
+
var r = n.f, i = (r & (qe | ct)) !== 0, o = i && (r & le) !== 0, a = o || (r & Oe) !== 0 || this.skipped_effects.has(n);
|
|
484
484
|
if (!a && n.fn !== null) {
|
|
485
485
|
if (i)
|
|
486
486
|
n.f ^= le;
|
|
@@ -491,10 +491,10 @@ class Nt {
|
|
|
491
491
|
var s = n.b?.pending ? this.#s : this.#i;
|
|
492
492
|
s.push(n);
|
|
493
493
|
} else
|
|
494
|
-
(n.f & Rt) !== 0 && this.#a.push(n),
|
|
495
|
-
var
|
|
496
|
-
if (
|
|
497
|
-
n =
|
|
494
|
+
(n.f & Rt) !== 0 && this.#a.push(n), Yt(n);
|
|
495
|
+
var f = n.first;
|
|
496
|
+
if (f !== null) {
|
|
497
|
+
n = f;
|
|
498
498
|
continue;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
@@ -519,13 +519,13 @@ class Nt {
|
|
|
519
519
|
ne = null;
|
|
520
520
|
}
|
|
521
521
|
neuter() {
|
|
522
|
-
this.#
|
|
522
|
+
this.#f = !0;
|
|
523
523
|
}
|
|
524
524
|
flush() {
|
|
525
|
-
Tt.length > 0 ? this.flush_effects() : this.#
|
|
525
|
+
Tt.length > 0 ? this.flush_effects() : this.#c(), ne === this && (this.#r === 0 && vn.delete(this), ne = null);
|
|
526
526
|
}
|
|
527
527
|
flush_effects() {
|
|
528
|
-
var t =
|
|
528
|
+
var t = Lt;
|
|
529
529
|
nr = !0;
|
|
530
530
|
try {
|
|
531
531
|
var n = 0;
|
|
@@ -538,8 +538,8 @@ class Nt {
|
|
|
538
538
|
/**
|
|
539
539
|
* Append and remove branches to/from the DOM
|
|
540
540
|
*/
|
|
541
|
-
#
|
|
542
|
-
if (!this.#
|
|
541
|
+
#c() {
|
|
542
|
+
if (!this.#f)
|
|
543
543
|
for (const t of this.#l)
|
|
544
544
|
t();
|
|
545
545
|
this.#l.clear();
|
|
@@ -550,11 +550,11 @@ class Nt {
|
|
|
550
550
|
decrement() {
|
|
551
551
|
if (this.#r -= 1, this.#r === 0) {
|
|
552
552
|
for (const t of this.#o)
|
|
553
|
-
|
|
553
|
+
ce(t, ye), Je(t);
|
|
554
554
|
for (const t of this.#n)
|
|
555
|
-
|
|
555
|
+
ce(t, ye), Je(t);
|
|
556
556
|
for (const t of this.#a)
|
|
557
|
-
|
|
557
|
+
ce(t, ye), Je(t);
|
|
558
558
|
this.#o = [], this.#n = [], this.flush();
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -575,11 +575,11 @@ class Nt {
|
|
|
575
575
|
return ne;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function A(e) {
|
|
579
579
|
var t;
|
|
580
580
|
const n = Nt.ensure();
|
|
581
581
|
for (; ; ) {
|
|
582
|
-
if (
|
|
582
|
+
if (La(), Tt.length === 0)
|
|
583
583
|
return n === ne && n.flush(), Jt = null, /** @type {T} */
|
|
584
584
|
t;
|
|
585
585
|
n.flush_effects();
|
|
@@ -602,7 +602,7 @@ function ao(e) {
|
|
|
602
602
|
var r = e[n];
|
|
603
603
|
if ((r.f & (gt | Oe)) === 0 && Mn(r)) {
|
|
604
604
|
var i = Tn;
|
|
605
|
-
if (
|
|
605
|
+
if (Yt(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? ii(r) : r.fn = null), Tn > i && (r.f & No) !== 0)
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
@@ -616,7 +616,7 @@ function Je(e) {
|
|
|
616
616
|
var n = t.f;
|
|
617
617
|
if (nr && t === O && (n & Rt) !== 0)
|
|
618
618
|
return;
|
|
619
|
-
if ((n & (
|
|
619
|
+
if ((n & (ct | qe)) !== 0) {
|
|
620
620
|
if ((n & le) === 0) return;
|
|
621
621
|
t.f ^= le;
|
|
622
622
|
}
|
|
@@ -637,20 +637,20 @@ function Qt(e, t) {
|
|
|
637
637
|
return n;
|
|
638
638
|
}
|
|
639
639
|
// @__NO_SIDE_EFFECTS__
|
|
640
|
-
function
|
|
640
|
+
function j(e, t) {
|
|
641
641
|
const n = Qt(e);
|
|
642
642
|
return Ba(n), n;
|
|
643
643
|
}
|
|
644
644
|
// @__NO_SIDE_EFFECTS__
|
|
645
|
-
function
|
|
645
|
+
function Go(e, t = !1, n = !0) {
|
|
646
646
|
const r = Qt(e);
|
|
647
647
|
return t || (r.equals = Bo), Ot && n && oe !== null && oe.l !== null && (oe.l.s ??= []).push(r), r;
|
|
648
648
|
}
|
|
649
649
|
function M(e, t, n = !1) {
|
|
650
650
|
$ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
651
651
|
// to ensure we error if state is set inside an inspect effect
|
|
652
|
-
(!De || ($.f & io) !== 0) && It() && ($.f & (Te | Rt | mr | io)) !== 0 && !
|
|
653
|
-
let r = n ?
|
|
652
|
+
(!De || ($.f & io) !== 0) && It() && ($.f & (Te | Rt | mr | io)) !== 0 && !Ge?.includes(e) && ma();
|
|
653
|
+
let r = n ? At(t) : t;
|
|
654
654
|
return en(e, r);
|
|
655
655
|
}
|
|
656
656
|
function en(e, t) {
|
|
@@ -659,19 +659,19 @@ function en(e, t) {
|
|
|
659
659
|
vt ? st.set(e, t) : st.set(e, n), e.v = t, Nt.ensure().capture(e, n), (e.f & Te) !== 0 && ((e.f & ye) !== 0 && yr(
|
|
660
660
|
/** @type {Derived} */
|
|
661
661
|
e
|
|
662
|
-
),
|
|
662
|
+
), ce(e, (e.f & Ee) === 0 ? le : dt)), e.wv = si(), qo(e, ye), It() && O !== null && (O.f & le) !== 0 && (O.f & (qe | ct)) === 0 && (Le === null ? Fa([e]) : Le.push(e));
|
|
663
663
|
}
|
|
664
664
|
return t;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function jn(e) {
|
|
667
667
|
M(e, e.v + 1);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function qo(e, t) {
|
|
670
670
|
var n = e.reactions;
|
|
671
671
|
if (n !== null)
|
|
672
672
|
for (var r = It(), i = n.length, o = 0; o < i; o++) {
|
|
673
673
|
var a = n[o], s = a.f;
|
|
674
|
-
(s & ye) === 0 && (!r && a === O || (
|
|
674
|
+
(s & ye) === 0 && (!r && a === O || (ce(a, t), (s & (le | Ee)) !== 0 && ((s & Te) !== 0 ? qo(
|
|
675
675
|
/** @type {Derived} */
|
|
676
676
|
a,
|
|
677
677
|
dt
|
|
@@ -681,75 +681,75 @@ function Yo(e, t) {
|
|
|
681
681
|
))));
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
if (typeof e != "object" || e === null ||
|
|
684
|
+
function At(e) {
|
|
685
|
+
if (typeof e != "object" || e === null || qt in e)
|
|
686
686
|
return e;
|
|
687
687
|
const t = Ro(e);
|
|
688
688
|
if (t !== ta && t !== na)
|
|
689
689
|
return e;
|
|
690
|
-
var n = /* @__PURE__ */ new Map(), r = gr(e), i = /* @__PURE__ */
|
|
690
|
+
var n = /* @__PURE__ */ new Map(), r = gr(e), i = /* @__PURE__ */ j(0), o = ut, a = (s) => {
|
|
691
691
|
if (ut === o)
|
|
692
692
|
return s();
|
|
693
|
-
var
|
|
694
|
-
Pe(null),
|
|
693
|
+
var f = $, l = ut;
|
|
694
|
+
Pe(null), fo(o);
|
|
695
695
|
var g = s();
|
|
696
|
-
return Pe(
|
|
696
|
+
return Pe(f), fo(l), g;
|
|
697
697
|
};
|
|
698
|
-
return r && n.set("length", /* @__PURE__ */
|
|
698
|
+
return r && n.set("length", /* @__PURE__ */ j(
|
|
699
699
|
/** @type {any[]} */
|
|
700
700
|
e.length
|
|
701
701
|
)), new Proxy(
|
|
702
702
|
/** @type {any} */
|
|
703
703
|
e,
|
|
704
704
|
{
|
|
705
|
-
defineProperty(s,
|
|
705
|
+
defineProperty(s, f, l) {
|
|
706
706
|
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && pa();
|
|
707
|
-
var g = n.get(
|
|
707
|
+
var g = n.get(f);
|
|
708
708
|
return g === void 0 ? g = a(() => {
|
|
709
|
-
var
|
|
710
|
-
return n.set(
|
|
709
|
+
var c = /* @__PURE__ */ j(l.value);
|
|
710
|
+
return n.set(f, c), c;
|
|
711
711
|
}) : M(g, l.value, !0), !0;
|
|
712
712
|
},
|
|
713
|
-
deleteProperty(s,
|
|
714
|
-
var l = n.get(
|
|
713
|
+
deleteProperty(s, f) {
|
|
714
|
+
var l = n.get(f);
|
|
715
715
|
if (l === void 0) {
|
|
716
|
-
if (
|
|
717
|
-
const v = a(() => /* @__PURE__ */
|
|
718
|
-
n.set(
|
|
716
|
+
if (f in s) {
|
|
717
|
+
const v = a(() => /* @__PURE__ */ j(fe));
|
|
718
|
+
n.set(f, v), jn(i);
|
|
719
719
|
}
|
|
720
720
|
} else {
|
|
721
|
-
if (r && typeof
|
|
721
|
+
if (r && typeof f == "string") {
|
|
722
722
|
var g = (
|
|
723
723
|
/** @type {Source<number>} */
|
|
724
724
|
n.get("length")
|
|
725
|
-
),
|
|
726
|
-
Number.isInteger(
|
|
725
|
+
), c = Number(f);
|
|
726
|
+
Number.isInteger(c) && c < g.v && M(g, c);
|
|
727
727
|
}
|
|
728
|
-
M(l,
|
|
728
|
+
M(l, fe), jn(i);
|
|
729
729
|
}
|
|
730
730
|
return !0;
|
|
731
731
|
},
|
|
732
|
-
get(s,
|
|
733
|
-
if (
|
|
732
|
+
get(s, f, l) {
|
|
733
|
+
if (f === qt)
|
|
734
734
|
return e;
|
|
735
|
-
var g = n.get(
|
|
736
|
-
if (g === void 0 && (!
|
|
737
|
-
var p =
|
|
735
|
+
var g = n.get(f), c = f in s;
|
|
736
|
+
if (g === void 0 && (!c || at(s, f)?.writable) && (g = a(() => {
|
|
737
|
+
var p = At(c ? s[f] : fe), d = /* @__PURE__ */ j(p);
|
|
738
738
|
return d;
|
|
739
|
-
}), n.set(
|
|
739
|
+
}), n.set(f, g)), g !== void 0) {
|
|
740
740
|
var v = S(g);
|
|
741
|
-
return v ===
|
|
741
|
+
return v === fe ? void 0 : v;
|
|
742
742
|
}
|
|
743
|
-
return Reflect.get(s,
|
|
743
|
+
return Reflect.get(s, f, l);
|
|
744
744
|
},
|
|
745
|
-
getOwnPropertyDescriptor(s,
|
|
746
|
-
var l = Reflect.getOwnPropertyDescriptor(s,
|
|
745
|
+
getOwnPropertyDescriptor(s, f) {
|
|
746
|
+
var l = Reflect.getOwnPropertyDescriptor(s, f);
|
|
747
747
|
if (l && "value" in l) {
|
|
748
|
-
var g = n.get(
|
|
748
|
+
var g = n.get(f);
|
|
749
749
|
g && (l.value = S(g));
|
|
750
750
|
} else if (l === void 0) {
|
|
751
|
-
var
|
|
752
|
-
if (
|
|
751
|
+
var c = n.get(f), v = c?.v;
|
|
752
|
+
if (c !== void 0 && v !== fe)
|
|
753
753
|
return {
|
|
754
754
|
enumerable: !0,
|
|
755
755
|
configurable: !0,
|
|
@@ -759,58 +759,58 @@ function kt(e) {
|
|
|
759
759
|
}
|
|
760
760
|
return l;
|
|
761
761
|
},
|
|
762
|
-
has(s,
|
|
763
|
-
if (
|
|
762
|
+
has(s, f) {
|
|
763
|
+
if (f === qt)
|
|
764
764
|
return !0;
|
|
765
|
-
var l = n.get(
|
|
766
|
-
if (l !== void 0 || O !== null && (!g || at(s,
|
|
765
|
+
var l = n.get(f), g = l !== void 0 && l.v !== fe || Reflect.has(s, f);
|
|
766
|
+
if (l !== void 0 || O !== null && (!g || at(s, f)?.writable)) {
|
|
767
767
|
l === void 0 && (l = a(() => {
|
|
768
|
-
var v = g ?
|
|
768
|
+
var v = g ? At(s[f]) : fe, p = /* @__PURE__ */ j(v);
|
|
769
769
|
return p;
|
|
770
|
-
}), n.set(
|
|
771
|
-
var
|
|
772
|
-
if (
|
|
770
|
+
}), n.set(f, l));
|
|
771
|
+
var c = S(l);
|
|
772
|
+
if (c === fe)
|
|
773
773
|
return !1;
|
|
774
774
|
}
|
|
775
775
|
return g;
|
|
776
776
|
},
|
|
777
|
-
set(s,
|
|
778
|
-
var
|
|
779
|
-
if (r &&
|
|
777
|
+
set(s, f, l, g) {
|
|
778
|
+
var c = n.get(f), v = f in s;
|
|
779
|
+
if (r && f === "length")
|
|
780
780
|
for (var p = l; p < /** @type {Source<number>} */
|
|
781
|
-
|
|
781
|
+
c.v; p += 1) {
|
|
782
782
|
var d = n.get(p + "");
|
|
783
|
-
d !== void 0 ? M(d,
|
|
783
|
+
d !== void 0 ? M(d, fe) : p in s && (d = a(() => /* @__PURE__ */ j(fe)), n.set(p + "", d));
|
|
784
784
|
}
|
|
785
|
-
if (
|
|
786
|
-
(!v || at(s,
|
|
785
|
+
if (c === void 0)
|
|
786
|
+
(!v || at(s, f)?.writable) && (c = a(() => /* @__PURE__ */ j(void 0)), M(c, At(l)), n.set(f, c));
|
|
787
787
|
else {
|
|
788
|
-
v =
|
|
789
|
-
var _ = a(() =>
|
|
790
|
-
M(
|
|
788
|
+
v = c.v !== fe;
|
|
789
|
+
var _ = a(() => At(l));
|
|
790
|
+
M(c, _);
|
|
791
791
|
}
|
|
792
|
-
var h = Reflect.getOwnPropertyDescriptor(s,
|
|
792
|
+
var h = Reflect.getOwnPropertyDescriptor(s, f);
|
|
793
793
|
if (h?.set && h.set.call(g, l), !v) {
|
|
794
|
-
if (r && typeof
|
|
794
|
+
if (r && typeof f == "string") {
|
|
795
795
|
var b = (
|
|
796
796
|
/** @type {Source<number>} */
|
|
797
797
|
n.get("length")
|
|
798
|
-
), y = Number(
|
|
798
|
+
), y = Number(f);
|
|
799
799
|
Number.isInteger(y) && y >= b.v && M(b, y + 1);
|
|
800
800
|
}
|
|
801
|
-
|
|
801
|
+
jn(i);
|
|
802
802
|
}
|
|
803
803
|
return !0;
|
|
804
804
|
},
|
|
805
805
|
ownKeys(s) {
|
|
806
806
|
S(i);
|
|
807
|
-
var
|
|
808
|
-
var v = n.get(
|
|
809
|
-
return v === void 0 || v.v !==
|
|
807
|
+
var f = Reflect.ownKeys(s).filter((c) => {
|
|
808
|
+
var v = n.get(c);
|
|
809
|
+
return v === void 0 || v.v !== fe;
|
|
810
810
|
});
|
|
811
811
|
for (var [l, g] of n)
|
|
812
|
-
g.v !==
|
|
813
|
-
return
|
|
812
|
+
g.v !== fe && !(l in s) && f.push(l);
|
|
813
|
+
return f;
|
|
814
814
|
},
|
|
815
815
|
setPrototypeOf() {
|
|
816
816
|
_a();
|
|
@@ -818,10 +818,10 @@ function kt(e) {
|
|
|
818
818
|
}
|
|
819
819
|
);
|
|
820
820
|
}
|
|
821
|
-
var lo,
|
|
821
|
+
var lo, Yo, Ko, Xo;
|
|
822
822
|
function rr() {
|
|
823
823
|
if (lo === void 0) {
|
|
824
|
-
lo = window,
|
|
824
|
+
lo = window, Yo = /Firefox/.test(navigator.userAgent);
|
|
825
825
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
826
826
|
Ko = at(t, "firstChild").get, Xo = at(t, "nextSibling").get, oo(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), oo(n) && (n.__t = void 0);
|
|
827
827
|
}
|
|
@@ -834,7 +834,7 @@ function Re(e) {
|
|
|
834
834
|
return Ko.call(e);
|
|
835
835
|
}
|
|
836
836
|
// @__NO_SIDE_EFFECTS__
|
|
837
|
-
function
|
|
837
|
+
function Ye(e) {
|
|
838
838
|
return Xo.call(e);
|
|
839
839
|
}
|
|
840
840
|
function P(e, t) {
|
|
@@ -848,9 +848,9 @@ function P(e, t) {
|
|
|
848
848
|
n = F.appendChild(et());
|
|
849
849
|
else if (t && n.nodeType !== Do) {
|
|
850
850
|
var r = et();
|
|
851
|
-
return n?.before(r),
|
|
851
|
+
return n?.before(r), ke(r), r;
|
|
852
852
|
}
|
|
853
|
-
return
|
|
853
|
+
return ke(n), n;
|
|
854
854
|
}
|
|
855
855
|
function U(e, t) {
|
|
856
856
|
if (!B) {
|
|
@@ -861,7 +861,7 @@ function U(e, t) {
|
|
|
861
861
|
e
|
|
862
862
|
)
|
|
863
863
|
);
|
|
864
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
864
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ye(n) : n;
|
|
865
865
|
}
|
|
866
866
|
return F;
|
|
867
867
|
}
|
|
@@ -869,14 +869,14 @@ function ee(e, t = 1, n = !1) {
|
|
|
869
869
|
let r = B ? F : e;
|
|
870
870
|
for (var i; t--; )
|
|
871
871
|
i = r, r = /** @type {TemplateNode} */
|
|
872
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ Ye(r);
|
|
873
873
|
if (!B)
|
|
874
874
|
return r;
|
|
875
875
|
if (n && r?.nodeType !== Do) {
|
|
876
876
|
var o = et();
|
|
877
|
-
return r === null ? i?.after(o) : r.before(o),
|
|
877
|
+
return r === null ? i?.after(o) : r.before(o), ke(o), o;
|
|
878
878
|
}
|
|
879
|
-
return
|
|
879
|
+
return ke(r), /** @type {TemplateNode} */
|
|
880
880
|
r;
|
|
881
881
|
}
|
|
882
882
|
function Jo(e) {
|
|
@@ -886,7 +886,7 @@ function Qo() {
|
|
|
886
886
|
return !1;
|
|
887
887
|
}
|
|
888
888
|
function Oa(e) {
|
|
889
|
-
O === null && $ === null && da(), $ !== null && ($.f & Ee) !== 0 && O === null &&
|
|
889
|
+
O === null && $ === null && da(), $ !== null && ($.f & Ee) !== 0 && O === null && ca(), vt && fa();
|
|
890
890
|
}
|
|
891
891
|
function Ia(e, t) {
|
|
892
892
|
var n = t.last;
|
|
@@ -915,9 +915,9 @@ function $e(e, t, n, r = !0) {
|
|
|
915
915
|
};
|
|
916
916
|
if (n)
|
|
917
917
|
try {
|
|
918
|
-
|
|
919
|
-
} catch (
|
|
920
|
-
throw Ie(o),
|
|
918
|
+
Yt(o), o.f |= xn;
|
|
919
|
+
} catch (f) {
|
|
920
|
+
throw Ie(o), f;
|
|
921
921
|
}
|
|
922
922
|
else t !== null && Je(o);
|
|
923
923
|
var a = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & _r) === 0;
|
|
@@ -932,14 +932,14 @@ function $e(e, t, n, r = !0) {
|
|
|
932
932
|
}
|
|
933
933
|
function Na(e) {
|
|
934
934
|
const t = $e(pr, null, !1);
|
|
935
|
-
return
|
|
935
|
+
return ce(t, le), t.teardown = e, t;
|
|
936
936
|
}
|
|
937
937
|
function ei(e) {
|
|
938
938
|
Oa();
|
|
939
939
|
var t = (
|
|
940
940
|
/** @type {Effect} */
|
|
941
941
|
O.f
|
|
942
|
-
), n = !$ && (t &
|
|
942
|
+
), n = !$ && (t & qe) !== 0 && (t & xn) === 0;
|
|
943
943
|
if (n) {
|
|
944
944
|
var r = (
|
|
945
945
|
/** @type {ComponentContext} */
|
|
@@ -954,16 +954,16 @@ function ti(e) {
|
|
|
954
954
|
}
|
|
955
955
|
function Va(e) {
|
|
956
956
|
Nt.ensure();
|
|
957
|
-
const t = $e(
|
|
957
|
+
const t = $e(ct, e, !0);
|
|
958
958
|
return () => {
|
|
959
959
|
Ie(t);
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
962
|
function Da(e) {
|
|
963
963
|
Nt.ensure();
|
|
964
|
-
const t = $e(
|
|
964
|
+
const t = $e(ct, e, !0);
|
|
965
965
|
return (n = {}) => new Promise((r) => {
|
|
966
|
-
n.outro ?
|
|
966
|
+
n.outro ? Lr(t, () => {
|
|
967
967
|
Ie(t), r(void 0);
|
|
968
968
|
}) : (Ie(t), r(void 0));
|
|
969
969
|
});
|
|
@@ -977,17 +977,17 @@ function Pa(e) {
|
|
|
977
977
|
function Tr(e, t = 0) {
|
|
978
978
|
return $e(pr | t, e, !0);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ae(e, t = [], n = []) {
|
|
981
981
|
Ma(t, n, (r) => {
|
|
982
982
|
$e(pr, () => e(...r.map(S)), !0);
|
|
983
983
|
});
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function Ar(e, t = 0) {
|
|
986
986
|
var n = $e(Rt | t, e, !0);
|
|
987
987
|
return n;
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
return $e(
|
|
989
|
+
function ft(e, t = !0) {
|
|
990
|
+
return $e(qe, e, !0, t);
|
|
991
991
|
}
|
|
992
992
|
function ni(e) {
|
|
993
993
|
var t = e.teardown;
|
|
@@ -1006,13 +1006,13 @@ function ri(e, t = !1) {
|
|
|
1006
1006
|
for (e.first = e.last = null; n !== null; ) {
|
|
1007
1007
|
n.ac?.abort(br);
|
|
1008
1008
|
var r = n.next;
|
|
1009
|
-
(n.f &
|
|
1009
|
+
(n.f & ct) !== 0 ? n.parent = null : Ie(n, t), n = r;
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
function $a(e) {
|
|
1013
1013
|
for (var t = e.first; t !== null; ) {
|
|
1014
1014
|
var n = t.next;
|
|
1015
|
-
(t.f &
|
|
1015
|
+
(t.f & qe) === 0 && Ie(t), t = n;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
function Ie(e, t = !0) {
|
|
@@ -1021,7 +1021,7 @@ function Ie(e, t = !0) {
|
|
|
1021
1021
|
e.nodes_start,
|
|
1022
1022
|
/** @type {TemplateNode} */
|
|
1023
1023
|
e.nodes_end
|
|
1024
|
-
), n = !0), ri(e, t && !n),
|
|
1024
|
+
), n = !0), ri(e, t && !n), An(e, 0), ce(e, gt);
|
|
1025
1025
|
var r = e.transitions;
|
|
1026
1026
|
if (r !== null)
|
|
1027
1027
|
for (const o of r)
|
|
@@ -1034,7 +1034,7 @@ function oi(e, t) {
|
|
|
1034
1034
|
for (; e !== null; ) {
|
|
1035
1035
|
var n = e === t ? null : (
|
|
1036
1036
|
/** @type {TemplateNode} */
|
|
1037
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ Ye(e)
|
|
1038
1038
|
);
|
|
1039
1039
|
e.remove(), e = n;
|
|
1040
1040
|
}
|
|
@@ -1043,9 +1043,9 @@ function ii(e) {
|
|
|
1043
1043
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1044
1044
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Lr(e, t) {
|
|
1047
1047
|
var n = [];
|
|
1048
|
-
|
|
1048
|
+
kr(e, n, !0), ai(n, () => {
|
|
1049
1049
|
Ie(e), t && t();
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
@@ -1058,14 +1058,14 @@ function ai(e, t) {
|
|
|
1058
1058
|
} else
|
|
1059
1059
|
t();
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function kr(e, t, n) {
|
|
1062
1062
|
if ((e.f & Oe) === 0) {
|
|
1063
1063
|
if (e.f ^= Oe, e.transitions !== null)
|
|
1064
1064
|
for (const a of e.transitions)
|
|
1065
1065
|
(a.is_global || n) && t.push(a);
|
|
1066
1066
|
for (var r = e.first; r !== null; ) {
|
|
1067
|
-
var i = r.next, o = (r.f & nn) !== 0 || (r.f &
|
|
1068
|
-
|
|
1067
|
+
var i = r.next, o = (r.f & nn) !== 0 || (r.f & qe) !== 0;
|
|
1068
|
+
kr(r, t, o ? n : !1), r = i;
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
@@ -1074,9 +1074,9 @@ function xr(e) {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
function li(e, t) {
|
|
1076
1076
|
if ((e.f & Oe) !== 0) {
|
|
1077
|
-
e.f ^= Oe, (e.f & le) === 0 && (
|
|
1077
|
+
e.f ^= Oe, (e.f & le) === 0 && (ce(e, ye), Je(e));
|
|
1078
1078
|
for (var n = e.first; n !== null; ) {
|
|
1079
|
-
var r = n.next, i = (n.f & nn) !== 0 || (n.f &
|
|
1079
|
+
var r = n.next, i = (n.f & nn) !== 0 || (n.f & qe) !== 0;
|
|
1080
1080
|
li(n, i ? t : !1), n = r;
|
|
1081
1081
|
}
|
|
1082
1082
|
if (e.transitions !== null)
|
|
@@ -1084,9 +1084,9 @@ function li(e, t) {
|
|
|
1084
1084
|
(o.is_global || t) && o.in();
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
-
let
|
|
1087
|
+
let Lt = !1;
|
|
1088
1088
|
function so(e) {
|
|
1089
|
-
|
|
1089
|
+
Lt = e;
|
|
1090
1090
|
}
|
|
1091
1091
|
let vt = !1;
|
|
1092
1092
|
function uo(e) {
|
|
@@ -1100,16 +1100,16 @@ let O = null;
|
|
|
1100
1100
|
function tt(e) {
|
|
1101
1101
|
O = e;
|
|
1102
1102
|
}
|
|
1103
|
-
let
|
|
1103
|
+
let Ge = null;
|
|
1104
1104
|
function Ba(e) {
|
|
1105
|
-
$ !== null && (
|
|
1105
|
+
$ !== null && (Ge === null ? Ge = [e] : Ge.push(e));
|
|
1106
1106
|
}
|
|
1107
|
-
let he = null, Ce = 0,
|
|
1107
|
+
let he = null, Ce = 0, Le = null;
|
|
1108
1108
|
function Fa(e) {
|
|
1109
|
-
|
|
1109
|
+
Le = e;
|
|
1110
1110
|
}
|
|
1111
1111
|
let Tn = 1, tn = 0, ut = tn;
|
|
1112
|
-
function
|
|
1112
|
+
function fo(e) {
|
|
1113
1113
|
ut = e;
|
|
1114
1114
|
}
|
|
1115
1115
|
let Xe = !1;
|
|
@@ -1123,33 +1123,33 @@ function Mn(e) {
|
|
|
1123
1123
|
if ((t & dt) !== 0) {
|
|
1124
1124
|
var n = e.deps, r = (t & Ee) !== 0;
|
|
1125
1125
|
if (n !== null) {
|
|
1126
|
-
var i, o, a = (t & En) !== 0, s = r && O !== null && !Xe,
|
|
1126
|
+
var i, o, a = (t & En) !== 0, s = r && O !== null && !Xe, f = n.length;
|
|
1127
1127
|
if ((a || s) && (O === null || (O.f & gt) === 0)) {
|
|
1128
1128
|
var l = (
|
|
1129
1129
|
/** @type {Derived} */
|
|
1130
1130
|
e
|
|
1131
1131
|
), g = l.parent;
|
|
1132
|
-
for (i = 0; i <
|
|
1132
|
+
for (i = 0; i < f; i++)
|
|
1133
1133
|
o = n[i], (a || !o?.reactions?.includes(l)) && (o.reactions ??= []).push(l);
|
|
1134
1134
|
a && (l.f ^= En), s && g !== null && (g.f & Ee) === 0 && (l.f ^= Ee);
|
|
1135
1135
|
}
|
|
1136
|
-
for (i = 0; i <
|
|
1136
|
+
for (i = 0; i < f; i++)
|
|
1137
1137
|
if (o = n[i], Mn(
|
|
1138
1138
|
/** @type {Derived} */
|
|
1139
1139
|
o
|
|
1140
|
-
) &&
|
|
1140
|
+
) && jo(
|
|
1141
1141
|
/** @type {Derived} */
|
|
1142
1142
|
o
|
|
1143
1143
|
), o.wv > e.wv)
|
|
1144
1144
|
return !0;
|
|
1145
1145
|
}
|
|
1146
|
-
(!r || O !== null && !Xe) &&
|
|
1146
|
+
(!r || O !== null && !Xe) && ce(e, le);
|
|
1147
1147
|
}
|
|
1148
1148
|
return !1;
|
|
1149
1149
|
}
|
|
1150
1150
|
function ui(e, t, n = !0) {
|
|
1151
1151
|
var r = e.reactions;
|
|
1152
|
-
if (r !== null && !
|
|
1152
|
+
if (r !== null && !Ge?.includes(e))
|
|
1153
1153
|
for (var i = 0; i < r.length; i++) {
|
|
1154
1154
|
var o = r[i];
|
|
1155
1155
|
(o.f & Te) !== 0 ? ui(
|
|
@@ -1157,25 +1157,25 @@ function ui(e, t, n = !0) {
|
|
|
1157
1157
|
o,
|
|
1158
1158
|
t,
|
|
1159
1159
|
!1
|
|
1160
|
-
) : t === o && (n ?
|
|
1160
|
+
) : t === o && (n ? ce(o, ye) : (o.f & le) !== 0 && ce(o, dt), Je(
|
|
1161
1161
|
/** @type {Effect} */
|
|
1162
1162
|
o
|
|
1163
1163
|
));
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1167
|
-
var t = he, n = Ce, r =
|
|
1166
|
+
function fi(e) {
|
|
1167
|
+
var t = he, n = Ce, r = Le, i = $, o = Xe, a = Ge, s = oe, f = De, l = ut, g = e.f;
|
|
1168
1168
|
he = /** @type {null | Value[]} */
|
|
1169
|
-
null, Ce = 0,
|
|
1169
|
+
null, Ce = 0, Le = null, Xe = (g & Ee) !== 0 && (De || !Lt || $ === null), $ = (g & (qe | ct)) === 0 ? e : null, Ge = null, yn(e.ctx), De = !1, ut = ++tn, e.ac !== null && (e.ac.abort(br), e.ac = null);
|
|
1170
1170
|
try {
|
|
1171
1171
|
e.f |= er;
|
|
1172
|
-
var
|
|
1172
|
+
var c = (
|
|
1173
1173
|
/** @type {Function} */
|
|
1174
1174
|
(0, e.fn)()
|
|
1175
1175
|
), v = e.deps;
|
|
1176
1176
|
if (he !== null) {
|
|
1177
1177
|
var p;
|
|
1178
|
-
if (
|
|
1178
|
+
if (An(e, Ce), v !== null && Ce > 0)
|
|
1179
1179
|
for (v.length = Ce + he.length, p = 0; p < he.length; p++)
|
|
1180
1180
|
v[Ce + p] = he[p];
|
|
1181
1181
|
else
|
|
@@ -1185,21 +1185,21 @@ function ci(e) {
|
|
|
1185
1185
|
e.reactions !== null)
|
|
1186
1186
|
for (p = Ce; p < v.length; p++)
|
|
1187
1187
|
(v[p].reactions ??= []).push(e);
|
|
1188
|
-
} else v !== null && Ce < v.length && (
|
|
1189
|
-
if (It() &&
|
|
1188
|
+
} else v !== null && Ce < v.length && (An(e, Ce), v.length = Ce);
|
|
1189
|
+
if (It() && Le !== null && !De && v !== null && (e.f & (Te | dt | ye)) === 0)
|
|
1190
1190
|
for (p = 0; p < /** @type {Source[]} */
|
|
1191
|
-
|
|
1191
|
+
Le.length; p++)
|
|
1192
1192
|
ui(
|
|
1193
|
-
|
|
1193
|
+
Le[p],
|
|
1194
1194
|
/** @type {Effect} */
|
|
1195
1195
|
e
|
|
1196
1196
|
);
|
|
1197
|
-
return i !== null && i !== e && (tn++,
|
|
1198
|
-
|
|
1197
|
+
return i !== null && i !== e && (tn++, Le !== null && (r === null ? r = Le : r.push(.../** @type {Source[]} */
|
|
1198
|
+
Le))), (e.f & lt) !== 0 && (e.f ^= lt), c;
|
|
1199
1199
|
} catch (d) {
|
|
1200
1200
|
return ya(d);
|
|
1201
1201
|
} finally {
|
|
1202
|
-
e.f ^= er, he = t, Ce = n,
|
|
1202
|
+
e.f ^= er, he = t, Ce = n, Le = r, $ = i, Xe = o, Ge = a, yn(s), De = f, ut = l;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
function Ua(e, t) {
|
|
@@ -1214,35 +1214,35 @@ function Ua(e, t) {
|
|
|
1214
1214
|
n === null && (t.f & Te) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1215
1215
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1216
1216
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1217
|
-
(he === null || !he.includes(t)) && (
|
|
1217
|
+
(he === null || !he.includes(t)) && (ce(t, dt), (t.f & (Ee | En)) === 0 && (t.f ^= En), zo(
|
|
1218
1218
|
/** @type {Derived} **/
|
|
1219
1219
|
t
|
|
1220
|
-
),
|
|
1220
|
+
), An(
|
|
1221
1221
|
/** @type {Derived} **/
|
|
1222
1222
|
t,
|
|
1223
1223
|
0
|
|
1224
1224
|
));
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function An(e, t) {
|
|
1227
1227
|
var n = e.deps;
|
|
1228
1228
|
if (n !== null)
|
|
1229
1229
|
for (var r = t; r < n.length; r++)
|
|
1230
1230
|
Ua(e, n[r]);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Yt(e) {
|
|
1233
1233
|
var t = e.f;
|
|
1234
1234
|
if ((t & gt) === 0) {
|
|
1235
|
-
|
|
1236
|
-
var n = O, r =
|
|
1237
|
-
O = e,
|
|
1235
|
+
ce(e, le);
|
|
1236
|
+
var n = O, r = Lt;
|
|
1237
|
+
O = e, Lt = !0;
|
|
1238
1238
|
try {
|
|
1239
1239
|
(t & Rt) !== 0 ? $a(e) : ri(e), ni(e);
|
|
1240
|
-
var i =
|
|
1240
|
+
var i = fi(e);
|
|
1241
1241
|
e.teardown = typeof i == "function" ? i : null, e.wv = Tn;
|
|
1242
1242
|
var o;
|
|
1243
1243
|
ro && wa && (e.f & ye) !== 0 && e.deps;
|
|
1244
1244
|
} finally {
|
|
1245
|
-
|
|
1245
|
+
Lt = r, O = n;
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
@@ -1250,7 +1250,7 @@ function S(e) {
|
|
|
1250
1250
|
var t = e.f, n = (t & Te) !== 0;
|
|
1251
1251
|
if ($ !== null && !De) {
|
|
1252
1252
|
var r = O !== null && (O.f & gt) !== 0;
|
|
1253
|
-
if (!r && !
|
|
1253
|
+
if (!r && !Ge?.includes(e)) {
|
|
1254
1254
|
var i = $.deps;
|
|
1255
1255
|
if (($.f & er) !== 0)
|
|
1256
1256
|
e.rv < tn && (e.rv = tn, he === null && i !== null && i[Ce] === e ? Ce++ : he === null ? he = [e] : (!Xe || !he.includes(e)) && he.push(e));
|
|
@@ -1275,24 +1275,24 @@ function S(e) {
|
|
|
1275
1275
|
if (n) {
|
|
1276
1276
|
a = /** @type {Derived} */
|
|
1277
1277
|
e;
|
|
1278
|
-
var
|
|
1279
|
-
return ((a.f & le) !== 0 ||
|
|
1278
|
+
var f = a.v;
|
|
1279
|
+
return ((a.f & le) !== 0 || ci(a)) && (f = yr(a)), st.set(a, f), f;
|
|
1280
1280
|
}
|
|
1281
1281
|
} else if (n) {
|
|
1282
1282
|
if (a = /** @type {Derived} */
|
|
1283
1283
|
e, Mt?.has(a))
|
|
1284
1284
|
return Mt.get(a);
|
|
1285
|
-
Mn(a) &&
|
|
1285
|
+
Mn(a) && jo(a);
|
|
1286
1286
|
}
|
|
1287
1287
|
if ((e.f & lt) !== 0)
|
|
1288
1288
|
throw e.v;
|
|
1289
1289
|
return e.v;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1292
|
-
if (e.v ===
|
|
1291
|
+
function ci(e) {
|
|
1292
|
+
if (e.v === fe) return !0;
|
|
1293
1293
|
if (e.deps === null) return !1;
|
|
1294
1294
|
for (const t of e.deps)
|
|
1295
|
-
if (st.has(t) || (t.f & Te) !== 0 &&
|
|
1295
|
+
if (st.has(t) || (t.f & Te) !== 0 && ci(
|
|
1296
1296
|
/** @type {Derived} */
|
|
1297
1297
|
t
|
|
1298
1298
|
))
|
|
@@ -1308,12 +1308,12 @@ function Vt(e) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
const Za = -7169;
|
|
1311
|
-
function
|
|
1311
|
+
function ce(e, t) {
|
|
1312
1312
|
e.f = e.f & Za | t;
|
|
1313
1313
|
}
|
|
1314
|
-
let
|
|
1314
|
+
let co = !1;
|
|
1315
1315
|
function di() {
|
|
1316
|
-
|
|
1316
|
+
co || (co = !0, document.addEventListener(
|
|
1317
1317
|
"reset",
|
|
1318
1318
|
(e) => {
|
|
1319
1319
|
Promise.resolve().then(() => {
|
|
@@ -1347,9 +1347,9 @@ function za(e, t, n, r = n) {
|
|
|
1347
1347
|
} : e.__on_r = () => r(!0), di();
|
|
1348
1348
|
}
|
|
1349
1349
|
const gi = /* @__PURE__ */ new Set(), or = /* @__PURE__ */ new Set();
|
|
1350
|
-
function
|
|
1350
|
+
function ja(e, t, n, r = {}) {
|
|
1351
1351
|
function i(o) {
|
|
1352
|
-
if (r.capture ||
|
|
1352
|
+
if (r.capture || Gt.call(t, o), !o.cancelBubble)
|
|
1353
1353
|
return Hn(() => n?.call(this, o));
|
|
1354
1354
|
}
|
|
1355
1355
|
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? on(() => {
|
|
@@ -1357,7 +1357,7 @@ function Wa(e, t, n, r = {}) {
|
|
|
1357
1357
|
}) : t.addEventListener(e, i, r), i;
|
|
1358
1358
|
}
|
|
1359
1359
|
function vi(e, t, n, r, i) {
|
|
1360
|
-
var o = { capture: r, passive: i }, a =
|
|
1360
|
+
var o = { capture: r, passive: i }, a = ja(e, t, n, o);
|
|
1361
1361
|
(t === document.body || // @ts-ignore
|
|
1362
1362
|
t === window || // @ts-ignore
|
|
1363
1363
|
t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
@@ -1371,7 +1371,7 @@ function Ke(e) {
|
|
|
1371
1371
|
for (var n of or)
|
|
1372
1372
|
n(e);
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Gt(e) {
|
|
1375
1375
|
var t = this, n = (
|
|
1376
1376
|
/** @type {Node} */
|
|
1377
1377
|
t.ownerDocument
|
|
@@ -1380,8 +1380,8 @@ function jt(e) {
|
|
|
1380
1380
|
i[0] || e.target
|
|
1381
1381
|
), a = 0, s = e.__root;
|
|
1382
1382
|
if (s) {
|
|
1383
|
-
var
|
|
1384
|
-
if (
|
|
1383
|
+
var f = i.indexOf(s);
|
|
1384
|
+
if (f !== -1 && (t === document || t === /** @type {any} */
|
|
1385
1385
|
window)) {
|
|
1386
1386
|
e.__root = t;
|
|
1387
1387
|
return;
|
|
@@ -1389,17 +1389,17 @@ function jt(e) {
|
|
|
1389
1389
|
var l = i.indexOf(t);
|
|
1390
1390
|
if (l === -1)
|
|
1391
1391
|
return;
|
|
1392
|
-
|
|
1392
|
+
f <= l && (a = f);
|
|
1393
1393
|
}
|
|
1394
1394
|
if (o = /** @type {Element} */
|
|
1395
1395
|
i[a] || e.target, o !== t) {
|
|
1396
|
-
|
|
1396
|
+
kt(e, "currentTarget", {
|
|
1397
1397
|
configurable: !0,
|
|
1398
1398
|
get() {
|
|
1399
1399
|
return o || n;
|
|
1400
1400
|
}
|
|
1401
1401
|
});
|
|
1402
|
-
var g = $,
|
|
1402
|
+
var g = $, c = O;
|
|
1403
1403
|
Pe(null), tt(null);
|
|
1404
1404
|
try {
|
|
1405
1405
|
for (var v, p = []; o !== null; ) {
|
|
@@ -1431,7 +1431,7 @@ function jt(e) {
|
|
|
1431
1431
|
throw v;
|
|
1432
1432
|
}
|
|
1433
1433
|
} finally {
|
|
1434
|
-
e.__root = t, delete e.currentTarget, Pe(g), tt(
|
|
1434
|
+
e.__root = t, delete e.currentTarget, Pe(g), tt(c);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
@@ -1456,23 +1456,23 @@ function se(e, t) {
|
|
|
1456
1456
|
/* @__PURE__ */ Re(i)));
|
|
1457
1457
|
var a = (
|
|
1458
1458
|
/** @type {TemplateNode} */
|
|
1459
|
-
r ||
|
|
1459
|
+
r || Yo ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1460
1460
|
);
|
|
1461
1461
|
if (n) {
|
|
1462
1462
|
var s = (
|
|
1463
1463
|
/** @type {TemplateNode} */
|
|
1464
1464
|
/* @__PURE__ */ Re(a)
|
|
1465
|
-
),
|
|
1465
|
+
), f = (
|
|
1466
1466
|
/** @type {TemplateNode} */
|
|
1467
1467
|
a.lastChild
|
|
1468
1468
|
);
|
|
1469
|
-
Qe(s,
|
|
1469
|
+
Qe(s, f);
|
|
1470
1470
|
} else
|
|
1471
1471
|
Qe(a, a);
|
|
1472
1472
|
return a;
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Y() {
|
|
1476
1476
|
if (B)
|
|
1477
1477
|
return Qe(F, null), F;
|
|
1478
1478
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = et();
|
|
@@ -1488,9 +1488,9 @@ function R(e, t) {
|
|
|
1488
1488
|
t
|
|
1489
1489
|
);
|
|
1490
1490
|
}
|
|
1491
|
-
const
|
|
1492
|
-
function
|
|
1493
|
-
return
|
|
1491
|
+
const Wa = ["touchstart", "touchmove"];
|
|
1492
|
+
function Ga(e) {
|
|
1493
|
+
return Wa.includes(e);
|
|
1494
1494
|
}
|
|
1495
1495
|
let ir = !0;
|
|
1496
1496
|
function Sr(e, t) {
|
|
@@ -1500,7 +1500,7 @@ function Sr(e, t) {
|
|
|
1500
1500
|
function pi(e, t) {
|
|
1501
1501
|
return _i(e, t);
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function qa(e, t) {
|
|
1504
1504
|
rr(), t.intro = t.intro ?? !1;
|
|
1505
1505
|
const n = t.target, r = B, i = F;
|
|
1506
1506
|
try {
|
|
@@ -1510,10 +1510,10 @@ function Ya(e, t) {
|
|
|
1510
1510
|
); o && (o.nodeType !== xt || /** @type {Comment} */
|
|
1511
1511
|
o.data !== Ho); )
|
|
1512
1512
|
o = /** @type {TemplateNode} */
|
|
1513
|
-
/* @__PURE__ */
|
|
1513
|
+
/* @__PURE__ */ Ye(o);
|
|
1514
1514
|
if (!o)
|
|
1515
1515
|
throw it;
|
|
1516
|
-
|
|
1516
|
+
We(!0), ke(
|
|
1517
1517
|
/** @type {Comment} */
|
|
1518
1518
|
o
|
|
1519
1519
|
), St();
|
|
@@ -1521,37 +1521,37 @@ function Ya(e, t) {
|
|
|
1521
1521
|
if (F === null || F.nodeType !== xt || /** @type {Comment} */
|
|
1522
1522
|
F.data !== dr)
|
|
1523
1523
|
throw rn(), it;
|
|
1524
|
-
return
|
|
1524
|
+
return We(!1), /** @type {Exports} */
|
|
1525
1525
|
a;
|
|
1526
1526
|
} catch (a) {
|
|
1527
1527
|
if (a === it)
|
|
1528
|
-
return t.recover === !1 && va(), rr(), Jo(n),
|
|
1528
|
+
return t.recover === !1 && va(), rr(), Jo(n), We(!1), pi(e, t);
|
|
1529
1529
|
throw a;
|
|
1530
1530
|
} finally {
|
|
1531
|
-
|
|
1531
|
+
We(r), ke(i);
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
1534
|
const Et = /* @__PURE__ */ new Map();
|
|
1535
1535
|
function _i(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: a = !0 }) {
|
|
1536
1536
|
rr();
|
|
1537
|
-
var s = /* @__PURE__ */ new Set(),
|
|
1538
|
-
for (var v = 0; v <
|
|
1539
|
-
var p =
|
|
1537
|
+
var s = /* @__PURE__ */ new Set(), f = (c) => {
|
|
1538
|
+
for (var v = 0; v < c.length; v++) {
|
|
1539
|
+
var p = c[v];
|
|
1540
1540
|
if (!s.has(p)) {
|
|
1541
1541
|
s.add(p);
|
|
1542
|
-
var d =
|
|
1543
|
-
t.addEventListener(p,
|
|
1542
|
+
var d = Ga(p);
|
|
1543
|
+
t.addEventListener(p, Gt, { passive: d });
|
|
1544
1544
|
var _ = Et.get(p);
|
|
1545
|
-
_ === void 0 ? (document.addEventListener(p,
|
|
1545
|
+
_ === void 0 ? (document.addEventListener(p, Gt, { passive: d }), Et.set(p, 1)) : Et.set(p, _ + 1);
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
1548
|
};
|
|
1549
|
-
|
|
1549
|
+
f(vr(gi)), or.add(f);
|
|
1550
1550
|
var l = void 0, g = Da(() => {
|
|
1551
|
-
var
|
|
1552
|
-
return
|
|
1551
|
+
var c = n ?? t.appendChild(et());
|
|
1552
|
+
return ft(() => {
|
|
1553
1553
|
if (o) {
|
|
1554
|
-
|
|
1554
|
+
W({});
|
|
1555
1555
|
var v = (
|
|
1556
1556
|
/** @type {ComponentContext} */
|
|
1557
1557
|
oe
|
|
@@ -1560,32 +1560,32 @@ function _i(e, { target: t, anchor: n, props: r = {}, events: i, context: o, int
|
|
|
1560
1560
|
}
|
|
1561
1561
|
i && (r.$$events = i), B && Qe(
|
|
1562
1562
|
/** @type {TemplateNode} */
|
|
1563
|
-
|
|
1563
|
+
c,
|
|
1564
1564
|
null
|
|
1565
|
-
), ir = a, l = e(
|
|
1565
|
+
), ir = a, l = e(c, r) || {}, ir = !0, B && (O.nodes_end = F), o && G();
|
|
1566
1566
|
}), () => {
|
|
1567
1567
|
for (var v of s) {
|
|
1568
|
-
t.removeEventListener(v,
|
|
1568
|
+
t.removeEventListener(v, Gt);
|
|
1569
1569
|
var p = (
|
|
1570
1570
|
/** @type {number} */
|
|
1571
1571
|
Et.get(v)
|
|
1572
1572
|
);
|
|
1573
|
-
--p === 0 ? (document.removeEventListener(v,
|
|
1573
|
+
--p === 0 ? (document.removeEventListener(v, Gt), Et.delete(v)) : Et.set(v, p);
|
|
1574
1574
|
}
|
|
1575
|
-
or.delete(
|
|
1575
|
+
or.delete(f), c !== n && c.parentNode?.removeChild(c);
|
|
1576
1576
|
};
|
|
1577
1577
|
});
|
|
1578
1578
|
return ar.set(l, g), l;
|
|
1579
1579
|
}
|
|
1580
1580
|
let ar = /* @__PURE__ */ new WeakMap();
|
|
1581
|
-
function
|
|
1581
|
+
function Ya(e, t) {
|
|
1582
1582
|
const n = ar.get(e);
|
|
1583
1583
|
return n ? (ar.delete(e), n(t)) : Promise.resolve();
|
|
1584
1584
|
}
|
|
1585
1585
|
function Ka(e, t, ...n) {
|
|
1586
1586
|
var r = e, i = yt, o;
|
|
1587
|
-
|
|
1588
|
-
i !== (i = t()) && (o && (Ie(o), o = null), o =
|
|
1587
|
+
Ar(() => {
|
|
1588
|
+
i !== (i = t()) && (o && (Ie(o), o = null), o = ft(() => (
|
|
1589
1589
|
/** @type {SnippetFn} */
|
|
1590
1590
|
i(r, ...n)
|
|
1591
1591
|
)));
|
|
@@ -1609,15 +1609,15 @@ function Ja(e) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
function X(e, t, n = !1) {
|
|
1611
1611
|
B && St();
|
|
1612
|
-
var r = e, i = null, o = null, a =
|
|
1612
|
+
var r = e, i = null, o = null, a = fe, s = n ? nn : 0, f = !1;
|
|
1613
1613
|
const l = (p, d = !0) => {
|
|
1614
|
-
|
|
1614
|
+
f = !0, v(d, p);
|
|
1615
1615
|
};
|
|
1616
1616
|
var g = null;
|
|
1617
|
-
function
|
|
1617
|
+
function c() {
|
|
1618
1618
|
g !== null && (g.lastChild.remove(), r.before(g), g = null);
|
|
1619
1619
|
var p = a ? i : o, d = a ? o : i;
|
|
1620
|
-
p && xr(p), d &&
|
|
1620
|
+
p && xr(p), d && Lr(d, () => {
|
|
1621
1621
|
a ? o = null : i = null;
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
@@ -1625,22 +1625,22 @@ function X(e, t, n = !1) {
|
|
|
1625
1625
|
if (a === (a = p)) return;
|
|
1626
1626
|
let _ = !1;
|
|
1627
1627
|
if (B) {
|
|
1628
|
-
const H = Po(r) ===
|
|
1629
|
-
!!a === H && (r = tr(),
|
|
1628
|
+
const H = Po(r) === cr;
|
|
1629
|
+
!!a === H && (r = tr(), ke(r), We(!1), _ = !0);
|
|
1630
1630
|
}
|
|
1631
1631
|
var h = Qo(), b = r;
|
|
1632
|
-
if (h && (g = document.createDocumentFragment(), g.append(b = et())), a ? i ??= d &&
|
|
1632
|
+
if (h && (g = document.createDocumentFragment(), g.append(b = et())), a ? i ??= d && ft(() => d(b)) : o ??= d && ft(() => d(b)), h) {
|
|
1633
1633
|
var y = (
|
|
1634
1634
|
/** @type {Batch} */
|
|
1635
1635
|
ne
|
|
1636
1636
|
), w = a ? i : o, C = a ? o : i;
|
|
1637
|
-
w && y.skipped_effects.delete(w), C && y.skipped_effects.add(C), y.add_callback(
|
|
1637
|
+
w && y.skipped_effects.delete(w), C && y.skipped_effects.add(C), y.add_callback(c);
|
|
1638
1638
|
} else
|
|
1639
|
-
|
|
1640
|
-
_ &&
|
|
1639
|
+
c();
|
|
1640
|
+
_ && We(!0);
|
|
1641
1641
|
};
|
|
1642
|
-
|
|
1643
|
-
|
|
1642
|
+
Ar(() => {
|
|
1643
|
+
f = !1, t(l), f || v(null, null);
|
|
1644
1644
|
}, s), B && (r = F);
|
|
1645
1645
|
}
|
|
1646
1646
|
function go(e, t) {
|
|
@@ -1648,15 +1648,15 @@ function go(e, t) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
function Qa(e, t, n) {
|
|
1650
1650
|
for (var r = e.items, i = [], o = t.length, a = 0; a < o; a++)
|
|
1651
|
-
|
|
1651
|
+
kr(t[a].e, i, !0);
|
|
1652
1652
|
var s = o > 0 && i.length === 0 && n !== null;
|
|
1653
1653
|
if (s) {
|
|
1654
|
-
var
|
|
1654
|
+
var f = (
|
|
1655
1655
|
/** @type {Element} */
|
|
1656
1656
|
/** @type {Element} */
|
|
1657
1657
|
n.parentNode
|
|
1658
1658
|
);
|
|
1659
|
-
Jo(
|
|
1659
|
+
Jo(f), f.append(
|
|
1660
1660
|
/** @type {Element} */
|
|
1661
1661
|
n
|
|
1662
1662
|
), r.clear(), Ve(e, t[0].prev, t[o - 1].next);
|
|
@@ -1669,19 +1669,19 @@ function Qa(e, t, n) {
|
|
|
1669
1669
|
});
|
|
1670
1670
|
}
|
|
1671
1671
|
function Ht(e, t, n, r, i, o = null) {
|
|
1672
|
-
var a = e, s = { flags: t, items: /* @__PURE__ */ new Map(), first: null },
|
|
1673
|
-
if (
|
|
1672
|
+
var a = e, s = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, f = (t & Mo) !== 0;
|
|
1673
|
+
if (f) {
|
|
1674
1674
|
var l = (
|
|
1675
1675
|
/** @type {Element} */
|
|
1676
1676
|
e
|
|
1677
1677
|
);
|
|
1678
|
-
a = B ?
|
|
1678
|
+
a = B ? ke(
|
|
1679
1679
|
/** @type {Comment | Text} */
|
|
1680
1680
|
/* @__PURE__ */ Re(l)
|
|
1681
1681
|
) : l.appendChild(et());
|
|
1682
1682
|
}
|
|
1683
1683
|
B && St();
|
|
1684
|
-
var g = null,
|
|
1684
|
+
var g = null, c = !1, v = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ Er(() => {
|
|
1685
1685
|
var b = n();
|
|
1686
1686
|
return gr(b) ? b : b == null ? [] : vr(b);
|
|
1687
1687
|
}), d, _;
|
|
@@ -1696,37 +1696,37 @@ function Ht(e, t, n, r, i, o = null) {
|
|
|
1696
1696
|
t,
|
|
1697
1697
|
r,
|
|
1698
1698
|
n
|
|
1699
|
-
), o !== null && (d.length === 0 ? g ? xr(g) : g =
|
|
1699
|
+
), o !== null && (d.length === 0 ? g ? xr(g) : g = ft(() => o(a)) : g !== null && Lr(g, () => {
|
|
1700
1700
|
g = null;
|
|
1701
1701
|
}));
|
|
1702
1702
|
}
|
|
1703
|
-
|
|
1703
|
+
Ar(() => {
|
|
1704
1704
|
_ ??= /** @type {Effect} */
|
|
1705
1705
|
O, d = S(p);
|
|
1706
1706
|
var b = d.length;
|
|
1707
|
-
if (
|
|
1707
|
+
if (c && b === 0)
|
|
1708
1708
|
return;
|
|
1709
|
-
|
|
1709
|
+
c = b === 0;
|
|
1710
1710
|
let y = !1;
|
|
1711
1711
|
if (B) {
|
|
1712
|
-
var w = Po(a) ===
|
|
1713
|
-
w !== (b === 0) && (a = tr(),
|
|
1712
|
+
var w = Po(a) === cr;
|
|
1713
|
+
w !== (b === 0) && (a = tr(), ke(a), We(!1), y = !0);
|
|
1714
1714
|
}
|
|
1715
1715
|
if (B) {
|
|
1716
1716
|
for (var C = null, H, E = 0; E < b; E++) {
|
|
1717
1717
|
if (F.nodeType === xt && /** @type {Comment} */
|
|
1718
1718
|
F.data === dr) {
|
|
1719
1719
|
a = /** @type {Comment} */
|
|
1720
|
-
F, y = !0,
|
|
1720
|
+
F, y = !0, We(!1);
|
|
1721
1721
|
break;
|
|
1722
1722
|
}
|
|
1723
|
-
var
|
|
1723
|
+
var k = d[E], I = r(k, E);
|
|
1724
1724
|
H = lr(
|
|
1725
1725
|
F,
|
|
1726
1726
|
s,
|
|
1727
1727
|
C,
|
|
1728
1728
|
null,
|
|
1729
|
-
|
|
1729
|
+
k,
|
|
1730
1730
|
I,
|
|
1731
1731
|
E,
|
|
1732
1732
|
i,
|
|
@@ -1734,24 +1734,24 @@ function Ht(e, t, n, r, i, o = null) {
|
|
|
1734
1734
|
n
|
|
1735
1735
|
), s.items.set(I, H), C = H;
|
|
1736
1736
|
}
|
|
1737
|
-
b > 0 &&
|
|
1737
|
+
b > 0 && ke(tr());
|
|
1738
1738
|
}
|
|
1739
1739
|
if (B)
|
|
1740
|
-
b === 0 && o && (g =
|
|
1740
|
+
b === 0 && o && (g = ft(() => o(a)));
|
|
1741
1741
|
else if (Qo()) {
|
|
1742
1742
|
var K = /* @__PURE__ */ new Set(), we = (
|
|
1743
1743
|
/** @type {Batch} */
|
|
1744
1744
|
ne
|
|
1745
1745
|
);
|
|
1746
1746
|
for (E = 0; E < b; E += 1) {
|
|
1747
|
-
|
|
1747
|
+
k = d[E], I = r(k, E);
|
|
1748
1748
|
var D = s.items.get(I) ?? v.get(I);
|
|
1749
|
-
D ? (t & (
|
|
1749
|
+
D ? (t & (Ln | kn)) !== 0 && mi(D, k, E, t) : (H = lr(
|
|
1750
1750
|
null,
|
|
1751
1751
|
s,
|
|
1752
1752
|
null,
|
|
1753
1753
|
null,
|
|
1754
|
-
|
|
1754
|
+
k,
|
|
1755
1755
|
I,
|
|
1756
1756
|
E,
|
|
1757
1757
|
i,
|
|
@@ -1765,21 +1765,21 @@ function Ht(e, t, n, r, i, o = null) {
|
|
|
1765
1765
|
we.add_callback(h);
|
|
1766
1766
|
} else
|
|
1767
1767
|
h();
|
|
1768
|
-
y &&
|
|
1768
|
+
y && We(!0), S(p);
|
|
1769
1769
|
}), B && (a = F);
|
|
1770
1770
|
}
|
|
1771
|
-
function el(e, t, n, r, i, o, a, s,
|
|
1772
|
-
var l = (a & Ui) !== 0, g = (a & (
|
|
1771
|
+
function el(e, t, n, r, i, o, a, s, f) {
|
|
1772
|
+
var l = (a & Ui) !== 0, g = (a & (Ln | kn)) !== 0, c = t.length, v = n.items, p = n.first, d = p, _, h = null, b, y = [], w = [], C, H, E, k;
|
|
1773
1773
|
if (l)
|
|
1774
|
-
for (
|
|
1775
|
-
C = t[
|
|
1776
|
-
for (
|
|
1777
|
-
if (C = t[
|
|
1774
|
+
for (k = 0; k < c; k += 1)
|
|
1775
|
+
C = t[k], H = s(C, k), E = v.get(H), E !== void 0 && (E.a?.measure(), (b ??= /* @__PURE__ */ new Set()).add(E));
|
|
1776
|
+
for (k = 0; k < c; k += 1) {
|
|
1777
|
+
if (C = t[k], H = s(C, k), E = v.get(H), E === void 0) {
|
|
1778
1778
|
var I = r.get(H);
|
|
1779
1779
|
if (I !== void 0) {
|
|
1780
1780
|
r.delete(H), v.set(H, I);
|
|
1781
1781
|
var K = h ? h.next : d;
|
|
1782
|
-
Ve(n, h, I), Ve(n, I, K),
|
|
1782
|
+
Ve(n, h, I), Ve(n, I, K), Wn(I, K, i), h = I;
|
|
1783
1783
|
} else {
|
|
1784
1784
|
var we = d ? (
|
|
1785
1785
|
/** @type {TemplateNode} */
|
|
@@ -1792,28 +1792,28 @@ function el(e, t, n, r, i, o, a, s, c) {
|
|
|
1792
1792
|
h === null ? n.first : h.next,
|
|
1793
1793
|
C,
|
|
1794
1794
|
H,
|
|
1795
|
-
|
|
1795
|
+
k,
|
|
1796
1796
|
o,
|
|
1797
1797
|
a,
|
|
1798
|
-
|
|
1798
|
+
f
|
|
1799
1799
|
);
|
|
1800
1800
|
}
|
|
1801
1801
|
v.set(H, h), y = [], w = [], d = h.next;
|
|
1802
1802
|
continue;
|
|
1803
1803
|
}
|
|
1804
|
-
if (g && mi(E, C,
|
|
1804
|
+
if (g && mi(E, C, k, a), (E.e.f & Oe) !== 0 && (xr(E.e), l && (E.a?.unfix(), (b ??= /* @__PURE__ */ new Set()).delete(E))), E !== d) {
|
|
1805
1805
|
if (_ !== void 0 && _.has(E)) {
|
|
1806
1806
|
if (y.length < w.length) {
|
|
1807
1807
|
var D = w[0], Z;
|
|
1808
1808
|
h = D.prev;
|
|
1809
1809
|
var Me = y[0], Be = y[y.length - 1];
|
|
1810
1810
|
for (Z = 0; Z < y.length; Z += 1)
|
|
1811
|
-
|
|
1811
|
+
Wn(y[Z], D, i);
|
|
1812
1812
|
for (Z = 0; Z < w.length; Z += 1)
|
|
1813
1813
|
_.delete(w[Z]);
|
|
1814
|
-
Ve(n, Me.prev, Be.next), Ve(n, h, Me), Ve(n, Be, D), d = D, h = Be,
|
|
1814
|
+
Ve(n, Me.prev, Be.next), Ve(n, h, Me), Ve(n, Be, D), d = D, h = Be, k -= 1, y = [], w = [];
|
|
1815
1815
|
} else
|
|
1816
|
-
_.delete(E),
|
|
1816
|
+
_.delete(E), Wn(E, d, i), Ve(n, E.prev, E.next), Ve(n, E, h === null ? n.first : h.next), Ve(n, h, E), h = E;
|
|
1817
1817
|
continue;
|
|
1818
1818
|
}
|
|
1819
1819
|
for (y = [], w = []; d !== null && d.k !== H; )
|
|
@@ -1829,12 +1829,12 @@ function el(e, t, n, r, i, o, a, s, c) {
|
|
|
1829
1829
|
(d.e.f & Oe) === 0 && rt.push(d), d = d.next;
|
|
1830
1830
|
var Dt = rt.length;
|
|
1831
1831
|
if (Dt > 0) {
|
|
1832
|
-
var On = (a & Mo) !== 0 &&
|
|
1832
|
+
var On = (a & Mo) !== 0 && c === 0 ? i : null;
|
|
1833
1833
|
if (l) {
|
|
1834
|
-
for (
|
|
1835
|
-
rt[
|
|
1836
|
-
for (
|
|
1837
|
-
rt[
|
|
1834
|
+
for (k = 0; k < Dt; k += 1)
|
|
1835
|
+
rt[k].a?.measure();
|
|
1836
|
+
for (k = 0; k < Dt; k += 1)
|
|
1837
|
+
rt[k].a?.fix();
|
|
1838
1838
|
}
|
|
1839
1839
|
Qa(n, rt, On);
|
|
1840
1840
|
}
|
|
@@ -1849,14 +1849,14 @@ function el(e, t, n, r, i, o, a, s, c) {
|
|
|
1849
1849
|
r.clear();
|
|
1850
1850
|
}
|
|
1851
1851
|
function mi(e, t, n, r) {
|
|
1852
|
-
(r &
|
|
1852
|
+
(r & Ln) !== 0 && en(e.v, t), (r & kn) !== 0 ? en(
|
|
1853
1853
|
/** @type {Value<number>} */
|
|
1854
1854
|
e.i,
|
|
1855
1855
|
n
|
|
1856
1856
|
) : e.i = n;
|
|
1857
1857
|
}
|
|
1858
|
-
function lr(e, t, n, r, i, o, a, s,
|
|
1859
|
-
var
|
|
1858
|
+
function lr(e, t, n, r, i, o, a, s, f, l, g) {
|
|
1859
|
+
var c = (f & Ln) !== 0, v = (f & Zi) === 0, p = c ? v ? /* @__PURE__ */ Go(i, !1, !1) : Qt(i) : i, d = (f & kn) === 0 ? a : Qt(a), _ = {
|
|
1860
1860
|
i: d,
|
|
1861
1861
|
v: p,
|
|
1862
1862
|
k: o,
|
|
@@ -1871,7 +1871,7 @@ function lr(e, t, n, r, i, o, a, s, c, l, g) {
|
|
|
1871
1871
|
var h = document.createDocumentFragment();
|
|
1872
1872
|
h.append(e = et());
|
|
1873
1873
|
}
|
|
1874
|
-
return _.e =
|
|
1874
|
+
return _.e = ft(() => s(
|
|
1875
1875
|
/** @type {Node} */
|
|
1876
1876
|
e,
|
|
1877
1877
|
p,
|
|
@@ -1881,7 +1881,7 @@ function lr(e, t, n, r, i, o, a, s, c, l, g) {
|
|
|
1881
1881
|
} finally {
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function Wn(e, t, n) {
|
|
1885
1885
|
for (var r = e.next ? (
|
|
1886
1886
|
/** @type {TemplateNode} */
|
|
1887
1887
|
e.next.e.nodes_start
|
|
@@ -1894,7 +1894,7 @@ function Gn(e, t, n) {
|
|
|
1894
1894
|
); o !== null && o !== r; ) {
|
|
1895
1895
|
var a = (
|
|
1896
1896
|
/** @type {TemplateNode} */
|
|
1897
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ Ye(o)
|
|
1898
1898
|
);
|
|
1899
1899
|
i.before(o), o = a;
|
|
1900
1900
|
}
|
|
@@ -1904,7 +1904,7 @@ function Ve(e, t, n) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
function tl(e, t, n = !1, r = !1, i = !1) {
|
|
1906
1906
|
var o = e, a = "";
|
|
1907
|
-
|
|
1907
|
+
Ae(() => {
|
|
1908
1908
|
var s = (
|
|
1909
1909
|
/** @type {Effect} */
|
|
1910
1910
|
O
|
|
@@ -1920,32 +1920,32 @@ function tl(e, t, n = !1, r = !1, i = !1) {
|
|
|
1920
1920
|
), s.nodes_start = s.nodes_end = null), a !== "") {
|
|
1921
1921
|
if (B) {
|
|
1922
1922
|
F.data;
|
|
1923
|
-
for (var
|
|
1924
|
-
|
|
1925
|
-
l =
|
|
1926
|
-
/* @__PURE__ */
|
|
1927
|
-
if (
|
|
1923
|
+
for (var f = St(), l = f; f !== null && (f.nodeType !== xt || /** @type {Comment} */
|
|
1924
|
+
f.data !== ""); )
|
|
1925
|
+
l = f, f = /** @type {TemplateNode} */
|
|
1926
|
+
/* @__PURE__ */ Ye(f);
|
|
1927
|
+
if (f === null)
|
|
1928
1928
|
throw rn(), it;
|
|
1929
|
-
Qe(F, l), o =
|
|
1929
|
+
Qe(F, l), o = ke(f);
|
|
1930
1930
|
return;
|
|
1931
1931
|
}
|
|
1932
1932
|
var g = a + "";
|
|
1933
1933
|
n ? g = `<svg>${g}</svg>` : r && (g = `<math>${g}</math>`);
|
|
1934
|
-
var
|
|
1935
|
-
if ((n || r) && (
|
|
1936
|
-
/* @__PURE__ */ Re(
|
|
1934
|
+
var c = hi(g);
|
|
1935
|
+
if ((n || r) && (c = /** @type {Element} */
|
|
1936
|
+
/* @__PURE__ */ Re(c)), Qe(
|
|
1937
1937
|
/** @type {TemplateNode} */
|
|
1938
|
-
/* @__PURE__ */ Re(
|
|
1938
|
+
/* @__PURE__ */ Re(c),
|
|
1939
1939
|
/** @type {TemplateNode} */
|
|
1940
|
-
|
|
1940
|
+
c.lastChild
|
|
1941
1941
|
), n || r)
|
|
1942
|
-
for (; /* @__PURE__ */ Re(
|
|
1942
|
+
for (; /* @__PURE__ */ Re(c); )
|
|
1943
1943
|
o.before(
|
|
1944
1944
|
/** @type {Node} */
|
|
1945
|
-
/* @__PURE__ */ Re(
|
|
1945
|
+
/* @__PURE__ */ Re(c)
|
|
1946
1946
|
);
|
|
1947
1947
|
else
|
|
1948
|
-
o.before(
|
|
1948
|
+
o.before(c);
|
|
1949
1949
|
}
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
@@ -2003,9 +2003,9 @@ function Rn(e, t, n, r, i, o) {
|
|
|
2003
2003
|
var s = nl(n, r, o);
|
|
2004
2004
|
(!B || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = n;
|
|
2005
2005
|
} else if (o && i !== o)
|
|
2006
|
-
for (var
|
|
2007
|
-
var l = !!o[
|
|
2008
|
-
(i == null || l !== !!i[
|
|
2006
|
+
for (var f in o) {
|
|
2007
|
+
var l = !!o[f];
|
|
2008
|
+
(i == null || l !== !!i[f]) && e.classList.toggle(f, l);
|
|
2009
2009
|
}
|
|
2010
2010
|
return o;
|
|
2011
2011
|
}
|
|
@@ -2032,7 +2032,7 @@ function Ci(e) {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
2035
|
-
e.__on_r = n,
|
|
2035
|
+
e.__on_r = n, Aa(n), di();
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
function Q(e, t, n, r) {
|
|
@@ -2062,7 +2062,7 @@ function ll(e) {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
return t;
|
|
2064
2064
|
}
|
|
2065
|
-
const sl = () => performance.now(),
|
|
2065
|
+
const sl = () => performance.now(), je = {
|
|
2066
2066
|
// don't access requestAnimationFrame eagerly outside method
|
|
2067
2067
|
// this allows basic testing of user code without JSDOM
|
|
2068
2068
|
// bunder will eval and remove ternary when the user's app is built
|
|
@@ -2074,19 +2074,19 @@ const sl = () => performance.now(), We = {
|
|
|
2074
2074
|
tasks: /* @__PURE__ */ new Set()
|
|
2075
2075
|
};
|
|
2076
2076
|
function Ei() {
|
|
2077
|
-
const e =
|
|
2078
|
-
|
|
2079
|
-
t.c(e) || (
|
|
2080
|
-
}),
|
|
2077
|
+
const e = je.now();
|
|
2078
|
+
je.tasks.forEach((t) => {
|
|
2079
|
+
t.c(e) || (je.tasks.delete(t), t.f());
|
|
2080
|
+
}), je.tasks.size !== 0 && je.tick(Ei);
|
|
2081
2081
|
}
|
|
2082
2082
|
function ul(e) {
|
|
2083
2083
|
let t;
|
|
2084
|
-
return
|
|
2084
|
+
return je.tasks.size === 0 && je.tick(Ei), {
|
|
2085
2085
|
promise: new Promise((n) => {
|
|
2086
|
-
|
|
2086
|
+
je.tasks.add(t = { c: e, f: n });
|
|
2087
2087
|
}),
|
|
2088
2088
|
abort() {
|
|
2089
|
-
|
|
2089
|
+
je.tasks.delete(t);
|
|
2090
2090
|
}
|
|
2091
2091
|
};
|
|
2092
2092
|
}
|
|
@@ -2095,7 +2095,7 @@ function hn(e, t) {
|
|
|
2095
2095
|
e.dispatchEvent(new CustomEvent(t));
|
|
2096
2096
|
});
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2098
|
+
function fl(e) {
|
|
2099
2099
|
if (e === "float") return "cssFloat";
|
|
2100
2100
|
if (e === "offset") return "cssOffset";
|
|
2101
2101
|
if (e.startsWith("--")) return e;
|
|
@@ -2110,15 +2110,15 @@ function po(e) {
|
|
|
2110
2110
|
for (const r of n) {
|
|
2111
2111
|
const [i, o] = r.split(":");
|
|
2112
2112
|
if (!i || o === void 0) break;
|
|
2113
|
-
const a =
|
|
2113
|
+
const a = fl(i.trim());
|
|
2114
2114
|
t[a] = o.trim();
|
|
2115
2115
|
}
|
|
2116
2116
|
return t;
|
|
2117
2117
|
}
|
|
2118
|
-
const
|
|
2118
|
+
const cl = (e) => e;
|
|
2119
2119
|
function dl(e, t, n, r) {
|
|
2120
|
-
var i = (e &
|
|
2121
|
-
function
|
|
2120
|
+
var i = (e & Yi) !== 0, o = "both", a, s = t.inert, f = t.style.overflow, l, g;
|
|
2121
|
+
function c() {
|
|
2122
2122
|
return Hn(() => a ??= n()(t, r?.() ?? /** @type {P} */
|
|
2123
2123
|
{}, {
|
|
2124
2124
|
direction: o
|
|
@@ -2127,12 +2127,12 @@ function dl(e, t, n, r) {
|
|
|
2127
2127
|
var v = {
|
|
2128
2128
|
is_global: i,
|
|
2129
2129
|
in() {
|
|
2130
|
-
t.inert = s, hn(t, "introstart"), l = sr(t,
|
|
2131
|
-
hn(t, "introend"), l?.abort(), l = a = void 0, t.style.overflow =
|
|
2130
|
+
t.inert = s, hn(t, "introstart"), l = sr(t, c(), g, 1, () => {
|
|
2131
|
+
hn(t, "introend"), l?.abort(), l = a = void 0, t.style.overflow = f;
|
|
2132
2132
|
});
|
|
2133
2133
|
},
|
|
2134
2134
|
out(h) {
|
|
2135
|
-
t.inert = !0, hn(t, "outrostart"), g = sr(t,
|
|
2135
|
+
t.inert = !0, hn(t, "outrostart"), g = sr(t, c(), l, 0, () => {
|
|
2136
2136
|
hn(t, "outroend"), h?.();
|
|
2137
2137
|
});
|
|
2138
2138
|
},
|
|
@@ -2184,13 +2184,13 @@ function sr(e, t, n, r, i) {
|
|
|
2184
2184
|
reset: yt,
|
|
2185
2185
|
t: () => r
|
|
2186
2186
|
};
|
|
2187
|
-
const { delay:
|
|
2187
|
+
const { delay: f = 0, css: l, tick: g, easing: c = cl } = t;
|
|
2188
2188
|
var v = [];
|
|
2189
2189
|
if (o && n === void 0 && (g && g(0, 1), l)) {
|
|
2190
2190
|
var p = po(l(0, 1));
|
|
2191
2191
|
v.push(p, p);
|
|
2192
2192
|
}
|
|
2193
|
-
var d = () => 1 - r, _ = e.animate(v, { duration:
|
|
2193
|
+
var d = () => 1 - r, _ = e.animate(v, { duration: f, fill: "forwards" });
|
|
2194
2194
|
return _.onfinish = () => {
|
|
2195
2195
|
_.cancel();
|
|
2196
2196
|
var h = n?.t() ?? 1 - r;
|
|
@@ -2203,7 +2203,7 @@ function sr(e, t, n, r, i) {
|
|
|
2203
2203
|
var C = !1;
|
|
2204
2204
|
if (l)
|
|
2205
2205
|
for (var H = Math.ceil(y / 16.666666666666668), E = 0; E <= H; E += 1) {
|
|
2206
|
-
var
|
|
2206
|
+
var k = h + b * c(E / H), I = po(l(k, 1 - k));
|
|
2207
2207
|
w.push(I), C ||= I.overflow === "hidden";
|
|
2208
2208
|
}
|
|
2209
2209
|
C && (e.style.overflow = "hidden"), d = () => {
|
|
@@ -2212,7 +2212,7 @@ function sr(e, t, n, r, i) {
|
|
|
2212
2212
|
/** @type {globalThis.Animation} */
|
|
2213
2213
|
_.currentTime
|
|
2214
2214
|
);
|
|
2215
|
-
return h + b *
|
|
2215
|
+
return h + b * c(K / y);
|
|
2216
2216
|
}, g && ul(() => {
|
|
2217
2217
|
if (_.playState !== "running") return !1;
|
|
2218
2218
|
var K = d();
|
|
@@ -2239,31 +2239,31 @@ function yi(e, t, n = t) {
|
|
|
2239
2239
|
var r = It(), i = /* @__PURE__ */ new WeakSet();
|
|
2240
2240
|
za(e, "input", (o) => {
|
|
2241
2241
|
var a = o ? e.defaultValue : e.value;
|
|
2242
|
-
if (a =
|
|
2243
|
-
var s = e.selectionStart,
|
|
2244
|
-
e.value = a ?? "",
|
|
2242
|
+
if (a = Gn(e) ? qn(a) : a, n(a), ne !== null && i.add(ne), r && a !== (a = t())) {
|
|
2243
|
+
var s = e.selectionStart, f = e.selectionEnd;
|
|
2244
|
+
e.value = a ?? "", f !== null && (e.selectionStart = s, e.selectionEnd = Math.min(f, e.value.length));
|
|
2245
2245
|
}
|
|
2246
2246
|
}), // If we are hydrating and the value has since changed,
|
|
2247
2247
|
// then use the updated value from the input instead.
|
|
2248
2248
|
(B && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
|
|
2249
2249
|
// TODO Svelte 6: remove input.value check and set to empty string?
|
|
2250
|
-
Vt(t) == null && e.value) && (n(
|
|
2250
|
+
Vt(t) == null && e.value) && (n(Gn(e) ? qn(e.value) : e.value), ne !== null && i.add(ne)), Tr(() => {
|
|
2251
2251
|
var o = t();
|
|
2252
2252
|
e === document.activeElement && i.has(
|
|
2253
2253
|
/** @type {Batch} */
|
|
2254
2254
|
ne
|
|
2255
|
-
) ||
|
|
2255
|
+
) || Gn(e) && o === qn(e.value) || e.type === "date" && !o && !e.value || o !== e.value && (e.value = o ?? "");
|
|
2256
2256
|
});
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2258
|
+
function Gn(e) {
|
|
2259
2259
|
var t = e.type;
|
|
2260
2260
|
return t === "number" || t === "range";
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function qn(e) {
|
|
2263
2263
|
return e === "" ? null : +e;
|
|
2264
2264
|
}
|
|
2265
2265
|
function _o(e, t) {
|
|
2266
|
-
return e === t || e?.[
|
|
2266
|
+
return e === t || e?.[qt] === t;
|
|
2267
2267
|
}
|
|
2268
2268
|
function gl(e = {}, t, n, r) {
|
|
2269
2269
|
return Sn(() => {
|
|
@@ -2288,11 +2288,11 @@ function vl(e) {
|
|
|
2288
2288
|
pn = t;
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var i = !Ot || (n &
|
|
2291
|
+
function L(e, t, n, r) {
|
|
2292
|
+
var i = !Ot || (n & ji) !== 0, o = (n & Gi) !== 0, a = (n & qi) !== 0, s = (
|
|
2293
2293
|
/** @type {V} */
|
|
2294
2294
|
r
|
|
2295
|
-
),
|
|
2295
|
+
), f = !0, l = () => (f && (f = !1, s = a ? Vt(
|
|
2296
2296
|
/** @type {() => V} */
|
|
2297
2297
|
r
|
|
2298
2298
|
) : (
|
|
@@ -2300,8 +2300,8 @@ function A(e, t, n, r) {
|
|
|
2300
2300
|
r
|
|
2301
2301
|
)), s), g;
|
|
2302
2302
|
if (o) {
|
|
2303
|
-
var
|
|
2304
|
-
g = at(e, t)?.set ?? (
|
|
2303
|
+
var c = qt in e || Vo in e;
|
|
2304
|
+
g = at(e, t)?.set ?? (c && t in e ? (w) => e[t] = w : void 0);
|
|
2305
2305
|
}
|
|
2306
2306
|
var v, p = !1;
|
|
2307
2307
|
o ? [v, p] = vl(() => (
|
|
@@ -2315,7 +2315,7 @@ function A(e, t, n, r) {
|
|
|
2315
2315
|
/** @type {V} */
|
|
2316
2316
|
e[t]
|
|
2317
2317
|
);
|
|
2318
|
-
return w === void 0 ? l() : (
|
|
2318
|
+
return w === void 0 ? l() : (f = !0, w);
|
|
2319
2319
|
} : d = () => {
|
|
2320
2320
|
var w = (
|
|
2321
2321
|
/** @type {V} */
|
|
@@ -2323,7 +2323,7 @@ function A(e, t, n, r) {
|
|
|
2323
2323
|
);
|
|
2324
2324
|
return w !== void 0 && (s = /** @type {V} */
|
|
2325
2325
|
void 0), w === void 0 ? s : w;
|
|
2326
|
-
}, i && (n &
|
|
2326
|
+
}, i && (n & Wi) === 0)
|
|
2327
2327
|
return d;
|
|
2328
2328
|
if (g) {
|
|
2329
2329
|
var _ = e.$$legacy;
|
|
@@ -2339,7 +2339,7 @@ function A(e, t, n, r) {
|
|
|
2339
2339
|
);
|
|
2340
2340
|
return function(w, C) {
|
|
2341
2341
|
if (arguments.length > 0) {
|
|
2342
|
-
const H = C ? S(b) : i && o ?
|
|
2342
|
+
const H = C ? S(b) : i && o ? At(w) : w;
|
|
2343
2343
|
return M(b, H), h = !0, s !== void 0 && (s = H), w;
|
|
2344
2344
|
}
|
|
2345
2345
|
return vt && h || (y.f & gt) !== 0 ? b.v : S(b);
|
|
@@ -2360,7 +2360,7 @@ class pl {
|
|
|
2360
2360
|
*/
|
|
2361
2361
|
constructor(t) {
|
|
2362
2362
|
var n = /* @__PURE__ */ new Map(), r = (o, a) => {
|
|
2363
|
-
var s = /* @__PURE__ */
|
|
2363
|
+
var s = /* @__PURE__ */ Go(a, !1, !1);
|
|
2364
2364
|
return n.set(o, s), s;
|
|
2365
2365
|
};
|
|
2366
2366
|
const i = new Proxy(
|
|
@@ -2377,16 +2377,16 @@ class pl {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
2379
|
);
|
|
2380
|
-
this.#e = (t.hydrate ?
|
|
2380
|
+
this.#e = (t.hydrate ? qa : pi)(t.component, {
|
|
2381
2381
|
target: t.target,
|
|
2382
2382
|
anchor: t.anchor,
|
|
2383
2383
|
props: i,
|
|
2384
2384
|
context: t.context,
|
|
2385
2385
|
intro: t.intro ?? !1,
|
|
2386
2386
|
recover: t.recover
|
|
2387
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2387
|
+
}), (!t?.props?.$$host || t.sync === !1) && A(), this.#t = i.$$events;
|
|
2388
2388
|
for (const o of Object.keys(this.#e))
|
|
2389
|
-
o === "$set" || o === "$destroy" || o === "$on" ||
|
|
2389
|
+
o === "$set" || o === "$destroy" || o === "$on" || kt(this, o, {
|
|
2390
2390
|
get() {
|
|
2391
2391
|
return this.#e[o];
|
|
2392
2392
|
},
|
|
@@ -2400,7 +2400,7 @@ class pl {
|
|
|
2400
2400
|
(o) => {
|
|
2401
2401
|
Object.assign(i, o);
|
|
2402
2402
|
}, this.#e.$destroy = () => {
|
|
2403
|
-
|
|
2403
|
+
Ya(this.#e);
|
|
2404
2404
|
};
|
|
2405
2405
|
}
|
|
2406
2406
|
/** @param {Record<string, any>} props */
|
|
@@ -2594,7 +2594,7 @@ function _l(e) {
|
|
|
2594
2594
|
] = !0;
|
|
2595
2595
|
}), t;
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function q(e, t, n, r, i, o) {
|
|
2598
2598
|
let a = class extends Ti {
|
|
2599
2599
|
constructor() {
|
|
2600
2600
|
super(e, n, i), this.$$p_d = t;
|
|
@@ -2606,21 +2606,21 @@ function Y(e, t, n, r, i, o) {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
return Cn(t).forEach((s) => {
|
|
2609
|
-
|
|
2609
|
+
kt(a.prototype, s, {
|
|
2610
2610
|
get() {
|
|
2611
2611
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
2612
2612
|
},
|
|
2613
|
-
set(
|
|
2614
|
-
|
|
2613
|
+
set(f) {
|
|
2614
|
+
f = bn(s, f, t), this.$$d[s] = f;
|
|
2615
2615
|
var l = this.$$c;
|
|
2616
2616
|
if (l) {
|
|
2617
2617
|
var g = at(l, s)?.get;
|
|
2618
|
-
g ? l[s] =
|
|
2618
|
+
g ? l[s] = f : l.$set({ [s]: f });
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
});
|
|
2622
2622
|
}), r.forEach((s) => {
|
|
2623
|
-
|
|
2623
|
+
kt(a.prototype, s, {
|
|
2624
2624
|
get() {
|
|
2625
2625
|
return this.$$c?.[s];
|
|
2626
2626
|
}
|
|
@@ -2631,7 +2631,7 @@ function Y(e, t, n, r, i, o) {
|
|
|
2631
2631
|
const ml = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z"></path></svg>';
|
|
2632
2632
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
2633
2633
|
const {
|
|
2634
|
-
entries:
|
|
2634
|
+
entries: Ai,
|
|
2635
2635
|
setPrototypeOf: mo,
|
|
2636
2636
|
isFrozen: bl,
|
|
2637
2637
|
getPrototypeOf: wl,
|
|
@@ -2640,10 +2640,10 @@ const {
|
|
|
2640
2640
|
let {
|
|
2641
2641
|
freeze: pe,
|
|
2642
2642
|
seal: xe,
|
|
2643
|
-
create:
|
|
2643
|
+
create: Li
|
|
2644
2644
|
} = Object, {
|
|
2645
2645
|
apply: ur,
|
|
2646
|
-
construct:
|
|
2646
|
+
construct: fr
|
|
2647
2647
|
} = typeof Reflect < "u" && Reflect;
|
|
2648
2648
|
pe || (pe = function(t) {
|
|
2649
2649
|
return t;
|
|
@@ -2654,10 +2654,10 @@ xe || (xe = function(t) {
|
|
|
2654
2654
|
ur || (ur = function(t, n, r) {
|
|
2655
2655
|
return t.apply(n, r);
|
|
2656
2656
|
});
|
|
2657
|
-
|
|
2657
|
+
fr || (fr = function(t, n) {
|
|
2658
2658
|
return new t(...n);
|
|
2659
2659
|
});
|
|
2660
|
-
const _n = _e(Array.prototype.forEach), El = _e(Array.prototype.lastIndexOf), bo = _e(Array.prototype.pop), Ut = _e(Array.prototype.push), yl = _e(Array.prototype.splice), wn = _e(String.prototype.toLowerCase),
|
|
2660
|
+
const _n = _e(Array.prototype.forEach), El = _e(Array.prototype.lastIndexOf), bo = _e(Array.prototype.pop), Ut = _e(Array.prototype.push), yl = _e(Array.prototype.splice), wn = _e(String.prototype.toLowerCase), Yn = _e(String.prototype.toString), wo = _e(String.prototype.match), Zt = _e(String.prototype.replace), Tl = _e(String.prototype.indexOf), Al = _e(String.prototype.trim), He = _e(Object.prototype.hasOwnProperty), ve = _e(RegExp.prototype.test), zt = Ll(TypeError);
|
|
2661
2661
|
function _e(e) {
|
|
2662
2662
|
return function(t) {
|
|
2663
2663
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -2666,11 +2666,11 @@ function _e(e) {
|
|
|
2666
2666
|
return ur(e, t, r);
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function Ll(e) {
|
|
2670
2670
|
return function() {
|
|
2671
2671
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
2672
2672
|
n[r] = arguments[r];
|
|
2673
|
-
return
|
|
2673
|
+
return fr(e, n);
|
|
2674
2674
|
};
|
|
2675
2675
|
}
|
|
2676
2676
|
function N(e, t) {
|
|
@@ -2687,18 +2687,18 @@ function N(e, t) {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
return e;
|
|
2689
2689
|
}
|
|
2690
|
-
function
|
|
2690
|
+
function kl(e) {
|
|
2691
2691
|
for (let t = 0; t < e.length; t++)
|
|
2692
2692
|
He(e, t) || (e[t] = null);
|
|
2693
2693
|
return e;
|
|
2694
2694
|
}
|
|
2695
2695
|
function ze(e) {
|
|
2696
|
-
const t =
|
|
2697
|
-
for (const [n, r] of
|
|
2698
|
-
He(e, n) && (Array.isArray(r) ? t[n] =
|
|
2696
|
+
const t = Li(null);
|
|
2697
|
+
for (const [n, r] of Ai(e))
|
|
2698
|
+
He(e, n) && (Array.isArray(r) ? t[n] = kl(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = ze(r) : t[n] = r);
|
|
2699
2699
|
return t;
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function jt(e, t) {
|
|
2702
2702
|
for (; e !== null; ) {
|
|
2703
2703
|
const r = Cl(e, t);
|
|
2704
2704
|
if (r) {
|
|
@@ -2714,14 +2714,14 @@ function Wt(e, t) {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
return n;
|
|
2716
2716
|
}
|
|
2717
|
-
const Co = pe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Kn = pe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Xn = pe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), xl = pe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Jn = pe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Sl = pe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Eo = pe(["#text"]), yo = pe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Qn = pe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), To = pe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), mn = pe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ml = xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hl = xe(/<%[\w\W]*|[\w\W]*%>/gm), Rl = xe(/\$\{[\w\W]*/gm), Ol = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Il = xe(/^aria-[\-\w]+$/),
|
|
2717
|
+
const Co = pe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Kn = pe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Xn = pe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), xl = pe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Jn = pe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Sl = pe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Eo = pe(["#text"]), yo = pe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Qn = pe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), To = pe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), mn = pe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ml = xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hl = xe(/<%[\w\W]*|[\w\W]*%>/gm), Rl = xe(/\$\{[\w\W]*/gm), Ol = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Il = xe(/^aria-[\-\w]+$/), ki = xe(
|
|
2718
2718
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2719
2719
|
// eslint-disable-line no-useless-escape
|
|
2720
2720
|
), Nl = xe(/^(?:\w+script|data):/i), Vl = xe(
|
|
2721
2721
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2722
2722
|
// eslint-disable-line no-control-regex
|
|
2723
2723
|
), xi = xe(/^html$/i), Dl = xe(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2724
|
-
var
|
|
2724
|
+
var Ao = /* @__PURE__ */ Object.freeze({
|
|
2725
2725
|
__proto__: null,
|
|
2726
2726
|
ARIA_ATTR: Il,
|
|
2727
2727
|
ATTR_WHITESPACE: Vl,
|
|
@@ -2729,12 +2729,12 @@ var ko = /* @__PURE__ */ Object.freeze({
|
|
|
2729
2729
|
DATA_ATTR: Ol,
|
|
2730
2730
|
DOCTYPE_NAME: xi,
|
|
2731
2731
|
ERB_EXPR: Hl,
|
|
2732
|
-
IS_ALLOWED_URI:
|
|
2732
|
+
IS_ALLOWED_URI: ki,
|
|
2733
2733
|
IS_SCRIPT_OR_DATA: Nl,
|
|
2734
2734
|
MUSTACHE_EXPR: Ml,
|
|
2735
2735
|
TMPLIT_EXPR: Rl
|
|
2736
2736
|
});
|
|
2737
|
-
const
|
|
2737
|
+
const Wt = {
|
|
2738
2738
|
element: 1,
|
|
2739
2739
|
text: 3,
|
|
2740
2740
|
// Deprecated
|
|
@@ -2762,7 +2762,7 @@ const Gt = {
|
|
|
2762
2762
|
} catch {
|
|
2763
2763
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
2764
2764
|
}
|
|
2765
|
-
},
|
|
2765
|
+
}, Lo = function() {
|
|
2766
2766
|
return {
|
|
2767
2767
|
afterSanitizeAttributes: [],
|
|
2768
2768
|
afterSanitizeElements: [],
|
|
@@ -2778,7 +2778,7 @@ const Gt = {
|
|
|
2778
2778
|
function Si() {
|
|
2779
2779
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pl();
|
|
2780
2780
|
const t = (x) => Si(x);
|
|
2781
|
-
if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
2781
|
+
if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== Wt.document || !e.Element)
|
|
2782
2782
|
return t.isSupported = !1, t;
|
|
2783
2783
|
let {
|
|
2784
2784
|
document: n
|
|
@@ -2787,13 +2787,13 @@ function Si() {
|
|
|
2787
2787
|
DocumentFragment: o,
|
|
2788
2788
|
HTMLTemplateElement: a,
|
|
2789
2789
|
Node: s,
|
|
2790
|
-
Element:
|
|
2790
|
+
Element: f,
|
|
2791
2791
|
NodeFilter: l,
|
|
2792
2792
|
NamedNodeMap: g = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
2793
|
-
HTMLFormElement:
|
|
2793
|
+
HTMLFormElement: c,
|
|
2794
2794
|
DOMParser: v,
|
|
2795
2795
|
trustedTypes: p
|
|
2796
|
-
} = e, d =
|
|
2796
|
+
} = e, d = f.prototype, _ = jt(d, "cloneNode"), h = jt(d, "remove"), b = jt(d, "nextSibling"), y = jt(d, "childNodes"), w = jt(d, "parentNode");
|
|
2797
2797
|
if (typeof a == "function") {
|
|
2798
2798
|
const x = n.createElement("template");
|
|
2799
2799
|
x.content && x.content.ownerDocument && (n = x.content.ownerDocument);
|
|
@@ -2801,14 +2801,14 @@ function Si() {
|
|
|
2801
2801
|
let C, H = "";
|
|
2802
2802
|
const {
|
|
2803
2803
|
implementation: E,
|
|
2804
|
-
createNodeIterator:
|
|
2804
|
+
createNodeIterator: k,
|
|
2805
2805
|
createDocumentFragment: I,
|
|
2806
2806
|
getElementsByTagName: K
|
|
2807
2807
|
} = n, {
|
|
2808
2808
|
importNode: we
|
|
2809
2809
|
} = r;
|
|
2810
|
-
let D =
|
|
2811
|
-
t.isSupported = typeof
|
|
2810
|
+
let D = Lo();
|
|
2811
|
+
t.isSupported = typeof Ai == "function" && typeof w == "function" && E && E.createHTMLDocument !== void 0;
|
|
2812
2812
|
const {
|
|
2813
2813
|
MUSTACHE_EXPR: Z,
|
|
2814
2814
|
ERB_EXPR: Me,
|
|
@@ -2818,14 +2818,14 @@ function Si() {
|
|
|
2818
2818
|
IS_SCRIPT_OR_DATA: On,
|
|
2819
2819
|
ATTR_WHITESPACE: an,
|
|
2820
2820
|
CUSTOM_ELEMENT: Ri
|
|
2821
|
-
} =
|
|
2821
|
+
} = Ao;
|
|
2822
2822
|
let {
|
|
2823
2823
|
IS_ALLOWED_URI: Or
|
|
2824
|
-
} =
|
|
2824
|
+
} = Ao, ie = null;
|
|
2825
2825
|
const Ir = N({}, [...Co, ...Kn, ...Xn, ...Jn, ...Eo]);
|
|
2826
2826
|
let ue = null;
|
|
2827
2827
|
const Nr = N({}, [...yo, ...Qn, ...To, ...mn]);
|
|
2828
|
-
let J = Object.seal(
|
|
2828
|
+
let J = Object.seal(Li(null, {
|
|
2829
2829
|
tagNameCheck: {
|
|
2830
2830
|
writable: !0,
|
|
2831
2831
|
configurable: !1,
|
|
@@ -2851,21 +2851,21 @@ function Si() {
|
|
|
2851
2851
|
let Ur = null;
|
|
2852
2852
|
const Zr = N({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2853
2853
|
let $n = null;
|
|
2854
|
-
const zr = N({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
2854
|
+
const zr = N({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), fn = "http://www.w3.org/1998/Math/MathML", cn = "http://www.w3.org/2000/svg", Fe = "http://www.w3.org/1999/xhtml";
|
|
2855
2855
|
let bt = Fe, Bn = !1, Fn = null;
|
|
2856
|
-
const Ii = N({}, [
|
|
2856
|
+
const Ii = N({}, [fn, cn, Fe], Yn);
|
|
2857
2857
|
let dn = N({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = N({}, ["annotation-xml"]);
|
|
2858
2858
|
const Ni = N({}, ["title", "style", "font", "a", "script"]);
|
|
2859
2859
|
let Bt = null;
|
|
2860
2860
|
const Vi = ["application/xhtml+xml", "text/html"], Di = "text/html";
|
|
2861
2861
|
let ae = null, wt = null;
|
|
2862
|
-
const Pi = n.createElement("form"),
|
|
2862
|
+
const Pi = n.createElement("form"), jr = function(u) {
|
|
2863
2863
|
return u instanceof RegExp || u instanceof Function;
|
|
2864
2864
|
}, Un = function() {
|
|
2865
2865
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2866
2866
|
if (!(wt && wt === u)) {
|
|
2867
2867
|
if ((!u || typeof u != "object") && (u = {}), u = ze(u), Bt = // eslint-disable-next-line unicorn/prefer-includes
|
|
2868
|
-
Vi.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? Di : u.PARSER_MEDIA_TYPE, ae = Bt === "application/xhtml+xml" ?
|
|
2868
|
+
Vi.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? Di : u.PARSER_MEDIA_TYPE, ae = Bt === "application/xhtml+xml" ? Yn : wn, ie = He(u, "ALLOWED_TAGS") ? N({}, u.ALLOWED_TAGS, ae) : Ir, ue = He(u, "ALLOWED_ATTR") ? N({}, u.ALLOWED_ATTR, ae) : Nr, Fn = He(u, "ALLOWED_NAMESPACES") ? N({}, u.ALLOWED_NAMESPACES, Yn) : Ii, $n = He(u, "ADD_URI_SAFE_ATTR") ? N(ze(zr), u.ADD_URI_SAFE_ATTR, ae) : zr, Ur = He(u, "ADD_DATA_URI_TAGS") ? N(ze(Zr), u.ADD_DATA_URI_TAGS, ae) : Zr, mt = He(u, "FORBID_CONTENTS") ? N({}, u.FORBID_CONTENTS, ae) : Fr, Pt = He(u, "FORBID_TAGS") ? N({}, u.FORBID_TAGS, ae) : ze({}), In = He(u, "FORBID_ATTR") ? N({}, u.FORBID_ATTR, ae) : ze({}), _t = He(u, "USE_PROFILES") ? u.USE_PROFILES : !1, Vr = u.ALLOW_ARIA_ATTR !== !1, Nn = u.ALLOW_DATA_ATTR !== !1, Dr = u.ALLOW_UNKNOWN_PROTOCOLS || !1, Pr = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ht = u.SAFE_FOR_TEMPLATES || !1, ln = u.SAFE_FOR_XML !== !1, ot = u.WHOLE_DOCUMENT || !1, pt = u.RETURN_DOM || !1, sn = u.RETURN_DOM_FRAGMENT || !1, un = u.RETURN_TRUSTED_TYPE || !1, Dn = u.FORCE_BODY || !1, $r = u.SANITIZE_DOM !== !1, Br = u.SANITIZE_NAMED_PROPS || !1, Pn = u.KEEP_CONTENT !== !1, $t = u.IN_PLACE || !1, Or = u.ALLOWED_URI_REGEXP || ki, bt = u.NAMESPACE || Fe, dn = u.MATHML_TEXT_INTEGRATION_POINTS || dn, gn = u.HTML_INTEGRATION_POINTS || gn, J = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && jr(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (J.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && jr(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (J.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (J.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ht && (Nn = !1), sn && (pt = !0), _t && (ie = N({}, Eo), ue = [], _t.html === !0 && (N(ie, Co), N(ue, yo)), _t.svg === !0 && (N(ie, Kn), N(ue, Qn), N(ue, mn)), _t.svgFilters === !0 && (N(ie, Xn), N(ue, Qn), N(ue, mn)), _t.mathMl === !0 && (N(ie, Jn), N(ue, To), N(ue, mn))), u.ADD_TAGS && (ie === Ir && (ie = ze(ie)), N(ie, u.ADD_TAGS, ae)), u.ADD_ATTR && (ue === Nr && (ue = ze(ue)), N(ue, u.ADD_ATTR, ae)), u.ADD_URI_SAFE_ATTR && N($n, u.ADD_URI_SAFE_ATTR, ae), u.FORBID_CONTENTS && (mt === Fr && (mt = ze(mt)), N(mt, u.FORBID_CONTENTS, ae)), Pn && (ie["#text"] = !0), ot && N(ie, ["html", "head", "body"]), ie.table && (N(ie, ["tbody"]), delete Pt.tbody), u.TRUSTED_TYPES_POLICY) {
|
|
2869
2869
|
if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2870
2870
|
throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2871
2871
|
if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -2875,14 +2875,14 @@ function Si() {
|
|
|
2875
2875
|
C === void 0 && (C = $l(p, i)), C !== null && typeof H == "string" && (H = C.createHTML(""));
|
|
2876
2876
|
pe && pe(u), wt = u;
|
|
2877
2877
|
}
|
|
2878
|
-
},
|
|
2878
|
+
}, Wr = N({}, [...Kn, ...Xn, ...xl]), Gr = N({}, [...Jn, ...Sl]), $i = function(u) {
|
|
2879
2879
|
let m = w(u);
|
|
2880
2880
|
(!m || !m.tagName) && (m = {
|
|
2881
2881
|
namespaceURI: bt,
|
|
2882
2882
|
tagName: "template"
|
|
2883
2883
|
});
|
|
2884
2884
|
const T = wn(u.tagName), z = wn(m.tagName);
|
|
2885
|
-
return Fn[u.namespaceURI] ? u.namespaceURI ===
|
|
2885
|
+
return Fn[u.namespaceURI] ? u.namespaceURI === cn ? m.namespaceURI === Fe ? T === "svg" : m.namespaceURI === fn ? T === "svg" && (z === "annotation-xml" || dn[z]) : !!Wr[T] : u.namespaceURI === fn ? m.namespaceURI === Fe ? T === "math" : m.namespaceURI === cn ? T === "math" && gn[z] : !!Gr[T] : u.namespaceURI === Fe ? m.namespaceURI === cn && !gn[z] || m.namespaceURI === fn && !dn[z] ? !1 : !Gr[T] && (Ni[T] || !Wr[T]) : !!(Bt === "application/xhtml+xml" && Fn[u.namespaceURI]) : !1;
|
|
2886
2886
|
}, Ne = function(u) {
|
|
2887
2887
|
Ut(t.removed, {
|
|
2888
2888
|
element: u
|
|
@@ -2915,7 +2915,7 @@ function Si() {
|
|
|
2915
2915
|
m.setAttribute(u, "");
|
|
2916
2916
|
} catch {
|
|
2917
2917
|
}
|
|
2918
|
-
},
|
|
2918
|
+
}, qr = function(u) {
|
|
2919
2919
|
let m = null, T = null;
|
|
2920
2920
|
if (Dn)
|
|
2921
2921
|
u = "<remove></remove>" + u;
|
|
@@ -2939,8 +2939,8 @@ function Si() {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
const de = m.body || m.documentElement;
|
|
2941
2941
|
return u && T && de.insertBefore(n.createTextNode(T), de.childNodes[0] || null), bt === Fe ? K.call(m, ot ? "html" : "body")[0] : ot ? m.documentElement : de;
|
|
2942
|
-
},
|
|
2943
|
-
return
|
|
2942
|
+
}, Yr = function(u) {
|
|
2943
|
+
return k.call(
|
|
2944
2944
|
u.ownerDocument || u,
|
|
2945
2945
|
u,
|
|
2946
2946
|
// eslint-disable-next-line no-bitwise
|
|
@@ -2948,7 +2948,7 @@ function Si() {
|
|
|
2948
2948
|
null
|
|
2949
2949
|
);
|
|
2950
2950
|
}, Zn = function(u) {
|
|
2951
|
-
return u instanceof
|
|
2951
|
+
return u instanceof c && (typeof u.nodeName != "string" || typeof u.textContent != "string" || typeof u.removeChild != "function" || !(u.attributes instanceof g) || typeof u.removeAttribute != "function" || typeof u.setAttribute != "function" || typeof u.namespaceURI != "string" || typeof u.insertBefore != "function" || typeof u.hasChildNodes != "function");
|
|
2952
2952
|
}, Kr = function(u) {
|
|
2953
2953
|
return typeof s == "function" && u instanceof s;
|
|
2954
2954
|
};
|
|
@@ -2965,7 +2965,7 @@ function Si() {
|
|
|
2965
2965
|
if (Ue(D.uponSanitizeElement, u, {
|
|
2966
2966
|
tagName: T,
|
|
2967
2967
|
allowedTags: ie
|
|
2968
|
-
}), ln && u.hasChildNodes() && !Kr(u.firstElementChild) && ve(/<[/\w!]/g, u.innerHTML) && ve(/<[/\w!]/g, u.textContent) || u.nodeType ===
|
|
2968
|
+
}), ln && u.hasChildNodes() && !Kr(u.firstElementChild) && ve(/<[/\w!]/g, u.innerHTML) && ve(/<[/\w!]/g, u.textContent) || u.nodeType === Wt.progressingInstruction || ln && u.nodeType === Wt.comment && ve(/<[/\w]/g, u.data))
|
|
2969
2969
|
return Ne(u), !0;
|
|
2970
2970
|
if (!ie[T] || Pt[T]) {
|
|
2971
2971
|
if (!Pt[T] && Qr(T) && (J.tagNameCheck instanceof RegExp && ve(J.tagNameCheck, T) || J.tagNameCheck instanceof Function && J.tagNameCheck(T)))
|
|
@@ -2982,7 +2982,7 @@ function Si() {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
return Ne(u), !0;
|
|
2984
2984
|
}
|
|
2985
|
-
return u instanceof
|
|
2985
|
+
return u instanceof f && !$i(u) || (T === "noscript" || T === "noembed" || T === "noframes") && ve(/<\/no(script|embed|frames)/i, u.innerHTML) ? (Ne(u), !0) : (ht && u.nodeType === Wt.text && (m = u.textContent, _n([Z, Me, Be], (z) => {
|
|
2986
2986
|
m = Zt(m, z, " ");
|
|
2987
2987
|
}), u.textContent !== m && (Ut(t.removed, {
|
|
2988
2988
|
element: u.cloneNode()
|
|
@@ -3037,7 +3037,7 @@ function Si() {
|
|
|
3037
3037
|
namespaceURI: be,
|
|
3038
3038
|
value: Ze
|
|
3039
3039
|
} = de, Ft = ae(te), zn = Ze;
|
|
3040
|
-
let ge = te === "value" ? zn :
|
|
3040
|
+
let ge = te === "value" ? zn : Al(zn);
|
|
3041
3041
|
if (T.attrName = Ft, T.attrValue = ge, T.keepAttr = !0, T.forceKeepAttr = void 0, Ue(D.uponSanitizeAttribute, u, T), ge = T.attrValue, Br && (Ft === "id" || Ft === "name") && (Ct(te, u), ge = Oi + ge), ln && ve(/((--!?|])>)|<\/(style|title)/i, ge)) {
|
|
3042
3042
|
Ct(te, u);
|
|
3043
3043
|
continue;
|
|
@@ -3081,7 +3081,7 @@ function Si() {
|
|
|
3081
3081
|
Ue(D.afterSanitizeAttributes, u, null);
|
|
3082
3082
|
}, Bi = function x(u) {
|
|
3083
3083
|
let m = null;
|
|
3084
|
-
const T =
|
|
3084
|
+
const T = Yr(u);
|
|
3085
3085
|
for (Ue(D.beforeSanitizeShadowDOM, u, null); m = T.nextNode(); )
|
|
3086
3086
|
Ue(D.uponSanitizeShadowNode, m, null), Xr(m), eo(m), m.content instanceof o && x(m.content);
|
|
3087
3087
|
Ue(D.afterSanitizeShadowDOM, u, null);
|
|
@@ -3103,16 +3103,16 @@ function Si() {
|
|
|
3103
3103
|
throw zt("root node is forbidden and cannot be sanitized in-place");
|
|
3104
3104
|
}
|
|
3105
3105
|
} else if (x instanceof s)
|
|
3106
|
-
m =
|
|
3106
|
+
m = qr("<!---->"), T = m.ownerDocument.importNode(x, !0), T.nodeType === Wt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? m = T : m.appendChild(T);
|
|
3107
3107
|
else {
|
|
3108
3108
|
if (!pt && !ht && !ot && // eslint-disable-next-line unicorn/prefer-includes
|
|
3109
3109
|
x.indexOf("<") === -1)
|
|
3110
3110
|
return C && un ? C.createHTML(x) : x;
|
|
3111
|
-
if (m =
|
|
3111
|
+
if (m = qr(x), !m)
|
|
3112
3112
|
return pt ? null : un ? H : "";
|
|
3113
3113
|
}
|
|
3114
3114
|
m && Dn && Ne(m.firstChild);
|
|
3115
|
-
const te =
|
|
3115
|
+
const te = Yr($t ? x : m);
|
|
3116
3116
|
for (; z = te.nextNode(); )
|
|
3117
3117
|
Xr(z), eo(z), z.content instanceof o && Bi(z.content);
|
|
3118
3118
|
if ($t)
|
|
@@ -3150,7 +3150,7 @@ function Si() {
|
|
|
3150
3150
|
}, t.removeHooks = function(x) {
|
|
3151
3151
|
D[x] = [];
|
|
3152
3152
|
}, t.removeAllHooks = function() {
|
|
3153
|
-
D =
|
|
3153
|
+
D = Lo();
|
|
3154
3154
|
}, t;
|
|
3155
3155
|
}
|
|
3156
3156
|
var Bl = Si(), Fl = /* @__PURE__ */ se('<div class="icon-wrapper svelte-y8g19h"><!></div>');
|
|
@@ -3159,29 +3159,29 @@ const Ul = {
|
|
|
3159
3159
|
code: ".icon-wrapper.svelte-y8g19h {display:inline-flex;align-items:center;justify-content:center;}svg {width:1.25rem;height:1.75rem;fill:var(--tiptob-bg-icon, #333333);}"
|
|
3160
3160
|
};
|
|
3161
3161
|
function re(e, t) {
|
|
3162
|
-
|
|
3163
|
-
let n =
|
|
3162
|
+
W(t, !0), Se(e, Ul);
|
|
3163
|
+
let n = L(t, "content", 15);
|
|
3164
3164
|
var r = Fl(), i = P(r);
|
|
3165
|
-
return tl(i, () => Bl.sanitize(n(), { USE_PROFILES: { svg: !0 } })), V(r), R(e, r),
|
|
3165
|
+
return tl(i, () => Bl.sanitize(n(), { USE_PROFILES: { svg: !0 } })), V(r), R(e, r), G({
|
|
3166
3166
|
get content() {
|
|
3167
3167
|
return n();
|
|
3168
3168
|
},
|
|
3169
3169
|
set content(o) {
|
|
3170
|
-
n(o),
|
|
3170
|
+
n(o), A();
|
|
3171
3171
|
}
|
|
3172
3172
|
});
|
|
3173
3173
|
}
|
|
3174
|
-
|
|
3175
|
-
var Zl = (e, t) => t()(), zl = /* @__PURE__ */ se('<button><!> <div class="icon-text"> </div></button>');
|
|
3176
|
-
const
|
|
3177
|
-
hash: "svelte-
|
|
3178
|
-
code: `button.svelte-
|
|
3179
|
-
button.highlighted.svelte-
|
|
3180
|
-
button.highlighted.svelte-
|
|
3174
|
+
q(re, { content: {} }, [], [], !0);
|
|
3175
|
+
var Zl = (e, t) => t()(), zl = /* @__PURE__ */ se('<button><!> <div class="icon-text svelte-1yt34jg"> </div></button>');
|
|
3176
|
+
const jl = {
|
|
3177
|
+
hash: "svelte-1yt34jg",
|
|
3178
|
+
code: `button.svelte-1yt34jg {display:flex;align-items:center;margin:0.2rem 0;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}.icon-text:where(.svelte-1yt34jg) {font-size:0.8rem;}}button.svelte-1yt34jg:enabled {cursor:pointer;}button.dropdownOpen.svelte-1yt34jg:enabled,
|
|
3179
|
+
button.highlighted.svelte-1yt34jg:enabled {color:var(--tiptob-bg-icon-highlighted, #2977ff);background-color:var(--tiptob-bg-button-highlighted, #f0f7ff);svg {fill:var(--tiptob-bg-icon-highlighted, #2977ff);}}button.dropdownOpen.svelte-1yt34jg:enabled::after,
|
|
3180
|
+
button.highlighted.svelte-1yt34jg:enabled::after {color:var(--tiptob-bg-icon-highlighted, #2977ff);}`
|
|
3181
3181
|
};
|
|
3182
3182
|
function me(e, t) {
|
|
3183
|
-
|
|
3184
|
-
let n =
|
|
3183
|
+
W(t, !0), Se(e, jl);
|
|
3184
|
+
let n = L(t, "editor", 7), r = L(t, "key", 7), i = L(t, "action", 7), o = L(t, "icon", 7), a = L(t, "tooltip", 7), s = L(t, "text", 7, ""), f = L(t, "dropdownOpen", 15, !1), l = /* @__PURE__ */ j(!1), g = /* @__PURE__ */ j(!1);
|
|
3185
3185
|
Xa(() => {
|
|
3186
3186
|
n().on("transaction", () => {
|
|
3187
3187
|
r() === "textStyle" ? M(l, !!n().getAttributes(r()).color && n().isActive(r()), !0) : M(l, n().isActive(r()), !0);
|
|
@@ -3189,73 +3189,73 @@ function me(e, t) {
|
|
|
3189
3189
|
M(g, !n().isEditable);
|
|
3190
3190
|
});
|
|
3191
3191
|
});
|
|
3192
|
-
var
|
|
3193
|
-
|
|
3192
|
+
var c = zl();
|
|
3193
|
+
c.__click = [Zl, i];
|
|
3194
3194
|
let v;
|
|
3195
|
-
var p = P(
|
|
3195
|
+
var p = P(c);
|
|
3196
3196
|
re(p, {
|
|
3197
3197
|
get content() {
|
|
3198
3198
|
return o();
|
|
3199
3199
|
}
|
|
3200
3200
|
});
|
|
3201
3201
|
var d = ee(p, 2), _ = P(d, !0);
|
|
3202
|
-
return V(d), V(
|
|
3202
|
+
return V(d), V(c), Ae(
|
|
3203
3203
|
(h) => {
|
|
3204
|
-
|
|
3204
|
+
c.disabled = S(g), Q(c, "title", S(g) ? "" : a()), v = Rn(c, 1, "svelte-1yt34jg", null, v, h), Sr(_, s());
|
|
3205
3205
|
},
|
|
3206
3206
|
[
|
|
3207
3207
|
() => ({
|
|
3208
3208
|
highlighted: S(l),
|
|
3209
|
-
dropdownOpen:
|
|
3209
|
+
dropdownOpen: f()
|
|
3210
3210
|
})
|
|
3211
3211
|
]
|
|
3212
|
-
), R(e,
|
|
3212
|
+
), R(e, c), G({
|
|
3213
3213
|
get editor() {
|
|
3214
3214
|
return n();
|
|
3215
3215
|
},
|
|
3216
3216
|
set editor(h) {
|
|
3217
|
-
n(h),
|
|
3217
|
+
n(h), A();
|
|
3218
3218
|
},
|
|
3219
3219
|
get key() {
|
|
3220
3220
|
return r();
|
|
3221
3221
|
},
|
|
3222
3222
|
set key(h) {
|
|
3223
|
-
r(h),
|
|
3223
|
+
r(h), A();
|
|
3224
3224
|
},
|
|
3225
3225
|
get action() {
|
|
3226
3226
|
return i();
|
|
3227
3227
|
},
|
|
3228
3228
|
set action(h) {
|
|
3229
|
-
i(h),
|
|
3229
|
+
i(h), A();
|
|
3230
3230
|
},
|
|
3231
3231
|
get icon() {
|
|
3232
3232
|
return o();
|
|
3233
3233
|
},
|
|
3234
3234
|
set icon(h) {
|
|
3235
|
-
o(h),
|
|
3235
|
+
o(h), A();
|
|
3236
3236
|
},
|
|
3237
3237
|
get tooltip() {
|
|
3238
3238
|
return a();
|
|
3239
3239
|
},
|
|
3240
3240
|
set tooltip(h) {
|
|
3241
|
-
a(h),
|
|
3241
|
+
a(h), A();
|
|
3242
3242
|
},
|
|
3243
3243
|
get text() {
|
|
3244
3244
|
return s();
|
|
3245
3245
|
},
|
|
3246
3246
|
set text(h = "") {
|
|
3247
|
-
s(h),
|
|
3247
|
+
s(h), A();
|
|
3248
3248
|
},
|
|
3249
3249
|
get dropdownOpen() {
|
|
3250
|
-
return
|
|
3250
|
+
return f();
|
|
3251
3251
|
},
|
|
3252
3252
|
set dropdownOpen(h = !1) {
|
|
3253
|
-
|
|
3253
|
+
f(h), A();
|
|
3254
3254
|
}
|
|
3255
3255
|
});
|
|
3256
3256
|
}
|
|
3257
3257
|
Ke(["click"]);
|
|
3258
|
-
|
|
3258
|
+
q(
|
|
3259
3259
|
me,
|
|
3260
3260
|
{
|
|
3261
3261
|
editor: {},
|
|
@@ -3270,13 +3270,13 @@ Y(
|
|
|
3270
3270
|
[],
|
|
3271
3271
|
!0
|
|
3272
3272
|
);
|
|
3273
|
-
function
|
|
3274
|
-
|
|
3275
|
-
let n =
|
|
3273
|
+
function Wl(e, t) {
|
|
3274
|
+
W(t, !0);
|
|
3275
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
3276
3276
|
const i = { de: "Fett", en: "Bold" }, o = () => n().chain().focus().toggleBold().run();
|
|
3277
|
-
var a =
|
|
3277
|
+
var a = Y(), s = U(a);
|
|
3278
3278
|
{
|
|
3279
|
-
var
|
|
3279
|
+
var f = (l) => {
|
|
3280
3280
|
me(l, {
|
|
3281
3281
|
get editor() {
|
|
3282
3282
|
return n();
|
|
@@ -3292,27 +3292,27 @@ function Gl(e, t) {
|
|
|
3292
3292
|
});
|
|
3293
3293
|
};
|
|
3294
3294
|
X(s, (l) => {
|
|
3295
|
-
n() && l(
|
|
3295
|
+
n() && l(f);
|
|
3296
3296
|
});
|
|
3297
3297
|
}
|
|
3298
|
-
return R(e, a),
|
|
3298
|
+
return R(e, a), G({
|
|
3299
3299
|
get editor() {
|
|
3300
3300
|
return n();
|
|
3301
3301
|
},
|
|
3302
3302
|
set editor(l) {
|
|
3303
|
-
n(l),
|
|
3303
|
+
n(l), A();
|
|
3304
3304
|
},
|
|
3305
3305
|
get language() {
|
|
3306
3306
|
return r();
|
|
3307
3307
|
},
|
|
3308
3308
|
set language(l = "en") {
|
|
3309
|
-
r(l),
|
|
3309
|
+
r(l), A();
|
|
3310
3310
|
}
|
|
3311
3311
|
});
|
|
3312
3312
|
}
|
|
3313
|
-
customElements.define("tiptob-bold-button",
|
|
3314
|
-
const
|
|
3315
|
-
function
|
|
3313
|
+
customElements.define("tiptob-bold-button", q(Wl, { editor: {}, language: {} }, [], [], !0));
|
|
3314
|
+
const Gl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15.2459 14H8.75407L7.15407 18H5L11 3H13L19 18H16.8459L15.2459 14ZM14.4459 12L12 5.88516L9.55407 12H14.4459ZM3 20H21V22H3V20Z"></path></svg>', Mi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8.58564 8.85449L3.63589 13.8042L8.83021 18.9985L9.99985 18.9978V18.9966H11.1714L14.9496 15.2184L8.58564 8.85449ZM9.99985 7.44027L16.3638 13.8042L19.1922 10.9758L12.8283 4.61185L9.99985 7.44027ZM13.9999 18.9966H20.9999V20.9966H11.9999L8.00229 20.9991L1.51457 14.5113C1.12405 14.1208 1.12405 13.4877 1.51457 13.0971L12.1212 2.49053C12.5117 2.1 13.1449 2.1 13.5354 2.49053L21.3136 10.2687C21.7041 10.6592 21.7041 11.2924 21.3136 11.6829L13.9999 18.9966Z"></path></svg>';
|
|
3315
|
+
function ql(e) {
|
|
3316
3316
|
const t = (n) => {
|
|
3317
3317
|
e.contains(n.composedPath()[0]) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
3318
3318
|
};
|
|
@@ -3322,11 +3322,11 @@ function Yl(e) {
|
|
|
3322
3322
|
}
|
|
3323
3323
|
};
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function Yl(e) {
|
|
3326
3326
|
const t = e - 1;
|
|
3327
3327
|
return t * t * t + 1;
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3329
|
+
function ko(e) {
|
|
3330
3330
|
const t = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
3331
3331
|
return t ? [parseFloat(t[1]), t[2] || "px"] : [
|
|
3332
3332
|
/** @type {number} */
|
|
@@ -3334,35 +3334,35 @@ function Lo(e) {
|
|
|
3334
3334
|
"px"
|
|
3335
3335
|
];
|
|
3336
3336
|
}
|
|
3337
|
-
function Kl(e, { delay: t = 0, duration: n = 400, easing: r =
|
|
3338
|
-
const s = getComputedStyle(e),
|
|
3337
|
+
function Kl(e, { delay: t = 0, duration: n = 400, easing: r = Yl, x: i = 0, y: o = 0, opacity: a = 0 } = {}) {
|
|
3338
|
+
const s = getComputedStyle(e), f = +s.opacity, l = s.transform === "none" ? "" : s.transform, g = f * (1 - a), [c, v] = ko(i), [p, d] = ko(o);
|
|
3339
3339
|
return {
|
|
3340
3340
|
delay: t,
|
|
3341
3341
|
duration: n,
|
|
3342
3342
|
easing: r,
|
|
3343
3343
|
css: (_, h) => `
|
|
3344
|
-
transform: ${l} translate(${(1 - _) *
|
|
3345
|
-
opacity: ${
|
|
3344
|
+
transform: ${l} translate(${(1 - _) * c}${v}, ${(1 - _) * p}${d});
|
|
3345
|
+
opacity: ${f - g * h}`
|
|
3346
3346
|
};
|
|
3347
3347
|
}
|
|
3348
|
-
var Xl = /* @__PURE__ */ se('<div class="dropdown svelte-
|
|
3348
|
+
var Xl = /* @__PURE__ */ se('<div class="dropdown svelte-4qrctn"><!></div>'), Jl = /* @__PURE__ */ se("<div><!> <!></div>");
|
|
3349
3349
|
const Ql = {
|
|
3350
|
-
hash: "svelte-
|
|
3351
|
-
code: `.dropdown-wrapper.svelte-
|
|
3350
|
+
hash: "svelte-4qrctn",
|
|
3351
|
+
code: `.dropdown-wrapper.svelte-4qrctn {position:relative;> button::after {margin-left:0.25rem;content:"";display:inline-block;border-top:0.3rem solid;border-right:0.3rem solid transparent;border-left:0.3rem solid transparent;transition:transform 0.3s ease;transform:rotate(0deg);}&.open > button::after {transform:rotate(180deg);}.dropdown:where(.svelte-4qrctn) {z-index:99;position:absolute;box-shadow:rgba(0, 0, 0, 0.05) 0px 6px 10px 0px,\r
|
|
3352
3352
|
rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;background-color:var(--tiptob-bg-button, #ffffff);top:2.125rem;}}`
|
|
3353
3353
|
};
|
|
3354
3354
|
function nt(e, t) {
|
|
3355
|
-
|
|
3356
|
-
let n =
|
|
3355
|
+
W(t, !0), Se(e, Ql);
|
|
3356
|
+
let n = L(t, "editor", 7), r = L(t, "key", 7), i = L(t, "icon", 7), o = L(t, "text", 7, ""), a = L(t, "dropdownOpen", 15), s = L(t, "children", 7), f = L(t, "tooltip", 7);
|
|
3357
3357
|
function l() {
|
|
3358
3358
|
a(!a());
|
|
3359
3359
|
}
|
|
3360
3360
|
function g() {
|
|
3361
3361
|
a(!1);
|
|
3362
3362
|
}
|
|
3363
|
-
var
|
|
3363
|
+
var c = Jl();
|
|
3364
3364
|
let v;
|
|
3365
|
-
var p = P(
|
|
3365
|
+
var p = P(c);
|
|
3366
3366
|
me(p, {
|
|
3367
3367
|
get key() {
|
|
3368
3368
|
return r();
|
|
@@ -3378,7 +3378,7 @@ function nt(e, t) {
|
|
|
3378
3378
|
return o();
|
|
3379
3379
|
},
|
|
3380
3380
|
get tooltip() {
|
|
3381
|
-
return
|
|
3381
|
+
return f();
|
|
3382
3382
|
},
|
|
3383
3383
|
get dropdownOpen() {
|
|
3384
3384
|
return a();
|
|
@@ -3394,52 +3394,52 @@ function nt(e, t) {
|
|
|
3394
3394
|
a() && h(_);
|
|
3395
3395
|
});
|
|
3396
3396
|
}
|
|
3397
|
-
return V(
|
|
3397
|
+
return V(c), bi(c, (h) => ql?.(h)), Ae((h) => v = Rn(c, 1, "dropdown-wrapper svelte-4qrctn", null, v, h), [() => ({ open: a() })]), vi("outclick", c, g), R(e, c), G({
|
|
3398
3398
|
get editor() {
|
|
3399
3399
|
return n();
|
|
3400
3400
|
},
|
|
3401
3401
|
set editor(h) {
|
|
3402
|
-
n(h),
|
|
3402
|
+
n(h), A();
|
|
3403
3403
|
},
|
|
3404
3404
|
get key() {
|
|
3405
3405
|
return r();
|
|
3406
3406
|
},
|
|
3407
3407
|
set key(h) {
|
|
3408
|
-
r(h),
|
|
3408
|
+
r(h), A();
|
|
3409
3409
|
},
|
|
3410
3410
|
get icon() {
|
|
3411
3411
|
return i();
|
|
3412
3412
|
},
|
|
3413
3413
|
set icon(h) {
|
|
3414
|
-
i(h),
|
|
3414
|
+
i(h), A();
|
|
3415
3415
|
},
|
|
3416
3416
|
get text() {
|
|
3417
3417
|
return o();
|
|
3418
3418
|
},
|
|
3419
3419
|
set text(h = "") {
|
|
3420
|
-
o(h),
|
|
3420
|
+
o(h), A();
|
|
3421
3421
|
},
|
|
3422
3422
|
get dropdownOpen() {
|
|
3423
3423
|
return a();
|
|
3424
3424
|
},
|
|
3425
3425
|
set dropdownOpen(h) {
|
|
3426
|
-
a(h),
|
|
3426
|
+
a(h), A();
|
|
3427
3427
|
},
|
|
3428
3428
|
get children() {
|
|
3429
3429
|
return s();
|
|
3430
3430
|
},
|
|
3431
3431
|
set children(h) {
|
|
3432
|
-
s(h),
|
|
3432
|
+
s(h), A();
|
|
3433
3433
|
},
|
|
3434
3434
|
get tooltip() {
|
|
3435
|
-
return
|
|
3435
|
+
return f();
|
|
3436
3436
|
},
|
|
3437
3437
|
set tooltip(h) {
|
|
3438
|
-
|
|
3438
|
+
f(h), A();
|
|
3439
3439
|
}
|
|
3440
3440
|
});
|
|
3441
3441
|
}
|
|
3442
|
-
|
|
3442
|
+
q(
|
|
3443
3443
|
nt,
|
|
3444
3444
|
{
|
|
3445
3445
|
editor: {},
|
|
@@ -3466,8 +3466,8 @@ const os = {
|
|
|
3466
3466
|
code: ".color-picker.svelte-1vo5uv9 {display:flex;flex-flow:row wrap;gap:0.25rem;width:5rem;background-color:var(--tiptob-bg-button, #ffffff);padding:0.25rem;button:where(.svelte-1vo5uv9) {border:none;border-radius:2px;}.clear:where(.svelte-1vo5uv9) {width:100%;text-align:center;padding:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:#333333;align-items:center;justify-content:center;display:flex;cursor:pointer;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;}}button:where(.svelte-1vo5uv9):not(.clear) {display:flex;width:1.5rem;height:1.5rem;border:1px solid var(--tiptob-bg-icon, #cecece);cursor:pointer;&:hover {border:1px solid #2977ff;}}}"
|
|
3467
3467
|
};
|
|
3468
3468
|
function is(e, t) {
|
|
3469
|
-
|
|
3470
|
-
let n =
|
|
3469
|
+
W(t, !0), Se(e, os);
|
|
3470
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), i = /* @__PURE__ */ j(!1);
|
|
3471
3471
|
const o = { de: "Schriftfarbe", en: "Font Color" }, a = [
|
|
3472
3472
|
"#E91313",
|
|
3473
3473
|
"#118800",
|
|
@@ -3476,19 +3476,19 @@ function is(e, t) {
|
|
|
3476
3476
|
"#fc7999",
|
|
3477
3477
|
"#FDFD77"
|
|
3478
3478
|
];
|
|
3479
|
-
function s(
|
|
3480
|
-
n().chain().focus().setColor(
|
|
3479
|
+
function s(c) {
|
|
3480
|
+
n().chain().focus().setColor(c).run(), M(i, !1);
|
|
3481
3481
|
}
|
|
3482
|
-
var
|
|
3482
|
+
var f = Y(), l = U(f);
|
|
3483
3483
|
{
|
|
3484
|
-
var g = (
|
|
3485
|
-
nt(
|
|
3484
|
+
var g = (c) => {
|
|
3485
|
+
nt(c, {
|
|
3486
3486
|
get editor() {
|
|
3487
3487
|
return n();
|
|
3488
3488
|
},
|
|
3489
3489
|
key: "textStyle",
|
|
3490
3490
|
get icon() {
|
|
3491
|
-
return
|
|
3491
|
+
return Gl;
|
|
3492
3492
|
},
|
|
3493
3493
|
get tooltip() {
|
|
3494
3494
|
return o[r()];
|
|
@@ -3511,7 +3511,7 @@ function is(e, t) {
|
|
|
3511
3511
|
var b = ee(_, 2);
|
|
3512
3512
|
Ht(b, 17, () => a, (y) => a.indexOf(y), (y, w) => {
|
|
3513
3513
|
var C = ns();
|
|
3514
|
-
C.__click = [ts, s, w],
|
|
3514
|
+
C.__click = [ts, s, w], Ae(() => {
|
|
3515
3515
|
wi(C, `background-color: ${S(w) ?? ""};`), Q(C, "aria-label", S(w));
|
|
3516
3516
|
}), R(y, C);
|
|
3517
3517
|
}), V(d), R(v, d);
|
|
@@ -3519,27 +3519,27 @@ function is(e, t) {
|
|
|
3519
3519
|
$$slots: { default: !0 }
|
|
3520
3520
|
});
|
|
3521
3521
|
};
|
|
3522
|
-
X(l, (
|
|
3523
|
-
n() &&
|
|
3522
|
+
X(l, (c) => {
|
|
3523
|
+
n() && c(g);
|
|
3524
3524
|
});
|
|
3525
3525
|
}
|
|
3526
|
-
return R(e,
|
|
3526
|
+
return R(e, f), G({
|
|
3527
3527
|
get editor() {
|
|
3528
3528
|
return n();
|
|
3529
3529
|
},
|
|
3530
|
-
set editor(
|
|
3531
|
-
n(
|
|
3530
|
+
set editor(c) {
|
|
3531
|
+
n(c), A();
|
|
3532
3532
|
},
|
|
3533
3533
|
get language() {
|
|
3534
3534
|
return r();
|
|
3535
3535
|
},
|
|
3536
|
-
set language(
|
|
3537
|
-
r(
|
|
3536
|
+
set language(c = "en") {
|
|
3537
|
+
r(c), A();
|
|
3538
3538
|
}
|
|
3539
3539
|
});
|
|
3540
3540
|
}
|
|
3541
3541
|
Ke(["click"]);
|
|
3542
|
-
customElements.define("tiptob-font-color-button",
|
|
3542
|
+
customElements.define("tiptob-font-color-button", q(is, { editor: {}, language: {} }, [], [], !0));
|
|
3543
3543
|
const as = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z"></path></svg>';
|
|
3544
3544
|
var ls = /* @__PURE__ */ se("<button></button>"), ss = /* @__PURE__ */ se('<div class="table svelte-qy6brn"></div> <div class="display svelte-qy6brn"> </div>', 1);
|
|
3545
3545
|
const us = {
|
|
@@ -3547,16 +3547,16 @@ const us = {
|
|
|
3547
3547
|
code: `.table.svelte-qy6brn {display:grid;grid-template-columns:repeat(10, 1fr);grid-template-rows:repeat(10, 1fr);margin:0.5rem;border-top:1px solid #cecece;border-left:1px solid #cecece;& button:where(.svelte-qy6brn) {border-color:var(--font-light-color, #cecece);border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;width:1rem;height:1rem;background-color:var(--tiptob-bg-button, #ffffff);&:hover,\r
|
|
3548
3548
|
&.highlight {background-color:var(--tiptob-bg-button-highlighted, #a6ccf7);}}}.display.svelte-qy6brn {text-align:center;color:var(--tiptob-bg-icon, #333333);padding-bottom:0.25rem;}`
|
|
3549
3549
|
};
|
|
3550
|
-
function
|
|
3551
|
-
|
|
3552
|
-
let n =
|
|
3550
|
+
function fs(e, t) {
|
|
3551
|
+
W(t, !0), Se(e, us);
|
|
3552
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
3553
3553
|
const i = { de: "Tabelle", en: "Table" };
|
|
3554
|
-
let o = /* @__PURE__ */
|
|
3555
|
-
const
|
|
3554
|
+
let o = /* @__PURE__ */ j(!1), a = /* @__PURE__ */ j(0), s = /* @__PURE__ */ j(0);
|
|
3555
|
+
const f = 10;
|
|
3556
3556
|
function l(p, d) {
|
|
3557
3557
|
n().chain().focus().insertTable({ rows: p, cols: d, withHeaderRow: !1 }).run(), M(o, !1);
|
|
3558
3558
|
}
|
|
3559
|
-
var g =
|
|
3559
|
+
var g = Y(), c = U(g);
|
|
3560
3560
|
{
|
|
3561
3561
|
var v = (p) => {
|
|
3562
3562
|
nt(p, {
|
|
@@ -3578,52 +3578,52 @@ function cs(e, t) {
|
|
|
3578
3578
|
},
|
|
3579
3579
|
children: (d, _) => {
|
|
3580
3580
|
var h = ss(), b = U(h);
|
|
3581
|
-
Ht(b, 21, () => ({ length:
|
|
3582
|
-
var
|
|
3583
|
-
Ht(I, 17, () => ({ length:
|
|
3581
|
+
Ht(b, 21, () => ({ length: f }), go, (C, H, E) => {
|
|
3582
|
+
var k = Y(), I = U(k);
|
|
3583
|
+
Ht(I, 17, () => ({ length: f }), go, (K, we, D) => {
|
|
3584
3584
|
var Z = ls();
|
|
3585
3585
|
Z.__click = () => l(E + 1, D + 1), Q(Z, "aria-label", `Create table with ${E + 1} rows and ${D + 1} columns`);
|
|
3586
3586
|
let Me;
|
|
3587
|
-
|
|
3588
|
-
}), R(C,
|
|
3587
|
+
Ae((Be) => Me = Rn(Z, 1, "svelte-qy6brn", null, Me, Be), [() => ({ highlight: S(a) >= E && S(s) >= D })]), vi("mouseenter", Z, () => (M(a, E, !0), M(s, D, !0))), R(K, Z);
|
|
3588
|
+
}), R(C, k);
|
|
3589
3589
|
}), V(b);
|
|
3590
3590
|
var y = ee(b, 2), w = P(y);
|
|
3591
|
-
V(y),
|
|
3591
|
+
V(y), Ae(() => Sr(w, `${S(a) + 1} x ${S(s) + 1}`)), R(d, h);
|
|
3592
3592
|
},
|
|
3593
3593
|
$$slots: { default: !0 }
|
|
3594
3594
|
});
|
|
3595
3595
|
};
|
|
3596
|
-
X(
|
|
3596
|
+
X(c, (p) => {
|
|
3597
3597
|
n() && p(v);
|
|
3598
3598
|
});
|
|
3599
3599
|
}
|
|
3600
|
-
return R(e, g),
|
|
3600
|
+
return R(e, g), G({
|
|
3601
3601
|
get editor() {
|
|
3602
3602
|
return n();
|
|
3603
3603
|
},
|
|
3604
3604
|
set editor(p) {
|
|
3605
|
-
n(p),
|
|
3605
|
+
n(p), A();
|
|
3606
3606
|
},
|
|
3607
3607
|
get language() {
|
|
3608
3608
|
return r();
|
|
3609
3609
|
},
|
|
3610
3610
|
set language(p = "en") {
|
|
3611
|
-
r(p),
|
|
3611
|
+
r(p), A();
|
|
3612
3612
|
}
|
|
3613
3613
|
});
|
|
3614
3614
|
}
|
|
3615
3615
|
Ke(["click"]);
|
|
3616
|
-
customElements.define("tiptob-table-button",
|
|
3617
|
-
const
|
|
3618
|
-
var ms = (e, t) => t().commands.toggleHeaderCell(), bs = (e, t) => t().commands.deleteTable(), ws = (e, t) => t().commands.addRowBefore(), Cs = (e, t) => t().commands.addRowAfter(), Es = (e, t) => t().commands.deleteRow(), ys = (e, t) => t().commands.addColumnBefore(), Ts = (e, t) => t().commands.addColumnAfter(),
|
|
3619
|
-
const
|
|
3620
|
-
hash: "svelte-
|
|
3621
|
-
code: `.table-bubble-menu.svelte-
|
|
3622
|
-
0
|
|
3616
|
+
customElements.define("tiptob-table-button", q(fs, { editor: {}, language: {} }, [], [], !0));
|
|
3617
|
+
const cs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z"></path></svg>', ds = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"></path></svg>', gs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"></path></svg>', vs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"></path></svg>', hs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"></path></svg>', ps = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"></path></svg>', _s = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"></path></svg>';
|
|
3618
|
+
var ms = (e, t) => t().commands.toggleHeaderCell(), bs = (e, t) => t().commands.deleteTable(), ws = (e, t) => t().commands.addRowBefore(), Cs = (e, t) => t().commands.addRowAfter(), Es = (e, t) => t().commands.deleteRow(), ys = (e, t) => t().commands.addColumnBefore(), Ts = (e, t) => t().commands.addColumnAfter(), As = (e, t) => t().commands.deleteColumn(), Ls = /* @__PURE__ */ se('<div class="table-bubble-menu svelte-1e2ztb0"><div class="table-toolbar svelte-1e2ztb0"><div class="toolbar-button-group svelte-1e2ztb0"><button class="toggle-header-button svelte-1e2ztb0">Toggle Header</button> <button class="svelte-1e2ztb0"><!></button></div> <div class="toolbar-button-group svelte-1e2ztb0"><button class="svelte-1e2ztb0"><!></button> <button class="svelte-1e2ztb0"><!></button> <button class="svelte-1e2ztb0"><!></button></div> <div class="toolbar-button-group svelte-1e2ztb0"><button class="svelte-1e2ztb0"><!></button> <button class="svelte-1e2ztb0"><!></button> <button class="svelte-1e2ztb0"><!></button></div></div></div>');
|
|
3619
|
+
const ks = {
|
|
3620
|
+
hash: "svelte-1e2ztb0",
|
|
3621
|
+
code: `.table-bubble-menu.svelte-1e2ztb0 {background-color:var(--tiptob-bg-button, #ffffff);border:1px solid var(--tiptob-bg-button, #eeeeee);border-radius:0.5rem;box-shadow:0 0 2px 0 rgba(34, 47, 62, 0.2),\r
|
|
3622
|
+
0 0.25rem 0.5rem 0 rgba(34, 47, 62, 0.15);min-width:max-content;overflow:hidden;& .table-toolbar:where(.svelte-1e2ztb0) {display:flex;flex-direction:row;align-items:center;padding:0.25rem 0;& .toolbar-button-group:where(.svelte-1e2ztb0) {display:flex;gap:0.125rem;padding:0 0.5rem;align-items:center;& button:where(.svelte-1e2ztb0) {cursor:pointer;margin:0.5rem 0;height:1.75rem;border:none;border-radius:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);&:hover {background-color:var(--tiptob-bg-button-hover, #e2e2e2);}}}}}`
|
|
3623
3623
|
};
|
|
3624
3624
|
function xs(e, t) {
|
|
3625
|
-
|
|
3626
|
-
let n =
|
|
3625
|
+
W(t, !0), Se(e, ks);
|
|
3626
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
3627
3627
|
const i = {
|
|
3628
3628
|
de: {
|
|
3629
3629
|
toggleHeader: "Kopfzeile umschalten",
|
|
@@ -3646,20 +3646,20 @@ function xs(e, t) {
|
|
|
3646
3646
|
deleteColumn: "Delete Column"
|
|
3647
3647
|
}
|
|
3648
3648
|
};
|
|
3649
|
-
var o =
|
|
3649
|
+
var o = Y(), a = U(o);
|
|
3650
3650
|
{
|
|
3651
|
-
var s = (
|
|
3652
|
-
var l =
|
|
3651
|
+
var s = (f) => {
|
|
3652
|
+
var l = Ls(), g = P(l), c = P(g), v = P(c);
|
|
3653
3653
|
v.__click = [ms, n];
|
|
3654
3654
|
var p = ee(v, 2);
|
|
3655
3655
|
p.__click = [bs, n];
|
|
3656
3656
|
var d = P(p);
|
|
3657
3657
|
re(d, {
|
|
3658
3658
|
get content() {
|
|
3659
|
-
return
|
|
3659
|
+
return cs;
|
|
3660
3660
|
}
|
|
3661
|
-
}), V(p), V(
|
|
3662
|
-
var _ = ee(
|
|
3661
|
+
}), V(p), V(c);
|
|
3662
|
+
var _ = ee(c, 2), h = P(_);
|
|
3663
3663
|
h.__click = [ws, n];
|
|
3664
3664
|
var b = P(h);
|
|
3665
3665
|
re(b, {
|
|
@@ -3683,15 +3683,15 @@ function xs(e, t) {
|
|
|
3683
3683
|
return gs;
|
|
3684
3684
|
}
|
|
3685
3685
|
}), V(C), V(_);
|
|
3686
|
-
var E = ee(_, 2),
|
|
3687
|
-
|
|
3688
|
-
var I = P(
|
|
3686
|
+
var E = ee(_, 2), k = P(E);
|
|
3687
|
+
k.__click = [ys, n];
|
|
3688
|
+
var I = P(k);
|
|
3689
3689
|
re(I, {
|
|
3690
3690
|
get content() {
|
|
3691
3691
|
return vs;
|
|
3692
3692
|
}
|
|
3693
|
-
}), V(
|
|
3694
|
-
var K = ee(
|
|
3693
|
+
}), V(k);
|
|
3694
|
+
var K = ee(k, 2);
|
|
3695
3695
|
K.__click = [Ts, n];
|
|
3696
3696
|
var we = P(K);
|
|
3697
3697
|
re(we, {
|
|
@@ -3700,45 +3700,45 @@ function xs(e, t) {
|
|
|
3700
3700
|
}
|
|
3701
3701
|
}), V(K);
|
|
3702
3702
|
var D = ee(K, 2);
|
|
3703
|
-
D.__click = [
|
|
3703
|
+
D.__click = [As, n];
|
|
3704
3704
|
var Z = P(D);
|
|
3705
3705
|
re(Z, {
|
|
3706
3706
|
get content() {
|
|
3707
3707
|
return ds;
|
|
3708
3708
|
}
|
|
3709
|
-
}), V(D), V(E), V(g), V(l),
|
|
3710
|
-
Q(v, "title", i[r()].toggleHeader), Q(p, "title", i[r()].deleteTable), Q(h, "title", i[r()].addRowBefore), Q(y, "title", i[r()].addRowAfter), Q(C, "title", i[r()].deleteRow), Q(
|
|
3711
|
-
}), R(
|
|
3709
|
+
}), V(D), V(E), V(g), V(l), Ae(() => {
|
|
3710
|
+
Q(v, "title", i[r()].toggleHeader), Q(p, "title", i[r()].deleteTable), Q(h, "title", i[r()].addRowBefore), Q(y, "title", i[r()].addRowAfter), Q(C, "title", i[r()].deleteRow), Q(k, "title", i[r()].addColumnBefore), Q(K, "title", i[r()].addColumnAfter), Q(D, "title", i[r()].deleteColumn);
|
|
3711
|
+
}), R(f, l);
|
|
3712
3712
|
};
|
|
3713
|
-
X(a, (
|
|
3714
|
-
n() &&
|
|
3713
|
+
X(a, (f) => {
|
|
3714
|
+
n() && f(s);
|
|
3715
3715
|
});
|
|
3716
3716
|
}
|
|
3717
|
-
return R(e, o),
|
|
3717
|
+
return R(e, o), G({
|
|
3718
3718
|
get editor() {
|
|
3719
3719
|
return n();
|
|
3720
3720
|
},
|
|
3721
|
-
set editor(
|
|
3722
|
-
n(
|
|
3721
|
+
set editor(f) {
|
|
3722
|
+
n(f), A();
|
|
3723
3723
|
},
|
|
3724
3724
|
get language() {
|
|
3725
3725
|
return r();
|
|
3726
3726
|
},
|
|
3727
|
-
set language(
|
|
3728
|
-
r(
|
|
3727
|
+
set language(f = "en") {
|
|
3728
|
+
r(f), A();
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
3731
|
}
|
|
3732
3732
|
Ke(["click"]);
|
|
3733
|
-
customElements.define("tiptob-table-bubble-menu",
|
|
3733
|
+
customElements.define("tiptob-table-bubble-menu", q(xs, { editor: {}, language: {} }, [], [], !0));
|
|
3734
3734
|
const Ss = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>';
|
|
3735
3735
|
function Ms(e, t) {
|
|
3736
|
-
|
|
3737
|
-
let n =
|
|
3736
|
+
W(t, !0);
|
|
3737
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
3738
3738
|
const i = { de: "Aufzählung", en: "Bulleted List" }, o = () => n().chain().focus().toggleBulletList().run();
|
|
3739
|
-
var a =
|
|
3739
|
+
var a = Y(), s = U(a);
|
|
3740
3740
|
{
|
|
3741
|
-
var
|
|
3741
|
+
var f = (l) => {
|
|
3742
3742
|
me(l, {
|
|
3743
3743
|
get editor() {
|
|
3744
3744
|
return n();
|
|
@@ -3754,25 +3754,25 @@ function Ms(e, t) {
|
|
|
3754
3754
|
});
|
|
3755
3755
|
};
|
|
3756
3756
|
X(s, (l) => {
|
|
3757
|
-
n() && l(
|
|
3757
|
+
n() && l(f);
|
|
3758
3758
|
});
|
|
3759
3759
|
}
|
|
3760
|
-
return R(e, a),
|
|
3760
|
+
return R(e, a), G({
|
|
3761
3761
|
get editor() {
|
|
3762
3762
|
return n();
|
|
3763
3763
|
},
|
|
3764
3764
|
set editor(l) {
|
|
3765
|
-
n(l),
|
|
3765
|
+
n(l), A();
|
|
3766
3766
|
},
|
|
3767
3767
|
get language() {
|
|
3768
3768
|
return r();
|
|
3769
3769
|
},
|
|
3770
3770
|
set language(l = "en") {
|
|
3771
|
-
r(l),
|
|
3771
|
+
r(l), A();
|
|
3772
3772
|
}
|
|
3773
3773
|
});
|
|
3774
3774
|
}
|
|
3775
|
-
customElements.define("tiptob-bullet-list-button",
|
|
3775
|
+
customElements.define("tiptob-bullet-list-button", q(Ms, { editor: {}, language: {} }, [], [], !0));
|
|
3776
3776
|
const Hs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z"></path></svg>';
|
|
3777
3777
|
function Rs(e, t, n) {
|
|
3778
3778
|
t().chain().focus().unsetHighlight().run(), M(n, !1);
|
|
@@ -3783,8 +3783,8 @@ const Vs = {
|
|
|
3783
3783
|
code: ".color-picker.svelte-1a12l75 {display:flex;flex-flow:row wrap;gap:0.25rem;width:5rem;background-color:var(--tiptob-bg-button, #ffffff);padding:0.25rem;button:where(.svelte-1a12l75) {border:none;border-radius:2px;}.clear:where(.svelte-1a12l75) {width:100%;text-align:center;padding:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:#333333;align-items:center;justify-content:center;display:flex;cursor:pointer;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;}}button:where(.svelte-1a12l75):not(.clear) {display:flex;width:1.5rem;height:1.5rem;border:1px solid var(--tiptob-bg-icon, #cecece);cursor:pointer;&:hover {border:1px solid #2977ff;}}}"
|
|
3784
3784
|
};
|
|
3785
3785
|
function Ds(e, t) {
|
|
3786
|
-
|
|
3787
|
-
let n =
|
|
3786
|
+
W(t, !0), Se(e, Vs);
|
|
3787
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), i = /* @__PURE__ */ j(!1);
|
|
3788
3788
|
const o = { de: "Markieren", en: "Font Highlight" }, a = [
|
|
3789
3789
|
"#E91313",
|
|
3790
3790
|
"#118800",
|
|
@@ -3793,13 +3793,13 @@ function Ds(e, t) {
|
|
|
3793
3793
|
"#fc7999",
|
|
3794
3794
|
"#FDFD77"
|
|
3795
3795
|
];
|
|
3796
|
-
function s(
|
|
3797
|
-
n().chain().focus().toggleHighlight({ color:
|
|
3796
|
+
function s(c) {
|
|
3797
|
+
n().chain().focus().toggleHighlight({ color: c }).run(), M(i, !1);
|
|
3798
3798
|
}
|
|
3799
|
-
var
|
|
3799
|
+
var f = Y(), l = U(f);
|
|
3800
3800
|
{
|
|
3801
|
-
var g = (
|
|
3802
|
-
nt(
|
|
3801
|
+
var g = (c) => {
|
|
3802
|
+
nt(c, {
|
|
3803
3803
|
get editor() {
|
|
3804
3804
|
return n();
|
|
3805
3805
|
},
|
|
@@ -3828,7 +3828,7 @@ function Ds(e, t) {
|
|
|
3828
3828
|
var b = ee(_, 2);
|
|
3829
3829
|
Ht(b, 17, () => a, (y) => a.indexOf(y), (y, w) => {
|
|
3830
3830
|
var C = Is();
|
|
3831
|
-
C.__click = [Os, s, w],
|
|
3831
|
+
C.__click = [Os, s, w], Ae(() => {
|
|
3832
3832
|
wi(C, `background-color: ${S(w) ?? ""};`), Q(C, "aria-label", S(w));
|
|
3833
3833
|
}), R(y, C);
|
|
3834
3834
|
}), V(d), R(v, d);
|
|
@@ -3836,60 +3836,58 @@ function Ds(e, t) {
|
|
|
3836
3836
|
$$slots: { default: !0 }
|
|
3837
3837
|
});
|
|
3838
3838
|
};
|
|
3839
|
-
X(l, (
|
|
3840
|
-
n() &&
|
|
3839
|
+
X(l, (c) => {
|
|
3840
|
+
n() && c(g);
|
|
3841
3841
|
});
|
|
3842
3842
|
}
|
|
3843
|
-
return R(e,
|
|
3843
|
+
return R(e, f), G({
|
|
3844
3844
|
get editor() {
|
|
3845
3845
|
return n();
|
|
3846
3846
|
},
|
|
3847
|
-
set editor(
|
|
3848
|
-
n(
|
|
3847
|
+
set editor(c) {
|
|
3848
|
+
n(c), A();
|
|
3849
3849
|
},
|
|
3850
3850
|
get language() {
|
|
3851
3851
|
return r();
|
|
3852
3852
|
},
|
|
3853
|
-
set language(
|
|
3854
|
-
r(
|
|
3853
|
+
set language(c = "en") {
|
|
3854
|
+
r(c), A();
|
|
3855
3855
|
}
|
|
3856
3856
|
});
|
|
3857
3857
|
}
|
|
3858
3858
|
Ke(["click"]);
|
|
3859
|
-
customElements.define("tiptob-font-highlight-button",
|
|
3859
|
+
customElements.define("tiptob-font-highlight-button", q(Ds, { editor: {}, language: {} }, [], [], !0));
|
|
3860
3860
|
const Mr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path></svg>', xo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934V13H20V5H4V18.999L14 9L17 12V14.829L14 11.8284L6.827 19H14V21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"></path></svg>', Hr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg>';
|
|
3861
3861
|
function Ps(e, t) {
|
|
3862
3862
|
e.key === "Enter" && (e.preventDefault(), t());
|
|
3863
3863
|
}
|
|
3864
|
-
var $s = /* @__PURE__ */ se('<!> <input type="file" accept="image/*" class="svelte-
|
|
3864
|
+
var $s = /* @__PURE__ */ se('<!> <input type="file" accept="image/*" class="svelte-1srbyfn"/>', 1), Bs = (e, t, n) => {
|
|
3865
3865
|
M(t, !1), M(n, "");
|
|
3866
|
-
}, Fs = /* @__PURE__ */ se('<div class="tiptob-link-input-wrapper svelte-
|
|
3866
|
+
}, Fs = /* @__PURE__ */ se('<div class="tiptob-link-input-wrapper svelte-1srbyfn"><input id="tiptob-link-input" type="url" placeholder="Paste a Image Url..." autocomplete="off" class="tiptob-link-input svelte-1srbyfn"/> <button type="button" class="confirm svelte-1srbyfn"><!></button> <button class="close svelte-1srbyfn" type="button"><!></button></div>');
|
|
3867
3867
|
const Us = {
|
|
3868
|
-
hash: "svelte-
|
|
3868
|
+
hash: "svelte-1srbyfn",
|
|
3869
3869
|
code: `\r
|
|
3870
|
-
/* --- Image URL Modal Styles --- */.tiptob-link-input-wrapper.svelte-
|
|
3871
|
-
/* --- File Input Styles --- */input[type="file"].svelte-
|
|
3872
|
-
\r
|
|
3873
|
-
/* --- Button Styles --- */button.svelte-16sa4po {display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0.25rem;border:none;border-radius:8px;background-color:var(--tiptob-bg-button, white);flex:40%;}button.svelte-16sa4po:enabled:hover {background-color:var(--tiptob-bg-button-hover, #e2e2e2);}button.svelte-16sa4po:disabled {opacity:0.5;cursor:default;}`
|
|
3870
|
+
/* --- Image URL Modal Styles --- */.tiptob-link-input-wrapper.svelte-1srbyfn {display:flex;flex-direction:row;gap:0.25rem;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);}button.svelte-1srbyfn {display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0.25rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);flex:40%;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&:disabled {opacity:0.5;cursor:default;&.confirm {svg {fill:var(--tiptob-bg-icon, #333333);}}}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}.tiptob-link-input.svelte-1srbyfn::placeholder {color:var(--table-resubmission-line, rgba(0, 0, 0, 0.4));}.tiptob-link-input.svelte-1srbyfn {display:flex;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);outline:none;border:0;}\r
|
|
3871
|
+
/* --- File Input Styles --- */input[type="file"].svelte-1srbyfn {display:none;}`
|
|
3874
3872
|
};
|
|
3875
3873
|
function Zs(e, t) {
|
|
3876
|
-
|
|
3877
|
-
let n =
|
|
3874
|
+
W(t, !0), Se(e, Us);
|
|
3875
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), i = L(t, "imageUpload", 7);
|
|
3878
3876
|
const o = { de: "Bild einfügen", en: "Insert Image" };
|
|
3879
|
-
let a = /* @__PURE__ */
|
|
3877
|
+
let a = /* @__PURE__ */ j(!1), s = /* @__PURE__ */ j(""), f;
|
|
3880
3878
|
function l(d) {
|
|
3881
3879
|
const _ = d.target;
|
|
3882
3880
|
for (const h of _.files ?? [])
|
|
3883
3881
|
i()(h).then((b) => n().chain().focus().setImage({ src: b }).run());
|
|
3884
|
-
|
|
3882
|
+
f.value = "";
|
|
3885
3883
|
}
|
|
3886
3884
|
function g() {
|
|
3887
3885
|
S(s).trim() && (n().chain().focus().setImage({ src: S(s).trim() }).run(), M(s, ""), M(a, !1));
|
|
3888
3886
|
}
|
|
3889
|
-
var
|
|
3887
|
+
var c = Y(), v = U(c);
|
|
3890
3888
|
{
|
|
3891
3889
|
var p = (d) => {
|
|
3892
|
-
var _ =
|
|
3890
|
+
var _ = Y(), h = U(_);
|
|
3893
3891
|
{
|
|
3894
3892
|
var b = (w) => {
|
|
3895
3893
|
var C = $s(), H = U(C);
|
|
@@ -3898,7 +3896,7 @@ function Zs(e, t) {
|
|
|
3898
3896
|
return n();
|
|
3899
3897
|
},
|
|
3900
3898
|
key: "image",
|
|
3901
|
-
action: () =>
|
|
3899
|
+
action: () => f.click(),
|
|
3902
3900
|
get icon() {
|
|
3903
3901
|
return xo;
|
|
3904
3902
|
},
|
|
@@ -3907,7 +3905,7 @@ function Zs(e, t) {
|
|
|
3907
3905
|
}
|
|
3908
3906
|
});
|
|
3909
3907
|
var E = ee(H, 2);
|
|
3910
|
-
E.__change = l, gl(E, (
|
|
3908
|
+
E.__change = l, gl(E, (k) => f = k, () => f), R(w, C);
|
|
3911
3909
|
}, y = (w) => {
|
|
3912
3910
|
nt(w, {
|
|
3913
3911
|
get editor() {
|
|
@@ -3928,9 +3926,9 @@ function Zs(e, t) {
|
|
|
3928
3926
|
M(a, C, !0);
|
|
3929
3927
|
},
|
|
3930
3928
|
children: (C, H) => {
|
|
3931
|
-
var E = Fs(),
|
|
3932
|
-
Ci(
|
|
3933
|
-
var I = ee(
|
|
3929
|
+
var E = Fs(), k = P(E);
|
|
3930
|
+
Ci(k), k.__keydown = [Ps, g];
|
|
3931
|
+
var I = ee(k, 2);
|
|
3934
3932
|
I.__click = g;
|
|
3935
3933
|
var K = P(I);
|
|
3936
3934
|
re(K, {
|
|
@@ -3945,9 +3943,9 @@ function Zs(e, t) {
|
|
|
3945
3943
|
get content() {
|
|
3946
3944
|
return Mr;
|
|
3947
3945
|
}
|
|
3948
|
-
}), V(we), V(E),
|
|
3946
|
+
}), V(we), V(E), Ae(() => {
|
|
3949
3947
|
I.disabled = !S(s), Q(I, "title", S(s) ? o[r()] : "");
|
|
3950
|
-
}), yi(
|
|
3948
|
+
}), yi(k, () => S(s), (Z) => M(s, Z)), R(C, E);
|
|
3951
3949
|
},
|
|
3952
3950
|
$$slots: { default: !0 }
|
|
3953
3951
|
});
|
|
@@ -3962,37 +3960,37 @@ function Zs(e, t) {
|
|
|
3962
3960
|
n() && d(p);
|
|
3963
3961
|
});
|
|
3964
3962
|
}
|
|
3965
|
-
return R(e,
|
|
3963
|
+
return R(e, c), G({
|
|
3966
3964
|
get editor() {
|
|
3967
3965
|
return n();
|
|
3968
3966
|
},
|
|
3969
3967
|
set editor(d) {
|
|
3970
|
-
n(d),
|
|
3968
|
+
n(d), A();
|
|
3971
3969
|
},
|
|
3972
3970
|
get language() {
|
|
3973
3971
|
return r();
|
|
3974
3972
|
},
|
|
3975
3973
|
set language(d = "en") {
|
|
3976
|
-
r(d),
|
|
3974
|
+
r(d), A();
|
|
3977
3975
|
},
|
|
3978
3976
|
get imageUpload() {
|
|
3979
3977
|
return i();
|
|
3980
3978
|
},
|
|
3981
3979
|
set imageUpload(d) {
|
|
3982
|
-
i(d),
|
|
3980
|
+
i(d), A();
|
|
3983
3981
|
}
|
|
3984
3982
|
});
|
|
3985
3983
|
}
|
|
3986
3984
|
Ke(["change", "keydown", "click"]);
|
|
3987
|
-
customElements.define("tiptob-image-button",
|
|
3985
|
+
customElements.define("tiptob-image-button", q(Zs, { editor: {}, language: {}, imageUpload: {} }, [], [], !0));
|
|
3988
3986
|
const zs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"></path></svg>';
|
|
3989
|
-
function
|
|
3990
|
-
|
|
3991
|
-
let n =
|
|
3987
|
+
function js(e, t) {
|
|
3988
|
+
W(t, !0);
|
|
3989
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
3992
3990
|
const i = { de: "Kursiv", en: "Italic" }, o = () => n().chain().focus().toggleItalic().run();
|
|
3993
|
-
var a =
|
|
3991
|
+
var a = Y(), s = U(a);
|
|
3994
3992
|
{
|
|
3995
|
-
var
|
|
3993
|
+
var f = (l) => {
|
|
3996
3994
|
me(l, {
|
|
3997
3995
|
key: "italic",
|
|
3998
3996
|
get editor() {
|
|
@@ -4008,33 +4006,33 @@ function Ws(e, t) {
|
|
|
4008
4006
|
});
|
|
4009
4007
|
};
|
|
4010
4008
|
X(s, (l) => {
|
|
4011
|
-
n() && l(
|
|
4009
|
+
n() && l(f);
|
|
4012
4010
|
});
|
|
4013
4011
|
}
|
|
4014
|
-
return R(e, a),
|
|
4012
|
+
return R(e, a), G({
|
|
4015
4013
|
get editor() {
|
|
4016
4014
|
return n();
|
|
4017
4015
|
},
|
|
4018
4016
|
set editor(l) {
|
|
4019
|
-
n(l),
|
|
4017
|
+
n(l), A();
|
|
4020
4018
|
},
|
|
4021
4019
|
get language() {
|
|
4022
4020
|
return r();
|
|
4023
4021
|
},
|
|
4024
4022
|
set language(l = "en") {
|
|
4025
|
-
r(l),
|
|
4023
|
+
r(l), A();
|
|
4026
4024
|
}
|
|
4027
4025
|
});
|
|
4028
4026
|
}
|
|
4029
|
-
customElements.define("tiptob-italic-button",
|
|
4030
|
-
const
|
|
4031
|
-
function
|
|
4032
|
-
|
|
4033
|
-
let n =
|
|
4027
|
+
customElements.define("tiptob-italic-button", q(js, { editor: {}, language: {} }, [], [], !0));
|
|
4028
|
+
const Ws = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 4C10.1046 4 11 4.89543 11 6V12.8271C10.1058 12.1373 8.96602 11.7305 7.6644 11.5136L7.3356 13.4864C8.71622 13.7165 9.59743 14.1528 10.1402 14.7408C10.67 15.3147 11 16.167 11 17.5C11 18.8807 9.88071 20 8.5 20C7.11929 20 6 18.8807 6 17.5V17.1493C6.43007 17.2926 6.87634 17.4099 7.3356 17.4864L7.6644 15.5136C6.92149 15.3898 6.1752 15.1144 5.42909 14.7599C4.58157 14.3573 4 13.499 4 12.5C4 11.6653 4.20761 11.0085 4.55874 10.5257C4.90441 10.0504 5.4419 9.6703 6.24254 9.47014L7 9.28078V6C7 4.89543 7.89543 4 9 4ZM12 3.35418C11.2671 2.52376 10.1947 2 9 2C6.79086 2 5 3.79086 5 6V7.77422C4.14895 8.11644 3.45143 8.64785 2.94126 9.34933C2.29239 10.2415 2 11.3347 2 12.5C2 14.0652 2.79565 15.4367 4 16.2422V17.5C4 19.9853 6.01472 22 8.5 22C9.91363 22 11.175 21.3482 12 20.3287C12.825 21.3482 14.0864 22 15.5 22C17.9853 22 20 19.9853 20 17.5V16.2422C21.2044 15.4367 22 14.0652 22 12.5C22 11.3347 21.7076 10.2415 21.0587 9.34933C20.5486 8.64785 19.8511 8.11644 19 7.77422V6C19 3.79086 17.2091 2 15 2C13.8053 2 12.7329 2.52376 12 3.35418ZM18 17.1493V17.5C18 18.8807 16.8807 20 15.5 20C14.1193 20 13 18.8807 13 17.5C13 16.167 13.33 15.3147 13.8598 14.7408C14.4026 14.1528 15.2838 13.7165 16.6644 13.4864L16.3356 11.5136C15.034 11.7305 13.8942 12.1373 13 12.8271V6C13 4.89543 13.8954 4 15 4C16.1046 4 17 4.89543 17 6V9.28078L17.7575 9.47014C18.5581 9.6703 19.0956 10.0504 19.4413 10.5257C19.7924 11.0085 20 11.6653 20 12.5C20 13.499 19.4184 14.3573 18.5709 14.7599C17.8248 15.1144 17.0785 15.3898 16.3356 15.5136L16.6644 17.4864C17.1237 17.4099 17.5699 17.2926 18 17.1493Z"></path></svg>';
|
|
4029
|
+
function Gs(e, t) {
|
|
4030
|
+
W(t, !0);
|
|
4031
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4034
4032
|
const i = { de: "Wissensmarkierung", en: "Knowledge Mark" }, o = () => n().chain().toggleKnowledgeMark().run();
|
|
4035
|
-
var a =
|
|
4033
|
+
var a = Y(), s = U(a);
|
|
4036
4034
|
{
|
|
4037
|
-
var
|
|
4035
|
+
var f = (l) => {
|
|
4038
4036
|
me(l, {
|
|
4039
4037
|
get editor() {
|
|
4040
4038
|
return n();
|
|
@@ -4042,7 +4040,7 @@ function js(e, t) {
|
|
|
4042
4040
|
action: o,
|
|
4043
4041
|
key: "knowledge",
|
|
4044
4042
|
get icon() {
|
|
4045
|
-
return
|
|
4043
|
+
return Ws;
|
|
4046
4044
|
},
|
|
4047
4045
|
get tooltip() {
|
|
4048
4046
|
return i[r()];
|
|
@@ -4050,33 +4048,33 @@ function js(e, t) {
|
|
|
4050
4048
|
});
|
|
4051
4049
|
};
|
|
4052
4050
|
X(s, (l) => {
|
|
4053
|
-
n() && l(
|
|
4051
|
+
n() && l(f);
|
|
4054
4052
|
});
|
|
4055
4053
|
}
|
|
4056
|
-
return R(e, a),
|
|
4054
|
+
return R(e, a), G({
|
|
4057
4055
|
get editor() {
|
|
4058
4056
|
return n();
|
|
4059
4057
|
},
|
|
4060
4058
|
set editor(l) {
|
|
4061
|
-
n(l),
|
|
4059
|
+
n(l), A();
|
|
4062
4060
|
},
|
|
4063
4061
|
get language() {
|
|
4064
4062
|
return r();
|
|
4065
4063
|
},
|
|
4066
4064
|
set language(l = "en") {
|
|
4067
|
-
r(l),
|
|
4065
|
+
r(l), A();
|
|
4068
4066
|
}
|
|
4069
4067
|
});
|
|
4070
4068
|
}
|
|
4071
|
-
customElements.define("tiptob-knowledge-button",
|
|
4072
|
-
const
|
|
4073
|
-
function
|
|
4074
|
-
|
|
4075
|
-
let n =
|
|
4069
|
+
customElements.define("tiptob-knowledge-button", q(Gs, { editor: {}, language: {} }, [], [], !0));
|
|
4070
|
+
const qs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>';
|
|
4071
|
+
function Ys(e, t) {
|
|
4072
|
+
W(t, !0);
|
|
4073
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4076
4074
|
const i = { de: "Nummerierung", en: "Numbered List" }, o = () => n().chain().focus().toggleOrderedList().run();
|
|
4077
|
-
var a =
|
|
4075
|
+
var a = Y(), s = U(a);
|
|
4078
4076
|
{
|
|
4079
|
-
var
|
|
4077
|
+
var f = (l) => {
|
|
4080
4078
|
me(l, {
|
|
4081
4079
|
get editor() {
|
|
4082
4080
|
return n();
|
|
@@ -4084,7 +4082,7 @@ function qs(e, t) {
|
|
|
4084
4082
|
action: o,
|
|
4085
4083
|
key: "orderedList",
|
|
4086
4084
|
get icon() {
|
|
4087
|
-
return
|
|
4085
|
+
return qs;
|
|
4088
4086
|
},
|
|
4089
4087
|
get tooltip() {
|
|
4090
4088
|
return i[r()];
|
|
@@ -4092,25 +4090,25 @@ function qs(e, t) {
|
|
|
4092
4090
|
});
|
|
4093
4091
|
};
|
|
4094
4092
|
X(s, (l) => {
|
|
4095
|
-
n() && l(
|
|
4093
|
+
n() && l(f);
|
|
4096
4094
|
});
|
|
4097
4095
|
}
|
|
4098
|
-
return R(e, a),
|
|
4096
|
+
return R(e, a), G({
|
|
4099
4097
|
get editor() {
|
|
4100
4098
|
return n();
|
|
4101
4099
|
},
|
|
4102
4100
|
set editor(l) {
|
|
4103
|
-
n(l),
|
|
4101
|
+
n(l), A();
|
|
4104
4102
|
},
|
|
4105
4103
|
get language() {
|
|
4106
4104
|
return r();
|
|
4107
4105
|
},
|
|
4108
4106
|
set language(l = "en") {
|
|
4109
|
-
r(l),
|
|
4107
|
+
r(l), A();
|
|
4110
4108
|
}
|
|
4111
4109
|
});
|
|
4112
4110
|
}
|
|
4113
|
-
customElements.define("tiptob-ordered-list-button",
|
|
4111
|
+
customElements.define("tiptob-ordered-list-button", q(Ys, { editor: {}, language: {} }, [], [], !0));
|
|
4114
4112
|
const Ks = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"></path></svg>', So = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg>', Xs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg>', Js = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"></path></svg>';
|
|
4115
4113
|
var Qs = (e, t) => S(t).action(), eu = /* @__PURE__ */ se("<button><!></button>");
|
|
4116
4114
|
const tu = {
|
|
@@ -4118,8 +4116,8 @@ const tu = {
|
|
|
4118
4116
|
code: "button.svelte-1j8wq3g {display:flex;align-items:center;justify-content:center;background-color:var(--tiptob-bg-button, #ffffff);border:none;cursor:pointer;padding:0.5rem 0.75rem;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;color:#333333;}}"
|
|
4119
4117
|
};
|
|
4120
4118
|
function nu(e, t) {
|
|
4121
|
-
|
|
4122
|
-
let n =
|
|
4119
|
+
W(t, !0), Se(e, tu);
|
|
4120
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), i = /* @__PURE__ */ j(!1);
|
|
4123
4121
|
const o = {
|
|
4124
4122
|
de: {
|
|
4125
4123
|
main: "Textausrichtung",
|
|
@@ -4136,8 +4134,8 @@ function nu(e, t) {
|
|
|
4136
4134
|
justify: "Justify"
|
|
4137
4135
|
}
|
|
4138
4136
|
};
|
|
4139
|
-
let a = /* @__PURE__ */
|
|
4140
|
-
const
|
|
4137
|
+
let a = /* @__PURE__ */ j(!1), s = /* @__PURE__ */ j(!1);
|
|
4138
|
+
const f = [
|
|
4141
4139
|
{
|
|
4142
4140
|
name: "left",
|
|
4143
4141
|
icon: So,
|
|
@@ -4167,9 +4165,9 @@ function nu(e, t) {
|
|
|
4167
4165
|
}
|
|
4168
4166
|
}
|
|
4169
4167
|
];
|
|
4170
|
-
var l =
|
|
4168
|
+
var l = Y(), g = U(l);
|
|
4171
4169
|
{
|
|
4172
|
-
var
|
|
4170
|
+
var c = (v) => {
|
|
4173
4171
|
nt(v, {
|
|
4174
4172
|
get editor() {
|
|
4175
4173
|
return n();
|
|
@@ -4188,8 +4186,8 @@ function nu(e, t) {
|
|
|
4188
4186
|
M(i, p, !0);
|
|
4189
4187
|
},
|
|
4190
4188
|
children: (p, d) => {
|
|
4191
|
-
var _ =
|
|
4192
|
-
Ht(h, 17, () =>
|
|
4189
|
+
var _ = Y(), h = U(_);
|
|
4190
|
+
Ht(h, 17, () => f, (b) => b.name, (b, y) => {
|
|
4193
4191
|
var w = eu();
|
|
4194
4192
|
w.__click = [Qs, y], Rn(w, 1, "svelte-1j8wq3g", null, {}, { highlighted: S(s) });
|
|
4195
4193
|
var C = P(w);
|
|
@@ -4197,7 +4195,7 @@ function nu(e, t) {
|
|
|
4197
4195
|
get content() {
|
|
4198
4196
|
return S(y).icon;
|
|
4199
4197
|
}
|
|
4200
|
-
}), V(w),
|
|
4198
|
+
}), V(w), Ae(() => {
|
|
4201
4199
|
w.disabled = S(a), Q(w, "title", S(a) ? "" : o[r()][S(y).name]);
|
|
4202
4200
|
}), R(b, w);
|
|
4203
4201
|
}), R(p, _);
|
|
@@ -4206,34 +4204,34 @@ function nu(e, t) {
|
|
|
4206
4204
|
});
|
|
4207
4205
|
};
|
|
4208
4206
|
X(g, (v) => {
|
|
4209
|
-
n() && v(
|
|
4207
|
+
n() && v(c);
|
|
4210
4208
|
});
|
|
4211
4209
|
}
|
|
4212
|
-
return R(e, l),
|
|
4210
|
+
return R(e, l), G({
|
|
4213
4211
|
get editor() {
|
|
4214
4212
|
return n();
|
|
4215
4213
|
},
|
|
4216
4214
|
set editor(v) {
|
|
4217
|
-
n(v),
|
|
4215
|
+
n(v), A();
|
|
4218
4216
|
},
|
|
4219
4217
|
get language() {
|
|
4220
4218
|
return r();
|
|
4221
4219
|
},
|
|
4222
4220
|
set language(v = "en") {
|
|
4223
|
-
r(v),
|
|
4221
|
+
r(v), A();
|
|
4224
4222
|
}
|
|
4225
4223
|
});
|
|
4226
4224
|
}
|
|
4227
4225
|
Ke(["click"]);
|
|
4228
|
-
customElements.define("tiptob-text-align-button",
|
|
4226
|
+
customElements.define("tiptob-text-align-button", q(nu, { editor: {}, language: {} }, [], [], !0));
|
|
4229
4227
|
const ru = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.1716 6.99955H11C7.68629 6.99955 5 9.68584 5 12.9996C5 16.3133 7.68629 18.9996 11 18.9996H20V20.9996H11C6.58172 20.9996 3 17.4178 3 12.9996C3 8.58127 6.58172 4.99955 11 4.99955H18.1716L15.636 2.46402L17.0503 1.0498L22 5.99955L17.0503 10.9493L15.636 9.53509L18.1716 6.99955Z"></path></svg>';
|
|
4230
4228
|
function ou(e, t) {
|
|
4231
|
-
|
|
4232
|
-
let n =
|
|
4229
|
+
W(t, !0);
|
|
4230
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4233
4231
|
const i = { de: "Wiederherstellen", en: "Redo" }, o = () => n().chain().focus().redo().run();
|
|
4234
|
-
var a =
|
|
4232
|
+
var a = Y(), s = U(a);
|
|
4235
4233
|
{
|
|
4236
|
-
var
|
|
4234
|
+
var f = (l) => {
|
|
4237
4235
|
me(l, {
|
|
4238
4236
|
get editor() {
|
|
4239
4237
|
return n();
|
|
@@ -4249,33 +4247,33 @@ function ou(e, t) {
|
|
|
4249
4247
|
});
|
|
4250
4248
|
};
|
|
4251
4249
|
X(s, (l) => {
|
|
4252
|
-
n() && l(
|
|
4250
|
+
n() && l(f);
|
|
4253
4251
|
});
|
|
4254
4252
|
}
|
|
4255
|
-
return R(e, a),
|
|
4253
|
+
return R(e, a), G({
|
|
4256
4254
|
get editor() {
|
|
4257
4255
|
return n();
|
|
4258
4256
|
},
|
|
4259
4257
|
set editor(l) {
|
|
4260
|
-
n(l),
|
|
4258
|
+
n(l), A();
|
|
4261
4259
|
},
|
|
4262
4260
|
get language() {
|
|
4263
4261
|
return r();
|
|
4264
4262
|
},
|
|
4265
4263
|
set language(l = "en") {
|
|
4266
|
-
r(l),
|
|
4264
|
+
r(l), A();
|
|
4267
4265
|
}
|
|
4268
4266
|
});
|
|
4269
4267
|
}
|
|
4270
|
-
customElements.define("tiptob-redo-button",
|
|
4268
|
+
customElements.define("tiptob-redo-button", q(ou, { editor: {}, language: {} }, [], [], !0));
|
|
4271
4269
|
const iu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.6512 14.0654L11.6047 20H9.57389L10.9247 12.339L3.51465 4.92892L4.92886 3.51471L20.4852 19.0711L19.071 20.4853L12.6512 14.0654ZM11.7727 7.53009L12.0425 5.99999H10.2426L8.24257 3.99999H19.9999V5.99999H14.0733L13.4991 9.25652L11.7727 7.53009Z"></path></svg>';
|
|
4272
4270
|
function au(e, t) {
|
|
4273
|
-
|
|
4274
|
-
let n =
|
|
4271
|
+
W(t, !0);
|
|
4272
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4275
4273
|
const i = { de: "Formatierung entfernen", en: "Remove Format" }, o = () => n().chain().focus().unsetAllMarks().run();
|
|
4276
|
-
var a =
|
|
4274
|
+
var a = Y(), s = U(a);
|
|
4277
4275
|
{
|
|
4278
|
-
var
|
|
4276
|
+
var f = (l) => {
|
|
4279
4277
|
me(l, {
|
|
4280
4278
|
get editor() {
|
|
4281
4279
|
return n();
|
|
@@ -4291,33 +4289,33 @@ function au(e, t) {
|
|
|
4291
4289
|
});
|
|
4292
4290
|
};
|
|
4293
4291
|
X(s, (l) => {
|
|
4294
|
-
n() && l(
|
|
4292
|
+
n() && l(f);
|
|
4295
4293
|
});
|
|
4296
4294
|
}
|
|
4297
|
-
return R(e, a),
|
|
4295
|
+
return R(e, a), G({
|
|
4298
4296
|
get editor() {
|
|
4299
4297
|
return n();
|
|
4300
4298
|
},
|
|
4301
4299
|
set editor(l) {
|
|
4302
|
-
n(l),
|
|
4300
|
+
n(l), A();
|
|
4303
4301
|
},
|
|
4304
4302
|
get language() {
|
|
4305
4303
|
return r();
|
|
4306
4304
|
},
|
|
4307
4305
|
set language(l = "en") {
|
|
4308
|
-
r(l),
|
|
4306
|
+
r(l), A();
|
|
4309
4307
|
}
|
|
4310
4308
|
});
|
|
4311
4309
|
}
|
|
4312
|
-
customElements.define("tiptob-remove-format-button",
|
|
4310
|
+
customElements.define("tiptob-remove-format-button", q(au, { editor: {}, language: {} }, [], [], !0));
|
|
4313
4311
|
const Rr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"></path></svg>';
|
|
4314
4312
|
function lu(e, t) {
|
|
4315
|
-
|
|
4316
|
-
let n =
|
|
4313
|
+
W(t, !0);
|
|
4314
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4317
4315
|
const i = { de: "Durchstreichen", en: "Strikethrough" }, o = () => n().chain().focus().toggleStrike().run();
|
|
4318
|
-
var a =
|
|
4316
|
+
var a = Y(), s = U(a);
|
|
4319
4317
|
{
|
|
4320
|
-
var
|
|
4318
|
+
var f = (l) => {
|
|
4321
4319
|
me(l, {
|
|
4322
4320
|
get editor() {
|
|
4323
4321
|
return n();
|
|
@@ -4333,33 +4331,33 @@ function lu(e, t) {
|
|
|
4333
4331
|
});
|
|
4334
4332
|
};
|
|
4335
4333
|
X(s, (l) => {
|
|
4336
|
-
n() && l(
|
|
4334
|
+
n() && l(f);
|
|
4337
4335
|
});
|
|
4338
4336
|
}
|
|
4339
|
-
return R(e, a),
|
|
4337
|
+
return R(e, a), G({
|
|
4340
4338
|
get editor() {
|
|
4341
4339
|
return n();
|
|
4342
4340
|
},
|
|
4343
4341
|
set editor(l) {
|
|
4344
|
-
n(l),
|
|
4342
|
+
n(l), A();
|
|
4345
4343
|
},
|
|
4346
4344
|
get language() {
|
|
4347
4345
|
return r();
|
|
4348
4346
|
},
|
|
4349
4347
|
set language(l = "en") {
|
|
4350
|
-
r(l),
|
|
4348
|
+
r(l), A();
|
|
4351
4349
|
}
|
|
4352
4350
|
});
|
|
4353
4351
|
}
|
|
4354
|
-
customElements.define("tiptob-strike-button",
|
|
4352
|
+
customElements.define("tiptob-strike-button", q(lu, { editor: {}, language: {} }, [], [], !0));
|
|
4355
4353
|
const su = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z"></path></svg>';
|
|
4356
4354
|
function uu(e, t) {
|
|
4357
|
-
|
|
4358
|
-
let n =
|
|
4355
|
+
W(t, !0);
|
|
4356
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4359
4357
|
const i = { de: "Unterstreichen", en: "Underline" }, o = () => n().chain().focus().toggleUnderline().run();
|
|
4360
|
-
var a =
|
|
4358
|
+
var a = Y(), s = U(a);
|
|
4361
4359
|
{
|
|
4362
|
-
var
|
|
4360
|
+
var f = (l) => {
|
|
4363
4361
|
me(l, {
|
|
4364
4362
|
key: "underline",
|
|
4365
4363
|
get editor() {
|
|
@@ -4375,33 +4373,33 @@ function uu(e, t) {
|
|
|
4375
4373
|
});
|
|
4376
4374
|
};
|
|
4377
4375
|
X(s, (l) => {
|
|
4378
|
-
n() && l(
|
|
4376
|
+
n() && l(f);
|
|
4379
4377
|
});
|
|
4380
4378
|
}
|
|
4381
|
-
return R(e, a),
|
|
4379
|
+
return R(e, a), G({
|
|
4382
4380
|
get editor() {
|
|
4383
4381
|
return n();
|
|
4384
4382
|
},
|
|
4385
4383
|
set editor(l) {
|
|
4386
|
-
n(l),
|
|
4384
|
+
n(l), A();
|
|
4387
4385
|
},
|
|
4388
4386
|
get language() {
|
|
4389
4387
|
return r();
|
|
4390
4388
|
},
|
|
4391
4389
|
set language(l = "en") {
|
|
4392
|
-
r(l),
|
|
4390
|
+
r(l), A();
|
|
4393
4391
|
}
|
|
4394
4392
|
});
|
|
4395
4393
|
}
|
|
4396
|
-
customElements.define("tiptob-underline-button",
|
|
4397
|
-
const
|
|
4398
|
-
function
|
|
4399
|
-
|
|
4400
|
-
let n =
|
|
4394
|
+
customElements.define("tiptob-underline-button", q(uu, { editor: {}, language: {} }, [], [], !0));
|
|
4395
|
+
const fu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5.82843 6.99955L8.36396 9.53509L6.94975 10.9493L2 5.99955L6.94975 1.0498L8.36396 2.46402L5.82843 4.99955H13C17.4183 4.99955 21 8.58127 21 12.9996C21 17.4178 17.4183 20.9996 13 20.9996H4V18.9996H13C16.3137 18.9996 19 16.3133 19 12.9996C19 9.68584 16.3137 6.99955 13 6.99955H5.82843Z"></path></svg>';
|
|
4396
|
+
function cu(e, t) {
|
|
4397
|
+
W(t, !0);
|
|
4398
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4401
4399
|
const i = { de: "Rückgängig", en: "Undo" }, o = () => n().chain().focus().undo().run();
|
|
4402
|
-
var a =
|
|
4400
|
+
var a = Y(), s = U(a);
|
|
4403
4401
|
{
|
|
4404
|
-
var
|
|
4402
|
+
var f = (l) => {
|
|
4405
4403
|
me(l, {
|
|
4406
4404
|
key: "undo",
|
|
4407
4405
|
get editor() {
|
|
@@ -4409,7 +4407,7 @@ function fu(e, t) {
|
|
|
4409
4407
|
},
|
|
4410
4408
|
action: o,
|
|
4411
4409
|
get icon() {
|
|
4412
|
-
return
|
|
4410
|
+
return fu;
|
|
4413
4411
|
},
|
|
4414
4412
|
get tooltip() {
|
|
4415
4413
|
return i[r()];
|
|
@@ -4417,25 +4415,25 @@ function fu(e, t) {
|
|
|
4417
4415
|
});
|
|
4418
4416
|
};
|
|
4419
4417
|
X(s, (l) => {
|
|
4420
|
-
n() && l(
|
|
4418
|
+
n() && l(f);
|
|
4421
4419
|
});
|
|
4422
4420
|
}
|
|
4423
|
-
return R(e, a),
|
|
4421
|
+
return R(e, a), G({
|
|
4424
4422
|
get editor() {
|
|
4425
4423
|
return n();
|
|
4426
4424
|
},
|
|
4427
4425
|
set editor(l) {
|
|
4428
|
-
n(l),
|
|
4426
|
+
n(l), A();
|
|
4429
4427
|
},
|
|
4430
4428
|
get language() {
|
|
4431
4429
|
return r();
|
|
4432
4430
|
},
|
|
4433
4431
|
set language(l = "en") {
|
|
4434
|
-
r(l),
|
|
4432
|
+
r(l), A();
|
|
4435
4433
|
}
|
|
4436
4434
|
});
|
|
4437
4435
|
}
|
|
4438
|
-
customElements.define("tiptob-undo-button",
|
|
4436
|
+
customElements.define("tiptob-undo-button", q(cu, { editor: {}, language: {} }, [], [], !0));
|
|
4439
4437
|
const du = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z"></path></svg>', gu = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"></path></svg>\r
|
|
4440
4438
|
`;
|
|
4441
4439
|
Ca();
|
|
@@ -4449,21 +4447,21 @@ function Hi(e) {
|
|
|
4449
4447
|
var t = vu();
|
|
4450
4448
|
R(e, t);
|
|
4451
4449
|
}
|
|
4452
|
-
|
|
4450
|
+
q(Hi, {}, [], [], !0);
|
|
4453
4451
|
function pu(e, t, n) {
|
|
4454
4452
|
t().chain().focus().extendMarkRange("link").unsetLink().run(), M(n, "");
|
|
4455
4453
|
}
|
|
4456
4454
|
function _u(e, t) {
|
|
4457
4455
|
e.key === "Enter" && (e.preventDefault(), t());
|
|
4458
4456
|
}
|
|
4459
|
-
var mu = (e, t) => window.open(S(t), "_blank"), bu = /* @__PURE__ */ se('<div class="tiptob-link-input-wrapper svelte-
|
|
4457
|
+
var mu = (e, t) => window.open(S(t), "_blank"), bu = /* @__PURE__ */ se('<div class="tiptob-link-input-wrapper svelte-18mpik2"><input id="tiptob-link-input" type="url" placeholder="Paste a link..." autocomplete="off" class="tiptob-link-input svelte-18mpik2"/> <button type="button" class="confirm svelte-18mpik2"><!></button> <!> <button type="button" class="svelte-18mpik2"><!></button> <button class="close svelte-18mpik2" type="button"><!></button></div>');
|
|
4460
4458
|
const wu = {
|
|
4461
|
-
hash: "svelte-
|
|
4462
|
-
code: ".tiptob-link-input-wrapper.svelte-
|
|
4459
|
+
hash: "svelte-18mpik2",
|
|
4460
|
+
code: ".tiptob-link-input-wrapper.svelte-18mpik2 {display:flex;flex-direction:row;gap:0.25rem;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);}button.svelte-18mpik2 {display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0.25rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);flex:40%;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&:disabled {opacity:0.5;cursor:default;&.confirm {svg {fill:var(--tiptob-bg-icon, #333333);}}}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}.tiptob-link-input.svelte-18mpik2::placeholder {color:var(--table-resubmission-line, rgba(0, 0, 0, 0.4));}.tiptob-link-input.svelte-18mpik2 {display:flex;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);outline:none;border:0;}"
|
|
4463
4461
|
};
|
|
4464
4462
|
function Cu(e, t) {
|
|
4465
|
-
|
|
4466
|
-
let n =
|
|
4463
|
+
W(t, !0), Se(e, wu);
|
|
4464
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), i = /* @__PURE__ */ j(!1), o = /* @__PURE__ */ j("");
|
|
4467
4465
|
const a = {
|
|
4468
4466
|
de: {
|
|
4469
4467
|
main: "Link",
|
|
@@ -4487,12 +4485,12 @@ function Cu(e, t) {
|
|
|
4487
4485
|
const v = S(o).includes(":") ? S(o) : `https://${S(o)}`;
|
|
4488
4486
|
n().chain().focus().extendMarkRange("link").setLink({ href: v }).run(), M(i, !1);
|
|
4489
4487
|
}
|
|
4490
|
-
function
|
|
4488
|
+
function f(v) {
|
|
4491
4489
|
v.focus();
|
|
4492
4490
|
}
|
|
4493
|
-
var l =
|
|
4491
|
+
var l = Y(), g = U(l);
|
|
4494
4492
|
{
|
|
4495
|
-
var
|
|
4493
|
+
var c = (v) => {
|
|
4496
4494
|
nt(v, {
|
|
4497
4495
|
get editor() {
|
|
4498
4496
|
return n();
|
|
@@ -4513,7 +4511,7 @@ function Cu(e, t) {
|
|
|
4513
4511
|
},
|
|
4514
4512
|
children: (p, d) => {
|
|
4515
4513
|
var _ = bu(), h = P(_);
|
|
4516
|
-
Ci(h), h.__keydown = [_u, s], Sn(() => yi(h, () => S(o), (I) => M(o, I))), bi(h, (I) =>
|
|
4514
|
+
Ci(h), h.__keydown = [_u, s], Sn(() => yi(h, () => S(o), (I) => M(o, I))), bi(h, (I) => f?.(I));
|
|
4517
4515
|
var b = ee(h, 2);
|
|
4518
4516
|
b.__click = s;
|
|
4519
4517
|
var y = P(b);
|
|
@@ -4534,12 +4532,12 @@ function Cu(e, t) {
|
|
|
4534
4532
|
}), V(C);
|
|
4535
4533
|
var E = ee(C, 2);
|
|
4536
4534
|
E.__click = [pu, n, o];
|
|
4537
|
-
var
|
|
4538
|
-
re(
|
|
4535
|
+
var k = P(E);
|
|
4536
|
+
re(k, {
|
|
4539
4537
|
get content() {
|
|
4540
4538
|
return Mr;
|
|
4541
4539
|
}
|
|
4542
|
-
}), V(E), V(_),
|
|
4540
|
+
}), V(E), V(_), Ae(() => {
|
|
4543
4541
|
b.disabled = !S(o), Q(b, "title", S(o) ? a[r()].confirm : ""), C.disabled = !S(o), Q(C, "title", a[r()].open), Q(E, "title", a[r()].remove);
|
|
4544
4542
|
}), R(p, _);
|
|
4545
4543
|
},
|
|
@@ -4547,33 +4545,33 @@ function Cu(e, t) {
|
|
|
4547
4545
|
});
|
|
4548
4546
|
};
|
|
4549
4547
|
X(g, (v) => {
|
|
4550
|
-
n() && v(
|
|
4548
|
+
n() && v(c);
|
|
4551
4549
|
});
|
|
4552
4550
|
}
|
|
4553
|
-
return R(e, l),
|
|
4551
|
+
return R(e, l), G({
|
|
4554
4552
|
get editor() {
|
|
4555
4553
|
return n();
|
|
4556
4554
|
},
|
|
4557
4555
|
set editor(v) {
|
|
4558
|
-
n(v),
|
|
4556
|
+
n(v), A();
|
|
4559
4557
|
},
|
|
4560
4558
|
get language() {
|
|
4561
4559
|
return r();
|
|
4562
4560
|
},
|
|
4563
4561
|
set language(v = "en") {
|
|
4564
|
-
r(v),
|
|
4562
|
+
r(v), A();
|
|
4565
4563
|
}
|
|
4566
4564
|
});
|
|
4567
4565
|
}
|
|
4568
4566
|
Ke(["keydown", "click"]);
|
|
4569
|
-
customElements.define("tiptob-hyperlink-button",
|
|
4567
|
+
customElements.define("tiptob-hyperlink-button", q(Cu, { editor: {}, language: {} }, [], [], !0));
|
|
4570
4568
|
function Eu(e, t) {
|
|
4571
|
-
|
|
4572
|
-
let n =
|
|
4569
|
+
W(t, !0);
|
|
4570
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4573
4571
|
const i = { de: "HTML anzeigen", en: "Show HTML" }, o = () => n().commands.setContent(n().getText());
|
|
4574
|
-
var a =
|
|
4572
|
+
var a = Y(), s = U(a);
|
|
4575
4573
|
{
|
|
4576
|
-
var
|
|
4574
|
+
var f = (l) => {
|
|
4577
4575
|
me(l, {
|
|
4578
4576
|
get editor() {
|
|
4579
4577
|
return n();
|
|
@@ -4589,32 +4587,32 @@ function Eu(e, t) {
|
|
|
4589
4587
|
});
|
|
4590
4588
|
};
|
|
4591
4589
|
X(s, (l) => {
|
|
4592
|
-
n() && l(
|
|
4590
|
+
n() && l(f);
|
|
4593
4591
|
});
|
|
4594
4592
|
}
|
|
4595
|
-
return R(e, a),
|
|
4593
|
+
return R(e, a), G({
|
|
4596
4594
|
get editor() {
|
|
4597
4595
|
return n();
|
|
4598
4596
|
},
|
|
4599
4597
|
set editor(l) {
|
|
4600
|
-
n(l),
|
|
4598
|
+
n(l), A();
|
|
4601
4599
|
},
|
|
4602
4600
|
get language() {
|
|
4603
4601
|
return r();
|
|
4604
4602
|
},
|
|
4605
4603
|
set language(l = "en") {
|
|
4606
|
-
r(l),
|
|
4604
|
+
r(l), A();
|
|
4607
4605
|
}
|
|
4608
4606
|
});
|
|
4609
4607
|
}
|
|
4610
|
-
customElements.define("tiptob-show-html-button",
|
|
4608
|
+
customElements.define("tiptob-show-html-button", q(Eu, { editor: {}, language: {} }, [], [], !0));
|
|
4611
4609
|
function yu(e, t) {
|
|
4612
|
-
|
|
4613
|
-
let n =
|
|
4610
|
+
W(t, !0);
|
|
4611
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4614
4612
|
const i = { de: "Quellcode anzeigen", en: "Show source code" }, o = () => n().commands.setContent(`<textarea>${n().getHTML()}</textarea>`);
|
|
4615
|
-
var a =
|
|
4613
|
+
var a = Y(), s = U(a);
|
|
4616
4614
|
{
|
|
4617
|
-
var
|
|
4615
|
+
var f = (l) => {
|
|
4618
4616
|
me(l, {
|
|
4619
4617
|
get editor() {
|
|
4620
4618
|
return n();
|
|
@@ -4630,37 +4628,37 @@ function yu(e, t) {
|
|
|
4630
4628
|
});
|
|
4631
4629
|
};
|
|
4632
4630
|
X(s, (l) => {
|
|
4633
|
-
n() && l(
|
|
4631
|
+
n() && l(f);
|
|
4634
4632
|
});
|
|
4635
4633
|
}
|
|
4636
|
-
return R(e, a),
|
|
4634
|
+
return R(e, a), G({
|
|
4637
4635
|
get editor() {
|
|
4638
4636
|
return n();
|
|
4639
4637
|
},
|
|
4640
4638
|
set editor(l) {
|
|
4641
|
-
n(l),
|
|
4639
|
+
n(l), A();
|
|
4642
4640
|
},
|
|
4643
4641
|
get language() {
|
|
4644
4642
|
return r();
|
|
4645
4643
|
},
|
|
4646
4644
|
set language(l = "en") {
|
|
4647
|
-
r(l),
|
|
4645
|
+
r(l), A();
|
|
4648
4646
|
}
|
|
4649
4647
|
});
|
|
4650
4648
|
}
|
|
4651
|
-
customElements.define("tiptob-show-source-button",
|
|
4649
|
+
customElements.define("tiptob-show-source-button", q(yu, { editor: {}, language: {} }, [], [], !0));
|
|
4652
4650
|
const Tu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M13 6V21H11V6H5V4H19V6H13Z"></path></svg>';
|
|
4653
|
-
function
|
|
4651
|
+
function Au(e, t, n, r) {
|
|
4654
4652
|
t().commands.insertContent(S(n)), M(r, !1);
|
|
4655
4653
|
}
|
|
4656
|
-
var
|
|
4654
|
+
var Lu = (e, t, n) => M(t, n.expression, !0), ku = /* @__PURE__ */ se('<button class="menu-item svelte-147ml8"> </button>'), xu = (e, t) => M(t, !1), Su = /* @__PURE__ */ se('<div class="dropdown-content svelte-147ml8"><div class="menu svelte-147ml8"></div> <div class="button-wrapper svelte-147ml8"><button type="button" class="confirm svelte-147ml8"><!></button> <button type="button" class="close svelte-147ml8"><!></button></div></div>');
|
|
4657
4655
|
const Mu = {
|
|
4658
|
-
hash: "svelte-
|
|
4659
|
-
code: `.dropdown-content.svelte-
|
|
4660
|
-
.menu-item.svelte-
|
|
4656
|
+
hash: "svelte-147ml8",
|
|
4657
|
+
code: `.dropdown-content.svelte-147ml8 {display:flex;flex-direction:column;width:12.5rem;max-height:15.5rem;border:1px solid #ccc;background:#ffffff;overflow:hidden;}.menu.svelte-147ml8 {flex:1;overflow-y:auto;max-height:12.5rem;}.menu-item.svelte-147ml8 {padding:0.5rem 0.75rem;border:none;background:transparent;text-align:left;cursor:pointer;width:100%;font-size:1rem;color:#333333;}.menu-item.svelte-147ml8:focus,\r
|
|
4658
|
+
.menu-item.svelte-147ml8:hover {background:#f0f0f0;}.button-wrapper.svelte-147ml8 {display:flex;justify-content:space-evenly;padding:0.25rem 0;border-top:1px solid #cecece;position:sticky;button:where(.svelte-147ml8) {display:flex;align-items:center;justify-content:center;width:40%;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);cursor:pointer;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}}`
|
|
4661
4659
|
};
|
|
4662
4660
|
function Hu(e, t) {
|
|
4663
|
-
|
|
4661
|
+
W(t, !0), Se(e, Mu);
|
|
4664
4662
|
const n = {
|
|
4665
4663
|
de: {
|
|
4666
4664
|
main: "Token auswählen",
|
|
@@ -4673,11 +4671,11 @@ function Hu(e, t) {
|
|
|
4673
4671
|
close: "Abort"
|
|
4674
4672
|
}
|
|
4675
4673
|
};
|
|
4676
|
-
let r =
|
|
4677
|
-
var
|
|
4674
|
+
let r = L(t, "editor", 7), i = L(t, "language", 7, "en"), o = L(t, "placeHolders", 7), a = /* @__PURE__ */ j(!1), s = /* @__PURE__ */ j("Select option");
|
|
4675
|
+
var f = Y(), l = U(f);
|
|
4678
4676
|
{
|
|
4679
|
-
var g = (
|
|
4680
|
-
nt(
|
|
4677
|
+
var g = (c) => {
|
|
4678
|
+
nt(c, {
|
|
4681
4679
|
get editor() {
|
|
4682
4680
|
return r();
|
|
4683
4681
|
},
|
|
@@ -4698,13 +4696,13 @@ function Hu(e, t) {
|
|
|
4698
4696
|
children: (v, p) => {
|
|
4699
4697
|
var d = Su(), _ = P(d);
|
|
4700
4698
|
Ht(_, 20, o, (H) => H, (H, E) => {
|
|
4701
|
-
var
|
|
4702
|
-
|
|
4703
|
-
var I = P(
|
|
4704
|
-
V(
|
|
4699
|
+
var k = ku();
|
|
4700
|
+
k.__click = [Lu, s, E];
|
|
4701
|
+
var I = P(k, !0);
|
|
4702
|
+
V(k), Ae(() => Sr(I, E.translation)), R(H, k);
|
|
4705
4703
|
}), V(_);
|
|
4706
4704
|
var h = ee(_, 2), b = P(h);
|
|
4707
|
-
b.__click = [
|
|
4705
|
+
b.__click = [Au, r, s, a];
|
|
4708
4706
|
var y = P(b);
|
|
4709
4707
|
re(y, {
|
|
4710
4708
|
get content() {
|
|
@@ -4718,60 +4716,60 @@ function Hu(e, t) {
|
|
|
4718
4716
|
get content() {
|
|
4719
4717
|
return Mr;
|
|
4720
4718
|
}
|
|
4721
|
-
}), V(w), V(h), V(d),
|
|
4719
|
+
}), V(w), V(h), V(d), Ae(() => {
|
|
4722
4720
|
Q(b, "title", n[i()].confirm), Q(w, "title", n[i()].close);
|
|
4723
4721
|
}), R(v, d);
|
|
4724
4722
|
},
|
|
4725
4723
|
$$slots: { default: !0 }
|
|
4726
4724
|
});
|
|
4727
4725
|
};
|
|
4728
|
-
X(l, (
|
|
4729
|
-
r() &&
|
|
4726
|
+
X(l, (c) => {
|
|
4727
|
+
r() && c(g);
|
|
4730
4728
|
});
|
|
4731
4729
|
}
|
|
4732
|
-
return R(e,
|
|
4730
|
+
return R(e, f), G({
|
|
4733
4731
|
get editor() {
|
|
4734
4732
|
return r();
|
|
4735
4733
|
},
|
|
4736
|
-
set editor(
|
|
4737
|
-
r(
|
|
4734
|
+
set editor(c) {
|
|
4735
|
+
r(c), A();
|
|
4738
4736
|
},
|
|
4739
4737
|
get language() {
|
|
4740
4738
|
return i();
|
|
4741
4739
|
},
|
|
4742
|
-
set language(
|
|
4743
|
-
i(
|
|
4740
|
+
set language(c = "en") {
|
|
4741
|
+
i(c), A();
|
|
4744
4742
|
},
|
|
4745
4743
|
get placeHolders() {
|
|
4746
4744
|
return o();
|
|
4747
4745
|
},
|
|
4748
|
-
set placeHolders(
|
|
4749
|
-
o(
|
|
4746
|
+
set placeHolders(c) {
|
|
4747
|
+
o(c), A();
|
|
4750
4748
|
}
|
|
4751
4749
|
});
|
|
4752
4750
|
}
|
|
4753
4751
|
Ke(["click"]);
|
|
4754
|
-
customElements.define("tiptob-token-button",
|
|
4752
|
+
customElements.define("tiptob-token-button", q(Hu, { editor: {}, language: {}, placeHolders: {} }, [], [], !0));
|
|
4755
4753
|
export {
|
|
4756
|
-
|
|
4754
|
+
Wl as BoldButton,
|
|
4757
4755
|
Ms as BulletListButton,
|
|
4758
4756
|
is as FontColorButton,
|
|
4759
4757
|
Ds as FontHighlightButton,
|
|
4760
4758
|
Cu as HyperlinkButton,
|
|
4761
4759
|
Zs as ImageButton,
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4760
|
+
js as ItalicButton,
|
|
4761
|
+
Gs as KnowledgeButton,
|
|
4762
|
+
Ys as OrderedListButton,
|
|
4765
4763
|
ou as RedoButton,
|
|
4766
4764
|
au as RemoveFormatButton,
|
|
4767
4765
|
Eu as ShowHtmlButton,
|
|
4768
4766
|
yu as ShowSourceButton,
|
|
4769
4767
|
lu as StrikeButton,
|
|
4770
4768
|
xs as TableBubbleMenu,
|
|
4771
|
-
|
|
4769
|
+
fs as TableButton,
|
|
4772
4770
|
nu as TextAlignButton,
|
|
4773
4771
|
Hu as TokenAction,
|
|
4774
4772
|
uu as UnderlineButton,
|
|
4775
|
-
|
|
4773
|
+
cu as UndoButton
|
|
4776
4774
|
};
|
|
4777
4775
|
//# sourceMappingURL=web-components.js.map
|