@pie-players/pie-tool-annotation-toolbar 0.3.74 → 0.3.75

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.
@@ -1,18 +1,18 @@
1
- import { coerceBooleanAttributes as Uo } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
- import { HighlightColor as mt, connectAssessmentToolkitRegionScopeContext as Go, connectAssessmentToolkitShellContext as Yo, connectToolRuntimeContext as Ko } from "@pie-players/pie-assessment-toolkit";
3
- import { resolveInterfaceI18n as Xo } from "@pie-players/pie-players-shared/i18n/provider";
4
- import { sanitizeSvgIcon as Zo } from "@pie-players/pie-players-shared/security";
1
+ import { coerceBooleanAttributes as Xo } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
+ import { HighlightColor as mt, catalogContextHolding as Zo, composedClosest as Jo, composedContains as dr, connectToolRegionScopeContext as Qo, connectToolRuntimeContext as ea, connectToolShellContext as ta, findShellScopeHost as na, isShadowRootNode as xr, isTTSStartFailure as ra, resolveContentRegion as ia, retargetToTree as oa } from "@pie-players/pie-assessment-toolkit/tools/registration";
3
+ import { resolveInterfaceI18n as aa } from "@pie-players/pie-players-shared/i18n/provider";
4
+ import { sanitizeSvgIcon as sa } from "@pie-players/pie-players-shared/security";
5
5
  if (typeof window < "u") {
6
- var Jr, Qr;
7
- ((Jr = (Qr = window).__svelte ?? (Qr.__svelte = {})).v ?? (Jr.v = /* @__PURE__ */ new Set())).add("5");
6
+ var ei, ti;
7
+ ((ei = (ti = window).__svelte ?? (ti.__svelte = {})).v ?? (ei.v = /* @__PURE__ */ new Set())).add("5");
8
8
  }
9
9
  var dt = {}, z = /* @__PURE__ */ Symbol("uninitialized");
10
- var Jo = "http://www.w3.org/2000/svg", Qo = "http://www.w3.org/1998/Math/MathML", $i = Array.isArray, ea = Array.prototype.indexOf, Mn = Array.prototype.includes, Bn = Array.from, Rn = Object.keys, Gt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ta = Object.getOwnPropertyDescriptors, na = Object.prototype, ra = Array.prototype, Si = Object.getPrototypeOf, ei = Object.isExtensible, ia = () => {
10
+ var la = "http://www.w3.org/2000/svg", fa = "http://www.w3.org/1998/Math/MathML", Ai = Array.isArray, ua = Array.prototype.indexOf, xn = Array.prototype.includes, Bn = Array.from, Mn = Object.keys, Yt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ca = Object.getOwnPropertyDescriptors, da = Object.prototype, ha = Array.prototype, xi = Object.getPrototypeOf, ni = Object.isExtensible, va = () => {
11
11
  };
12
- function oa(e) {
12
+ function _a(e) {
13
13
  for (var t = 0; t < e.length; t++) e[t]();
14
14
  }
15
- function Ei() {
15
+ function Mi() {
16
16
  var e, t;
17
17
  return {
18
18
  promise: new Promise((n, r) => {
@@ -22,78 +22,78 @@ function Ei() {
22
22
  reject: t
23
23
  };
24
24
  }
25
- function Yt(e) {
25
+ function Kt(e) {
26
26
  "@babel/helpers - typeof";
27
- return Yt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
27
+ return Kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
28
28
  return typeof t;
29
29
  } : function(t) {
30
30
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
31
- }, Yt(e);
31
+ }, Kt(e);
32
32
  }
33
- function aa(e, t) {
34
- if (Yt(e) != "object" || !e) return e;
33
+ function pa(e, t) {
34
+ if (Kt(e) != "object" || !e) return e;
35
35
  var n = e[Symbol.toPrimitive];
36
36
  if (n !== void 0) {
37
37
  var r = n.call(e, t || "default");
38
- if (Yt(r) != "object") return r;
38
+ if (Kt(r) != "object") return r;
39
39
  throw new TypeError("@@toPrimitive must return a primitive value.");
40
40
  }
41
41
  return (t === "string" ? String : Number)(e);
42
42
  }
43
- function sa(e) {
44
- var t = aa(e, "string");
45
- return Yt(t) == "symbol" ? t : t + "";
43
+ function ga(e) {
44
+ var t = pa(e, "string");
45
+ return Kt(t) == "symbol" ? t : t + "";
46
46
  }
47
47
  function P(e, t, n) {
48
- return (t = sa(t)) in e ? Object.defineProperty(e, t, {
48
+ return (t = ga(t)) in e ? Object.defineProperty(e, t, {
49
49
  value: n,
50
50
  enumerable: !0,
51
51
  configurable: !0,
52
52
  writable: !0
53
53
  }) : e[t] = n, e;
54
54
  }
55
- var gl = 1 << 24, ve = 1024, ue = 2048, _t = 4096, Ar = 8192, la = 16384, xr = 32768, ti = 1 << 25, Mr = 65536, bl = 1 << 17, wl = 1 << 18, Ct = 1 << 19, fa = 1 << 20, Vt = 1 << 25, ni = 1 << 21, ua = 1 << 22, Cn = 1 << 23, Bt = /* @__PURE__ */ Symbol("$state"), Ti = /* @__PURE__ */ Symbol("component"), Ai = /* @__PURE__ */ Symbol("legacy props"), ca = /* @__PURE__ */ Symbol(""), da = /* @__PURE__ */ Symbol("proxy path"), dr = /* @__PURE__ */ Symbol("attributes"), hr = /* @__PURE__ */ Symbol("class"), vr = /* @__PURE__ */ Symbol("style"), Sn = /* @__PURE__ */ Symbol("text");
56
- var en = new class extends Error {
55
+ var Ol = 1 << 24, _e = 1024, ce = 2048, _t = 4096, Mr = 8192, ba = 16384, Rr = 32768, ri = 1 << 25, Cr = 65536, Ll = 1 << 17, Nl = 1 << 18, Rt = 1 << 19, wa = 1 << 20, Bt = 1 << 25, ii = 1 << 21, ma = 1 << 22, Rn = 1 << 23, zt = /* @__PURE__ */ Symbol("$state"), Ri = /* @__PURE__ */ Symbol("component"), Ci = /* @__PURE__ */ Symbol("legacy props"), ya = /* @__PURE__ */ Symbol(""), ka = /* @__PURE__ */ Symbol("proxy path"), hr = /* @__PURE__ */ Symbol("attributes"), vr = /* @__PURE__ */ Symbol("class"), _r = /* @__PURE__ */ Symbol("style"), $n = /* @__PURE__ */ Symbol("text");
56
+ var tn = new class extends Error {
57
57
  constructor(...t) {
58
58
  super(...t), P(this, "name", "StaleReactionError"), P(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
59
59
  }
60
- }(), ha = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
61
- function va() {
60
+ }(), $a = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
61
+ function Sa() {
62
62
  console.warn("https://svelte.dev/e/derived_inert");
63
63
  }
64
- function tn(e) {
64
+ function nn(e) {
65
65
  console.warn("https://svelte.dev/e/hydration_mismatch");
66
66
  }
67
- function _a() {
67
+ function Ea() {
68
68
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
69
69
  }
70
- var M = !1;
71
- function qe(e) {
72
- M = e;
70
+ var x = !1;
71
+ function De(e) {
72
+ x = e;
73
73
  }
74
74
  var C;
75
75
  function X(e) {
76
76
  if (e === null)
77
- throw tn(), dt;
77
+ throw nn(), dt;
78
78
  return C = e;
79
79
  }
80
- function At() {
81
- return X(/* @__PURE__ */ Ee(C));
80
+ function Tt() {
81
+ return X(/* @__PURE__ */ Te(C));
82
82
  }
83
- function qt(e) {
84
- if (M) {
85
- if (/* @__PURE__ */ Ee(C) !== null)
86
- throw tn(), dt;
83
+ function Wt(e) {
84
+ if (x) {
85
+ if (/* @__PURE__ */ Te(C) !== null)
86
+ throw nn(), dt;
87
87
  C = e;
88
88
  }
89
89
  }
90
- function pa(e = 1) {
91
- if (M) {
92
- for (var t = e, n = C; t--; ) n = /* @__PURE__ */ Ee(n);
90
+ function Ta(e = 1) {
91
+ if (x) {
92
+ for (var t = e, n = C; t--; ) n = /* @__PURE__ */ Te(n);
93
93
  C = n;
94
94
  }
95
95
  }
96
- function On(e = !0) {
96
+ function Cn(e = !0) {
97
97
  for (var t = 0, n = C; ; ) {
98
98
  if (n.nodeType === 8) {
99
99
  var r = n.data;
@@ -102,72 +102,72 @@ function On(e = !0) {
102
102
  t -= 1;
103
103
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
104
104
  }
105
- var i = /* @__PURE__ */ Ee(n);
105
+ var i = /* @__PURE__ */ Te(n);
106
106
  e && n.remove(), n = i;
107
107
  }
108
108
  }
109
- function xi(e) {
109
+ function Oi(e) {
110
110
  if (!e || e.nodeType !== 8)
111
- throw tn(), dt;
111
+ throw nn(), dt;
112
112
  return e.data;
113
113
  }
114
- function Mi(e) {
114
+ function Li(e) {
115
115
  return e === this.v;
116
116
  }
117
- function ga(e, t) {
117
+ function Aa(e, t) {
118
118
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
119
119
  }
120
- function Ri(e) {
121
- return !ga(e, this.v);
120
+ function Ni(e) {
121
+ return !Aa(e, this.v);
122
122
  }
123
- function ba() {
123
+ function xa() {
124
124
  throw new Error("https://svelte.dev/e/async_derived_orphan");
125
125
  }
126
- function wa(e, t, n) {
126
+ function Ma(e, t, n) {
127
127
  throw new Error("https://svelte.dev/e/each_key_duplicate");
128
128
  }
129
- function ma(e) {
129
+ function Ra(e) {
130
130
  throw new Error("https://svelte.dev/e/effect_in_teardown");
131
131
  }
132
- function ya() {
132
+ function Ca() {
133
133
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
134
134
  }
135
- function ka(e) {
135
+ function Oa(e) {
136
136
  throw new Error("https://svelte.dev/e/effect_orphan");
137
137
  }
138
- function $a() {
138
+ function La() {
139
139
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
140
140
  }
141
- function Sa() {
141
+ function Na() {
142
142
  throw new Error("https://svelte.dev/e/hydration_failed");
143
143
  }
144
- function Ea(e) {
144
+ function Pa(e) {
145
145
  throw new Error("https://svelte.dev/e/props_invalid_value");
146
146
  }
147
- function Ta() {
147
+ function Ia() {
148
148
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
149
149
  }
150
- function Aa() {
150
+ function qa() {
151
151
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
152
152
  }
153
- function xa() {
153
+ function Wa() {
154
154
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
155
155
  }
156
- function Ma() {
156
+ function Da() {
157
157
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
158
158
  }
159
- var Fe = !1, zn = !1;
160
- function ri(e, t) {
161
- return e.label = t, Ra(e.v, t), e;
159
+ var Ve = !1, zn = !1;
160
+ function oi(e, t) {
161
+ return e.label = t, ja(e.v, t), e;
162
162
  }
163
- function Ra(e, t) {
164
- return e?.[da]?.(t), e;
163
+ function ja(e, t) {
164
+ return e?.[ka]?.(t), e;
165
165
  }
166
166
  var V = null;
167
- function xt(e) {
167
+ function At(e) {
168
168
  V = e;
169
169
  }
170
- function Ci(e, t = !1, n) {
170
+ function Pi(e, t = !1, n) {
171
171
  V = {
172
172
  p: V,
173
173
  i: !1,
@@ -175,7 +175,7 @@ function Ci(e, t = !1, n) {
175
175
  e: null,
176
176
  s: e,
177
177
  x: null,
178
- r: x,
178
+ r: A,
179
179
  l: zn && !t ? {
180
180
  s: null,
181
181
  u: null,
@@ -183,216 +183,216 @@ function Ci(e, t = !1, n) {
183
183
  } : null
184
184
  };
185
185
  }
186
- function Oi(e) {
186
+ function Ii(e) {
187
187
  var t = V, n = t.e;
188
188
  if (n !== null) {
189
189
  t.e = null;
190
- for (var r of n) to(r);
190
+ for (var r of n) oo(r);
191
191
  }
192
- return e !== void 0 && (t.x = e), t.i = !0, V = t.p, Rr(e);
192
+ return e !== void 0 && (t.x = e), t.i = !0, V = t.p, Or(e);
193
193
  }
194
- function Rr(e = {}) {
195
- return Gt(e, Ti, { value: !0 }), e;
194
+ function Or(e = {}) {
195
+ return Yt(e, Ri, { value: !0 }), e;
196
196
  }
197
- function nn() {
197
+ function rn() {
198
198
  return !zn || V !== null && V.l === null;
199
199
  }
200
200
  var it = [];
201
- function Li() {
201
+ function qi() {
202
202
  var e = it;
203
- it = [], oa(e);
203
+ it = [], _a(e);
204
204
  }
205
- function Ye(e) {
206
- if (it.length === 0 && !zt) {
205
+ function Xe(e) {
206
+ if (it.length === 0 && !Ut) {
207
207
  var t = it;
208
208
  queueMicrotask(() => {
209
- t === it && Li();
209
+ t === it && qi();
210
210
  });
211
211
  }
212
212
  it.push(e);
213
213
  }
214
- function Ca() {
215
- for (; it.length > 0; ) Li();
214
+ function Ha() {
215
+ for (; it.length > 0; ) qi();
216
216
  }
217
- var Oa = ~(ue | _t | ve);
217
+ var Fa = ~(ce | _t | _e);
218
218
  function W(e, t) {
219
- e.f = e.f & Oa | t;
219
+ e.f = e.f & Fa | t;
220
220
  }
221
- function Cr(e) {
222
- (e.f & 512) !== 0 || e.deps === null ? W(e, ve) : W(e, _t);
221
+ function Lr(e) {
222
+ (e.f & 512) !== 0 || e.deps === null ? W(e, _e) : W(e, _t);
223
223
  }
224
- function Ni(e, t, n) {
225
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), W(e, ve);
224
+ function Wi(e, t, n) {
225
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), W(e, _e);
226
226
  }
227
227
  function Un(e) {
228
- var t = R, n = x;
229
- pe(null), Oe(null);
228
+ var t = M, n = A;
229
+ ge(null), Ne(null);
230
230
  try {
231
231
  return e();
232
232
  } finally {
233
- pe(t), Oe(n);
233
+ ge(t), Ne(n);
234
234
  }
235
235
  }
236
- function La(e, t, n, r) {
237
- const i = nn() ? Kt : Or;
238
- var o = e.filter((u) => !u.settled), a = t.map(i);
236
+ function Va(e, t, n, r) {
237
+ const i = rn() ? Xt : Nr;
238
+ var o = e.filter((c) => !c.settled), a = t.map(i);
239
239
  if (n.length === 0 && o.length === 0) {
240
240
  r(a);
241
241
  return;
242
242
  }
243
- var l = x, d = Na(), _ = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((u) => u.promise)) : null;
244
- function g(u) {
245
- if ((l.f & 16384) === 0) {
246
- d();
243
+ var f = A, u = Ba(), h = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((c) => c.promise)) : null;
244
+ function _(c) {
245
+ if ((f.f & 16384) === 0) {
246
+ u();
247
247
  try {
248
- r([...a, ...u]);
248
+ r([...a, ...c]);
249
249
  } catch (b) {
250
- Ce(b, l);
250
+ Le(b, f);
251
251
  }
252
- Ln();
252
+ On();
253
253
  }
254
254
  }
255
- var c = Pi();
255
+ var d = Di();
256
256
  if (n.length === 0) {
257
- _.then(() => g([])).finally(c);
257
+ h.then(() => _([])).finally(d);
258
258
  return;
259
259
  }
260
- function v() {
261
- Promise.all(n.map((u) => /* @__PURE__ */ Ia(u))).then(g).catch((u) => Ce(u, l)).finally(c);
260
+ function p() {
261
+ Promise.all(n.map((c) => /* @__PURE__ */ Ua(c))).then(_).catch((c) => Le(c, f)).finally(d);
262
262
  }
263
- _ ? _.then(() => {
264
- d(), v(), Ln();
265
- }) : v();
263
+ h ? h.then(() => {
264
+ u(), p(), On();
265
+ }) : p();
266
266
  }
267
- function Na() {
268
- var e = x, t = R, n = V, r = A;
267
+ function Ba() {
268
+ var e = A, t = M, n = V, r = T;
269
269
  if (0) var i;
270
270
  return function(a = !0) {
271
- Oe(e), pe(t), xt(n), a && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
271
+ Ne(e), ge(t), At(n), a && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
272
272
  };
273
273
  }
274
- var Pa = !1;
275
- function Ln(e = !0) {
276
- Pa = !1, Oe(null), pe(null), xt(null), e && A?.deactivate();
274
+ var za = !1;
275
+ function On(e = !0) {
276
+ za = !1, Ne(null), ge(null), At(null), e && T?.deactivate();
277
277
  }
278
- function Pi() {
279
- var e = x, t = e.b, n = A, r = !!t?.is_rendered();
278
+ function Di() {
279
+ var e = A, t = e.b, n = T, r = !!t?.is_rendered();
280
280
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
281
281
  t?.update_pending_count(-1, n), n.decrement(r, e);
282
282
  };
283
283
  }
284
284
  // @__NO_SIDE_EFFECTS__
285
- function Kt(e) {
286
- var t = 2 | ue;
287
- return x !== null && (x.f |= Ct), {
285
+ function Xt(e) {
286
+ var t = 2 | ce;
287
+ return A !== null && (A.f |= Rt), {
288
288
  ctx: V,
289
289
  deps: null,
290
290
  effects: null,
291
- equals: Mi,
291
+ equals: Li,
292
292
  f: t,
293
293
  fn: e,
294
294
  reactions: null,
295
295
  rv: 0,
296
296
  v: z,
297
297
  wv: 0,
298
- parent: x,
298
+ parent: A,
299
299
  ac: null
300
300
  };
301
301
  }
302
- var Wt = /* @__PURE__ */ Symbol("obsolete");
302
+ var Dt = /* @__PURE__ */ Symbol("obsolete");
303
303
  // @__NO_SIDE_EFFECTS__
304
- function Ia(e, t, n) {
305
- let r = x;
306
- r === null && ba();
307
- var i = void 0, o = vt(z), a = !R, l = /* @__PURE__ */ new Set();
308
- return es(() => {
309
- var d = x, _ = Ei();
310
- i = _.promise;
304
+ function Ua(e, t, n) {
305
+ let r = A;
306
+ r === null && xa();
307
+ var i = void 0, o = vt(z), a = !M, f = /* @__PURE__ */ new Set();
308
+ return us(() => {
309
+ var u = A, h = Mi();
310
+ i = h.promise;
311
311
  try {
312
- Promise.resolve(e()).then(_.resolve, (u) => {
313
- u !== en && _.reject(u);
314
- }).finally(Ln);
315
- } catch (u) {
316
- _.reject(u), Ln();
312
+ Promise.resolve(e()).then(h.resolve, (c) => {
313
+ c !== tn && h.reject(c);
314
+ }).finally(On);
315
+ } catch (c) {
316
+ h.reject(c), On();
317
317
  }
318
- var g = A;
318
+ var _ = T;
319
319
  if (a) {
320
- if ((d.f & 32768) !== 0) var c = Pi();
321
- if (r.b?.is_rendered()) g.async_deriveds.get(d)?.reject(Wt);
322
- else for (const u of l.values()) u.reject(Wt);
323
- l.add(_), g.async_deriveds.set(d, _);
320
+ if ((u.f & 32768) !== 0) var d = Di();
321
+ if (r.b?.is_rendered()) _.async_deriveds.get(u)?.reject(Dt);
322
+ else for (const c of f.values()) c.reject(Dt);
323
+ f.add(h), _.async_deriveds.set(u, h);
324
324
  }
325
- const v = (u, b = void 0) => {
326
- c?.(), l.delete(_), b !== Wt && (g.activate(), b ? (o.f |= Cn, Mt(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= Cn), Mt(o, u)), g.deactivate());
325
+ const p = (c, b = void 0) => {
326
+ d?.(), f.delete(h), b !== Dt && (_.activate(), b ? (o.f |= Rn, xt(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= Rn), xt(o, c)), _.deactivate());
327
327
  };
328
- _.promise.then(v, (u) => v(null, u || "unknown"));
329
- }), Za(() => {
330
- for (const d of l) d.reject(Wt);
331
- }), new Promise((d) => {
332
- function _(g) {
333
- function c() {
334
- g === i ? d(o) : _(i);
328
+ h.promise.then(p, (c) => p(null, c || "unknown"));
329
+ }), ss(() => {
330
+ for (const u of f) u.reject(Dt);
331
+ }), new Promise((u) => {
332
+ function h(_) {
333
+ function d() {
334
+ _ === i ? u(o) : h(i);
335
335
  }
336
- g.then(c, c);
336
+ _.then(d, d);
337
337
  }
338
- _(i);
338
+ h(i);
339
339
  });
340
340
  }
341
341
  // @__NO_SIDE_EFFECTS__
342
- function Je(e) {
343
- const t = /* @__PURE__ */ Kt(e);
344
- return Fe || lo(t), t;
342
+ function Ae(e) {
343
+ const t = /* @__PURE__ */ Xt(e);
344
+ return Ve || ho(t), t;
345
345
  }
346
346
  // @__NO_SIDE_EFFECTS__
347
- function Or(e) {
348
- const t = /* @__PURE__ */ Kt(e);
349
- return t.equals = Ri, t;
347
+ function Nr(e) {
348
+ const t = /* @__PURE__ */ Xt(e);
349
+ return t.equals = Ni, t;
350
350
  }
351
- function qa(e) {
351
+ function Ga(e) {
352
352
  var t = e.effects;
353
353
  if (t !== null) {
354
354
  e.effects = null;
355
- for (var n = 0; n < t.length; n += 1) ne(t[n]);
355
+ for (var n = 0; n < t.length; n += 1) re(t[n]);
356
356
  }
357
357
  }
358
- function Lr(e) {
359
- var t, n = x, r = e.parent;
360
- if (!De && r !== null && e.v !== z && (r.f & 24576) !== 0)
361
- return va(), e.v;
362
- Oe(r);
358
+ function Pr(e) {
359
+ var t, n = A, r = e.parent;
360
+ if (!Fe && r !== null && e.v !== z && (r.f & 24576) !== 0)
361
+ return Sa(), e.v;
362
+ Ne(r);
363
363
  try {
364
- qa(e), t = ho(e);
364
+ Ga(e), t = go(e);
365
365
  } finally {
366
- Oe(n);
366
+ Ne(n);
367
367
  }
368
368
  return t;
369
369
  }
370
- function Ii(e) {
371
- var t = Lr(e);
372
- if (!e.equals(t) && (e.wv = uo(), (!A?.is_fork || e.deps === null) && (A !== null ? (A.capture(e, t, !0), _r?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
373
- W(e, ve);
370
+ function ji(e) {
371
+ var t = Pr(e);
372
+ if (!e.equals(t) && (e.wv = _o(), (!T?.is_fork || e.deps === null) && (T !== null ? (T.capture(e, t, !0), pr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
373
+ W(e, _e);
374
374
  return;
375
375
  }
376
- De || (te !== null ? (qr() || A?.is_fork) && te.set(e, t) : Cr(e));
376
+ Fe || (ne !== null ? (Dr() || T?.is_fork) && ne.set(e, t) : Lr(e));
377
377
  }
378
- function Wa(e) {
378
+ function Ya(e) {
379
379
  if (e.effects !== null)
380
380
  for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Un(() => {
381
- t.ac.abort(en), t.ac = null;
382
- }), t.fn !== null && (t.teardown = ia), Zt(t, 0), Dr(t));
381
+ t.ac.abort(tn), t.ac = null;
382
+ }), t.fn !== null && (t.teardown = va), Jt(t, 0), Fr(t));
383
383
  }
384
- function qi(e) {
384
+ function Hi(e) {
385
385
  if (e.effects !== null)
386
- for (const t of e.effects) t.teardown && t.fn !== null && Rt(t);
386
+ for (const t of e.effects) t.teardown && t.fn !== null && Mt(t);
387
387
  }
388
- function Wi(e, t) {
388
+ function Fi(e, t) {
389
389
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
390
390
  }
391
- function Nr(e, t) {
392
- Wi(e, t), t.add(e);
391
+ function Ir(e, t) {
392
+ Fi(e, t), t.add(e);
393
393
  }
394
394
  function $(e, t, n) {
395
- Wi(e, t), t.set(e, n);
395
+ Fi(e, t), t.set(e, n);
396
396
  }
397
397
  function S(e, t, n) {
398
398
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
@@ -404,52 +404,52 @@ function k(e, t, n) {
404
404
  function s(e, t) {
405
405
  return e.get(S(e, t));
406
406
  }
407
- var ji, Nn = null, yt = null, A = null, _r = null, te = null, pr = null, zt = !1, nr = !1, Xt = null, Pn = null, Di = 0;
408
- var ja = 1, In = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), pt = class Fi {
407
+ var Vi, Ln = null, yt = null, T = null, pr = null, ne = null, gr = null, Ut = !1, nr = !1, Zt = null, Nn = null, Bi = 0;
408
+ var Ka = 1, Pn = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), pt = class zi {
409
409
  constructor() {
410
- Nr(this, I), P(this, "id", ja++), $(this, In, !1), P(this, "linked", !0), $(this, ft, null), $(this, ot, null), P(this, "async_deriveds", /* @__PURE__ */ new Map()), P(this, "current", /* @__PURE__ */ new Map()), P(this, "previous", /* @__PURE__ */ new Map()), $(this, qn, /* @__PURE__ */ new Set()), $(this, _n, /* @__PURE__ */ new Set()), $(this, kt, 0), $(this, nt, /* @__PURE__ */ new Map()), $(this, jt, null), $(this, we, []), $(this, gr, []), $(this, ht, /* @__PURE__ */ new Set()), $(this, We, /* @__PURE__ */ new Set()), $(this, Ue, /* @__PURE__ */ new Map()), $(this, En, /* @__PURE__ */ new Set()), P(this, "is_fork", !1), $(this, Dt, !1), yt === null ? Nn = yt = this : (k(ot, yt, this), k(ft, this, yt)), yt = this;
410
+ Ir(this, I), P(this, "id", Ka++), $(this, Pn, !1), P(this, "linked", !0), $(this, ft, null), $(this, ot, null), P(this, "async_deriveds", /* @__PURE__ */ new Map()), P(this, "current", /* @__PURE__ */ new Map()), P(this, "previous", /* @__PURE__ */ new Map()), $(this, In, /* @__PURE__ */ new Set()), $(this, _n, /* @__PURE__ */ new Set()), $(this, kt, 0), $(this, nt, /* @__PURE__ */ new Map()), $(this, jt, null), $(this, me, []), $(this, br, []), $(this, ht, /* @__PURE__ */ new Set()), $(this, je, /* @__PURE__ */ new Set()), $(this, Ye, /* @__PURE__ */ new Map()), $(this, Sn, /* @__PURE__ */ new Set()), P(this, "is_fork", !1), $(this, Ht, !1), yt === null ? Ln = yt = this : (k(ot, yt, this), k(ft, this, yt)), yt = this;
411
411
  }
412
412
  skip_effect(t) {
413
- s(Ue, this).has(t) || s(Ue, this).set(t, {
413
+ s(Ye, this).has(t) || s(Ye, this).set(t, {
414
414
  d: [],
415
415
  m: []
416
- }), s(En, this).delete(t);
416
+ }), s(Sn, this).delete(t);
417
417
  }
418
418
  unskip_effect(t, n = (r) => this.schedule(r)) {
419
- var r = s(Ue, this).get(t);
419
+ var r = s(Ye, this).get(t);
420
420
  if (r) {
421
- s(Ue, this).delete(t);
421
+ s(Ye, this).delete(t);
422
422
  for (var i of r.d)
423
- W(i, ue), n(i);
423
+ W(i, ce), n(i);
424
424
  for (i of r.m)
425
425
  W(i, _t), n(i);
426
426
  }
427
- s(En, this).add(t);
427
+ s(Sn, this).add(t);
428
428
  }
429
429
  capture(t, n, r = !1) {
430
- t.v !== z && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), te?.set(t, n)), this.is_fork || (t.v = n);
430
+ t.v !== z && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), ne?.set(t, n)), this.is_fork || (t.v = n);
431
431
  }
432
432
  activate() {
433
- A = this;
433
+ T = this;
434
434
  }
435
435
  deactivate() {
436
- A = null, te = null;
436
+ T = null, ne = null;
437
437
  }
438
438
  flush() {
439
439
  try {
440
- nr = !0, A = this, S(I, this, Wn).call(this);
440
+ nr = !0, T = this, S(I, this, qn).call(this);
441
441
  } finally {
442
- Di = 0, pr = null, Xt = null, Pn = null, nr = !1, A = null, te = null, Re.clear();
442
+ Bi = 0, gr = null, Zt = null, Nn = null, nr = !1, T = null, ne = null, Oe.clear();
443
443
  }
444
444
  }
445
445
  discard() {
446
446
  for (const t of s(_n, this)) t(this);
447
447
  s(_n, this).clear();
448
- for (const t of this.async_deriveds.values()) t.reject(Wt);
449
- S(I, this, jn).call(this), s(jt, this)?.resolve();
448
+ for (const t of this.async_deriveds.values()) t.reject(Dt);
449
+ S(I, this, Wn).call(this), s(jt, this)?.resolve();
450
450
  }
451
451
  register_created_effect(t) {
452
- s(gr, this).push(t);
452
+ s(br, this).push(t);
453
453
  }
454
454
  increment(t, n) {
455
455
  if (k(kt, this, s(kt, this) + 1), t) {
@@ -462,41 +462,41 @@ var ja = 1, In = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap
462
462
  let r = s(nt, this).get(n) ?? 0;
463
463
  r === 1 ? s(nt, this).delete(n) : s(nt, this).set(n, r - 1);
464
464
  }
465
- s(Dt, this) || (k(Dt, this, !0), Ye(() => {
466
- k(Dt, this, !1), this.linked && this.flush();
465
+ s(Ht, this) || (k(Ht, this, !0), Xe(() => {
466
+ k(Ht, this, !1), this.linked && this.flush();
467
467
  }));
468
468
  }
469
469
  transfer_effects(t, n) {
470
470
  for (const r of t) s(ht, this).add(r);
471
- for (const r of n) s(We, this).add(r);
471
+ for (const r of n) s(je, this).add(r);
472
472
  t.clear(), n.clear();
473
473
  }
474
474
  oncommit(t) {
475
- s(qn, this).add(t);
475
+ s(In, this).add(t);
476
476
  }
477
477
  ondiscard(t) {
478
478
  s(_n, this).add(t);
479
479
  }
480
480
  settled() {
481
- return (s(jt, this) ?? k(jt, this, Ei())).promise;
481
+ return (s(jt, this) ?? k(jt, this, Mi())).promise;
482
482
  }
483
483
  static ensure() {
484
- if (A === null) {
485
- const t = A = new Fi();
486
- !nr && !zt && Ye(() => {
487
- s(In, t) || t.flush();
484
+ if (T === null) {
485
+ const t = T = new zi();
486
+ !nr && !Ut && Xe(() => {
487
+ s(Pn, t) || t.flush();
488
488
  });
489
489
  }
490
- return A;
490
+ return T;
491
491
  }
492
492
  apply() {
493
- if (!Fe || !this.is_fork && s(ft, this) === null && s(ot, this) === null) {
494
- te = null;
493
+ if (!Ve || !this.is_fork && s(ft, this) === null && s(ot, this) === null) {
494
+ ne = null;
495
495
  return;
496
496
  }
497
- te = /* @__PURE__ */ new Map();
498
- for (const [n, [r]] of this.current) te.set(n, r);
499
- for (let n = Nn; n !== null; n = s(ot, n))
497
+ ne = /* @__PURE__ */ new Map();
498
+ for (const [n, [r]] of this.current) ne.set(n, r);
499
+ for (let n = Ln; n !== null; n = s(ot, n))
500
500
  if (!(n === this || n.is_fork)) {
501
501
  var t = !1;
502
502
  if (n.id < this.id) {
@@ -507,23 +507,23 @@ var ja = 1, In = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap
507
507
  }
508
508
  }
509
509
  if (!t)
510
- for (const [r, i] of n.previous) te.has(r) || te.set(r, i);
510
+ for (const [r, i] of n.previous) ne.has(r) || ne.set(r, i);
511
511
  }
512
512
  }
513
513
  schedule(t) {
514
- if (pr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
514
+ if (gr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
515
515
  t.b.defer_effect(t);
516
516
  return;
517
517
  }
518
- s(we, this).push(t);
518
+ s(me, this).push(t);
519
519
  }
520
520
  };
521
- ji = pt;
522
- function ii() {
521
+ Vi = pt;
522
+ function ai() {
523
523
  if (this.is_fork) return !0;
524
524
  for (const n of s(nt, this).keys()) {
525
525
  for (var e = n, t = !1; e.parent !== null; ) {
526
- if (s(Ue, this).has(e)) {
526
+ if (s(Ye, this).has(e)) {
527
527
  t = !0;
528
528
  break;
529
529
  }
@@ -533,9 +533,9 @@ function ii() {
533
533
  }
534
534
  return !1;
535
535
  }
536
- function Hi() {
536
+ function Ui() {
537
537
  var e = [];
538
- for (const i of s(we, this))
538
+ for (const i of s(me, this))
539
539
  if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
540
540
  for (var t = i, n = !1; t.parent !== null; ) {
541
541
  t = t.parent;
@@ -545,60 +545,60 @@ function Hi() {
545
545
  n = !0;
546
546
  break;
547
547
  }
548
- t.f ^= ve;
548
+ t.f ^= _e;
549
549
  }
550
550
  }
551
551
  n || e.push(t);
552
552
  }
553
- return k(we, this, []), e;
553
+ return k(me, this, []), e;
554
554
  }
555
- function Wn() {
556
- k(In, this, !0);
555
+ function qn() {
556
+ k(Pn, this, !0);
557
557
  for (const a of s(ht, this))
558
- s(We, this).delete(a), W(a, ue), this.schedule(a);
559
- for (const a of s(We, this))
558
+ s(je, this).delete(a), W(a, ce), this.schedule(a);
559
+ for (const a of s(je, this))
560
560
  W(a, _t), this.schedule(a);
561
561
  this.apply();
562
- for (var e = Xt = [], t = [], n = Pn = []; s(we, this).length > 0; ) {
563
- Di++ > 1e3 && (S(I, this, jn).call(this), Va());
564
- for (const a of S(I, this, Hi).call(this)) try {
565
- S(I, this, Vi).call(this, a, e, t);
566
- } catch (l) {
567
- throw Ui(a), S(I, this, ii).call(this) || this.discard(), l;
562
+ for (var e = Zt = [], t = [], n = Nn = []; s(me, this).length > 0; ) {
563
+ Bi++ > 1e3 && (S(I, this, Wn).call(this), Qa());
564
+ for (const a of S(I, this, Ui).call(this)) try {
565
+ S(I, this, Gi).call(this, a, e, t);
566
+ } catch (f) {
567
+ throw Xi(a), S(I, this, ai).call(this) || this.discard(), f;
568
568
  }
569
569
  }
570
- if (A = null, n.length > 0) {
571
- var r = ji.ensure();
570
+ if (T = null, n.length > 0) {
571
+ var r = Vi.ensure();
572
572
  for (const a of n) r.schedule(a);
573
573
  }
574
- if (Xt = null, Pn = null, S(I, this, ii).call(this)) {
574
+ if (Zt = null, Nn = null, S(I, this, ai).call(this)) {
575
575
  S(I, this, Ft).call(this, t), S(I, this, Ft).call(this, e);
576
- for (const [a, l] of s(Ue, this)) zi(a, l);
577
- n.length > 0 && S(I, A, Wn).call(A);
576
+ for (const [a, f] of s(Ye, this)) Ki(a, f);
577
+ n.length > 0 && S(I, T, qn).call(T);
578
578
  return;
579
579
  }
580
- const i = S(I, this, Da).call(this);
580
+ const i = S(I, this, Xa).call(this);
581
581
  if (i) {
582
- S(I, this, Ft).call(this, t), S(I, this, Ft).call(this, e), S(I, i, Fa).call(i, this);
582
+ S(I, this, Ft).call(this, t), S(I, this, Ft).call(this, e), S(I, i, Za).call(i, this);
583
583
  return;
584
584
  }
585
- s(ht, this).clear(), s(We, this).clear();
586
- for (const a of s(qn, this)) a(this);
587
- s(qn, this).clear(), _r = this, oi(t), oi(e), _r = null, s(jt, this)?.resolve();
588
- var o = A;
589
- if (s(kt, this) === 0 && (s(we, this).length === 0 || o !== null) && (S(I, this, jn).call(this), Fe && (S(I, this, Ha).call(this), A = o)), s(we, this).length > 0)
585
+ s(ht, this).clear(), s(je, this).clear();
586
+ for (const a of s(In, this)) a(this);
587
+ s(In, this).clear(), pr = this, si(t), si(e), pr = null, s(jt, this)?.resolve();
588
+ var o = T;
589
+ if (s(kt, this) === 0 && (s(me, this).length === 0 || o !== null) && (S(I, this, Wn).call(this), Ve && (S(I, this, Ja).call(this), T = o)), s(me, this).length > 0)
590
590
  if (o !== null) {
591
- for (const a of s(we, this)) s(we, o).push(a);
592
- k(we, this, []);
591
+ for (const a of s(me, this)) s(me, o).push(a);
592
+ k(me, this, []);
593
593
  } else o = this;
594
- o !== null && (Re.clear(), S(I, o, Wn).call(o));
594
+ o !== null && (Oe.clear(), S(I, o, qn).call(o));
595
595
  }
596
- function Vi(e, t, n) {
597
- e.f ^= ve;
596
+ function Gi(e, t, n) {
597
+ e.f ^= _e;
598
598
  for (var r = e.first; r !== null; ) {
599
599
  var i = r.f, o = (i & 96) !== 0;
600
- if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || s(Ue, this).has(r)) && r.fn !== null) {
601
- o ? r.f ^= ve : (i & 4) !== 0 ? t.push(r) : Fe && (i & 16777224) !== 0 ? n.push(r) : rn(r) && ((i & 16) !== 0 && s(We, this).add(r), Rt(r));
600
+ if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || s(Ye, this).has(r)) && r.fn !== null) {
601
+ o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Ve && (i & 16777224) !== 0 ? n.push(r) : on(r) && ((i & 16) !== 0 && s(je, this).add(r), Mt(r));
602
602
  var a = r.first;
603
603
  if (a !== null) {
604
604
  r = a;
@@ -606,16 +606,16 @@ function Vi(e, t, n) {
606
606
  }
607
607
  }
608
608
  for (; r !== null; ) {
609
- var l = r.next;
610
- if (l !== null) {
611
- r = l;
609
+ var f = r.next;
610
+ if (f !== null) {
611
+ r = f;
612
612
  break;
613
613
  }
614
614
  r = r.parent;
615
615
  }
616
616
  }
617
617
  }
618
- function Da() {
618
+ function Xa() {
619
619
  for (var e = s(ft, this); e !== null; ) {
620
620
  if (!e.is_fork) {
621
621
  for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
@@ -624,14 +624,14 @@ function Da() {
624
624
  }
625
625
  return null;
626
626
  }
627
- function Fa(e) {
627
+ function Za(e) {
628
628
  for (const [n, r] of e.current)
629
629
  !this.previous.has(n) && e.previous.has(n) && this.previous.set(n, e.previous.get(n)), this.current.set(n, r);
630
630
  for (const [n, r] of e.async_deriveds) {
631
631
  const i = this.async_deriveds.get(n);
632
632
  i && r.promise.then(i.resolve).catch(i.reject);
633
633
  }
634
- e.async_deriveds.clear(), this.transfer_effects(s(ht, e), s(We, e));
634
+ e.async_deriveds.clear(), this.transfer_effects(s(ht, e), s(je, e));
635
635
  const t = (n) => {
636
636
  var r = n.reactions;
637
637
  if (r !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
@@ -640,294 +640,294 @@ function Fa(e) {
640
640
  if ((i & 2) !== 0) t(a);
641
641
  else {
642
642
  var o = a;
643
- i & 4194320 && !this.async_deriveds.has(o) && (s(We, this).delete(o), W(o, ue), this.schedule(o));
643
+ i & 4194320 && !this.async_deriveds.has(o) && (s(je, this).delete(o), W(o, ce), this.schedule(o));
644
644
  }
645
645
  }
646
646
  };
647
647
  for (const n of this.current.keys()) t(n);
648
- this.oncommit(() => e.discard()), S(I, e, jn).call(e), A = this, S(I, this, Wn).call(this);
648
+ this.oncommit(() => e.discard()), S(I, e, Wn).call(e), T = this, S(I, this, qn).call(this);
649
649
  }
650
650
  function Ft(e) {
651
- for (var t = 0; t < e.length; t += 1) Ni(e[t], s(ht, this), s(We, this));
652
- }
653
- function Ha() {
654
- for (let g = Nn; g !== null; g = s(ot, g)) {
655
- var e = g.id < this.id, t = [];
656
- for (const [c, [v, u]] of this.current) {
657
- if (g.current.has(c)) {
658
- var n = g.current.get(c)[0];
659
- if (e && v !== n) g.current.set(c, [v, u]);
651
+ for (var t = 0; t < e.length; t += 1) Wi(e[t], s(ht, this), s(je, this));
652
+ }
653
+ function Ja() {
654
+ for (let _ = Ln; _ !== null; _ = s(ot, _)) {
655
+ var e = _.id < this.id, t = [];
656
+ for (const [d, [p, c]] of this.current) {
657
+ if (_.current.has(d)) {
658
+ var n = _.current.get(d)[0];
659
+ if (e && p !== n) _.current.set(d, [p, c]);
660
660
  else continue;
661
661
  }
662
- t.push(c);
662
+ t.push(d);
663
663
  }
664
- if (e) for (const [c, v] of this.async_deriveds) {
665
- const u = g.async_deriveds.get(c);
666
- u && v.promise.then(u.resolve).catch(u.reject);
664
+ if (e) for (const [d, p] of this.async_deriveds) {
665
+ const c = _.async_deriveds.get(d);
666
+ c && p.promise.then(c.resolve).catch(c.reject);
667
667
  }
668
- var r = [...g.current.keys()].filter((c) => !g.current.get(c)[1]);
669
- if (!(!s(In, g) || r.length === 0)) {
670
- var i = r.filter((c) => !this.current.has(c));
668
+ var r = [..._.current.keys()].filter((d) => !_.current.get(d)[1]);
669
+ if (!(!s(Pn, _) || r.length === 0)) {
670
+ var i = r.filter((d) => !this.current.has(d));
671
671
  if (i.length === 0)
672
- e && g.discard();
672
+ e && _.discard();
673
673
  else if (t.length > 0) {
674
- if (e) for (const c of s(En, this)) g.unskip_effect(c, (v) => {
675
- (v.f & 4194320) !== 0 ? g.schedule(v) : S(I, g, Ft).call(g, [v]);
674
+ if (e) for (const d of s(Sn, this)) _.unskip_effect(d, (p) => {
675
+ (p.f & 4194320) !== 0 ? _.schedule(p) : S(I, _, Ft).call(_, [p]);
676
676
  });
677
- g.activate();
677
+ _.activate();
678
678
  var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
679
- for (var l of t) Bi(l, i, o, a);
679
+ for (var f of t) Yi(f, i, o, a);
680
680
  a = /* @__PURE__ */ new Map();
681
- var d = [...g.current].filter(([c, v]) => {
682
- const u = this.current.get(c);
683
- return u ? u[0] !== v[0] || u[1] !== v[1] : !0;
684
- }).map(([c]) => c);
685
- if (d.length > 0)
686
- for (const c of s(gr, this)) (c.f & 155648) === 0 && Pr(c, d, a) && ((c.f & 4194320) !== 0 ? (W(c, ue), g.schedule(c)) : s(ht, g).add(c));
687
- if (s(we, g).length > 0 && !s(Dt, g)) {
688
- g.apply();
689
- for (var _ of S(I, g, Hi).call(g)) S(I, g, Vi).call(g, _, [], []);
681
+ var u = [..._.current].filter(([d, p]) => {
682
+ const c = this.current.get(d);
683
+ return c ? c[0] !== p[0] || c[1] !== p[1] : !0;
684
+ }).map(([d]) => d);
685
+ if (u.length > 0)
686
+ for (const d of s(br, this)) (d.f & 155648) === 0 && qr(d, u, a) && ((d.f & 4194320) !== 0 ? (W(d, ce), _.schedule(d)) : s(ht, _).add(d));
687
+ if (s(me, _).length > 0 && !s(Ht, _)) {
688
+ _.apply();
689
+ for (var h of S(I, _, Ui).call(_)) S(I, _, Gi).call(_, h, [], []);
690
690
  }
691
- g.deactivate();
691
+ _.deactivate();
692
692
  }
693
693
  }
694
694
  }
695
695
  }
696
- function jn() {
696
+ function Wn() {
697
697
  if (this.linked) {
698
698
  var e = s(ft, this), t = s(ot, this);
699
- e === null ? Nn = t : k(ot, e, t), t === null ? yt = e : k(ft, t, e), this.linked = !1;
699
+ e === null ? Ln = t : k(ot, e, t), t === null ? yt = e : k(ft, t, e), this.linked = !1;
700
700
  }
701
701
  }
702
- function Et(e) {
703
- var t = zt;
704
- zt = !0;
702
+ function Dn(e) {
703
+ var t = Ut;
704
+ Ut = !0;
705
705
  try {
706
706
  var n;
707
- for (e && (A !== null && !A.is_fork && A.flush(), n = e()); ; ) {
708
- if (Ca(), A === null) return n;
709
- A.flush();
707
+ for (e && (T !== null && !T.is_fork && T.flush(), n = e()); ; ) {
708
+ if (Ha(), T === null) return n;
709
+ T.flush();
710
710
  }
711
711
  } finally {
712
- zt = t;
712
+ Ut = t;
713
713
  }
714
714
  }
715
- function Va() {
715
+ function Qa() {
716
716
  if (0) {
717
717
  var e;
718
- for (const n of A.current.keys()) for (const [r, i] of n.updated ?? [])
718
+ for (const n of T.current.keys()) for (const [r, i] of n.updated ?? [])
719
719
  var t;
720
720
  }
721
721
  try {
722
- $a();
722
+ La();
723
723
  } catch (n) {
724
- Ce(n, pr);
724
+ Le(n, gr);
725
725
  }
726
726
  }
727
- var xe = null;
728
- function oi(e) {
727
+ var Re = null;
728
+ function si(e) {
729
729
  var t = e.length;
730
730
  if (t !== 0) {
731
731
  for (var n = 0; n < t; ) {
732
732
  var r = e[n++];
733
- if ((r.f & 24576) === 0 && rn(r) && (xe = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && oo(r), xe?.size > 0)) {
734
- Re.clear();
735
- for (const i of xe) {
733
+ if ((r.f & 24576) === 0 && on(r) && (Re = /* @__PURE__ */ new Set(), Mt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && fo(r), Re?.size > 0)) {
734
+ Oe.clear();
735
+ for (const i of Re) {
736
736
  if ((i.f & 24576) !== 0) continue;
737
737
  const o = [i];
738
738
  let a = i.parent;
739
739
  for (; a !== null; )
740
- xe.has(a) && (xe.delete(a), o.push(a)), a = a.parent;
741
- for (let l = o.length - 1; l >= 0; l--) {
742
- const d = o[l];
743
- (d.f & 24576) === 0 && Rt(d);
740
+ Re.has(a) && (Re.delete(a), o.push(a)), a = a.parent;
741
+ for (let f = o.length - 1; f >= 0; f--) {
742
+ const u = o[f];
743
+ (u.f & 24576) === 0 && Mt(u);
744
744
  }
745
745
  }
746
- xe.clear();
746
+ Re.clear();
747
747
  }
748
748
  }
749
- xe = null;
749
+ Re = null;
750
750
  }
751
751
  }
752
- function Bi(e, t, n, r) {
752
+ function Yi(e, t, n, r) {
753
753
  if (!n.has(e) && (n.add(e), e.reactions !== null))
754
754
  for (const i of e.reactions) {
755
755
  const o = i.f;
756
- (o & 2) !== 0 ? Bi(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Pr(i, t, r) && (W(i, ue), Ir(i));
756
+ (o & 2) !== 0 ? Yi(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && qr(i, t, r) && (W(i, ce), Wr(i));
757
757
  }
758
758
  }
759
- function Pr(e, t, n) {
759
+ function qr(e, t, n) {
760
760
  const r = n.get(e);
761
761
  if (r !== void 0) return r;
762
762
  if (e.deps !== null) for (const i of e.deps) {
763
- if (Mn.call(t, i)) return !0;
764
- if ((i.f & 2) !== 0 && Pr(i, t, n))
763
+ if (xn.call(t, i)) return !0;
764
+ if ((i.f & 2) !== 0 && qr(i, t, n))
765
765
  return n.set(i, !0), !0;
766
766
  }
767
767
  return n.set(e, !1), !1;
768
768
  }
769
- function Ir(e) {
770
- A.schedule(e);
769
+ function Wr(e) {
770
+ T.schedule(e);
771
771
  }
772
- function zi(e, t) {
772
+ function Ki(e, t) {
773
773
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
774
- (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), W(e, ve);
774
+ (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), W(e, _e);
775
775
  for (var n = e.first; n !== null; )
776
- zi(n, t), n = n.next;
776
+ Ki(n, t), n = n.next;
777
777
  }
778
778
  }
779
- function Ui(e) {
780
- W(e, ve);
779
+ function Xi(e) {
780
+ W(e, _e);
781
781
  for (var t = e.first; t !== null; )
782
- Ui(t), t = t.next;
782
+ Xi(t), t = t.next;
783
783
  }
784
- var Dn = /* @__PURE__ */ new Set(), Re = /* @__PURE__ */ new Map();
785
- var Gi = !1;
784
+ var jn = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
785
+ var Zi = !1;
786
786
  function vt(e, t) {
787
787
  var n = {
788
788
  f: 0,
789
789
  v: e,
790
790
  reactions: null,
791
- equals: Mi,
791
+ equals: Li,
792
792
  rv: 0,
793
793
  wv: 0
794
794
  };
795
795
  return n;
796
796
  }
797
797
  // @__NO_SIDE_EFFECTS__
798
- function H(e, t) {
798
+ function F(e, t) {
799
799
  const n = vt(e, t);
800
- return lo(n), n;
800
+ return ho(n), n;
801
801
  }
802
802
  // @__NO_SIDE_EFFECTS__
803
- function Yi(e, t = !1, n = !0) {
803
+ function Ji(e, t = !1, n = !0) {
804
804
  const r = vt(e);
805
- if (t || (r.equals = Ri), zn && n && V !== null && V.l !== null) {
805
+ if (t || (r.equals = Ni), zn && n && V !== null && V.l !== null) {
806
806
  var i;
807
807
  ((i = V.l).s ?? (i.s = [])).push(r);
808
808
  }
809
809
  return r;
810
810
  }
811
811
  function O(e, t, n = !1) {
812
- R !== null && (!me || (R.f & 131072) !== 0) && nn() && (R.f & 4325394) !== 0 && (ke === null || !ke.has(e)) && xa();
812
+ M !== null && (!ye || (M.f & 131072) !== 0) && rn() && (M.f & 4325394) !== 0 && ($e === null || !$e.has(e)) && Wa();
813
813
  let r = n ? at(t) : t;
814
- return Mt(e, r, Pn);
814
+ return xt(e, r, Nn);
815
815
  }
816
- var rt = null, br = 0;
817
- function Mt(e, t, n = null) {
816
+ var rt = null, wr = 0;
817
+ function xt(e, t, n = null) {
818
818
  if (!e.equals(t)) {
819
- De ? Re.set(e, t) : Re.has(e) || Re.set(e, e.v);
819
+ Fe ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
820
820
  var r = pt.ensure();
821
821
  if (r.capture(e, t), (e.f & 2) !== 0) {
822
822
  const i = e;
823
- (e.f & 2048) !== 0 && Lr(i), te === null && Cr(i);
823
+ (e.f & 2048) !== 0 && Pr(i), ne === null && Lr(i);
824
824
  }
825
- e.wv = uo(), rt = null, br = 0, Ki(e, ue, n), rt = null, nn() && x !== null && (x.f & 1024) !== 0 && (x.f & 96) === 0 && (he === null ? rs([e]) : he.push(e)), !r.is_fork && Dn.size > 0 && !Gi && Ba();
825
+ e.wv = _o(), rt = null, wr = 0, Qi(e, ce, n), rt = null, rn() && A !== null && (A.f & 1024) !== 0 && (A.f & 96) === 0 && (ve === null ? hs([e]) : ve.push(e)), !r.is_fork && jn.size > 0 && !Zi && es();
826
826
  }
827
827
  return t;
828
828
  }
829
- function Ba() {
830
- Gi = !1;
831
- for (const e of Dn) {
829
+ function es() {
830
+ Zi = !1;
831
+ for (const e of jn) {
832
832
  (e.f & 1024) !== 0 && W(e, _t);
833
833
  let t;
834
834
  try {
835
- t = rn(e);
835
+ t = on(e);
836
836
  } catch {
837
837
  t = !0;
838
838
  }
839
- t && Rt(e);
839
+ t && Mt(e);
840
840
  }
841
- Dn.clear();
841
+ jn.clear();
842
842
  }
843
- function Ut(e) {
843
+ function Gt(e) {
844
844
  O(e, e.v + 1);
845
845
  }
846
- function Ki(e, t, n) {
846
+ function Qi(e, t, n) {
847
847
  var r = e.reactions;
848
848
  if (r !== null) {
849
- var i = nn(), o = r.length;
850
- if (br += o, br > 1e5 && rt === null && (rt = /* @__PURE__ */ new Set()), rt !== null) {
849
+ var i = rn(), o = r.length;
850
+ if (wr += o, wr > 1e5 && rt === null && (rt = /* @__PURE__ */ new Set()), rt !== null) {
851
851
  if (rt.has(e)) return;
852
852
  rt.add(e);
853
853
  }
854
854
  for (var a = 0; a < o; a++) {
855
- var l = r[a], d = l.f;
856
- if (!(!i && l === x)) {
857
- var _ = (d & ue) === 0;
858
- if (_ && W(l, t), (d & 131072) !== 0) Dn.add(l);
859
- else if ((d & 2) !== 0) {
860
- var g = l;
861
- te?.delete(g), Ki(g, _t, n);
862
- } else if (_) {
863
- var c = l;
864
- (d & 16) !== 0 && xe !== null && xe.add(c), n !== null ? n.push(c) : Ir(c);
855
+ var f = r[a], u = f.f;
856
+ if (!(!i && f === A)) {
857
+ var h = (u & ce) === 0;
858
+ if (h && W(f, t), (u & 131072) !== 0) jn.add(f);
859
+ else if ((u & 2) !== 0) {
860
+ var _ = f;
861
+ ne?.delete(_), Qi(_, _t, n);
862
+ } else if (h) {
863
+ var d = f;
864
+ (u & 16) !== 0 && Re !== null && Re.add(d), n !== null ? n.push(d) : Wr(d);
865
865
  }
866
866
  }
867
867
  }
868
868
  }
869
869
  }
870
- var za = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
870
+ var ts = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
871
871
  function at(e) {
872
- if (typeof e != "object" || e === null || Bt in e || Ti in e) return e;
873
- const t = Si(e);
874
- if (t !== na && t !== ra) return e;
875
- var n = /* @__PURE__ */ new Map(), r = $i(e), i = /* @__PURE__ */ H(0), o = null, a = ut, l = (c) => {
876
- if (ut === a) return c();
877
- var v = R, u = ut;
878
- pe(null), li(a);
879
- var b = c();
880
- return pe(v), li(u), b;
872
+ if (typeof e != "object" || e === null || zt in e || Ri in e) return e;
873
+ const t = xi(e);
874
+ if (t !== da && t !== ha) return e;
875
+ var n = /* @__PURE__ */ new Map(), r = Ai(e), i = /* @__PURE__ */ F(0), o = null, a = ut, f = (d) => {
876
+ if (ut === a) return d();
877
+ var p = M, c = ut;
878
+ ge(null), ui(a);
879
+ var b = d();
880
+ return ge(p), ui(c), b;
881
881
  };
882
- r && n.set("length", /* @__PURE__ */ H(e.length, o));
883
- var d = "";
884
- let _ = !1;
885
- function g(c) {
886
- if (!_) {
887
- _ = !0, d = c, ri(i, `${d} version`);
888
- for (const [v, u] of n) ri(u, Ua(d, v));
889
- _ = !1;
882
+ r && n.set("length", /* @__PURE__ */ F(e.length, o));
883
+ var u = "";
884
+ let h = !1;
885
+ function _(d) {
886
+ if (!h) {
887
+ h = !0, u = d, oi(i, `${u} version`);
888
+ for (const [p, c] of n) oi(c, ns(u, p));
889
+ h = !1;
890
890
  }
891
891
  }
892
892
  return new Proxy(e, {
893
- defineProperty(c, v, u) {
894
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ta();
895
- var b = n.get(v);
896
- return b === void 0 ? l(() => {
897
- var y = /* @__PURE__ */ H(u.value, o);
898
- return n.set(v, y), y;
899
- }) : O(b, u.value, !0), !0;
893
+ defineProperty(d, p, c) {
894
+ (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Ia();
895
+ var b = n.get(p);
896
+ return b === void 0 ? f(() => {
897
+ var y = /* @__PURE__ */ F(c.value, o);
898
+ return n.set(p, y), y;
899
+ }) : O(b, c.value, !0), !0;
900
900
  },
901
- deleteProperty(c, v) {
902
- var u = n.get(v);
903
- if (u === void 0) {
904
- if (v in c) {
905
- const b = l(() => /* @__PURE__ */ H(z, o));
906
- n.set(v, b), Ut(i);
901
+ deleteProperty(d, p) {
902
+ var c = n.get(p);
903
+ if (c === void 0) {
904
+ if (p in d) {
905
+ const b = f(() => /* @__PURE__ */ F(z, o));
906
+ n.set(p, b), Gt(i);
907
907
  }
908
908
  } else
909
- O(u, z), Ut(i);
909
+ O(c, z), Gt(i);
910
910
  return !0;
911
911
  },
912
- get(c, v, u) {
913
- if (v === Bt) return e;
914
- var b = n.get(v), y = v in c;
915
- if (b === void 0 && (!y || lt(c, v)?.writable) && (b = l(() => {
916
- var m = at(y ? c[v] : z), N = /* @__PURE__ */ H(m, o);
917
- return N;
918
- }), n.set(v, b)), b !== void 0) {
919
- var h = f(b);
920
- return h === z ? void 0 : h;
912
+ get(d, p, c) {
913
+ if (p === zt) return e;
914
+ var b = n.get(p), y = p in d;
915
+ if (b === void 0 && (!y || lt(d, p)?.writable) && (b = f(() => {
916
+ var m = at(y ? d[p] : z), L = /* @__PURE__ */ F(m, o);
917
+ return L;
918
+ }), n.set(p, b)), b !== void 0) {
919
+ var v = l(b);
920
+ return v === z ? void 0 : v;
921
921
  }
922
- return Reflect.get(c, v, u);
922
+ return Reflect.get(d, p, c);
923
923
  },
924
- getOwnPropertyDescriptor(c, v) {
925
- this.has?.(c, v);
926
- var u = Reflect.getOwnPropertyDescriptor(c, v), b = n.get(v);
924
+ getOwnPropertyDescriptor(d, p) {
925
+ this.has?.(d, p);
926
+ var c = Reflect.getOwnPropertyDescriptor(d, p), b = n.get(p);
927
927
  if (b !== void 0) {
928
- var y = f(b);
928
+ var y = l(b);
929
929
  if (y === z) return;
930
- if (u && "value" in u) u.value = y;
930
+ if (c && "value" in c) c.value = y;
931
931
  else return {
932
932
  enumerable: !0,
933
933
  configurable: !0,
@@ -935,93 +935,93 @@ function at(e) {
935
935
  writable: !0
936
936
  };
937
937
  }
938
- return u;
938
+ return c;
939
939
  },
940
- has(c, v) {
941
- if (v === Bt) return !0;
942
- var u = n.get(v), b = u !== void 0 && u.v !== z || Reflect.has(c, v);
943
- return (u !== void 0 || x !== null && (!b || lt(c, v)?.writable)) && (u === void 0 && (u = l(() => {
944
- var y = b ? at(c[v]) : z, h = /* @__PURE__ */ H(y, o);
945
- return h;
946
- }), n.set(v, u)), f(u) === z) ? !1 : b;
940
+ has(d, p) {
941
+ if (p === zt) return !0;
942
+ var c = n.get(p), b = c !== void 0 && c.v !== z || Reflect.has(d, p);
943
+ return (c !== void 0 || A !== null && (!b || lt(d, p)?.writable)) && (c === void 0 && (c = f(() => {
944
+ var y = b ? at(d[p]) : z, v = /* @__PURE__ */ F(y, o);
945
+ return v;
946
+ }), n.set(p, c)), l(c) === z) ? !1 : b;
947
947
  },
948
- set(c, v, u, b) {
949
- var y = n.get(v), h = v in c;
950
- if (r && v === "length") for (var m = u; m < y.v; m += 1) {
951
- var N = n.get(m + "");
952
- N !== void 0 ? O(N, z) : m in c && (N = l(() => /* @__PURE__ */ H(z, o)), n.set(m + "", N));
948
+ set(d, p, c, b) {
949
+ var y = n.get(p), v = p in d;
950
+ if (r && p === "length") for (var m = c; m < y.v; m += 1) {
951
+ var L = n.get(m + "");
952
+ L !== void 0 ? O(L, z) : m in d && (L = f(() => /* @__PURE__ */ F(z, o)), n.set(m + "", L));
953
953
  }
954
954
  if (y === void 0)
955
- (!h || lt(c, v)?.writable) && (y = l(() => /* @__PURE__ */ H(void 0, o)), O(y, at(u)), n.set(v, y));
955
+ (!v || lt(d, p)?.writable) && (y = f(() => /* @__PURE__ */ F(void 0, o)), O(y, at(c)), n.set(p, y));
956
956
  else {
957
- h = y.v !== z;
958
- var j = l(() => at(u));
959
- O(y, j);
957
+ v = y.v !== z;
958
+ var D = f(() => at(c));
959
+ O(y, D);
960
960
  }
961
- var E = Reflect.getOwnPropertyDescriptor(c, v);
962
- if (E?.set && E.set.call(b, u), !h) {
963
- if (r && typeof v == "string") {
964
- var D = n.get("length"), F = Number(v);
965
- Number.isInteger(F) && F >= D.v && O(D, F + 1);
961
+ var E = Reflect.getOwnPropertyDescriptor(d, p);
962
+ if (E?.set && E.set.call(b, c), !v) {
963
+ if (r && typeof p == "string") {
964
+ var H = n.get("length"), j = Number(p);
965
+ Number.isInteger(j) && j >= H.v && O(H, j + 1);
966
966
  }
967
- Ut(i);
967
+ Gt(i);
968
968
  }
969
969
  return !0;
970
970
  },
971
- ownKeys(c) {
972
- f(i);
973
- var v = Reflect.ownKeys(c).filter((y) => {
974
- var h = n.get(y);
975
- return h === void 0 || h.v !== z;
971
+ ownKeys(d) {
972
+ l(i);
973
+ var p = Reflect.ownKeys(d).filter((y) => {
974
+ var v = n.get(y);
975
+ return v === void 0 || v.v !== z;
976
976
  });
977
- for (var [u, b] of n) b.v !== z && !(u in c) && v.push(u);
978
- return v;
977
+ for (var [c, b] of n) b.v !== z && !(c in d) && p.push(c);
978
+ return p;
979
979
  },
980
980
  setPrototypeOf() {
981
- Aa();
981
+ qa();
982
982
  }
983
983
  });
984
984
  }
985
- function Ua(e, t) {
986
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : za.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
985
+ function ns(e, t) {
986
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : ts.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
987
987
  }
988
- var ai, Ga, Xi, Zi, Ji;
989
- function wr() {
990
- if (ai === void 0) {
991
- ai = window, Ga = document, Xi = /Firefox/.test(navigator.userAgent);
988
+ var li, rs, eo, to, no;
989
+ function mr() {
990
+ if (li === void 0) {
991
+ li = window, rs = document, eo = /Firefox/.test(navigator.userAgent);
992
992
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
993
- Zi = lt(t, "firstChild").get, Ji = lt(t, "nextSibling").get, ei(e) && (e[hr] = void 0, e[dr] = null, e[vr] = void 0, e.__e = void 0), ei(n) && (n[Sn] = void 0);
993
+ to = lt(t, "firstChild").get, no = lt(t, "nextSibling").get, ni(e) && (e[vr] = void 0, e[hr] = null, e[_r] = void 0, e.__e = void 0), ni(n) && (n[$n] = void 0);
994
994
  }
995
995
  }
996
- function le(e = "") {
996
+ function fe(e = "") {
997
997
  return document.createTextNode(e);
998
998
  }
999
999
  // @__NO_SIDE_EFFECTS__
1000
- function ae(e) {
1001
- return Zi.call(e);
1000
+ function se(e) {
1001
+ return to.call(e);
1002
1002
  }
1003
1003
  // @__NO_SIDE_EFFECTS__
1004
- function Ee(e) {
1005
- return Ji.call(e);
1004
+ function Te(e) {
1005
+ return no.call(e);
1006
1006
  }
1007
- function Tn(e, t) {
1008
- if (!M) return /* @__PURE__ */ ae(e);
1009
- var n = /* @__PURE__ */ ae(C);
1010
- if (n === null) n = C.appendChild(le());
1007
+ function En(e, t) {
1008
+ if (!x) return /* @__PURE__ */ se(e);
1009
+ var n = /* @__PURE__ */ se(C);
1010
+ if (n === null) n = C.appendChild(fe());
1011
1011
  else if (t && n.nodeType !== 3) {
1012
- var r = le();
1012
+ var r = fe();
1013
1013
  return n?.before(r), X(r), r;
1014
1014
  }
1015
1015
  return t && Yn(n), X(n), n;
1016
1016
  }
1017
1017
  function pn(e, t = !1) {
1018
- if (!M) {
1019
- var n = /* @__PURE__ */ ae(e);
1020
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ee(n) : n;
1018
+ if (!x) {
1019
+ var n = /* @__PURE__ */ se(e);
1020
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Te(n) : n;
1021
1021
  }
1022
1022
  if (t) {
1023
1023
  if (C?.nodeType !== 3) {
1024
- var r = le();
1024
+ var r = fe();
1025
1025
  return C?.before(r), X(r), r;
1026
1026
  }
1027
1027
  Yn(C);
@@ -1029,29 +1029,29 @@ function pn(e, t = !1) {
1029
1029
  return C;
1030
1030
  }
1031
1031
  function rr(e, t = !1) {
1032
- if (!M) return /* @__PURE__ */ ae(e);
1033
- var n = Tn(e, t);
1034
- return qt(e), n;
1032
+ if (!x) return /* @__PURE__ */ se(e);
1033
+ var n = En(e, t);
1034
+ return Wt(e), n;
1035
1035
  }
1036
- function Te(e, t = 1, n = !1) {
1037
- let r = M ? C : e;
1036
+ function xe(e, t = 1, n = !1) {
1037
+ let r = x ? C : e;
1038
1038
  for (var i; t--; )
1039
- i = r, r = /* @__PURE__ */ Ee(r);
1040
- if (!M) return r;
1039
+ i = r, r = /* @__PURE__ */ Te(r);
1040
+ if (!x) return r;
1041
1041
  if (n) {
1042
1042
  if (r?.nodeType !== 3) {
1043
- var o = le();
1043
+ var o = fe();
1044
1044
  return r === null ? i?.after(o) : r.before(o), X(o), o;
1045
1045
  }
1046
1046
  Yn(r);
1047
1047
  }
1048
1048
  return X(r), r;
1049
1049
  }
1050
- function Qi(e) {
1050
+ function ro(e) {
1051
1051
  e.textContent = "";
1052
1052
  }
1053
- function eo() {
1054
- return !Fe || xe !== null ? !1 : (x.f & xr) !== 0;
1053
+ function io() {
1054
+ return !Ve || Re !== null ? !1 : (A.f & Rr) !== 0;
1055
1055
  }
1056
1056
  function Gn(e, t, n) {
1057
1057
  return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
@@ -1062,15 +1062,15 @@ function Yn(e) {
1062
1062
  for (; t !== null && t.nodeType === 3; )
1063
1063
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1064
1064
  }
1065
- function Ya(e) {
1066
- var t = x;
1065
+ function is(e) {
1066
+ var t = A;
1067
1067
  if (t === null)
1068
- return R.f |= Cn, e;
1068
+ return M.f |= Rn, e;
1069
1069
  if ((t.f & 32768) === 0 && (t.f & 4) === 0)
1070
1070
  throw e;
1071
- Ce(e, t);
1071
+ Le(e, t);
1072
1072
  }
1073
- function Ce(e, t) {
1073
+ function Le(e, t) {
1074
1074
  if (!(t !== null && (t.f & 16384) !== 0)) {
1075
1075
  for (; t !== null; ) {
1076
1076
  if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
@@ -1087,21 +1087,21 @@ function Ce(e, t) {
1087
1087
  throw e;
1088
1088
  }
1089
1089
  }
1090
- function Ka(e) {
1091
- x === null && (R === null && ka(e), ya()), De && ma(e);
1090
+ function os(e) {
1091
+ A === null && (M === null && Oa(e), Ca()), Fe && Ra(e);
1092
1092
  }
1093
- function Xa(e, t) {
1093
+ function as(e, t) {
1094
1094
  var n = t.last;
1095
1095
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1096
1096
  }
1097
- function Le(e, t) {
1098
- var n = x;
1099
- n !== null && (n.f & 8192) !== 0 && (e |= Ar);
1097
+ function Pe(e, t) {
1098
+ var n = A;
1099
+ n !== null && (n.f & 8192) !== 0 && (e |= Mr);
1100
1100
  var r = {
1101
1101
  ctx: V,
1102
1102
  deps: null,
1103
1103
  nodes: null,
1104
- f: e | ue | 512,
1104
+ f: e | ce | 512,
1105
1105
  first: null,
1106
1106
  fn: t,
1107
1107
  last: null,
@@ -1113,429 +1113,429 @@ function Le(e, t) {
1113
1113
  wv: 0,
1114
1114
  ac: null
1115
1115
  };
1116
- A?.register_created_effect(r);
1116
+ T?.register_created_effect(r);
1117
1117
  var i = r;
1118
1118
  if ((e & 4) !== 0)
1119
- Xt !== null ? Xt.push(r) : pt.ensure().schedule(r);
1119
+ Zt !== null ? Zt.push(r) : pt.ensure().schedule(r);
1120
1120
  else if (t !== null) {
1121
1121
  try {
1122
- Rt(r);
1122
+ Mt(r);
1123
1123
  } catch (a) {
1124
- throw ne(r), a;
1124
+ throw re(r), a;
1125
1125
  }
1126
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Mr));
1126
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Cr));
1127
1127
  }
1128
- if (i !== null && (i.parent = n, n !== null && Xa(i, n), R !== null && (R.f & 2) !== 0 && (e & 64) === 0)) {
1129
- var o = R;
1128
+ if (i !== null && (i.parent = n, n !== null && as(i, n), M !== null && (M.f & 2) !== 0 && (e & 64) === 0)) {
1129
+ var o = M;
1130
1130
  (o.effects ?? (o.effects = [])).push(i);
1131
1131
  }
1132
1132
  return r;
1133
1133
  }
1134
- function qr() {
1135
- return R !== null && !me;
1134
+ function Dr() {
1135
+ return M !== null && !ye;
1136
1136
  }
1137
- function Za(e) {
1138
- const t = Le(8, null);
1139
- return W(t, ve), t.teardown = e, t;
1137
+ function ss(e) {
1138
+ const t = Pe(8, null);
1139
+ return W(t, _e), t.teardown = e, t;
1140
1140
  }
1141
1141
  function gn(e) {
1142
- Ka("$effect");
1143
- var t = x.f;
1144
- if (!R && (t & 32) !== 0 && V !== null && !V.i) {
1142
+ os("$effect");
1143
+ var t = A.f;
1144
+ if (!M && (t & 32) !== 0 && V !== null && !V.i) {
1145
1145
  var n = V;
1146
1146
  (n.e ?? (n.e = [])).push(e);
1147
- } else return to(e);
1147
+ } else return oo(e);
1148
1148
  }
1149
- function to(e) {
1150
- return Le(4 | fa, e);
1149
+ function oo(e) {
1150
+ return Pe(4 | wa, e);
1151
1151
  }
1152
- function Ja(e) {
1152
+ function ls(e) {
1153
1153
  pt.ensure();
1154
- const t = Le(64 | Ct, e);
1154
+ const t = Pe(64 | Rt, e);
1155
1155
  return () => {
1156
- ne(t);
1156
+ re(t);
1157
1157
  };
1158
1158
  }
1159
- function Qa(e) {
1159
+ function fs(e) {
1160
1160
  pt.ensure();
1161
- const t = Le(64 | Ct, e);
1161
+ const t = Pe(64 | Rt, e);
1162
1162
  return (n = {}) => new Promise((r) => {
1163
1163
  n.outro ? gt(t, () => {
1164
- ne(t), r(void 0);
1165
- }) : (ne(t), r(void 0));
1164
+ re(t), r(void 0);
1165
+ }) : (re(t), r(void 0));
1166
1166
  });
1167
1167
  }
1168
- function no(e) {
1169
- return Le(4, e);
1168
+ function ao(e) {
1169
+ return Pe(4, e);
1170
1170
  }
1171
- function es(e) {
1172
- return Le(ua | Ct, e);
1171
+ function us(e) {
1172
+ return Pe(ma | Rt, e);
1173
1173
  }
1174
- function Wr(e, t = 0) {
1175
- return Le(8 | t, e);
1174
+ function jr(e, t = 0) {
1175
+ return Pe(8 | t, e);
1176
1176
  }
1177
- function Ie(e, t = [], n = [], r = []) {
1178
- La(r, t, n, (i) => {
1179
- Le(8, () => {
1180
- e(...i.map(f));
1177
+ function We(e, t = [], n = [], r = []) {
1178
+ Va(r, t, n, (i) => {
1179
+ Pe(8, () => {
1180
+ e(...i.map(l));
1181
1181
  });
1182
1182
  });
1183
1183
  }
1184
- function jr(e, t = 0) {
1185
- var n = Le(16 | t, e);
1184
+ function Hr(e, t = 0) {
1185
+ var n = Pe(16 | t, e);
1186
1186
  return n;
1187
1187
  }
1188
- function _e(e) {
1189
- return Le(32 | Ct, e);
1188
+ function pe(e) {
1189
+ return Pe(32 | Rt, e);
1190
1190
  }
1191
- function ro(e) {
1191
+ function so(e) {
1192
1192
  var t = e.teardown;
1193
1193
  if (t !== null) {
1194
- const n = De, r = R;
1195
- si(!0), pe(null);
1194
+ const n = Fe, r = M;
1195
+ fi(!0), ge(null);
1196
1196
  try {
1197
1197
  t.call(null);
1198
1198
  } catch (i) {
1199
- Ce(i, e.parent);
1199
+ Le(i, e.parent);
1200
1200
  } finally {
1201
- si(n), pe(r);
1201
+ fi(n), ge(r);
1202
1202
  }
1203
1203
  }
1204
1204
  }
1205
- function Dr(e, t = !1) {
1205
+ function Fr(e, t = !1) {
1206
1206
  var n = e.first;
1207
1207
  for (e.first = e.last = null; n !== null; ) {
1208
1208
  const i = n.ac;
1209
1209
  i !== null && Un(() => {
1210
- i.abort(en);
1210
+ i.abort(tn);
1211
1211
  });
1212
1212
  var r = n.next;
1213
- (n.f & 64) !== 0 ? n.parent = null : ne(n, t), n = r;
1213
+ (n.f & 64) !== 0 ? n.parent = null : re(n, t), n = r;
1214
1214
  }
1215
1215
  }
1216
- function ts(e) {
1216
+ function cs(e) {
1217
1217
  for (var t = e.first; t !== null; ) {
1218
1218
  var n = t.next;
1219
- (t.f & 32) === 0 && ne(t), t = n;
1219
+ (t.f & 32) === 0 && re(t), t = n;
1220
1220
  }
1221
1221
  }
1222
- function ne(e, t = !0) {
1222
+ function re(e, t = !0) {
1223
1223
  var n = !1;
1224
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (io(e.nodes.start, e.nodes.end), n = !0), e.f |= ti, Dr(e, t && !n), Zt(e, 0);
1224
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (lo(e.nodes.start, e.nodes.end), n = !0), e.f |= ri, Fr(e, t && !n), Jt(e, 0);
1225
1225
  var r = e.nodes && e.nodes.t;
1226
1226
  if (r !== null) for (const o of r) o.stop();
1227
- ro(e), e.f ^= ti, e.f |= la;
1227
+ so(e), e.f ^= ri, e.f |= ba;
1228
1228
  var i = e.parent;
1229
- i !== null && i.first !== null && oo(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1229
+ i !== null && i.first !== null && fo(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1230
1230
  }
1231
- function io(e, t) {
1231
+ function lo(e, t) {
1232
1232
  for (; e !== null; ) {
1233
- var n = e === t ? null : /* @__PURE__ */ Ee(e);
1233
+ var n = e === t ? null : /* @__PURE__ */ Te(e);
1234
1234
  e.remove(), e = n;
1235
1235
  }
1236
1236
  }
1237
- function oo(e) {
1237
+ function fo(e) {
1238
1238
  var t = e.parent, n = e.prev, r = e.next;
1239
1239
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1240
1240
  }
1241
1241
  function gt(e, t, n = !0) {
1242
1242
  var r = [];
1243
- e.f |= 256, ao(e, r, !0);
1243
+ e.f |= 256, uo(e, r, !0);
1244
1244
  var i = () => {
1245
- n && ne(e), t && t();
1245
+ n && re(e), t && t();
1246
1246
  }, o = r.length;
1247
1247
  if (o > 0) {
1248
1248
  var a = () => --o || i();
1249
- for (var l of r) l.out(a);
1249
+ for (var f of r) f.out(a);
1250
1250
  } else i();
1251
1251
  }
1252
- function ao(e, t, n) {
1252
+ function uo(e, t, n) {
1253
1253
  if ((e.f & 8192) === 0) {
1254
- e.f ^= Ar;
1254
+ e.f ^= Mr;
1255
1255
  var r = e.nodes && e.nodes.t;
1256
1256
  if (r !== null)
1257
- for (const l of r) (l.is_global || n) && t.push(l);
1257
+ for (const f of r) (f.is_global || n) && t.push(f);
1258
1258
  for (var i = e.first; i !== null; ) {
1259
1259
  var o = i.next;
1260
1260
  if ((i.f & 64) === 0) {
1261
1261
  var a = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1262
- ao(i, t, a ? n : !1);
1262
+ uo(i, t, a ? n : !1);
1263
1263
  }
1264
1264
  i = o;
1265
1265
  }
1266
1266
  }
1267
1267
  }
1268
- function Fn(e) {
1269
- e.f &= -257, so(e, !0);
1268
+ function Hn(e) {
1269
+ e.f &= -257, co(e, !0);
1270
1270
  }
1271
- function so(e, t) {
1271
+ function co(e, t) {
1272
1272
  if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
1273
- e.f ^= Ar, (e.f & 1024) === 0 && (W(e, ue), pt.ensure().schedule(e));
1273
+ e.f ^= Mr, (e.f & 1024) === 0 && (W(e, ce), pt.ensure().schedule(e));
1274
1274
  for (var n = e.first; n !== null; ) {
1275
1275
  var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
1276
- so(n, i ? t : !1), n = r;
1276
+ co(n, i ? t : !1), n = r;
1277
1277
  }
1278
1278
  var o = e.nodes && e.nodes.t;
1279
1279
  if (o !== null)
1280
1280
  for (const a of o) (a.is_global || t) && a.in();
1281
1281
  }
1282
1282
  }
1283
- function Fr(e, t) {
1283
+ function Vr(e, t) {
1284
1284
  if (e.nodes)
1285
1285
  for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
1286
- var i = n === r ? null : /* @__PURE__ */ Ee(n);
1286
+ var i = n === r ? null : /* @__PURE__ */ Te(n);
1287
1287
  t.append(n), n = i;
1288
1288
  }
1289
1289
  }
1290
- var ns = null, An = !1, De = !1;
1291
- function si(e) {
1292
- De = e;
1290
+ var ds = null, Tn = !1, Fe = !1;
1291
+ function fi(e) {
1292
+ Fe = e;
1293
1293
  }
1294
- var R = null, me = !1;
1295
- function pe(e) {
1296
- R = e;
1294
+ var M = null, ye = !1;
1295
+ function ge(e) {
1296
+ M = e;
1297
1297
  }
1298
- var x = null;
1299
- function Oe(e) {
1300
- x = e;
1298
+ var A = null;
1299
+ function Ne(e) {
1300
+ A = e;
1301
1301
  }
1302
- var ke = null;
1303
- function lo(e) {
1304
- R !== null && (!Fe && (R.f & 2097152) !== 0 || (R.f & 2) !== 0) && (ke ?? (ke = /* @__PURE__ */ new Set())).add(e);
1302
+ var $e = null;
1303
+ function ho(e) {
1304
+ M !== null && (!Ve && (M.f & 2097152) !== 0 || (M.f & 2) !== 0) && ($e ?? ($e = /* @__PURE__ */ new Set())).add(e);
1305
1305
  }
1306
- var re = null, oe = 0, he = null;
1307
- function rs(e) {
1308
- he = e;
1306
+ var ie = null, ae = 0, ve = null;
1307
+ function hs(e) {
1308
+ ve = e;
1309
1309
  }
1310
- var fo = 1, st = 0, ut = st;
1311
- function li(e) {
1310
+ var vo = 1, st = 0, ut = st;
1311
+ function ui(e) {
1312
1312
  ut = e;
1313
1313
  }
1314
- function uo() {
1315
- return ++fo;
1314
+ function _o() {
1315
+ return ++vo;
1316
1316
  }
1317
- function rn(e) {
1317
+ function on(e) {
1318
1318
  var t = e.f;
1319
1319
  if ((t & 2048) !== 0) return !0;
1320
1320
  if ((t & 4096) !== 0) {
1321
1321
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1322
1322
  var o = n[i];
1323
- if (rn(o) && Ii(o), o.wv > e.wv) return !0;
1323
+ if (on(o) && ji(o), o.wv > e.wv) return !0;
1324
1324
  }
1325
- (t & 512) !== 0 && te === null && W(e, ve);
1325
+ (t & 512) !== 0 && ne === null && W(e, _e);
1326
1326
  }
1327
1327
  return !1;
1328
1328
  }
1329
- function co(e, t, n = !0) {
1329
+ function po(e, t, n = !0) {
1330
1330
  var r = e.reactions;
1331
- if (r !== null && !(!Fe && ke !== null && ke.has(e)))
1331
+ if (r !== null && !(!Ve && $e !== null && $e.has(e)))
1332
1332
  for (var i = 0; i < r.length; i++) {
1333
1333
  var o = r[i];
1334
- (o.f & 2) !== 0 ? co(o, t, !1) : t === o && (n ? W(o, ue) : (o.f & 1024) !== 0 && W(o, _t), Ir(o));
1334
+ (o.f & 2) !== 0 ? po(o, t, !1) : t === o && (n ? W(o, ce) : (o.f & 1024) !== 0 && W(o, _t), Wr(o));
1335
1335
  }
1336
1336
  }
1337
- function ho(e) {
1338
- var t = re, n = oe, r = he, i = R, o = ke, a = V, l = me, d = ut, _ = e.f;
1339
- re = null, oe = 0, he = null, R = (_ & 96) === 0 ? e : null, ke = null, xt(e.ctx), me = !1, ut = ++st, e.ac !== null && (Un(() => {
1340
- e.ac.abort(en);
1337
+ function go(e) {
1338
+ var t = ie, n = ae, r = ve, i = M, o = $e, a = V, f = ye, u = ut, h = e.f;
1339
+ ie = null, ae = 0, ve = null, M = (h & 96) === 0 ? e : null, $e = null, At(e.ctx), ye = !1, ut = ++st, e.ac !== null && (Un(() => {
1340
+ e.ac.abort(tn);
1341
1341
  }), e.ac = null);
1342
1342
  try {
1343
- e.f |= ni;
1344
- var g = e.fn, c = g();
1345
- e.f |= xr;
1346
- var v = fi(e);
1347
- if (nn() && he !== null && !me && v !== null && (e.f & 6146) === 0) for (var u = 0; u < he.length; u++) co(he[u], e);
1343
+ e.f |= ii;
1344
+ var _ = e.fn, d = _();
1345
+ e.f |= Rr;
1346
+ var p = ci(e);
1347
+ if (rn() && ve !== null && !ye && p !== null && (e.f & 6146) === 0) for (var c = 0; c < ve.length; c++) po(ve[c], e);
1348
1348
  if (i !== null && i !== e) {
1349
1349
  if (st++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = st;
1350
1350
  if (t !== null) for (const b of t) b.rv = st;
1351
- he !== null && (r === null ? r = he : r.push(...he));
1351
+ ve !== null && (r === null ? r = ve : r.push(...ve));
1352
1352
  }
1353
- return (e.f & 8388608) !== 0 && (e.f ^= Cn), c;
1353
+ return (e.f & 8388608) !== 0 && (e.f ^= Rn), d;
1354
1354
  } catch (b) {
1355
- return fi(e), Ya(b);
1355
+ return ci(e), is(b);
1356
1356
  } finally {
1357
- e.f ^= ni, re = t, oe = n, he = r, R = i, ke = o, xt(a), me = l, ut = d;
1357
+ e.f ^= ii, ie = t, ae = n, ve = r, M = i, $e = o, At(a), ye = f, ut = u;
1358
1358
  }
1359
1359
  }
1360
- function fi(e) {
1361
- var t = e.deps, n = A?.is_fork;
1362
- if (re !== null) {
1360
+ function ci(e) {
1361
+ var t = e.deps, n = T?.is_fork;
1362
+ if (ie !== null) {
1363
1363
  var r;
1364
- if (n || Zt(e, oe), t !== null && oe > 0)
1365
- for (t.length = oe + re.length, r = 0; r < re.length; r++) t[oe + r] = re[r];
1366
- else e.deps = t = re;
1367
- if (qr() && (e.f & 512) !== 0) for (r = oe; r < t.length; r++) {
1364
+ if (n || Jt(e, ae), t !== null && ae > 0)
1365
+ for (t.length = ae + ie.length, r = 0; r < ie.length; r++) t[ae + r] = ie[r];
1366
+ else e.deps = t = ie;
1367
+ if (Dr() && (e.f & 512) !== 0) for (r = ae; r < t.length; r++) {
1368
1368
  var i;
1369
1369
  ((i = t[r]).reactions ?? (i.reactions = [])).push(e);
1370
1370
  }
1371
- } else !n && t !== null && oe < t.length && (Zt(e, oe), t.length = oe);
1371
+ } else !n && t !== null && ae < t.length && (Jt(e, ae), t.length = ae);
1372
1372
  return t;
1373
1373
  }
1374
- function is(e, t) {
1374
+ function vs(e, t) {
1375
1375
  let n = t.reactions;
1376
1376
  if (n !== null) {
1377
- var r = ea.call(n, e);
1377
+ var r = ua.call(n, e);
1378
1378
  if (r !== -1) {
1379
1379
  var i = n.length - 1;
1380
1380
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1381
1381
  }
1382
1382
  }
1383
- if (n === null && (t.f & 2) !== 0 && (re === null || !Mn.call(re, t))) {
1383
+ if (n === null && (t.f & 2) !== 0 && (ie === null || !xn.call(ie, t))) {
1384
1384
  var o = t;
1385
- (o.f & 512) !== 0 && (o.f ^= 512), o.v !== z && Cr(o), o.ac !== null && Un(() => {
1386
- o.ac.abort(en), o.ac = null, W(o, ue);
1387
- }), Wa(o), Zt(o, 0);
1385
+ (o.f & 512) !== 0 && (o.f ^= 512), o.v !== z && Lr(o), o.ac !== null && Un(() => {
1386
+ o.ac.abort(tn), o.ac = null, W(o, ce);
1387
+ }), Ya(o), Jt(o, 0);
1388
1388
  }
1389
1389
  }
1390
- function Zt(e, t) {
1390
+ function Jt(e, t) {
1391
1391
  var n = e.deps;
1392
1392
  if (n !== null)
1393
- for (var r = t; r < n.length; r++) is(e, n[r]);
1393
+ for (var r = t; r < n.length; r++) vs(e, n[r]);
1394
1394
  }
1395
- function Rt(e) {
1395
+ function Mt(e) {
1396
1396
  var t = e.f;
1397
1397
  if ((t & 16384) === 0) {
1398
- W(e, ve);
1399
- var n = x, r = An;
1400
- if (x = e, An = (t & 96) === 0, 0)
1398
+ W(e, _e);
1399
+ var n = A, r = Tn;
1400
+ if (A = e, Tn = (t & 96) === 0, 0)
1401
1401
  var i, o;
1402
1402
  try {
1403
- (t & 16777232) !== 0 ? ts(e) : Dr(e), ro(e);
1404
- var a = ho(e);
1405
- if (e.teardown = typeof a == "function" ? a : null, e.wv = fo, 0)
1406
- for (var l of e.deps) ;
1403
+ (t & 16777232) !== 0 ? cs(e) : Fr(e), so(e);
1404
+ var a = go(e);
1405
+ if (e.teardown = typeof a == "function" ? a : null, e.wv = vo, 0)
1406
+ for (var f of e.deps) ;
1407
1407
  } finally {
1408
- An = r, x = n;
1408
+ Tn = r, A = n;
1409
1409
  }
1410
1410
  }
1411
1411
  }
1412
- async function os() {
1413
- if (Fe) return new Promise((e) => {
1412
+ async function _s() {
1413
+ if (Ve) return new Promise((e) => {
1414
1414
  requestAnimationFrame(() => e()), setTimeout(() => e());
1415
1415
  });
1416
- await Promise.resolve(), Et();
1416
+ await Promise.resolve(), Dn();
1417
1417
  }
1418
- function f(e) {
1418
+ function l(e) {
1419
1419
  var t = (e.f & 2) !== 0;
1420
- if (ns?.add(e), R !== null && !me && !(x !== null && (x.f & 16384) !== 0) && (ke === null || !ke.has(e))) {
1421
- var n = R.deps;
1422
- if ((R.f & 2097152) !== 0)
1423
- e.rv < st && (e.rv = st, re === null && n !== null && n[oe] === e ? oe++ : re === null ? re = [e] : re.push(e));
1420
+ if (ds?.add(e), M !== null && !ye && !(A !== null && (A.f & 16384) !== 0) && ($e === null || !$e.has(e))) {
1421
+ var n = M.deps;
1422
+ if ((M.f & 2097152) !== 0)
1423
+ e.rv < st && (e.rv = st, ie === null && n !== null && n[ae] === e ? ae++ : ie === null ? ie = [e] : ie.push(e));
1424
1424
  else {
1425
1425
  var r;
1426
- (r = R).deps ?? (r.deps = []), Mn.call(R.deps, e) || R.deps.push(e);
1426
+ (r = M).deps ?? (r.deps = []), xn.call(M.deps, e) || M.deps.push(e);
1427
1427
  var i = e.reactions;
1428
- i === null ? e.reactions = [R] : Mn.call(i, R) || i.push(R);
1428
+ i === null ? e.reactions = [M] : xn.call(i, M) || i.push(M);
1429
1429
  }
1430
1430
  }
1431
1431
  if (0) {
1432
- if (!me && reactivity_loss_tracker && A === null && _r === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1432
+ if (!ye && reactivity_loss_tracker && T === null && pr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1433
1433
  var o;
1434
- if (tracing_mode_flag && !me && tracing_expressions !== null && R !== null && tracing_expressions.reaction === R && !e.trace) {
1434
+ if (tracing_mode_flag && !ye && tracing_expressions !== null && M !== null && tracing_expressions.reaction === M && !e.trace) {
1435
1435
  if (o)
1436
- var a, l;
1436
+ var a, f;
1437
1437
  }
1438
1438
  }
1439
- if (De && Re.has(e)) return Re.get(e);
1439
+ if (Fe && Oe.has(e)) return Oe.get(e);
1440
1440
  if (t) {
1441
- var d = e;
1442
- if (De) {
1443
- var _ = d.v;
1444
- return ((d.f & 1024) === 0 && d.reactions !== null || _o(d)) && (_ = Lr(d)), Re.set(d, _), _;
1441
+ var u = e;
1442
+ if (Fe) {
1443
+ var h = u.v;
1444
+ return ((u.f & 1024) === 0 && u.reactions !== null || wo(u)) && (h = Pr(u)), Oe.set(u, h), h;
1445
1445
  }
1446
- var g = (d.f & 512) === 0 && !me && R !== null && (An || (R.f & 512) !== 0), c = (d.f & xr) === 0;
1447
- rn(d) && (g && (d.f |= 512), Ii(d)), g && !c && (qi(d), vo(d));
1446
+ var _ = (u.f & 512) === 0 && !ye && M !== null && (Tn || (M.f & 512) !== 0), d = (u.f & Rr) === 0;
1447
+ on(u) && (_ && (u.f |= 512), ji(u)), _ && !d && (Hi(u), bo(u));
1448
1448
  }
1449
- if (te?.has(e)) return te.get(e);
1449
+ if (ne?.has(e)) return ne.get(e);
1450
1450
  if ((e.f & 8388608) !== 0) throw e.v;
1451
1451
  return e.v;
1452
1452
  }
1453
- function vo(e) {
1453
+ function bo(e) {
1454
1454
  if (e.f |= 512, e.deps !== null)
1455
1455
  for (const t of e.deps)
1456
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (qi(t), vo(t));
1456
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Hi(t), bo(t));
1457
1457
  }
1458
- function _o(e) {
1458
+ function wo(e) {
1459
1459
  if (e.v === z) return !0;
1460
1460
  if (e.deps === null) return !1;
1461
1461
  for (const t of e.deps)
1462
- if (Re.has(t) || (t.f & 2) !== 0 && _o(t)) return !0;
1462
+ if (Oe.has(t) || (t.f & 2) !== 0 && wo(t)) return !0;
1463
1463
  return !1;
1464
1464
  }
1465
- function Jt(e) {
1466
- var t = me;
1465
+ function Qt(e) {
1466
+ var t = ye;
1467
1467
  try {
1468
- return me = !0, e();
1468
+ return ye = !0, e();
1469
1469
  } finally {
1470
- me = t;
1470
+ ye = t;
1471
1471
  }
1472
1472
  }
1473
- var Tt = /* @__PURE__ */ Symbol("events"), po = /* @__PURE__ */ new Set(), mr = /* @__PURE__ */ new Set();
1474
- function Ve(e, t, n) {
1475
- (t[Tt] ?? (t[Tt] = {}))[e] = n;
1473
+ var Et = /* @__PURE__ */ Symbol("events"), mo = /* @__PURE__ */ new Set(), yr = /* @__PURE__ */ new Set();
1474
+ function ze(e, t, n) {
1475
+ (t[Et] ?? (t[Et] = {}))[e] = n;
1476
1476
  }
1477
- function as(e) {
1478
- for (var t = 0; t < e.length; t++) po.add(e[t]);
1479
- for (var n of mr) n(e);
1477
+ function ps(e) {
1478
+ for (var t = 0; t < e.length; t++) mo.add(e[t]);
1479
+ for (var n of yr) n(e);
1480
1480
  }
1481
1481
  var ir = null, or = !1;
1482
- function ui(e) {
1482
+ function di(e) {
1483
1483
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
1484
1484
  ir = e, or || (or = !0, setTimeout(() => {
1485
1485
  or = !1, ir = null;
1486
1486
  }));
1487
- var a = 0, l = ir === e && e[Tt];
1488
- if (l) {
1489
- var d = i.indexOf(l);
1490
- if (d !== -1 && (t === document || t === window)) {
1491
- e[Tt] = t;
1487
+ var a = 0, f = ir === e && e[Et];
1488
+ if (f) {
1489
+ var u = i.indexOf(f);
1490
+ if (u !== -1 && (t === document || t === window)) {
1491
+ e[Et] = t;
1492
1492
  return;
1493
1493
  }
1494
- var _ = i.indexOf(t);
1495
- if (_ === -1) return;
1496
- d <= _ && (a = d);
1494
+ var h = i.indexOf(t);
1495
+ if (h === -1) return;
1496
+ u <= h && (a = u);
1497
1497
  }
1498
1498
  if (o = i[a] || e.target, o !== t) {
1499
- Gt(e, "currentTarget", {
1499
+ Yt(e, "currentTarget", {
1500
1500
  configurable: !0,
1501
1501
  get() {
1502
1502
  return o || n;
1503
1503
  }
1504
1504
  });
1505
- var g = R, c = x;
1506
- pe(null), Oe(null);
1505
+ var _ = M, d = A;
1506
+ ge(null), Ne(null);
1507
1507
  try {
1508
- for (var v, u = []; o !== null && o !== t; ) {
1508
+ for (var p, c = []; o !== null && o !== t; ) {
1509
1509
  try {
1510
- var b = o[Tt]?.[r];
1510
+ var b = o[Et]?.[r];
1511
1511
  b != null && (!o.disabled || e.target === o) && b.call(o, e);
1512
1512
  } catch (y) {
1513
- v ? u.push(y) : v = y;
1513
+ p ? c.push(y) : p = y;
1514
1514
  }
1515
1515
  if (e.cancelBubble) break;
1516
1516
  a++, o = a < i.length ? i[a] : null;
1517
1517
  }
1518
- if (v) {
1519
- for (let y of u) queueMicrotask(() => {
1518
+ if (p) {
1519
+ for (let y of c) queueMicrotask(() => {
1520
1520
  throw y;
1521
1521
  });
1522
- throw v;
1522
+ throw p;
1523
1523
  }
1524
1524
  } finally {
1525
- e[Tt] = t, delete e.currentTarget, pe(g), Oe(c);
1525
+ e[Et] = t, delete e.currentTarget, ge(_), Ne(d);
1526
1526
  }
1527
1527
  }
1528
1528
  }
1529
- var ss = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1530
- function ls(e) {
1531
- return ss?.createHTML(e) ?? e;
1529
+ var gs = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1530
+ function bs(e) {
1531
+ return gs?.createHTML(e) ?? e;
1532
1532
  }
1533
- function fs(e) {
1533
+ function ws(e) {
1534
1534
  var t = Gn("template");
1535
- return t.innerHTML = ls(e.replaceAll("<!>", "<!---->")), t.content;
1535
+ return t.innerHTML = bs(e.replaceAll("<!>", "<!---->")), t.content;
1536
1536
  }
1537
- function je(e, t) {
1538
- var n = x;
1537
+ function He(e, t) {
1538
+ var n = A;
1539
1539
  n.nodes === null && (n.nodes = {
1540
1540
  start: e,
1541
1541
  end: t,
@@ -1544,37 +1544,37 @@ function je(e, t) {
1544
1544
  });
1545
1545
  }
1546
1546
  // @__NO_SIDE_EFFECTS__
1547
- function Ne(e, t) {
1547
+ function Ie(e, t) {
1548
1548
  var n = (t & 1) !== 0, r = (t & 2) !== 0, i, o = !e.startsWith("<!>");
1549
1549
  return () => {
1550
- if (M)
1551
- return je(C, null), C;
1552
- i === void 0 && (i = fs(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ ae(i)));
1553
- var a = r || Xi ? document.importNode(i, !0) : i.cloneNode(!0);
1550
+ if (x)
1551
+ return He(C, null), C;
1552
+ i === void 0 && (i = ws(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ se(i)));
1553
+ var a = r || eo ? document.importNode(i, !0) : i.cloneNode(!0);
1554
1554
  if (n) {
1555
- var l = /* @__PURE__ */ ae(a), d = a.lastChild;
1556
- je(l, d);
1557
- } else je(a, a);
1555
+ var f = /* @__PURE__ */ se(a), u = a.lastChild;
1556
+ He(f, u);
1557
+ } else He(a, a);
1558
1558
  return a;
1559
1559
  };
1560
1560
  }
1561
- function us(e = "") {
1562
- if (!M) {
1563
- var t = le(e + "");
1564
- return je(t, t), t;
1561
+ function ms(e = "") {
1562
+ if (!x) {
1563
+ var t = fe(e + "");
1564
+ return He(t, t), t;
1565
1565
  }
1566
1566
  var n = C;
1567
- return n.nodeType !== 3 ? (n.before(n = le()), X(n)) : Yn(n), je(n, n), n;
1567
+ return n.nodeType !== 3 ? (n.before(n = fe()), X(n)) : Yn(n), He(n, n), n;
1568
1568
  }
1569
- function de(e, t) {
1570
- if (M) {
1571
- var n = x;
1572
- ((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), At();
1569
+ function he(e, t) {
1570
+ if (x) {
1571
+ var n = A;
1572
+ ((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), Tt();
1573
1573
  return;
1574
1574
  }
1575
1575
  e !== null && e.before(t);
1576
1576
  }
1577
- var cs = [
1577
+ var ys = [
1578
1578
  "allowfullscreen",
1579
1579
  "async",
1580
1580
  "autofocus",
@@ -1603,8 +1603,8 @@ var cs = [
1603
1603
  "defer",
1604
1604
  "disablepictureinpicture",
1605
1605
  "disableremoteplayback"
1606
- ], yl = [
1607
- ...cs,
1606
+ ], Il = [
1607
+ ...ys,
1608
1608
  "formNoValidate",
1609
1609
  "isMap",
1610
1610
  "noModule",
@@ -1619,17 +1619,17 @@ var cs = [
1619
1619
  "allowFullscreen",
1620
1620
  "disablePictureInPicture",
1621
1621
  "disableRemotePlayback"
1622
- ], ds = ["touchstart", "touchmove"];
1623
- function hs(e) {
1624
- return ds.includes(e);
1622
+ ], ks = ["touchstart", "touchmove"];
1623
+ function $s(e) {
1624
+ return ks.includes(e);
1625
1625
  }
1626
- var vs = [
1626
+ var Ss = [
1627
1627
  "$state",
1628
1628
  "$state.raw",
1629
1629
  "$derived",
1630
1630
  "$derived.by"
1631
- ], kl = [
1632
- ...vs,
1631
+ ], ql = [
1632
+ ...Ss,
1633
1633
  "$state.eager",
1634
1634
  "$state.snapshot",
1635
1635
  "$props",
@@ -1645,548 +1645,548 @@ var vs = [
1645
1645
  "$inspect.trace",
1646
1646
  "$host"
1647
1647
  ];
1648
- function _s(e) {
1648
+ function Es(e) {
1649
1649
  let t = 0, n = vt(0), r;
1650
1650
  return () => {
1651
- qr() && (f(n), Wr(() => (t === 0 && (r = Jt(() => e(() => Ut(n)))), t += 1, () => {
1652
- Ye(() => {
1653
- t -= 1, t === 0 && (r?.(), r = void 0, Ut(n));
1651
+ Dr() && (l(n), jr(() => (t === 0 && (r = Qt(() => e(() => Gt(n)))), t += 1, () => {
1652
+ Xe(() => {
1653
+ t -= 1, t === 0 && (r?.(), r = void 0, Gt(n));
1654
1654
  });
1655
1655
  })));
1656
1656
  };
1657
1657
  }
1658
- var ps = Mr | Ct;
1659
- function gs(e, t, n, r) {
1660
- new bs(e, t, n, r);
1658
+ var Ts = Cr | Rt;
1659
+ function As(e, t, n, r) {
1660
+ new xs(e, t, n, r);
1661
1661
  }
1662
- var $e = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakSet(), bs = class {
1662
+ var Se = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakSet(), xs = class {
1663
1663
  constructor(e, t, n, r) {
1664
- Nr(this, U), P(this, "parent", void 0), P(this, "is_pending", !1), P(this, "transform_error", void 0), $(this, $e, void 0), $(this, yr, M ? C : null), $(this, Me, void 0), $(this, Qt, void 0), $(this, se, void 0), $(this, Se, null), $(this, fe, null), $(this, ye, null), $(this, Ge, null), $(this, $t, 0), $(this, ct, 0), $(this, bn, !1), $(this, kr, /* @__PURE__ */ new Set()), $(this, $r, /* @__PURE__ */ new Set()), $(this, Qe, null), $(this, ci, _s(() => (k(Qe, this, vt(s($t, this))), () => {
1664
+ Ir(this, U), P(this, "parent", void 0), P(this, "is_pending", !1), P(this, "transform_error", void 0), $(this, Se, void 0), $(this, kr, x ? C : null), $(this, Ce, void 0), $(this, en, void 0), $(this, le, void 0), $(this, Ee, null), $(this, ue, null), $(this, ke, null), $(this, Ke, null), $(this, $t, 0), $(this, ct, 0), $(this, bn, !1), $(this, $r, /* @__PURE__ */ new Set()), $(this, Sr, /* @__PURE__ */ new Set()), $(this, Qe, null), $(this, hi, Es(() => (k(Qe, this, vt(s($t, this))), () => {
1665
1665
  k(Qe, this, null);
1666
- }))), k($e, this, e), k(Me, this, t), k(Qt, this, (i) => {
1667
- var o = x;
1666
+ }))), k(Se, this, e), k(Ce, this, t), k(en, this, (i) => {
1667
+ var o = A;
1668
1668
  o.b = this, o.f |= 128, n(i);
1669
- }), this.parent = x.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), k(se, this, jr(() => {
1670
- if (M) {
1671
- const i = s(yr, this);
1672
- At();
1669
+ }), this.parent = A.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), k(le, this, Hr(() => {
1670
+ if (x) {
1671
+ const i = s(kr, this);
1672
+ Tt();
1673
1673
  const o = i.data === "[!";
1674
1674
  if (i.data.startsWith("[?")) {
1675
1675
  const a = JSON.parse(i.data.slice(2));
1676
- S(U, this, ms).call(this, a);
1677
- } else o ? S(U, this, ys).call(this) : S(U, this, ws).call(this);
1678
- } else S(U, this, bo).call(this);
1679
- }, ps)), M && k($e, this, C);
1676
+ S(U, this, Rs).call(this, a);
1677
+ } else o ? S(U, this, Cs).call(this) : S(U, this, Ms).call(this);
1678
+ } else S(U, this, ko).call(this);
1679
+ }, Ts)), x && k(Se, this, C);
1680
1680
  }
1681
1681
  defer_effect(e) {
1682
- Ni(e, s(kr, this), s($r, this));
1682
+ Wi(e, s($r, this), s(Sr, this));
1683
1683
  }
1684
1684
  is_rendered() {
1685
1685
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
1686
1686
  }
1687
1687
  has_pending_snippet() {
1688
- return !!s(Me, this).pending;
1688
+ return !!s(Ce, this).pending;
1689
1689
  }
1690
1690
  update_pending_count(e, t) {
1691
- S(U, this, wo).call(this, e, t), k($t, this, s($t, this) + e), !(!s(Qe, this) || s(bn, this)) && (k(bn, this, !0), Ye(() => {
1692
- k(bn, this, !1), s(Qe, this) && Mt(s(Qe, this), s($t, this));
1691
+ S(U, this, $o).call(this, e, t), k($t, this, s($t, this) + e), !(!s(Qe, this) || s(bn, this)) && (k(bn, this, !0), Xe(() => {
1692
+ k(bn, this, !1), s(Qe, this) && xt(s(Qe, this), s($t, this));
1693
1693
  }));
1694
1694
  }
1695
1695
  get_effect_pending() {
1696
- return s(ci, this).call(this), f(s(Qe, this));
1696
+ return s(hi, this).call(this), l(s(Qe, this));
1697
1697
  }
1698
1698
  error(e) {
1699
- if (!s(Me, this).onerror && !s(Me, this).failed) throw e;
1700
- A?.is_fork ? (s(Se, this) && A.skip_effect(s(Se, this)), s(fe, this) && A.skip_effect(s(fe, this)), s(ye, this) && A.skip_effect(s(ye, this)), A.oncommit(() => {
1701
- S(U, this, di).call(this, e);
1702
- })) : S(U, this, di).call(this, e);
1699
+ if (!s(Ce, this).onerror && !s(Ce, this).failed) throw e;
1700
+ T?.is_fork ? (s(Ee, this) && T.skip_effect(s(Ee, this)), s(ue, this) && T.skip_effect(s(ue, this)), s(ke, this) && T.skip_effect(s(ke, this)), T.oncommit(() => {
1701
+ S(U, this, vi).call(this, e);
1702
+ })) : S(U, this, vi).call(this, e);
1703
1703
  }
1704
1704
  };
1705
- function ws() {
1705
+ function Ms() {
1706
1706
  try {
1707
- k(Se, this, _e(() => s(Qt, this).call(this, s($e, this))));
1707
+ k(Ee, this, pe(() => s(en, this).call(this, s(Se, this))));
1708
1708
  } catch (e) {
1709
1709
  this.error(e);
1710
1710
  }
1711
1711
  }
1712
- function ms(e) {
1713
- const t = s(Me, this).failed, { reset: n, invoke_onerror: r } = S(U, this, go).call(this, e);
1714
- Ye(r), t && k(ye, this, _e(() => {
1715
- t(s($e, this), () => e, () => n);
1712
+ function Rs(e) {
1713
+ const t = s(Ce, this).failed, { reset: n, invoke_onerror: r } = S(U, this, yo).call(this, e);
1714
+ Xe(r), t && k(ke, this, pe(() => {
1715
+ t(s(Se, this), () => e, () => n);
1716
1716
  }));
1717
1717
  }
1718
- function go(e) {
1718
+ function yo(e) {
1719
1719
  var t = !1, n = !1;
1720
1720
  const r = () => {
1721
1721
  if (t) {
1722
- _a();
1722
+ Ea();
1723
1723
  return;
1724
1724
  }
1725
- t = !0, n && Ma(), s(ye, this) !== null && gt(s(ye, this), () => {
1726
- k(ye, this, null);
1727
- }), S(U, this, Hr).call(this, () => {
1728
- S(U, this, bo).call(this);
1725
+ t = !0, n && Da(), s(ke, this) !== null && gt(s(ke, this), () => {
1726
+ k(ke, this, null);
1727
+ }), S(U, this, Br).call(this, () => {
1728
+ S(U, this, ko).call(this);
1729
1729
  });
1730
1730
  };
1731
1731
  return {
1732
1732
  reset: r,
1733
1733
  invoke_onerror: () => {
1734
1734
  try {
1735
- n = !0, s(Me, this).onerror?.(e, r), n = !1;
1735
+ n = !0, s(Ce, this).onerror?.(e, r), n = !1;
1736
1736
  } catch (o) {
1737
- Ce(o, s(se, this) && s(se, this).parent);
1737
+ Le(o, s(le, this) && s(le, this).parent);
1738
1738
  }
1739
1739
  }
1740
1740
  };
1741
1741
  }
1742
- function ys() {
1743
- const e = s(Me, this).pending;
1744
- e && (this.is_pending = !0, k(fe, this, _e(() => e(s($e, this)))), Ye(() => {
1745
- var t = k(Ge, this, document.createDocumentFragment()), n = le(), r = !1;
1746
- if (t.append(n), k(Se, this, S(U, this, Hr).call(this, () => {
1742
+ function Cs() {
1743
+ const e = s(Ce, this).pending;
1744
+ e && (this.is_pending = !0, k(ue, this, pe(() => e(s(Se, this)))), Xe(() => {
1745
+ var t = k(Ke, this, document.createDocumentFragment()), n = fe(), r = !1;
1746
+ if (t.append(n), k(Ee, this, S(U, this, Br).call(this, () => {
1747
1747
  try {
1748
- return _e(() => s(Qt, this).call(this, n));
1748
+ return pe(() => s(en, this).call(this, n));
1749
1749
  } catch (i) {
1750
1750
  try {
1751
1751
  this.error(i), r = !0;
1752
1752
  } catch (o) {
1753
- Ce(o, s(se, this).parent);
1753
+ Le(o, s(le, this).parent);
1754
1754
  }
1755
1755
  return null;
1756
1756
  }
1757
- })), s(Se, this) === null) {
1758
- k(Ge, this, null), r && S(U, this, Hn).call(this, A);
1757
+ })), s(Ee, this) === null) {
1758
+ k(Ke, this, null), r && S(U, this, Fn).call(this, T);
1759
1759
  return;
1760
1760
  }
1761
- s(ct, this) === 0 && (s($e, this).before(t), k(Ge, this, null), gt(s(fe, this), () => {
1762
- k(fe, this, null);
1763
- }), S(U, this, Hn).call(this, A));
1761
+ s(ct, this) === 0 && (s(Se, this).before(t), k(Ke, this, null), gt(s(ue, this), () => {
1762
+ k(ue, this, null);
1763
+ }), S(U, this, Fn).call(this, T));
1764
1764
  }));
1765
1765
  }
1766
- function bo() {
1766
+ function ko() {
1767
1767
  try {
1768
- if (this.is_pending = this.has_pending_snippet(), k(ct, this, 0), k($t, this, 0), k(Se, this, _e(() => {
1769
- s(Qt, this).call(this, s($e, this));
1768
+ if (this.is_pending = this.has_pending_snippet(), k(ct, this, 0), k($t, this, 0), k(Ee, this, pe(() => {
1769
+ s(en, this).call(this, s(Se, this));
1770
1770
  })), s(ct, this) > 0) {
1771
- var e = k(Ge, this, document.createDocumentFragment());
1772
- Fr(s(Se, this), e);
1773
- const t = s(Me, this).pending;
1774
- k(fe, this, _e(() => t(s($e, this))));
1775
- } else S(U, this, Hn).call(this, A);
1771
+ var e = k(Ke, this, document.createDocumentFragment());
1772
+ Vr(s(Ee, this), e);
1773
+ const t = s(Ce, this).pending;
1774
+ k(ue, this, pe(() => t(s(Se, this))));
1775
+ } else S(U, this, Fn).call(this, T);
1776
1776
  } catch (t) {
1777
1777
  this.error(t);
1778
1778
  }
1779
1779
  }
1780
- function Hn(e) {
1781
- this.is_pending = !1, e.transfer_effects(s(kr, this), s($r, this));
1780
+ function Fn(e) {
1781
+ this.is_pending = !1, e.transfer_effects(s($r, this), s(Sr, this));
1782
1782
  }
1783
- function Hr(e) {
1784
- var t = x, n = R, r = V;
1785
- Oe(s(se, this)), pe(s(se, this)), xt(s(se, this).ctx);
1783
+ function Br(e) {
1784
+ var t = A, n = M, r = V;
1785
+ Ne(s(le, this)), ge(s(le, this)), At(s(le, this).ctx);
1786
1786
  try {
1787
1787
  return pt.ensure(), e();
1788
1788
  } finally {
1789
- Oe(t), pe(n), xt(r);
1789
+ Ne(t), ge(n), At(r);
1790
1790
  }
1791
1791
  }
1792
- function wo(e, t) {
1792
+ function $o(e, t) {
1793
1793
  if (!this.has_pending_snippet()) {
1794
1794
  if (this.parent) {
1795
1795
  var n;
1796
- S(U, n = this.parent, wo).call(n, e, t);
1796
+ S(U, n = this.parent, $o).call(n, e, t);
1797
1797
  }
1798
1798
  return;
1799
1799
  }
1800
- k(ct, this, s(ct, this) + e), s(ct, this) === 0 && (S(U, this, Hn).call(this, t), s(fe, this) && gt(s(fe, this), () => {
1801
- k(fe, this, null);
1802
- }), s(Ge, this) && (s($e, this).before(s(Ge, this)), k(Ge, this, null)));
1800
+ k(ct, this, s(ct, this) + e), s(ct, this) === 0 && (S(U, this, Fn).call(this, t), s(ue, this) && gt(s(ue, this), () => {
1801
+ k(ue, this, null);
1802
+ }), s(Ke, this) && (s(Se, this).before(s(Ke, this)), k(Ke, this, null)));
1803
1803
  }
1804
- function di(e) {
1805
- s(Se, this) && (ne(s(Se, this)), k(Se, this, null)), s(fe, this) && (ne(s(fe, this)), k(fe, this, null)), s(ye, this) && (ne(s(ye, this)), k(ye, this, null)), M && (X(s(yr, this)), pa(), X(On()));
1806
- let t = s(Me, this).failed;
1804
+ function vi(e) {
1805
+ s(Ee, this) && (re(s(Ee, this)), k(Ee, this, null)), s(ue, this) && (re(s(ue, this)), k(ue, this, null)), s(ke, this) && (re(s(ke, this)), k(ke, this, null)), x && (X(s(kr, this)), Ta(), X(Cn()));
1806
+ let t = s(Ce, this).failed;
1807
1807
  const n = (r) => {
1808
- const { reset: i, invoke_onerror: o } = S(U, this, go).call(this, r);
1809
- o(), t && k(ye, this, S(U, this, Hr).call(this, () => {
1808
+ const { reset: i, invoke_onerror: o } = S(U, this, yo).call(this, r);
1809
+ o(), t && k(ke, this, S(U, this, Br).call(this, () => {
1810
1810
  try {
1811
- return _e(() => {
1812
- var a = x;
1813
- a.b = this, a.f |= 128, t(s($e, this), () => r, () => i);
1811
+ return pe(() => {
1812
+ var a = A;
1813
+ a.b = this, a.f |= 128, t(s(Se, this), () => r, () => i);
1814
1814
  });
1815
1815
  } catch (a) {
1816
- return Ce(a, s(se, this).parent), null;
1816
+ return Le(a, s(le, this).parent), null;
1817
1817
  }
1818
1818
  }));
1819
1819
  };
1820
- Ye(() => {
1820
+ Xe(() => {
1821
1821
  var r;
1822
1822
  try {
1823
1823
  r = this.transform_error(e);
1824
1824
  } catch (i) {
1825
- Ce(i, s(se, this) && s(se, this).parent);
1825
+ Le(i, s(le, this) && s(le, this).parent);
1826
1826
  return;
1827
1827
  }
1828
- r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(n, (i) => Ce(i, s(se, this) && s(se, this).parent)) : n(r);
1828
+ r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(n, (i) => Le(i, s(le, this) && s(le, this).parent)) : n(r);
1829
1829
  });
1830
1830
  }
1831
- var hi = !0;
1831
+ var _i = !0;
1832
1832
  function wn(e, t) {
1833
1833
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1834
- n !== (e[Sn] ?? (e[Sn] = e.nodeValue)) && (e[Sn] = n, e.nodeValue = `${n}`);
1834
+ n !== (e[$n] ?? (e[$n] = e.nodeValue)) && (e[$n] = n, e.nodeValue = `${n}`);
1835
1835
  }
1836
- function mo(e, t) {
1837
- return yo(e, t);
1836
+ function So(e, t) {
1837
+ return Eo(e, t);
1838
1838
  }
1839
- function ks(e, t) {
1840
- wr(), t.intro = t.intro ?? !1;
1841
- const n = t.target, r = M, i = C;
1839
+ function Os(e, t) {
1840
+ mr(), t.intro = t.intro ?? !1;
1841
+ const n = t.target, r = x, i = C;
1842
1842
  try {
1843
- for (var o = /* @__PURE__ */ ae(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Ee(o);
1843
+ for (var o = /* @__PURE__ */ se(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
1844
1844
  if (!o) throw dt;
1845
- qe(!0), X(o);
1846
- const a = yo(e, {
1845
+ De(!0), X(o);
1846
+ const a = Eo(e, {
1847
1847
  ...t,
1848
1848
  anchor: o
1849
1849
  });
1850
- return qe(!1), a;
1850
+ return De(!1), a;
1851
1851
  } catch (a) {
1852
1852
  if (a instanceof Error && a.message.split(`
1853
- `).some((l) => l.startsWith("https://svelte.dev/e/"))) throw a;
1854
- return a !== dt && console.warn("Failed to hydrate: ", a), t.recover === !1 && Sa(), wr(), Qi(n), qe(!1), mo(e, t);
1853
+ `).some((f) => f.startsWith("https://svelte.dev/e/"))) throw a;
1854
+ return a !== dt && console.warn("Failed to hydrate: ", a), t.recover === !1 && Na(), mr(), ro(n), De(!1), So(e, t);
1855
1855
  } finally {
1856
- qe(r), X(i);
1856
+ De(r), X(i);
1857
1857
  }
1858
1858
  }
1859
1859
  var mn = /* @__PURE__ */ new Map();
1860
- function yo(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: a = !0, transformError: l }) {
1861
- wr();
1862
- var d = void 0, _ = Qa(() => {
1863
- var g = n ?? t.appendChild(le());
1864
- gs(g, { pending: () => {
1865
- } }, (u) => {
1866
- Ci({});
1860
+ function Eo(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: a = !0, transformError: f }) {
1861
+ mr();
1862
+ var u = void 0, h = fs(() => {
1863
+ var _ = n ?? t.appendChild(fe());
1864
+ As(_, { pending: () => {
1865
+ } }, (c) => {
1866
+ Pi({});
1867
1867
  var b = V;
1868
- if (o && (b.c = o), i && (r.$$events = i), M && je(u, null), hi = a, d = e(u, r) || Rr(), hi = !0, M && (x.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
1869
- throw tn(), dt;
1870
- Oi();
1871
- }, l);
1872
- var c = /* @__PURE__ */ new Set(), v = (u) => {
1873
- for (var b = 0; b < u.length; b++) {
1874
- var y = u[b];
1875
- if (!c.has(y)) {
1876
- c.add(y);
1877
- var h = hs(y);
1878
- for (const j of [t, document]) {
1879
- var m = mn.get(j);
1880
- m === void 0 && (m = /* @__PURE__ */ new Map(), mn.set(j, m));
1881
- var N = m.get(y);
1882
- N === void 0 ? (j.addEventListener(y, ui, { passive: h }), m.set(y, 1)) : m.set(y, N + 1);
1868
+ if (o && (b.c = o), i && (r.$$events = i), x && He(c, null), _i = a, u = e(c, r) || Or(), _i = !0, x && (A.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
1869
+ throw nn(), dt;
1870
+ Ii();
1871
+ }, f);
1872
+ var d = /* @__PURE__ */ new Set(), p = (c) => {
1873
+ for (var b = 0; b < c.length; b++) {
1874
+ var y = c[b];
1875
+ if (!d.has(y)) {
1876
+ d.add(y);
1877
+ var v = $s(y);
1878
+ for (const D of [t, document]) {
1879
+ var m = mn.get(D);
1880
+ m === void 0 && (m = /* @__PURE__ */ new Map(), mn.set(D, m));
1881
+ var L = m.get(y);
1882
+ L === void 0 ? (D.addEventListener(y, di, { passive: v }), m.set(y, 1)) : m.set(y, L + 1);
1883
1883
  }
1884
1884
  }
1885
1885
  }
1886
1886
  };
1887
- return v(Bn(po)), mr.add(v), () => {
1888
- for (var u of c) for (const h of [t, document]) {
1889
- var b = mn.get(h), y = b.get(u);
1890
- --y == 0 ? (h.removeEventListener(u, ui), b.delete(u), b.size === 0 && mn.delete(h)) : b.set(u, y);
1887
+ return p(Bn(mo)), yr.add(p), () => {
1888
+ for (var c of d) for (const v of [t, document]) {
1889
+ var b = mn.get(v), y = b.get(c);
1890
+ --y == 0 ? (v.removeEventListener(c, di), b.delete(c), b.size === 0 && mn.delete(v)) : b.set(c, y);
1891
1891
  }
1892
- mr.delete(v), g !== n && g.parentNode?.removeChild(g);
1892
+ yr.delete(p), _ !== n && _.parentNode?.removeChild(_);
1893
1893
  };
1894
1894
  });
1895
- return Sr.set(d, _), d;
1895
+ return Er.set(u, h), u;
1896
1896
  }
1897
- var Sr = /* @__PURE__ */ new WeakMap();
1898
- function $s(e, t) {
1899
- const n = Sr.get(e);
1900
- return n ? (Sr.delete(e), n(t)) : Promise.resolve();
1897
+ var Er = /* @__PURE__ */ new WeakMap();
1898
+ function Ls(e, t) {
1899
+ const n = Er.get(e);
1900
+ return n ? (Er.delete(e), n(t)) : Promise.resolve();
1901
1901
  }
1902
- var Pe = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), Ss = class {
1902
+ var qe = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), Ns = class {
1903
1903
  constructor(e, t = !0) {
1904
- P(this, "anchor", void 0), $(this, Pe, /* @__PURE__ */ new Map()), $(this, Be, /* @__PURE__ */ new Map()), $(this, be, /* @__PURE__ */ new Map()), $(this, Pt, /* @__PURE__ */ new Set()), $(this, ar, !0), $(this, sr, (n) => {
1905
- if (s(Pe, this).has(n)) {
1906
- var r = s(Pe, this).get(n), i = s(Be, this).get(r);
1904
+ P(this, "anchor", void 0), $(this, qe, /* @__PURE__ */ new Map()), $(this, Ue, /* @__PURE__ */ new Map()), $(this, we, /* @__PURE__ */ new Map()), $(this, It, /* @__PURE__ */ new Set()), $(this, ar, !0), $(this, sr, (n) => {
1905
+ if (s(qe, this).has(n)) {
1906
+ var r = s(qe, this).get(n), i = s(Ue, this).get(r);
1907
1907
  if (i)
1908
- Fn(i), s(Pt, this).delete(r);
1908
+ Hn(i), s(It, this).delete(r);
1909
1909
  else {
1910
- var o = s(be, this).get(r);
1911
- o && (Fn(o.effect), s(Be, this).set(r, o.effect), s(be, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1910
+ var o = s(we, this).get(r);
1911
+ o && (Hn(o.effect), s(Ue, this).set(r, o.effect), s(we, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1912
1912
  }
1913
- for (const [a, l] of s(Pe, this)) {
1914
- if (s(Pe, this).delete(a), a === n) break;
1915
- const d = s(be, this).get(l);
1916
- d && (ne(d.effect), s(be, this).delete(l));
1913
+ for (const [a, f] of s(qe, this)) {
1914
+ if (s(qe, this).delete(a), a === n) break;
1915
+ const u = s(we, this).get(f);
1916
+ u && (re(u.effect), s(we, this).delete(f));
1917
1917
  }
1918
- for (const [a, l] of s(Be, this)) {
1919
- if (a === r || s(Pt, this).has(a)) continue;
1920
- const d = () => {
1921
- if (Array.from(s(Pe, this).values()).includes(a)) {
1922
- var _ = document.createDocumentFragment();
1923
- Fr(l, _), _.append(le()), s(be, this).set(a, {
1924
- effect: l,
1925
- fragment: _
1918
+ for (const [a, f] of s(Ue, this)) {
1919
+ if (a === r || s(It, this).has(a)) continue;
1920
+ const u = () => {
1921
+ if (Array.from(s(qe, this).values()).includes(a)) {
1922
+ var h = document.createDocumentFragment();
1923
+ Vr(f, h), h.append(fe()), s(we, this).set(a, {
1924
+ effect: f,
1925
+ fragment: h
1926
1926
  });
1927
- } else ne(l);
1928
- s(Pt, this).delete(a), s(Be, this).delete(a);
1927
+ } else re(f);
1928
+ s(It, this).delete(a), s(Ue, this).delete(a);
1929
1929
  };
1930
- s(ar, this) || !i ? (s(Pt, this).add(a), gt(l, d, !1)) : d();
1930
+ s(ar, this) || !i ? (s(It, this).add(a), gt(f, u, !1)) : u();
1931
1931
  }
1932
1932
  }
1933
- }), $(this, vi, (n) => {
1934
- s(Pe, this).delete(n);
1935
- const r = Array.from(s(Pe, this).values());
1936
- for (const [i, o] of s(be, this)) r.includes(i) || (ne(o.effect), s(be, this).delete(i));
1933
+ }), $(this, pi, (n) => {
1934
+ s(qe, this).delete(n);
1935
+ const r = Array.from(s(qe, this).values());
1936
+ for (const [i, o] of s(we, this)) r.includes(i) || (re(o.effect), s(we, this).delete(i));
1937
1937
  }), this.anchor = e, k(ar, this, t);
1938
1938
  }
1939
1939
  ensure(e, t) {
1940
- var n = A, r = eo();
1941
- if (t && !s(Be, this).has(e) && !s(be, this).has(e))
1940
+ var n = T, r = io();
1941
+ if (t && !s(Ue, this).has(e) && !s(we, this).has(e))
1942
1942
  if (r) {
1943
- var i = document.createDocumentFragment(), o = le();
1944
- i.append(o), s(be, this).set(e, {
1945
- effect: _e(() => t(o)),
1943
+ var i = document.createDocumentFragment(), o = fe();
1944
+ i.append(o), s(we, this).set(e, {
1945
+ effect: pe(() => t(o)),
1946
1946
  fragment: i
1947
1947
  });
1948
- } else s(Be, this).set(e, _e(() => t(this.anchor)));
1949
- if (s(Pe, this).set(n, e), r) {
1950
- for (const [a, l] of s(Be, this)) a === e ? n.unskip_effect(l) : n.skip_effect(l);
1951
- for (const [a, l] of s(be, this)) a === e ? n.unskip_effect(l.effect) : n.skip_effect(l.effect);
1952
- n.oncommit(s(sr, this)), n.ondiscard(s(vi, this));
1948
+ } else s(Ue, this).set(e, pe(() => t(this.anchor)));
1949
+ if (s(qe, this).set(n, e), r) {
1950
+ for (const [a, f] of s(Ue, this)) a === e ? n.unskip_effect(f) : n.skip_effect(f);
1951
+ for (const [a, f] of s(we, this)) a === e ? n.unskip_effect(f.effect) : n.skip_effect(f.effect);
1952
+ n.oncommit(s(sr, this)), n.ondiscard(s(pi, this));
1953
1953
  } else
1954
- M && (this.anchor = C), s(sr, this).call(this, n);
1954
+ x && (this.anchor = C), s(sr, this).call(this, n);
1955
1955
  }
1956
1956
  };
1957
1957
  function et(e, t, n = !1) {
1958
1958
  var r;
1959
- M && (r = C, At());
1960
- var i = new Ss(e), o = n ? Mr : 0;
1961
- function a(l, d) {
1962
- if (M) {
1963
- var _ = xi(r);
1964
- if (l !== parseInt(_.substring(1))) {
1965
- var g = On();
1966
- X(g), i.anchor = g, qe(!1), i.ensure(l, d), qe(!0);
1959
+ x && (r = C, Tt());
1960
+ var i = new Ns(e), o = n ? Cr : 0;
1961
+ function a(f, u) {
1962
+ if (x) {
1963
+ var h = Oi(r);
1964
+ if (f !== parseInt(h.substring(1))) {
1965
+ var _ = Cn();
1966
+ X(_), i.anchor = _, De(!1), i.ensure(f, u), De(!0);
1967
1967
  return;
1968
1968
  }
1969
1969
  }
1970
- i.ensure(l, d);
1970
+ i.ensure(f, u);
1971
1971
  }
1972
- jr(() => {
1973
- var l = !1;
1974
- t((d, _ = 0) => {
1975
- l = !0, a(_, d);
1976
- }), l || a(-1, null);
1972
+ Hr(() => {
1973
+ var f = !1;
1974
+ t((u, h = 0) => {
1975
+ f = !0, a(h, u);
1976
+ }), f || a(-1, null);
1977
1977
  }, o);
1978
1978
  }
1979
- function Es(e, t) {
1979
+ function Ps(e, t) {
1980
1980
  return t;
1981
1981
  }
1982
- function Ts(e, t, n) {
1983
- for (var r = [], i = t.length, o, a = t.length, l = 0; l < i; l++) {
1984
- let c = t[l];
1985
- gt(c, () => {
1982
+ function Is(e, t, n) {
1983
+ for (var r = [], i = t.length, o, a = t.length, f = 0; f < i; f++) {
1984
+ let d = t[f];
1985
+ gt(d, () => {
1986
1986
  if (o) {
1987
- if (o.pending.delete(c), o.done.add(c), o.pending.size === 0) {
1988
- var v = e.outrogroups;
1989
- Er(e, Bn(o.done)), v.delete(o), v.size === 0 && (e.outrogroups = null);
1987
+ if (o.pending.delete(d), o.done.add(d), o.pending.size === 0) {
1988
+ var p = e.outrogroups;
1989
+ Tr(e, Bn(o.done)), p.delete(o), p.size === 0 && (e.outrogroups = null);
1990
1990
  }
1991
1991
  } else a -= 1;
1992
1992
  }, !1);
1993
1993
  }
1994
1994
  if (a === 0) {
1995
- var d = r.length === 0 && n !== null && e.pending.size === 0;
1996
- if (d) {
1997
- var _ = n, g = _.parentNode;
1998
- Qi(g), g.append(_), e.items.clear();
1995
+ var u = r.length === 0 && n !== null && e.pending.size === 0;
1996
+ if (u) {
1997
+ var h = n, _ = h.parentNode;
1998
+ ro(_), _.append(h), e.items.clear();
1999
1999
  }
2000
- Er(e, t, !d);
2000
+ Tr(e, t, !u);
2001
2001
  } else
2002
2002
  o = {
2003
2003
  pending: new Set(t),
2004
2004
  done: /* @__PURE__ */ new Set()
2005
2005
  }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
2006
2006
  }
2007
- function Er(e, t, n = !0) {
2007
+ function Tr(e, t, n = !0) {
2008
2008
  var r;
2009
2009
  if (e.pending.size > 0) {
2010
2010
  r = /* @__PURE__ */ new Set();
2011
- for (const a of e.pending.values()) for (const l of a) r.add(e.items.get(l).e);
2011
+ for (const a of e.pending.values()) for (const f of a) r.add(e.items.get(f).e);
2012
2012
  }
2013
2013
  for (var i = 0; i < t.length; i++) {
2014
2014
  var o = t[i];
2015
2015
  if (r?.has(o)) {
2016
- o.f |= Vt;
2016
+ o.f |= Bt;
2017
2017
  const a = document.createDocumentFragment();
2018
- Fr(o, a);
2019
- } else ne(t[i], n);
2018
+ Vr(o, a);
2019
+ } else re(t[i], n);
2020
2020
  }
2021
2021
  }
2022
2022
  var yn;
2023
- function _i(e, t, n, r, i, o = null) {
2024
- var a = e, l = /* @__PURE__ */ new Map();
2023
+ function gi(e, t, n, r, i, o = null) {
2024
+ var a = e, f = /* @__PURE__ */ new Map();
2025
2025
  if ((t & 4) !== 0) {
2026
- var d = e;
2027
- a = M ? X(/* @__PURE__ */ ae(d)) : d.appendChild(le());
2026
+ var u = e;
2027
+ a = x ? X(/* @__PURE__ */ se(u)) : u.appendChild(fe());
2028
2028
  }
2029
- M && At();
2030
- var _ = null, g = /* @__PURE__ */ Or(() => {
2029
+ x && Tt();
2030
+ var h = null, _ = /* @__PURE__ */ Nr(() => {
2031
2031
  var m = n();
2032
- return $i(m) ? m : m == null ? [] : Bn(m);
2033
- }), c, v = /* @__PURE__ */ new Map(), u = !0;
2032
+ return Ai(m) ? m : m == null ? [] : Bn(m);
2033
+ }), d, p = /* @__PURE__ */ new Map(), c = !0;
2034
2034
  function b(m) {
2035
- (h.effect.f & 16384) === 0 && (h.pending.delete(m), h.fallback = _, As(h, c, a, t, r), _ !== null && (c.length === 0 ? (_.f & 33554432) === 0 ? Fn(_) : (_.f ^= Vt, Ht(_, null, a)) : gt(_, () => {
2036
- _ = null;
2035
+ (v.effect.f & 16384) === 0 && (v.pending.delete(m), v.fallback = h, qs(v, d, a, t, r), h !== null && (d.length === 0 ? (h.f & 33554432) === 0 ? Hn(h) : (h.f ^= Bt, Vt(h, null, a)) : gt(h, () => {
2036
+ h = null;
2037
2037
  })));
2038
2038
  }
2039
2039
  function y(m) {
2040
- h.pending.delete(m);
2041
- }
2042
- var h = {
2043
- effect: jr(() => {
2044
- c = f(g);
2045
- var m = c.length;
2046
- let N = !1;
2047
- M && xi(a) === "[!" != (m === 0) && (a = On(), X(a), qe(!1), N = !0);
2048
- for (var j = /* @__PURE__ */ new Set(), E = A, D = eo(), F = 0; F < m; F += 1) {
2049
- M && C.nodeType === 8 && C.data === "]" && (a = C, N = !0, qe(!1));
2050
- var G = c[F], Q = r(G, F);
2040
+ v.pending.delete(m);
2041
+ }
2042
+ var v = {
2043
+ effect: Hr(() => {
2044
+ d = l(_);
2045
+ var m = d.length;
2046
+ let L = !1;
2047
+ x && Oi(a) === "[!" != (m === 0) && (a = Cn(), X(a), De(!1), L = !0);
2048
+ for (var D = /* @__PURE__ */ new Set(), E = T, H = io(), j = 0; j < m; j += 1) {
2049
+ x && C.nodeType === 8 && C.data === "]" && (a = C, L = !0, De(!1));
2050
+ var Y = d[j], Q = r(Y, j);
2051
2051
  if (0)
2052
2052
  var bt;
2053
- var q = u ? null : l.get(Q);
2054
- q ? (q.v && Mt(q.v, G), q.i && Mt(q.i, F), D && E.unskip_effect(q.e)) : (q = xs(l, u ? a : yn ?? (yn = le()), G, Q, F, i, t, n), u || (q.e.f |= Vt), l.set(Q, q)), j.add(Q);
2053
+ var q = c ? null : f.get(Q);
2054
+ q ? (q.v && xt(q.v, Y), q.i && xt(q.i, j), H && E.unskip_effect(q.e)) : (q = Ws(f, c ? a : yn ?? (yn = fe()), Y, Q, j, i, t, n), c || (q.e.f |= Bt), f.set(Q, q)), D.add(Q);
2055
2055
  }
2056
- if (m === 0 && o && !_ && (u ? _ = _e(() => o(a)) : (_ = _e(() => o(yn ?? (yn = le()))), _.f |= Vt)), m > j.size && wa("", "", ""), M && m > 0 && X(On()), !u)
2057
- if (v.set(E, j), D) {
2058
- for (const [ce, Ke] of l) j.has(ce) || E.skip_effect(Ke.e);
2056
+ if (m === 0 && o && !h && (c ? h = pe(() => o(a)) : (h = pe(() => o(yn ?? (yn = fe()))), h.f |= Bt)), m > D.size && Ma("", "", ""), x && m > 0 && X(Cn()), !c)
2057
+ if (p.set(E, D), H) {
2058
+ for (const [de, Ze] of f) D.has(de) || E.skip_effect(Ze.e);
2059
2059
  E.oncommit(b), E.ondiscard(y);
2060
2060
  } else b(E);
2061
- N && qe(!0), f(g);
2061
+ L && De(!0), l(_);
2062
2062
  }),
2063
2063
  flags: t,
2064
- items: l,
2065
- pending: v,
2064
+ items: f,
2065
+ pending: p,
2066
2066
  outrogroups: null,
2067
- fallback: _
2067
+ fallback: h
2068
2068
  };
2069
- u = !1, M && (a = C);
2069
+ c = !1, x && (a = C);
2070
2070
  }
2071
- function It(e) {
2071
+ function qt(e) {
2072
2072
  for (; e !== null && (e.f & 32) === 0; ) e = e.next;
2073
2073
  return e;
2074
2074
  }
2075
- function As(e, t, n, r, i) {
2076
- var o = (r & 8) !== 0, a = t.length, l = e.items, d = It(e.effect.first), _, g = null, c, v = [], u = [], b, y, h, m;
2075
+ function qs(e, t, n, r, i) {
2076
+ var o = (r & 8) !== 0, a = t.length, f = e.items, u = qt(e.effect.first), h, _ = null, d, p = [], c = [], b, y, v, m;
2077
2077
  if (o) for (m = 0; m < a; m += 1)
2078
- b = t[m], y = i(b, m), h = l.get(y).e, (h.f & 33554432) === 0 && (h.nodes?.a?.measure(), (c ?? (c = /* @__PURE__ */ new Set())).add(h));
2078
+ b = t[m], y = i(b, m), v = f.get(y).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(v));
2079
2079
  for (m = 0; m < a; m += 1) {
2080
- if (b = t[m], y = i(b, m), h = l.get(y).e, e.outrogroups !== null) for (const q of e.outrogroups)
2081
- q.pending.delete(h), q.done.delete(h);
2082
- if ((h.f & 8192) !== 0 && (Fn(h), o && (h.nodes?.a?.unfix(), (c ?? (c = /* @__PURE__ */ new Set())).delete(h))), (h.f & 33554432) !== 0)
2083
- if (h.f ^= Vt, h === d) Ht(h, null, n);
2080
+ if (b = t[m], y = i(b, m), v = f.get(y).e, e.outrogroups !== null) for (const q of e.outrogroups)
2081
+ q.pending.delete(v), q.done.delete(v);
2082
+ if ((v.f & 8192) !== 0 && (Hn(v), o && (v.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
2083
+ if (v.f ^= Bt, v === u) Vt(v, null, n);
2084
2084
  else {
2085
- var N = g ? g.next : d;
2086
- h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev), ze(e, g, h), ze(e, h, N), Ht(h, N, n), g = h, v = [], u = [], d = It(g.next);
2085
+ var L = _ ? _.next : u;
2086
+ v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Ge(e, _, v), Ge(e, v, L), Vt(v, L, n), _ = v, p = [], c = [], u = qt(_.next);
2087
2087
  continue;
2088
2088
  }
2089
- if (h !== d) {
2090
- if (_ !== void 0 && _.has(h)) {
2091
- if (v.length < u.length) {
2092
- var j = u[0], E;
2093
- g = j.prev;
2094
- var D = v[0], F = v[v.length - 1];
2095
- for (E = 0; E < v.length; E += 1) Ht(v[E], j, n);
2096
- for (E = 0; E < u.length; E += 1) _.delete(u[E]);
2097
- ze(e, D.prev, F.next), ze(e, g, D), ze(e, F, j), d = j, g = F, m -= 1, v = [], u = [];
2089
+ if (v !== u) {
2090
+ if (h !== void 0 && h.has(v)) {
2091
+ if (p.length < c.length) {
2092
+ var D = c[0], E;
2093
+ _ = D.prev;
2094
+ var H = p[0], j = p[p.length - 1];
2095
+ for (E = 0; E < p.length; E += 1) Vt(p[E], D, n);
2096
+ for (E = 0; E < c.length; E += 1) h.delete(c[E]);
2097
+ Ge(e, H.prev, j.next), Ge(e, _, H), Ge(e, j, D), u = D, _ = j, m -= 1, p = [], c = [];
2098
2098
  } else
2099
- _.delete(h), Ht(h, d, n), ze(e, h.prev, h.next), ze(e, h, g === null ? e.effect.first : g.next), ze(e, g, h), g = h;
2099
+ h.delete(v), Vt(v, u, n), Ge(e, v.prev, v.next), Ge(e, v, _ === null ? e.effect.first : _.next), Ge(e, _, v), _ = v;
2100
2100
  continue;
2101
2101
  }
2102
- for (v = [], u = []; d !== null && d !== h; )
2103
- (_ ?? (_ = /* @__PURE__ */ new Set())).add(d), u.push(d), d = It(d.next);
2104
- if (d === null) continue;
2102
+ for (p = [], c = []; u !== null && u !== v; )
2103
+ (h ?? (h = /* @__PURE__ */ new Set())).add(u), c.push(u), u = qt(u.next);
2104
+ if (u === null) continue;
2105
2105
  }
2106
- (h.f & 33554432) === 0 && v.push(h), g = h, d = It(h.next);
2106
+ (v.f & 33554432) === 0 && p.push(v), _ = v, u = qt(v.next);
2107
2107
  }
2108
2108
  if (e.outrogroups !== null) {
2109
- for (const q of e.outrogroups) q.pending.size === 0 && (Er(e, Bn(q.done)), e.outrogroups?.delete(q));
2109
+ for (const q of e.outrogroups) q.pending.size === 0 && (Tr(e, Bn(q.done)), e.outrogroups?.delete(q));
2110
2110
  e.outrogroups.size === 0 && (e.outrogroups = null);
2111
2111
  }
2112
- if (d !== null || _ !== void 0) {
2113
- var G = [];
2114
- if (_ !== void 0)
2115
- for (h of _) (h.f & 8192) === 0 && G.push(h);
2116
- for (; d !== null; )
2117
- (d.f & 8192) === 0 && d !== e.fallback && G.push(d), d = It(d.next);
2118
- var Q = G.length;
2112
+ if (u !== null || h !== void 0) {
2113
+ var Y = [];
2114
+ if (h !== void 0)
2115
+ for (v of h) (v.f & 8192) === 0 && Y.push(v);
2116
+ for (; u !== null; )
2117
+ (u.f & 8192) === 0 && u !== e.fallback && Y.push(u), u = qt(u.next);
2118
+ var Q = Y.length;
2119
2119
  if (Q > 0) {
2120
2120
  var bt = (r & 4) !== 0 && a === 0 ? n : null;
2121
2121
  if (o) {
2122
- for (m = 0; m < Q; m += 1) G[m].nodes?.a?.measure();
2123
- for (m = 0; m < Q; m += 1) G[m].nodes?.a?.fix();
2122
+ for (m = 0; m < Q; m += 1) Y[m].nodes?.a?.measure();
2123
+ for (m = 0; m < Q; m += 1) Y[m].nodes?.a?.fix();
2124
2124
  }
2125
- Ts(e, G, bt);
2125
+ Is(e, Y, bt);
2126
2126
  }
2127
2127
  }
2128
- o && Ye(() => {
2129
- if (c !== void 0)
2130
- for (h of c) h.nodes?.a?.apply();
2128
+ o && Xe(() => {
2129
+ if (d !== void 0)
2130
+ for (v of d) v.nodes?.a?.apply();
2131
2131
  });
2132
2132
  }
2133
- function xs(e, t, n, r, i, o, a, l) {
2134
- var d = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ Yi(n, !1, !1) : vt(n) : null, _ = (a & 2) !== 0 ? vt(i) : null;
2133
+ function Ws(e, t, n, r, i, o, a, f) {
2134
+ var u = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ Ji(n, !1, !1) : vt(n) : null, h = (a & 2) !== 0 ? vt(i) : null;
2135
2135
  return {
2136
- v: d,
2137
- i: _,
2138
- e: _e(() => (o(t, d ?? n, _ ?? i, l), () => {
2136
+ v: u,
2137
+ i: h,
2138
+ e: pe(() => (o(t, u ?? n, h ?? i, f), () => {
2139
2139
  e.delete(r);
2140
2140
  }))
2141
2141
  };
2142
2142
  }
2143
- function Ht(e, t, n) {
2143
+ function Vt(e, t, n) {
2144
2144
  if (e.nodes)
2145
2145
  for (var r = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : n; r !== null; ) {
2146
- var a = /* @__PURE__ */ Ee(r);
2146
+ var a = /* @__PURE__ */ Te(r);
2147
2147
  if (o.before(r), r === i) return;
2148
2148
  r = a;
2149
2149
  }
2150
2150
  }
2151
- function ze(e, t, n) {
2151
+ function Ge(e, t, n) {
2152
2152
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
2153
2153
  }
2154
- function Ms(e, t, n = !1, r = !1, i = !1, o = !1) {
2155
- var a = e, l = "";
2154
+ function Ds(e, t, n = !1, r = !1, i = !1, o = !1) {
2155
+ var a = e, f = "";
2156
2156
  if (n) {
2157
- var d = e;
2158
- M && (a = X(/* @__PURE__ */ ae(d)));
2157
+ var u = e;
2158
+ x && (a = X(/* @__PURE__ */ se(u)));
2159
2159
  }
2160
- Ie(() => {
2161
- var _ = x;
2162
- if (l === (l = t() ?? "")) {
2163
- M && At();
2160
+ We(() => {
2161
+ var h = A;
2162
+ if (f === (f = t() ?? "")) {
2163
+ x && Tt();
2164
2164
  return;
2165
2165
  }
2166
- if (n && !M) {
2167
- _.nodes = null, d.innerHTML = l, l !== "" && je(/* @__PURE__ */ ae(d), d.lastChild);
2166
+ if (n && !x) {
2167
+ h.nodes = null, u.innerHTML = f, f !== "" && He(/* @__PURE__ */ se(u), u.lastChild);
2168
2168
  return;
2169
2169
  }
2170
- if (_.nodes !== null && (io(_.nodes.start, _.nodes.end), _.nodes = null), l !== "") {
2171
- if (M) {
2172
- for (var g = C.data, c = At(), v = c; c !== null && (c.nodeType !== 8 || c.data !== ""); )
2173
- v = c, c = /* @__PURE__ */ Ee(c);
2174
- if (c === null)
2175
- throw tn(), dt;
2176
- je(C, v), a = X(c);
2170
+ if (h.nodes !== null && (lo(h.nodes.start, h.nodes.end), h.nodes = null), f !== "") {
2171
+ if (x) {
2172
+ for (var _ = C.data, d = Tt(), p = d; d !== null && (d.nodeType !== 8 || d.data !== ""); )
2173
+ p = d, d = /* @__PURE__ */ Te(d);
2174
+ if (d === null)
2175
+ throw nn(), dt;
2176
+ He(C, p), a = X(d);
2177
2177
  return;
2178
2178
  }
2179
- var u = Gn(r ? "svg" : i ? "math" : "template", r ? Jo : i ? Qo : void 0);
2180
- u.innerHTML = l;
2181
- var b = r || i ? u : u.content;
2182
- if (je(/* @__PURE__ */ ae(b), b.lastChild), r || i) for (; /* @__PURE__ */ ae(b); ) a.before(/* @__PURE__ */ ae(b));
2179
+ var c = Gn(r ? "svg" : i ? "math" : "template", r ? la : i ? fa : void 0);
2180
+ c.innerHTML = f;
2181
+ var b = r || i ? c : c.content;
2182
+ if (He(/* @__PURE__ */ se(b), b.lastChild), r || i) for (; /* @__PURE__ */ se(b); ) a.before(/* @__PURE__ */ se(b));
2183
2183
  else a.before(b);
2184
2184
  }
2185
2185
  });
2186
2186
  }
2187
- function Rs(e, t) {
2188
- no(() => {
2189
- e = x?.parent?.nodes?.start ?? e;
2187
+ function js(e, t) {
2188
+ ao(() => {
2189
+ e = A?.parent?.nodes?.start ?? e;
2190
2190
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
2191
2191
  if (!r.querySelector("#" + t.hash)) {
2192
2192
  const i = Gn("style");
@@ -2194,21 +2194,21 @@ function Rs(e, t) {
2194
2194
  }
2195
2195
  });
2196
2196
  }
2197
- var pi = [...`
2197
+ var bi = [...`
2198
2198
  \r\f \v\uFEFF`];
2199
- function Cs(e, t, n) {
2199
+ function Hs(e, t, n) {
2200
2200
  var r = e == null ? "" : "" + e;
2201
2201
  if (t && (r = r ? r + " " + t : t), n) {
2202
2202
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
2203
2203
  else if (r.length)
2204
2204
  for (var o = i.length, a = 0; (a = r.indexOf(i, a)) >= 0; ) {
2205
- var l = a + o;
2206
- (a === 0 || pi.includes(r[a - 1])) && (l === r.length || pi.includes(r[l])) ? r = (a === 0 ? "" : r.substring(0, a)) + r.substring(l + 1) : a = l;
2205
+ var f = a + o;
2206
+ (a === 0 || bi.includes(r[a - 1])) && (f === r.length || bi.includes(r[f])) ? r = (a === 0 ? "" : r.substring(0, a)) + r.substring(f + 1) : a = f;
2207
2207
  }
2208
2208
  }
2209
2209
  return r === "" ? null : r;
2210
2210
  }
2211
- function gi(e, t = !1) {
2211
+ function wi(e, t = !1) {
2212
2212
  var n = t ? " !important;" : ";", r = "";
2213
2213
  for (var i of Object.keys(e)) {
2214
2214
  var o = e[i];
@@ -2219,45 +2219,45 @@ function gi(e, t = !1) {
2219
2219
  function lr(e) {
2220
2220
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2221
2221
  }
2222
- function Os(e, t) {
2222
+ function Fs(e, t) {
2223
2223
  if (t) {
2224
2224
  var n = "", r, i;
2225
2225
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
2226
2226
  e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
2227
- var o = !1, a = 0, l = !1, d = [];
2228
- r && d.push(...Object.keys(r).map(lr)), i && d.push(...Object.keys(i).map(lr));
2229
- var _ = 0, g = -1;
2227
+ var o = !1, a = 0, f = !1, u = [];
2228
+ r && u.push(...Object.keys(r).map(lr)), i && u.push(...Object.keys(i).map(lr));
2229
+ var h = 0, _ = -1;
2230
2230
  const y = e.length;
2231
- for (var c = 0; c < y; c++) {
2232
- var v = e[c];
2233
- if (l ? v === "/" && e[c - 1] === "*" && (l = !1) : o ? o === v && (o = !1) : v === "/" && e[c + 1] === "*" ? l = !0 : v === '"' || v === "'" ? o = v : v === "(" ? a++ : v === ")" && a--, !l && o === !1 && a === 0) {
2234
- if (v === ":" && g === -1) g = c;
2235
- else if (v === ";" || c === y - 1) {
2236
- if (g !== -1) {
2237
- var u = lr(e.substring(_, g).trim());
2238
- if (!d.includes(u)) {
2239
- v !== ";" && c++;
2240
- var b = e.substring(_, c).trim();
2231
+ for (var d = 0; d < y; d++) {
2232
+ var p = e[d];
2233
+ if (f ? p === "/" && e[d - 1] === "*" && (f = !1) : o ? o === p && (o = !1) : p === "/" && e[d + 1] === "*" ? f = !0 : p === '"' || p === "'" ? o = p : p === "(" ? a++ : p === ")" && a--, !f && o === !1 && a === 0) {
2234
+ if (p === ":" && _ === -1) _ = d;
2235
+ else if (p === ";" || d === y - 1) {
2236
+ if (_ !== -1) {
2237
+ var c = lr(e.substring(h, _).trim());
2238
+ if (!u.includes(c)) {
2239
+ p !== ";" && d++;
2240
+ var b = e.substring(h, d).trim();
2241
2241
  n += " " + b + ";";
2242
2242
  }
2243
2243
  }
2244
- _ = c + 1, g = -1;
2244
+ h = d + 1, _ = -1;
2245
2245
  }
2246
2246
  }
2247
2247
  }
2248
2248
  }
2249
- return r && (n += gi(r)), i && (n += gi(i, !0)), n = n.trim(), n === "" ? null : n;
2249
+ return r && (n += wi(r)), i && (n += wi(i, !0)), n = n.trim(), n === "" ? null : n;
2250
2250
  }
2251
2251
  return e == null ? null : String(e);
2252
2252
  }
2253
- function Ls(e, t, n, r, i, o) {
2254
- var a = e[hr];
2255
- if (M || a !== n || a === void 0) {
2256
- var l = Cs(n, r, o);
2257
- (!M || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e[hr] = n;
2258
- } else if (o && i !== o) for (var d in o) {
2259
- var _ = !!o[d];
2260
- (i == null || _ !== !!i[d]) && e.classList.toggle(d, _);
2253
+ function Vs(e, t, n, r, i, o) {
2254
+ var a = e[vr];
2255
+ if (x || a !== n || a === void 0) {
2256
+ var f = Hs(n, r, o);
2257
+ (!x || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[vr] = n;
2258
+ } else if (o && i !== o) for (var u in o) {
2259
+ var h = !!o[u];
2260
+ (i == null || h !== !!i[u]) && e.classList.toggle(u, h);
2261
2261
  }
2262
2262
  return o;
2263
2263
  }
@@ -2267,88 +2267,88 @@ function fr(e, t = {}, n, r) {
2267
2267
  t[i] !== o && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
2268
2268
  }
2269
2269
  }
2270
- function bi(e, t, n, r) {
2271
- var i = e[vr];
2272
- if (M || i !== t) {
2273
- var o = Os(t, r);
2274
- (!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[vr] = t;
2270
+ function mi(e, t, n, r) {
2271
+ var i = e[_r];
2272
+ if (x || i !== t) {
2273
+ var o = Fs(t, r);
2274
+ (!x || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[_r] = t;
2275
2275
  } else r && (Array.isArray(r) ? (fr(e, n?.[0], r[0]), fr(e, n?.[1], r[1], "important")) : fr(e, n, r));
2276
2276
  return r;
2277
2277
  }
2278
- var Ns = /* @__PURE__ */ Symbol("is custom element"), Ps = /* @__PURE__ */ Symbol("is html"), Is = ha ? "link" : "LINK";
2279
- function K(e, t, n, r) {
2280
- var i = qs(e);
2281
- if (M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Is)) {
2278
+ var Bs = /* @__PURE__ */ Symbol("is custom element"), zs = /* @__PURE__ */ Symbol("is html"), Us = $a ? "link" : "LINK";
2279
+ function G(e, t, n, r) {
2280
+ var i = Gs(e);
2281
+ if (x && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Us)) {
2282
2282
  r || void 0;
2283
2283
  return;
2284
2284
  }
2285
- i[t] !== (i[t] = n) && (t === "loading" && (e[ca] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ws(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2285
+ i[t] !== (i[t] = n) && (t === "loading" && (e[ya] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ys(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2286
2286
  }
2287
- function qs(e) {
2288
- return e[dr] ?? (e[dr] = {
2289
- [Ns]: e.nodeName.includes("-"),
2290
- [Ps]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2287
+ function Gs(e) {
2288
+ return e[hr] ?? (e[hr] = {
2289
+ [Bs]: e.nodeName.includes("-"),
2290
+ [zs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2291
2291
  });
2292
2292
  }
2293
- var wi = /* @__PURE__ */ new Map();
2294
- function Ws(e) {
2295
- var t = e.getAttribute("is") || e.nodeName, n = wi.get(t);
2293
+ var yi = /* @__PURE__ */ new Map();
2294
+ function Ys(e) {
2295
+ var t = e.getAttribute("is") || e.nodeName, n = yi.get(t);
2296
2296
  if (n) return n;
2297
- wi.set(t, n = /* @__PURE__ */ new Set());
2297
+ yi.set(t, n = /* @__PURE__ */ new Set());
2298
2298
  for (var r, i = e, o = Element.prototype; o !== i; ) {
2299
- r = ta(i);
2299
+ r = ca(i);
2300
2300
  for (var a in r) r[a].set && a !== "innerHTML" && a !== "textContent" && a !== "innerText" && n.add(a);
2301
- i = Si(i);
2301
+ i = xi(i);
2302
2302
  }
2303
2303
  return n;
2304
2304
  }
2305
- var ko, St = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakSet(), $o = class {
2305
+ var To, St = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakSet(), Ao = class {
2306
2306
  constructor(e) {
2307
- Nr(this, mi), $(this, St, /* @__PURE__ */ new WeakMap()), $(this, Vn, void 0), $(this, ur, void 0), k(ur, this, e);
2307
+ Ir(this, ki), $(this, St, /* @__PURE__ */ new WeakMap()), $(this, Vn, void 0), $(this, ur, void 0), k(ur, this, e);
2308
2308
  }
2309
2309
  observe(e, t) {
2310
2310
  var n = s(St, this).get(e) || /* @__PURE__ */ new Set();
2311
- return n.add(t), s(St, this).set(e, n), S(mi, this, js).call(this).observe(e, s(ur, this)), () => {
2311
+ return n.add(t), s(St, this).set(e, n), S(ki, this, Ks).call(this).observe(e, s(ur, this)), () => {
2312
2312
  var r = s(St, this).get(e);
2313
2313
  r.delete(t), r.size === 0 && (s(St, this).delete(e), s(Vn, this).unobserve(e));
2314
2314
  };
2315
2315
  }
2316
2316
  };
2317
- ko = $o;
2318
- function js() {
2317
+ To = Ao;
2318
+ function Ks() {
2319
2319
  return s(Vn, this) ?? k(Vn, this, new ResizeObserver((e) => {
2320
2320
  for (var t of e) {
2321
- ko.entries.set(t.target, t);
2321
+ To.entries.set(t.target, t);
2322
2322
  for (var n of s(St, this).get(t.target) || []) n(t);
2323
2323
  }
2324
2324
  }));
2325
2325
  }
2326
- P($o, "entries", /* @__PURE__ */ new WeakMap());
2326
+ P(Ao, "entries", /* @__PURE__ */ new WeakMap());
2327
2327
  function cr(e, t) {
2328
- return e === t || e?.[Bt] === t;
2329
- }
2330
- function yi(e = Rr(), t, n, r) {
2331
- var i = V.r, o = x;
2332
- return no(() => {
2333
- var a, l;
2334
- return Wr(() => {
2335
- a = l, l = r?.() || [], Jt(() => {
2336
- cr(n(...l), e) || (t(e, ...l), a && cr(n(...a), e) && t(null, ...a));
2328
+ return e === t || e?.[zt] === t;
2329
+ }
2330
+ function $i(e = Or(), t, n, r) {
2331
+ var i = V.r, o = A;
2332
+ return ao(() => {
2333
+ var a, f;
2334
+ return jr(() => {
2335
+ a = f, f = r?.() || [], Qt(() => {
2336
+ cr(n(...f), e) || (t(e, ...f), a && cr(n(...a), e) && t(null, ...a));
2337
2337
  });
2338
2338
  }), () => {
2339
- let d = o;
2340
- for (; d !== i && d.parent !== null && d.parent.f & 33554432; ) d = d.parent;
2341
- const _ = () => {
2342
- l && cr(n(...l), e) && t(null, ...l);
2343
- }, g = d.teardown;
2344
- d.teardown = () => {
2345
- _(), g?.();
2339
+ let u = o;
2340
+ for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
2341
+ const h = () => {
2342
+ f && cr(n(...f), e) && t(null, ...f);
2343
+ }, _ = u.teardown;
2344
+ u.teardown = () => {
2345
+ h(), _?.();
2346
2346
  };
2347
2347
  };
2348
2348
  }), e;
2349
2349
  }
2350
2350
  var kn = !1;
2351
- function Ds(e) {
2351
+ function Xs(e) {
2352
2352
  var t = kn;
2353
2353
  try {
2354
2354
  return kn = !1, [e(), kn];
@@ -2356,48 +2356,48 @@ function Ds(e) {
2356
2356
  kn = t;
2357
2357
  }
2358
2358
  }
2359
- function $n(e, t, n, r) {
2360
- var i = !zn || (n & 2) !== 0, o = (n & 8) !== 0, a = (n & 16) !== 0, l = r, d = !0, _ = void 0, g = () => a && i ? (_ ?? (_ = /* @__PURE__ */ Kt(r)), f(_)) : (d && (d = !1, l = a ? Jt(r) : r), l);
2361
- let c;
2359
+ function Si(e, t, n, r) {
2360
+ var i = !zn || (n & 2) !== 0, o = (n & 8) !== 0, a = (n & 16) !== 0, f = r, u = !0, h = void 0, _ = () => a && i ? (h ?? (h = /* @__PURE__ */ Xt(r)), l(h)) : (u && (u = !1, f = a ? Qt(r) : r), f);
2361
+ let d;
2362
2362
  if (o) {
2363
- var v = Bt in e || Ai in e;
2364
- c = lt(e, t)?.set ?? (v && t in e ? (E) => e[t] = E : void 0);
2363
+ var p = zt in e || Ci in e;
2364
+ d = lt(e, t)?.set ?? (p && t in e ? (E) => e[t] = E : void 0);
2365
2365
  }
2366
- var u, b = !1;
2367
- o ? [u, b] = Ds(() => e[t]) : u = e[t], u === void 0 && r !== void 0 && (u = g(), c && (i && Ea(t), c(u)));
2366
+ var c, b = !1;
2367
+ o ? [c, b] = Xs(() => e[t]) : c = e[t], c === void 0 && r !== void 0 && (c = _(), d && (i && Pa(t), d(c)));
2368
2368
  var y;
2369
2369
  if (i ? y = () => {
2370
2370
  var E = e[t];
2371
- return E === void 0 ? g() : (d = !0, E);
2371
+ return E === void 0 ? _() : (u = !0, E);
2372
2372
  } : y = () => {
2373
2373
  var E = e[t];
2374
- return E !== void 0 && (l = void 0), E === void 0 ? l : E;
2374
+ return E !== void 0 && (f = void 0), E === void 0 ? f : E;
2375
2375
  }, i && (n & 4) === 0) return y;
2376
- if (c) {
2377
- var h = e.$$legacy;
2378
- return (function(E, D) {
2379
- return arguments.length > 0 ? ((!i || !D || h || b) && c(D ? y() : E), E) : y();
2376
+ if (d) {
2377
+ var v = e.$$legacy;
2378
+ return (function(E, H) {
2379
+ return arguments.length > 0 ? ((!i || !H || v || b) && d(H ? y() : E), E) : y();
2380
2380
  });
2381
2381
  }
2382
- var m = !1, N = ((n & 1) !== 0 ? Kt : Or)(() => (m = !1, y()));
2383
- o && f(N);
2384
- var j = x;
2385
- return (function(E, D) {
2382
+ var m = !1, L = ((n & 1) !== 0 ? Xt : Nr)(() => (m = !1, y()));
2383
+ o && l(L);
2384
+ var D = A;
2385
+ return (function(E, H) {
2386
2386
  if (arguments.length > 0) {
2387
- const F = D ? f(N) : i && o ? at(E) : E;
2388
- return O(N, F), m = !0, l !== void 0 && (l = F), E;
2387
+ const j = H ? l(L) : i && o ? at(E) : E;
2388
+ return O(L, j), m = !0, f !== void 0 && (f = j), E;
2389
2389
  }
2390
- return De && m || (j.f & 16384) !== 0 ? N.v : f(N);
2390
+ return Fe && m || (D.f & 16384) !== 0 ? L.v : l(L);
2391
2391
  });
2392
2392
  }
2393
- function Fs(e) {
2394
- return new Hs(e);
2393
+ function Zs(e) {
2394
+ return new Js(e);
2395
2395
  }
2396
- var tt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Hs = class {
2396
+ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Js = class {
2397
2397
  constructor(e) {
2398
- $(this, tt, void 0), $(this, Ae, void 0);
2398
+ $(this, tt, void 0), $(this, Me, void 0);
2399
2399
  var t = /* @__PURE__ */ new Map(), n = (i, o) => {
2400
- var a = /* @__PURE__ */ Yi(o, !1, !1);
2400
+ var a = /* @__PURE__ */ Ji(o, !1, !1);
2401
2401
  return t.set(i, a), a;
2402
2402
  };
2403
2403
  const r = new Proxy({
@@ -2405,16 +2405,16 @@ var tt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Hs =
2405
2405
  $$events: {}
2406
2406
  }, {
2407
2407
  get(i, o) {
2408
- return f(t.get(o) ?? n(o, Reflect.get(i, o)));
2408
+ return l(t.get(o) ?? n(o, Reflect.get(i, o)));
2409
2409
  },
2410
2410
  has(i, o) {
2411
- return o === Ai ? !0 : (f(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
2411
+ return o === Ci ? !0 : (l(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
2412
2412
  },
2413
2413
  set(i, o, a) {
2414
2414
  return O(t.get(o) ?? n(o, a), a), Reflect.set(i, o, a);
2415
2415
  }
2416
2416
  });
2417
- k(Ae, this, (e.hydrate ? ks : mo)(e.component, {
2417
+ k(Me, this, (e.hydrate ? Os : So)(e.component, {
2418
2418
  target: e.target,
2419
2419
  anchor: e.anchor,
2420
2420
  props: r,
@@ -2422,25 +2422,25 @@ var tt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Hs =
2422
2422
  intro: e.intro ?? !1,
2423
2423
  recover: e.recover,
2424
2424
  transformError: e.transformError
2425
- })), !Fe && (!e?.props?.$$host || e.sync === !1) && Et(), k(tt, this, r.$$events);
2426
- for (const i of Object.keys(s(Ae, this)))
2427
- i === "$set" || i === "$destroy" || i === "$on" || Gt(this, i, {
2425
+ })), !Ve && (!e?.props?.$$host || e.sync === !1) && Dn(), k(tt, this, r.$$events);
2426
+ for (const i of Object.keys(s(Me, this)))
2427
+ i === "$set" || i === "$destroy" || i === "$on" || Yt(this, i, {
2428
2428
  get() {
2429
- return s(Ae, this)[i];
2429
+ return s(Me, this)[i];
2430
2430
  },
2431
2431
  set(o) {
2432
- s(Ae, this)[i] = o;
2432
+ s(Me, this)[i] = o;
2433
2433
  },
2434
2434
  enumerable: !0
2435
2435
  });
2436
- s(Ae, this).$set = (i) => {
2436
+ s(Me, this).$set = (i) => {
2437
2437
  Object.assign(r, i);
2438
- }, s(Ae, this).$destroy = () => {
2439
- $s(s(Ae, this));
2438
+ }, s(Me, this).$destroy = () => {
2439
+ Ls(s(Me, this));
2440
2440
  };
2441
2441
  }
2442
2442
  $set(e) {
2443
- s(Ae, this).$set(e);
2443
+ s(Me, this).$set(e);
2444
2444
  }
2445
2445
  $on(e, t) {
2446
2446
  s(tt, this)[e] = s(tt, this)[e] || [];
@@ -2450,10 +2450,10 @@ var tt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Hs =
2450
2450
  };
2451
2451
  }
2452
2452
  $destroy() {
2453
- s(Ae, this).$destroy();
2453
+ s(Me, this).$destroy();
2454
2454
  }
2455
- }, So;
2456
- typeof HTMLElement == "function" && (So = class extends HTMLElement {
2455
+ }, xo;
2456
+ typeof HTMLElement == "function" && (xo = class extends HTMLElement {
2457
2457
  constructor(e, t, n) {
2458
2458
  super(), P(this, "$$ctor", void 0), P(this, "$$s", void 0), P(this, "$$c", void 0), P(this, "$$cn", !1), P(this, "$$d", {}), P(this, "$$r", !1), P(this, "$$p_d", {}), P(this, "$$l", {}), P(this, "$$l_u", /* @__PURE__ */ new Map()), P(this, "$$me", void 0), P(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
2459
2459
  }
@@ -2475,18 +2475,18 @@ typeof HTMLElement == "function" && (So = class extends HTMLElement {
2475
2475
  let e = function(r) {
2476
2476
  return (i) => {
2477
2477
  const o = Gn("slot");
2478
- r !== "default" && (o.name = r), de(i, o);
2478
+ r !== "default" && (o.name = r), he(i, o);
2479
2479
  };
2480
2480
  };
2481
2481
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2482
- const t = {}, n = Vs(this);
2482
+ const t = {}, n = Qs(this);
2483
2483
  for (const r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2484
2484
  for (const r of this.attributes) {
2485
2485
  const i = this.$$g_p(r.name);
2486
- i in this.$$d || (this.$$d[i] = xn(i, r.value, this.$$p_d, "toProp"));
2486
+ i in this.$$d || (this.$$d[i] = An(i, r.value, this.$$p_d, "toProp"));
2487
2487
  }
2488
2488
  for (const r in this.$$p_d) !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
2489
- this.$$c = Fs({
2489
+ this.$$c = Zs({
2490
2490
  component: this.$$ctor,
2491
2491
  target: this.$$shadowRoot || this,
2492
2492
  props: {
@@ -2494,13 +2494,13 @@ typeof HTMLElement == "function" && (So = class extends HTMLElement {
2494
2494
  $$slots: t,
2495
2495
  $$host: this
2496
2496
  }
2497
- }), this.$$me = Ja(() => {
2498
- Wr(() => {
2497
+ }), this.$$me = ls(() => {
2498
+ jr(() => {
2499
2499
  this.$$r = !0;
2500
- for (const r of Rn(this.$$c)) {
2500
+ for (const r of Mn(this.$$c)) {
2501
2501
  if (!this.$$p_d[r]?.reflect) continue;
2502
2502
  this.$$d[r] = this.$$c[r];
2503
- const i = xn(r, this.$$d[r], this.$$p_d, "toAttribute");
2503
+ const i = An(r, this.$$d[r], this.$$p_d, "toAttribute");
2504
2504
  i == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, i);
2505
2505
  }
2506
2506
  this.$$r = !1;
@@ -2514,7 +2514,7 @@ typeof HTMLElement == "function" && (So = class extends HTMLElement {
2514
2514
  }
2515
2515
  }
2516
2516
  attributeChangedCallback(e, t, n) {
2517
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = xn(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2517
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = An(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2518
2518
  }
2519
2519
  disconnectedCallback() {
2520
2520
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2522,10 +2522,10 @@ typeof HTMLElement == "function" && (So = class extends HTMLElement {
2522
2522
  });
2523
2523
  }
2524
2524
  $$g_p(e) {
2525
- return Rn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2525
+ return Mn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2526
2526
  }
2527
2527
  });
2528
- function xn(e, t, n, r) {
2528
+ function An(e, t, n, r) {
2529
2529
  const i = n[e]?.type;
2530
2530
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2531
2531
  if (r === "toAttribute") switch (i) {
@@ -2551,79 +2551,79 @@ function xn(e, t, n, r) {
2551
2551
  return t;
2552
2552
  }
2553
2553
  }
2554
- function Vs(e) {
2554
+ function Qs(e) {
2555
2555
  const t = {};
2556
2556
  return e.childNodes.forEach((n) => {
2557
2557
  t[n.slot || "default"] = !0;
2558
2558
  }), t;
2559
2559
  }
2560
- function Bs(e, t, n, r, i, o) {
2561
- let a = class extends So {
2560
+ function el(e, t, n, r, i, o) {
2561
+ let a = class extends xo {
2562
2562
  constructor() {
2563
2563
  super(e, n, i), this.$$p_d = t;
2564
2564
  }
2565
2565
  static get observedAttributes() {
2566
- return Rn(t).map((l) => (t[l].attribute || l).toLowerCase());
2566
+ return Mn(t).map((f) => (t[f].attribute || f).toLowerCase());
2567
2567
  }
2568
2568
  };
2569
- return Rn(t).forEach((l) => {
2570
- Gt(a.prototype, l, {
2569
+ return Mn(t).forEach((f) => {
2570
+ Yt(a.prototype, f, {
2571
2571
  get() {
2572
- return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
2572
+ return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
2573
2573
  },
2574
- set(d) {
2575
- d = xn(l, d, t), this.$$d[l] = d;
2576
- var _ = this.$$c;
2577
- _ && (lt(_, l)?.get ? _[l] = d : _.$set({ [l]: d }));
2574
+ set(u) {
2575
+ u = An(f, u, t), this.$$d[f] = u;
2576
+ var h = this.$$c;
2577
+ h && (lt(h, f)?.get ? h[f] = u : h.$set({ [f]: u }));
2578
2578
  }
2579
2579
  });
2580
- }), r.forEach((l) => {
2581
- Gt(a.prototype, l, { get() {
2582
- return this.$$c?.[l];
2580
+ }), r.forEach((f) => {
2581
+ Yt(a.prototype, f, { get() {
2582
+ return this.$$c?.[f];
2583
2583
  } });
2584
2584
  }), o && (a = o(a)), e.element = a, a;
2585
2585
  }
2586
- function zs(e) {
2586
+ function tl(e) {
2587
2587
  return e.key === "ContextMenu" ? !0 : e.key === "F10" && e.shiftKey === !0;
2588
2588
  }
2589
- function Us({ key: e, activeIndex: t, count: n, direction: r }) {
2589
+ function nl({ key: e, activeIndex: t, count: n, direction: r }) {
2590
2590
  if (n <= 0) return null;
2591
- const i = Tr(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", a = r === "rtl" ? "ArrowRight" : "ArrowLeft";
2591
+ const i = Ar(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", a = r === "rtl" ? "ArrowRight" : "ArrowLeft";
2592
2592
  return e === o ? (i + 1) % n : e === a ? (i - 1 + n) % n : e === "Home" ? 0 : e === "End" ? n - 1 : null;
2593
2593
  }
2594
- function Tr(e, t) {
2594
+ function Ar(e, t) {
2595
2595
  return t <= 0 || !Number.isFinite(e) || e < 0 ? 0 : Math.min(Math.trunc(e), t - 1);
2596
2596
  }
2597
- function Gs(e, t) {
2597
+ function rl(e, t) {
2598
2598
  return e.bottom < 0 || e.top > t.height || e.right < 0 || e.left > t.width;
2599
2599
  }
2600
- var Ys = 2e3;
2601
- function Ks(e, t, n = Ys) {
2600
+ var il = 2e3;
2601
+ function ol(e, t, n = il) {
2602
2602
  if (e === null) return !1;
2603
2603
  const r = t - e;
2604
2604
  return r < 0 ? !0 : r < n;
2605
2605
  }
2606
- function Xs(e, t, n = {
2606
+ function al(e, t, n = {
2607
2607
  width: 0,
2608
2608
  height: 0
2609
2609
  }, r = 8) {
2610
- const o = e.left + (e.right - e.left) / 2 - n.width / 2, a = e.top - r - n.height, l = a < 4 && e.bottom + r + n.height <= t.height, d = l ? e.bottom + r : a;
2610
+ const o = e.left + (e.right - e.left) / 2 - n.width / 2, a = e.top - r - n.height, f = a < 4 && e.bottom + r + n.height <= t.height, u = f ? e.bottom + r : a;
2611
2611
  return {
2612
- x: ki(o, n.width, t.width, 4),
2613
- y: ki(d, n.height, t.height, 4),
2614
- below: l
2612
+ x: Ei(o, n.width, t.width, 4),
2613
+ y: Ei(u, n.height, t.height, 4),
2614
+ below: f
2615
2615
  };
2616
2616
  }
2617
- function ki(e, t, n, r) {
2617
+ function Ei(e, t, n, r) {
2618
2618
  const i = n - t - r;
2619
2619
  return i <= r ? r : Math.min(Math.max(e, r), i);
2620
2620
  }
2621
- function Zs(e) {
2621
+ function sl(e) {
2622
2622
  if (!e || typeof e != "object") return !1;
2623
2623
  const t = e;
2624
2624
  return !(typeof t.id != "string" || t.id.trim().length === 0 || typeof t.label != "string" || t.label.trim().length === 0 || t.label.length > 40 || typeof t.run != "function" || t.iconSvg !== void 0 && typeof t.iconSvg != "string" || t.tooltip !== void 0 && typeof t.tooltip != "string" || t.isAvailable !== void 0 && typeof t.isAvailable != "function");
2625
2625
  }
2626
- function Js(e) {
2626
+ function ll(e) {
2627
2627
  if (typeof e.isAvailable != "function") return !0;
2628
2628
  try {
2629
2629
  return e.isAvailable() !== !1;
@@ -2631,11 +2631,11 @@ function Js(e) {
2631
2631
  return console.warn(`[AnnotationToolbar] Selection action "${e.id}" failed its availability check:`, t), !1;
2632
2632
  }
2633
2633
  }
2634
- function Qs(e) {
2634
+ function fl(e) {
2635
2635
  if (!Array.isArray(e)) return [];
2636
2636
  const t = /* @__PURE__ */ new Set(), n = [];
2637
2637
  return e.forEach((r, i) => {
2638
- if (!Zs(r)) {
2638
+ if (!sl(r)) {
2639
2639
  console.warn(`[AnnotationToolbar] Ignoring invalid selection action at index ${i}. Expected { id, label, run } with valid types.`);
2640
2640
  return;
2641
2641
  }
@@ -2643,10 +2643,77 @@ function Qs(e) {
2643
2643
  console.warn(`[AnnotationToolbar] Ignoring duplicate selection action id "${r.id}".`);
2644
2644
  return;
2645
2645
  }
2646
- Js(r) && (t.add(r.id), n.push(r));
2646
+ ll(r) && (t.add(r.id), n.push(r));
2647
2647
  }), n;
2648
2648
  }
2649
- var el = /* @__PURE__ */ Ne('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-1qnnvrt"><span class="pie-sr-only svelte-1qnnvrt"> </span></button>'), tl = /* @__PURE__ */ Ne('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), nl = /* @__PURE__ */ Ne('<span class="pie-tool-annotation-toolbar__action-icon svelte-1qnnvrt" aria-hidden="true"></span>'), rl = /* @__PURE__ */ Ne("<button><!></button>"), il = /* @__PURE__ */ Ne('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!>', 1), ol = /* @__PURE__ */ Ne('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), al = /* @__PURE__ */ Ne('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-1qnnvrt"> </button>'), sl = /* @__PURE__ */ Ne('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!> <!>', 1), ll = /* @__PURE__ */ Ne('<div class="pie-tool-annotation-toolbar notranslate svelte-1qnnvrt" role="toolbar" translate="no" tabindex="-1"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!> <!></div>'), fl = /* @__PURE__ */ Ne('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-1qnnvrt"> </div>', 1), ul = {
2649
+ function ul(e, t) {
2650
+ if (!e) return !1;
2651
+ const n = t?.canRequestTool;
2652
+ if (typeof n != "function") return !1;
2653
+ try {
2654
+ return n.call(t, "textToSpeech") === !0;
2655
+ } catch (r) {
2656
+ return console.warn("[AnnotationToolbar] Read-aloud failed its availability check:", r), !1;
2657
+ }
2658
+ }
2659
+ var cl = (e) => {
2660
+ const t = [];
2661
+ for (const n of e) {
2662
+ let r = n?.getRootNode?.();
2663
+ for (; xr(r); )
2664
+ t.includes(r) || t.push(r), r = r.host.getRootNode?.();
2665
+ }
2666
+ return t;
2667
+ }, dl = (e, t) => {
2668
+ const n = e.getComposedRanges;
2669
+ if (typeof n != "function" || t.length === 0) return null;
2670
+ try {
2671
+ return n.call(e, { shadowRoots: t })[0] ?? null;
2672
+ } catch {
2673
+ try {
2674
+ return n.call(e, ...t)[0] ?? null;
2675
+ } catch {
2676
+ return null;
2677
+ }
2678
+ }
2679
+ }, hl = (e) => {
2680
+ const { startContainer: t, startOffset: n, endContainer: r, endOffset: i } = e, o = t.ownerDocument;
2681
+ if (!o) return null;
2682
+ try {
2683
+ const a = o.createRange();
2684
+ a.setStart(t, n);
2685
+ const f = t.getRootNode();
2686
+ if (r.getRootNode() === f)
2687
+ return a.setEnd(r, i), a;
2688
+ const u = oa(r, f);
2689
+ if (u) a.setEndBefore(u);
2690
+ else if (xr(f)) a.setEnd(f, f.childNodes.length);
2691
+ else return null;
2692
+ return a;
2693
+ } catch {
2694
+ return null;
2695
+ }
2696
+ }, vl = (e) => {
2697
+ if (e.rangeCount === 0) return null;
2698
+ const t = e.getRangeAt(0), n = dl(e, cl([
2699
+ e.anchorNode,
2700
+ e.focusNode,
2701
+ t.startContainer,
2702
+ t.endContainer
2703
+ ])), r = n ? hl(n) : null;
2704
+ return !n || !r ? {
2705
+ range: t,
2706
+ text: e.toString()
2707
+ } : {
2708
+ range: r,
2709
+ text: n.startContainer.getRootNode() === n.endContainer.getRootNode() ? e.toString() : r.toString()
2710
+ };
2711
+ }, Ti = (e) => {
2712
+ const t = e.startContainer, n = na(t);
2713
+ if (!n) return null;
2714
+ const r = ia(n, t);
2715
+ return !dr(r, t) || !dr(r, e.endContainer) ? null : r;
2716
+ }, _l = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-1qnnvrt"><span class="pie-sr-only svelte-1qnnvrt"> </span></button>'), pl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), gl = /* @__PURE__ */ Ie('<span class="pie-tool-annotation-toolbar__action-icon svelte-1qnnvrt" aria-hidden="true"></span>'), bl = /* @__PURE__ */ Ie("<button><!></button>"), wl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!>', 1), ml = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), yl = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-1qnnvrt"> </button>'), kl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!> <!>', 1), $l = /* @__PURE__ */ Ie('<div class="pie-tool-annotation-toolbar notranslate svelte-1qnnvrt" role="toolbar" translate="no" tabindex="-1"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!> <!></div>'), Sl = /* @__PURE__ */ Ie('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-1qnnvrt"> </div>', 1), El = {
2650
2717
  hash: "svelte-1qnnvrt",
2651
2718
  code: `.pie-tool-annotation-toolbar.svelte-1qnnvrt {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);
2652
2719
  /* WCAG 2.2 SC 1.4.11: this stroke is the only boundary between a floating
@@ -2679,16 +2746,17 @@ var el = /* @__PURE__ */ Ne('<button class="pie-tool-annotation-toolbar__highlig
2679
2746
 
2680
2747
  /* Screen reader only content */.pie-sr-only.svelte-1qnnvrt {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}
2681
2748
 
2682
- /* Button styling */.pie-tool-annotation-toolbar__button.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-1qnnvrt {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-1qnnvrt {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-1qnnvrt {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt svg:where(.svelte-1qnnvrt) {width:18px;height:18px;}
2749
+ /* Button styling */.pie-tool-annotation-toolbar__button.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-1qnnvrt {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt:disabled,
2750
+ .pie-tool-annotation-toolbar__button[aria-disabled='true'].svelte-1qnnvrt {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-1qnnvrt {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-1qnnvrt {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-1qnnvrt svg:where(.svelte-1qnnvrt) {width:18px;height:18px;}
2683
2751
 
2684
2752
  /* Composer-supplied icons carry their own viewBox but rarely their own size, so
2685
2753
  the box is set here to keep an action button the same height as the built-in
2686
2754
  ones — a strip of mismatched buttons reads as broken. */.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;}.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt svg {width:100%;height:100%;}`
2687
2755
  };
2688
- function cl(e, t) {
2689
- Ci(t, !0), Rs(e, ul);
2690
- let n = $n(t, "enabled", 7, !0), r = $n(t, "highlightCoordinator", 7, null), i = $n(t, "ttsService", 7, null), o = $n(t, "selectionActions", 7, null);
2691
- const a = typeof window < "u", l = "pie-annotations", d = [
2756
+ function Tl(e, t) {
2757
+ Pi(t, !0), js(e, El);
2758
+ let n = Si(t, "enabled", 7, !0), r = Si(t, "selectionActions", 7, null);
2759
+ const i = typeof window < "u", o = "pie-annotations", a = [
2692
2760
  "button",
2693
2761
  "input",
2694
2762
  "select",
@@ -2699,30 +2767,30 @@ function cl(e, t) {
2699
2767
  '[role="button"]',
2700
2768
  '[role="textbox"]'
2701
2769
  ];
2702
- let _ = /* @__PURE__ */ H(null), g = /* @__PURE__ */ H(null);
2703
- const c = /* @__PURE__ */ Je(() => Xo(f(g))), v = /* @__PURE__ */ Je(() => [
2770
+ let f = /* @__PURE__ */ F(null), u = /* @__PURE__ */ F(null);
2771
+ const h = /* @__PURE__ */ Ae(() => aa(l(u))), _ = /* @__PURE__ */ Ae(() => l(u)?.highlightCoordinator ?? null), d = /* @__PURE__ */ Ae(() => l(u)?.ttsService ?? null), p = /* @__PURE__ */ Ae(() => [
2704
2772
  {
2705
2773
  name: mt.YELLOW,
2706
2774
  hex: "#fde995",
2707
- label: f(c).t("tools.annotationToolbar.highlightYellowA11y")
2775
+ label: l(h).t("tools.annotationToolbar.highlightYellowA11y")
2708
2776
  },
2709
2777
  {
2710
2778
  name: mt.PINK,
2711
2779
  hex: "#ff9fae",
2712
- label: f(c).t("tools.annotationToolbar.highlightPinkA11y")
2780
+ label: l(h).t("tools.annotationToolbar.highlightPinkA11y")
2713
2781
  },
2714
2782
  {
2715
2783
  name: mt.BLUE,
2716
2784
  hex: "#a7e0f6",
2717
- label: f(c).t("tools.annotationToolbar.highlightBlueA11y")
2785
+ label: l(h).t("tools.annotationToolbar.highlightBlueA11y")
2718
2786
  },
2719
2787
  {
2720
2788
  name: mt.GREEN,
2721
2789
  hex: "#a6e1c5",
2722
- label: f(c).t("tools.annotationToolbar.highlightGreenA11y")
2790
+ label: l(h).t("tools.annotationToolbar.highlightGreenA11y")
2723
2791
  }
2724
2792
  ]);
2725
- let u = /* @__PURE__ */ H(null), b = /* @__PURE__ */ H(null), y = /* @__PURE__ */ H(null), h = /* @__PURE__ */ H(at({
2793
+ let c = /* @__PURE__ */ F(null), b = /* @__PURE__ */ F(null), y = /* @__PURE__ */ F(null), v = /* @__PURE__ */ F(at({
2726
2794
  isVisible: !1,
2727
2795
  selectedText: "",
2728
2796
  selectedRange: null,
@@ -2731,385 +2799,371 @@ function cl(e, t) {
2731
2799
  y: 0,
2732
2800
  below: !1
2733
2801
  }
2734
- })), m = /* @__PURE__ */ H(!1), N = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(""), E = /* @__PURE__ */ H(0), D = /* @__PURE__ */ H(null), F = null, G = null, Q = null, bt = null, q = null, ce = /* @__PURE__ */ H(0), Ke = null;
2735
- function on(p, w) {
2736
- Q !== null && clearTimeout(Q), O(j, p, !0), Q = setTimeout(() => {
2737
- O(j, ""), Q = null;
2802
+ })), m = /* @__PURE__ */ F(!1), L = /* @__PURE__ */ F(!1), D = /* @__PURE__ */ F(""), E = /* @__PURE__ */ F(0), H = /* @__PURE__ */ F(null), j = null, Y = null, Q = null, bt = null, q = null, de = /* @__PURE__ */ F(0), Ze = null;
2803
+ function Ct(g, w) {
2804
+ Q !== null && clearTimeout(Q), O(D, g, !0), Q = setTimeout(() => {
2805
+ O(D, ""), Q = null;
2738
2806
  }, w);
2739
2807
  }
2740
- let an = /* @__PURE__ */ Je(() => (f(h).isVisible, Qs(o()))), sn = /* @__PURE__ */ Je(() => f(E) > 0), ln = /* @__PURE__ */ Je(() => f(D) !== null), fn = /* @__PURE__ */ Je(() => f(y)?.scopeElement || f(b)?.scopeElement || null);
2741
- function Kn() {
2742
- const p = f(_)?.ownerDocument;
2743
- return f(fn) || p?.documentElement || document.documentElement;
2744
- }
2808
+ let an = /* @__PURE__ */ Ae(() => (l(v).isVisible, fl(r()))), Kn = /* @__PURE__ */ Ae(() => (l(v).isVisible, ul(l(d), l(u)?.toolkitCoordinator))), sn = /* @__PURE__ */ Ae(() => l(E) > 0), ln = /* @__PURE__ */ Ae(() => l(H) !== null), fn = /* @__PURE__ */ Ae(() => l(y)?.scopeElement || l(b)?.scopeElement || null);
2745
2809
  function Xn() {
2746
- const p = f(b)?.canonicalItemId || f(b)?.itemId || "global";
2747
- return `${l}:${p}`;
2810
+ const g = l(f)?.ownerDocument;
2811
+ return l(fn) || g?.documentElement || document.documentElement;
2748
2812
  }
2749
- function Eo(p) {
2750
- if (!r()) return null;
2751
- const w = r().getAnnotations();
2752
- for (const T of w) {
2753
- const L = p.compareBoundaryPoints(Range.START_TO_START, T.range), Ze = p.compareBoundaryPoints(Range.END_TO_END, T.range), er = p.compareBoundaryPoints(Range.START_TO_END, T.range), vn = p.compareBoundaryPoints(Range.END_TO_START, T.range);
2754
- if (L >= 0 && Ze <= 0 || L <= 0 && Ze >= 0 || er > 0 && vn < 0) return T.id;
2813
+ function Zn() {
2814
+ const g = l(b)?.canonicalItemId || l(b)?.itemId || "global";
2815
+ return `${o}:${g}`;
2816
+ }
2817
+ function Mo(g) {
2818
+ if (!l(_)) return null;
2819
+ const w = l(_).getAnnotations();
2820
+ for (const R of w) {
2821
+ if (g.startContainer.getRootNode() !== R.range.startContainer.getRootNode()) continue;
2822
+ const N = g.compareBoundaryPoints(Range.START_TO_START, R.range), ee = g.compareBoundaryPoints(Range.END_TO_END, R.range), Ot = g.compareBoundaryPoints(Range.START_TO_END, R.range), vn = g.compareBoundaryPoints(Range.END_TO_START, R.range);
2823
+ if (N >= 0 && ee <= 0 || N <= 0 && ee >= 0 || Ot > 0 && vn < 0) return R.id;
2755
2824
  }
2756
2825
  return null;
2757
2826
  }
2758
- function To(p) {
2759
- if (p.nodeType !== Node.ELEMENT_NODE && p.nodeType !== Node.TEXT_NODE) return !1;
2760
- const w = p.nodeType === Node.TEXT_NODE ? p.parentElement : p;
2761
- return w ? !d.some((T) => {
2827
+ function Ro(g) {
2828
+ const w = xr(g) ? g.host : g;
2829
+ return w.nodeType !== Node.ELEMENT_NODE && w.nodeType !== Node.TEXT_NODE ? !1 : !a.some((R) => {
2762
2830
  try {
2763
- return w.closest(T) !== null;
2831
+ return Jo(w, R) !== null;
2764
2832
  } catch {
2765
2833
  return !1;
2766
2834
  }
2767
- }) : !1;
2835
+ });
2768
2836
  }
2769
- function Ao(p) {
2770
- if (!f(fn)) return !0;
2771
- const w = p.commonAncestorContainer, T = w.nodeType === Node.TEXT_NODE ? w.parentElement : w;
2772
- return !!T && f(fn).contains(T);
2837
+ function Co(g) {
2838
+ return l(fn) ? dr(l(fn), g.commonAncestorContainer) : !0;
2773
2839
  }
2774
- function Vr() {
2775
- if (!(!a || !r()))
2840
+ function zr() {
2841
+ if (!(!i || !l(_)))
2776
2842
  try {
2777
- const p = Kn(), w = r().exportAnnotations(p);
2778
- sessionStorage.setItem(Xn(), JSON.stringify(w));
2779
- } catch (p) {
2780
- console.error("[AnnotationToolbar] Failed to save annotations:", p);
2843
+ const g = Xn(), w = l(_).exportAnnotations(g);
2844
+ sessionStorage.setItem(Zn(), JSON.stringify(w));
2845
+ } catch (g) {
2846
+ console.error("[AnnotationToolbar] Failed to save annotations:", g);
2781
2847
  }
2782
2848
  }
2783
- function xo() {
2784
- if (!(!a || !r()))
2849
+ function Oo() {
2850
+ if (!(!i || !l(_)))
2785
2851
  try {
2786
- const p = sessionStorage.getItem(Xn());
2787
- if (!p) return;
2788
- const w = JSON.parse(p), T = Kn(), L = r().importAnnotations(w, T);
2789
- console.log(`[AnnotationToolbar] Restored ${L} annotations`), O(E, r().getAnnotations().length, !0);
2790
- } catch (p) {
2791
- console.error("[AnnotationToolbar] Failed to load annotations:", p);
2852
+ const g = sessionStorage.getItem(Zn());
2853
+ if (!g) return;
2854
+ const w = JSON.parse(g), R = Xn();
2855
+ l(_).importAnnotations(w, R), O(E, l(_).getAnnotations().length, !0);
2856
+ } catch (g) {
2857
+ console.error("[AnnotationToolbar] Failed to load annotations:", g);
2792
2858
  }
2793
2859
  }
2794
- function Zn() {
2795
- !a || G !== null || (G = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (p) => setTimeout(p, 16))(() => {
2796
- G = null, Br();
2860
+ function Jn() {
2861
+ !i || Y !== null || (Y = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (g) => setTimeout(g, 16))(() => {
2862
+ Y = null, Ur();
2797
2863
  }));
2798
2864
  }
2799
- function Br(p = {}) {
2800
- if (!n() || !a || Ks(F, Date.now())) return;
2801
- const w = window.getSelection();
2802
- if (!w || w.rangeCount === 0) return Xe();
2803
- const T = w.getRangeAt(0), L = w.toString().trim();
2804
- if (!L || !Ao(T) || !To(T.commonAncestorContainer)) return Xe();
2805
- if (q !== null && (p.force || q !== L) && (q = null), q === L) return;
2806
- O(D, Eo(T), !0);
2807
- const Ze = f(h).isVisible;
2808
- f(h).isVisible = !0, f(h).selectedText = L, f(h).selectedRange = T.cloneRange(), Jn(T), bt !== L && (bt = L, on(`Annotation toolbar available for "${L.length > 30 ? L.substring(0, 30) + "..." : L}". Press Shift+F10 for annotation tools.`, 4e3)), Ze || (O(N, !0), setTimeout(() => {
2809
- O(N, !1);
2865
+ function Ur(g = {}) {
2866
+ if (!n() || !i || ol(j, Date.now())) return;
2867
+ const w = window.getSelection(), R = w ? vl(w) : null;
2868
+ if (!R) return Je();
2869
+ const { range: N } = R, ee = R.text.trim();
2870
+ if (!ee || !Co(N) || !Ti(N) || !Ro(N.commonAncestorContainer)) return Je();
2871
+ if (q !== null && (g.force || q !== ee) && (q = null), q === ee) return;
2872
+ O(H, Mo(N), !0);
2873
+ const Ot = l(v).isVisible;
2874
+ l(v).isVisible = !0, l(v).selectedText = ee, l(v).selectedRange = N.cloneRange(), Qn(N), bt !== ee && (bt = ee, Ct(`Annotation toolbar available for "${ee.length > 30 ? ee.substring(0, 30) + "..." : ee}". Press Shift+F10 for annotation tools.`, 4e3)), Ot || (O(L, !0), setTimeout(() => {
2875
+ O(L, !1);
2810
2876
  }, 100));
2811
2877
  }
2812
- function Jn(p = f(h).selectedRange) {
2813
- if (!p) return;
2814
- const w = p.getBoundingClientRect(), T = {
2878
+ function Qn(g = l(v).selectedRange) {
2879
+ if (!g) return;
2880
+ const w = g.getBoundingClientRect(), R = {
2815
2881
  width: window.innerWidth || 0,
2816
2882
  height: window.innerHeight || 0
2817
2883
  };
2818
- if (Gs(w, T)) {
2819
- f(h).isVisible = !1;
2884
+ if (rl(w, R)) {
2885
+ l(v).isVisible = !1;
2820
2886
  return;
2821
2887
  }
2822
- f(h).isVisible = !0, f(h).toolbarPosition = Xs(w, T, Mo());
2888
+ l(v).isVisible = !0, l(v).toolbarPosition = al(w, R, Lo());
2823
2889
  }
2824
- function Mo() {
2825
- return f(u) ? {
2826
- width: f(u).offsetWidth,
2827
- height: f(u).offsetHeight
2890
+ function Lo() {
2891
+ return l(c) ? {
2892
+ width: l(c).offsetWidth,
2893
+ height: l(c).offsetHeight
2828
2894
  } : {
2829
2895
  width: 0,
2830
2896
  height: 0
2831
2897
  };
2832
2898
  }
2833
2899
  function un() {
2834
- !f(h).isVisible && !f(h).selectedRange || Jn();
2900
+ !l(v).isVisible && !l(v).selectedRange || Qn();
2835
2901
  }
2836
- function zr() {
2837
- F = Date.now();
2902
+ function Gr() {
2903
+ j = Date.now();
2838
2904
  }
2839
2905
  function cn() {
2840
- F = null, Zn();
2906
+ j = null, Jn();
2841
2907
  }
2842
2908
  function dn() {
2843
- q = f(h).selectedText || null, Xe();
2909
+ q = l(v).selectedText || null, Je();
2844
2910
  }
2845
- function Xe() {
2846
- f(m) && i() && (i().stop(), O(m, !1)), Ro(), f(h).isVisible = !1, f(h).selectedText = "", f(h).selectedRange = null, bt = null, O(ce, 0);
2911
+ function Je() {
2912
+ l(m) && l(d) && (l(d).stop(), O(m, !1)), No(), l(v).isVisible = !1, l(v).selectedText = "", l(v).selectedRange = null, bt = null, O(de, 0);
2847
2913
  }
2848
- function Ro() {
2849
- const p = Ke;
2850
- Ke = null, !(!p || !Ur()) && typeof p.focus == "function" && p.isConnected && p.focus({ preventScroll: !0 });
2914
+ function No() {
2915
+ const g = Ze;
2916
+ Ze = null, !(!g || !Yr()) && typeof g.focus == "function" && g.isConnected && g.focus({ preventScroll: !0 });
2851
2917
  }
2852
- function Ur() {
2853
- if (!f(u) || !a) return !1;
2854
- const p = f(u).getRootNode().activeElement;
2855
- return !!p && f(u).contains(p);
2918
+ function Yr() {
2919
+ if (!l(c) || !i) return !1;
2920
+ const g = l(c).getRootNode().activeElement;
2921
+ return !!g && l(c).contains(g);
2856
2922
  }
2857
- function Qn() {
2858
- return f(u) ? Array.from(f(u).querySelectorAll("button:not([disabled])")) : [];
2923
+ function er() {
2924
+ return l(c) ? Array.from(l(c).querySelectorAll("button:not([disabled])")) : [];
2859
2925
  }
2860
- function Co() {
2861
- const p = Qn();
2862
- if (p.length) {
2863
- if (!Ur() && a) {
2864
- const w = f(u)?.getRootNode()?.activeElement;
2865
- Ke = w instanceof HTMLElement ? w : null;
2926
+ function Po() {
2927
+ const g = er();
2928
+ if (g.length) {
2929
+ if (!Yr() && i) {
2930
+ const w = l(c)?.getRootNode()?.activeElement;
2931
+ Ze = w instanceof HTMLElement ? w : null;
2866
2932
  }
2867
- O(ce, Tr(f(ce), p.length), !0), p[f(ce)]?.focus();
2933
+ O(de, Ar(l(de), g.length), !0), g[l(de)]?.focus();
2868
2934
  }
2869
2935
  }
2870
- function Gr(p) {
2871
- if (!f(h).selectedRange || !r()) return;
2872
- const w = f(h).selectedText;
2873
- r().addAnnotation(f(h).selectedRange, p), O(E, r().getAnnotations().length, !0), Vr();
2874
- const T = p === mt.UNDERLINE ? "underlined" : `highlighted in ${p}`;
2875
- on(`"${w.length > 30 ? w.substring(0, 30) + "..." : w}" ${T}`, 3e3), dn();
2936
+ function Kr(g) {
2937
+ if (!l(v).selectedRange || !l(_)) return;
2938
+ const w = l(v).selectedText;
2939
+ l(_).addAnnotation(l(v).selectedRange, g), O(E, l(_).getAnnotations().length, !0), zr();
2940
+ const R = g === mt.UNDERLINE ? "underlined" : `highlighted in ${g}`;
2941
+ Ct(`"${w.length > 30 ? w.substring(0, 30) + "..." : w}" ${R}`, 3e3), dn();
2876
2942
  }
2877
- function Oo() {
2878
- if (!f(D) || !r()) {
2943
+ function Io() {
2944
+ if (!l(H) || !l(_)) {
2879
2945
  console.warn("[AnnotationToolbar] No overlapping annotation to remove");
2880
2946
  return;
2881
2947
  }
2882
- console.log("[AnnotationToolbar] Removing annotation:", f(D));
2883
- const p = r().getAnnotation(f(D));
2884
- if (!p) {
2885
- console.warn("[AnnotationToolbar] Annotation not found:", f(D));
2948
+ const g = l(_).getAnnotation(l(H));
2949
+ if (!g) {
2950
+ console.warn("[AnnotationToolbar] Annotation not found:", l(H));
2886
2951
  return;
2887
2952
  }
2888
- const w = p.range.toString();
2889
- r().removeAnnotation(f(D));
2890
- const T = r().getAnnotations().length;
2891
- O(E, T, !0), console.log("[AnnotationToolbar] Annotations remaining:", T), Vr(), on(`Removed annotation from "${w.length > 30 ? w.substring(0, 30) + "..." : w}"`, 3e3), dn();
2953
+ const w = g.range.toString();
2954
+ l(_).removeAnnotation(l(H)), O(E, l(_).getAnnotations().length, !0), zr(), Ct(`Removed annotation from "${w.length > 30 ? w.substring(0, 30) + "..." : w}"`, 3e3), dn();
2892
2955
  }
2893
- function Lo() {
2894
- const p = f(E);
2895
- r()?.clearAnnotations(), O(E, 0), sessionStorage.removeItem(Xn()), on(`${p} annotation${p === 1 ? "" : "s"} cleared`, 3e3), dn();
2956
+ function qo() {
2957
+ const g = l(E);
2958
+ l(_)?.clearAnnotations(), O(E, 0), sessionStorage.removeItem(Zn()), Ct(`${g} annotation${g === 1 ? "" : "s"} cleared`, 3e3), dn();
2896
2959
  }
2897
- function No(p) {
2898
- return p.iconSvg ? Zo(p.iconSvg) : "";
2960
+ function Wo(g) {
2961
+ return g.iconSvg ? sa(g.iconSvg) : "";
2899
2962
  }
2900
- function Po(p) {
2901
- const w = f(h).selectedText, T = f(h).selectedRange;
2963
+ function Do(g) {
2964
+ const w = l(v).selectedText, R = l(v).selectedRange;
2902
2965
  try {
2903
- p.run({
2966
+ g.run({
2904
2967
  text: w,
2905
- range: T
2968
+ range: R
2906
2969
  });
2907
- } catch (L) {
2908
- console.error(`[AnnotationToolbar] Selection action "${p.id}" threw:`, L);
2970
+ } catch (N) {
2971
+ console.error(`[AnnotationToolbar] Selection action "${g.id}" threw:`, N);
2909
2972
  }
2910
2973
  dn();
2911
2974
  }
2912
- async function Io() {
2913
- if (!(!f(h).selectedRange || !i())) {
2975
+ async function jo() {
2976
+ if (!(l(m) || !l(v).selectedRange || !l(d) || !l(Kn))) {
2914
2977
  O(m, !0);
2915
2978
  try {
2916
- console.log("[AnnotationToolbar] Speaking range:", f(h).selectedRange.toString().substring(0, 50)), await i().speakRange(f(h).selectedRange, { contentRoot: Kn() }), console.log("[AnnotationToolbar] TTS completed successfully");
2917
- } catch (p) {
2918
- console.error("[AnnotationToolbar] TTS error:", p), alert(`TTS failed: ${p instanceof Error ? p.message : String(p)}`);
2979
+ const g = l(v).selectedRange;
2980
+ await l(d).speak(g, {
2981
+ contentRoot: Ti(g) ?? Xn(),
2982
+ language: l(u)?.contentLanguage,
2983
+ catalogContext: Zo(g.startContainer, l(u))
2984
+ });
2985
+ } catch (g) {
2986
+ console.error("[AnnotationToolbar] TTS error:", g), ra(g) && Ct(l(h).t("tools.textToSpeech.inline.initFailed"), 5e3);
2919
2987
  } finally {
2920
2988
  O(m, !1);
2921
2989
  }
2922
2990
  }
2923
2991
  }
2924
- function Yr(p) {
2925
- if (p.key === "Escape" && f(h).isVisible) {
2926
- p.preventDefault(), Xe();
2992
+ function Xr(g) {
2993
+ if (g.key === "Escape" && l(v).isVisible) {
2994
+ g.preventDefault(), Je();
2927
2995
  return;
2928
2996
  }
2929
- zs(p) && (f(h).isVisible || Br({ force: !0 }), f(h).isVisible && (p.preventDefault(), os().then(() => Co())));
2997
+ tl(g) && (l(v).isVisible || Ur({ force: !0 }), l(v).isVisible && (g.preventDefault(), _s().then(() => Po())));
2930
2998
  }
2931
- function qo(p) {
2932
- if (p.key === "Escape") {
2933
- p.preventDefault(), Xe();
2999
+ function Ho(g) {
3000
+ if (g.key === "Escape") {
3001
+ g.preventDefault(), Je();
2934
3002
  return;
2935
3003
  }
2936
- const w = Qn(), T = Us({
2937
- key: p.key,
2938
- activeIndex: f(ce),
3004
+ const w = er(), R = nl({
3005
+ key: g.key,
3006
+ activeIndex: l(de),
2939
3007
  count: w.length,
2940
- direction: a && f(u) && getComputedStyle(f(u)).direction === "rtl" ? "rtl" : "ltr"
3008
+ direction: i && l(c) && getComputedStyle(l(c)).direction === "rtl" ? "rtl" : "ltr"
2941
3009
  });
2942
- T !== null && (p.preventDefault(), O(ce, T, !0), w[T]?.focus());
3010
+ R !== null && (g.preventDefault(), O(de, R, !0), w[R]?.focus());
2943
3011
  }
2944
- function Wo(p) {
2945
- const w = p.relatedTarget;
2946
- w instanceof Node && f(u)?.contains(w) || (Ke = null, Xe());
3012
+ function Fo(g) {
3013
+ const w = g.relatedTarget;
3014
+ w instanceof Node && l(c)?.contains(w) || (Ze = null, Je());
2947
3015
  }
2948
- function hn(p) {
2949
- if (!f(h).isVisible || f(N) || !f(u)) return;
2950
- const w = (typeof p.composedPath == "function" ? p.composedPath() : []).filter((T) => !!T);
2951
- w.includes(f(u)) || w.length === 0 && f(u).contains(p.target) || (Ke = null, Xe());
3016
+ function hn(g) {
3017
+ if (!l(v).isVisible || l(L) || !l(c)) return;
3018
+ const w = (typeof g.composedPath == "function" ? g.composedPath() : []).filter((R) => !!R);
3019
+ w.includes(l(c)) || w.length === 0 && l(c).contains(g.target) || (Ze = null, Je());
2952
3020
  }
2953
3021
  gn(() => {
2954
- if (!a) return;
2955
- const p = setTimeout(() => {
2956
- xo();
2957
- }, 2e3), w = f(fn) || document;
2958
- return w.addEventListener("click", hn), w.addEventListener("touchstart", hn), document.addEventListener("selectionchange", Zn), w.addEventListener("pointerdown", zr), document.addEventListener("pointerup", cn), document.addEventListener("pointercancel", cn), document.addEventListener("keydown", Yr), window.addEventListener("scroll", un, !0), window.addEventListener("resize", un), () => {
2959
- clearTimeout(p), Q !== null && clearTimeout(Q), G !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(G), G = null), w.removeEventListener("click", hn), w.removeEventListener("touchstart", hn), document.removeEventListener("selectionchange", Zn), w.removeEventListener("pointerdown", zr), document.removeEventListener("pointerup", cn), document.removeEventListener("pointercancel", cn), document.removeEventListener("keydown", Yr), window.removeEventListener("scroll", un, !0), window.removeEventListener("resize", un);
3022
+ if (!i) return;
3023
+ const g = setTimeout(() => {
3024
+ Oo();
3025
+ }, 2e3), w = l(fn) || document;
3026
+ return w.addEventListener("click", hn), w.addEventListener("touchstart", hn), document.addEventListener("selectionchange", Jn), w.addEventListener("pointerdown", Gr), document.addEventListener("pointerup", cn), document.addEventListener("pointercancel", cn), document.addEventListener("keydown", Xr), window.addEventListener("scroll", un, !0), window.addEventListener("resize", un), () => {
3027
+ clearTimeout(g), Q !== null && clearTimeout(Q), Y !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(Y), Y = null), w.removeEventListener("click", hn), w.removeEventListener("touchstart", hn), document.removeEventListener("selectionchange", Jn), w.removeEventListener("pointerdown", Gr), document.removeEventListener("pointerup", cn), document.removeEventListener("pointercancel", cn), document.removeEventListener("keydown", Xr), window.removeEventListener("scroll", un, !0), window.removeEventListener("resize", un);
2960
3028
  };
2961
3029
  }), gn(() => {
2962
- f(h).isVisible, f(u), f(an), f(ln), f(sn), i(), Jt(() => {
2963
- !f(h).isVisible || !f(u) || Jn();
3030
+ l(v).isVisible, l(c), l(an), l(ln), l(sn), l(Kn), Qt(() => {
3031
+ !l(v).isVisible || !l(c) || Qn();
2964
3032
  });
2965
3033
  }), gn(() => {
2966
- f(h).isVisible, f(ce), f(ln), f(sn), f(m), f(an), Jt(() => {
2967
- const p = Qn();
2968
- if (p.length === 0) return;
2969
- const w = Tr(f(ce), p.length);
2970
- w !== f(ce) && O(ce, w, !0), p.forEach((T, L) => {
2971
- T.tabIndex = L === w ? 0 : -1;
3034
+ l(v).isVisible, l(de), l(ln), l(sn), l(m), l(an), Qt(() => {
3035
+ const g = er();
3036
+ if (g.length === 0) return;
3037
+ const w = Ar(l(de), g.length);
3038
+ w !== l(de) && O(de, w, !0), g.forEach((R, N) => {
3039
+ R.tabIndex = N === w ? 0 : -1;
2972
3040
  });
2973
3041
  });
2974
3042
  }), gn(() => {
2975
- if (!f(_)) return;
2976
- const p = Yo(f(_), (L) => {
2977
- O(b, L, !0);
2978
- }), w = Go(f(_), (L) => {
2979
- O(y, L, !0);
2980
- }), T = Ko(f(_), (L) => {
2981
- O(g, L, !0);
3043
+ if (!l(f)) return;
3044
+ const g = ta(l(f), (N) => {
3045
+ O(b, N, !0);
3046
+ }), w = Qo(l(f), (N) => {
3047
+ O(y, N, !0);
3048
+ }), R = ea(l(f), (N) => {
3049
+ O(u, N, !0);
2982
3050
  });
2983
3051
  return () => {
2984
- T(), w(), p();
3052
+ R(), w(), g();
2985
3053
  };
2986
3054
  });
2987
- var jo = {
3055
+ var Vo = {
2988
3056
  get enabled() {
2989
3057
  return n();
2990
3058
  },
2991
- set enabled(p = !0) {
2992
- n(p), Et();
2993
- },
2994
- get highlightCoordinator() {
2995
- return r();
2996
- },
2997
- set highlightCoordinator(p = null) {
2998
- r(p), Et();
2999
- },
3000
- get ttsService() {
3001
- return i();
3002
- },
3003
- set ttsService(p = null) {
3004
- i(p), Et();
3059
+ set enabled(g = !0) {
3060
+ n(g), Dn();
3005
3061
  },
3006
3062
  get selectionActions() {
3007
- return o();
3063
+ return r();
3008
3064
  },
3009
- set selectionActions(p = null) {
3010
- o(p), Et();
3011
- }
3012
- }, Kr = fl(), Xr = pn(Kr);
3013
- yi(Xr, (p) => O(_, p), () => f(_));
3014
- var Zr = Te(Xr, 2), Do = (p) => {
3015
- var w = ll(), T = Tn(w);
3016
- _i(T, 17, () => f(v), Es, (Y, Z) => {
3017
- var B = el(), ge = Tn(B), ee = rr(ge, !0);
3018
- qt(B), Ie(() => {
3019
- bi(B, `background-color: ${f(Z).hex ?? ""};`), K(B, "aria-label", f(Z).label), K(B, "title", f(Z).label), wn(ee, f(Z).label);
3020
- }), Ve("click", B, () => Gr(f(Z).name)), de(Y, B);
3065
+ set selectionActions(g = null) {
3066
+ r(g), Dn();
3067
+ }
3068
+ }, Zr = Sl(), Jr = pn(Zr);
3069
+ $i(Jr, (g) => O(f, g), () => l(f));
3070
+ var Qr = xe(Jr, 2), Bo = (g) => {
3071
+ var w = $l(), R = En(w);
3072
+ gi(R, 17, () => l(p), Ps, (K, Z) => {
3073
+ var B = _l(), be = En(B), te = rr(be, !0);
3074
+ Wt(B), We(() => {
3075
+ mi(B, `background-color: ${l(Z).hex ?? ""};`), G(B, "aria-label", l(Z).label), G(B, "title", l(Z).label), wn(te, l(Z).label);
3076
+ }), ze("click", B, () => Kr(l(Z).name)), he(K, B);
3021
3077
  });
3022
- var L = Te(T, 2), Ze = Te(L, 2), er = (Y) => {
3023
- var Z = tl(), B = Te(pn(Z), 2);
3024
- Ie((ge, ee) => {
3025
- B.disabled = f(m), K(B, "aria-label", ge), K(B, "title", ee);
3026
- }, [() => f(c).t("tools.annotationToolbar.readAloudA11y"), () => f(c).t("tools.annotationToolbar.readAloud")]), Ve("click", B, Io), de(Y, Z);
3078
+ var N = xe(R, 2), ee = xe(N, 2), Ot = (K) => {
3079
+ var Z = pl(), B = xe(pn(Z), 2);
3080
+ We((be, te) => {
3081
+ G(B, "aria-disabled", l(m)), G(B, "aria-label", be), G(B, "title", te);
3082
+ }, [() => l(h).t("tools.annotationToolbar.readAloudA11y"), () => l(h).t("tools.annotationToolbar.readAloud")]), ze("click", B, jo), he(K, Z);
3027
3083
  };
3028
- et(Ze, (Y) => {
3029
- i() && Y(er);
3084
+ et(ee, (K) => {
3085
+ l(Kn) && K(Ot);
3030
3086
  });
3031
- var vn = Te(Ze, 2), Vo = (Y) => {
3032
- var Z = il(), B = Te(pn(Z), 2);
3033
- _i(B, 17, () => f(an), (ge) => ge.id, (ge, ee) => {
3034
- const Ot = /* @__PURE__ */ Je(() => No(f(ee)));
3035
- var J = rl();
3036
- let ie;
3037
- var Lt = Tn(J), Nt = (He) => {
3038
- var wt = nl();
3039
- Ms(wt, () => f(Ot), !0), qt(wt), de(He, wt);
3040
- }, tr = (He) => {
3041
- var wt = us();
3042
- Ie(() => wn(wt, f(ee).label)), de(He, wt);
3087
+ var vn = xe(ee, 2), Go = (K) => {
3088
+ var Z = wl(), B = xe(pn(Z), 2);
3089
+ gi(B, 17, () => l(an), (be) => be.id, (be, te) => {
3090
+ const Lt = /* @__PURE__ */ Ae(() => Wo(l(te)));
3091
+ var J = bl();
3092
+ let oe;
3093
+ var Nt = En(J), Pt = (Be) => {
3094
+ var wt = gl();
3095
+ Ds(wt, () => l(Lt), !0), Wt(wt), he(Be, wt);
3096
+ }, tr = (Be) => {
3097
+ var wt = ms();
3098
+ We(() => wn(wt, l(te).label)), he(Be, wt);
3043
3099
  };
3044
- et(Lt, (He) => {
3045
- f(Ot) ? He(Nt) : He(tr, -1);
3046
- }), qt(J), Ie(() => {
3047
- ie = Ls(J, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, ie, { "pie-tool-annotation-toolbar__button--icon": !!f(Ot) }), K(J, "data-pie-selection-action", f(ee).id), K(J, "aria-label", f(ee).label), K(J, "title", f(ee).tooltip || f(ee).label);
3048
- }), Ve("click", J, () => Po(f(ee))), de(ge, J);
3049
- }), de(Y, Z);
3100
+ et(Nt, (Be) => {
3101
+ l(Lt) ? Be(Pt) : Be(tr, -1);
3102
+ }), Wt(J), We(() => {
3103
+ oe = Vs(J, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, oe, { "pie-tool-annotation-toolbar__button--icon": !!l(Lt) }), G(J, "data-pie-selection-action", l(te).id), G(J, "aria-label", l(te).label), G(J, "title", l(te).tooltip || l(te).label);
3104
+ }), ze("click", J, () => Do(l(te))), he(be, J);
3105
+ }), he(K, Z);
3050
3106
  };
3051
- et(vn, (Y) => {
3052
- f(an).length > 0 && Y(Vo);
3107
+ et(vn, (K) => {
3108
+ l(an).length > 0 && K(Go);
3053
3109
  });
3054
- var Bo = Te(vn, 2), zo = (Y) => {
3055
- var Z = sl(), B = Te(pn(Z), 2), ge = (J) => {
3056
- var ie = ol();
3057
- Ie((Lt, Nt) => {
3058
- K(ie, "aria-label", Lt), K(ie, "title", Nt);
3059
- }, [() => f(c).t("tools.annotationToolbar.removeA11y"), () => f(c).t("tools.annotationToolbar.remove")]), Ve("click", ie, Oo), de(J, ie);
3110
+ var Yo = xe(vn, 2), Ko = (K) => {
3111
+ var Z = kl(), B = xe(pn(Z), 2), be = (J) => {
3112
+ var oe = ml();
3113
+ We((Nt, Pt) => {
3114
+ G(oe, "aria-label", Nt), G(oe, "title", Pt);
3115
+ }, [() => l(h).t("tools.annotationToolbar.removeA11y"), () => l(h).t("tools.annotationToolbar.remove")]), ze("click", oe, Io), he(J, oe);
3060
3116
  };
3061
3117
  et(B, (J) => {
3062
- f(ln) && J(ge);
3118
+ l(ln) && J(be);
3063
3119
  });
3064
- var ee = Te(B, 2), Ot = (J) => {
3065
- var ie = al(), Lt = rr(ie, !0);
3066
- Ie((Nt, tr, He) => {
3067
- K(ie, "aria-label", Nt), K(ie, "title", tr), wn(Lt, He);
3120
+ var te = xe(B, 2), Lt = (J) => {
3121
+ var oe = yl(), Nt = rr(oe, !0);
3122
+ We((Pt, tr, Be) => {
3123
+ G(oe, "aria-label", Pt), G(oe, "title", tr), wn(Nt, Be);
3068
3124
  }, [
3069
- () => f(c).t("tools.annotationToolbar.clearAllA11y"),
3070
- () => f(c).t("tools.annotationToolbar.clearAll"),
3071
- () => f(c).t("tools.annotationToolbar.clearAll")
3072
- ]), Ve("click", ie, Lo), de(J, ie);
3125
+ () => l(h).t("tools.annotationToolbar.clearAllA11y"),
3126
+ () => l(h).t("tools.annotationToolbar.clearAll"),
3127
+ () => l(h).t("tools.annotationToolbar.clearAll")
3128
+ ]), ze("click", oe, qo), he(J, oe);
3073
3129
  };
3074
- et(ee, (J) => {
3075
- f(sn) && J(Ot);
3076
- }), de(Y, Z);
3130
+ et(te, (J) => {
3131
+ l(sn) && J(Lt);
3132
+ }), he(K, Z);
3077
3133
  };
3078
- et(Bo, (Y) => {
3079
- (f(ln) || f(sn)) && Y(zo);
3080
- }), qt(w), yi(w, (Y) => O(u, Y), () => f(u)), Ie((Y, Z, B, ge, ee) => {
3081
- K(w, "data-pie-placement", f(h).toolbarPosition.below ? "below" : "above"), bi(w, `left:${f(h).toolbarPosition.x}px; top:${f(h).toolbarPosition.y}px;`), K(w, "lang", Y), K(w, "dir", Z), K(w, "aria-label", B), K(L, "aria-label", ge), K(L, "title", ee), w.dir = w.dir;
3134
+ et(Yo, (K) => {
3135
+ (l(ln) || l(sn)) && K(Ko);
3136
+ }), Wt(w), $i(w, (K) => O(c, K), () => l(c)), We((K, Z, B, be, te) => {
3137
+ G(w, "data-pie-placement", l(v).toolbarPosition.below ? "below" : "above"), mi(w, `left:${l(v).toolbarPosition.x}px; top:${l(v).toolbarPosition.y}px;`), G(w, "lang", K), G(w, "dir", Z), G(w, "aria-label", B), G(N, "aria-label", be), G(N, "title", te), w.dir = w.dir;
3082
3138
  }, [
3083
- () => f(c).getLocale(),
3084
- () => f(c).getDirection?.() ?? "ltr",
3085
- () => f(c).t("tools.annotationToolbar.toolbarA11y"),
3086
- () => f(c).t("tools.annotationToolbar.underlineA11y"),
3087
- () => f(c).t("tools.annotationToolbar.underline")
3088
- ]), Ve("keydown", w, qo), Ve("focusout", w, Wo), Ve("click", L, () => Gr(mt.UNDERLINE)), de(p, w);
3139
+ () => l(h).getLocale(),
3140
+ () => l(h).getDirection?.() ?? "ltr",
3141
+ () => l(h).t("tools.annotationToolbar.toolbarA11y"),
3142
+ () => l(h).t("tools.annotationToolbar.underlineA11y"),
3143
+ () => l(h).t("tools.annotationToolbar.underline")
3144
+ ]), ze("keydown", w, Ho), ze("focusout", w, Fo), ze("click", N, () => Kr(mt.UNDERLINE)), he(g, w);
3089
3145
  };
3090
- et(Zr, (p) => {
3091
- f(h).isVisible && p(Do);
3146
+ et(Qr, (g) => {
3147
+ l(v).isVisible && g(Bo);
3092
3148
  });
3093
- var Fo = Te(Zr, 2), Ho = rr(Fo, !0);
3094
- return Ie(() => wn(Ho, f(j))), de(e, Kr), Oi(jo);
3149
+ var zo = xe(Qr, 2), Uo = rr(zo, !0);
3150
+ return We(() => wn(Uo, l(D))), he(e, Zr), Ii(Vo);
3095
3151
  }
3096
- as([
3152
+ ps([
3097
3153
  "keydown",
3098
3154
  "focusout",
3099
3155
  "click"
3100
3156
  ]);
3101
- dl("pie-tool-annotation-toolbar", Bs(cl, {
3157
+ Al("pie-tool-annotation-toolbar", el(Tl, {
3102
3158
  enabled: {
3103
3159
  attribute: "enabled",
3104
3160
  type: "Boolean"
3105
3161
  },
3106
- highlightCoordinator: { type: "Object" },
3107
- ttsService: { type: "Object" },
3108
3162
  selectionActions: { type: "Object" }
3109
- }, [], [], { mode: "open" }, Uo));
3110
- function dl(e, t) {
3163
+ }, [], [], { mode: "open" }, Xo));
3164
+ function Al(e, t) {
3111
3165
  customElements.get(e) || customElements.define(e, t);
3112
3166
  }
3113
3167
  export {
3114
- cl as default
3168
+ Tl as default
3115
3169
  };