@tenuuki/tenuuki-spin 0.0.17 → 0.0.19

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.
@@ -201,7 +201,7 @@ function it(e, t = !1, n) {
201
201
  e: null,
202
202
  s: e,
203
203
  x: null,
204
- r: U,
204
+ r: H,
205
205
  l: i && !t ? {
206
206
  s: null,
207
207
  u: null,
@@ -213,7 +213,7 @@ function at(e) {
213
213
  var t = D, n = t.e;
214
214
  if (n !== null) {
215
215
  t.e = null;
216
- for (var r of n) er(r);
216
+ for (var r of n) tr(r);
217
217
  }
218
218
  return e !== void 0 && (t.x = e), t.i = !0, D = t.p, ot(e);
219
219
  }
@@ -255,12 +255,12 @@ function mt(e, t) {
255
255
  }
256
256
  // node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
257
257
  function ht(e) {
258
- var t = V, n = U;
259
- H(null), W(null);
258
+ var t = B, n = H;
259
+ V(null), U(null);
260
260
  try {
261
261
  return e();
262
262
  } finally {
263
- H(t), W(n);
263
+ V(t), U(n);
264
264
  }
265
265
  }
266
266
  // \0@oxc-project+runtime@0.156.0/helpers/esm/OverloadYield.js
@@ -335,7 +335,7 @@ function vt(e, t, n, r) {
335
335
  r(o);
336
336
  return;
337
337
  }
338
- var s = U, c = yt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
338
+ var s = H, c = yt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
339
339
  function u(e) {
340
340
  if (!(s.f & 16384)) {
341
341
  c();
@@ -360,16 +360,16 @@ function vt(e, t, n, r) {
360
360
  }) : f();
361
361
  }
362
362
  function yt() {
363
- var e = U, t = V, n = D, r = N;
363
+ var e = H, t = B, n = D, r = N;
364
364
  return function(i = !0) {
365
- W(e), H(t), rt(n), i && !(e.f & 16384) && (r == null || r.activate(), r == null || r.apply());
365
+ U(e), V(t), rt(n), i && !(e.f & 16384) && (r == null || r.activate(), r == null || r.apply());
366
366
  };
367
367
  }
368
368
  function bt(e = !0) {
369
- W(null), H(null), rt(null), e && (N == null || N.deactivate());
369
+ U(null), V(null), rt(null), e && (N == null || N.deactivate());
370
370
  }
371
371
  function xt() {
372
- var e = U, t = e.b, n = N, r = !!(t != null && t.is_rendered());
372
+ var e = H, t = e.b, n = N, r = !!(t != null && t.is_rendered());
373
373
  return t == null || t.update_pending_count(1, n), n.increment(r, e), () => {
374
374
  t == null || t.update_pending_count(-1, n), n.decrement(r, e);
375
375
  };
@@ -377,7 +377,7 @@ function xt() {
377
377
  /*#__NO_SIDE_EFFECTS__*/
378
378
  function St(e) {
379
379
  var t = 2 | C;
380
- return U !== null && (U.f |= ge), {
380
+ return H !== null && (H.f |= ge), {
381
381
  ctx: D,
382
382
  deps: null,
383
383
  effects: null,
@@ -388,18 +388,18 @@ function St(e) {
388
388
  rv: 0,
389
389
  v: s,
390
390
  wv: 0,
391
- parent: U,
391
+ parent: H,
392
392
  ac: null
393
393
  };
394
394
  }
395
395
  var Ct = Symbol("obsolete");
396
396
  /*#__NO_SIDE_EFFECTS__*/
397
397
  function wt(e, t, n) {
398
- let r = U;
398
+ let r = H;
399
399
  r === null && We();
400
- var i = void 0, a = Sn(s), o = !V, c = /* @__PURE__ */ new Set();
401
- return sr(() => {
402
- var t = U, n = oe();
400
+ var i = void 0, a = Sn(s), o = !B, c = /* @__PURE__ */ new Set();
401
+ return cr(() => {
402
+ var t = H, n = oe();
403
403
  i = n.promise;
404
404
  try {
405
405
  Promise.resolve(e()).then(n.resolve, (e) => {
@@ -422,7 +422,7 @@ function wt(e, t, n) {
422
422
  u == null || u(), c.delete(n), t !== Ct && (s.activate(), t ? (a.f |= be, En(a, t)) : (a.f & 8388608 && (a.f ^= be), En(a, e)), s.deactivate());
423
423
  };
424
424
  n.promise.then(f, (e) => f(null, e || "unknown"));
425
- }), Qn(() => {
425
+ }), $n(() => {
426
426
  for (let e of c) e.reject(Ct);
427
427
  }), new Promise((e) => {
428
428
  function t(n) {
@@ -443,23 +443,23 @@ function Et(e) {
443
443
  var t = e.effects;
444
444
  if (t !== null) {
445
445
  e.effects = null;
446
- for (var n = 0; n < t.length; n += 1) B(t[n]);
446
+ for (var n = 0; n < t.length; n += 1) z(t[n]);
447
447
  }
448
448
  }
449
449
  function Dt(e) {
450
- var t, n = U, r = e.parent;
451
- if (!Cr && r !== null && e.v !== s && r.f & 24576) return je(), e.v;
452
- W(r);
450
+ var t, n = H, r = e.parent;
451
+ if (!wr && r !== null && e.v !== s && r.f & 24576) return je(), e.v;
452
+ U(r);
453
453
  try {
454
- Et(e), t = Ir(e);
454
+ Et(e), t = Lr(e);
455
455
  } finally {
456
- W(n);
456
+ U(n);
457
457
  }
458
458
  return t;
459
459
  }
460
460
  function Ot(e) {
461
461
  var t = Dt(e);
462
- !e.equals(t) && (e.wv = Nr(), (!(N != null && N.is_fork) || e.deps === null) && (N === null ? e.v = t : (N.capture(e, t, !0), Ft == null || Ft.capture(e, t, !0)), e.deps === null)) ? O(e, S) : Cr || (P === null ? pt(e) : (Zn() || N != null && N.is_fork) && P.set(e, t));
462
+ !e.equals(t) && (e.wv = Pr(), (!(N != null && N.is_fork) || e.deps === null) && (N === null ? e.v = t : (N.capture(e, t, !0), Ft == null || Ft.capture(e, t, !0)), e.deps === null)) ? O(e, S) : wr || (P === null ? pt(e) : (Qn() || N != null && N.is_fork) && P.set(e, t));
463
463
  }
464
464
  function kt(e) {
465
465
  if (e.effects !== null) {
@@ -467,12 +467,12 @@ function kt(e) {
467
467
  var t;
468
468
  (t = n.teardown) == null || t.call(n), n.ac !== null && ht(() => {
469
469
  n.ac.abort(ke), n.ac = null;
470
- }), n.fn !== null && (n.teardown = re), zr(n, 0), pr(n);
470
+ }), n.fn !== null && (n.teardown = re), Br(n, 0), mr(n);
471
471
  }
472
472
  }
473
473
  }
474
474
  function At(e) {
475
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Br(t);
475
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Vr(t);
476
476
  }
477
477
  // \0@oxc-project+runtime@0.156.0/helpers/esm/checkPrivateRedeclaration.js
478
478
  function jt(e, t) {
@@ -662,7 +662,7 @@ function on(e, t, n) {
662
662
  for (var r = e.first; r !== null;) {
663
663
  var i = r.f, a = !!(i & 96);
664
664
  if (!(a && i & 1024 || i & 8192 || j(Zt, this).has(r)) && r.fn !== null) {
665
- a ? r.f ^= S : i & 4 ? t.push(r) : Pr(r) && (i & 16 && this.add_dirty_reaction(r, ue), Br(r));
665
+ a ? r.f ^= S : i & 4 ? t.push(r) : Fr(r) && (i & 16 && this.add_dirty_reaction(r, ue), Vr(r));
666
666
  var o = r.first;
667
667
  if (o !== null) {
668
668
  r = o;
@@ -743,7 +743,7 @@ function hn(e) {
743
743
  if (t !== 0) {
744
744
  for (var n = 0; n < t;) {
745
745
  var r = e[n++];
746
- if (!(r.f & 24576) && Pr(r) && (mn = /* @__PURE__ */ new Set(), Br(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && gr(r), (mn == null ? void 0 : mn.size) > 0)) {
746
+ if (!(r.f & 24576) && Fr(r) && (mn = /* @__PURE__ */ new Set(), Vr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && _r(r), (mn == null ? void 0 : mn.size) > 0)) {
747
747
  bn.clear();
748
748
  for (let e of mn) {
749
749
  if (e.f & 24576) continue;
@@ -751,7 +751,7 @@ function hn(e) {
751
751
  for (; n !== null;) mn.has(n) && (mn.delete(n), t.push(n)), n = n.parent;
752
752
  for (let e = t.length - 1; e >= 0; e--) {
753
753
  let n = t[e];
754
- n.f & 24576 || Br(n);
754
+ n.f & 24576 || Vr(n);
755
755
  }
756
756
  }
757
757
  mn.clear();
@@ -788,7 +788,7 @@ function Sn(e, t) {
788
788
  /*#__NO_SIDE_EFFECTS__*/
789
789
  function Cn(e, t) {
790
790
  let n = Sn(e, t);
791
- return Dr(n), n;
791
+ return Or(n), n;
792
792
  }
793
793
  /*#__NO_SIDE_EFFECTS__*/
794
794
  function I(e, t = !1, n = !0) {
@@ -800,18 +800,18 @@ function I(e, t = !1, n = !0) {
800
800
  return r;
801
801
  }
802
802
  function L(e, t, n = !1) {
803
- return V !== null && (!Tr || V.f & 131072) && st() && V.f & 4325394 && (Er === null || !Er.has(e)) && $e(), En(e, n ? jn(t) : t, Bt);
803
+ return B !== null && (!Er || B.f & 131072) && st() && B.f & 4325394 && (Dr === null || !Dr.has(e)) && $e(), En(e, n ? jn(t) : t, Bt);
804
804
  }
805
805
  var wn = null, Tn = 0;
806
806
  function En(e, t, n = null) {
807
807
  if (!e.equals(t)) {
808
- Cr ? bn.set(e, t) : bn.has(e) || bn.set(e, e.v);
808
+ wr ? bn.set(e, t) : bn.has(e) || bn.set(e, e.v);
809
809
  var r = en.ensure();
810
810
  if (r.capture(e, t), e.f & 2) {
811
811
  let t = e;
812
812
  e.f & 2048 && Dt(t), P === null && pt(t);
813
813
  }
814
- e.wv = Nr(), wn = null, Tn = 0, An(e, C, n), wn = null, st() && U !== null && U.f & 1024 && !(U.f & 96) && (q === null ? Or([e]) : q.push(e)), !r.is_fork && yn.size > 0 && !xn && Dn();
814
+ e.wv = Pr(), wn = null, Tn = 0, An(e, C, n), wn = null, st() && H !== null && H.f & 1024 && !(H.f & 96) && (K === null ? kr([e]) : K.push(e)), !r.is_fork && yn.size > 0 && !xn && Dn();
815
815
  }
816
816
  return t;
817
817
  }
@@ -821,16 +821,16 @@ function Dn() {
821
821
  e.f & 1024 && O(e, ue);
822
822
  let t;
823
823
  try {
824
- t = Pr(e);
824
+ t = Fr(e);
825
825
  } catch (e) {
826
826
  t = !0;
827
827
  }
828
- t && Br(e);
828
+ t && Vr(e);
829
829
  }
830
830
  yn.clear();
831
831
  }
832
832
  function On(e, t = 1) {
833
- var n = J(e), r = t === 1 ? n++ : n--;
833
+ var n = q(e), r = t === 1 ? n++ : n--;
834
834
  return L(e, n), r;
835
835
  }
836
836
  function kn(e) {
@@ -846,7 +846,7 @@ function An(e, t, n) {
846
846
  }
847
847
  for (var o = 0; o < a; o++) {
848
848
  var s = r[o], c = s.f;
849
- if (i || s !== U) {
849
+ if (i || s !== H) {
850
850
  var l = (c & C) === 0;
851
851
  if (l && O(s, t), c & 131072) yn.add(s);
852
852
  else if (c & 2) {
@@ -864,12 +864,12 @@ function jn(e) {
864
864
  if (typeof e != "object" || !e || xe in e || Se in e) return e;
865
865
  let t = te(e);
866
866
  if (t !== v && t !== y) return e;
867
- var n = /* @__PURE__ */ new Map(), r = d(e), i = /* @__PURE__ */ Cn(0), a = null, o = jr, c = (e) => {
868
- if (jr === o) return e();
869
- var t = V, n = jr;
870
- H(null), Mr(o);
867
+ var n = /* @__PURE__ */ new Map(), r = d(e), i = /* @__PURE__ */ Cn(0), a = null, o = Mr, c = (e) => {
868
+ if (Mr === o) return e();
869
+ var t = B, n = Mr;
870
+ V(null), Nr(o);
871
871
  var r = e();
872
- return H(t), Mr(n), r;
872
+ return V(t), Nr(n), r;
873
873
  };
874
874
  return r && n.set("length", /* @__PURE__ */ Cn(e.length, a)), new Proxy(e, {
875
875
  defineProperty(e, t, r) {
@@ -895,7 +895,7 @@ function jn(e) {
895
895
  if (r === xe) return e;
896
896
  var l = n.get(r), u = r in t;
897
897
  if (l === void 0 && (!u || (o = _(t, r)) != null && o.writable) && (l = c(() => /* @__PURE__ */ Cn(jn(u ? t[r] : s), a)), n.set(r, l)), l !== void 0) {
898
- var d = J(l);
898
+ var d = q(l);
899
899
  return d === s ? void 0 : d;
900
900
  }
901
901
  return Reflect.get(t, r, i);
@@ -905,7 +905,7 @@ function jn(e) {
905
905
  (r = this.has) == null || r.call(this, e, t);
906
906
  var i = Reflect.getOwnPropertyDescriptor(e, t), a = n.get(t);
907
907
  if (a !== void 0) {
908
- var o = J(a);
908
+ var o = q(a);
909
909
  if (o === s) return;
910
910
  if (i && "value" in i) i.value = o;
911
911
  else return {
@@ -921,7 +921,7 @@ function jn(e) {
921
921
  var r;
922
922
  if (t === xe) return !0;
923
923
  var i = n.get(t), o = i !== void 0 && i.v !== s || Reflect.has(e, t);
924
- return (i !== void 0 || (U !== null || V !== null) && (!o || (r = _(e, t)) != null && r.writable)) && (i === void 0 && (i = c(() => /* @__PURE__ */ Cn(o ? jn(e[t]) : s, a)), n.set(t, i)), J(i) === s) ? !1 : o;
924
+ return (i !== void 0 || (H !== null || B !== null) && (!o || (r = _(e, t)) != null && r.writable)) && (i === void 0 && (i = c(() => /* @__PURE__ */ Cn(o ? jn(e[t]) : s, a)), n.set(t, i)), q(i) === s) ? !1 : o;
925
925
  },
926
926
  set(e, t, o, l) {
927
927
  var u = n.get(t), d = t in e;
@@ -948,7 +948,7 @@ function jn(e) {
948
948
  return !0;
949
949
  },
950
950
  ownKeys(e) {
951
- J(i);
951
+ q(i);
952
952
  var t = Reflect.ownKeys(e).filter((e) => {
953
953
  var t = n.get(e);
954
954
  return t === void 0 || t.v !== s;
@@ -1037,8 +1037,8 @@ function Kn(e) {
1037
1037
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1038
1038
  }
1039
1039
  function qn(e) {
1040
- var t = U;
1041
- if (t === null) return V.f |= be, e;
1040
+ var t = H;
1041
+ if (t === null) return B.f |= be, e;
1042
1042
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
1043
1043
  Jn(e, t);
1044
1044
  }
@@ -1062,14 +1062,14 @@ function Jn(e, t) {
1062
1062
  }
1063
1063
  // node_modules/svelte/src/internal/client/reactivity/effects.js
1064
1064
  function Yn(e) {
1065
- U === null && (V === null && qe(e), Ke()), Cr && Ge(e);
1065
+ H === null && (B === null && qe(e), Ke()), wr && Ge(e);
1066
1066
  }
1067
1067
  function Xn(e, t) {
1068
1068
  var n = t.last;
1069
1069
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1070
1070
  }
1071
- function z(e, t) {
1072
- var n = U;
1071
+ function Zn(e, t) {
1072
+ var n = H;
1073
1073
  n !== null && n.f & 8192 && (e |= de);
1074
1074
  var r = {
1075
1075
  ctx: D,
@@ -1092,120 +1092,120 @@ function z(e, t) {
1092
1092
  if (e & 4) zt === null ? en.ensure().schedule(r) : zt.push(r);
1093
1093
  else if (t !== null) {
1094
1094
  try {
1095
- Br(r);
1095
+ Vr(r);
1096
1096
  } catch (e) {
1097
- throw B(r), e;
1097
+ throw z(r), e;
1098
1098
  }
1099
1099
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= he));
1100
1100
  }
1101
- if (i !== null && (i.parent = n, n !== null && Xn(i, n), V !== null && V.f & 2 && !(e & 64))) {
1102
- var a, o = V;
1101
+ if (i !== null && (i.parent = n, n !== null && Xn(i, n), B !== null && B.f & 2 && !(e & 64))) {
1102
+ var a, o = B;
1103
1103
  ((a = o.effects) == null ? o.effects = [] : a).push(i);
1104
1104
  }
1105
1105
  return r;
1106
1106
  }
1107
- function Zn() {
1108
- return V !== null && !Tr;
1107
+ function Qn() {
1108
+ return B !== null && !Er;
1109
1109
  }
1110
- function Qn(e) {
1111
- let t = z(8, null);
1110
+ function $n(e) {
1111
+ let t = Zn(8, null);
1112
1112
  return O(t, S), t.teardown = e, t;
1113
1113
  }
1114
- function $n(e) {
1114
+ function er(e) {
1115
1115
  Yn("$effect");
1116
- var t = U.f;
1117
- if (!V && t & 32 && D !== null && !D.i) {
1116
+ var t = H.f;
1117
+ if (!B && t & 32 && D !== null && !D.i) {
1118
1118
  var n, r = D;
1119
1119
  ((n = r.e) == null ? r.e = [] : n).push(e);
1120
- } else return er(e);
1121
- }
1122
- function er(e) {
1123
- return z(4 | _e, e);
1120
+ } else return tr(e);
1124
1121
  }
1125
1122
  function tr(e) {
1126
- return Yn("$effect.pre"), z(8 | _e, e);
1123
+ return Zn(4 | _e, e);
1127
1124
  }
1128
1125
  function nr(e) {
1126
+ return Yn("$effect.pre"), Zn(8 | _e, e);
1127
+ }
1128
+ function rr(e) {
1129
1129
  en.ensure();
1130
- let t = z(64 | ge, e);
1130
+ let t = Zn(64 | ge, e);
1131
1131
  return () => {
1132
- B(t);
1132
+ z(t);
1133
1133
  };
1134
1134
  }
1135
- function rr(e) {
1135
+ function ir(e) {
1136
1136
  en.ensure();
1137
- let t = z(64 | ge, e);
1137
+ let t = Zn(64 | ge, e);
1138
1138
  return (e = {}) => new Promise((n) => {
1139
- e.outro ? _r(t, () => {
1140
- B(t), n(void 0);
1141
- }) : (B(t), n(void 0));
1139
+ e.outro ? vr(t, () => {
1140
+ z(t), n(void 0);
1141
+ }) : (z(t), n(void 0));
1142
1142
  });
1143
1143
  }
1144
- function ir(e) {
1145
- return z(4, e);
1144
+ function ar(e) {
1145
+ return Zn(4, e);
1146
1146
  }
1147
- function ar(e, t) {
1147
+ function or(e, t) {
1148
1148
  var n = D, r = {
1149
1149
  effect: null,
1150
1150
  ran: !1,
1151
1151
  deps: e
1152
1152
  };
1153
- n.l.$.push(r), r.effect = cr(() => {
1153
+ n.l.$.push(r), r.effect = lr(() => {
1154
1154
  if (e(), !r.ran) {
1155
1155
  r.ran = !0;
1156
- var n = U;
1156
+ var n = H;
1157
1157
  try {
1158
- W(n.parent), Y(t);
1158
+ U(n.parent), J(t);
1159
1159
  } finally {
1160
- W(n);
1160
+ U(n);
1161
1161
  }
1162
1162
  }
1163
1163
  });
1164
1164
  }
1165
- function or() {
1165
+ function sr() {
1166
1166
  var e = D;
1167
- cr(() => {
1167
+ lr(() => {
1168
1168
  for (var t of e.l.$) {
1169
1169
  t.deps();
1170
1170
  var n = t.effect;
1171
- n.f & 1024 && n.deps !== null && O(n, ue), Pr(n) && Br(n), t.ran = !1;
1171
+ n.f & 1024 && n.deps !== null && O(n, ue), Fr(n) && Vr(n), t.ran = !1;
1172
1172
  }
1173
1173
  });
1174
1174
  }
1175
- function sr(e) {
1176
- return z(ye | ge, e);
1175
+ function cr(e) {
1176
+ return Zn(ye | ge, e);
1177
1177
  }
1178
- function cr(e, t = 0) {
1179
- return z(8 | t, e);
1178
+ function lr(e, t = 0) {
1179
+ return Zn(8 | t, e);
1180
1180
  }
1181
- function lr(e, t = [], n = [], r = []) {
1181
+ function ur(e, t = [], n = [], r = []) {
1182
1182
  vt(r, t, n, (t) => {
1183
- z(8, () => {
1184
- e(...t.map(J));
1183
+ Zn(8, () => {
1184
+ e(...t.map(q));
1185
1185
  });
1186
1186
  });
1187
1187
  }
1188
- function ur(e, t = 0) {
1189
- return z(16 | t, e);
1190
- }
1191
- function dr(e) {
1192
- return z(32 | ge, e);
1188
+ function dr(e, t = 0) {
1189
+ return Zn(16 | t, e);
1193
1190
  }
1194
1191
  function fr(e) {
1192
+ return Zn(32 | ge, e);
1193
+ }
1194
+ function pr(e) {
1195
1195
  var t = e.teardown;
1196
1196
  if (t !== null) {
1197
- let n = Cr, r = V;
1198
- wr(!0), H(null);
1197
+ let n = wr, r = B;
1198
+ Tr(!0), V(null);
1199
1199
  try {
1200
1200
  t.call(null);
1201
1201
  } catch (t) {
1202
1202
  Jn(t, e.parent);
1203
1203
  } finally {
1204
- wr(n), H(r);
1204
+ Tr(n), V(r);
1205
1205
  }
1206
1206
  }
1207
1207
  }
1208
- function pr(e, t = !1) {
1208
+ function mr(e, t = !1) {
1209
1209
  var n = e.first;
1210
1210
  for (e.first = e.last = null; n !== null;) {
1211
1211
  let e = n.ac;
@@ -1213,46 +1213,46 @@ function pr(e, t = !1) {
1213
1213
  e.abort(ke);
1214
1214
  });
1215
1215
  var r = n.next;
1216
- n.f & 64 ? n.parent = null : B(n, t), n = r;
1216
+ n.f & 64 ? n.parent = null : z(n, t), n = r;
1217
1217
  }
1218
1218
  }
1219
- function mr(e) {
1219
+ function hr(e) {
1220
1220
  for (var t = e.first; t !== null;) {
1221
1221
  var n = t.next;
1222
- t.f & 32 || B(t), t = n;
1222
+ t.f & 32 || z(t), t = n;
1223
1223
  }
1224
1224
  }
1225
- function B(e, t = !0) {
1225
+ function z(e, t = !0) {
1226
1226
  var n = !1;
1227
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (hr(e.nodes.start, e.nodes.end), n = !0), e.f |= me, pr(e, t && !n), zr(e, 0);
1227
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (gr(e.nodes.start, e.nodes.end), n = !0), e.f |= me, mr(e, t && !n), Br(e, 0);
1228
1228
  var r = e.nodes && e.nodes.t;
1229
1229
  if (r !== null) for (let e of r) e.stop();
1230
- fr(e), e.f ^= me, e.f |= fe;
1230
+ pr(e), e.f ^= me, e.f |= fe;
1231
1231
  var i = e.parent;
1232
- i !== null && i.first !== null && gr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1232
+ i !== null && i.first !== null && _r(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1233
1233
  }
1234
- function hr(e, t) {
1234
+ function gr(e, t) {
1235
1235
  for (; e !== null;) {
1236
1236
  var n = e === t ? null : /* @__PURE__ */ Rn(e);
1237
1237
  e.remove(), e = n;
1238
1238
  }
1239
1239
  }
1240
- function gr(e) {
1240
+ function _r(e) {
1241
1241
  var t = e.parent, n = e.prev, r = e.next;
1242
1242
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1243
1243
  }
1244
- function _r(e, t, n = !0) {
1244
+ function vr(e, t, n = !0) {
1245
1245
  var r = [];
1246
- e.f |= 256, vr(e, r, !0);
1246
+ e.f |= 256, yr(e, r, !0);
1247
1247
  var i = () => {
1248
- n && B(e), t && t();
1248
+ n && z(e), t && t();
1249
1249
  }, a = r.length;
1250
1250
  if (a > 0) {
1251
1251
  var o = () => --a || i();
1252
1252
  for (var s of r) s.out(o);
1253
1253
  } else i();
1254
1254
  }
1255
- function vr(e, t, n) {
1255
+ function yr(e, t, n) {
1256
1256
  if (!(e.f & 8192)) {
1257
1257
  e.f ^= de;
1258
1258
  var r = e.nodes && e.nodes.t;
@@ -1261,119 +1261,119 @@ function vr(e, t, n) {
1261
1261
  var a = i.next;
1262
1262
  if (!(i.f & 64)) {
1263
1263
  var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
1264
- vr(i, t, o ? n : !1);
1264
+ yr(i, t, o ? n : !1);
1265
1265
  }
1266
1266
  i = a;
1267
1267
  }
1268
1268
  }
1269
1269
  }
1270
- function yr(e) {
1271
- e.f &= -257, br(e, !0);
1270
+ function br(e) {
1271
+ e.f &= -257, xr(e, !0);
1272
1272
  }
1273
- function br(e, t) {
1273
+ function xr(e, t) {
1274
1274
  if (!(e.f & 256) && e.f & 8192) {
1275
1275
  e.f ^= de, e.f & 1024 || (O(e, C), en.ensure().schedule(e));
1276
1276
  for (var n = e.first; n !== null;) {
1277
1277
  var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
1278
- br(n, i ? t : !1), n = r;
1278
+ xr(n, i ? t : !1), n = r;
1279
1279
  }
1280
1280
  var a = e.nodes && e.nodes.t;
1281
1281
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1282
1282
  }
1283
1283
  }
1284
- function xr(e, t) {
1284
+ function Sr(e, t) {
1285
1285
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1286
1286
  var i = n === r ? null : /* @__PURE__ */ Rn(n);
1287
1287
  t.append(n), n = i;
1288
1288
  }
1289
1289
  }
1290
1290
  // node_modules/svelte/src/internal/client/legacy.js
1291
- var Sr = null, Cr = !1;
1292
- function wr(e) {
1293
- Cr = e;
1291
+ var Cr = null, wr = !1;
1292
+ function Tr(e) {
1293
+ wr = e;
1294
1294
  }
1295
- var V = null, Tr = !1;
1296
- function H(e) {
1297
- V = e;
1295
+ var B = null, Er = !1;
1296
+ function V(e) {
1297
+ B = e;
1298
1298
  }
1299
- var U = null;
1300
- function W(e) {
1301
- U = e;
1299
+ var H = null;
1300
+ function U(e) {
1301
+ H = e;
1302
1302
  }
1303
- var Er = null;
1304
- function Dr(e) {
1305
- if (V !== null && (V.f & 2097152 || V.f & 2)) {
1303
+ var Dr = null;
1304
+ function Or(e) {
1305
+ if (B !== null && (B.f & 2097152 || B.f & 2)) {
1306
1306
  var t;
1307
- ((t = Er) == null ? Er = /* @__PURE__ */ new Set() : t).add(e);
1307
+ ((t = Dr) == null ? Dr = /* @__PURE__ */ new Set() : t).add(e);
1308
1308
  }
1309
1309
  }
1310
- var G = null, K = 0, q = null;
1311
- function Or(e) {
1312
- q = e;
1310
+ var W = null, G = 0, K = null;
1311
+ function kr(e) {
1312
+ K = e;
1313
1313
  }
1314
- var kr = 1, Ar = 0, jr = Ar;
1315
- function Mr(e) {
1316
- jr = e;
1314
+ var Ar = 1, jr = 0, Mr = jr;
1315
+ function Nr(e) {
1316
+ Mr = e;
1317
1317
  }
1318
- function Nr() {
1319
- return ++kr;
1318
+ function Pr() {
1319
+ return ++Ar;
1320
1320
  }
1321
- function Pr(e) {
1321
+ function Fr(e) {
1322
1322
  var t = e.f;
1323
1323
  if (t & 2048) return !0;
1324
1324
  if (t & 4096) {
1325
1325
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1326
1326
  var a = n[i];
1327
- if (Pr(a) && Ot(a), a.wv > e.wv) return !0;
1327
+ if (Fr(a) && Ot(a), a.wv > e.wv) return !0;
1328
1328
  }
1329
1329
  t & 512 && P === null && O(e, S);
1330
1330
  }
1331
1331
  return !1;
1332
1332
  }
1333
- function Fr(e, t, n = !0) {
1333
+ function Ir(e, t, n = !0) {
1334
1334
  var r = e.reactions;
1335
- if (r !== null && !(Er !== null && Er.has(e))) for (var i = 0; i < r.length; i++) {
1335
+ if (r !== null && !(Dr !== null && Dr.has(e))) for (var i = 0; i < r.length; i++) {
1336
1336
  var a = r[i];
1337
- a.f & 2 ? Fr(a, t, !1) : t === a && (n ? O(a, C) : a.f & 1024 && O(a, ue), gn(a));
1337
+ a.f & 2 ? Ir(a, t, !1) : t === a && (n ? O(a, C) : a.f & 1024 && O(a, ue), gn(a));
1338
1338
  }
1339
1339
  }
1340
- function Ir(e) {
1341
- var t = G, n = K, r = q, i = V, a = Er, o = D, s = Tr, c = jr, l = e.f;
1342
- G = null, K = 0, q = null, V = l & 96 ? null : e, Er = null, rt(e.ctx), Tr = !1, jr = ++Ar, e.ac !== null && (ht(() => {
1340
+ function Lr(e) {
1341
+ var t = W, n = G, r = K, i = B, a = Dr, o = D, s = Er, c = Mr, l = e.f;
1342
+ W = null, G = 0, K = null, B = l & 96 ? null : e, Dr = null, rt(e.ctx), Er = !1, Mr = ++jr, e.ac !== null && (ht(() => {
1343
1343
  e.ac.abort(ke);
1344
1344
  }), e.ac = null);
1345
1345
  try {
1346
1346
  e.f |= ve;
1347
1347
  var u = e.fn, d = u();
1348
1348
  e.f |= pe;
1349
- var f = Lr(e);
1350
- if (st() && q !== null && !Tr && f !== null && !(e.f & 6146)) for (var p = 0; p < q.length; p++) Fr(q[p], e);
1349
+ var f = Rr(e);
1350
+ if (st() && K !== null && !Er && f !== null && !(e.f & 6146)) for (var p = 0; p < K.length; p++) Ir(K[p], e);
1351
1351
  if (i !== null && i !== e) {
1352
- if (Ar++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Ar;
1353
- if (t !== null) for (let e of t) e.rv = Ar;
1354
- q !== null && (r === null ? r = q : r.push(...q));
1352
+ if (jr++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = jr;
1353
+ if (t !== null) for (let e of t) e.rv = jr;
1354
+ K !== null && (r === null ? r = K : r.push(...K));
1355
1355
  }
1356
1356
  return e.f & 8388608 && (e.f ^= be), d;
1357
1357
  } catch (t) {
1358
- return Lr(e), qn(t);
1358
+ return Rr(e), qn(t);
1359
1359
  } finally {
1360
- e.f ^= ve, G = t, K = n, q = r, V = i, Er = a, rt(o), Tr = s, jr = c;
1360
+ e.f ^= ve, W = t, G = n, K = r, B = i, Dr = a, rt(o), Er = s, Mr = c;
1361
1361
  }
1362
1362
  }
1363
- function Lr(e) {
1363
+ function Rr(e) {
1364
1364
  var t = e.deps, n = N == null ? void 0 : N.is_fork;
1365
- if (G !== null) {
1365
+ if (W !== null) {
1366
1366
  var r;
1367
- if (n || zr(e, K), t !== null && K > 0) for (t.length = K + G.length, r = 0; r < G.length; r++) t[K + r] = G[r];
1368
- else e.deps = t = G;
1369
- if (Zn() && e.f & 512) for (r = K; r < t.length; r++) {
1367
+ if (n || Br(e, G), t !== null && G > 0) for (t.length = G + W.length, r = 0; r < W.length; r++) t[G + r] = W[r];
1368
+ else e.deps = t = W;
1369
+ if (Qn() && e.f & 512) for (r = G; r < t.length; r++) {
1370
1370
  var i, a;
1371
1371
  ((a = (i = t[r]).reactions) == null ? i.reactions = [] : a).push(e);
1372
1372
  }
1373
- } else !n && t !== null && K < t.length && (zr(e, K), t.length = K);
1373
+ } else !n && t !== null && G < t.length && (Br(e, G), t.length = G);
1374
1374
  return t;
1375
1375
  }
1376
- function Rr(e, t) {
1376
+ function zr(e, t) {
1377
1377
  let n = t.reactions;
1378
1378
  if (n !== null) {
1379
1379
  var r = f.call(n, e);
@@ -1382,79 +1382,79 @@ function Rr(e, t) {
1382
1382
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1383
1383
  }
1384
1384
  }
1385
- if (n === null && t.f & 2 && (G === null || !p.call(G, t))) {
1385
+ if (n === null && t.f & 2 && (W === null || !p.call(W, t))) {
1386
1386
  var a = t;
1387
1387
  a.f & 512 && (a.f ^= 512), a.v !== s && pt(a), a.ac !== null && ht(() => {
1388
1388
  a.ac.abort(ke), a.ac = null, O(a, C);
1389
- }), kt(a), zr(a, 0);
1389
+ }), kt(a), Br(a, 0);
1390
1390
  }
1391
1391
  }
1392
- function zr(e, t) {
1392
+ function Br(e, t) {
1393
1393
  var n = e.deps;
1394
- if (n !== null) for (var r = t; r < n.length; r++) Rr(e, n[r]);
1394
+ if (n !== null) for (var r = t; r < n.length; r++) zr(e, n[r]);
1395
1395
  }
1396
- function Br(e) {
1396
+ function Vr(e) {
1397
1397
  var t = e.f;
1398
1398
  if (!(t & 16384)) {
1399
1399
  O(e, S);
1400
- var n = U;
1401
- U = e;
1400
+ var n = H;
1401
+ H = e;
1402
1402
  try {
1403
- t & 16777232 ? mr(e) : pr(e), fr(e);
1404
- var r = Ir(e);
1405
- e.teardown = typeof r == "function" ? r : null, e.wv = kr;
1403
+ t & 16777232 ? hr(e) : mr(e), pr(e);
1404
+ var r = Lr(e);
1405
+ e.teardown = typeof r == "function" ? r : null, e.wv = Ar;
1406
1406
  } finally {
1407
- U = n;
1407
+ H = n;
1408
1408
  }
1409
1409
  }
1410
1410
  }
1411
- function J(e) {
1411
+ function q(e) {
1412
1412
  var t = !!(e.f & 2);
1413
- if (Sr == null || Sr.add(e), V !== null && !Tr && !(U !== null && U.f & 16384) && (Er === null || !Er.has(e))) {
1414
- var n = V.deps;
1415
- if (V.f & 2097152) e.rv < Ar && (e.rv = Ar, G === null && n !== null && n[K] === e ? K++ : G === null ? G = [e] : G.push(e));
1413
+ if (Cr == null || Cr.add(e), B !== null && !Er && !(H !== null && H.f & 16384) && (Dr === null || !Dr.has(e))) {
1414
+ var n = B.deps;
1415
+ if (B.f & 2097152) e.rv < jr && (e.rv = jr, W === null && n !== null && n[G] === e ? G++ : W === null ? W = [e] : W.push(e));
1416
1416
  else {
1417
1417
  var r;
1418
- (r = V).deps != null || (r.deps = []), p.call(V.deps, e) || V.deps.push(e);
1418
+ (r = B).deps != null || (r.deps = []), p.call(B.deps, e) || B.deps.push(e);
1419
1419
  var i = e.reactions;
1420
- i === null ? e.reactions = [V] : p.call(i, V) || i.push(V);
1420
+ i === null ? e.reactions = [B] : p.call(i, B) || i.push(B);
1421
1421
  }
1422
1422
  }
1423
- if (Cr && bn.has(e)) return bn.get(e);
1423
+ if (wr && bn.has(e)) return bn.get(e);
1424
1424
  if (t) {
1425
1425
  var a = e;
1426
- if (Cr) {
1426
+ if (wr) {
1427
1427
  var o = a.v;
1428
- return (!(a.f & 1024) && a.reactions !== null || Hr(a)) && (o = Dt(a)), bn.set(a, o), o;
1428
+ return (!(a.f & 1024) && a.reactions !== null || Ur(a)) && (o = Dt(a)), bn.set(a, o), o;
1429
1429
  }
1430
- var s = !(a.f & 512) && !Tr && V !== null && !!(V.f & 512), c = (a.f & pe) === 0;
1431
- Pr(a) && (s && (a.f |= 512), Ot(a)), s && !c && (At(a), Vr(a));
1430
+ var s = !(a.f & 512) && !Er && B !== null && !!(B.f & 512), c = (a.f & pe) === 0;
1431
+ Fr(a) && (s && (a.f |= 512), Ot(a)), s && !c && (At(a), Hr(a));
1432
1432
  }
1433
1433
  if (P != null && P.has(e)) return P.get(e);
1434
1434
  if (e.f & 8388608) throw e.v;
1435
1435
  return e.v;
1436
1436
  }
1437
- function Vr(e) {
1437
+ function Hr(e) {
1438
1438
  if (e.f |= 512, e.deps !== null) for (let n of e.deps) {
1439
1439
  var t = n.reactions;
1440
- t === null ? n.reactions = [e] : p.call(t, e) || t.push(e), n.f & 2 && !(n.f & 512) && (At(n), Vr(n));
1440
+ t === null ? n.reactions = [e] : p.call(t, e) || t.push(e), n.f & 2 && !(n.f & 512) && (At(n), Hr(n));
1441
1441
  }
1442
1442
  }
1443
- function Hr(e) {
1443
+ function Ur(e) {
1444
1444
  if (e.v === s) return !0;
1445
1445
  if (e.deps === null) return !1;
1446
- for (let t of e.deps) if (bn.has(t) || t.f & 2 && Hr(t)) return !0;
1446
+ for (let t of e.deps) if (bn.has(t) || t.f & 2 && Ur(t)) return !0;
1447
1447
  return !1;
1448
1448
  }
1449
- function Y(e) {
1450
- var t = Tr;
1449
+ function J(e) {
1450
+ var t = Er;
1451
1451
  try {
1452
- return Tr = !0, e();
1452
+ return Er = !0, e();
1453
1453
  } finally {
1454
- Tr = t;
1454
+ Er = t;
1455
1455
  }
1456
1456
  }
1457
- function Ur(e) {
1457
+ function Y(e) {
1458
1458
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1459
1459
  if (xe in e) Wr(e);
1460
1460
  else if (!Array.isArray(e)) for (let t in e) {
@@ -1496,7 +1496,7 @@ function Yr(e, t, n, r, i) {
1496
1496
  capture: r,
1497
1497
  passive: i
1498
1498
  }, o = Jr(e, t, n, a);
1499
- (t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && Qn(() => {
1499
+ (t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && $n(() => {
1500
1500
  o.__removed = !0, t.removeEventListener(e, o, a);
1501
1501
  });
1502
1502
  }
@@ -1524,8 +1524,8 @@ function Qr(e) {
1524
1524
  return o || r;
1525
1525
  }
1526
1526
  });
1527
- var d = V, f = U;
1528
- H(null), W(null);
1527
+ var d = B, f = H;
1528
+ V(null), U(null);
1529
1529
  try {
1530
1530
  for (var p, m = []; o !== null && o !== n;) {
1531
1531
  try {
@@ -1544,7 +1544,7 @@ function Qr(e) {
1544
1544
  throw p;
1545
1545
  }
1546
1546
  } finally {
1547
- e[Gr] = n, delete e.currentTarget, H(d), W(f);
1547
+ e[Gr] = n, delete e.currentTarget, V(d), U(f);
1548
1548
  }
1549
1549
  }
1550
1550
  }
@@ -1560,7 +1560,7 @@ function ni(e) {
1560
1560
  }
1561
1561
  // node_modules/svelte/src/internal/client/dom/template.js
1562
1562
  function ri(e, t) {
1563
- var n = U;
1563
+ var n = H;
1564
1564
  n.nodes === null && (n.nodes = {
1565
1565
  start: e,
1566
1566
  end: t,
@@ -1584,7 +1584,7 @@ function ii(e, t) {
1584
1584
  }
1585
1585
  function ai(e, t) {
1586
1586
  if (w) {
1587
- var n = U;
1587
+ var n = H;
1588
1588
  n.f & 32768 && n.nodes.end !== null || (n.nodes.end = T), Fe();
1589
1589
  } else e !== null && e.before(t);
1590
1590
  }
@@ -1597,7 +1597,7 @@ function si(e) {
1597
1597
  function ci(e) {
1598
1598
  let t = 0, n = Sn(0), r;
1599
1599
  return () => {
1600
- Zn() && (J(n), cr(() => (t === 0 && (r = Y(() => e(() => kn(n)))), t += 1, () => {
1600
+ Qn() && (q(n), lr(() => (t === 0 && (r = J(() => e(() => kn(n)))), t += 1, () => {
1601
1601
  ut(() => {
1602
1602
  --t, t === 0 && (r == null || r(), r = void 0, kn(n));
1603
1603
  });
@@ -1615,9 +1615,9 @@ var di = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), pi =
1615
1615
  Mt(this, Q), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, di, void 0), k(this, fi, w ? T : null), k(this, pi, void 0), k(this, mi, void 0), k(this, X, void 0), k(this, hi, null), k(this, Z, null), k(this, gi, null), k(this, _i, null), k(this, vi, 0), k(this, yi, 0), k(this, bi, !1), k(this, xi, /* @__PURE__ */ new Map()), k(this, Si, null), k(this, Ci, ci(() => (M(Si, this, Sn(j(vi, this))), () => {
1616
1616
  M(Si, this, null);
1617
1617
  }))), M(di, this, e), M(pi, this, t), M(mi, this, (e) => {
1618
- var t = U;
1618
+ var t = H;
1619
1619
  t.b = this, t.f |= 128, n(e);
1620
- }), this.parent = U.b, this.transform_error = (i = r == null ? (a = this.parent) == null ? void 0 : a.transform_error : r) == null ? ((e) => e) : i, M(X, this, ur(() => {
1620
+ }), this.parent = H.b, this.transform_error = (i = r == null ? (a = this.parent) == null ? void 0 : a.transform_error : r) == null ? ((e) => e) : i, M(X, this, dr(() => {
1621
1621
  if (w) {
1622
1622
  let e = ze(j(fi, this));
1623
1623
  Fe();
@@ -1644,7 +1644,7 @@ var di = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), pi =
1644
1644
  }));
1645
1645
  }
1646
1646
  get_effect_pending() {
1647
- return j(Ci, this).call(this), J(j(Si, this));
1647
+ return j(Ci, this).call(this), q(j(Si, this));
1648
1648
  }
1649
1649
  error(e) {
1650
1650
  if (e === o || !j(pi, this).onerror && !j(pi, this).failed) throw e;
@@ -1655,21 +1655,21 @@ var di = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), pi =
1655
1655
  };
1656
1656
  function Ti() {
1657
1657
  try {
1658
- M(hi, this, dr(() => j(mi, this).call(this, j(di, this))));
1658
+ M(hi, this, fr(() => j(mi, this).call(this, j(di, this))));
1659
1659
  } catch (e) {
1660
1660
  this.error(e);
1661
1661
  }
1662
1662
  }
1663
1663
  function Ei(e) {
1664
1664
  let t = j(pi, this).failed, { reset: n, invoke_onerror: r } = A(Q, this, Di).call(this, e);
1665
- ut(r), t && M(gi, this, dr(() => {
1665
+ ut(r), t && M(gi, this, fr(() => {
1666
1666
  t(j(di, this), () => e, () => n);
1667
1667
  }));
1668
1668
  }
1669
1669
  function Di(e) {
1670
1670
  var t = !1, n = !1;
1671
1671
  let r = () => {
1672
- A(Q, this, Oi).call(this) || (t ? Ne() : (t = !0, n && et(), j(gi, this) !== null && _r(j(gi, this), () => {
1672
+ A(Q, this, Oi).call(this) || (t ? Ne() : (t = !0, n && et(), j(gi, this) !== null && vr(j(gi, this), () => {
1673
1673
  M(gi, this, null);
1674
1674
  }), A(Q, this, Mi).call(this, () => {
1675
1675
  A(Q, this, Ai).call(this);
@@ -1692,12 +1692,12 @@ function Oi() {
1692
1692
  }
1693
1693
  function ki() {
1694
1694
  let e = j(pi, this).pending;
1695
- e && (this.is_pending = !0, M(Z, this, dr(() => e(j(di, this)))), ut(() => {
1695
+ e && (this.is_pending = !0, M(Z, this, fr(() => e(j(di, this)))), ut(() => {
1696
1696
  if (!A(Q, this, Oi).call(this)) {
1697
1697
  var e = M(_i, this, document.createDocumentFragment()), t = Ln(), n = !1;
1698
1698
  e.append(t), M(hi, this, A(Q, this, Mi).call(this, () => {
1699
1699
  try {
1700
- return dr(() => j(mi, this).call(this, t));
1700
+ return fr(() => j(mi, this).call(this, t));
1701
1701
  } catch (e) {
1702
1702
  try {
1703
1703
  this.error(e), n = !0;
@@ -1706,7 +1706,7 @@ function ki() {
1706
1706
  }
1707
1707
  return null;
1708
1708
  }
1709
- })), j(hi, this) === null ? (M(_i, this, null), n && A(Q, this, ji).call(this, N)) : j(yi, this) === 0 && (j(di, this).before(e), M(_i, this, null), _r(j(Z, this), () => {
1709
+ })), j(hi, this) === null ? (M(_i, this, null), n && A(Q, this, ji).call(this, N)) : j(yi, this) === 0 && (j(di, this).before(e), M(_i, this, null), vr(j(Z, this), () => {
1710
1710
  M(Z, this, null);
1711
1711
  }), A(Q, this, ji).call(this, N));
1712
1712
  }
@@ -1714,13 +1714,13 @@ function ki() {
1714
1714
  }
1715
1715
  function Ai() {
1716
1716
  try {
1717
- if (this.is_pending = this.has_pending_snippet(), M(yi, this, 0), M(vi, this, 0), M(hi, this, dr(() => {
1717
+ if (this.is_pending = this.has_pending_snippet(), M(yi, this, 0), M(vi, this, 0), M(hi, this, fr(() => {
1718
1718
  j(mi, this).call(this, j(di, this));
1719
1719
  })), j(yi, this) > 0) {
1720
1720
  var e = M(_i, this, document.createDocumentFragment());
1721
- xr(j(hi, this), e);
1721
+ Sr(j(hi, this), e);
1722
1722
  let t = j(pi, this).pending;
1723
- M(Z, this, dr(() => t(j(di, this))));
1723
+ M(Z, this, fr(() => t(j(di, this))));
1724
1724
  } else A(Q, this, ji).call(this, N);
1725
1725
  } catch (e) {
1726
1726
  this.error(e);
@@ -1730,16 +1730,16 @@ function ji(e) {
1730
1730
  this.is_pending = !1, e.transfer_reactions(j(xi, this));
1731
1731
  }
1732
1732
  function Mi(e) {
1733
- var t = U, n = V, r = D;
1734
- W(j(X, this)), H(j(X, this)), rt(j(X, this).ctx);
1733
+ var t = H, n = B, r = D;
1734
+ U(j(X, this)), V(j(X, this)), rt(j(X, this).ctx);
1735
1735
  try {
1736
1736
  return en.ensure(), e();
1737
1737
  } finally {
1738
- W(t), H(n), rt(r);
1738
+ U(t), V(n), rt(r);
1739
1739
  }
1740
1740
  }
1741
1741
  function Ni(e, t) {
1742
- if (this.has_pending_snippet()) M(yi, this, j(yi, this) + e), j(yi, this) === 0 && (A(Q, this, ji).call(this, t), j(Z, this) && _r(j(Z, this), () => {
1742
+ if (this.has_pending_snippet()) M(yi, this, j(yi, this) + e), j(yi, this) === 0 && (A(Q, this, ji).call(this, t), j(Z, this) && vr(j(Z, this), () => {
1743
1743
  M(Z, this, null);
1744
1744
  }), j(_i, this) && (j(di, this).before(j(_i, this)), M(_i, this, null)));
1745
1745
  else if (this.parent) {
@@ -1748,14 +1748,14 @@ function Ni(e, t) {
1748
1748
  }
1749
1749
  }
1750
1750
  function Pi(e) {
1751
- j(hi, this) && (B(j(hi, this)), M(hi, this, null)), j(Z, this) && (B(j(Z, this)), M(Z, this, null)), j(gi, this) && (B(j(gi, this)), M(gi, this, null)), w && (E(j(fi, this)), Le(), E(Re()));
1751
+ j(hi, this) && (z(j(hi, this)), M(hi, this, null)), j(Z, this) && (z(j(Z, this)), M(Z, this, null)), j(gi, this) && (z(j(gi, this)), M(gi, this, null)), w && (E(j(fi, this)), Le(), E(Re()));
1752
1752
  let t = j(pi, this).failed, n = (e) => {
1753
1753
  if (A(Q, this, Oi).call(this)) return;
1754
1754
  let { reset: n, invoke_onerror: r } = A(Q, this, Di).call(this, e);
1755
1755
  r(), t && !A(Q, this, Oi).call(this) && M(gi, this, A(Q, this, Mi).call(this, () => {
1756
1756
  try {
1757
- return dr(() => {
1758
- var r = U;
1757
+ return fr(() => {
1758
+ var r = H;
1759
1759
  r.b = this, r.f |= 128, t(j(di, this), () => e, () => n);
1760
1760
  });
1761
1761
  } catch (e) {
@@ -1803,12 +1803,12 @@ function Li(e, t) {
1803
1803
  var Ri = /* @__PURE__ */ new Map();
1804
1804
  function zi(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1805
1805
  In();
1806
- var l = void 0, u = rr(() => {
1806
+ var l = void 0, u = ir(() => {
1807
1807
  var s = n == null ? t.appendChild(Ln()) : n;
1808
1808
  ui(s, { pending: () => {} }, (t) => {
1809
1809
  it({});
1810
1810
  var n = D;
1811
- if (a && (n.c = a), i && (r.$$events = i), w && ri(t, null), l = e(t, r) || ot(), w && (U.nodes.end = T, T === null || T.nodeType !== 8 || T.data !== "]")) throw Me(), o;
1811
+ if (a && (n.c = a), i && (r.$$events = i), w && ri(t, null), l = e(t, r) || ot(), w && (H.nodes.end = T, T === null || T.nodeType !== 8 || T.data !== "]")) throw Me(), o;
1812
1812
  at();
1813
1813
  }, c);
1814
1814
  var u = /* @__PURE__ */ new Set(), d = (e) => {
@@ -1850,35 +1850,35 @@ var Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), $ =
1850
1850
  b(this, "anchor", void 0), k(this, Hi, /* @__PURE__ */ new Map()), k(this, Ui, /* @__PURE__ */ new Map()), k(this, $, /* @__PURE__ */ new Map()), k(this, Wi, /* @__PURE__ */ new Set()), k(this, Gi, !0), k(this, Ki, (e) => {
1851
1851
  if (j(Hi, this).has(e)) {
1852
1852
  var t = j(Hi, this).get(e), n = j(Ui, this).get(t);
1853
- if (n) yr(n), j(Wi, this).delete(t);
1853
+ if (n) br(n), j(Wi, this).delete(t);
1854
1854
  else {
1855
1855
  var r = j($, this).get(t);
1856
- r && (yr(r.effect), j(Ui, this).set(t, r.effect), j($, this).delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1856
+ r && (br(r.effect), j(Ui, this).set(t, r.effect), j($, this).delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1857
1857
  }
1858
1858
  for (let [t, n] of j(Hi, this)) {
1859
1859
  if (j(Hi, this).delete(t), t === e) break;
1860
1860
  let r = j($, this).get(n);
1861
- r && (B(r.effect), j($, this).delete(n));
1861
+ r && (z(r.effect), j($, this).delete(n));
1862
1862
  }
1863
1863
  for (let [e, r] of j(Ui, this)) {
1864
1864
  if (e === t || j(Wi, this).has(e)) continue;
1865
1865
  let i = () => {
1866
1866
  if (Array.from(j(Hi, this).values()).includes(e)) {
1867
1867
  var t = document.createDocumentFragment();
1868
- xr(r, t), t.append(Ln()), j($, this).set(e, {
1868
+ Sr(r, t), t.append(Ln()), j($, this).set(e, {
1869
1869
  effect: r,
1870
1870
  fragment: t
1871
1871
  });
1872
- } else B(r);
1872
+ } else z(r);
1873
1873
  j(Wi, this).delete(e), j(Ui, this).delete(e);
1874
1874
  };
1875
- j(Gi, this) || !n ? (j(Wi, this).add(e), _r(r, i, !1)) : i();
1875
+ j(Gi, this) || !n ? (j(Wi, this).add(e), vr(r, i, !1)) : i();
1876
1876
  }
1877
1877
  }
1878
1878
  }), k(this, qi, (e) => {
1879
1879
  j(Hi, this).delete(e);
1880
1880
  let t = Array.from(j(Hi, this).values());
1881
- for (let [e, n] of j($, this)) t.includes(e) || (B(n.effect), j($, this).delete(e));
1881
+ for (let [e, n] of j($, this)) t.includes(e) || (z(n.effect), j($, this).delete(e));
1882
1882
  }), this.anchor = e, M(Gi, this, t);
1883
1883
  }
1884
1884
  ensure(e, t) {
@@ -1887,10 +1887,10 @@ var Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), $ =
1887
1887
  if (r) {
1888
1888
  var i = document.createDocumentFragment(), a = Ln();
1889
1889
  i.append(a), j($, this).set(e, {
1890
- effect: dr(() => t(a)),
1890
+ effect: fr(() => t(a)),
1891
1891
  fragment: i
1892
1892
  });
1893
- } else j(Ui, this).set(e, dr(() => t(this.anchor)));
1893
+ } else j(Ui, this).set(e, fr(() => t(this.anchor)));
1894
1894
  }
1895
1895
  if (j(Hi, this).set(n, e), r) {
1896
1896
  for (let [t, r] of j(Ui, this)) t === e ? n.unskip_effect(r) : n.skip_effect(r);
@@ -1900,8 +1900,8 @@ var Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), $ =
1900
1900
  }
1901
1901
  };
1902
1902
  function Yi(e) {
1903
- D === null && Ue("onMount"), i && D.l !== null ? Xi(D).m.push(e) : $n(() => {
1904
- let t = Y(e);
1903
+ D === null && Ue("onMount"), i && D.l !== null ? Xi(D).m.push(e) : er(() => {
1904
+ let t = J(e);
1905
1905
  if (typeof t == "function") return t;
1906
1906
  });
1907
1907
  }
@@ -1929,7 +1929,7 @@ function Zi(e, t, n = !1) {
1929
1929
  }
1930
1930
  i.ensure(e, t);
1931
1931
  }
1932
- ur(() => {
1932
+ dr(() => {
1933
1933
  var e = !1;
1934
1934
  t((t, n = 0) => {
1935
1935
  e = !0, o(n, t);
@@ -1942,11 +1942,11 @@ function Qi(e, t, n = !1, r = !1, i = !1, a = !1) {
1942
1942
  var d = e;
1943
1943
  w && (s = E(/* @__PURE__ */ R(d)));
1944
1944
  }
1945
- lr(() => {
1946
- var e, a = U;
1945
+ ur(() => {
1946
+ var e, a = H;
1947
1947
  if (c === (c = (e = t()) == null ? "" : e)) w && Fe();
1948
1948
  else if (n && !w) a.nodes = null, d.innerHTML = c, c !== "" && ri(/* @__PURE__ */ R(d), d.lastChild);
1949
- else if (a.nodes !== null && (hr(a.nodes.start, a.nodes.end), a.nodes = null), c !== "") {
1949
+ else if (a.nodes !== null && (gr(a.nodes.start, a.nodes.end), a.nodes = null), c !== "") {
1950
1950
  if (w) {
1951
1951
  for (var f = T.data, p = Fe(), m = p; p !== null && (p.nodeType !== 8 || p.data !== "");) m = p, p = /* @__PURE__ */ Rn(p);
1952
1952
  if (p === null) throw Me(), o;
@@ -1961,20 +1961,34 @@ function Qi(e, t, n = !1, r = !1, i = !1, a = !1) {
1961
1961
  }
1962
1962
  });
1963
1963
  }
1964
+ // node_modules/svelte/src/internal/client/dom/elements/actions.js
1965
+ function $i(e, t, n) {
1966
+ ar(() => {
1967
+ var r = J(() => t(e, n == null ? void 0 : n()) || {});
1968
+ if (n && r != null && r.update) {
1969
+ var i = !1, a = {};
1970
+ lr(() => {
1971
+ var e = n();
1972
+ Y(e), i && Ve(a, e) && (a = e, r.update(e));
1973
+ }), i = !0;
1974
+ }
1975
+ if (r != null && r.destroy) return () => r.destroy();
1976
+ });
1977
+ }
1964
1978
  // node_modules/svelte/src/internal/shared/attributes.js
1965
- var $i = [..." \n\r\f\xA0\v"];
1966
- function ea(e, t, n) {
1979
+ var ea = [..." \n\r\f\xA0\v"];
1980
+ function ta(e, t, n) {
1967
1981
  var r = e == null ? "" : "" + e;
1968
1982
  if (t && (r = r ? r + " " + t : t), n) {
1969
1983
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
1970
1984
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
1971
1985
  var s = o + a;
1972
- (o === 0 || $i.includes(r[o - 1])) && (s === r.length || $i.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1986
+ (o === 0 || ea.includes(r[o - 1])) && (s === r.length || ea.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1973
1987
  }
1974
1988
  }
1975
1989
  return r === "" ? null : r;
1976
1990
  }
1977
- function ta(e, t = !1) {
1991
+ function na(e, t = !1) {
1978
1992
  var n = t ? " !important;" : ";", r = "";
1979
1993
  for (var i of Object.keys(e)) {
1980
1994
  var a = e[i];
@@ -1982,16 +1996,16 @@ function ta(e, t = !1) {
1982
1996
  }
1983
1997
  return r;
1984
1998
  }
1985
- function na(e) {
1999
+ function ra(e) {
1986
2000
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1987
2001
  }
1988
- function ra(e, t) {
2002
+ function ia(e, t) {
1989
2003
  if (t) {
1990
2004
  var n = "", r, i;
1991
2005
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
1992
2006
  e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
1993
2007
  var a = !1, o = 0, s = !1, c = [];
1994
- r && c.push(...Object.keys(r).map(na)), i && c.push(...Object.keys(i).map(na));
2008
+ r && c.push(...Object.keys(r).map(ra)), i && c.push(...Object.keys(i).map(ra));
1995
2009
  var l = 0, u = -1;
1996
2010
  let t = e.length;
1997
2011
  for (var d = 0; d < t; d++) {
@@ -2000,7 +2014,7 @@ function ra(e, t) {
2000
2014
  if (f === ":" && u === -1) u = d;
2001
2015
  else if (f === ";" || d === t - 1) {
2002
2016
  if (u !== -1) {
2003
- var p = na(e.substring(l, u).trim());
2017
+ var p = ra(e.substring(l, u).trim());
2004
2018
  if (!c.includes(p)) {
2005
2019
  f !== ";" && d++;
2006
2020
  var m = e.substring(l, d).trim();
@@ -2012,15 +2026,15 @@ function ra(e, t) {
2012
2026
  }
2013
2027
  }
2014
2028
  }
2015
- return r && (n += ta(r)), i && (n += ta(i, !0)), n = n.trim(), n === "" ? null : n;
2029
+ return r && (n += na(r)), i && (n += na(i, !0)), n = n.trim(), n === "" ? null : n;
2016
2030
  }
2017
2031
  return e == null ? null : String(e);
2018
2032
  }
2019
2033
  // node_modules/svelte/src/internal/client/dom/elements/class.js
2020
- function ia(e, t, n, r, i, a) {
2034
+ function aa(e, t, n, r, i, a) {
2021
2035
  var o = e[Ee];
2022
2036
  if (w || o !== n || o === void 0) {
2023
- var s = ea(n, r, a);
2037
+ var s = ta(n, r, a);
2024
2038
  w && s === e.getAttribute("class") || (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[Ee] = n;
2025
2039
  } else if (a && i !== a) for (var c in a) {
2026
2040
  var l = !!a[c];
@@ -2029,41 +2043,41 @@ function ia(e, t, n, r, i, a) {
2029
2043
  return a;
2030
2044
  }
2031
2045
  // node_modules/svelte/src/internal/client/dom/elements/style.js
2032
- function aa(e, t = {}, n, r) {
2046
+ function oa(e, t = {}, n, r) {
2033
2047
  for (var i in n) {
2034
2048
  var a = n[i];
2035
2049
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2036
2050
  }
2037
2051
  }
2038
- function oa(e, t, n, r) {
2052
+ function sa(e, t, n, r) {
2039
2053
  var i = e[De];
2040
2054
  if (w || i !== t) {
2041
- var a = ra(t, r);
2055
+ var a = ia(t, r);
2042
2056
  w && a === e.getAttribute("style") || (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[De] = t;
2043
- } else r && (Array.isArray(r) ? (aa(e, n == null ? void 0 : n[0], r[0]), aa(e, n == null ? void 0 : n[1], r[1], "important")) : aa(e, n, r));
2057
+ } else r && (Array.isArray(r) ? (oa(e, n == null ? void 0 : n[0], r[0]), oa(e, n == null ? void 0 : n[1], r[1], "important")) : oa(e, n, r));
2044
2058
  return r;
2045
2059
  }
2046
2060
  // node_modules/svelte/src/internal/client/dom/elements/attributes.js
2047
- var sa = Symbol("is custom element"), ca = Symbol("is html"), la = Ae ? "link" : "LINK";
2048
- function ua(e, t, n, r) {
2049
- var i = da(e);
2050
- if (!(w && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === la))) {
2061
+ var ca = Symbol("is custom element"), la = Symbol("is html"), ua = Ae ? "link" : "LINK";
2062
+ function da(e, t, n, r) {
2063
+ var i = fa(e);
2064
+ if (!(w && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ua))) {
2051
2065
  var a = i[t];
2052
- a !== (i[t] = n) && (t === "loading" && (e[we] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && pa(e).has(t) ? e[t] = n : (!w || typeof n != "number" && typeof n != "boolean" || a !== String(n)) && e.setAttribute(t, n));
2066
+ a !== (i[t] = n) && (t === "loading" && (e[we] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ma(e).has(t) ? e[t] = n : (!w || typeof n != "number" && typeof n != "boolean" || a !== String(n)) && e.setAttribute(t, n));
2053
2067
  }
2054
2068
  }
2055
- function da(e) {
2069
+ function fa(e) {
2056
2070
  var t;
2057
2071
  return (t = e[Te]) == null ? e[Te] = {
2058
- [sa]: e.nodeName.includes("-"),
2059
- [ca]: e.namespaceURI === c
2072
+ [ca]: e.nodeName.includes("-"),
2073
+ [la]: e.namespaceURI === c
2060
2074
  } : t;
2061
2075
  }
2062
- var fa = /* @__PURE__ */ new Map();
2063
- function pa(e) {
2064
- var t = e.getAttribute("is") || e.nodeName, n = fa.get(t);
2076
+ var pa = /* @__PURE__ */ new Map();
2077
+ function ma(e) {
2078
+ var t = e.getAttribute("is") || e.nodeName, n = pa.get(t);
2065
2079
  if (n) return n;
2066
- fa.set(t, n = /* @__PURE__ */ new Set());
2080
+ pa.set(t, n = /* @__PURE__ */ new Set());
2067
2081
  for (var r, i = e, a = Element.prototype; a !== i;) {
2068
2082
  for (var o in r = ee(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
2069
2083
  i = te(i);
@@ -2071,53 +2085,53 @@ function pa(e) {
2071
2085
  return n;
2072
2086
  }
2073
2087
  // node_modules/svelte/src/internal/client/dom/elements/bindings/props.js
2074
- function ma(e, t, n) {
2088
+ function ha(e, t, n) {
2075
2089
  var r = _(e, t);
2076
- r && r.set && (e[t] = n, Qn(() => {
2090
+ r && r.set && (e[t] = n, $n(() => {
2077
2091
  e[t] = null;
2078
2092
  }));
2079
2093
  }
2080
2094
  // node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
2081
- var ha, ga = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakSet(), ba = class {
2095
+ var ga, _a = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakSet(), xa = class {
2082
2096
  constructor(e) {
2083
- Mt(this, ya), k(this, ga, /* @__PURE__ */ new WeakMap()), k(this, _a, void 0), k(this, va, void 0), M(va, this, e);
2097
+ Mt(this, ba), k(this, _a, /* @__PURE__ */ new WeakMap()), k(this, va, void 0), k(this, ya, void 0), M(ya, this, e);
2084
2098
  }
2085
2099
  observe(e, t) {
2086
- var n = j(ga, this).get(e) || /* @__PURE__ */ new Set();
2087
- return n.add(t), j(ga, this).set(e, n), A(ya, this, xa).call(this).observe(e, j(va, this)), () => {
2088
- var n = j(ga, this).get(e);
2089
- n.delete(t), n.size === 0 && (j(ga, this).delete(e), j(_a, this).unobserve(e));
2100
+ var n = j(_a, this).get(e) || /* @__PURE__ */ new Set();
2101
+ return n.add(t), j(_a, this).set(e, n), A(ba, this, Sa).call(this).observe(e, j(ya, this)), () => {
2102
+ var n = j(_a, this).get(e);
2103
+ n.delete(t), n.size === 0 && (j(_a, this).delete(e), j(va, this).unobserve(e));
2090
2104
  };
2091
2105
  }
2092
2106
  };
2093
- ha = ba;
2094
- function xa() {
2107
+ ga = xa;
2108
+ function Sa() {
2095
2109
  var e;
2096
- return (e = j(_a, this)) == null ? M(_a, this, new ResizeObserver((e) => {
2110
+ return (e = j(va, this)) == null ? M(va, this, new ResizeObserver((e) => {
2097
2111
  for (var t of e) {
2098
- ha.entries.set(t.target, t);
2099
- for (var n of j(ga, this).get(t.target) || []) n(t);
2112
+ ga.entries.set(t.target, t);
2113
+ for (var n of j(_a, this).get(t.target) || []) n(t);
2100
2114
  }
2101
2115
  })) : e;
2102
2116
  }
2103
- b(ba, "entries", /* @__PURE__ */ new WeakMap());
2117
+ b(xa, "entries", /* @__PURE__ */ new WeakMap());
2104
2118
  // node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2105
- function Sa(e, t) {
2119
+ function Ca(e, t) {
2106
2120
  return e === t || (e == null ? void 0 : e[xe]) === t;
2107
2121
  }
2108
- function Ca(e = ot(), t, n, r) {
2109
- var i = D.r, a = U;
2110
- return ir(() => {
2122
+ function wa(e = ot(), t, n, r) {
2123
+ var i = D.r, a = H;
2124
+ return ar(() => {
2111
2125
  var o, s;
2112
- return cr(() => {
2113
- o = s, s = (r == null ? void 0 : r()) || [], Y(() => {
2114
- Sa(n(...s), e) || (t(e, ...s), o && Sa(n(...o), e) && t(null, ...o));
2126
+ return lr(() => {
2127
+ o = s, s = (r == null ? void 0 : r()) || [], J(() => {
2128
+ Ca(n(...s), e) || (t(e, ...s), o && Ca(n(...o), e) && t(null, ...o));
2115
2129
  });
2116
2130
  }), () => {
2117
2131
  let r = a;
2118
2132
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2119
2133
  let o = () => {
2120
- s && Sa(n(...s), e) && t(null, ...s);
2134
+ s && Ca(n(...s), e) && t(null, ...s);
2121
2135
  }, c = r.teardown;
2122
2136
  r.teardown = () => {
2123
2137
  o(), c == null || c();
@@ -2126,64 +2140,64 @@ function Ca(e = ot(), t, n, r) {
2126
2140
  }), e;
2127
2141
  }
2128
2142
  // node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js
2129
- function wa(e) {
2143
+ function Ta(e) {
2130
2144
  return function(...t) {
2131
2145
  return t[0].stopPropagation(), e == null ? void 0 : e.apply(this, t);
2132
2146
  };
2133
2147
  }
2134
2148
  // node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js
2135
- function Ta(e = !1) {
2149
+ function Ea(e = !1) {
2136
2150
  let t = D, n = t.l.u;
2137
2151
  if (!n) return;
2138
- let r = () => Ur(t.s);
2152
+ let r = () => Y(t.s);
2139
2153
  if (e) {
2140
2154
  let e = 0, n = {}, i = /* @__PURE__ */ St(() => {
2141
2155
  let r = !1, i = t.s;
2142
2156
  for (let e in i) i[e] !== n[e] && (n[e] = i[e], r = !0);
2143
2157
  return r && e++, e;
2144
2158
  });
2145
- r = () => J(i);
2159
+ r = () => q(i);
2146
2160
  }
2147
- n.b.length && tr(() => {
2148
- Ea(t, r), ae(n.b);
2149
- }), $n(() => {
2150
- let e = Y(() => n.m.map(ie));
2161
+ n.b.length && nr(() => {
2162
+ Da(t, r), ae(n.b);
2163
+ }), er(() => {
2164
+ let e = J(() => n.m.map(ie));
2151
2165
  return () => {
2152
2166
  for (let t of e) typeof t == "function" && t();
2153
2167
  };
2154
- }), n.a.length && $n(() => {
2155
- Ea(t, r), ae(n.a);
2168
+ }), n.a.length && er(() => {
2169
+ Da(t, r), ae(n.a);
2156
2170
  });
2157
2171
  }
2158
- function Ea(e, t) {
2159
- if (e.l.s) for (let t of e.l.s) J(t);
2172
+ function Da(e, t) {
2173
+ if (e.l.s) for (let t of e.l.s) q(t);
2160
2174
  t();
2161
2175
  }
2162
2176
  // node_modules/svelte/src/internal/client/dom/legacy/misc.js
2163
- function Da(e, t) {
2177
+ function Oa(e, t) {
2164
2178
  var n, r = (n = e.$$events) == null ? void 0 : n[t.type];
2165
2179
  for (var i of d(r) ? r.slice() : r == null ? [] : [r]) i.call(this, t);
2166
2180
  }
2167
2181
  // node_modules/svelte/src/internal/client/reactivity/store.js
2168
- var Oa = !1;
2169
- function ka(e) {
2170
- var t = Oa;
2182
+ var ka = !1;
2183
+ function Aa(e) {
2184
+ var t = ka;
2171
2185
  try {
2172
- return Oa = !1, [e(), Oa];
2186
+ return ka = !1, [e(), ka];
2173
2187
  } finally {
2174
- Oa = t;
2188
+ ka = t;
2175
2189
  }
2176
2190
  }
2177
2191
  // node_modules/svelte/src/internal/client/reactivity/props.js
2178
- function Aa(e, t, n, r) {
2179
- var a = !i || !!(n & 2), o = !!(n & 8), s = !!(n & 16), c = r, l = !0, u = void 0, d = () => s && a ? (u != null || (u = /* @__PURE__ */ St(r)), J(u)) : (l && (l = !1, c = s ? Y(r) : r), c);
2192
+ function ja(e, t, n, r) {
2193
+ var a = !i || !!(n & 2), o = !!(n & 8), s = !!(n & 16), c = r, l = !0, u = void 0, d = () => s && a ? (u != null || (u = /* @__PURE__ */ St(r)), q(u)) : (l && (l = !1, c = s ? J(r) : r), c);
2180
2194
  let f;
2181
2195
  if (o) {
2182
2196
  var p, m, h = xe in e || Ce in e;
2183
2197
  f = (p = (m = _(e, t)) == null ? void 0 : m.set) == null ? h && t in e ? (n) => e[t] = n : void 0 : p;
2184
2198
  }
2185
2199
  var g, ee = !1;
2186
- o ? [g, ee] = ka(() => e[t]) : g = e[t], g === void 0 && r !== void 0 && (g = d(), f && (a && Xe(t), f(g)));
2200
+ o ? [g, ee] = Aa(() => e[t]) : g = e[t], g === void 0 && r !== void 0 && (g = d(), f && (a && Xe(t), f(g)));
2187
2201
  var v = a ? () => {
2188
2202
  var n = e[t];
2189
2203
  return n === void 0 ? d() : (l = !0, n);
@@ -2199,24 +2213,24 @@ function Aa(e, t, n, r) {
2199
2213
  });
2200
2214
  }
2201
2215
  var te = !1, ne = (n & 1 ? St : Tt)(() => (te = !1, v()));
2202
- o && J(ne);
2203
- var re = U;
2216
+ o && q(ne);
2217
+ var re = H;
2204
2218
  return (function(e, t) {
2205
2219
  if (arguments.length > 0) {
2206
- let n = t ? J(ne) : a && o ? jn(e) : e;
2220
+ let n = t ? q(ne) : a && o ? jn(e) : e;
2207
2221
  return L(ne, n), te = !0, c !== void 0 && (c = n), e;
2208
2222
  }
2209
- return Cr && te || re.f & 16384 ? ne.v : J(ne);
2223
+ return wr && te || re.f & 16384 ? ne.v : q(ne);
2210
2224
  });
2211
2225
  }
2212
2226
  // node_modules/svelte/src/legacy/legacy-client.js
2213
- function ja(e) {
2214
- return new Pa(e);
2227
+ function Ma(e) {
2228
+ return new Fa(e);
2215
2229
  }
2216
- var Ma = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Pa = class {
2230
+ var Na = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Fa = class {
2217
2231
  constructor(e) {
2218
2232
  var t, n;
2219
- k(this, Ma, void 0), k(this, Na, void 0);
2233
+ k(this, Na, void 0), k(this, Pa, void 0);
2220
2234
  var r = /* @__PURE__ */ new Map(), i = (e, t) => {
2221
2235
  var n = /* @__PURE__ */ I(t, !1, !1);
2222
2236
  return r.set(e, n), n;
@@ -2224,18 +2238,18 @@ var Ma = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Pa =
2224
2238
  let a = new Proxy(nt(nt({}, e.props || {}), {}, { $$events: {} }), {
2225
2239
  get(e, t) {
2226
2240
  var n;
2227
- return J((n = r.get(t)) == null ? i(t, Reflect.get(e, t)) : n);
2241
+ return q((n = r.get(t)) == null ? i(t, Reflect.get(e, t)) : n);
2228
2242
  },
2229
2243
  has(e, t) {
2230
2244
  var n;
2231
- return t === Ce || (J((n = r.get(t)) == null ? i(t, Reflect.get(e, t)) : n), Reflect.has(e, t));
2245
+ return t === Ce || (q((n = r.get(t)) == null ? i(t, Reflect.get(e, t)) : n), Reflect.has(e, t));
2232
2246
  },
2233
2247
  set(e, t, n) {
2234
2248
  var a;
2235
2249
  return L((a = r.get(t)) == null ? i(t, n) : a, n), Reflect.set(e, t, n);
2236
2250
  }
2237
2251
  });
2238
- M(Na, this, (e.hydrate ? Li : Ii)(e.component, {
2252
+ M(Pa, this, (e.hydrate ? Li : Ii)(e.component, {
2239
2253
  target: e.target,
2240
2254
  anchor: e.anchor,
2241
2255
  props: a,
@@ -2243,37 +2257,37 @@ var Ma = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Pa =
2243
2257
  intro: (t = e.intro) != null && t,
2244
2258
  recover: e.recover,
2245
2259
  transformError: e.transformError
2246
- })), e != null && (n = e.props) != null && n.$$host && e.sync !== !1 || fn(), M(Ma, this, a.$$events);
2247
- for (let e of Object.keys(j(Na, this))) e !== "$set" && e !== "$destroy" && e !== "$on" && g(this, e, {
2260
+ })), e != null && (n = e.props) != null && n.$$host && e.sync !== !1 || fn(), M(Na, this, a.$$events);
2261
+ for (let e of Object.keys(j(Pa, this))) e !== "$set" && e !== "$destroy" && e !== "$on" && g(this, e, {
2248
2262
  get() {
2249
- return j(Na, this)[e];
2263
+ return j(Pa, this)[e];
2250
2264
  },
2251
2265
  set(t) {
2252
- j(Na, this)[e] = t;
2266
+ j(Pa, this)[e] = t;
2253
2267
  },
2254
2268
  enumerable: !0
2255
2269
  });
2256
- j(Na, this).$set = (e) => {
2270
+ j(Pa, this).$set = (e) => {
2257
2271
  Object.assign(a, e);
2258
- }, j(Na, this).$destroy = () => {
2259
- Vi(j(Na, this));
2272
+ }, j(Pa, this).$destroy = () => {
2273
+ Vi(j(Pa, this));
2260
2274
  };
2261
2275
  }
2262
2276
  $set(e) {
2263
- j(Na, this).$set(e);
2277
+ j(Pa, this).$set(e);
2264
2278
  }
2265
2279
  $on(e, t) {
2266
- j(Ma, this)[e] = j(Ma, this)[e] || [];
2280
+ j(Na, this)[e] = j(Na, this)[e] || [];
2267
2281
  let n = (...e) => t.call(this, ...e);
2268
- return j(Ma, this)[e].push(n), () => {
2269
- j(Ma, this)[e] = j(Ma, this)[e].filter((e) => e !== n);
2282
+ return j(Na, this)[e].push(n), () => {
2283
+ j(Na, this)[e] = j(Na, this)[e].filter((e) => e !== n);
2270
2284
  };
2271
2285
  }
2272
2286
  $destroy() {
2273
- j(Na, this).$destroy();
2287
+ j(Pa, this).$destroy();
2274
2288
  }
2275
- }, Fa;
2276
- typeof HTMLElement == "function" && (Fa = class extends HTMLElement {
2289
+ }, Ia;
2290
+ typeof HTMLElement == "function" && (Ia = class extends HTMLElement {
2277
2291
  constructor(e, t, n) {
2278
2292
  super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
2279
2293
  }
@@ -2299,28 +2313,28 @@ typeof HTMLElement == "function" && (Fa = class extends HTMLElement {
2299
2313
  e !== "default" && (n.name = e), ai(t, n);
2300
2314
  };
2301
2315
  }
2302
- let t = {}, n = La(this);
2316
+ let t = {}, n = Ra(this);
2303
2317
  for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2304
2318
  for (let e of this.attributes) {
2305
2319
  let t = this.$$g_p(e.name);
2306
- t in this.$$d || (this.$$d[t] = Ia(t, e.value, this.$$p_d, "toProp"));
2320
+ t in this.$$d || (this.$$d[t] = La(t, e.value, this.$$p_d, "toProp"));
2307
2321
  }
2308
2322
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2309
- this.$$c = ja({
2323
+ this.$$c = Ma({
2310
2324
  component: this.$$ctor,
2311
2325
  target: this.$$shadowRoot || this,
2312
2326
  props: nt(nt({}, this.$$d), {}, {
2313
2327
  $$slots: t,
2314
2328
  $$host: this
2315
2329
  })
2316
- }), this.$$me = nr(() => {
2317
- cr(() => {
2330
+ }), this.$$me = rr(() => {
2331
+ lr(() => {
2318
2332
  this.$$r = !0;
2319
2333
  for (let t of h(this.$$c)) {
2320
2334
  var e;
2321
2335
  if (!((e = this.$$p_d[t]) != null && e.reflect)) continue;
2322
2336
  this.$$d[t] = this.$$c[t];
2323
- let n = Ia(t, this.$$d[t], this.$$p_d, "toAttribute");
2337
+ let n = La(t, this.$$d[t], this.$$p_d, "toAttribute");
2324
2338
  n == null ? this.removeAttribute(this.$$p_d[t].attribute || t) : this.setAttribute(this.$$p_d[t].attribute || t, n);
2325
2339
  }
2326
2340
  this.$$r = !1;
@@ -2335,7 +2349,7 @@ typeof HTMLElement == "function" && (Fa = class extends HTMLElement {
2335
2349
  }
2336
2350
  attributeChangedCallback(e, t, n) {
2337
2351
  var r;
2338
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ia(e, n, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [e]: this.$$d[e] }));
2352
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = La(e, n, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [e]: this.$$d[e] }));
2339
2353
  }
2340
2354
  disconnectedCallback() {
2341
2355
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2346,7 +2360,7 @@ typeof HTMLElement == "function" && (Fa = class extends HTMLElement {
2346
2360
  return h(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2347
2361
  }
2348
2362
  });
2349
- function Ia(e, t, n, r) {
2363
+ function La(e, t, n, r) {
2350
2364
  var i;
2351
2365
  let a = (i = n[e]) == null ? void 0 : i.type;
2352
2366
  if (t = a === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
@@ -2365,14 +2379,14 @@ function Ia(e, t, n, r) {
2365
2379
  default: return t;
2366
2380
  }
2367
2381
  }
2368
- function La(e) {
2382
+ function Ra(e) {
2369
2383
  let t = {};
2370
2384
  return e.childNodes.forEach((e) => {
2371
2385
  t[e.slot || "default"] = !0;
2372
2386
  }), t;
2373
2387
  }
2374
- function Ra(e, t, n, r, i, a) {
2375
- let o = class extends Fa {
2388
+ function za(e, t, n, r, i, a) {
2389
+ let o = class extends Ia {
2376
2390
  constructor() {
2377
2391
  super(e, n, i), this.$$p_d = t;
2378
2392
  }
@@ -2386,7 +2400,7 @@ function Ra(e, t, n, r, i, a) {
2386
2400
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2387
2401
  },
2388
2402
  set(n) {
2389
- n = Ia(e, n, t), this.$$d[e] = n;
2403
+ n = La(e, n, t), this.$$d[e] = n;
2390
2404
  var r = this.$$c;
2391
2405
  if (r) {
2392
2406
  var i;
@@ -2401,31 +2415,35 @@ function Ra(e, t, n, r, i, a) {
2401
2415
  } });
2402
2416
  }), a && (o = a(o)), e.element = o, o;
2403
2417
  }
2418
+ // src/lib/utils/portal.ts
2419
+ var Ba = (e) => (document.body.appendChild(e), { destroy() {
2420
+ e.remove();
2421
+ } });
2404
2422
  // node_modules/bezier-easing/src/index.js
2405
- function za(e) {
2423
+ function Va(e) {
2406
2424
  return e <= 0 ? 0 : e >= 1 ? 1 : e;
2407
2425
  }
2408
- var { min: Ba, max: Va, cbrt: Ha, sqrt: Ua, acos: Wa, cos: Ga } = Math, Ka = (e, t, n, r) => {
2409
- let i = 1 / Va(r, Ua(e)), a = e * i, o = a * i, s = r * i, c = n * o, l = s * s + c, u = -s * (s * s + 1.5 * c) - t * a * o, d = u * u - l * l * l, f;
2426
+ var { min: Ha, max: Ua, cbrt: Wa, sqrt: Ga, acos: Ka, cos: qa } = Math, Ja = (e, t, n, r) => {
2427
+ let i = 1 / Ua(r, Ga(e)), a = e * i, o = a * i, s = r * i, c = n * o, l = s * s + c, u = -s * (s * s + 1.5 * c) - t * a * o, d = u * u - l * l * l, f;
2410
2428
  if (!l || d > 1e-12 * u * u) {
2411
- let e = -Ha(u < 0 ? u - Ua(d) : u + Ua(d));
2429
+ let e = -Wa(u < 0 ? u - Ga(d) : u + Ga(d));
2412
2430
  f = e + l / e || 0;
2413
2431
  } else {
2414
- let e = Ua(l);
2415
- f = 2 * e * Ga(Wa(Va(-1, Ba(1, -u / (l * e)))) / 3);
2432
+ let e = Ga(l);
2433
+ f = 2 * e * qa(Ka(Ua(-1, Ha(1, -u / (l * e)))) / 3);
2416
2434
  }
2417
- return Ba(1, a / (f + s));
2418
- }, qa = (e, t, n, r) => ((t * e + n) * e + r) * e;
2419
- function Ja(e, t, n, r) {
2435
+ return Ha(1, a / (f + s));
2436
+ }, Ya = (e, t, n, r) => ((t * e + n) * e + r) * e;
2437
+ function Xa(e, t, n, r) {
2420
2438
  if (!(0 <= e && e <= 1 && 0 <= n && n <= 1)) throw Error("bezier x values must be in [0, 1] range");
2421
- if (e === t && n === r) return za;
2439
+ if (e === t && n === r) return Va;
2422
2440
  let i = (3 * e - 3 * n + 1) / 2, a = n - 2 * e, o = e, s = 3 * t - 3 * r + 1, c = 3 * (r - 2 * t), l = 3 * t;
2423
2441
  return function(e) {
2424
- return e > 0 && e < 1 ? qa(Ka(e, i, a, o), s, c, l) : za(e);
2442
+ return e > 0 && e < 1 ? Ya(Ja(e, i, a, o), s, c, l) : Va(e);
2425
2443
  };
2426
2444
  }
2427
2445
  // src/lib/types/TenuukiSpinAnimationAdapter.ts
2428
- var Ya = {
2446
+ var Za = {
2429
2447
  ease: [
2430
2448
  .25,
2431
2449
  .1,
@@ -2450,19 +2468,19 @@ var Ya = {
2450
2468
  .58,
2451
2469
  1
2452
2470
  ]
2453
- }, Xa = (e) => {
2454
- let t = Ya[e];
2455
- if (t) return Ja(...t);
2471
+ }, Qa = (e) => {
2472
+ let t = Za[e];
2473
+ if (t) return Xa(...t);
2456
2474
  let n = e.match(/^cubic-bezier\(\s*([-+]?\d*\.?\d+)\s*,\s*([-+]?\d*\.?\d+)\s*,\s*([-+]?\d*\.?\d+)\s*,\s*([-+]?\d*\.?\d+)\s*\)$/i);
2457
2475
  if (!n) return null;
2458
2476
  let r = Number(n[1]), i = Number(n[2]), a = Number(n[3]), o = Number(n[4]);
2459
2477
  if (!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) || !Number.isFinite(o)) return null;
2460
2478
  try {
2461
- return Ja(r, i, a, o);
2479
+ return Xa(r, i, a, o);
2462
2480
  } catch (e) {
2463
2481
  return null;
2464
2482
  }
2465
- }, Za = (e) => {
2483
+ }, $a = (e) => {
2466
2484
  let t = 7.5625, n = 2.75;
2467
2485
  if (e < 1 / n) return t * e * e;
2468
2486
  if (e < 2 / n) {
@@ -2475,7 +2493,7 @@ var Ya = {
2475
2493
  }
2476
2494
  let r = e - 2.625 / n;
2477
2495
  return t * r * r + .984375;
2478
- }, Qa = {
2496
+ }, eo = {
2479
2497
  linear: (e) => e,
2480
2498
  easeinquad: (e) => e * e,
2481
2499
  easeoutquad: (e) => 1 - (1 - e) ** 2,
@@ -2516,22 +2534,22 @@ var Ya = {
2516
2534
  let t = 2 * Math.PI / 4.5;
2517
2535
  return e === 0 ? 0 : e === 1 ? 1 : e < .5 ? -(2 ** (20 * e - 10) * Math.sin((20 * e - 11.125) * t)) / 2 : 2 ** (-20 * e + 10) * Math.sin((20 * e - 11.125) * t) / 2 + 1;
2518
2536
  },
2519
- easeinbounce: (e) => 1 - Za(1 - e),
2520
- easeoutbounce: Za,
2521
- easeinoutbounce: (e) => e < .5 ? (1 - Za(1 - 2 * e)) / 2 : (1 + Za(2 * e - 1)) / 2
2522
- }, $a = (e) => e.trim().toLowerCase().replace(/[^a-z0-9]/g, ""), eo = (e) => {
2537
+ easeinbounce: (e) => 1 - $a(1 - e),
2538
+ easeoutbounce: $a,
2539
+ easeinoutbounce: (e) => e < .5 ? (1 - $a(1 - 2 * e)) / 2 : (1 + $a(2 * e - 1)) / 2
2540
+ }, to = (e) => e.trim().toLowerCase().replace(/[^a-z0-9]/g, ""), no = (e) => {
2523
2541
  var t;
2524
2542
  let n = e.trim();
2525
- return Xa(n.toLowerCase()) || (n.toLowerCase() === "standard" ? (e) => e * e * (3 - 2 * e) : (t = Qa[$a(n)]) == null ? ((e) => e) : t);
2526
- }, to = (e, t) => {
2527
- let n = Math.max(1, t.cycleLength), r = 1 / n, i = e % n, a = eo(t.easing), o = Math.max(1e-4, a((i + 1) / n) - a(i / n)), s = t.frameIntervalMs * (r / o);
2543
+ return Qa(n.toLowerCase()) || (n.toLowerCase() === "standard" ? (e) => e * e * (3 - 2 * e) : (t = eo[to(n)]) == null ? ((e) => e) : t);
2544
+ }, ro = (e, t) => {
2545
+ let n = Math.max(1, t.cycleLength), r = 1 / n, i = e % n, a = no(t.easing), o = Math.max(1e-4, a((i + 1) / n) - a(i / n)), s = t.frameIntervalMs * (r / o);
2528
2546
  return Math.max(.5, Math.min(t.frameIntervalMs * 1.75, Math.max(t.frameIntervalMs * .55, s)));
2529
- }, no = { start(e) {
2530
- let t, n = !0, r = 0, i = performance.now(), a = to(0, e), o = (s) => {
2547
+ }, io = { start(e) {
2548
+ let t, n = !0, r = 0, i = performance.now(), a = ro(0, e), o = (s) => {
2531
2549
  if (!n) return;
2532
2550
  let c = 0;
2533
2551
  for (; n && s >= i && r < e.totalSteps && c < 120 && (e.onUpdate(1), r++, c++, !(r >= e.totalSteps));) {
2534
- let t = to(r, e);
2552
+ let t = ro(r, e);
2535
2553
  a = a * .6 + t * .4, i += a;
2536
2554
  }
2537
2555
  if (Number.isFinite(e.totalSteps) && r >= e.totalSteps) {
@@ -2542,10 +2560,10 @@ var Ya = {
2542
2560
  return t = requestAnimationFrame(o), () => {
2543
2561
  n = !1, t !== void 0 && cancelAnimationFrame(t), t = void 0;
2544
2562
  };
2545
- } }, ro = /* @__PURE__ */ ii("<div class=\"rotation-hints\"><span class=\"left-hint-arrow\" aria-hidden=\"true\"></span> <span class=\"right-hint-arrow\" aria-hidden=\"true\"></span></div>"), io = /* @__PURE__ */ ii("<button class=\"left-spin-arrow\" type=\"button\"></button> <button class=\"right-spin-arrow\" type=\"button\"></button>", 1), ao = /* @__PURE__ */ ii("<img draggable=\"false\"/> <!> <!>", 1), oo = /* @__PURE__ */ ii("<p>Loading...</p>"), so = /* @__PURE__ */ ii("<div class=\"tenuuki-spin-context-menu\" role=\"menu\" tabindex=\"-1\"><span role=\"menuitem\"></span></div>"), co = /* @__PURE__ */ ii("<div role=\"progressbar\" aria-label=\"Loading spin frames\" aria-valuemin=\"0\"><span class=\"tenuuki-spin-loading-indicator\" aria-hidden=\"true\"></span> <span> </span></div>"), lo = /* @__PURE__ */ ii("<div class=\"tenuuki-spin-viewer\" role=\"presentation\"><!> <!> <!></div>");
2546
- function uo(e, t) {
2563
+ } }, ao = /* @__PURE__ */ ii("<div class=\"rotation-hints\"><span class=\"left-hint-arrow\" aria-hidden=\"true\"></span> <span class=\"right-hint-arrow\" aria-hidden=\"true\"></span></div>"), oo = /* @__PURE__ */ ii("<button class=\"left-spin-arrow\" type=\"button\"></button> <button class=\"right-spin-arrow\" type=\"button\"></button>", 1), so = /* @__PURE__ */ ii("<img draggable=\"false\"/> <!> <!>", 1), co = /* @__PURE__ */ ii("<p>Loading...</p>"), lo = /* @__PURE__ */ ii("<div class=\"tenuuki-spin-context-menu\" role=\"menu\" tabindex=\"-1\"><div class=\"tenuuki-spin-context-menu-item\" role=\"menuitem\"></div> <div class=\"tenuuki-spin-context-menu-item\" role=\"menuitem\">website: <a href=\"https://disruptiveart.com?utm_source=tenuuki-spin\" target=\"_blank\">Disruptive Art Studio</a></div></div>"), uo = /* @__PURE__ */ ii("<div role=\"progressbar\" aria-label=\"Loading spin frames\" aria-valuemin=\"0\"><span class=\"tenuuki-spin-loading-indicator\" aria-hidden=\"true\"></span> <span> </span></div>"), fo = /* @__PURE__ */ ii("<div class=\"tenuuki-spin-viewer\" role=\"presentation\"><!> <!> <!></div>");
2564
+ function po(e, t) {
2547
2565
  it(t, !1);
2548
- let n = /* @__PURE__ */ I(), r = /* @__PURE__ */ I(), i = /* @__PURE__ */ I(), a = /* @__PURE__ */ I(), o = Aa(t, "options", 28, () => ({ images: [] })), s = /* @__PURE__ */ I(0), c = 0, l = /* @__PURE__ */ I(), u = /* @__PURE__ */ I(), d = /* @__PURE__ */ I(null), f, p = "", m = /* @__PURE__ */ I(!1), h = /* @__PURE__ */ I(0), g = /* @__PURE__ */ I(0), _, ee = [], v = [], y = /* @__PURE__ */ I(0), te = /* @__PURE__ */ I(0), ne = !1, re = !1, ie = /* @__PURE__ */ I(!1), ae = 0, oe = 0, se = 0, ce, le = 2.5, b = 0, x = [], S, C = (e, t) => (e % t + t) % t, ue = (e) => e === -1 ? 1 : -1, de = () => {
2566
+ let n = /* @__PURE__ */ I(), r = /* @__PURE__ */ I(), i = /* @__PURE__ */ I(), a = /* @__PURE__ */ I(), o = ja(t, "options", 28, () => ({ images: [] })), s = /* @__PURE__ */ I(0), c = 0, l = /* @__PURE__ */ I(), u = /* @__PURE__ */ I(), d = /* @__PURE__ */ I(null), f, p = "", m = /* @__PURE__ */ I(!1), h = /* @__PURE__ */ I(0), g = /* @__PURE__ */ I(0), _, ee = [], v = [], y = /* @__PURE__ */ I(0), te = /* @__PURE__ */ I(0), ne = !1, re = !1, ie = /* @__PURE__ */ I(!1), ae = 0, oe = 0, se = 0, ce, le = 2.5, b = 0, x = [], S, C = (e, t) => (e % t + t) % t, ue = (e) => e === -1 ? 1 : -1, de = () => {
2549
2567
  var e;
2550
2568
  return ue((e = o()) == null ? void 0 : e.direction);
2551
2569
  }, fe = () => {
@@ -2578,16 +2596,16 @@ function uo(e, t) {
2578
2596
  var e, t, n, r;
2579
2597
  let i = o().images.length;
2580
2598
  if (i === 0) return;
2581
- let a = C(J(s), i), c = o().images[a] || "", l = `${i}:${a}:${c}`;
2599
+ let a = C(q(s), i), c = o().images[a] || "", l = `${i}:${a}:${c}`;
2582
2600
  if (l === p) return;
2583
2601
  p = l;
2584
2602
  let u = nt({
2585
2603
  image_name: _e(c),
2586
2604
  index: a,
2587
2605
  angle: a / i * 360,
2588
- ref: (e = J(d)) == null ? void 0 : e
2589
- }, (t = J(d)) != null && t.id ? { id: J(d).id } : {}), f = (n = J(d)) == null ? void 0 : n.onFrameChange;
2590
- typeof f == "function" && f(u), typeof o().onFrameChange == "function" && o().onFrameChange(u), (r = J(d)) == null || r.dispatchEvent(new CustomEvent("framechange", { detail: u }));
2606
+ ref: (e = q(d)) == null ? void 0 : e
2607
+ }, (t = q(d)) != null && t.id ? { id: q(d).id } : {}), f = (n = q(d)) == null ? void 0 : n.onFrameChange;
2608
+ typeof f == "function" && f(u), typeof o().onFrameChange == "function" && o().onFrameChange(u), (r = q(d)) == null || r.dispatchEvent(new CustomEvent("framechange", { detail: u }));
2591
2609
  }, ye = () => {
2592
2610
  _ = void 0, f == null || f(), f = void 0;
2593
2611
  }, be = (e, t, n, r = e) => {
@@ -2600,7 +2618,7 @@ function uo(e, t) {
2600
2618
  ye();
2601
2619
  let c = {};
2602
2620
  _ = c;
2603
- let l = ((i = o().animationAdapter) == null ? no : i).start({
2621
+ let l = ((i = o().animationAdapter) == null ? io : i).start({
2604
2622
  totalSteps: s,
2605
2623
  cycleLength: Math.max(1, Math.floor(Number.isFinite(r) ? r : 1)),
2606
2624
  frameIntervalMs: me(),
@@ -2628,8 +2646,8 @@ function uo(e, t) {
2628
2646
  e.stopPropagation(), Ce(Math.floor(c) + t);
2629
2647
  }, Ee = (e) => {
2630
2648
  e.preventDefault();
2631
- let t = J(u).getBoundingClientRect();
2632
- L(h, Math.min(e.clientX - t.left, Math.max(0, t.width - 150))), L(g, Math.min(e.clientY - t.top, Math.max(0, t.height - 40))), L(m, !0), window.addEventListener("pointerdown", De, { once: !0 }), window.addEventListener("blur", De, { once: !0 });
2649
+ let t = window.scrollX + window.innerWidth - 150, n = window.scrollY + window.innerHeight - 40;
2650
+ L(h, Math.min(e.pageX, Math.max(window.scrollX, t))), L(g, Math.min(e.pageY, Math.max(window.scrollY, n))), L(m, !0), window.addEventListener("pointerdown", De, { once: !0 }), window.addEventListener("blur", De, { once: !0 });
2633
2651
  }, De = () => {
2634
2652
  L(m, !1), window.removeEventListener("pointerdown", De), window.removeEventListener("blur", De);
2635
2653
  };
@@ -2648,7 +2666,7 @@ function uo(e, t) {
2648
2666
  Fe();
2649
2667
  let n = de(), r = Math.max(0, Math.floor(e)), i = r === 0 ? Infinity : r * t;
2650
2668
  be(i, (e) => {
2651
- L(s, C(J(s) + n * e, t)), c = J(s);
2669
+ L(s, C(q(s) + n * e, t)), c = q(s);
2652
2670
  }, void 0, ge(i, t));
2653
2671
  }
2654
2672
  function Ae() {
@@ -2663,13 +2681,13 @@ function uo(e, t) {
2663
2681
  function Ne(e = 1, t = null) {
2664
2682
  let n = o().images.length;
2665
2683
  if (n === 0) return;
2666
- t !== null && (L(s, C(t, n)), c = J(s));
2684
+ t !== null && (L(s, C(t, n)), c = q(s));
2667
2685
  let r = Math.max(0, Math.floor(e));
2668
2686
  if (r === 0) return;
2669
2687
  ye();
2670
2688
  let i = r * n, a = de();
2671
2689
  be(i, (e) => {
2672
- L(s, C(J(s) + a * e, n)), c = J(s);
2690
+ L(s, C(q(s) + a * e, n)), c = q(s);
2673
2691
  }, void 0, ge(i, n));
2674
2692
  }
2675
2693
  let w = () => {
@@ -2720,13 +2738,13 @@ function uo(e, t) {
2720
2738
  ye();
2721
2739
  let e = o().images.length, t = T();
2722
2740
  L(s, t.startFrame), c = t.startFrame, be(t.steps, (n) => {
2723
- L(s, C(J(s) + t.dir * n, e)), c = J(s);
2741
+ L(s, C(q(s) + t.dir * n, e)), c = q(s);
2724
2742
  }, () => {
2725
2743
  L(s, t.targetFrame), c = t.targetFrame;
2726
2744
  }, ge(t.steps, e));
2727
2745
  }, Fe = () => {
2728
2746
  S && cancelAnimationFrame(S), S = void 0, b = 0;
2729
- }, Le = () => {
2747
+ }, Re = () => {
2730
2748
  let e = o().images.length;
2731
2749
  if (e === 0 || Math.abs(b) < .1) return;
2732
2750
  let t = performance.now(), n = (r) => {
@@ -2734,59 +2752,59 @@ function uo(e, t) {
2734
2752
  t = r, c = C(c + b * i, e), L(s, Math.floor(c)), b *= .92 ** (i * 60), S = Math.abs(b) >= .01 ? requestAnimationFrame(n) : void 0;
2735
2753
  };
2736
2754
  S = requestAnimationFrame(n);
2737
- }, Re = (e) => o().axis === "y" ? e.clientY : e.clientX, ze = (e) => {
2738
- o().draggable !== !1 && (L(ie, !0), ae = Re(e), se = ae, oe = c, x = [{
2755
+ }, ze = (e) => o().axis === "y" ? e.clientY : e.clientX, Be = (e) => {
2756
+ o().draggable !== !1 && (L(ie, !0), ae = ze(e), se = ae, oe = c, x = [{
2739
2757
  coord: ae,
2740
2758
  time: performance.now()
2741
- }], ye(), Fe(), J(l) && J(l).setPointerCapture(e.pointerId), window.addEventListener("pointermove", Ve), window.addEventListener("pointerup", He), window.addEventListener("pointercancel", He));
2742
- }, Be = () => {
2743
- if (ce = void 0, !J(ie)) return;
2759
+ }], ye(), Fe(), q(l) && q(l).setPointerCapture(e.pointerId), window.addEventListener("pointermove", He), window.addEventListener("pointerup", Ue), window.addEventListener("pointercancel", Ue));
2760
+ }, Ve = () => {
2761
+ if (ce = void 0, !q(ie)) return;
2744
2762
  let e = o().images.length;
2745
2763
  if (e === 0) return;
2746
2764
  let t = (se - ae) * de();
2747
2765
  c = C(oe + t / le, e), L(s, Math.floor(c));
2748
- }, Ve = (e) => {
2749
- J(ie) && (se = Re(e), x.push({
2766
+ }, He = (e) => {
2767
+ q(ie) && (se = ze(e), x.push({
2750
2768
  coord: se,
2751
2769
  time: performance.now()
2752
- }), x.length > 2 && x.shift(), ce === void 0 && (ce = requestAnimationFrame(Be)));
2753
- }, He = (e) => {
2754
- if (J(ie)) {
2755
- if (se = Re(e), ce !== void 0 && (cancelAnimationFrame(ce), ce = void 0), Be(), L(ie, !1), window.removeEventListener("pointermove", Ve), window.removeEventListener("pointerup", He), window.removeEventListener("pointercancel", He), J(l) && J(l).releasePointerCapture(e.pointerId), x.length >= 2) {
2770
+ }), x.length > 2 && x.shift(), ce === void 0 && (ce = requestAnimationFrame(Ve)));
2771
+ }, Ue = (e) => {
2772
+ if (q(ie)) {
2773
+ if (se = ze(e), ce !== void 0 && (cancelAnimationFrame(ce), ce = void 0), Ve(), L(ie, !1), window.removeEventListener("pointermove", He), window.removeEventListener("pointerup", Ue), window.removeEventListener("pointercancel", Ue), q(l) && q(l).releasePointerCapture(e.pointerId), x.length >= 2) {
2756
2774
  let e = x[0], t = x[x.length - 1], n = performance.now(), r = (t.time - e.time) / 1e3, i = t.coord - e.coord;
2757
- r > 0 && n - t.time <= 100 && (b = i / le / r * de(), Math.abs(b) > .1 && Le());
2775
+ r > 0 && n - t.time <= 100 && (b = i / le / r * de(), Math.abs(b) > .1 && Re());
2758
2776
  }
2759
2777
  x = [];
2760
2778
  }
2761
2779
  };
2762
2780
  Yi(() => {
2763
2781
  var e, t, n, r, i, a, l, f, p;
2764
- if (!J(u)) return;
2765
- let m = J(u), h = (e = m.closest("tenuuki-spin-viewer")) == null ? m.parentElement : e;
2782
+ if (!q(u)) return;
2783
+ let m = q(u), h = (e = m.closest("tenuuki-spin-viewer")) == null ? m.parentElement : e;
2766
2784
  if (!h) return {};
2767
2785
  L(d, h);
2768
2786
  let g = h.getAttribute("data-image-base-url"), _ = parseInt(h.getAttribute("data-image-count") || "0", 10), v = h.getAttribute("data-image-number-padding"), y = v === null || v.trim() === "" ? 0 : parseInt(v, 10), te = Number.isFinite(y) && y >= 0 ? y : 0;
2769
2787
  o(o().axis = h.getAttribute("data-axis") === "y" ? "y" : "x", !0), o(o().arrowUp = (t = (n = h.getAttribute("data-arrow-up")) == null ? o().arrowUp : n) == null ? "↑" : t, !0), o(o().arrowDown = (r = (i = h.getAttribute("data-arrow-down")) == null ? o().arrowDown : i) == null ? "↓" : r, !0), o(o().arrowLeft = (a = (l = h.getAttribute("data-arrow-left")) == null ? o().arrowLeft : l) == null ? "←" : a, !0), o(o().arrowRight = (f = (p = h.getAttribute("data-arrow-right")) == null ? o().arrowRight : p) == null ? "→" : f, !0), o(o().direction = h.getAttribute("data-direction") === "-1" ? -1 : 1, !0);
2770
2788
  let re = h.getAttribute("data-initial-spin-direction");
2771
- return o(o().initialSpinDirection = re === "-1" ? -1 : re === "1" ? 1 : o().direction, !0), o(o().draggable = h.getAttribute("data-draggable") !== "false", !0), o(o().showArrows = h.getAttribute("data-show-arrows") === "true", !0), o(o().showRotationHints = h.getAttribute("data-show-rotation-hints") === "true", !0), o(o().initialSpin = h.getAttribute("data-initial-spin") !== "false", !0), o(o().spinOffset = parseInt(h.getAttribute("data-spin-offset") || "0", 10), !0), o(o().initialFrame = parseInt(h.getAttribute("data-initial-frame") || "1", 10), !0), o(o().frameInterval = 60, !0), o(o().speedMultiplier = parseFloat(h.getAttribute("data-speed-multiplier") || "1"), !0), o(o().rotationCurve = h.getAttribute("data-easing") || "linear", !0), o(o().easingScope = h.getAttribute("data-easing-scope") === "full" ? "full" : "single", !0), o(o().replacementToken = h.getAttribute("data-replacement-token") || "frame", !0), g && _ > 0 && o(o().images = xe(g, _, te), !0), L(s, o().initialSpin ? T().startFrame : 0), c = J(s), w(), () => {
2789
+ return o(o().initialSpinDirection = re === "-1" ? -1 : re === "1" ? 1 : o().direction, !0), o(o().draggable = h.getAttribute("data-draggable") !== "false", !0), o(o().showArrows = h.getAttribute("data-show-arrows") === "true", !0), o(o().showRotationHints = h.getAttribute("data-show-rotation-hints") === "true", !0), o(o().initialSpin = h.getAttribute("data-initial-spin") !== "false", !0), o(o().spinOffset = parseInt(h.getAttribute("data-spin-offset") || "0", 10), !0), o(o().initialFrame = parseInt(h.getAttribute("data-initial-frame") || "1", 10), !0), o(o().frameInterval = 60, !0), o(o().speedMultiplier = parseFloat(h.getAttribute("data-speed-multiplier") || "1"), !0), o(o().rotationCurve = h.getAttribute("data-easing") || "linear", !0), o(o().easingScope = h.getAttribute("data-easing-scope") === "full" ? "full" : "single", !0), o(o().replacementToken = h.getAttribute("data-replacement-token") || "frame", !0), g && _ > 0 && o(o().images = xe(g, _, te), !0), L(s, o().initialSpin ? T().startFrame : 0), c = q(s), w(), () => {
2772
2790
  De(), ne = !0;
2773
2791
  for (let e of ee) e.src = "";
2774
2792
  L(d, null), ye(), Fe();
2775
2793
  };
2776
- }), ar(() => (Ur(o()), J(s)), () => {
2794
+ }), or(() => (Y(o()), q(s)), () => {
2777
2795
  var e;
2778
- L(n, ((e = o().images) == null ? void 0 : e[J(s)]) || "");
2779
- }), ar(() => Ur(o()), () => {
2796
+ L(n, ((e = o().images) == null ? void 0 : e[q(s)]) || "");
2797
+ }), or(() => Y(o()), () => {
2780
2798
  var e, t;
2781
2799
  L(r, (e = (t = o().images) == null ? void 0 : t.length) == null ? 0 : e);
2782
- }), ar(() => (J(r), J(y)), () => {
2783
- L(i, J(r) > 0 ? Math.round(J(y) / J(r) * 100) : 0);
2784
- }), ar(() => (J(r), J(y)), () => {
2785
- L(a, J(r) > 0 && J(y) < J(r));
2786
- }), ar(() => (J(s), J(d)), () => {
2787
- J(s), J(d), ve();
2788
- }), or();
2789
- var Ue = {
2800
+ }), or(() => (q(r), q(y)), () => {
2801
+ L(i, q(r) > 0 ? Math.round(q(y) / q(r) * 100) : 0);
2802
+ }), or(() => (q(r), q(y)), () => {
2803
+ L(a, q(r) > 0 && q(y) < q(r));
2804
+ }), or(() => (q(s), q(d)), () => {
2805
+ q(s), q(d), ve();
2806
+ }), sr();
2807
+ var We = {
2790
2808
  goTo: Ce,
2791
2809
  spinTo: Oe,
2792
2810
  play: ke,
@@ -2801,69 +2819,69 @@ function uo(e, t) {
2801
2819
  o(e), fn();
2802
2820
  }
2803
2821
  };
2804
- Ta();
2805
- var We = lo(), Ge = zn(We), Ke = (e) => {
2806
- var t = ao(), r = Bn(t);
2807
- Ca(r, (e) => L(l, e), () => J(l));
2822
+ Ea();
2823
+ var Ge = fo(), Ke = zn(Ge), qe = (e) => {
2824
+ var t = so(), r = Bn(t);
2825
+ wa(r, (e) => L(l, e), () => q(l));
2808
2826
  var i = Hn(r, 2), a = (e) => {
2809
- var t = ro(), n = zn(t);
2810
- Qi(n, () => (Ur(o()), Y(() => we(o().axis === "y" ? o().arrowUp : o().arrowLeft, o().axis === "y" ? "↑" : "←"))), !0), Ie(n);
2827
+ var t = ao(), n = zn(t);
2828
+ Qi(n, () => (Y(o()), J(() => we(o().axis === "y" ? o().arrowUp : o().arrowLeft, o().axis === "y" ? "↑" : "←"))), !0), Ie(n);
2811
2829
  var r = Hn(n, 2);
2812
- Qi(r, () => (Ur(o()), Y(() => we(o().axis === "y" ? o().arrowDown : o().arrowRight, o().axis === "y" ? "↓" : "→"))), !0), Ie(r), Ie(t), ai(e, t);
2830
+ Qi(r, () => (Y(o()), J(() => we(o().axis === "y" ? o().arrowDown : o().arrowRight, o().axis === "y" ? "↓" : "→"))), !0), Ie(r), Ie(t), ai(e, t);
2813
2831
  };
2814
2832
  Zi(i, (e) => {
2815
- Ur(o()), Y(() => o().showRotationHints) && e(a);
2833
+ Y(o()), J(() => o().showRotationHints) && e(a);
2816
2834
  });
2817
2835
  var c = Hn(i, 2), u = (e) => {
2818
- var t = io(), n = Bn(t);
2819
- Qi(n, () => (Ur(o()), Y(() => we(o().axis === "y" ? o().arrowUp : o().arrowLeft, o().axis === "y" ? "↑" : "←"))), !0), Ie(n);
2836
+ var t = oo(), n = Bn(t);
2837
+ Qi(n, () => (Y(o()), J(() => we(o().axis === "y" ? o().arrowUp : o().arrowLeft, o().axis === "y" ? "↑" : "←"))), !0), Ie(n);
2820
2838
  var r = Hn(n, 2);
2821
- Qi(r, () => (Ur(o()), Y(() => we(o().axis === "y" ? o().arrowDown : o().arrowRight, o().axis === "y" ? "↓" : "→"))), !0), Ie(r), lr(() => {
2822
- ua(n, "aria-label", (Ur(o()), Y(() => o().axis === "y" ? "Spin up" : "Spin left"))), ua(r, "aria-label", (Ur(o()), Y(() => o().axis === "y" ? "Spin down" : "Spin right")));
2839
+ Qi(r, () => (Y(o()), J(() => we(o().axis === "y" ? o().arrowDown : o().arrowRight, o().axis === "y" ? "↓" : "→"))), !0), Ie(r), ur(() => {
2840
+ da(n, "aria-label", (Y(o()), J(() => o().axis === "y" ? "Spin up" : "Spin left"))), da(r, "aria-label", (Y(o()), J(() => o().axis === "y" ? "Spin down" : "Spin right")));
2823
2841
  }), Yr("click", n, (e) => Te(e, -1)), Yr("click", r, (e) => Te(e, 1)), ai(e, t);
2824
2842
  };
2825
2843
  Zi(c, (e) => {
2826
- Ur(o()), Y(() => o().showArrows) && e(u);
2827
- }), lr(() => {
2844
+ Y(o()), J(() => o().showArrows) && e(u);
2845
+ }), ur(() => {
2828
2846
  var e;
2829
- ua(r, "src", J(n)), ua(r, "alt", `Spinner frame ${(e = J(s)) == null ? "" : e}`), oa(r, `
2830
- cursor: ${J(ie) ? "grabbing" : "grab"};
2847
+ da(r, "src", q(n)), da(r, "alt", `Spinner frame ${(e = q(s)) == null ? "" : e}`), sa(r, `
2848
+ cursor: ${q(ie) ? "grabbing" : "grab"};
2831
2849
  user-select: none;
2832
2850
  touch-action: none;
2833
2851
  `);
2834
- }), Yr("pointerdown", r, ze), ai(e, t);
2835
- }, qe = (e) => {
2836
- ai(e, oo());
2852
+ }), Yr("pointerdown", r, Be), ai(e, t);
2853
+ }, Je = (e) => {
2854
+ ai(e, co());
2837
2855
  };
2838
- Zi(Ge, (e) => {
2839
- J(n) ? e(Ke) : e(qe, -1);
2856
+ Zi(Ke, (e) => {
2857
+ q(n) ? e(qe) : e(Je, -1);
2840
2858
  });
2841
- var Je = Hn(Ge, 2), Ye = (e) => {
2842
- var n, r = so(), i = zn(r);
2843
- i.textContent = `version: ${(n = "0.0.17") == null ? "" : n}`, Ie(r), lr(() => {
2859
+ var Ye = Hn(Ke, 2), Xe = (e) => {
2860
+ var n, r = lo(), i = zn(r);
2861
+ i.textContent = `version: ${(n = "0.0.19") == null ? "" : n}`, Le(2), Ie(r), $i(r, (e) => Ba == null ? void 0 : Ba(e)), ar(() => Yr("pointerdown", r, Ta(function(e) {
2862
+ Oa.call(this, t, e);
2863
+ }))), ur(() => {
2844
2864
  var e, t;
2845
- return oa(r, `left: ${(e = J(h)) == null ? "" : e}px; top: ${(t = J(g)) == null ? "" : t}px;`);
2846
- }), Yr("pointerdown", r, wa(function(e) {
2847
- Da.call(this, t, e);
2848
- })), ai(e, r);
2865
+ return sa(r, `left: ${(e = q(h)) == null ? "" : e}px; top: ${(t = q(g)) == null ? "" : t}px;`);
2866
+ }), ai(e, r);
2849
2867
  };
2850
- Zi(Je, (e) => {
2851
- J(m) && e(Ye);
2868
+ Zi(Ye, (e) => {
2869
+ q(m) && e(Xe);
2852
2870
  });
2853
- var Xe = Hn(Je, 2), Ze = (e) => {
2854
- var t = co();
2871
+ var Ze = Hn(Ye, 2), Qe = (e) => {
2872
+ var t = uo();
2855
2873
  let n;
2856
2874
  var a = Vn(Hn(zn(t), 2));
2857
- Ie(t), lr(() => {
2875
+ Ie(t), ur(() => {
2858
2876
  var e;
2859
- n = ia(t, 1, "tenuuki-spin-loading", null, n, { "loading-has-errors": J(te) > 0 }), ua(t, "aria-valuemax", J(r)), ua(t, "aria-valuenow", J(y)), ua(t, "aria-valuetext", `${J(i)}% loaded`), Fi(a, `${(e = J(i)) == null ? "" : e}%`);
2877
+ n = aa(t, 1, "tenuuki-spin-loading", null, n, { "loading-has-errors": q(te) > 0 }), da(t, "aria-valuemax", q(r)), da(t, "aria-valuenow", q(y)), da(t, "aria-valuetext", `${q(i)}% loaded`), Fi(a, `${(e = q(i)) == null ? "" : e}%`);
2860
2878
  }), ai(e, t);
2861
2879
  };
2862
- return Zi(Xe, (e) => {
2863
- J(a) && e(Ze);
2864
- }), Ie(We), Ca(We, (e) => L(u, e), () => J(u)), Yr("contextmenu", We, Ee), ai(e, We), ma(t, "goTo", Ce), ma(t, "spinTo", Oe), ma(t, "play", ke), ma(t, "stop", Ae), ma(t, "isPlaying", je), ma(t, "spinToStop", Me), ma(t, "replay", Ne), at(Ue);
2880
+ return Zi(Ze, (e) => {
2881
+ q(a) && e(Qe);
2882
+ }), Ie(Ge), wa(Ge, (e) => L(u, e), () => q(u)), Yr("contextmenu", Ge, Ee), ai(e, Ge), ha(t, "goTo", Ce), ha(t, "spinTo", Oe), ha(t, "play", ke), ha(t, "stop", Ae), ha(t, "isPlaying", je), ha(t, "spinToStop", Me), ha(t, "replay", Ne), at(We);
2865
2883
  }
2866
- customElements.define("tenuuki-spin-viewer", Ra(uo, { options: {} }, [], [
2884
+ customElements.define("tenuuki-spin-viewer", za(po, { options: {} }, [], [
2867
2885
  "goTo",
2868
2886
  "spinTo",
2869
2887
  "play",
@@ -2872,4 +2890,4 @@ customElements.define("tenuuki-spin-viewer", Ra(uo, { options: {} }, [], [
2872
2890
  "spinToStop",
2873
2891
  "replay"
2874
2892
  ]));
2875
- export { no as defaultTenuukiSpinAnimationAdapter };
2893
+ export { io as defaultTenuukiSpinAnimationAdapter };