@strands.gg/accui 2.17.27 → 2.17.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { _ as De, S as lt, U as Xa, a as Ja, b as es, c as ts, d as kt, M as as, e as _t, f as Yt, g as xa, u as Oa, C as _a, h as Ze, i as gt, j as Ra, k as mt, l as Ht } from "./StrandsUIPlugin-RTFzvRED.es.js";
2
- import { m as td } from "./StrandsUIPlugin-RTFzvRED.es.js";
2
+ import { m as ad } from "./StrandsUIPlugin-RTFzvRED.es.js";
3
3
  import { defineComponent as Ve, computed as U, provide as Xt, onMounted as We, onUnmounted as xt, createElementBlock as o, openBlock as a, normalizeClass as be, createElementVNode as e, createBlock as Ce, renderSlot as je, Teleport as qt, createCommentVNode as I, toDisplayString as R, ref as M, watch as Le, createTextVNode as Q, reactive as Ye, withModifiers as Be, createStaticVNode as Jt, createVNode as d, withDirectives as Xe, withCtx as x, unref as n, vModelText as Je, nextTick as ht, Fragment as Ue, Transition as rt, createSlots as Zt, normalizeStyle as Oe, renderList as Ke, mergeProps as $a, useSlots as ga, inject as ma, resolveDynamicComponent as ot, onBeforeUnmount as Fa, withKeys as Re, h as oe, isMemoSame as ss, getCurrentInstance as os } from "vue";
4
4
  import { u as pt, p as La } from "./useStrandsConfig-CMKVW1p3.es.js";
5
- import { s as sd } from "./useStrandsConfig-CMKVW1p3.es.js";
5
+ import { s as od } from "./useStrandsConfig-CMKVW1p3.es.js";
6
6
  import { u as ft } from "./useStrandsAuth-mv5zJr7L.es.js";
7
7
  const ls = { class: "app-content" }, ns = {
8
8
  key: 0,
@@ -54,7 +54,7 @@ const ls = { class: "app-content" }, ns = {
54
54
  ]))
55
55
  ], 2));
56
56
  }
57
- }), xc = /* @__PURE__ */ De(us, [["__scopeId", "data-v-f18c1706"]]), ce = lt;
57
+ }), Mc = /* @__PURE__ */ De(us, [["__scopeId", "data-v-f18c1706"]]), ce = lt;
58
58
  ce.Content = Xa;
59
59
  ce.Anchor = Ja;
60
60
  ce.Nuxt = es;
@@ -152,7 +152,7 @@ const Ha = kt("users", [
152
152
  "ui-toggle-thumb--on": V.value,
153
153
  "ui-toggle-thumb--off": !V.value
154
154
  }
155
- ]), h = () => {
155
+ ]), g = () => {
156
156
  if (t.disabled) return;
157
157
  const $ = !V.value;
158
158
  z.value = $, l("update:modelValue", $), l("change", $);
@@ -172,7 +172,7 @@ const Ha = kt("users", [
172
172
  class: be(k.value),
173
173
  "aria-pressed": V.value,
174
174
  "aria-labelledby": s.label ? `${y.value}-label` : void 0,
175
- onClick: h
175
+ onClick: g
176
176
  }, [
177
177
  e("span", {
178
178
  class: be(["ui-toggle-thumb", u.value])
@@ -194,11 +194,11 @@ const Ha = kt("users", [
194
194
  },
195
195
  emits: ["upload", "error"],
196
196
  setup(s, { emit: r }) {
197
- const t = s, l = r, z = M(), V = M(), y = M(), k = M(""), u = M(), h = M(t.size), $ = M(t.previewSize), A = M(t.size / 2.5), c = Ye({ x: 0, y: 0 }), g = M(1), E = M(0.1), D = M(3), C = M(!1), N = M(!1), p = M(!1), L = Ye({ x: 0, y: 0, imageX: 0, imageY: 0 });
197
+ const t = s, l = r, z = M(), V = M(), y = M(), k = M(""), u = M(), g = M(t.size), $ = M(t.previewSize), A = M(t.size / 2.5), c = Ye({ x: 0, y: 0 }), h = M(1), H = M(0.1), D = M(3), C = M(!1), N = M(!1), p = M(!1), L = Ye({ x: 0, y: 0, imageX: 0, imageY: 0 });
198
198
  We(() => {
199
199
  if (V.value) {
200
200
  const j = V.value.getContext("2d");
201
- j && (j.fillStyle = "#f9fafb", j.fillRect(0, 0, h.value, h.value));
201
+ j && (j.fillStyle = "#f9fafb", j.fillRect(0, 0, g.value, g.value));
202
202
  }
203
203
  });
204
204
  const O = () => {
@@ -233,9 +233,9 @@ const Ha = kt("users", [
233
233
  A.value * 2 / K.width,
234
234
  A.value * 2 / K.height
235
235
  ), ae = ie;
236
- E.value = ie, D.value = Math.max(1, ie);
236
+ H.value = ie, D.value = Math.max(1, ie);
237
237
  const W = K.width * ae, le = K.height * ae;
238
- c.x = (h.value - W) / 2, c.y = (h.value - le) / 2, g.value = ae, ue(), ht(() => {
238
+ c.x = (g.value - W) / 2, c.y = (g.value - le) / 2, h.value = ae, ue(), ht(() => {
239
239
  N.value = !1;
240
240
  }), ht(() => {
241
241
  b();
@@ -245,15 +245,15 @@ const Ha = kt("users", [
245
245
  if (!u.value || !V.value) return;
246
246
  const j = V.value.getContext("2d");
247
247
  if (!j) return;
248
- j.fillStyle = "#f9fafb", j.fillRect(0, 0, h.value, h.value);
249
- const K = u.value, ie = K.width * g.value, ae = K.height * g.value;
248
+ j.fillStyle = "#f9fafb", j.fillRect(0, 0, g.value, g.value);
249
+ const K = u.value, ie = K.width * h.value, ae = K.height * h.value;
250
250
  j.drawImage(K, c.x, c.y, ie, ae), T();
251
251
  }, T = () => {
252
252
  if (!u.value || !y.value || !V.value) return;
253
253
  const j = y.value.getContext("2d");
254
254
  if (!j) return;
255
255
  j.fillStyle = "#ffffff", j.fillRect(0, 0, $.value, $.value), j.save(), j.beginPath(), j.arc($.value / 2, $.value / 2, $.value / 2, 0, Math.PI * 2), j.clip();
256
- const K = h.value / 2 - A.value, ie = h.value / 2 - A.value, ae = A.value * 2;
256
+ const K = g.value / 2 - A.value, ie = g.value / 2 - A.value, ae = A.value * 2;
257
257
  j.drawImage(
258
258
  V.value,
259
259
  K,
@@ -269,7 +269,7 @@ const Ha = kt("users", [
269
269
  u.value && (C.value = !0, L.x = j.clientX, L.y = j.clientY, L.imageX = c.x, L.imageY = c.y, document.addEventListener("mousemove", ye), document.addEventListener("mouseup", Me));
270
270
  }, ue = () => {
271
271
  if (!u.value) return;
272
- const j = u.value, K = j.width * g.value, ie = j.height * g.value, ae = h.value / 2 - A.value, W = h.value / 2 - A.value, le = h.value / 2 + A.value, _e = h.value / 2 + A.value, Te = le - K, Ee = ae, $e = _e - ie, re = W;
272
+ const j = u.value, K = j.width * h.value, ie = j.height * h.value, ae = g.value / 2 - A.value, W = g.value / 2 - A.value, le = g.value / 2 + A.value, _e = g.value / 2 + A.value, Te = le - K, Ee = ae, $e = _e - ie, re = W;
273
273
  c.x = Math.min(Ee, Math.max(Te, c.x)), c.y = Math.min(re, Math.max($e, c.y));
274
274
  }, ye = (j) => {
275
275
  if (!C.value) return;
@@ -279,11 +279,11 @@ const Ha = kt("users", [
279
279
  C.value = !1, document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", Me);
280
280
  }, Ae = (j) => {
281
281
  j.preventDefault();
282
- const K = j.deltaY > 0 ? -0.05 : 0.05, ie = Math.max(E.value, Math.min(D.value, g.value + K));
283
- if (ie !== g.value && u.value) {
282
+ const K = j.deltaY > 0 ? -0.05 : 0.05, ie = Math.max(H.value, Math.min(D.value, h.value + K));
283
+ if (ie !== h.value && u.value) {
284
284
  p.value = !0;
285
- const ae = u.value, W = h.value / 2, le = ae.width * g.value, _e = ae.height * g.value, Te = ae.width * ie, Ee = ae.height * ie, $e = c.x + le / 2 - W, re = c.y + _e / 2 - W, ve = ie / g.value, Ie = $e * ve, G = re * ve;
286
- c.x = W + Ie - Te / 2, c.y = W + G - Ee / 2, g.value = ie, ue(), b(), setTimeout(() => {
285
+ const ae = u.value, W = g.value / 2, le = ae.width * h.value, _e = ae.height * h.value, Te = ae.width * ie, Ee = ae.height * ie, $e = c.x + le / 2 - W, re = c.y + _e / 2 - W, ve = ie / h.value, Ie = $e * ve, G = re * ve;
286
+ c.x = W + Ie - Te / 2, c.y = W + G - Ee / 2, h.value = ie, ue(), b(), setTimeout(() => {
287
287
  p.value = !1;
288
288
  }, 16);
289
289
  }
@@ -295,9 +295,9 @@ const Ha = kt("users", [
295
295
  A.value * 2 / j.width,
296
296
  A.value * 2 / j.height
297
297
  ), ie = K;
298
- E.value = K, D.value = Math.max(1, K);
298
+ H.value = K, D.value = Math.max(1, K);
299
299
  const ae = j.width * ie, W = j.height * ie;
300
- c.x = (h.value - ae) / 2, c.y = (h.value - W) / 2, g.value = ie, ue(), ht(() => {
300
+ c.x = (g.value - ae) / 2, c.y = (g.value - W) / 2, h.value = ie, ue(), ht(() => {
301
301
  N.value = !1;
302
302
  }), b();
303
303
  }, xe = async () => {
@@ -307,7 +307,7 @@ const Ha = kt("users", [
307
307
  const K = j.getContext("2d");
308
308
  if (!K) return;
309
309
  K.fillStyle = "#ffffff", K.fillRect(0, 0, 256, 256), K.save(), K.beginPath(), K.arc(128, 128, 128, 0, Math.PI * 2), K.clip();
310
- const ie = h.value / 2 - A.value, ae = h.value / 2 - A.value, W = A.value * 2;
310
+ const ie = g.value / 2 - A.value, ae = g.value / 2 - A.value, W = A.value * 2;
311
311
  K.drawImage(
312
312
  V.value,
313
313
  ie,
@@ -327,10 +327,10 @@ const Ha = kt("users", [
327
327
  }, ne = () => {
328
328
  O();
329
329
  };
330
- return Le(g, (j, K) => {
330
+ return Le(h, (j, K) => {
331
331
  if (!(N.value || p.value)) {
332
332
  if (j !== K && u.value && K > 0 && K !== 1) {
333
- const ie = u.value, ae = h.value / 2, W = ie.width * K, le = ie.height * K, _e = ie.width * j, Te = ie.height * j, Ee = c.x + W / 2 - ae, $e = c.y + le / 2 - ae, re = j / K, ve = Ee * re, Ie = $e * re;
333
+ const ie = u.value, ae = g.value / 2, W = ie.width * K, le = ie.height * K, _e = ie.width * j, Te = ie.height * j, Ee = c.x + W / 2 - ae, $e = c.y + le / 2 - ae, re = j / K, ve = Ee * re, Ie = $e * re;
334
334
  c.x = ae + ve - _e / 2, c.y = ae + Ie - Te / 2;
335
335
  }
336
336
  b();
@@ -353,8 +353,8 @@ const Ha = kt("users", [
353
353
  e("canvas", {
354
354
  ref_key: "canvas",
355
355
  ref: V,
356
- width: h.value,
357
- height: h.value,
356
+ width: g.value,
357
+ height: g.value,
358
358
  class: "canvas",
359
359
  onMousedown: te,
360
360
  onWheel: Ae
@@ -367,13 +367,13 @@ const Ha = kt("users", [
367
367
  e("rect", {
368
368
  x: "0",
369
369
  y: "0",
370
- width: h.value,
371
- height: h.value,
370
+ width: g.value,
371
+ height: g.value,
372
372
  fill: "white"
373
373
  }, null, 8, Vs),
374
374
  e("circle", {
375
- cx: h.value / 2,
376
- cy: h.value / 2,
375
+ cx: g.value / 2,
376
+ cy: g.value / 2,
377
377
  r: A.value,
378
378
  fill: "black"
379
379
  }, null, 8, Is)
@@ -382,8 +382,8 @@ const Ha = kt("users", [
382
382
  e("rect", {
383
383
  x: "0",
384
384
  y: "0",
385
- width: h.value,
386
- height: h.value,
385
+ width: g.value,
386
+ height: g.value,
387
387
  fill: "black",
388
388
  opacity: "0.5",
389
389
  mask: "url(#backdrop-mask)"
@@ -392,8 +392,8 @@ const Ha = kt("users", [
392
392
  ]),
393
393
  (a(), o("svg", Es, [
394
394
  e("circle", {
395
- cx: h.value / 2,
396
- cy: h.value / 2,
395
+ cx: g.value / 2,
396
+ cy: g.value / 2,
397
397
  r: A.value,
398
398
  fill: "none",
399
399
  stroke: "white",
@@ -407,7 +407,7 @@ const Ha = kt("users", [
407
407
  e("div", Ds, [
408
408
  d(lt, {
409
409
  onClick: K[2] || (K[2] = (ie) => {
410
- g.value = Math.max(E.value, g.value - 0.1), ue(), b();
410
+ h.value = Math.max(H.value, h.value - 0.1), ue(), b();
411
411
  }),
412
412
  icon: !0,
413
413
  squircle: !0,
@@ -422,8 +422,8 @@ const Ha = kt("users", [
422
422
  }),
423
423
  Xe(e("input", {
424
424
  type: "range",
425
- "onUpdate:modelValue": K[3] || (K[3] = (ie) => g.value = ie),
426
- min: E.value,
425
+ "onUpdate:modelValue": K[3] || (K[3] = (ie) => h.value = ie),
426
+ min: H.value,
427
427
  max: D.value,
428
428
  step: 0.01,
429
429
  class: "zoom-slider",
@@ -433,14 +433,14 @@ const Ha = kt("users", [
433
433
  }, null, 40, Ns), [
434
434
  [
435
435
  Je,
436
- g.value,
436
+ h.value,
437
437
  void 0,
438
438
  { number: !0 }
439
439
  ]
440
440
  ]),
441
441
  d(lt, {
442
442
  onClick: K[5] || (K[5] = (ie) => {
443
- g.value = Math.min(D.value, g.value + 0.1), ue(), b();
443
+ h.value = Math.min(D.value, h.value + 0.1), ue(), b();
444
444
  }),
445
445
  icon: !0,
446
446
  squircle: !0,
@@ -559,8 +559,8 @@ class Sa {
559
559
  { freq: 783.99, time: 0.3 }
560
560
  // G5
561
561
  ].forEach((u) => {
562
- const h = r.createOscillator(), $ = r.createGain();
563
- h.connect($), $.connect(r.destination), h.type = "sine", h.frequency.setValueAtTime(u.freq, t + u.time), h.frequency.exponentialRampToValueAtTime(u.freq * 1.02, t + u.time + 0.1), h.frequency.exponentialRampToValueAtTime(u.freq, t + u.time + 0.4), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.08, t + u.time + 0.03), $.gain.linearRampToValueAtTime(0.06, t + u.time + 0.2), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + 0.5), h.start(t + u.time), h.stop(t + u.time + 0.5);
562
+ const g = r.createOscillator(), $ = r.createGain();
563
+ g.connect($), $.connect(r.destination), g.type = "sine", g.frequency.setValueAtTime(u.freq, t + u.time), g.frequency.exponentialRampToValueAtTime(u.freq * 1.02, t + u.time + 0.1), g.frequency.exponentialRampToValueAtTime(u.freq, t + u.time + 0.4), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.08, t + u.time + 0.03), $.gain.linearRampToValueAtTime(0.06, t + u.time + 0.2), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + 0.5), g.start(t + u.time), g.stop(t + u.time + 0.5);
564
564
  });
565
565
  const z = r.createOscillator(), V = r.createGain();
566
566
  z.connect(V), V.connect(r.destination), z.type = "triangle", z.frequency.setValueAtTime(261.63, t), V.gain.setValueAtTime(0, t), V.gain.linearRampToValueAtTime(0.04, t + 0.1), V.gain.linearRampToValueAtTime(0.03, t + 0.4), V.gain.exponentialRampToValueAtTime(0.01, t + 0.8), z.start(t), z.stop(t + 0.8);
@@ -587,16 +587,16 @@ class Sa {
587
587
  { freq: 659.25, time: 0.8 }
588
588
  // E5
589
589
  ].forEach((u) => {
590
- const h = r.createOscillator(), $ = r.createGain();
591
- h.connect($), $.connect(r.destination), h.type = "sine", h.frequency.setValueAtTime(u.freq, t + u.time), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.15, t + u.time + 0.05), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + 0.8), h.start(t + u.time), h.stop(t + u.time + 0.8);
590
+ const g = r.createOscillator(), $ = r.createGain();
591
+ g.connect($), $.connect(r.destination), g.type = "sine", g.frequency.setValueAtTime(u.freq, t + u.time), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.15, t + u.time + 0.05), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + 0.8), g.start(t + u.time), g.stop(t + u.time + 0.8);
592
592
  }), [
593
593
  { freq: 130.81, time: 0, duration: 1.5 },
594
594
  // C3
595
595
  { freq: 196, time: 0.8, duration: 1.7 }
596
596
  // G3
597
597
  ].forEach((u) => {
598
- const h = r.createOscillator(), $ = r.createGain();
599
- h.connect($), $.connect(r.destination), h.type = "triangle", h.frequency.setValueAtTime(u.freq, t + u.time), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.08, t + u.time + 0.3), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + u.duration), h.start(t + u.time), h.stop(t + u.time + u.duration);
598
+ const g = r.createOscillator(), $ = r.createGain();
599
+ g.connect($), $.connect(r.destination), g.type = "triangle", g.frequency.setValueAtTime(u.freq, t + u.time), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.08, t + u.time + 0.3), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + u.duration), g.start(t + u.time), g.stop(t + u.time + u.duration);
600
600
  }), [
601
601
  { freq: 1046.5, time: 1 },
602
602
  // C6
@@ -605,11 +605,11 @@ class Sa {
605
605
  { freq: 1567.98, time: 1.6 }
606
606
  // G6
607
607
  ].forEach((u) => {
608
- const h = r.createOscillator(), $ = r.createGain();
609
- h.connect($), $.connect(r.destination), h.type = "sine", h.frequency.setValueAtTime(u.freq, t + u.time), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.1, t + u.time + 0.02), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + 0.4), h.start(t + u.time), h.stop(t + u.time + 0.4);
608
+ const g = r.createOscillator(), $ = r.createGain();
609
+ g.connect($), $.connect(r.destination), g.type = "sine", g.frequency.setValueAtTime(u.freq, t + u.time), $.gain.setValueAtTime(0, t + u.time), $.gain.linearRampToValueAtTime(0.1, t + u.time + 0.02), $.gain.exponentialRampToValueAtTime(0.01, t + u.time + 0.4), g.start(t + u.time), g.stop(t + u.time + 0.4);
610
610
  }), [261.63, 329.63, 392, 523.25].forEach((u) => {
611
- const h = r.createOscillator(), $ = r.createGain();
612
- h.connect($), $.connect(r.destination), h.type = "sine", h.frequency.setValueAtTime(u, t + 1.8), $.gain.setValueAtTime(0, t + 1.8), $.gain.linearRampToValueAtTime(0.12, t + 1.9), $.gain.exponentialRampToValueAtTime(0.01, t + l), h.start(t + 1.8), h.stop(t + l);
611
+ const g = r.createOscillator(), $ = r.createGain();
612
+ g.connect($), $.connect(r.destination), g.type = "sine", g.frequency.setValueAtTime(u, t + 1.8), $.gain.setValueAtTime(0, t + 1.8), $.gain.linearRampToValueAtTime(0.12, t + 1.9), $.gain.exponentialRampToValueAtTime(0.01, t + l), g.start(t + 1.8), g.stop(t + l);
613
613
  });
614
614
  }
615
615
  /**
@@ -623,8 +623,8 @@ class Sa {
623
623
  [659.25, 830.61].forEach((z, V) => {
624
624
  const y = r.createOscillator(), k = r.createGain();
625
625
  y.connect(k), k.connect(r.destination), y.type = "sine", y.frequency.setValueAtTime(z, t);
626
- const u = V * 0.1, h = 0.15;
627
- k.gain.setValueAtTime(0, t), k.gain.linearRampToValueAtTime(0.2, t + u + 0.01), k.gain.exponentialRampToValueAtTime(0.01, t + u + h), y.start(t + u), y.stop(t + u + h);
626
+ const u = V * 0.1, g = 0.15;
627
+ k.gain.setValueAtTime(0, t), k.gain.linearRampToValueAtTime(0.2, t + u + 0.01), k.gain.exponentialRampToValueAtTime(0.01, t + u + g), y.start(t + u), y.stop(t + u + g);
628
628
  });
629
629
  }
630
630
  /**
@@ -702,8 +702,8 @@ const Fs = (s, r) => Sa.playLevelUp(s, r), qs = { class: "level-progress-contain
702
702
  emits: ["levelup"],
703
703
  setup(s, { emit: r }) {
704
704
  const t = s, l = r, z = M(!1), V = M(t.value), y = M("forward");
705
- let k = null, u = t.value, h = t.level;
706
- const $ = Kt, A = t.size ?? Kt, c = Kt / 2, g = U(() => t.thickness ?? 24), E = U(() => t.labelThickness ?? 46), D = U(() => t.gapAngle ?? 16), C = U(() => (Kt - g.value) / 2 - Da), N = U(() => (Kt - E.value) / 1.9 - Da), p = U(() => N.value + 10), L = U(() => C.value - g.value / 2 - so), O = U(() => t.levelLabel?.length ?? 0), S = U(() => O.value * no + lo), w = U(() => -S.value / 2), q = U(() => S.value / 2), Z = U(
705
+ let k = null, u = t.value, g = t.level;
706
+ const $ = Kt, A = t.size ?? Kt, c = Kt / 2, h = U(() => t.thickness ?? 24), H = U(() => t.labelThickness ?? 46), D = U(() => t.gapAngle ?? 16), C = U(() => (Kt - h.value) / 2 - Da), N = U(() => (Kt - H.value) / 1.9 - Da), p = U(() => N.value + 10), L = U(() => C.value - h.value / 2 - so), O = U(() => t.levelLabel?.length ?? 0), S = U(() => O.value * no + lo), w = U(() => -S.value / 2), q = U(() => S.value / 2), Z = U(
707
707
  () => xe(c, c, N.value, w.value, q.value)
708
708
  ), b = U(
709
709
  () => (
@@ -773,7 +773,7 @@ const Fs = (s, r) => Sa.playLevelUp(s, r), qs = { class: "level-progress-contain
773
773
  return Le(() => t.value, (ie) => {
774
774
  y.value = ie >= u ? "forward" : "backward", j(ie, u), u = ie;
775
775
  }), Le(() => t.level, (ie) => {
776
- ie !== h && ie > h && K(), h = ie;
776
+ ie !== g && ie > g && K(), g = ie;
777
777
  }), (ie, ae) => (a(), o("div", qs, [
778
778
  (a(), o("svg", {
779
779
  width: n(A),
@@ -803,14 +803,14 @@ const Fs = (s, r) => Sa.playLevelUp(s, r), qs = { class: "level-progress-contain
803
803
  key: 1,
804
804
  d: te.value,
805
805
  stroke: "#ddd",
806
- "stroke-width": g.value,
806
+ "stroke-width": h.value,
807
807
  fill: "none",
808
808
  "stroke-linecap": "round"
809
809
  }, null, 8, Ws)) : I("", !0),
810
810
  e("path", {
811
811
  d: Z.value,
812
812
  stroke: ue.value,
813
- "stroke-width": E.value,
813
+ "stroke-width": H.value,
814
814
  fill: "none",
815
815
  "stroke-linecap": "round"
816
816
  }, null, 8, Qs),
@@ -825,7 +825,7 @@ const Fs = (s, r) => Sa.playLevelUp(s, r), qs = { class: "level-progress-contain
825
825
  key: 2,
826
826
  d: T.value,
827
827
  stroke: ye.value,
828
- "stroke-width": g.value,
828
+ "stroke-width": h.value,
829
829
  fill: "none",
830
830
  "stroke-linecap": "round"
831
831
  }, null, 8, Js)) : I("", !0),
@@ -957,17 +957,17 @@ function uo(s = {}) {
957
957
  if (V.value) return;
958
958
  const c = /* @__PURE__ */ Symbol("modal");
959
959
  z.value = c;
960
- const g = Ft.add({
960
+ const h = Ft.add({
961
961
  id: c,
962
962
  closeModal: A || u,
963
963
  closeOnEscape: r,
964
964
  priority: t,
965
965
  component: l
966
966
  });
967
- return y.value = g, V.value = !0, await ht(), g;
967
+ return y.value = h, V.value = !0, await ht(), h;
968
968
  }, u = () => {
969
969
  !z.value || !V.value || (Ft.remove(z.value), z.value = null, y.value = null, V.value = !1);
970
- }, h = () => z.value ? document.querySelector(`[data-modal-id="${z.value.toString()}"]`) : null, $ = () => y.value ? document.querySelector(`.ui-app-modal-backdrop[style*="z-index: ${y.value.zIndex - 1}"]`) : null;
970
+ }, g = () => z.value ? document.querySelector(`[data-modal-id="${z.value.toString()}"]`) : null, $ = () => y.value ? document.querySelector(`.ui-app-modal-backdrop[style*="z-index: ${y.value.zIndex - 1}"]`) : null;
971
971
  try {
972
972
  xt(() => {
973
973
  V.value && u();
@@ -983,7 +983,7 @@ function uo(s = {}) {
983
983
  openModal: k,
984
984
  closeModal: u,
985
985
  // Utilities
986
- getModalContainer: h,
986
+ getModalContainer: g,
987
987
  getModalBackdrop: $,
988
988
  // Computed values
989
989
  zIndex: () => y.value?.zIndex || 0,
@@ -993,14 +993,14 @@ function uo(s = {}) {
993
993
  }
994
994
  };
995
995
  }
996
- function Mc(s) {
996
+ function $c(s) {
997
997
  const r = () => `[data-modal-id="${s.toString()}"]`, t = () => document.querySelector(r()) !== null;
998
998
  return {
999
999
  target: r(),
1000
1000
  isAvailable: t
1001
1001
  };
1002
1002
  }
1003
- function $c() {
1003
+ function Sc() {
1004
1004
  const s = M(Ft.state), r = Ft.subscribe((t) => {
1005
1005
  s.value = t;
1006
1006
  });
@@ -1052,7 +1052,7 @@ const co = {
1052
1052
  component: "UiModal"
1053
1053
  });
1054
1054
  M(!0);
1055
- const h = U(() => t.modelValue !== void 0 ? t.modelValue : z.value), $ = U(() => ({
1055
+ const g = U(() => t.modelValue !== void 0 ? t.modelValue : z.value), $ = U(() => ({
1056
1056
  sm: "ui-modal-size-sm",
1057
1057
  md: "ui-modal-size-md",
1058
1058
  lg: "ui-modal-size-lg",
@@ -1065,19 +1065,19 @@ const co = {
1065
1065
  full: "ui-modal-size-full",
1066
1066
  auto: "ui-modal-size-auto"
1067
1067
  })[t.size]), A = async () => {
1068
- k.value = document.activeElement, await u.openModal(g), t.modelValue !== void 0 ? l("update:modelValue", !0) : z.value = !0, l("open");
1068
+ k.value = document.activeElement, await u.openModal(h), t.modelValue !== void 0 ? l("update:modelValue", !0) : z.value = !0, l("open");
1069
1069
  }, c = () => {
1070
1070
  V.value && (k.value = V.value.querySelector('button, [tabindex]:not([tabindex="-1"]), a[href], input, select, textarea'), k.value || (k.value = V.value)), A();
1071
- }, g = () => {
1071
+ }, h = () => {
1072
1072
  t.modelValue !== void 0 ? l("update:modelValue", !1) : z.value = !1, l("close"), u.closeModal(), ht(() => {
1073
1073
  k.value && document.contains(k.value) && k.value.focus(), k.value = null;
1074
1074
  });
1075
1075
  };
1076
- Le(h, async (D) => {
1077
- D ? (u.isOpen.value || await u.openModal(g), await ht(), y.value && y.value.focus()) : u.isOpen.value && u.closeModal();
1076
+ Le(g, async (D) => {
1077
+ D ? (u.isOpen.value || await u.openModal(h), await ht(), y.value && y.value.focus()) : u.isOpen.value && u.closeModal();
1078
1078
  });
1079
- const E = (D) => {
1080
- if (!h.value || D.key !== "Tab" || !y.value) return;
1079
+ const H = (D) => {
1080
+ if (!g.value || D.key !== "Tab" || !y.value) return;
1081
1081
  const C = y.value.querySelectorAll(
1082
1082
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
1083
1083
  ), N = Array.from(C);
@@ -1086,9 +1086,9 @@ const co = {
1086
1086
  D.shiftKey ? document.activeElement === p && (D.preventDefault(), L.focus()) : document.activeElement === L && (D.preventDefault(), p.focus());
1087
1087
  };
1088
1088
  return We(() => {
1089
- document.addEventListener("keydown", E);
1089
+ document.addEventListener("keydown", H);
1090
1090
  }), xt(() => {
1091
- document.removeEventListener("keydown", E);
1091
+ document.removeEventListener("keydown", H);
1092
1092
  }), (D, C) => (a(), o(Ue, null, [
1093
1093
  D.$slots.trigger ? (a(), o("span", {
1094
1094
  key: 0,
@@ -1098,17 +1098,17 @@ const co = {
1098
1098
  }, [
1099
1099
  je(D.$slots, "trigger", {
1100
1100
  open: c,
1101
- close: g,
1102
- isOpen: h.value
1101
+ close: h,
1102
+ isOpen: g.value
1103
1103
  }, void 0, !0)
1104
1104
  ], 512)) : I("", !0),
1105
- h.value ? (a(), Ce(qt, {
1105
+ g.value ? (a(), Ce(qt, {
1106
1106
  key: 1,
1107
1107
  to: "body"
1108
1108
  }, [
1109
1109
  d(rt, { name: "modal" }, {
1110
1110
  default: x(() => [
1111
- h.value ? (a(), o("div", co, [
1111
+ g.value ? (a(), o("div", co, [
1112
1112
  e("div", {
1113
1113
  class: "ui-modal-container",
1114
1114
  ref_key: "modalContainer",
@@ -1126,8 +1126,8 @@ const co = {
1126
1126
  e("div", vo, [
1127
1127
  e("div", po, [
1128
1128
  je(D.$slots, "header", {
1129
- handleClose: g,
1130
- isOpen: h.value,
1129
+ handleClose: h,
1130
+ isOpen: g.value,
1131
1131
  openModal: A
1132
1132
  }, () => [
1133
1133
  D.$props.title ? (a(), o("h2", fo, R(D.$props.title), 1)) : I("", !0),
@@ -1138,7 +1138,7 @@ const co = {
1138
1138
  key: 0,
1139
1139
  type: "button",
1140
1140
  class: "ui-modal-close-button",
1141
- onClick: g,
1141
+ onClick: h,
1142
1142
  "aria-label": "Close modal"
1143
1143
  }, [...C[0] || (C[0] = [
1144
1144
  e("svg", {
@@ -1165,8 +1165,8 @@ const co = {
1165
1165
  name: "footer",
1166
1166
  fn: x(() => [
1167
1167
  je(D.$slots, "footer", {
1168
- handleClose: g,
1169
- isOpen: h.value,
1168
+ handleClose: h,
1169
+ isOpen: g.value,
1170
1170
  openModal: A
1171
1171
  }, void 0, !0)
1172
1172
  ]),
@@ -1837,7 +1837,7 @@ const co = {
1837
1837
  }
1838
1838
  return "#EA00A8";
1839
1839
  }
1840
- const l = s, z = r, V = M(), y = M(), k = M(), u = M(0), h = M(1), $ = M(1), A = M(1), c = M(l.modelValue || t()), g = M({ r: 234, g: 0, b: 168 }), E = M(100), D = M(l.defaultColorFormat || "hex"), C = M({ h: 0, s: 0, l: 0 }), N = M({ l: 0, c: 0, h: 0 }), p = M(!1), L = M(!1), O = M(!1), S = M(!1), w = M(!1), q = U(() => p.value), Z = M(null), b = M(l.compareColor);
1840
+ const l = s, z = r, V = M(), y = M(), k = M(), u = M(0), g = M(1), $ = M(1), A = M(1), c = M(l.modelValue || t()), h = M({ r: 234, g: 0, b: 168 }), H = M(100), D = M(l.defaultColorFormat || "hex"), C = M({ h: 0, s: 0, l: 0 }), N = M({ l: 0, c: 0, h: 0 }), p = M(!1), L = M(!1), O = M(!1), S = M(!1), w = M(!1), q = U(() => p.value), Z = M(null), b = M(l.compareColor);
1841
1841
  let T = null, te = null;
1842
1842
  const ue = M(!1);
1843
1843
  let ye = "";
@@ -1893,8 +1893,8 @@ const co = {
1893
1893
  }
1894
1894
  return m && (ie.value = m), m;
1895
1895
  }), _e = (v) => v.toLowerCase() === at.value.toLowerCase(), Te = (v) => {
1896
- const i = v.replace("#", ""), m = parseInt(i.substring(0, 2), 16), ee = parseInt(i.substring(2, 4), 16), _ = parseInt(i.substring(4, 6), 16), Y = Math.pow(m / 255, 2.4), F = Math.pow(ee / 255, 2.4), H = Math.pow(_ / 255, 2.4);
1897
- return 0.2126729 * Y + 0.7151522 * F + 0.072175 * H < 0.3 ? "#ffffff" : "#000000";
1896
+ const i = v.replace("#", ""), m = parseInt(i.substring(0, 2), 16), ee = parseInt(i.substring(2, 4), 16), _ = parseInt(i.substring(4, 6), 16), Y = Math.pow(m / 255, 2.4), F = Math.pow(ee / 255, 2.4), E = Math.pow(_ / 255, 2.4);
1897
+ return 0.2126729 * Y + 0.7151522 * F + 0.072175 * E < 0.3 ? "#ffffff" : "#000000";
1898
1898
  }, Ee = (v) => {
1899
1899
  const i = {
1900
1900
  "--_color": v
@@ -1925,23 +1925,23 @@ const co = {
1925
1925
  return v;
1926
1926
  }, re = (v, i, m) => {
1927
1927
  v = Math.round(v * 1e3) / 1e3, i = Math.round(i * 1e3) / 1e3, m = Math.round(m * 1e3) / 1e3;
1928
- const ee = Math.floor(v / 60), _ = v / 60 - ee, Y = m * (1 - i), F = m * (1 - i * _), H = m * (1 - i * (1 - _));
1928
+ const ee = Math.floor(v / 60), _ = v / 60 - ee, Y = m * (1 - i), F = m * (1 - i * _), E = m * (1 - i * (1 - _));
1929
1929
  let f, B, se;
1930
1930
  switch (ee % 6) {
1931
1931
  case 0:
1932
- f = m, B = H, se = Y;
1932
+ f = m, B = E, se = Y;
1933
1933
  break;
1934
1934
  case 1:
1935
1935
  f = F, B = m, se = Y;
1936
1936
  break;
1937
1937
  case 2:
1938
- f = Y, B = m, se = H;
1938
+ f = Y, B = m, se = E;
1939
1939
  break;
1940
1940
  case 3:
1941
1941
  f = Y, B = F, se = m;
1942
1942
  break;
1943
1943
  case 4:
1944
- f = H, B = Y, se = m;
1944
+ f = E, B = Y, se = m;
1945
1945
  break;
1946
1946
  case 5:
1947
1947
  f = m, B = Y, se = F;
@@ -1958,7 +1958,7 @@ const co = {
1958
1958
  v /= 255, i /= 255, m /= 255;
1959
1959
  const ee = Math.max(v, i, m), _ = Math.min(v, i, m), Y = ee - _;
1960
1960
  let F = 0;
1961
- const H = ee === 0 ? 0 : Y / ee, f = ee;
1961
+ const E = ee === 0 ? 0 : Y / ee, f = ee;
1962
1962
  if (Y !== 0)
1963
1963
  switch (ee) {
1964
1964
  case v:
@@ -1974,7 +1974,7 @@ const co = {
1974
1974
  return {
1975
1975
  h: Math.round(F * 1e3) / 1e3,
1976
1976
  // 3 decimal precision
1977
- s: Math.round(H * 1e3) / 1e3,
1977
+ s: Math.round(E * 1e3) / 1e3,
1978
1978
  v: Math.round(f * 1e3) / 1e3
1979
1979
  };
1980
1980
  }, Ie = (v) => {
@@ -1987,27 +1987,27 @@ const co = {
1987
1987
  }, G = (v, i, m) => `#${((1 << 24) + (v << 16) + (i << 8) + m).toString(16).slice(1)}`, he = (v, i, m) => {
1988
1988
  v /= 255, i /= 255, m /= 255;
1989
1989
  const ee = Math.max(v, i, m), _ = Math.min(v, i, m), Y = ee - _, F = ee + _;
1990
- let H = 0, f = 0, B = F / 2;
1990
+ let E = 0, f = 0, B = F / 2;
1991
1991
  if (Y !== 0)
1992
1992
  switch (f = B > 0.5 ? Y / (2 - F) : Y / F, ee) {
1993
1993
  case v:
1994
- H = ((i - m) / Y + (i < m ? 6 : 0)) / 6;
1994
+ E = ((i - m) / Y + (i < m ? 6 : 0)) / 6;
1995
1995
  break;
1996
1996
  case i:
1997
- H = ((m - v) / Y + 2) / 6;
1997
+ E = ((m - v) / Y + 2) / 6;
1998
1998
  break;
1999
1999
  case m:
2000
- H = ((v - i) / Y + 4) / 6;
2000
+ E = ((v - i) / Y + 4) / 6;
2001
2001
  break;
2002
2002
  }
2003
2003
  return {
2004
- h: Math.round(H * 360),
2004
+ h: Math.round(E * 360),
2005
2005
  s: Math.round(f * 100),
2006
2006
  l: Math.round(B * 100)
2007
2007
  };
2008
2008
  }, X = (v, i, m) => {
2009
2009
  v /= 360, i /= 100, m /= 100;
2010
- const ee = (F, H, f) => (f < 0 && (f += 1), f > 1 && (f -= 1), f < 1 / 6 ? F + (H - F) * 6 * f : f < 1 / 2 ? H : f < 2 / 3 ? F + (H - F) * (2 / 3 - f) * 6 : F);
2010
+ const ee = (F, E, f) => (f < 0 && (f += 1), f > 1 && (f -= 1), f < 1 / 6 ? F + (E - F) * 6 * f : f < 1 / 2 ? E : f < 2 / 3 ? F + (E - F) * (2 / 3 - f) * 6 : F);
2011
2011
  if (i === 0)
2012
2012
  return { r: Math.round(m * 255), g: Math.round(m * 255), b: Math.round(m * 255) };
2013
2013
  const _ = m < 0.5 ? m * (1 + i) : m + i - m * i, Y = 2 * m - _;
@@ -2017,7 +2017,7 @@ const co = {
2017
2017
  b: Math.round(ee(Y, _, v - 1 / 3) * 255)
2018
2018
  };
2019
2019
  }, fe = (v, i, m) => {
2020
- const ee = (St) => (St /= 255, St <= 0.04045 ? St / 12.92 : Math.pow((St + 0.055) / 1.055, 2.4)), _ = ee(v), Y = ee(i), F = ee(m), H = 0.4122214708 * _ + 0.5363325363 * Y + 0.0514459929 * F, f = 0.2119034982 * _ + 0.6806995451 * Y + 0.1073969566 * F, B = 0.0883024619 * _ + 0.2817188376 * Y + 0.6299787005 * F, se = Math.sign(H) * Math.pow(Math.abs(H), 1 / 3), de = Math.sign(f) * Math.pow(Math.abs(f), 1 / 3), ke = Math.sign(B) * Math.pow(Math.abs(B), 1 / 3), ge = 0.2104542553 * se + 0.793617785 * de - 0.0040720468 * ke, me = 1.9779984951 * se - 2.428592205 * de + 0.4505937099 * ke, ze = 0.0259040371 * se + 0.7827717662 * de - 0.808675766 * ke, qe = ge, Ge = Math.sqrt(me * me + ze * ze);
2020
+ const ee = (St) => (St /= 255, St <= 0.04045 ? St / 12.92 : Math.pow((St + 0.055) / 1.055, 2.4)), _ = ee(v), Y = ee(i), F = ee(m), E = 0.4122214708 * _ + 0.5363325363 * Y + 0.0514459929 * F, f = 0.2119034982 * _ + 0.6806995451 * Y + 0.1073969566 * F, B = 0.0883024619 * _ + 0.2817188376 * Y + 0.6299787005 * F, se = Math.sign(E) * Math.pow(Math.abs(E), 1 / 3), de = Math.sign(f) * Math.pow(Math.abs(f), 1 / 3), ke = Math.sign(B) * Math.pow(Math.abs(B), 1 / 3), ge = 0.2104542553 * se + 0.793617785 * de - 0.0040720468 * ke, me = 1.9779984951 * se - 2.428592205 * de + 0.4505937099 * ke, ze = 0.0259040371 * se + 0.7827717662 * de - 0.808675766 * ke, qe = ge, Ge = Math.sqrt(me * me + ze * ze);
2021
2021
  let st = Math.atan2(ze, me) * 180 / Math.PI;
2022
2022
  return st < 0 && (st += 360), {
2023
2023
  l: Math.round(qe * 100),
@@ -2026,7 +2026,7 @@ const co = {
2026
2026
  };
2027
2027
  }, pe = (v, i, m) => {
2028
2028
  v /= 100, i /= 100, m = m * Math.PI / 180;
2029
- const ee = i * Math.cos(m), _ = i * Math.sin(m), Y = v + 0.3963377774 * ee + 0.2158037573 * _, F = v - 0.1055613458 * ee - 0.0638541728 * _, H = v - 0.0894841775 * ee - 1.291485548 * _, f = Y * Y * Y, B = F * F * F, se = H * H * H, de = 4.0767416621 * f - 3.3077115913 * B + 0.2309699292 * se, ke = -1.2684380046 * f + 2.6097574011 * B - 0.3413193965 * se, ge = -0.0041960863 * f - 0.7034186147 * B + 1.707614701 * se, me = (ze) => ze <= 31308e-7 ? ze * 12.92 : 1.055 * Math.pow(ze, 1 / 2.4) - 0.055;
2029
+ const ee = i * Math.cos(m), _ = i * Math.sin(m), Y = v + 0.3963377774 * ee + 0.2158037573 * _, F = v - 0.1055613458 * ee - 0.0638541728 * _, E = v - 0.0894841775 * ee - 1.291485548 * _, f = Y * Y * Y, B = F * F * F, se = E * E * E, de = 4.0767416621 * f - 3.3077115913 * B + 0.2309699292 * se, ke = -1.2684380046 * f + 2.6097574011 * B - 0.3413193965 * se, ge = -0.0041960863 * f - 0.7034186147 * B + 1.707614701 * se, me = (ze) => ze <= 31308e-7 ? ze * 12.92 : 1.055 * Math.pow(ze, 1 / 2.4) - 0.055;
2030
2030
  return {
2031
2031
  r: Math.max(0, Math.min(255, Math.round(me(de) * 255))),
2032
2032
  g: Math.max(0, Math.min(255, Math.round(me(ke) * 255))),
@@ -2048,8 +2048,8 @@ const co = {
2048
2048
  }, Fe = (v, i) => {
2049
2049
  const m = Ie(v), ee = Ie(i);
2050
2050
  if (!m || !ee) return 1;
2051
- const _ = Ne(m.r, m.g, m.b), Y = Ne(ee.r, ee.g, ee.b), F = Math.max(_, Y), H = Math.min(_, Y);
2052
- return (F + 0.05) / (H + 0.05);
2051
+ const _ = Ne(m.r, m.g, m.b), Y = Ne(ee.r, ee.g, ee.b), F = Math.max(_, Y), E = Math.min(_, Y);
2052
+ return (F + 0.05) / (E + 0.05);
2053
2053
  }, Ct = (v, i = "normal") => {
2054
2054
  if (i === "large") {
2055
2055
  if (v >= 4.5) return "AAA";
@@ -2059,7 +2059,7 @@ const co = {
2059
2059
  if (v >= 4.5) return "AA";
2060
2060
  }
2061
2061
  return "FAIL";
2062
- }, Pe = U(() => re(u.value, h.value, $.value)), Ut = U(() => `rgb(${Pe.value.r}, ${Pe.value.g}, ${Pe.value.b})`), at = U(() => {
2062
+ }, Pe = U(() => re(u.value, g.value, $.value)), Ut = U(() => `rgb(${Pe.value.r}, ${Pe.value.g}, ${Pe.value.b})`), at = U(() => {
2063
2063
  const { r: v, g: i, b: m } = Pe.value;
2064
2064
  return l.showAlpha && A.value < 0.99 ? `rgba(${v}, ${i}, ${m}, ${A.value})` : G(v, i, m);
2065
2065
  }), ea = () => {
@@ -2119,34 +2119,34 @@ const co = {
2119
2119
  F.push(_[f]);
2120
2120
  if (F.length > 0 && F[F.length - 1] !== _[_.length - 1] && F.push(_[_.length - 1]), F.length === 0) return "";
2121
2121
  if (F.length === 1) return `M ${F[0].x} ${F[0].y}`;
2122
- let H = `M ${F[0].x} ${F[0].y}`;
2122
+ let E = `M ${F[0].x} ${F[0].y}`;
2123
2123
  if (F.length === 2)
2124
- H += ` L ${F[1].x} ${F[1].y}`;
2124
+ E += ` L ${F[1].x} ${F[1].y}`;
2125
2125
  else {
2126
2126
  for (let B = 1; B < F.length - 1; B++) {
2127
2127
  const se = F[B], de = F[B + 1], ke = (se.x + de.x) / 2, ge = (se.y + de.y) / 2;
2128
- H += ` Q ${se.x} ${se.y} ${ke} ${ge}`;
2128
+ E += ` Q ${se.x} ${se.y} ${ke} ${ge}`;
2129
2129
  }
2130
2130
  const f = F[F.length - 1];
2131
- H += ` Q ${f.x} ${f.y} ${f.x} ${f.y}`;
2131
+ E += ` Q ${f.x} ${f.y} ${f.x} ${f.y}`;
2132
2132
  }
2133
- return it.value = H, H;
2133
+ return it.value = E, E;
2134
2134
  }), Dt = U(() => {
2135
2135
  if (!S.value || !b.value) return "";
2136
2136
  if (zt.value)
2137
2137
  return zt.value;
2138
- const v = dt, i = vt, m = 4.5, ee = (H, f) => {
2139
- const B = Math.max(0, Math.min(v, H)), se = Math.max(0, Math.min(i, f)), de = Math.max(0, Math.min(1, B / v)), ke = Math.max(0, Math.min(1, 1 - se / i)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2138
+ const v = dt, i = vt, m = 4.5, ee = (E, f) => {
2139
+ const B = Math.max(0, Math.min(v, E)), se = Math.max(0, Math.min(i, f)), de = Math.max(0, Math.min(1, B / v)), ke = Math.max(0, Math.min(1, 1 - se / i)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2140
2140
  return Fe(me, b.value);
2141
2141
  }, _ = [], Y = [];
2142
- for (let H = -20; H <= v + 20; H += 2) {
2142
+ for (let E = -20; E <= v + 20; E += 2) {
2143
2143
  let f = !1, B = -1;
2144
2144
  for (let se = i - 1; se >= 1; se--) {
2145
- const de = ee(H, se), ke = ee(H, se - 1);
2145
+ const de = ee(E, se), ke = ee(E, se - 1);
2146
2146
  if (de >= m && ke < m) {
2147
2147
  let ge = se - 1, me = se;
2148
2148
  for (let ze = 0; ze < 8; ze++) {
2149
- const qe = (ge + me) / 2, Ge = ee(H, qe);
2149
+ const qe = (ge + me) / 2, Ge = ee(E, qe);
2150
2150
  if (Math.abs(Ge - m) < 0.01) {
2151
2151
  B = qe, f = !0;
2152
2152
  break;
@@ -2157,44 +2157,44 @@ const co = {
2157
2157
  break;
2158
2158
  }
2159
2159
  }
2160
- f && B >= 0 && Y.push({ x: H, y: B });
2160
+ f && B >= 0 && Y.push({ x: E, y: B });
2161
2161
  }
2162
2162
  if (Y.length === 0) return "";
2163
2163
  if (Y.length > 4) {
2164
2164
  _.push(Y[0]);
2165
- const H = Math.floor(Y.length / 4);
2166
- for (let B = H; B < Y.length - H; B += H)
2165
+ const E = Math.floor(Y.length / 4);
2166
+ for (let B = E; B < Y.length - E; B += E)
2167
2167
  _.push(Y[B]);
2168
2168
  const f = Y[Y.length - 1];
2169
2169
  _.push(f);
2170
2170
  } else
2171
2171
  _.push(...Y);
2172
2172
  if (_.length > 0) {
2173
- const H = _[0], f = _[_.length - 1];
2174
- H.x < 0 && (H.x = 0), f.x < v && f.y > 5 && f.y < i - 5 ? _.push({ x: v, y: f.y }) : f.x > v && (f.x = v);
2173
+ const E = _[0], f = _[_.length - 1];
2174
+ E.x < 0 && (E.x = 0), f.x < v && f.y > 5 && f.y < i - 5 ? _.push({ x: v, y: f.y }) : f.x > v && (f.x = v);
2175
2175
  }
2176
2176
  if (_.length < 2) return "";
2177
2177
  if (_.length === 2)
2178
2178
  return `M ${_[0].x} ${_[0].y} L ${_[1].x} ${_[1].y}`;
2179
2179
  let F = `M ${_[0].x} ${_[0].y}`;
2180
- for (let H = 1; H < _.length; H++) {
2181
- const f = _[H];
2180
+ for (let E = 1; E < _.length; E++) {
2181
+ const f = _[E];
2182
2182
  if (_.length <= 3)
2183
- if (H === 1 && _.length === 3) {
2183
+ if (E === 1 && _.length === 3) {
2184
2184
  F += ` Q ${f.x} ${f.y} ${_[2].x} ${_[2].y}`;
2185
2185
  break;
2186
2186
  } else
2187
2187
  F += ` L ${f.x} ${f.y}`;
2188
2188
  else {
2189
- const B = _[H - 1];
2190
- if (H === 1) {
2191
- const se = _[H + 1], de = B.x + (f.x - B.x) * 0.3, ke = B.y + (f.y - B.y) * 0.3, ge = f.x - (se.x - B.x) * 0.1, me = f.y - (se.y - B.y) * 0.1;
2189
+ const B = _[E - 1];
2190
+ if (E === 1) {
2191
+ const se = _[E + 1], de = B.x + (f.x - B.x) * 0.3, ke = B.y + (f.y - B.y) * 0.3, ge = f.x - (se.x - B.x) * 0.1, me = f.y - (se.y - B.y) * 0.1;
2192
2192
  F += ` C ${de} ${ke}, ${ge} ${me}, ${f.x} ${f.y}`;
2193
- } else if (H === _.length - 1) {
2194
- const se = _[H - 2], de = B.x + (f.x - se.x) * 0.1, ke = B.y + (f.y - se.y) * 0.1, ge = f.x - (f.x - B.x) * 0.3, me = f.y - (f.y - B.y) * 0.3;
2193
+ } else if (E === _.length - 1) {
2194
+ const se = _[E - 2], de = B.x + (f.x - se.x) * 0.1, ke = B.y + (f.y - se.y) * 0.1, ge = f.x - (f.x - B.x) * 0.3, me = f.y - (f.y - B.y) * 0.3;
2195
2195
  F += ` C ${de} ${ke}, ${ge} ${me}, ${f.x} ${f.y}`;
2196
2196
  } else {
2197
- const se = _[H + 1], de = H >= 2 ? _[H - 2] : B, ke = B.x + (f.x - de.x) * 0.1, ge = B.y + (f.y - de.y) * 0.1, me = f.x - (se.x - B.x) * 0.1, ze = f.y - (se.y - B.y) * 0.1;
2197
+ const se = _[E + 1], de = E >= 2 ? _[E - 2] : B, ke = B.x + (f.x - de.x) * 0.1, ge = B.y + (f.y - de.y) * 0.1, me = f.x - (se.x - B.x) * 0.1, ze = f.y - (se.y - B.y) * 0.1;
2198
2198
  F += ` C ${ke} ${ge}, ${me} ${ze}, ${f.x} ${f.y}`;
2199
2199
  }
2200
2200
  }
@@ -2242,34 +2242,34 @@ const co = {
2242
2242
  F.push(_[f]);
2243
2243
  if (F.length > 0 && F[F.length - 1] !== _[_.length - 1] && F.push(_[_.length - 1]), F.length === 0) return "";
2244
2244
  if (F.length === 1) return `M ${F[0].x} ${F[0].y}`;
2245
- let H = `M ${F[0].x} ${F[0].y}`;
2245
+ let E = `M ${F[0].x} ${F[0].y}`;
2246
2246
  if (F.length === 2)
2247
- H += ` L ${F[1].x} ${F[1].y}`;
2247
+ E += ` L ${F[1].x} ${F[1].y}`;
2248
2248
  else {
2249
2249
  for (let B = 1; B < F.length - 1; B++) {
2250
2250
  const se = F[B], de = F[B + 1], ke = (se.x + de.x) / 2, ge = (se.y + de.y) / 2;
2251
- H += ` Q ${se.x} ${se.y} ${ke} ${ge}`;
2251
+ E += ` Q ${se.x} ${se.y} ${ke} ${ge}`;
2252
2252
  }
2253
2253
  const f = F[F.length - 1];
2254
- H += ` Q ${f.x} ${f.y} ${f.x} ${f.y}`;
2254
+ E += ` Q ${f.x} ${f.y} ${f.x} ${f.y}`;
2255
2255
  }
2256
- return Vt.value = H, H;
2256
+ return Vt.value = E, E;
2257
2257
  }), sa = U(() => {
2258
2258
  if (!S.value || !b.value) return "";
2259
2259
  if (It.value)
2260
2260
  return It.value;
2261
- const v = dt, i = vt, m = 3, ee = (H, f) => {
2262
- const B = Math.max(0, Math.min(v, H)), se = Math.max(0, Math.min(i, f)), de = Math.max(0, Math.min(1, B / v)), ke = Math.max(0, Math.min(1, 1 - se / i)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2261
+ const v = dt, i = vt, m = 3, ee = (E, f) => {
2262
+ const B = Math.max(0, Math.min(v, E)), se = Math.max(0, Math.min(i, f)), de = Math.max(0, Math.min(1, B / v)), ke = Math.max(0, Math.min(1, 1 - se / i)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2263
2263
  return Fe(me, b.value);
2264
2264
  }, _ = [], Y = [];
2265
- for (let H = -20; H <= v + 20; H += 2) {
2265
+ for (let E = -20; E <= v + 20; E += 2) {
2266
2266
  let f = !1, B = -1;
2267
2267
  for (let se = i - 1; se >= 1; se--) {
2268
- const de = ee(H, se), ke = ee(H, se - 1);
2268
+ const de = ee(E, se), ke = ee(E, se - 1);
2269
2269
  if (de >= m && ke < m) {
2270
2270
  let ge = se - 1, me = se;
2271
2271
  for (let ze = 0; ze < 8; ze++) {
2272
- const qe = (ge + me) / 2, Ge = ee(H, qe);
2272
+ const qe = (ge + me) / 2, Ge = ee(E, qe);
2273
2273
  if (Math.abs(Ge - m) < 0.01) {
2274
2274
  B = qe, f = !0;
2275
2275
  break;
@@ -2280,44 +2280,44 @@ const co = {
2280
2280
  break;
2281
2281
  }
2282
2282
  }
2283
- f && B >= 0 && Y.push({ x: H, y: B });
2283
+ f && B >= 0 && Y.push({ x: E, y: B });
2284
2284
  }
2285
2285
  if (Y.length === 0) return "";
2286
2286
  if (Y.length > 4) {
2287
2287
  _.push(Y[0]);
2288
- const H = Math.floor(Y.length / 4);
2289
- for (let B = H; B < Y.length - H; B += H)
2288
+ const E = Math.floor(Y.length / 4);
2289
+ for (let B = E; B < Y.length - E; B += E)
2290
2290
  _.push(Y[B]);
2291
2291
  const f = Y[Y.length - 1];
2292
2292
  _.push(f);
2293
2293
  } else
2294
2294
  _.push(...Y);
2295
2295
  if (_.length > 0) {
2296
- const H = _[0], f = _[_.length - 1];
2297
- H.x < 0 && (H.x = 0), f.x < v && f.y > 5 && f.y < i - 5 ? _.push({ x: v, y: f.y }) : f.x > v && (f.x = v);
2296
+ const E = _[0], f = _[_.length - 1];
2297
+ E.x < 0 && (E.x = 0), f.x < v && f.y > 5 && f.y < i - 5 ? _.push({ x: v, y: f.y }) : f.x > v && (f.x = v);
2298
2298
  }
2299
2299
  if (_.length < 2) return "";
2300
2300
  if (_.length === 2)
2301
2301
  return `M ${_[0].x} ${_[0].y} L ${_[1].x} ${_[1].y}`;
2302
2302
  let F = `M ${_[0].x} ${_[0].y}`;
2303
- for (let H = 1; H < _.length; H++) {
2304
- const f = _[H];
2303
+ for (let E = 1; E < _.length; E++) {
2304
+ const f = _[E];
2305
2305
  if (_.length <= 3)
2306
- if (H === 1 && _.length === 3) {
2306
+ if (E === 1 && _.length === 3) {
2307
2307
  F += ` Q ${f.x} ${f.y} ${_[2].x} ${_[2].y}`;
2308
2308
  break;
2309
2309
  } else
2310
2310
  F += ` L ${f.x} ${f.y}`;
2311
2311
  else {
2312
- const B = _[H - 1];
2313
- if (H === 1) {
2314
- const se = _[H + 1], de = B.x + (f.x - B.x) * 0.3, ke = B.y + (f.y - B.y) * 0.3, ge = f.x - (se.x - B.x) * 0.1, me = f.y - (se.y - B.y) * 0.1;
2312
+ const B = _[E - 1];
2313
+ if (E === 1) {
2314
+ const se = _[E + 1], de = B.x + (f.x - B.x) * 0.3, ke = B.y + (f.y - B.y) * 0.3, ge = f.x - (se.x - B.x) * 0.1, me = f.y - (se.y - B.y) * 0.1;
2315
2315
  F += ` C ${de} ${ke}, ${ge} ${me}, ${f.x} ${f.y}`;
2316
- } else if (H === _.length - 1) {
2317
- const se = _[H - 2], de = B.x + (f.x - se.x) * 0.1, ke = B.y + (f.y - se.y) * 0.1, ge = f.x - (f.x - B.x) * 0.3, me = f.y - (f.y - B.y) * 0.3;
2316
+ } else if (E === _.length - 1) {
2317
+ const se = _[E - 2], de = B.x + (f.x - se.x) * 0.1, ke = B.y + (f.y - se.y) * 0.1, ge = f.x - (f.x - B.x) * 0.3, me = f.y - (f.y - B.y) * 0.3;
2318
2318
  F += ` C ${de} ${ke}, ${ge} ${me}, ${f.x} ${f.y}`;
2319
2319
  } else {
2320
- const se = _[H + 1], de = H >= 2 ? _[H - 2] : B, ke = B.x + (f.x - de.x) * 0.1, ge = B.y + (f.y - de.y) * 0.1, me = f.x - (se.x - B.x) * 0.1, ze = f.y - (se.y - B.y) * 0.1;
2320
+ const se = _[E + 1], de = E >= 2 ? _[E - 2] : B, ke = B.x + (f.x - de.x) * 0.1, ge = B.y + (f.y - de.y) * 0.1, me = f.x - (se.x - B.x) * 0.1, ze = f.y - (se.y - B.y) * 0.1;
2321
2321
  F += ` C ${ke} ${ge}, ${me} ${ze}, ${f.x} ${f.y}`;
2322
2322
  }
2323
2323
  }
@@ -2327,21 +2327,21 @@ const co = {
2327
2327
  U(() => {
2328
2328
  if (!S.value || !et.value) return [];
2329
2329
  const v = dt, i = vt, m = (_, Y) => {
2330
- const F = Math.max(0, Math.min(v, _)), H = Math.max(0, Math.min(i, Y)), f = Math.max(0, Math.min(1, F / v)), B = Math.max(0, Math.min(1, 1 - H / i)), se = re(u.value, f, B), de = G(se.r, se.g, se.b);
2330
+ const F = Math.max(0, Math.min(v, _)), E = Math.max(0, Math.min(i, Y)), f = Math.max(0, Math.min(1, F / v)), B = Math.max(0, Math.min(1, 1 - E / i)), se = re(u.value, f, B), de = G(se.r, se.g, se.b);
2331
2331
  return Fe(de, b.value);
2332
2332
  }, ee = [];
2333
2333
  for (let _ = 0; _ <= v; _ += 3)
2334
2334
  for (let Y = 0; Y < i; Y++) {
2335
- const F = m(_, Y), H = m(_, Y + 1);
2336
- if (F < 3.1 && H >= 3.1 || F >= 3.1 && H < 3.1) {
2335
+ const F = m(_, Y), E = m(_, Y + 1);
2336
+ if (F < 3.1 && E >= 3.1 || F >= 3.1 && E < 3.1) {
2337
2337
  ee.push({ x: _, y: Y });
2338
2338
  break;
2339
2339
  }
2340
2340
  }
2341
2341
  for (let _ = i - 3; _ >= 0; _ -= 3)
2342
2342
  for (let Y = 0; Y < v; Y++) {
2343
- const F = m(Y, _), H = m(Y + 1, _);
2344
- if (F < 3.1 && H >= 3.1 || F >= 3.1 && H < 3.1) {
2343
+ const F = m(Y, _), E = m(Y + 1, _);
2344
+ if (F < 3.1 && E >= 3.1 || F >= 3.1 && E < 3.1) {
2345
2345
  !ee.some(
2346
2346
  (B) => Math.abs(B.x - Y) < 6 && Math.abs(B.y - _) < 6
2347
2347
  ) && ee.push({ x: Y, y: _ });
@@ -2355,46 +2355,46 @@ const co = {
2355
2355
  if (!S.value || !b.value) return [];
2356
2356
  if (q.value && yt.value.length > 0 || !oa.value && yt.value.length > 0)
2357
2357
  return yt.value;
2358
- const v = [], i = dt, m = vt, ee = 6, _ = (H, f) => {
2359
- const B = Math.max(0, Math.min(i, H)), se = Math.max(0, Math.min(m, f)), de = Math.max(0, Math.min(1, B / i)), ke = Math.max(0, Math.min(1, 1 - se / m)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2358
+ const v = [], i = dt, m = vt, ee = 6, _ = (E, f) => {
2359
+ const B = Math.max(0, Math.min(i, E)), se = Math.max(0, Math.min(m, f)), de = Math.max(0, Math.min(1, B / i)), ke = Math.max(0, Math.min(1, 1 - se / m)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2360
2360
  return Fe(me, b.value);
2361
2361
  }, Y = [];
2362
- for (let H = 0; H <= i; H += 6)
2362
+ for (let E = 0; E <= i; E += 6)
2363
2363
  for (let f = 0; f < m - 1; f += 1) {
2364
- const B = _(H, f), se = _(H, f + 1);
2364
+ const B = _(E, f), se = _(E, f + 1);
2365
2365
  if (B >= 4.5 && se < 4.5 || B < 4.5 && se >= 4.5) {
2366
2366
  let de = f, ke = f + 1;
2367
2367
  for (let ge = 0; ge < 6; ge++) {
2368
- const me = (de + ke) / 2, ze = _(H, me);
2368
+ const me = (de + ke) / 2, ze = _(E, me);
2369
2369
  if (Math.abs(ze - 4.5) < 0.05) {
2370
- Y.push({ x: H, y: me });
2370
+ Y.push({ x: E, y: me });
2371
2371
  break;
2372
2372
  }
2373
2373
  ze > 4.5 ? de = me : ke = me;
2374
2374
  }
2375
- (Y.length === 0 || Y[Y.length - 1].x !== H) && Y.push({ x: H, y: (de + ke) / 2 });
2375
+ (Y.length === 0 || Y[Y.length - 1].x !== E) && Y.push({ x: E, y: (de + ke) / 2 });
2376
2376
  break;
2377
2377
  }
2378
2378
  }
2379
- const F = (H, f) => {
2379
+ const F = (E, f) => {
2380
2380
  if (Y.length === 0) return 50;
2381
2381
  let B = 1 / 0;
2382
2382
  for (const se of Y) {
2383
2383
  const de = Math.sqrt(
2384
- Math.pow(H - se.x, 2) + Math.pow(f - se.y, 2)
2384
+ Math.pow(E - se.x, 2) + Math.pow(f - se.y, 2)
2385
2385
  );
2386
2386
  B = Math.min(B, de);
2387
2387
  }
2388
2388
  return B;
2389
2389
  };
2390
- for (let H = ee / 2; H < i; H += ee)
2390
+ for (let E = ee / 2; E < i; E += ee)
2391
2391
  for (let f = ee / 2; f < m; f += ee)
2392
- if (_(H, f) < 4.5) {
2393
- const se = F(H, f), de = 4;
2392
+ if (_(E, f) < 4.5) {
2393
+ const se = F(E, f), de = 4;
2394
2394
  if (se >= de) {
2395
2395
  const ge = se - de, me = Math.min(ge / 40, 1), ze = 0.6, Ge = ze - (ze - 0.3) * Math.pow(me, 0.7), st = 1.8, ba = st - (st - 1.5) * Math.pow(me, 0.6);
2396
2396
  Ge > 0.2 && ba > 0.8 && v.push({
2397
- x: H,
2397
+ x: E,
2398
2398
  y: f,
2399
2399
  radius: ba,
2400
2400
  opacity: Ge,
@@ -2426,7 +2426,7 @@ const co = {
2426
2426
  }
2427
2427
  }
2428
2428
  }
2429
- const H = (f, B) => {
2429
+ const E = (f, B) => {
2430
2430
  let se = 1 / 0;
2431
2431
  for (const de of F) {
2432
2432
  const ke = Math.sqrt(Math.pow(f - de.x, 2) + Math.pow(B - de.y, 2));
@@ -2437,7 +2437,7 @@ const co = {
2437
2437
  for (let f = _ / 2; f < i; f += _)
2438
2438
  for (let B = _ / 2; B < m; B += _)
2439
2439
  if (Y(f, B) < ee) {
2440
- const de = H(f, B), ke = 4;
2440
+ const de = E(f, B), ke = 4;
2441
2441
  if (de >= ke) {
2442
2442
  const me = de - ke, ze = Math.min(me / 40, 1), qe = 0.6, st = qe - (qe - 0.3) * Math.pow(ze, 0.7), St = 1.8, Ia = St - (St - 1.5) * Math.pow(ze, 0.6);
2443
2443
  st > 0.2 && Ia > 0.8 && v.push({
@@ -2454,19 +2454,19 @@ const co = {
2454
2454
  });
2455
2455
  const la = U(() => {
2456
2456
  if (!S.value || !b.value) return "";
2457
- const v = dt, i = vt, m = (F, H) => {
2458
- const f = Math.max(0, Math.min(v, F)), B = Math.max(0, Math.min(i, H)), se = Math.max(0, Math.min(1, f / v)), de = Math.max(0, Math.min(1, 1 - B / i)), ke = re(u.value, se, de), ge = G(ke.r, ke.g, ke.b);
2457
+ const v = dt, i = vt, m = (F, E) => {
2458
+ const f = Math.max(0, Math.min(v, F)), B = Math.max(0, Math.min(i, E)), se = Math.max(0, Math.min(1, f / v)), de = Math.max(0, Math.min(1, 1 - B / i)), ke = re(u.value, se, de), ge = G(ke.r, ke.g, ke.b);
2459
2459
  return Fe(ge, b.value);
2460
2460
  }, ee = [], _ = [];
2461
2461
  for (let F = -20; F <= v + 20; F += 2) {
2462
- for (let H = 0; H < i; H++)
2463
- if (m(F, H) < 4.5) {
2464
- ee.push({ x: F, y: H });
2462
+ for (let E = 0; E < i; E++)
2463
+ if (m(F, E) < 4.5) {
2464
+ ee.push({ x: F, y: E });
2465
2465
  break;
2466
2466
  }
2467
- for (let H = i - 1; H >= 0; H--)
2468
- if (m(F, H) < 4.5) {
2469
- _.push({ x: F, y: H });
2467
+ for (let E = i - 1; E >= 0; E--)
2468
+ if (m(F, E) < 4.5) {
2469
+ _.push({ x: F, y: E });
2470
2470
  break;
2471
2471
  }
2472
2472
  }
@@ -2474,41 +2474,41 @@ const co = {
2474
2474
  return "";
2475
2475
  let Y = "M";
2476
2476
  for (let F = 0; F < ee.length; F++) {
2477
- const H = ee[F];
2478
- F === 0 ? Y += ` ${H.x} ${H.y}` : Y += ` L ${H.x} ${H.y}`;
2477
+ const E = ee[F];
2478
+ F === 0 ? Y += ` ${E.x} ${E.y}` : Y += ` L ${E.x} ${E.y}`;
2479
2479
  }
2480
2480
  for (let F = _.length - 1; F >= 0; F--) {
2481
- const H = _[F];
2482
- Y += ` L ${H.x} ${H.y}`;
2481
+ const E = _[F];
2482
+ Y += ` L ${E.x} ${E.y}`;
2483
2483
  }
2484
2484
  return Y += " Z", Y;
2485
2485
  }), na = U(() => {
2486
2486
  if (!S.value || !b.value) return "";
2487
- const v = dt, i = vt, m = 3, ee = (H, f) => {
2488
- const B = Math.max(0, Math.min(v, H)), se = Math.max(0, Math.min(i, f)), de = Math.max(0, Math.min(1, B / v)), ke = Math.max(0, Math.min(1, 1 - se / i)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2487
+ const v = dt, i = vt, m = 3, ee = (E, f) => {
2488
+ const B = Math.max(0, Math.min(v, E)), se = Math.max(0, Math.min(i, f)), de = Math.max(0, Math.min(1, B / v)), ke = Math.max(0, Math.min(1, 1 - se / i)), ge = re(u.value, de, ke), me = G(ge.r, ge.g, ge.b);
2489
2489
  return Fe(me, b.value);
2490
2490
  }, _ = [], Y = [];
2491
- for (let H = -20; H <= v + 20; H += 2) {
2491
+ for (let E = -20; E <= v + 20; E += 2) {
2492
2492
  for (let f = 0; f < i; f++)
2493
- if (ee(H, f) < m) {
2494
- _.push({ x: H, y: f });
2493
+ if (ee(E, f) < m) {
2494
+ _.push({ x: E, y: f });
2495
2495
  break;
2496
2496
  }
2497
2497
  for (let f = i - 1; f >= 0; f--)
2498
- if (ee(H, f) < m) {
2499
- Y.push({ x: H, y: f });
2498
+ if (ee(E, f) < m) {
2499
+ Y.push({ x: E, y: f });
2500
2500
  break;
2501
2501
  }
2502
2502
  }
2503
2503
  if (_.length < 3 || Y.length < 3)
2504
2504
  return "";
2505
2505
  let F = "M";
2506
- for (let H = 0; H < _.length; H++) {
2507
- const f = _[H];
2508
- H === 0 ? F += ` ${f.x} ${f.y}` : F += ` L ${f.x} ${f.y}`;
2506
+ for (let E = 0; E < _.length; E++) {
2507
+ const f = _[E];
2508
+ E === 0 ? F += ` ${f.x} ${f.y}` : F += ` L ${f.x} ${f.y}`;
2509
2509
  }
2510
- for (let H = Y.length - 1; H >= 0; H--) {
2511
- const f = Y[H];
2510
+ for (let E = Y.length - 1; E >= 0; E--) {
2511
+ const f = Y[E];
2512
2512
  F += ` L ${f.x} ${f.y}`;
2513
2513
  }
2514
2514
  return F += " Z", F;
@@ -2521,7 +2521,7 @@ const co = {
2521
2521
  }, ra = (v) => {
2522
2522
  if (!V.value) return;
2523
2523
  const i = V.value.getBoundingClientRect(), m = "touches" in v ? v.touches[0].clientX : v.clientX, ee = "touches" in v ? v.touches[0].clientY : v.clientY, _ = Math.max(0, Math.min(i.width, m - i.left)), Y = Math.max(0, Math.min(i.height, ee - i.top));
2524
- h.value = _ / i.width, $.value = 1 - Y / i.height;
2524
+ g.value = _ / i.width, $.value = 1 - Y / i.height;
2525
2525
  }, ua = (v) => {
2526
2526
  l.disabled || (L.value = !0, ca(v), document.addEventListener("mousemove", Nt), document.addEventListener("mouseup", Bt), document.addEventListener("touchmove", Nt), document.addEventListener("touchend", Bt));
2527
2527
  }, Nt = (v) => {
@@ -2541,40 +2541,40 @@ const co = {
2541
2541
  }, we = (v) => {
2542
2542
  if (!k.value) return;
2543
2543
  const i = k.value.getBoundingClientRect(), m = "touches" in v ? v.touches[0].clientX : v.clientX, ee = Math.max(0, Math.min(i.width, m - i.left));
2544
- A.value = ee / i.width, E.value = Math.round(A.value * 100);
2544
+ A.value = ee / i.width, H.value = Math.round(A.value * 100);
2545
2545
  }, wt = () => {
2546
2546
  const v = c.value;
2547
2547
  if (v.length === 7 && v.startsWith("#")) {
2548
2548
  const i = Ie(v);
2549
2549
  if (i) {
2550
2550
  const m = ve(i.r, i.g, i.b);
2551
- u.value = m.h, h.value = m.s, $.value = m.v, Rt();
2551
+ u.value = m.h, g.value = m.s, $.value = m.v, Rt();
2552
2552
  }
2553
2553
  }
2554
2554
  }, Pt = () => {
2555
2555
  const { r: v, g: i, b: m } = Pe.value;
2556
2556
  c.value = G(v, i, m);
2557
2557
  }, tt = () => {
2558
- const { r: v, g: i, b: m } = g.value;
2558
+ const { r: v, g: i, b: m } = h.value;
2559
2559
  if (v >= 0 && v <= 255 && i >= 0 && i <= 255 && m >= 0 && m <= 255) {
2560
2560
  const ee = ve(v, i, m);
2561
- u.value = ee.h, h.value = ee.s, $.value = ee.v, Ot(), ya(), ka();
2561
+ u.value = ee.h, g.value = ee.s, $.value = ee.v, Ot(), ya(), ka();
2562
2562
  }
2563
2563
  }, ct = () => {
2564
2564
  const { h: v, s: i, l: m } = C.value;
2565
2565
  if (v >= 0 && v <= 360 && i >= 0 && i <= 100 && m >= 0 && m <= 100) {
2566
2566
  const ee = X(v, i, m), _ = ve(ee.r, ee.g, ee.b);
2567
- u.value = _.h, h.value = _.s, $.value = _.v, Ot(), Rt(), ka();
2567
+ u.value = _.h, g.value = _.s, $.value = _.v, Ot(), Rt(), ka();
2568
2568
  }
2569
2569
  }, bt = () => {
2570
2570
  const { l: v, c: i, h: m } = N.value;
2571
2571
  if (v >= 0 && v <= 100 && i >= 0 && i <= 100 && m >= 0 && m <= 360) {
2572
2572
  const ee = pe(v, i, m), _ = ve(ee.r, ee.g, ee.b);
2573
- u.value = _.h, h.value = _.s, $.value = _.v, Ot(), Rt(), ya();
2573
+ u.value = _.h, g.value = _.s, $.value = _.v, Ot(), Rt(), ya();
2574
2574
  }
2575
2575
  }, jt = () => {
2576
- const v = Math.max(0, Math.min(100, E.value));
2577
- A.value = v / 100, E.value = v;
2576
+ const v = Math.max(0, Math.min(100, H.value));
2577
+ A.value = v / 100, H.value = v;
2578
2578
  }, va = () => {
2579
2579
  const v = ["hex", "rgb", "hsl", "oklch"], m = (v.indexOf(D.value) + 1) % v.length;
2580
2580
  D.value = v[m];
@@ -2583,7 +2583,7 @@ const co = {
2583
2583
  c.value = G(v, i, m);
2584
2584
  }, Rt = () => {
2585
2585
  const { r: v, g: i, b: m } = Pe.value;
2586
- g.value = { r: v, g: i, b: m };
2586
+ h.value = { r: v, g: i, b: m };
2587
2587
  }, ya = () => {
2588
2588
  const { r: v, g: i, b: m } = Pe.value, ee = he(v, i, m);
2589
2589
  C.value = ee;
@@ -2595,7 +2595,7 @@ const co = {
2595
2595
  const i = Ie(v);
2596
2596
  if (i) {
2597
2597
  const m = ve(i.r, i.g, i.b);
2598
- u.value = m.h, h.value = m.s, $.value = m.v, Ot(), Rt();
2598
+ u.value = m.h, g.value = m.s, $.value = m.v, Ot(), Rt();
2599
2599
  }
2600
2600
  }, Qa = () => {
2601
2601
  S.value = !S.value;
@@ -2614,10 +2614,10 @@ const co = {
2614
2614
  }
2615
2615
  if (v) {
2616
2616
  const i = ve(v.r, v.g, v.b);
2617
- u.value = i.h, h.value = i.s, $.value = i.v, Ot(), Rt();
2617
+ u.value = i.h, g.value = i.s, $.value = i.v, Ot(), Rt();
2618
2618
  }
2619
2619
  };
2620
- return Le([u, h, $, A], () => {
2620
+ return Le([u, g, $, A], () => {
2621
2621
  Ot(), Rt(), ya(), ka();
2622
2622
  const v = He(at.value);
2623
2623
  v !== ye && (w.value ? (te && clearTimeout(te), te = setTimeout(() => {
@@ -2767,7 +2767,7 @@ const co = {
2767
2767
  e("div", {
2768
2768
  class: "ui-color-picker-cursor",
2769
2769
  style: Oe({
2770
- left: `${h.value * 100}%`,
2770
+ left: `${g.value * 100}%`,
2771
2771
  top: `${(1 - $.value) * 100}%`,
2772
2772
  backgroundColor: at.value
2773
2773
  })
@@ -2932,7 +2932,7 @@ const co = {
2932
2932
  e("div", qo, [
2933
2933
  i[25] || (i[25] = e("label", { class: "ui-color-picker-label" }, "R", -1)),
2934
2934
  Xe(e("input", {
2935
- "onUpdate:modelValue": i[1] || (i[1] = (m) => g.value.r = m),
2935
+ "onUpdate:modelValue": i[1] || (i[1] = (m) => h.value.r = m),
2936
2936
  onInput: tt,
2937
2937
  class: "ui-color-picker-input",
2938
2938
  type: "number",
@@ -2941,7 +2941,7 @@ const co = {
2941
2941
  }, null, 544), [
2942
2942
  [
2943
2943
  Je,
2944
- g.value.r,
2944
+ h.value.r,
2945
2945
  void 0,
2946
2946
  { number: !0 }
2947
2947
  ]
@@ -2950,7 +2950,7 @@ const co = {
2950
2950
  e("div", Zo, [
2951
2951
  i[26] || (i[26] = e("label", { class: "ui-color-picker-label" }, "G", -1)),
2952
2952
  Xe(e("input", {
2953
- "onUpdate:modelValue": i[2] || (i[2] = (m) => g.value.g = m),
2953
+ "onUpdate:modelValue": i[2] || (i[2] = (m) => h.value.g = m),
2954
2954
  onInput: tt,
2955
2955
  class: "ui-color-picker-input",
2956
2956
  type: "number",
@@ -2959,7 +2959,7 @@ const co = {
2959
2959
  }, null, 544), [
2960
2960
  [
2961
2961
  Je,
2962
- g.value.g,
2962
+ h.value.g,
2963
2963
  void 0,
2964
2964
  { number: !0 }
2965
2965
  ]
@@ -2968,7 +2968,7 @@ const co = {
2968
2968
  e("div", Ko, [
2969
2969
  i[27] || (i[27] = e("label", { class: "ui-color-picker-label" }, "B", -1)),
2970
2970
  Xe(e("input", {
2971
- "onUpdate:modelValue": i[3] || (i[3] = (m) => g.value.b = m),
2971
+ "onUpdate:modelValue": i[3] || (i[3] = (m) => h.value.b = m),
2972
2972
  onInput: tt,
2973
2973
  class: "ui-color-picker-input",
2974
2974
  type: "number",
@@ -2977,7 +2977,7 @@ const co = {
2977
2977
  }, null, 544), [
2978
2978
  [
2979
2979
  Je,
2980
- g.value.b,
2980
+ h.value.b,
2981
2981
  void 0,
2982
2982
  { number: !0 }
2983
2983
  ]
@@ -2986,7 +2986,7 @@ const co = {
2986
2986
  l.showAlpha ? (a(), o("div", Go, [
2987
2987
  i[28] || (i[28] = e("label", { class: "ui-color-picker-label" }, "A", -1)),
2988
2988
  Xe(e("input", {
2989
- "onUpdate:modelValue": i[4] || (i[4] = (m) => E.value = m),
2989
+ "onUpdate:modelValue": i[4] || (i[4] = (m) => H.value = m),
2990
2990
  onInput: jt,
2991
2991
  class: "ui-color-picker-input",
2992
2992
  type: "number",
@@ -2995,7 +2995,7 @@ const co = {
2995
2995
  }, null, 544), [
2996
2996
  [
2997
2997
  Je,
2998
- E.value,
2998
+ H.value,
2999
2999
  void 0,
3000
3000
  { number: !0 }
3001
3001
  ]
@@ -3074,7 +3074,7 @@ const co = {
3074
3074
  l.showAlpha ? (a(), o("div", e1, [
3075
3075
  i[32] || (i[32] = e("label", { class: "ui-color-picker-label" }, "A", -1)),
3076
3076
  Xe(e("input", {
3077
- "onUpdate:modelValue": i[8] || (i[8] = (m) => E.value = m),
3077
+ "onUpdate:modelValue": i[8] || (i[8] = (m) => H.value = m),
3078
3078
  onInput: jt,
3079
3079
  class: "ui-color-picker-input",
3080
3080
  type: "number",
@@ -3083,7 +3083,7 @@ const co = {
3083
3083
  }, null, 544), [
3084
3084
  [
3085
3085
  Je,
3086
- E.value,
3086
+ H.value,
3087
3087
  void 0,
3088
3088
  { number: !0 }
3089
3089
  ]
@@ -3162,7 +3162,7 @@ const co = {
3162
3162
  l.showAlpha ? (a(), o("div", n1, [
3163
3163
  i[36] || (i[36] = e("label", { class: "ui-color-picker-label" }, "A", -1)),
3164
3164
  Xe(e("input", {
3165
- "onUpdate:modelValue": i[12] || (i[12] = (m) => E.value = m),
3165
+ "onUpdate:modelValue": i[12] || (i[12] = (m) => H.value = m),
3166
3166
  onInput: jt,
3167
3167
  class: "ui-color-picker-input",
3168
3168
  type: "number",
@@ -3171,7 +3171,7 @@ const co = {
3171
3171
  }, null, 544), [
3172
3172
  [
3173
3173
  Je,
3174
- E.value,
3174
+ H.value,
3175
3175
  void 0,
3176
3176
  { number: !0 }
3177
3177
  ]
@@ -3291,9 +3291,9 @@ const co = {
3291
3291
  setup(s, { emit: r }) {
3292
3292
  const t = s, l = r, z = M(), V = M(), y = M(!1), k = U({
3293
3293
  get: () => t.modelValue,
3294
- set: (g) => l("update:modelValue", g)
3294
+ set: (h) => l("update:modelValue", h)
3295
3295
  }), u = U(() => t.modelValue || "#000000"), {
3296
- floatingStyle: h,
3296
+ floatingStyle: g,
3297
3297
  updatePosition: $,
3298
3298
  cleanup: A
3299
3299
  } = Oa({
@@ -3334,7 +3334,7 @@ const co = {
3334
3334
  }
3335
3335
  ), xt(() => {
3336
3336
  A();
3337
- }), (g, E) => (a(), o("div", {
3337
+ }), (h, H) => (a(), o("div", {
3338
3338
  ref_key: "containerRef",
3339
3339
  ref: z,
3340
3340
  class: "ui-color-picker-button-container"
@@ -3356,7 +3356,7 @@ const co = {
3356
3356
  d(n(_a))
3357
3357
  ]),
3358
3358
  default: x(() => [
3359
- E[2] || (E[2] = Q(" Color ", -1))
3359
+ H[2] || (H[2] = Q(" Color ", -1))
3360
3360
  ]),
3361
3361
  _: 1
3362
3362
  }, 8, ["disabled"]),
@@ -3366,19 +3366,19 @@ const co = {
3366
3366
  ref_key: "popoverRef",
3367
3367
  ref: V,
3368
3368
  class: "ui-color-picker-popover",
3369
- style: Oe(n(h))
3369
+ style: Oe(n(g))
3370
3370
  }, [
3371
3371
  d(Za, $a({
3372
3372
  modelValue: k.value,
3373
- "onUpdate:modelValue": E[0] || (E[0] = (D) => k.value = D)
3373
+ "onUpdate:modelValue": H[0] || (H[0] = (D) => k.value = D)
3374
3374
  }, t, {
3375
- "onUpdate:modelValue": E[1] || (E[1] = (D) => g.$emit("update:modelValue", D))
3375
+ "onUpdate:modelValue": H[1] || (H[1] = (D) => h.$emit("update:modelValue", D))
3376
3376
  }), null, 16, ["modelValue"])
3377
3377
  ], 4)) : I("", !0)
3378
3378
  ]))
3379
3379
  ], 512));
3380
3380
  }
3381
- }), y1 = /* @__PURE__ */ De(C1, [["__scopeId", "data-v-2ccec31a"]]), Sc = /* @__PURE__ */ Ve({
3381
+ }), y1 = /* @__PURE__ */ De(C1, [["__scopeId", "data-v-2ccec31a"]]), Ac = /* @__PURE__ */ Ve({
3382
3382
  __name: "UiColorPicker",
3383
3383
  props: {
3384
3384
  modelValue: { default: "#EA00A8" },
@@ -3464,11 +3464,11 @@ const co = {
3464
3464
  }, { deep: !0 }), Le(() => l.columns, (G) => {
3465
3465
  u.value = [...G];
3466
3466
  }, { deep: !0 });
3467
- const h = () => {
3467
+ const g = () => {
3468
3468
  k.value = [...l.data], p.value.clear(), L.value.clear();
3469
3469
  }, $ = () => {
3470
3470
  u.value = [...l.columns];
3471
- }, A = M(""), c = M("asc"), g = M({}), E = M({}), D = M(""), C = M(/* @__PURE__ */ new Set()), N = M(/* @__PURE__ */ new Set()), p = M(/* @__PURE__ */ new Set()), L = M(/* @__PURE__ */ new Map()), O = M(null), S = M(null), w = M(!1), q = M(0), Z = M(0), b = U(() => {
3471
+ }, A = M(""), c = M("asc"), h = M({}), H = M({}), D = M(""), C = M(/* @__PURE__ */ new Set()), N = M(/* @__PURE__ */ new Set()), p = M(/* @__PURE__ */ new Set()), L = M(/* @__PURE__ */ new Map()), O = M(null), S = M(null), w = M(!1), q = M(0), Z = M(0), b = U(() => {
3472
3472
  const G = {
3473
3473
  "--_cols": l.columns.length.toString()
3474
3474
  };
@@ -3489,7 +3489,7 @@ const co = {
3489
3489
  zIndex: 10
3490
3490
  }, ye = U(() => {
3491
3491
  let G = [...k.value];
3492
- if (l.filterable && Object.keys(g.value).length > 0 && (G = G.filter((he) => Object.entries(g.value).every(([X, fe]) => {
3492
+ if (l.filterable && Object.keys(h.value).length > 0 && (G = G.filter((he) => Object.entries(h.value).every(([X, fe]) => {
3493
3493
  if (!fe || fe === "") return !0;
3494
3494
  const pe = u.value.find((Fe) => Fe.key === X), He = Me(he, X, pe), Ne = String(He || "").toLowerCase();
3495
3495
  return Array.isArray(fe) ? fe.some((Fe) => Ne.includes(String(Fe).toLowerCase())) : Ne.includes(String(fe).toLowerCase());
@@ -3539,7 +3539,7 @@ const co = {
3539
3539
  fe != null && he.add(String(fe));
3540
3540
  }), Array.from(he).sort().map((X) => ({ label: X, value: X }));
3541
3541
  }, K = (G) => {
3542
- E.value[G] = !E.value[G];
3542
+ H.value[G] = !H.value[G];
3543
3543
  }, ie = (G) => {
3544
3544
  D.value = D.value === G ? "" : G;
3545
3545
  }, ae = (G, he) => {
@@ -3596,7 +3596,7 @@ const co = {
3596
3596
  r({
3597
3597
  internalData: k,
3598
3598
  internalColumns: u,
3599
- restoreData: h,
3599
+ restoreData: g,
3600
3600
  restoreColumns: $,
3601
3601
  modifiedCells: p,
3602
3602
  cellValues: L
@@ -3685,7 +3685,7 @@ const co = {
3685
3685
  s.filterable || X.filterable ? (a(), o("button", {
3686
3686
  key: 0,
3687
3687
  onClick: (pe) => K(X.key),
3688
- class: be(["ui-table-filter-btn", { "ui-table-filter-btn--active": g.value[X.key] }])
3688
+ class: be(["ui-table-filter-btn", { "ui-table-filter-btn--active": h.value[X.key] }])
3689
3689
  }, [
3690
3690
  d(n(ds), { size: 14 })
3691
3691
  ], 10, _1)) : I("", !0),
@@ -3698,10 +3698,10 @@ const co = {
3698
3698
  ], 10, T1)) : I("", !0)
3699
3699
  ])
3700
3700
  ]),
3701
- E.value[X.key] ? (a(), o("div", z1, [
3701
+ H.value[X.key] ? (a(), o("div", z1, [
3702
3702
  d(Ze, {
3703
- modelValue: g.value[X.key],
3704
- "onUpdate:modelValue": (pe) => g.value[X.key] = pe,
3703
+ modelValue: h.value[X.key],
3704
+ "onUpdate:modelValue": (pe) => h.value[X.key] = pe,
3705
3705
  type: X.filterType,
3706
3706
  options: X.filterType === "select" ? j(X) : void 0,
3707
3707
  placeholder: `Filter ${X.label}...`,
@@ -3857,7 +3857,7 @@ const co = {
3857
3857
  ], 6)
3858
3858
  ]));
3859
3859
  }
3860
- }), Ac = /* @__PURE__ */ De(O1, [["__scopeId", "data-v-46867ee1"]]), R1 = { class: "ui-hero-content" }, F1 = {
3860
+ }), _c = /* @__PURE__ */ De(O1, [["__scopeId", "data-v-46867ee1"]]), R1 = { class: "ui-hero-content" }, F1 = {
3861
3861
  key: 0,
3862
3862
  class: "ui-hero-header"
3863
3863
  }, q1 = {
@@ -3906,9 +3906,9 @@ const co = {
3906
3906
  if (!r.gradient || r.variant !== "gradient" && r.variant !== "space") return null;
3907
3907
  const { angle: A = "135deg", stops: c = [] } = r.gradient;
3908
3908
  if (c.length === 0) return null;
3909
- const g = c.sort((E, D) => E.position - D.position).map((E) => `${E.color} ${E.position}%`).join(", ");
3910
- return `linear-gradient(${A}, ${g})`;
3911
- }), h = U(() => {
3909
+ const h = c.sort((H, D) => H.position - D.position).map((H) => `${H.color} ${H.position}%`).join(", ");
3910
+ return `linear-gradient(${A}, ${h})`;
3911
+ }), g = U(() => {
3912
3912
  const A = {};
3913
3913
  return u.value && (A["--hero-custom-background"] = u.value), A;
3914
3914
  }), $ = U(() => {
@@ -3930,7 +3930,7 @@ const co = {
3930
3930
  "ui-hero--sticky": !!s.sticky
3931
3931
  }
3932
3932
  ]]),
3933
- style: Oe(h.value)
3933
+ style: Oe(g.value)
3934
3934
  }, [
3935
3935
  e("div", R1, [
3936
3936
  z.value || s.title || s.description ? (a(), o("div", F1, [
@@ -3954,7 +3954,7 @@ const co = {
3954
3954
  ], 6)
3955
3955
  ], 6));
3956
3956
  }
3957
- }), _c = /* @__PURE__ */ De(Q1, [["__scopeId", "data-v-00e0d581"]]), At = M("system"), Ma = M(!1), Ta = "strands-ui-theme";
3957
+ }), Tc = /* @__PURE__ */ De(Q1, [["__scopeId", "data-v-00e0d581"]]), At = M("system"), Ma = M(!1), Ta = "strands-ui-theme";
3958
3958
  function X1() {
3959
3959
  return typeof window > "u" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
3960
3960
  }
@@ -4019,13 +4019,13 @@ function tl() {
4019
4019
  function V() {
4020
4020
  if (typeof window > "u") return;
4021
4021
  Ma.value = X1();
4022
- const y = window.matchMedia("(prefers-color-scheme: dark)"), k = (h) => {
4023
- Ma.value = h.matches;
4022
+ const y = window.matchMedia("(prefers-color-scheme: dark)"), k = (g) => {
4023
+ Ma.value = g.matches;
4024
4024
  };
4025
4025
  y.addEventListener ? y.addEventListener("change", k) : y.addListener(k);
4026
4026
  const u = J1();
4027
- At.value = u, Na(s.value), Le(s, (h) => {
4028
- Na(h);
4027
+ At.value = u, Na(s.value), Le(s, (g) => {
4028
+ Na(g);
4029
4029
  }, { immediate: !1 });
4030
4030
  }
4031
4031
  return We(() => {
@@ -4086,16 +4086,16 @@ const ol = {
4086
4086
  includeLabel: { type: Boolean, default: !1 }
4087
4087
  },
4088
4088
  setup(s) {
4089
- const r = s, { isForced: t } = sl(), { currentTheme: l, themeLabel: z, setTheme: V, cycleTheme: y, themeOptions: k } = al(), u = U(() => t.value), h = M(!1), $ = {
4089
+ const r = s, { isForced: t } = sl(), { currentTheme: l, themeLabel: z, setTheme: V, cycleTheme: y, themeOptions: k } = al(), u = U(() => t.value), g = M(!1), $ = {
4090
4090
  sun: ms,
4091
4091
  moon: ps,
4092
4092
  monitor: Ea,
4093
4093
  "chevron-up": qa,
4094
4094
  "chevron-down": _a
4095
- }, A = (C) => $[C] || Ea, c = U(() => l.value === "dark" ? "moon" : l.value === "light" ? "sun" : "monitor"), g = U(() => l.value === "dark" ? "Light" : l.value === "light" ? "System" : "Dark"), E = () => {
4095
+ }, A = (C) => $[C] || Ea, c = U(() => l.value === "dark" ? "moon" : l.value === "light" ? "sun" : "monitor"), h = U(() => l.value === "dark" ? "Light" : l.value === "light" ? "System" : "Dark"), H = () => {
4096
4096
  r.variant === "button" && y();
4097
4097
  }, D = (C) => {
4098
- C.target.closest(".ui-theme-toggle-dropdown") || (h.value = !1);
4098
+ C.target.closest(".ui-theme-toggle-dropdown") || (g.value = !1);
4099
4099
  };
4100
4100
  return We(() => {
4101
4101
  document.addEventListener("click", D);
@@ -4111,8 +4111,8 @@ const ol = {
4111
4111
  variant: "ghost",
4112
4112
  size: s.size,
4113
4113
  disabled: u.value,
4114
- onClick: N[0] || (N[0] = (p) => u.value ? null : E),
4115
- title: u.value ? "Theme is locked by app settings" : `Switch to ${g.value.toLowerCase()} theme`,
4114
+ onClick: N[0] || (N[0] = (p) => u.value ? null : H),
4115
+ title: u.value ? "Theme is locked by app settings" : `Switch to ${h.value.toLowerCase()} theme`,
4116
4116
  class: be(["ui-theme-toggle-button", { "ui-theme-toggle--disabled": u.value }])
4117
4117
  }, Zt({
4118
4118
  default: x(() => [
@@ -4141,7 +4141,7 @@ const ol = {
4141
4141
  variant: "ghost",
4142
4142
  size: s.size,
4143
4143
  disabled: u.value,
4144
- onClick: N[1] || (N[1] = (p) => u.value ? null : h.value = !h.value),
4144
+ onClick: N[1] || (N[1] = (p) => u.value ? null : g.value = !g.value),
4145
4145
  class: be(["ui-theme-toggle-trigger", { "ui-theme-toggle--disabled": u.value }]),
4146
4146
  title: u.value ? "Theme is locked by app settings" : void 0
4147
4147
  }, {
@@ -4149,17 +4149,17 @@ const ol = {
4149
4149
  (a(), Ce(ot(A(c.value))))
4150
4150
  ]),
4151
4151
  "trailing-icon": x(() => [
4152
- (a(), Ce(ot(A(h.value ? "chevron-up" : "chevron-down"))))
4152
+ (a(), Ce(ot(A(g.value ? "chevron-up" : "chevron-down"))))
4153
4153
  ]),
4154
4154
  default: x(() => [
4155
4155
  Q(" " + R(n(z)) + R(u.value ? " (Locked)" : "") + " ", 1)
4156
4156
  ]),
4157
4157
  _: 1
4158
4158
  }, 8, ["size", "disabled", "class", "title"]),
4159
- h.value ? (a(), o("div", {
4159
+ g.value ? (a(), o("div", {
4160
4160
  key: 0,
4161
4161
  class: "ui-theme-toggle-menu",
4162
- onClick: N[2] || (N[2] = (p) => h.value = !1)
4162
+ onClick: N[2] || (N[2] = (p) => g.value = !1)
4163
4163
  }, [
4164
4164
  (a(!0), o(Ue, null, Ke(n(k), (p) => (a(), o("button", {
4165
4165
  key: p.value,
@@ -4219,7 +4219,7 @@ const ol = {
4219
4219
  ])) : I("", !0)
4220
4220
  ], 2));
4221
4221
  }
4222
- }), Tc = /* @__PURE__ */ De(rl, [["__scopeId", "data-v-1edc8bae"]]), ul = {
4222
+ }), zc = /* @__PURE__ */ De(rl, [["__scopeId", "data-v-1edc8bae"]]), ul = {
4223
4223
  key: 0,
4224
4224
  class: "slider-header"
4225
4225
  }, cl = ["for"], dl = {
@@ -4274,16 +4274,16 @@ const ol = {
4274
4274
  },
4275
4275
  emits: ["update:modelValue", "change", "input", "focus", "blur"],
4276
4276
  setup(s, { emit: r }) {
4277
- const t = s, l = r, z = M(), V = M(!1), y = M(0), k = M(null), u = M(0), h = U(() => t.modelValue !== void 0 ? Number(t.modelValue) : t.value !== void 0 ? Number(t.value) : u.value);
4277
+ const t = s, l = r, z = M(), V = M(!1), y = M(0), k = M(null), u = M(0), g = U(() => t.modelValue !== void 0 ? Number(t.modelValue) : t.value !== void 0 ? Number(t.value) : u.value);
4278
4278
  Le(() => t.value, (S) => {
4279
4279
  S !== void 0 && (u.value = Number(S));
4280
4280
  }, { immediate: !0 }), Le(() => t.modelValue, (S) => {
4281
4281
  S !== void 0 && (u.value = Number(S));
4282
4282
  }, { immediate: !0 });
4283
4283
  const $ = U(() => {
4284
- const S = t.max - t.min, w = (h.value - t.min) / S * 100;
4284
+ const S = t.max - t.min, w = (g.value - t.min) / S * 100;
4285
4285
  return Math.max(0, Math.min(100, w));
4286
- }), A = U(() => h.value?.toFixed(t.step < 1 ? 1 : 0) || "0"), c = U(() => `slider-size-${t.size}`), g = U(() => t.color ? `slider-color-${t.color}` : ""), E = U(() => {
4286
+ }), A = U(() => g.value?.toFixed(t.step < 1 ? 1 : 0) || "0"), c = U(() => `slider-size-${t.size}`), h = U(() => t.color ? `slider-color-${t.color}` : ""), H = U(() => {
4287
4287
  if (!t.showTicks) return [];
4288
4288
  const S = [], w = t.max - t.min, q = w / (t.tickCount - 1);
4289
4289
  for (let Z = 0; Z < t.tickCount; Z++) {
@@ -4315,7 +4315,7 @@ const ol = {
4315
4315
  return (S, w) => (a(), o("div", {
4316
4316
  class: be(["slider-wrapper", [
4317
4317
  c.value,
4318
- g.value,
4318
+ h.value,
4319
4319
  {
4320
4320
  "slider-disabled": s.disabled,
4321
4321
  "slider-dragging": V.value
@@ -4343,7 +4343,7 @@ const ol = {
4343
4343
  ref_key: "sliderRef",
4344
4344
  ref: z,
4345
4345
  type: "range",
4346
- value: h.value,
4346
+ value: g.value,
4347
4347
  min: s.min,
4348
4348
  max: s.max,
4349
4349
  step: s.step,
@@ -4373,7 +4373,7 @@ const ol = {
4373
4373
  s.showMinMax ? (a(), o("div", gl, R(s.max) + R(s.unit), 1)) : I("", !0)
4374
4374
  ], 2),
4375
4375
  s.showTicks ? (a(), o("div", Cl, [
4376
- (a(!0), o(Ue, null, Ke(E.value, (q) => (a(), o("div", {
4376
+ (a(!0), o(Ue, null, Ke(H.value, (q) => (a(), o("div", {
4377
4377
  key: q.value,
4378
4378
  class: "slider-tick",
4379
4379
  style: Oe({ left: q.position + "%" })
@@ -4387,7 +4387,7 @@ const ol = {
4387
4387
  ])) : I("", !0)
4388
4388
  ], 2));
4389
4389
  }
4390
- }), zc = /* @__PURE__ */ De(xl, [["__scopeId", "data-v-db4748a0"]]), Ml = {
4390
+ }), Vc = /* @__PURE__ */ De(xl, [["__scopeId", "data-v-db4748a0"]]), Ml = {
4391
4391
  key: 0,
4392
4392
  class: "radio-group-label"
4393
4393
  }, $l = {
@@ -4436,7 +4436,7 @@ const ol = {
4436
4436
  l("update:modelValue", c), l("change", c);
4437
4437
  }, u = ($) => {
4438
4438
  l("focus", $);
4439
- }, h = ($) => {
4439
+ }, g = ($) => {
4440
4440
  l("blur", $);
4441
4441
  };
4442
4442
  return ($, A) => (a(), o("div", {
@@ -4465,7 +4465,7 @@ const ol = {
4465
4465
  "radio-option-card": s.variant === "card"
4466
4466
  }
4467
4467
  ]]),
4468
- onClick: (g) => y(c)
4468
+ onClick: (h) => y(c)
4469
4469
  }, [
4470
4470
  e("input", {
4471
4471
  id: `${s.fieldId}-${c.value}`,
@@ -4478,7 +4478,7 @@ const ol = {
4478
4478
  class: "radio-input",
4479
4479
  onChange: k,
4480
4480
  onFocus: u,
4481
- onBlur: h
4481
+ onBlur: g
4482
4482
  }, null, 40, _l),
4483
4483
  A[0] || (A[0] = e("div", { class: "radio-button" }, [
4484
4484
  e("div", { class: "radio-button-inner" })
@@ -4500,7 +4500,7 @@ const ol = {
4500
4500
  ])) : I("", !0)
4501
4501
  ], 2));
4502
4502
  }
4503
- }), Vc = /* @__PURE__ */ De(Ul, [["__scopeId", "data-v-c78c278d"]]), Dl = {
4503
+ }), Ic = /* @__PURE__ */ De(Ul, [["__scopeId", "data-v-c78c278d"]]), Dl = {
4504
4504
  key: 0,
4505
4505
  class: "checkbox-group-label"
4506
4506
  }, Nl = {
@@ -4572,14 +4572,14 @@ const ol = {
4572
4572
  return C.length > 0 && C.every(
4573
4573
  (N) => t.modelValue.includes(N.value)
4574
4574
  );
4575
- }), k = U(() => t.options.filter((N) => !N.disabled).some((N) => t.modelValue.includes(N.value))), u = (C) => t.modelValue.includes(C), h = (C) => t.options.find((p) => p.value === C)?.indeterminate || !1, $ = (C) => {
4575
+ }), k = U(() => t.options.filter((N) => !N.disabled).some((N) => t.modelValue.includes(N.value))), u = (C) => t.modelValue.includes(C), g = (C) => t.options.find((p) => p.value === C)?.indeterminate || !1, $ = (C) => {
4576
4576
  t.disabled || C.disabled || A(C);
4577
4577
  }, A = (C, N) => {
4578
4578
  const p = [...t.modelValue], L = p.indexOf(C.value);
4579
4579
  L > -1 ? p.splice(L, 1) : p.push(C.value), l("update:modelValue", p), l("change", p);
4580
4580
  }, c = () => {
4581
- t.disabled || g();
4582
- }, g = () => {
4581
+ t.disabled || h();
4582
+ }, h = () => {
4583
4583
  const C = t.options.filter((N) => !N.disabled);
4584
4584
  if (y.value) {
4585
4585
  const N = t.modelValue.filter(
@@ -4590,7 +4590,7 @@ const ol = {
4590
4590
  const N = C.map((L) => L.value), p = [.../* @__PURE__ */ new Set([...t.modelValue, ...N])];
4591
4591
  l("update:modelValue", p), l("change", p);
4592
4592
  }
4593
- }, E = (C) => {
4593
+ }, H = (C) => {
4594
4594
  l("focus", C);
4595
4595
  }, D = (C) => {
4596
4596
  l("blur", C);
@@ -4619,7 +4619,7 @@ const ol = {
4619
4619
  "checkbox-option-selected": u(p.value),
4620
4620
  "checkbox-option-disabled": s.disabled || p.disabled,
4621
4621
  "checkbox-option-card": s.variant === "card",
4622
- "checkbox-option-indeterminate": h(p.value)
4622
+ "checkbox-option-indeterminate": g(p.value)
4623
4623
  }
4624
4624
  ]]),
4625
4625
  onClick: (L) => $(p)
@@ -4632,10 +4632,10 @@ const ol = {
4632
4632
  checked: u(p.value),
4633
4633
  disabled: s.disabled || p.disabled,
4634
4634
  required: s.required && s.modelValue.length === 0,
4635
- indeterminate: h(p.value),
4635
+ indeterminate: g(p.value),
4636
4636
  class: "checkbox-input",
4637
4637
  onChange: (L) => A(p),
4638
- onFocus: E,
4638
+ onFocus: H,
4639
4639
  onBlur: D
4640
4640
  }, null, 40, jl),
4641
4641
  e("div", Ol, [
@@ -4645,7 +4645,7 @@ const ol = {
4645
4645
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
4646
4646
  "clip-rule": "evenodd"
4647
4647
  }, null, -1)
4648
- ])])) : h(p.value) ? (a(), o("svg", Fl, [...N[1] || (N[1] = [
4648
+ ])])) : g(p.value) ? (a(), o("svg", Fl, [...N[1] || (N[1] = [
4649
4649
  e("path", {
4650
4650
  "fill-rule": "evenodd",
4651
4651
  d: "M4 10a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1z",
@@ -4679,7 +4679,7 @@ const ol = {
4679
4679
  checked: y.value,
4680
4680
  indeterminate: k.value && !y.value,
4681
4681
  class: "checkbox-input select-all-input",
4682
- onChange: g
4682
+ onChange: h
4683
4683
  }, null, 40, Wl),
4684
4684
  e("div", Ql, [
4685
4685
  y.value ? (a(), o("svg", Xl, [...N[2] || (N[2] = [
@@ -4707,7 +4707,7 @@ const ol = {
4707
4707
  ])) : I("", !0)
4708
4708
  ], 2));
4709
4709
  }
4710
- }), Ic = /* @__PURE__ */ De(on, [["__scopeId", "data-v-01e5e0f9"]]), ln = { class: "accui-component-scope" }, nn = {
4710
+ }), Lc = /* @__PURE__ */ De(on, [["__scopeId", "data-v-01e5e0f9"]]), ln = { class: "accui-component-scope" }, nn = {
4711
4711
  key: 0,
4712
4712
  class: "ui-pill-leading-icon"
4713
4713
  }, rn = {
@@ -4779,7 +4779,7 @@ const ol = {
4779
4779
  ], 6))
4780
4780
  ]));
4781
4781
  }
4782
- }), Lc = /* @__PURE__ */ De(dn, [["__scopeId", "data-v-defab79f"]]), vn = (s, r) => {
4782
+ }), Ec = /* @__PURE__ */ De(dn, [["__scopeId", "data-v-defab79f"]]), vn = (s, r) => {
4783
4783
  const t = r[s];
4784
4784
  if (!t) return !1;
4785
4785
  if (typeof t == "function") {
@@ -4888,7 +4888,7 @@ function Tt() {
4888
4888
  } finally {
4889
4889
  Qe.value = !1;
4890
4890
  }
4891
- }, h = async (C) => {
4891
+ }, g = async (C) => {
4892
4892
  Qe.value = !0;
4893
4893
  try {
4894
4894
  await z(s("mfaEmailSend"), {
@@ -4931,7 +4931,7 @@ function Tt() {
4931
4931
  } finally {
4932
4932
  Qe.value = !1;
4933
4933
  }
4934
- }, g = (C) => {
4934
+ }, h = (C) => {
4935
4935
  switch (C) {
4936
4936
  case "totp":
4937
4937
  return "📱";
@@ -4948,7 +4948,7 @@ function Tt() {
4948
4948
  default:
4949
4949
  return "🔒";
4950
4950
  }
4951
- }, E = (C) => {
4951
+ }, H = (C) => {
4952
4952
  switch (C) {
4953
4953
  case "totp":
4954
4954
  return "Authenticator App";
@@ -4978,13 +4978,13 @@ function Tt() {
4978
4978
  setupTotp: y,
4979
4979
  verifyTotpSetup: k,
4980
4980
  setupEmailMfa: u,
4981
- sendEmailMfaCode: h,
4981
+ sendEmailMfaCode: g,
4982
4982
  verifyEmailMfaCode: $,
4983
4983
  disableMfaDevice: A,
4984
4984
  regenerateBackupCodes: c,
4985
4985
  // Helper methods
4986
- getDeviceTypeIcon: g,
4987
- getDeviceTypeName: E,
4986
+ getDeviceTypeIcon: h,
4987
+ getDeviceTypeName: H,
4988
4988
  formatLastUsed: D
4989
4989
  };
4990
4990
  }
@@ -5119,13 +5119,13 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5119
5119
  oe("path", { d: "m12 17 .01 0" })
5120
5120
  ]);
5121
5121
  }
5122
- }, u = s, h = r, {
5122
+ }, u = s, g = r, {
5123
5123
  loading: $,
5124
5124
  getDeviceTypeName: A
5125
5125
  } = Tt(), {
5126
5126
  verifyMfa: c,
5127
- sendMfaEmailCode: g,
5128
- getMfaWebAuthnChallenge: E,
5127
+ sendMfaEmailCode: h,
5128
+ getMfaWebAuthnChallenge: H,
5129
5129
  mfaSessionId: D,
5130
5130
  loading: C,
5131
5131
  loadingMessage: N,
@@ -5134,7 +5134,7 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5134
5134
  } = ft(), O = U(() => $.value || C.value), S = U({
5135
5135
  get: () => u.show,
5136
5136
  set: ($e) => {
5137
- $e || h("close");
5137
+ $e || g("close");
5138
5138
  }
5139
5139
  }), w = M(null), q = M(""), Z = M(""), b = M(""), T = M(""), te = M(!1), ue = M(!1), ye = M(!1), Me = M(0);
5140
5140
  let Ae = null;
@@ -5146,16 +5146,16 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5146
5146
  }, { immediate: !0 }), Le(() => u.show, async ($e) => {
5147
5147
  $e ? (q.value = "", Z.value = "", b.value = "", T.value = "", te.value = !1, ue.value = !1, ye.value = !1, Me.value = 0, Ae && (clearInterval(Ae), Ae = null), Se.value.length === 1 && (w.value = Se.value[0], w.value.device_type === "email" && setTimeout(async () => {
5148
5148
  try {
5149
- await g(w.value.id), ue.value = !0, W();
5149
+ await h(w.value.id), ue.value = !0, W();
5150
5150
  } catch (re) {
5151
- h("error", re instanceof Error ? re.message : "Failed to send email code");
5151
+ g("error", re instanceof Error ? re.message : "Failed to send email code");
5152
5152
  }
5153
5153
  }, 100))) : w.value = null;
5154
5154
  }), Fa(() => {
5155
5155
  Ae && clearInterval(Ae);
5156
5156
  });
5157
5157
  const xe = () => {
5158
- h("close");
5158
+ g("close");
5159
5159
  }, ne = ($e) => {
5160
5160
  w.value = $e, q.value = "", Z.value = "", ue.value = !1, te.value = !1;
5161
5161
  }, j = ($e) => {
@@ -5178,9 +5178,9 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5178
5178
  }, ae = async () => {
5179
5179
  if (!(!w.value || w.value.device_type !== "email"))
5180
5180
  try {
5181
- await g(w.value.id), ue.value = !0, W();
5181
+ await h(w.value.id), ue.value = !0, W();
5182
5182
  } catch ($e) {
5183
- h("error", $e instanceof Error ? $e.message : "Failed to send email code");
5183
+ g("error", $e instanceof Error ? $e.message : "Failed to send email code");
5184
5184
  }
5185
5185
  }, W = () => {
5186
5186
  ye.value = !0, Me.value = 30, Ae = setInterval(() => {
@@ -5190,7 +5190,7 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5190
5190
  if (!(!w.value || !q.value)) {
5191
5191
  Z.value = "";
5192
5192
  try {
5193
- await c(w.value.id, q.value), h("success");
5193
+ await c(w.value.id, q.value), g("success");
5194
5194
  } catch ($e) {
5195
5195
  Z.value = $e instanceof Error ? $e.message : "Invalid verification code";
5196
5196
  }
@@ -5199,7 +5199,7 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5199
5199
  if (b.value) {
5200
5200
  T.value = "";
5201
5201
  try {
5202
- await c("", b.value, !0), h("success");
5202
+ await c("", b.value, !0), g("success");
5203
5203
  } catch ($e) {
5204
5204
  T.value = $e instanceof Error ? $e.message : "Invalid backup code";
5205
5205
  }
@@ -5220,13 +5220,13 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5220
5220
  }, Ee = async () => {
5221
5221
  const $e = u.sessionId || D.value;
5222
5222
  if (!w.value || w.value.device_type !== "hardware" && w.value.device_type !== "passkey" || !$e) {
5223
- h("error", "Missing requirements for hardware key authentication");
5223
+ g("error", "Missing requirements for hardware key authentication");
5224
5224
  return;
5225
5225
  }
5226
5226
  try {
5227
5227
  if (!window.navigator.credentials || !window.PublicKeyCredential)
5228
5228
  throw new Error("Hardware keys are not supported in this browser");
5229
- const re = await E(w.value.id), ve = re.challenge.publicKey || re.challenge, Ie = (Ne) => {
5229
+ const re = await H(w.value.id), ve = re.challenge.publicKey || re.challenge, Ie = (Ne) => {
5230
5230
  if (!Ne || typeof Ne != "string")
5231
5231
  return new Uint8Array(0);
5232
5232
  const Fe = "=".repeat((4 - Ne.length % 4) % 4), Ct = (Ne + Fe).replace(/-/g, "+").replace(/_/g, "/"), Pe = window.atob(Ct), Ut = new Uint8Array(Pe.length);
@@ -5277,9 +5277,9 @@ const Cn = { class: "accui-component-scope" }, yn = { class: "mfa-verification-c
5277
5277
  deviceInfo: pe
5278
5278
  // Include detected device info
5279
5279
  };
5280
- await c(w.value.id, JSON.stringify(He)), h("success");
5280
+ await c(w.value.id, JSON.stringify(He)), g("success");
5281
5281
  } catch (re) {
5282
- h("error", re instanceof Error ? re.message : "Hardware key authentication failed");
5282
+ g("error", re instanceof Error ? re.message : "Hardware key authentication failed");
5283
5283
  }
5284
5284
  };
5285
5285
  return ($e, re) => (a(), o("div", Cn, [
@@ -5565,19 +5565,19 @@ function za(s = {}) {
5565
5565
  const { getUrl: r, config: t } = pt(), l = M([]), z = M(!1), V = M(null), y = U(
5566
5566
  () => l.value.filter((c) => c.enabled)
5567
5567
  ), k = async () => {
5568
- const c = JSON.stringify(s), g = Pa.get(c);
5569
- if (g && Date.now() - g.timestamp < ti)
5570
- return l.value = g.data, g.data;
5568
+ const c = JSON.stringify(s), h = Pa.get(c);
5569
+ if (h && Date.now() - h.timestamp < ti)
5570
+ return l.value = h.data, h.data;
5571
5571
  z.value = !0, V.value = null;
5572
5572
  try {
5573
- let E = r("oauthProviders");
5573
+ let H = r("oauthProviders");
5574
5574
  const D = s.redirectUrl || t.value?.oauth2RedirectUrl;
5575
5575
  if (D) {
5576
5576
  const p = new URLSearchParams();
5577
5577
  let L = D;
5578
- D.startsWith("/") && (L = `${window.location.origin}${D}`), p.append("redirect_url", L), E = `${E}?${p.toString()}`;
5578
+ D.startsWith("/") && (L = `${window.location.origin}${D}`), p.append("redirect_url", L), H = `${H}?${p.toString()}`;
5579
5579
  }
5580
- const C = await fetch(E, {
5580
+ const C = await fetch(H, {
5581
5581
  method: "GET",
5582
5582
  headers: {
5583
5583
  "Content-Type": "application/json"
@@ -5592,19 +5592,19 @@ function za(s = {}) {
5592
5592
  data: l.value,
5593
5593
  timestamp: Date.now()
5594
5594
  });
5595
- } catch (E) {
5596
- const D = E instanceof Error ? E.message : "Failed to fetch OAuth providers";
5595
+ } catch (H) {
5596
+ const D = H instanceof Error ? H.message : "Failed to fetch OAuth providers";
5597
5597
  V.value = D;
5598
5598
  } finally {
5599
5599
  z.value = !1;
5600
5600
  }
5601
- }, u = async (c, g) => {
5602
- const E = { ...s, ...g }, D = new URLSearchParams();
5603
- if (E.redirectUrl) {
5604
- let L = E.redirectUrl;
5605
- E.redirectUrl.startsWith("/") && (L = `${window.location.origin}${E.redirectUrl}`), D.append("redirect_url", L);
5601
+ }, u = async (c, h) => {
5602
+ const H = { ...s, ...h }, D = new URLSearchParams();
5603
+ if (H.redirectUrl) {
5604
+ let L = H.redirectUrl;
5605
+ H.redirectUrl.startsWith("/") && (L = `${window.location.origin}${H.redirectUrl}`), D.append("redirect_url", L);
5606
5606
  }
5607
- E.scopes && E.scopes.length > 0 && D.append("scopes", E.scopes.join(","));
5607
+ H.scopes && H.scopes.length > 0 && D.append("scopes", H.scopes.join(","));
5608
5608
  const C = D.toString(), N = r("oauthProvider").replace("{provider_id}", c), p = C ? `${N}?${C}` : N;
5609
5609
  try {
5610
5610
  const L = await fetch(p, {
@@ -5625,18 +5625,18 @@ function za(s = {}) {
5625
5625
  const O = L instanceof Error ? L.message : "Failed to get OAuth auth URL";
5626
5626
  throw new Error(O);
5627
5627
  }
5628
- }, h = async (c, g) => {
5628
+ }, g = async (c, h) => {
5629
5629
  try {
5630
- const E = l.value.find((D) => D.id === c);
5631
- if (!E)
5630
+ const H = l.value.find((D) => D.id === c);
5631
+ if (!H)
5632
5632
  throw new Error(`OAuth provider '${c}' not found`);
5633
- if (!E.auth_url)
5633
+ if (!H.auth_url)
5634
5634
  throw new Error(`No auth URL configured for provider '${c}'`);
5635
- window.location.href = E.auth_url;
5636
- } catch (E) {
5637
- throw V.value = E instanceof Error ? E.message : "Failed to redirect to OAuth provider", E;
5635
+ window.location.href = H.auth_url;
5636
+ } catch (H) {
5637
+ throw V.value = H instanceof Error ? H.message : "Failed to redirect to OAuth provider", H;
5638
5638
  }
5639
- }, $ = (c) => l.value.find((g) => g.id === c), A = (c) => {
5639
+ }, $ = (c) => l.value.find((h) => h.id === c), A = (c) => {
5640
5640
  if (c.iconUrl)
5641
5641
  return c.iconUrl;
5642
5642
  switch (c.id.toLowerCase()) {
@@ -5660,7 +5660,7 @@ function za(s = {}) {
5660
5660
  error: U(() => V.value),
5661
5661
  fetchProviders: k,
5662
5662
  getProviderAuthUrl: u,
5663
- redirectToProvider: h,
5663
+ redirectToProvider: g,
5664
5664
  getProviderById: $,
5665
5665
  getProviderIcon: A
5666
5666
  };
@@ -5816,19 +5816,19 @@ const ai = {
5816
5816
  const t = s, l = r, { getUrl: z, getSupportEmail: V, config: y } = pt(t.config), {
5817
5817
  signIn: k,
5818
5818
  mfaRequired: u,
5819
- availableMfaMethods: h,
5819
+ availableMfaMethods: g,
5820
5820
  currentUser: $,
5821
5821
  loadingMessage: A
5822
5822
  } = ft(), {
5823
5823
  enabledProviders: c,
5824
- loading: g,
5825
- fetchProviders: E,
5824
+ loading: h,
5825
+ fetchProviders: H,
5826
5826
  redirectToProvider: D
5827
5827
  } = za({
5828
5828
  redirectUrl: t.redirectUrl
5829
5829
  });
5830
5830
  We(() => {
5831
- E().catch((ae) => {
5831
+ H().catch((ae) => {
5832
5832
  });
5833
5833
  });
5834
5834
  const C = U(() => c.value), N = {
@@ -6032,7 +6032,7 @@ const ai = {
6032
6032
  key: le.id,
6033
6033
  variant: "outline",
6034
6034
  "full-width": "",
6035
- disabled: n(g),
6035
+ disabled: n(h),
6036
6036
  onClick: (_e) => Ae(le.id),
6037
6037
  class: "auth-oauth-button"
6038
6038
  }, {
@@ -6255,7 +6255,7 @@ const ai = {
6255
6255
  }, 8, ["variant", "color", "class"]),
6256
6256
  d(Ka, {
6257
6257
  show: w.value,
6258
- "available-mfa-methods": n(h),
6258
+ "available-mfa-methods": n(g),
6259
6259
  onSuccess: te,
6260
6260
  onClose: ue,
6261
6261
  onError: ye
@@ -6326,12 +6326,12 @@ const ai = {
6326
6326
  mfaSessionId: y,
6327
6327
  availableMfaMethods: k,
6328
6328
  loading: u,
6329
- currentUser: h
6329
+ currentUser: g
6330
6330
  } = ft(), {
6331
6331
  enabledProviders: $,
6332
6332
  loading: A,
6333
6333
  fetchProviders: c,
6334
- redirectToProvider: g
6334
+ redirectToProvider: h
6335
6335
  } = za({
6336
6336
  redirectUrl: t.redirectUrl,
6337
6337
  scopes: t.oauthScopes
@@ -6341,7 +6341,7 @@ const ai = {
6341
6341
  console.warn("Failed to fetch OAuth providers:", q);
6342
6342
  });
6343
6343
  });
6344
- const E = U(() => u.value), D = M(""), C = M(!1);
6344
+ const H = U(() => u.value), D = M(""), C = M(!1);
6345
6345
  Le(V, (q) => {
6346
6346
  q && (C.value = !0);
6347
6347
  });
@@ -6365,7 +6365,7 @@ const ai = {
6365
6365
  D.value = Z, l("error", Z);
6366
6366
  }
6367
6367
  }, L = () => {
6368
- C.value = !1, l("success", h.value);
6368
+ C.value = !1, l("success", g.value);
6369
6369
  const { config: q } = pt(t.config);
6370
6370
  q.value.onSignInUrl && typeof window < "u" && (window.location.href = q.value.onSignInUrl);
6371
6371
  }, O = () => {
@@ -6374,7 +6374,7 @@ const ai = {
6374
6374
  D.value = q, l("error", q);
6375
6375
  }, w = async (q) => {
6376
6376
  try {
6377
- await g(q, {
6377
+ await h(q, {
6378
6378
  redirectUrl: t.redirectUrl,
6379
6379
  scopes: t.oauthScopes
6380
6380
  });
@@ -6494,8 +6494,8 @@ const ai = {
6494
6494
  type: "submit",
6495
6495
  variant: "primary",
6496
6496
  "full-width": "",
6497
- disabled: E.value || !N.email || !N.password,
6498
- loading: E.value,
6497
+ disabled: H.value || !N.email || !N.password,
6498
+ loading: H.value,
6499
6499
  "loading-text": "Signing in...",
6500
6500
  class: "accui-auth-submit"
6501
6501
  }, {
@@ -6549,7 +6549,7 @@ const ai = {
6549
6549
  ])
6550
6550
  ]));
6551
6551
  }
6552
- }), Ec = /* @__PURE__ */ De(Xi, [["__scopeId", "data-v-0ec23b52"]]), Ji = { class: "accui-component-scope" }, er = { class: "accui-auth-panel-container" }, tr = {
6552
+ }), Hc = /* @__PURE__ */ De(Xi, [["__scopeId", "data-v-0ec23b52"]]), Ji = { class: "accui-component-scope" }, er = { class: "accui-auth-panel-container" }, tr = {
6553
6553
  key: 0,
6554
6554
  class: "accui-auth-panel"
6555
6555
  }, ar = { class: "accui-auth-header" }, sr = { class: "accui-auth-content" }, or = { class: "signup-success" }, lr = { class: "signup-success-title" }, nr = { class: "signup-success-message" }, ir = {
@@ -6594,7 +6594,7 @@ const ai = {
6594
6594
  enabledProviders: y,
6595
6595
  loading: k,
6596
6596
  fetchProviders: u,
6597
- redirectToProvider: h
6597
+ redirectToProvider: g
6598
6598
  } = za({
6599
6599
  redirectUrl: t.redirectUrl,
6600
6600
  scopes: t.oauthScopes
@@ -6604,7 +6604,7 @@ const ai = {
6604
6604
  console.warn("Failed to fetch OAuth providers:", O);
6605
6605
  });
6606
6606
  });
6607
- const $ = M(!1), A = M(""), c = M(!1), g = M(""), E = M("Magic Link Sent!"), D = M(""), C = Ye({
6607
+ const $ = M(!1), A = M(""), c = M(!1), h = M(""), H = M("Magic Link Sent!"), D = M(""), C = Ye({
6608
6608
  email: ""
6609
6609
  });
6610
6610
  U(() => C.email.trim() && C.email.includes("@"));
@@ -6631,7 +6631,7 @@ const ai = {
6631
6631
  throw new Error(q);
6632
6632
  }
6633
6633
  const w = await S.json();
6634
- c.value = !0, D.value = C.email, g.value = w.message || "Magic link sent! Check your email.", w.message && (w.message.includes("already have an account") || w.message.includes("Welcome back") ? E.value = "Welcome Back!" : w.message.includes("Magic link sent") || w.message.includes("Check your email") ? E.value = "Magic Link Sent!" : E.value = "Success!"), l("success", {
6634
+ c.value = !0, D.value = C.email, h.value = w.message || "Magic link sent! Check your email.", w.message && (w.message.includes("already have an account") || w.message.includes("Welcome back") ? H.value = "Welcome Back!" : w.message.includes("Magic link sent") || w.message.includes("Check your email") ? H.value = "Magic Link Sent!" : H.value = "Success!"), l("success", {
6635
6635
  email: C.email,
6636
6636
  message: w.message || "Magic link sent! Check your email."
6637
6637
  });
@@ -6650,10 +6650,10 @@ const ai = {
6650
6650
  $.value = !1;
6651
6651
  }
6652
6652
  }, p = () => {
6653
- c.value = !1, g.value = "", E.value = "Magic Link Sent!", D.value = "", C.email = "", A.value = "";
6653
+ c.value = !1, h.value = "", H.value = "Magic Link Sent!", D.value = "", C.email = "", A.value = "";
6654
6654
  }, L = async (O) => {
6655
6655
  try {
6656
- await h(O, {
6656
+ await g(O, {
6657
6657
  redirectUrl: t.redirectUrl,
6658
6658
  scopes: t.oauthScopes
6659
6659
  });
@@ -6671,8 +6671,8 @@ const ai = {
6671
6671
  e("div", sr, [
6672
6672
  e("div", or, [
6673
6673
  S[4] || (S[4] = e("div", { class: "signup-success-icon" }, "📧", -1)),
6674
- e("h1", lr, R(E.value), 1),
6675
- e("p", nr, R(g.value), 1),
6674
+ e("h1", lr, R(H.value), 1),
6675
+ e("p", nr, R(h.value), 1),
6676
6676
  D.value ? (a(), o("div", ir, [
6677
6677
  e("strong", null, R(D.value), 1)
6678
6678
  ])) : I("", !0),
@@ -6849,7 +6849,7 @@ const ai = {
6849
6849
  ])
6850
6850
  ]));
6851
6851
  }
6852
- }), Hc = /* @__PURE__ */ De(Vr, [["__scopeId", "data-v-505263b9"]]), Ir = { class: "accui-component-scope" }, Lr = {
6852
+ }), Uc = /* @__PURE__ */ De(Vr, [["__scopeId", "data-v-505263b9"]]), Ir = { class: "accui-component-scope" }, Lr = {
6853
6853
  key: 0,
6854
6854
  class: "complete-signup-container"
6855
6855
  }, Er = { class: "complete-signup-success" }, Hr = {
@@ -6876,22 +6876,22 @@ const ai = {
6876
6876
  },
6877
6877
  emits: ["success", "error", "invalid-token", "request-new-link", "start-registration"],
6878
6878
  setup(s, { emit: r }) {
6879
- const t = s, l = r, { getUrl: z, getSupportEmail: V } = pt(t.config), { setAuthData: y } = ft(), k = M(!1), u = M(!1), h = M(!1), $ = M(""), A = M(""), c = Ye({
6879
+ const t = s, l = r, { getUrl: z, getSupportEmail: V } = pt(t.config), { setAuthData: y } = ft(), k = M(!1), u = M(!1), g = M(!1), $ = M(""), A = M(""), c = Ye({
6880
6880
  firstName: "",
6881
6881
  lastName: "",
6882
6882
  password: ""
6883
- }), g = Ye({
6883
+ }), h = Ye({
6884
6884
  firstName: "",
6885
6885
  lastName: "",
6886
6886
  password: ""
6887
- }), E = U(() => {
6887
+ }), H = U(() => {
6888
6888
  const p = c.password.trim(), L = c.password.length >= 8, O = !!t.token;
6889
6889
  return p && L && O;
6890
6890
  });
6891
6891
  Le(
6892
6892
  () => c.password,
6893
6893
  (p) => {
6894
- p && p.length < 8 ? g.password = "Password must be at least 8 characters long" : g.password = "";
6894
+ p && p.length < 8 ? h.password = "Password must be at least 8 characters long" : h.password = "";
6895
6895
  }
6896
6896
  );
6897
6897
  const D = U(() => t.redirectUrl || window.location.origin);
@@ -6914,13 +6914,13 @@ const ai = {
6914
6914
  $.value = "Registration token is required";
6915
6915
  return;
6916
6916
  }
6917
- if ($.value = "", Object.keys(g).forEach((p) => {
6918
- g[p] = "";
6919
- }), !E.value) {
6917
+ if ($.value = "", Object.keys(h).forEach((p) => {
6918
+ h[p] = "";
6919
+ }), !H.value) {
6920
6920
  $.value = "Please fill in all required fields correctly";
6921
6921
  return;
6922
6922
  }
6923
- h.value = !0;
6923
+ g.value = !0;
6924
6924
  try {
6925
6925
  const p = {
6926
6926
  "Content-Type": "application/json"
@@ -6947,7 +6947,7 @@ const ai = {
6947
6947
  } catch (p) {
6948
6948
  p instanceof Error ? p.message.includes("CONFLICT") || p.message.includes("409") ? $.value = "This account already exists. Please try signing in instead." : p.message.includes("BAD_REQUEST") || p.message.includes("400") ? ($.value = "Invalid or expired registration link. Please request a new one.", u.value = !0, l("invalid-token")) : $.value = p.message : $.value = "Failed to complete registration. Please try again.", l("error", $.value);
6949
6949
  } finally {
6950
- h.value = !1;
6950
+ g.value = !1;
6951
6951
  }
6952
6952
  };
6953
6953
  return (p, L) => (a(), o("div", Ir, [
@@ -7023,7 +7023,7 @@ const ai = {
7023
7023
  label: "First Name (Optional)",
7024
7024
  placeholder: "Enter your first name",
7025
7025
  autocomplete: "given-name",
7026
- error: g.firstName
7026
+ error: h.firstName
7027
7027
  }, null, 8, ["modelValue", "error"])
7028
7028
  ]),
7029
7029
  e("div", null, [
@@ -7035,7 +7035,7 @@ const ai = {
7035
7035
  label: "Last Name (Optional)",
7036
7036
  placeholder: "Enter your last name",
7037
7037
  autocomplete: "family-name",
7038
- error: g.lastName
7038
+ error: h.lastName
7039
7039
  }, null, 8, ["modelValue", "error"])
7040
7040
  ]),
7041
7041
  e("div", null, [
@@ -7049,7 +7049,7 @@ const ai = {
7049
7049
  autocomplete: "new-password",
7050
7050
  required: "",
7051
7051
  minlength: "8",
7052
- error: g.password
7052
+ error: h.password
7053
7053
  }, null, 8, ["modelValue", "error"]),
7054
7054
  L[19] || (L[19] = e("div", { class: "complete-signup-password-hint" }, " Password must be at least 8 characters long ", -1))
7055
7055
  ]),
@@ -7057,8 +7057,8 @@ const ai = {
7057
7057
  type: "submit",
7058
7058
  variant: "primary",
7059
7059
  "full-width": "",
7060
- disabled: h.value || !E.value,
7061
- loading: h.value,
7060
+ disabled: g.value || !H.value,
7061
+ loading: g.value,
7062
7062
  "loading-text": "Creating account..."
7063
7063
  }, {
7064
7064
  default: x(() => [...L[20] || (L[20] = [
@@ -7125,7 +7125,7 @@ const ai = {
7125
7125
  ]))
7126
7126
  ]));
7127
7127
  }
7128
- }), Uc = /* @__PURE__ */ De(Zr, [["__scopeId", "data-v-c7f95c2d"]]), Kr = {
7128
+ }), Dc = /* @__PURE__ */ De(Zr, [["__scopeId", "data-v-c7f95c2d"]]), Kr = {
7129
7129
  key: 0,
7130
7130
  class: "step-container"
7131
7131
  }, Gr = { class: "step-actions" }, Yr = {
@@ -7158,14 +7158,14 @@ const ai = {
7158
7158
  set: (S) => {
7159
7159
  S || l("close");
7160
7160
  }
7161
- }), u = M(1), h = M(""), $ = M(""), A = M(""), c = M(""), g = M(null), E = M("");
7161
+ }), u = M(1), g = M(""), $ = M(""), A = M(""), c = M(""), h = M(null), H = M("");
7162
7162
  Le(() => t.show, (S) => {
7163
- S && (u.value = 1, h.value = "", $.value = "", A.value = "", c.value = "", g.value = null, E.value = "");
7164
- }), Le(() => g.value, async (S) => {
7163
+ S && (u.value = 1, g.value = "", $.value = "", A.value = "", c.value = "", h.value = null, H.value = "");
7164
+ }), Le(() => h.value, async (S) => {
7165
7165
  if (S?.qr_code_url)
7166
7166
  try {
7167
7167
  const w = `https://api.qrserver.com/v1/create-qr-code/?size=192x192&data=${encodeURIComponent(S.qr_code_url)}&bgcolor=ffffff&color=000000`;
7168
- E.value = w;
7168
+ H.value = w;
7169
7169
  } catch (w) {
7170
7170
  console.error("Failed to generate QR code:", w);
7171
7171
  }
@@ -7173,32 +7173,32 @@ const ai = {
7173
7173
  const D = () => {
7174
7174
  l("close");
7175
7175
  }, C = async () => {
7176
- if (!h.value.trim()) {
7176
+ if (!g.value.trim()) {
7177
7177
  $.value = "Device name is required";
7178
7178
  return;
7179
7179
  }
7180
7180
  $.value = "";
7181
7181
  try {
7182
- const S = await z(h.value.trim());
7183
- g.value = S, u.value = 2;
7182
+ const S = await z(g.value.trim());
7183
+ h.value = S, u.value = 2;
7184
7184
  } catch (S) {
7185
7185
  console.error("Failed to setup TOTP:", S), $.value = S instanceof Error ? S.message : "Failed to setup TOTP";
7186
7186
  }
7187
7187
  }, N = (S) => {
7188
7188
  c.value = "", S.length === 6 && p();
7189
7189
  }, p = async () => {
7190
- if (!(!g.value || !A.value)) {
7190
+ if (!(!h.value || !A.value)) {
7191
7191
  c.value = "";
7192
7192
  try {
7193
- await V(g.value.device_id, A.value), u.value = 4;
7193
+ await V(h.value.device_id, A.value), u.value = 4;
7194
7194
  } catch (S) {
7195
7195
  console.error("Failed to verify TOTP code:", S), c.value = S instanceof Error ? S.message : "Invalid verification code";
7196
7196
  }
7197
7197
  }
7198
7198
  }, L = async () => {
7199
- if (g.value?.backup_codes)
7199
+ if (h.value?.backup_codes)
7200
7200
  try {
7201
- const S = g.value.backup_codes.join(`
7201
+ const S = h.value.backup_codes.join(`
7202
7202
  `);
7203
7203
  await navigator.clipboard.writeText(S);
7204
7204
  } catch (S) {
@@ -7220,8 +7220,8 @@ const ai = {
7220
7220
  e("p", { class: "step-description" }, ' Give this authenticator a memorable name (e.g., "iPhone", "Work Phone") ')
7221
7221
  ], -1)),
7222
7222
  d(n(Ze), {
7223
- modelValue: h.value,
7224
- "onUpdate:modelValue": w[0] || (w[0] = (q) => h.value = q),
7223
+ modelValue: g.value,
7224
+ "onUpdate:modelValue": w[0] || (w[0] = (q) => g.value = q),
7225
7225
  label: "Device Name",
7226
7226
  placeholder: "My Authenticator",
7227
7227
  error: $.value,
@@ -7241,7 +7241,7 @@ const ai = {
7241
7241
  d(n(ce), {
7242
7242
  variant: "primary",
7243
7243
  onClick: C,
7244
- disabled: !h.value.trim() || n(y),
7244
+ disabled: !g.value.trim() || n(y),
7245
7245
  loading: n(y)
7246
7246
  }, {
7247
7247
  default: x(() => [...w[7] || (w[7] = [
@@ -7257,9 +7257,9 @@ const ai = {
7257
7257
  e("p", { class: "step-description" }, " Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.) ")
7258
7258
  ], -1)),
7259
7259
  e("div", Wr, [
7260
- E.value ? (a(), o("div", Qr, [
7260
+ H.value ? (a(), o("div", Qr, [
7261
7261
  e("img", {
7262
- src: E.value,
7262
+ src: H.value,
7263
7263
  alt: "TOTP QR Code",
7264
7264
  class: "qr-image",
7265
7265
  width: "200",
@@ -7271,9 +7271,9 @@ const ai = {
7271
7271
  ]),
7272
7272
  e("div", e2, [
7273
7273
  w[9] || (w[9] = e("p", { class: "manual-label" }, " Can't scan? Enter this code manually: ", -1)),
7274
- e("code", t2, R(g.value?.secret || "..."), 1)
7274
+ e("code", t2, R(h.value?.secret || "..."), 1)
7275
7275
  ]),
7276
- g.value?.backup_codes ? (a(), o("div", a2, [...w[10] || (w[10] = [
7276
+ h.value?.backup_codes ? (a(), o("div", a2, [...w[10] || (w[10] = [
7277
7277
  e("div", { class: "flex items-start space-x-2" }, [
7278
7278
  e("svg", {
7279
7279
  class: "w-5 h-5 text-yellow-600 mt-0.5 flex-shrink-0",
@@ -7395,7 +7395,7 @@ const ai = {
7395
7395
  ], -1)),
7396
7396
  e("div", r2, [
7397
7397
  e("div", u2, [
7398
- (a(!0), o(Ue, null, Ke(g.value?.backup_codes, (q, Z) => (a(), o("div", {
7398
+ (a(!0), o(Ue, null, Ke(h.value?.backup_codes, (q, Z) => (a(), o("div", {
7399
7399
  key: Z,
7400
7400
  class: "totp-setup-backup-code"
7401
7401
  }, R(q), 1))), 128))
@@ -7451,12 +7451,12 @@ const ai = {
7451
7451
  set: (b) => {
7452
7452
  b || l("close");
7453
7453
  }
7454
- }), h = M(1), $ = M(""), A = M(""), c = M(""), g = M(""), E = M(null), D = M(!1), C = M(0);
7454
+ }), g = M(1), $ = M(""), A = M(""), c = M(""), h = M(""), H = M(null), D = M(!1), C = M(0);
7455
7455
  let N = null;
7456
7456
  Le(() => t.show, (b) => {
7457
- b && (h.value = 1, $.value = "", A.value = "", c.value = "", g.value = "", E.value = null, D.value = !1, C.value = 0, N && (clearInterval(N), N = null));
7457
+ b && (g.value = 1, $.value = "", A.value = "", c.value = "", h.value = "", H.value = null, D.value = !1, C.value = 0, N && (clearInterval(N), N = null));
7458
7458
  }), Le(c, () => {
7459
- g.value && (g.value = "");
7459
+ h.value && (h.value = "");
7460
7460
  }), Fa(() => {
7461
7461
  N && clearInterval(N);
7462
7462
  });
@@ -7470,25 +7470,25 @@ const ai = {
7470
7470
  A.value = "";
7471
7471
  try {
7472
7472
  const b = await z($.value.trim());
7473
- E.value = b.device_id, await V(b.device_id), h.value = 2, q();
7473
+ H.value = b.device_id, await V(b.device_id), g.value = 2, q();
7474
7474
  } catch (b) {
7475
7475
  console.error("Failed to setup email MFA:", b), A.value = b instanceof Error ? b.message : "Failed to setup email MFA";
7476
7476
  }
7477
7477
  }, O = (b) => {
7478
- g.value = "", b.length === 6 && S();
7478
+ h.value = "", b.length === 6 && S();
7479
7479
  }, S = async () => {
7480
- if (!(!E.value || !c.value)) {
7481
- g.value = "";
7480
+ if (!(!H.value || !c.value)) {
7481
+ h.value = "";
7482
7482
  try {
7483
- await y(E.value, c.value) ? h.value = 3 : g.value = "Invalid verification code";
7483
+ await y(H.value, c.value) ? g.value = 3 : h.value = "Invalid verification code";
7484
7484
  } catch (b) {
7485
- console.error("Failed to verify email MFA code:", b), g.value = b instanceof Error ? b.message : "Invalid verification code";
7485
+ console.error("Failed to verify email MFA code:", b), h.value = b instanceof Error ? b.message : "Invalid verification code";
7486
7486
  }
7487
7487
  }
7488
7488
  }, w = async () => {
7489
- if (!(!E.value || D.value))
7489
+ if (!(!H.value || D.value))
7490
7490
  try {
7491
- await V(E.value), q();
7491
+ await V(H.value), q();
7492
7492
  } catch (b) {
7493
7493
  console.warn("Failed to resend email MFA verification code:", b);
7494
7494
  }
@@ -7506,7 +7506,7 @@ const ai = {
7506
7506
  "card-class": "email-mfa-setup-modal"
7507
7507
  }, {
7508
7508
  default: x(() => [
7509
- h.value === 1 ? (a(), o("div", p2, [
7509
+ g.value === 1 ? (a(), o("div", p2, [
7510
7510
  T[7] || (T[7] = e("div", null, [
7511
7511
  e("h3", { class: "email-mfa-setup-step-title" }, "Name Your Email 2FA"),
7512
7512
  e("p", { class: "email-mfa-setup-step-description" }, ' Give this email 2FA method a memorable name (e.g., "Personal Email", "Work Email") ')
@@ -7551,7 +7551,7 @@ const ai = {
7551
7551
  }, 8, ["disabled", "loading"])
7552
7552
  ])
7553
7553
  ])) : I("", !0),
7554
- h.value === 2 ? (a(), o("div", m2, [
7554
+ g.value === 2 ? (a(), o("div", m2, [
7555
7555
  T[10] || (T[10] = e("div", null, [
7556
7556
  e("h3", { class: "email-mfa-setup-step-title" }, "Test Email 2FA"),
7557
7557
  e("p", { class: "email-mfa-setup-step-description" }, " We've sent a test verification code to your email. Enter it below to complete setup. ")
@@ -7582,7 +7582,7 @@ const ai = {
7582
7582
  label: "Verification Code",
7583
7583
  "max-length": 6,
7584
7584
  variant: "numeric",
7585
- error: g.value,
7585
+ error: h.value,
7586
7586
  disabled: n(k),
7587
7587
  onComplete: O
7588
7588
  }, null, 8, ["modelValue", "error", "disabled"]),
@@ -7602,7 +7602,7 @@ const ai = {
7602
7602
  e("div", g2, [
7603
7603
  d(n(ce), {
7604
7604
  color: "secondary",
7605
- onClick: T[2] || (T[2] = (te) => h.value = 1),
7605
+ onClick: T[2] || (T[2] = (te) => g.value = 1),
7606
7606
  disabled: n(k)
7607
7607
  }, {
7608
7608
  default: x(() => [...T[8] || (T[8] = [
@@ -7622,7 +7622,7 @@ const ai = {
7622
7622
  }, 8, ["disabled", "loading"])
7623
7623
  ])
7624
7624
  ])) : I("", !0),
7625
- h.value === 3 ? (a(), o("div", C2, [
7625
+ g.value === 3 ? (a(), o("div", C2, [
7626
7626
  T[13] || (T[13] = e("div", { class: "email-mfa-setup-completion" }, [
7627
7627
  e("div", { class: "email-mfa-setup-completion-icon" }, [
7628
7628
  e("svg", {
@@ -7700,14 +7700,14 @@ const ai = {
7700
7700
  },
7701
7701
  emits: ["close", "success"],
7702
7702
  setup(s, { emit: r }) {
7703
- const t = s, l = r, { loading: z } = Tt(), { registerHardwareKey: V, completeHardwareKeyRegistration: y, currentSession: k } = ft(), u = M(!1), h = U(() => z.value || u.value), $ = U(() => t.deviceType === "passkey" ? "Setup Passkey" : "Setup Hardware Key"), A = U({
7703
+ const t = s, l = r, { loading: z } = Tt(), { registerHardwareKey: V, completeHardwareKeyRegistration: y, currentSession: k } = ft(), u = M(!1), g = U(() => z.value || u.value), $ = U(() => t.deviceType === "passkey" ? "Setup Passkey" : "Setup Hardware Key"), A = U({
7704
7704
  get: () => t.show,
7705
7705
  set: (b) => {
7706
7706
  b || l("close");
7707
7707
  }
7708
- }), c = M(1), g = M(""), E = M(""), D = M("Please touch your hardware key when prompted"), C = M(""), N = M([]);
7708
+ }), c = M(1), h = M(""), H = M(""), D = M("Please touch your hardware key when prompted"), C = M(""), N = M([]);
7709
7709
  Le(() => t.show, (b) => {
7710
- b && (c.value = 1, g.value = "", E.value = "", D.value = "Please touch your hardware key when prompted", C.value = "", N.value = []);
7710
+ b && (c.value = 1, h.value = "", H.value = "", D.value = "Please touch your hardware key when prompted", C.value = "", N.value = []);
7711
7711
  });
7712
7712
  const p = () => {
7713
7713
  l("close");
@@ -7793,11 +7793,11 @@ const ai = {
7793
7793
  throw new Error("Unable to process WebAuthn challenge data");
7794
7794
  }
7795
7795
  }, S = async () => {
7796
- if (!g.value.trim()) {
7797
- E.value = "Device name is required";
7796
+ if (!h.value.trim()) {
7797
+ H.value = "Device name is required";
7798
7798
  return;
7799
7799
  }
7800
- E.value = "", c.value = 2;
7800
+ H.value = "", c.value = 2;
7801
7801
  }, w = async () => {
7802
7802
  u.value = !0, c.value = 3, D.value = `Starting ${t.deviceType === "passkey" ? "passkey" : "hardware key"} registration...`;
7803
7803
  try {
@@ -7809,7 +7809,7 @@ const ai = {
7809
7809
  }
7810
7810
  if (!k.value?.accessToken)
7811
7811
  throw new Error("Not authenticated. Please sign in again.");
7812
- const { device_id: b, challenge: T } = await V(g.value.trim(), k.value.accessToken);
7812
+ const { device_id: b, challenge: T } = await V(h.value.trim(), k.value.accessToken);
7813
7813
  if (!T || typeof T != "object")
7814
7814
  throw new Error("Invalid challenge received from server");
7815
7815
  const te = O(T, t.deviceType);
@@ -7875,18 +7875,18 @@ const ai = {
7875
7875
  e("p", { class: "hardware-key-setup-step-description" }, ' Give your hardware key a memorable name (e.g., "YubiKey 5", "Work Security Key") ')
7876
7876
  ], -1)),
7877
7877
  d(n(Ze), {
7878
- modelValue: g.value,
7879
- "onUpdate:modelValue": T[0] || (T[0] = (te) => g.value = te),
7878
+ modelValue: h.value,
7879
+ "onUpdate:modelValue": T[0] || (T[0] = (te) => h.value = te),
7880
7880
  label: "Device Name",
7881
7881
  placeholder: "My Hardware Key",
7882
- error: E.value,
7883
- disabled: h.value
7882
+ error: H.value,
7883
+ disabled: g.value
7884
7884
  }, null, 8, ["modelValue", "error", "disabled"]),
7885
7885
  e("div", b2, [
7886
7886
  d(n(ce), {
7887
7887
  variant: "secondary",
7888
7888
  onClick: p,
7889
- disabled: h.value
7889
+ disabled: g.value
7890
7890
  }, {
7891
7891
  default: x(() => [...T[4] || (T[4] = [
7892
7892
  Q(" Cancel ", -1)
@@ -7896,8 +7896,8 @@ const ai = {
7896
7896
  d(n(ce), {
7897
7897
  variant: "primary",
7898
7898
  onClick: S,
7899
- disabled: !g.value.trim() || h.value,
7900
- loading: h.value
7899
+ disabled: !h.value.trim() || g.value,
7900
+ loading: g.value
7901
7901
  }, {
7902
7902
  default: x(() => [...T[5] || (T[5] = [
7903
7903
  Q(" Continue ", -1)
@@ -7965,7 +7965,7 @@ const ai = {
7965
7965
  d(n(ce), {
7966
7966
  variant: "secondary",
7967
7967
  onClick: T[1] || (T[1] = (te) => c.value = 1),
7968
- disabled: h.value
7968
+ disabled: g.value
7969
7969
  }, {
7970
7970
  default: x(() => [...T[15] || (T[15] = [
7971
7971
  Q(" Back ", -1)
@@ -7975,8 +7975,8 @@ const ai = {
7975
7975
  d(n(ce), {
7976
7976
  variant: "primary",
7977
7977
  onClick: w,
7978
- disabled: h.value,
7979
- loading: h.value
7978
+ disabled: g.value,
7979
+ loading: g.value
7980
7980
  }, {
7981
7981
  default: x(() => [...T[16] || (T[16] = [
7982
7982
  Q(" Register Key ", -1)
@@ -8160,25 +8160,25 @@ const ai = {
8160
8160
  set: (D) => {
8161
8161
  D || l("close");
8162
8162
  }
8163
- }), u = M([]), h = M(!1);
8163
+ }), u = M([]), g = M(!1);
8164
8164
  Le(() => t.show, async (D) => {
8165
- D && t.device && (h.value = !1, u.value = []);
8165
+ D && t.device && (g.value = !1, u.value = []);
8166
8166
  }), We(async () => {
8167
8167
  t.show && t.device && (u.value = []);
8168
8168
  });
8169
8169
  const $ = () => {
8170
8170
  l("close");
8171
8171
  }, A = () => {
8172
- h.value = !0;
8172
+ g.value = !0;
8173
8173
  }, c = async () => {
8174
8174
  if (t.device)
8175
8175
  try {
8176
8176
  const D = await z(t.device.id);
8177
- u.value = D.backup_codes, h.value = !1;
8177
+ u.value = D.backup_codes, g.value = !1;
8178
8178
  } catch (D) {
8179
8179
  console.error("Failed to regenerate backup codes:", D);
8180
8180
  }
8181
- }, g = async () => {
8181
+ }, h = async () => {
8182
8182
  if (u.value.length !== 0)
8183
8183
  try {
8184
8184
  const D = u.value.join(`
@@ -8187,7 +8187,7 @@ const ai = {
8187
8187
  } catch (D) {
8188
8188
  console.warn("Failed to copy backup codes to clipboard:", D);
8189
8189
  }
8190
- }, E = () => {
8190
+ }, H = () => {
8191
8191
  if (u.value.length === 0) return;
8192
8192
  const D = t.device?.device_name || "device", C = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], N = `strands-backup-codes-${D}-${C}.txt`, p = [
8193
8193
  "Strands Account Backup Codes",
@@ -8268,7 +8268,7 @@ const ai = {
8268
8268
  d(n(ce), {
8269
8269
  variant: "secondary",
8270
8270
  size: "sm",
8271
- onClick: g
8271
+ onClick: h
8272
8272
  }, {
8273
8273
  default: x(() => [...C[4] || (C[4] = [
8274
8274
  Q(" 📋 Copy All Codes ", -1)
@@ -8278,7 +8278,7 @@ const ai = {
8278
8278
  d(n(ce), {
8279
8279
  variant: "secondary",
8280
8280
  size: "sm",
8281
- onClick: E
8281
+ onClick: H
8282
8282
  }, {
8283
8283
  default: x(() => [...C[5] || (C[5] = [
8284
8284
  Q(" 💾 Download ", -1)
@@ -8311,7 +8311,7 @@ const ai = {
8311
8311
  })
8312
8312
  ])
8313
8313
  ]),
8314
- h.value ? (a(), o("div", a3, [
8314
+ g.value ? (a(), o("div", a3, [
8315
8315
  e("div", s3, [
8316
8316
  C[13] || (C[13] = e("svg", {
8317
8317
  class: "backup-codes-regenerate-icon",
@@ -8343,7 +8343,7 @@ const ai = {
8343
8343
  d(n(ce), {
8344
8344
  variant: "secondary",
8345
8345
  size: "sm",
8346
- onClick: C[0] || (C[0] = (N) => h.value = !1)
8346
+ onClick: C[0] || (C[0] = (N) => g.value = !1)
8347
8347
  }, {
8348
8348
  default: x(() => [...C[10] || (C[10] = [
8349
8349
  Q(" Cancel ", -1)
@@ -8382,10 +8382,10 @@ const ai = {
8382
8382
  }, k = () => {
8383
8383
  l("cancel");
8384
8384
  };
8385
- return (u, h) => (a(), o("div", i3, [
8385
+ return (u, g) => (a(), o("div", i3, [
8386
8386
  d(ut, {
8387
8387
  modelValue: V.value,
8388
- "onUpdate:modelValue": h[0] || (h[0] = ($) => V.value = $),
8388
+ "onUpdate:modelValue": g[0] || (g[0] = ($) => V.value = $),
8389
8389
  "card-class": "confirm-modal"
8390
8390
  }, {
8391
8391
  header: x(() => [
@@ -8464,7 +8464,7 @@ const ai = {
8464
8464
  activeMfaDevices: y,
8465
8465
  fetchMfaDevices: k,
8466
8466
  disableMfaDevice: u,
8467
- sendEmailMfaCode: h
8467
+ sendEmailMfaCode: g
8468
8468
  } = Tt(), $ = {
8469
8469
  props: ["size"],
8470
8470
  render() {
@@ -8489,7 +8489,7 @@ const ai = {
8489
8489
  oe("circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor" })
8490
8490
  ]);
8491
8491
  }
8492
- }, g = {
8492
+ }, h = {
8493
8493
  props: ["size"],
8494
8494
  render() {
8495
8495
  return oe("svg", { width: this.size, height: this.size, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, [
@@ -8504,7 +8504,7 @@ const ai = {
8504
8504
  oe("path", { d: "M9 6.8a6 6 0 0 1 9 5.2c0 .47 0 1.17-.02 2" })
8505
8505
  ]);
8506
8506
  }
8507
- }, E = {
8507
+ }, H = {
8508
8508
  props: ["size"],
8509
8509
  render() {
8510
8510
  return oe("svg", { width: this.size, height: this.size, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, [
@@ -8536,7 +8536,7 @@ const ai = {
8536
8536
  });
8537
8537
  const b = async (xe) => {
8538
8538
  try {
8539
- N[xe.id] = !0, await h(xe.id);
8539
+ N[xe.id] = !0, await g(xe.id);
8540
8540
  } catch (ne) {
8541
8541
  console.error("Failed to send email MFA code:", ne);
8542
8542
  } finally {
@@ -8589,7 +8589,7 @@ const ai = {
8589
8589
  ]),
8590
8590
  e("div", y3, [
8591
8591
  n(z) ? (a(), o("span", k3, [
8592
- d(E, {
8592
+ d(H, {
8593
8593
  size: 12,
8594
8594
  class: "mfa-badge-icon"
8595
8595
  }),
@@ -8675,7 +8675,7 @@ const ai = {
8675
8675
  e("div", L3, [
8676
8676
  e("div", E3, [
8677
8677
  e("div", H3, [
8678
- d(g, { size: 24 })
8678
+ d(h, { size: 24 })
8679
8679
  ]),
8680
8680
  ne[20] || (ne[20] = e("div", { class: "mfa-device-option-info" }, [
8681
8681
  e("h4", { class: "mfa-device-option-title" }, "Passkey"),
@@ -8698,7 +8698,7 @@ const ai = {
8698
8698
  ])) : j?.value === "manage" ? (a(), o("div", U3, [
8699
8699
  n(y).length === 0 ? (a(), o("div", D3, [
8700
8700
  e("div", N3, [
8701
- d(E, { size: 48 })
8701
+ d(H, { size: 48 })
8702
8702
  ]),
8703
8703
  ne[24] || (ne[24] = e("h3", { class: "mfa-empty-title" }, "No MFA Devices", -1)),
8704
8704
  ne[25] || (ne[25] = e("p", { class: "mfa-empty-description" }, "You haven't set up any multi-factor authentication devices yet.", -1)),
@@ -8728,7 +8728,7 @@ const ai = {
8728
8728
  })) : K.device_type === "hardware" ? (a(), Ce(c, {
8729
8729
  key: 2,
8730
8730
  size: 20
8731
- })) : K.device_type === "passkey" ? (a(), Ce(g, {
8731
+ })) : K.device_type === "passkey" ? (a(), Ce(h, {
8732
8732
  key: 3,
8733
8733
  size: 20
8734
8734
  })) : I("", !0)
@@ -8867,9 +8867,9 @@ const ai = {
8867
8867
  Le(() => l.value?.settings, (c) => {
8868
8868
  c && (k.levelUpSounds = c.levelUpSounds ?? !0, k.milestoneSounds = c.milestoneSounds ?? !0);
8869
8869
  }, { deep: !0 });
8870
- const u = (c, g) => {
8871
- k[c] = g;
8872
- }, h = () => {
8870
+ const u = (c, h) => {
8871
+ k[c] = h;
8872
+ }, g = () => {
8873
8873
  y.value || (y.value = "regular", Sa.playLevelUp(5), setTimeout(() => {
8874
8874
  y.value === "regular" && (y.value = null);
8875
8875
  }, 800));
@@ -8885,33 +8885,33 @@ const ai = {
8885
8885
  ...l.value?.settings,
8886
8886
  ...k
8887
8887
  }), t("settings-updated", { ...k });
8888
- } catch (g) {
8889
- console.warn("Failed to save settings:", g);
8888
+ } catch (h) {
8889
+ console.warn("Failed to save settings:", h);
8890
8890
  } finally {
8891
8891
  V.value = !1, c();
8892
8892
  }
8893
8893
  }
8894
8894
  };
8895
- return (c, g) => (a(), o("div", Q3, [
8895
+ return (c, h) => (a(), o("div", Q3, [
8896
8896
  d(ut, {
8897
8897
  onClose: c.onClose,
8898
8898
  title: "Account Settings",
8899
8899
  "card-class": "max-w-lg"
8900
8900
  }, Zt({
8901
- footer: x(({ handleClose: E }) => [
8901
+ footer: x(({ handleClose: H }) => [
8902
8902
  e("div", c4, [
8903
8903
  d(lt, {
8904
8904
  variant: "secondary",
8905
- onClick: E
8905
+ onClick: H
8906
8906
  }, {
8907
- default: x(() => [...g[11] || (g[11] = [
8907
+ default: x(() => [...h[11] || (h[11] = [
8908
8908
  Q(" Close ", -1)
8909
8909
  ])]),
8910
8910
  _: 1
8911
8911
  }, 8, ["onClick"]),
8912
8912
  d(lt, {
8913
8913
  variant: "primary",
8914
- onClick: (D) => A(E),
8914
+ onClick: (D) => A(H),
8915
8915
  loading: V.value
8916
8916
  }, {
8917
8917
  default: x(() => [
@@ -8924,10 +8924,10 @@ const ai = {
8924
8924
  default: x(() => [
8925
8925
  e("div", X3, [
8926
8926
  e("div", J3, [
8927
- g[10] || (g[10] = e("h3", { class: "settings-section-title" }, "Audio Preferences", -1)),
8927
+ h[10] || (h[10] = e("h3", { class: "settings-section-title" }, "Audio Preferences", -1)),
8928
8928
  e("div", e4, [
8929
8929
  e("div", t4, [
8930
- g[6] || (g[6] = e("div", { class: "settings-option-info" }, [
8930
+ h[6] || (h[6] = e("div", { class: "settings-option-info" }, [
8931
8931
  e("label", {
8932
8932
  for: "level-up-sounds",
8933
8933
  class: "settings-option-label"
@@ -8938,15 +8938,15 @@ const ai = {
8938
8938
  d(lt, {
8939
8939
  variant: "outline",
8940
8940
  size: "sm",
8941
- onClick: h,
8941
+ onClick: g,
8942
8942
  disabled: y.value === "regular",
8943
8943
  "aria-label": y.value === "regular" ? "Stop preview" : "Play preview",
8944
8944
  class: "preview-icon-button"
8945
8945
  }, {
8946
8946
  default: x(() => [
8947
- y.value !== "regular" ? (a(), o("svg", s4, [...g[4] || (g[4] = [
8947
+ y.value !== "regular" ? (a(), o("svg", s4, [...h[4] || (h[4] = [
8948
8948
  e("path", { d: "M8 5v14l11-7z" }, null, -1)
8949
- ])])) : (a(), o("svg", o4, [...g[5] || (g[5] = [
8949
+ ])])) : (a(), o("svg", o4, [...h[5] || (h[5] = [
8950
8950
  e("rect", {
8951
8951
  x: "6",
8952
8952
  y: "6",
@@ -8961,8 +8961,8 @@ const ai = {
8961
8961
  id: "level-up-sounds",
8962
8962
  modelValue: k.levelUpSounds,
8963
8963
  "onUpdate:modelValue": [
8964
- g[0] || (g[0] = (E) => k.levelUpSounds = E),
8965
- g[1] || (g[1] = (E) => u("levelUpSounds", E))
8964
+ h[0] || (h[0] = (H) => k.levelUpSounds = H),
8965
+ h[1] || (h[1] = (H) => u("levelUpSounds", H))
8966
8966
  ]
8967
8967
  }, null, 8, ["modelValue"])
8968
8968
  ])
@@ -8970,7 +8970,7 @@ const ai = {
8970
8970
  ]),
8971
8971
  e("div", l4, [
8972
8972
  e("div", n4, [
8973
- g[9] || (g[9] = e("div", { class: "settings-option-info" }, [
8973
+ h[9] || (h[9] = e("div", { class: "settings-option-info" }, [
8974
8974
  e("label", {
8975
8975
  for: "milestone-sounds",
8976
8976
  class: "settings-option-label"
@@ -8987,9 +8987,9 @@ const ai = {
8987
8987
  class: "preview-icon-button"
8988
8988
  }, {
8989
8989
  default: x(() => [
8990
- y.value !== "milestone" ? (a(), o("svg", r4, [...g[7] || (g[7] = [
8990
+ y.value !== "milestone" ? (a(), o("svg", r4, [...h[7] || (h[7] = [
8991
8991
  e("path", { d: "M8 5v14l11-7z" }, null, -1)
8992
- ])])) : (a(), o("svg", u4, [...g[8] || (g[8] = [
8992
+ ])])) : (a(), o("svg", u4, [...h[8] || (h[8] = [
8993
8993
  e("rect", {
8994
8994
  x: "6",
8995
8995
  y: "6",
@@ -9004,8 +9004,8 @@ const ai = {
9004
9004
  id: "milestone-sounds",
9005
9005
  modelValue: k.milestoneSounds,
9006
9006
  "onUpdate:modelValue": [
9007
- g[2] || (g[2] = (E) => k.milestoneSounds = E),
9008
- g[3] || (g[3] = (E) => u("milestoneSounds", E))
9007
+ h[2] || (h[2] = (H) => k.milestoneSounds = H),
9008
+ h[3] || (h[3] = (H) => u("milestoneSounds", H))
9009
9009
  ]
9010
9010
  }, null, 8, ["modelValue"])
9011
9011
  ])
@@ -9074,7 +9074,7 @@ const ai = {
9074
9074
  oe("line", { x1: "12", y1: "17", x2: "12", y2: "21" })
9075
9075
  ]);
9076
9076
  }
9077
- }, h = {
9077
+ }, g = {
9078
9078
  props: ["size"],
9079
9079
  render() {
9080
9080
  return oe("svg", { width: this.size, height: this.size, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, [
@@ -9101,7 +9101,7 @@ const ai = {
9101
9101
  oe("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
9102
9102
  ]);
9103
9103
  }
9104
- }, c = M([]), g = M(null), E = M(!1), D = M(null), C = Ye({}), N = M(!1), p = U({
9104
+ }, c = M([]), h = M(null), H = M(!1), D = M(null), C = Ye({}), N = M(!1), p = U({
9105
9105
  get: () => t.modelValue || !1,
9106
9106
  set: (T) => l("update:modelValue", T)
9107
9107
  });
@@ -9111,22 +9111,22 @@ const ai = {
9111
9111
  (typeof t.modelValue > "u" || t.modelValue) && L();
9112
9112
  });
9113
9113
  const L = async () => {
9114
- E.value = !0, D.value = null;
9114
+ H.value = !0, D.value = null;
9115
9115
  try {
9116
9116
  const T = await z();
9117
9117
  if (c.value = T || [], c.value.length > 0) {
9118
9118
  const te = c.value.filter((ye) => ye.is_current || ye.last_activity_at), ue = [...new Set(c.value.map((ye) => q(ye)).filter(Boolean))];
9119
- g.value = {
9119
+ h.value = {
9120
9120
  total_sessions: c.value.length,
9121
9121
  active_sessions: te.length,
9122
9122
  unique_locations: ue
9123
9123
  };
9124
9124
  } else
9125
- g.value = null;
9125
+ h.value = null;
9126
9126
  } catch (T) {
9127
9127
  D.value = T instanceof Error ? T.message : "Failed to load sessions", console.error("Failed to load sessions:", T);
9128
9128
  } finally {
9129
- E.value = !1;
9129
+ H.value = !1;
9130
9130
  }
9131
9131
  }, O = async (T) => {
9132
9132
  C[T] = !0;
@@ -9172,7 +9172,7 @@ const ai = {
9172
9172
  }, {
9173
9173
  default: x(() => [
9174
9174
  e("div", p4, [
9175
- E.value ? (a(), o("div", f4, [
9175
+ H.value ? (a(), o("div", f4, [
9176
9176
  d(n(gt), { size: 40 }),
9177
9177
  te[1] || (te[1] = e("p", { class: "loading-text" }, "Loading sessions...", -1))
9178
9178
  ])) : c.value.length === 0 ? (a(), o("div", m4, [...te[2] || (te[2] = [
@@ -9209,18 +9209,18 @@ const ai = {
9209
9209
  e("h3", { class: "empty-title" }, "No Active Sessions", -1),
9210
9210
  e("p", { class: "empty-description" }, "You don't have any active sessions at the moment.", -1)
9211
9211
  ])])) : (a(), o("div", h4, [
9212
- g.value ? (a(), o("div", g4, [
9212
+ h.value ? (a(), o("div", g4, [
9213
9213
  e("div", C4, [
9214
9214
  te[3] || (te[3] = e("span", { class: "stat-label" }, "Total Sessions", -1)),
9215
- e("span", y4, R(g.value.total_sessions), 1)
9215
+ e("span", y4, R(h.value.total_sessions), 1)
9216
9216
  ]),
9217
9217
  e("div", k4, [
9218
9218
  te[4] || (te[4] = e("span", { class: "stat-label" }, "Active Devices", -1)),
9219
- e("span", w4, R(g.value.active_sessions), 1)
9219
+ e("span", w4, R(h.value.active_sessions), 1)
9220
9220
  ]),
9221
- g.value.unique_locations && g.value.unique_locations.length > 0 ? (a(), o("div", b4, [
9221
+ h.value.unique_locations && h.value.unique_locations.length > 0 ? (a(), o("div", b4, [
9222
9222
  te[5] || (te[5] = e("span", { class: "stat-label" }, "Locations", -1)),
9223
- e("span", x4, R(g.value.unique_locations.length), 1)
9223
+ e("span", x4, R(h.value.unique_locations.length), 1)
9224
9224
  ])) : I("", !0)
9225
9225
  ])) : I("", !0),
9226
9226
  e("div", M4, [
@@ -9262,7 +9262,7 @@ const ai = {
9262
9262
  ]),
9263
9263
  e("div", H4, [
9264
9264
  e("span", U4, [
9265
- d(h, { size: 14 })
9265
+ d(g, { size: 14 })
9266
9266
  ]),
9267
9267
  e("span", D4, R(ue.ip_address), 1)
9268
9268
  ]),
@@ -9391,7 +9391,7 @@ const ai = {
9391
9391
  oe("circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor" })
9392
9392
  ]);
9393
9393
  }
9394
- }, V = s, y = r, { getSupportEmail: k, getUrl: u } = pt(V.config), { fetchProfile: h, updateProfile: $, changeEmail: A, changeUsername: c, getUsernameCooldown: g, checkUsernameAvailability: E, getUserSessions: D, currentUser: C, currentSession: N, isAuthenticated: p, refreshToken: L, signOut: O } = ft(), { activeMfaDevices: S, fetchMfaDevices: w } = Tt(), q = M(null), Z = M(!1), b = U(() => C.value || V.user || q.value), T = M(!1), te = M(!1), ue = M(!1), ye = M(!1), Me = M(!1), Ae = M(!1), Se = M(!1), xe = M(!1), ne = M(!1), j = M(!1), K = M(!1), ie = M(null), ae = M(""), W = M(""), le = M([]), _e = M(!1), Te = Ye({
9394
+ }, V = s, y = r, { getSupportEmail: k, getUrl: u } = pt(V.config), { fetchProfile: g, updateProfile: $, changeEmail: A, changeUsername: c, getUsernameCooldown: h, checkUsernameAvailability: H, getUserSessions: D, currentUser: C, currentSession: N, isAuthenticated: p, refreshToken: L, signOut: O } = ft(), { activeMfaDevices: S, fetchMfaDevices: w } = Tt(), q = M(null), Z = M(!1), b = U(() => C.value || V.user || q.value), T = M(!1), te = M(!1), ue = M(!1), ye = M(!1), Me = M(!1), Ae = M(!1), Se = M(!1), xe = M(!1), ne = M(!1), j = M(!1), K = M(!1), ie = M(null), ae = M(""), W = M(""), le = M([]), _e = M(!1), Te = Ye({
9395
9395
  canChange: !0,
9396
9396
  cooldownEnd: null,
9397
9397
  daysRemaining: 0
@@ -9507,7 +9507,7 @@ const ai = {
9507
9507
  if (!(!V.autoFetch || V.user || !p.value)) {
9508
9508
  Z.value = !0;
9509
9509
  try {
9510
- await h(), p.value && await w();
9510
+ await g(), p.value && await w();
9511
9511
  } catch (J) {
9512
9512
  console.error("Failed to load profile:", J);
9513
9513
  const P = J instanceof Error ? J.message : "Failed to load profile";
@@ -9592,7 +9592,7 @@ const ai = {
9592
9592
  else {
9593
9593
  xe.value = !0;
9594
9594
  try {
9595
- const J = await g();
9595
+ const J = await h();
9596
9596
  Te.canChange = J.can_change, Te.cooldownEnd = J.cooldown_end ? new Date(J.cooldown_end) : null, Te.daysRemaining = J.days_remaining || 0, Te.canChange ? (Se.value = !0, G.username = b.value?.username || "") : W.value = `You can change your username again in ${Te.daysRemaining} days`;
9597
9597
  } catch (J) {
9598
9598
  console.error("Failed to check username cooldown:", J), W.value = "Failed to check username cooldown", Se.value = !0;
@@ -9608,7 +9608,7 @@ const ai = {
9608
9608
  }
9609
9609
  Ee.checking = !0, Ee.message = "Checking availability...";
9610
9610
  try {
9611
- const P = await E(G.username);
9611
+ const P = await H(G.username);
9612
9612
  if (Ee.available = P.available, Ee.message = P.message, !P.available) {
9613
9613
  G.errors.username = "Username is not available";
9614
9614
  return;
@@ -9683,7 +9683,7 @@ const ai = {
9683
9683
  const bt = await ct.json();
9684
9684
  C.value && (C.value.avatar = bt.avatar_url, typeof window < "u" && localStorage.setItem("strands_auth_user", JSON.stringify(C.value))), q.value && (q.value.avatar = bt.avatar_url);
9685
9685
  try {
9686
- await h();
9686
+ await g();
9687
9687
  } catch {
9688
9688
  }
9689
9689
  ae.value = "Avatar updated successfully", b.value && y("profile-updated", b.value);
@@ -9700,7 +9700,7 @@ const ai = {
9700
9700
  const Pt = await wt.json();
9701
9701
  C.value && (C.value.avatar = Pt.avatar_url, typeof window < "u" && localStorage.setItem("strands_auth_user", JSON.stringify(C.value))), q.value && (q.value.avatar = Pt.avatar_url);
9702
9702
  try {
9703
- await h();
9703
+ await g();
9704
9704
  } catch {
9705
9705
  }
9706
9706
  ae.value = "Avatar updated successfully", b.value && y("profile-updated", b.value);
@@ -9713,7 +9713,7 @@ const ai = {
9713
9713
  }
9714
9714
  }, ua = async () => {
9715
9715
  try {
9716
- await h(), await w(), ae.value = "MFA settings updated successfully", y("mfa-toggle", b.value?.mfaEnabled || !1);
9716
+ await g(), await w(), ae.value = "MFA settings updated successfully", y("mfa-toggle", b.value?.mfaEnabled || !1);
9717
9717
  } catch (J) {
9718
9718
  console.warn("Failed to refresh profile after MFA update:", J);
9719
9719
  }
@@ -9737,7 +9737,7 @@ const ai = {
9737
9737
  return We(async () => {
9738
9738
  if (b.value && p.value)
9739
9739
  try {
9740
- const J = await g();
9740
+ const J = await h();
9741
9741
  Te.canChange = J.can_change, Te.cooldownEnd = J.cooldown_end ? new Date(J.cooldown_end) : null, Te.daysRemaining = J.days_remaining || 0;
9742
9742
  } catch (J) {
9743
9743
  console.warn("Failed to fetch username cooldown:", J);
@@ -10246,7 +10246,7 @@ const ai = {
10246
10246
  setup(s, { emit: r }) {
10247
10247
  const t = s, l = r, { getSupportEmail: z } = pt(t.config), V = M(!1), y = M(""), k = M(!1), u = Ye({
10248
10248
  email: ""
10249
- }), h = async () => {
10249
+ }), g = async () => {
10250
10250
  V.value = !0, y.value = "";
10251
10251
  try {
10252
10252
  await new Promise(($) => setTimeout($, 1e3)), k.value = !0, l("success", u.email);
@@ -10268,7 +10268,7 @@ const ai = {
10268
10268
  e("p", { class: "accui-text-neutral-600" }, "Enter your email address and we'll send you a link to reset your password")
10269
10269
  ], -1)),
10270
10270
  e("form", {
10271
- onSubmit: Be(h, ["prevent"]),
10271
+ onSubmit: Be(g, ["prevent"]),
10272
10272
  class: "accui-space-y-6"
10273
10273
  }, [
10274
10274
  d(n(Ze), {
@@ -10362,13 +10362,13 @@ const ai = {
10362
10362
  ])
10363
10363
  ]));
10364
10364
  }
10365
- }), Dc = /* @__PURE__ */ De(Q0, [["__scopeId", "data-v-d5af9f1c"]]), X0 = {
10366
- key: 1,
10367
- class: "animate-fade-in"
10368
- }, J0 = {
10365
+ }), Nc = /* @__PURE__ */ De(Q0, [["__scopeId", "data-v-d5af9f1c"]]), X0 = { class: "signed-in-wrapper" }, J0 = {
10366
+ key: 0,
10367
+ class: "animate-fade-in signed-in-loading"
10368
+ }, eu = {
10369
10369
  key: 2,
10370
- class: "animate-fade-in"
10371
- }, eu = /* @__PURE__ */ Ve({
10370
+ class: "animate-fade-in signed-in-fallback-wrapper"
10371
+ }, tu = /* @__PURE__ */ Ve({
10372
10372
  __name: "SignedIn",
10373
10373
  props: {
10374
10374
  showFallback: { type: Boolean, default: !0 },
@@ -10376,45 +10376,44 @@ const ai = {
10376
10376
  },
10377
10377
  emits: ["sign-in-required"],
10378
10378
  setup(s, { emit: r }) {
10379
- const t = r, { isAuthenticated: l, isInitializing: z, user: V, signOut: y, initialize: k, isInitialized: u } = ft(), h = M(!1);
10379
+ const t = r, { isAuthenticated: l, isInitializing: z, user: V, signOut: y, initialize: k, isInitialized: u } = ft(), g = M(!1);
10380
10380
  We(async () => {
10381
- console.log("[SignedIn] onMounted called"), h.value = !0, await k(), await ht(), console.log("[SignedIn] onMounted complete - hasMounted:", h.value, "isInitialized:", u.value, "isInitializing:", z.value, "isAuthenticated:", l.value);
10381
+ g.value = !0, await k(), await ht();
10382
10382
  });
10383
- const $ = U(() => {
10384
- const E = !h.value || z.value || !u.value;
10385
- return console.log("[SignedIn] isLoading:", E, "(hasMounted:", h.value, "isInitializing:", z.value, "isInitialized:", u.value, ")"), E;
10386
- }), A = U(() => !$.value && l.value), c = U(() => !$.value && !l.value), g = () => {
10383
+ const $ = U(() => g.value ? z.value || !u.value : !0), A = U(() => !$.value && l.value), c = U(() => !$.value && !l.value), h = () => {
10387
10384
  t("sign-in-required");
10388
10385
  };
10389
- return (E, D) => A.value ? (a(), o("div", {
10390
- key: 0,
10391
- class: be(["animate-fade-in", s.inline ? "is_inline" : ""])
10392
- }, [
10393
- je(E.$slots, "default", {
10394
- user: n(V),
10395
- signOut: n(y)
10396
- }, void 0, !0)
10397
- ], 2)) : c.value && s.showFallback ? (a(), o("div", X0, [
10398
- je(E.$slots, "fallback", { signIn: g }, () => [
10399
- e("div", { class: "signed-in-fallback" }, [
10400
- D[0] || (D[0] = Jt('<div class="signed-in-icon-container" data-v-12faa289><svg class="signed-in-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-12faa289><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" data-v-12faa289></path></svg></div><h3 class="signed-in-title" data-v-12faa289>Sign in required</h3><p class="signed-in-subtitle" data-v-12faa289>You need to be signed in to access this content.</p>', 3)),
10401
- e("button", {
10402
- onClick: g,
10403
- class: "signed-in-button"
10404
- }, " Sign in ")
10405
- ])
10406
- ], !0)
10407
- ])) : $.value ? (a(), o("div", J0, [
10408
- je(E.$slots, "loading", {}, () => [
10409
- d(n(gt), {
10410
- size: 30,
10411
- variant: "circle",
10412
- "show-particles": !0
10413
- })
10414
- ], !0)
10415
- ])) : I("", !0);
10386
+ return (H, D) => (a(), o("div", X0, [
10387
+ $.value ? (a(), o("div", J0, [
10388
+ je(H.$slots, "loading", {}, () => [
10389
+ d(n(gt), {
10390
+ size: 30,
10391
+ variant: "circle",
10392
+ "show-particles": !0
10393
+ })
10394
+ ], !0)
10395
+ ])) : A.value ? (a(), o("div", {
10396
+ key: 1,
10397
+ class: be(["animate-fade-in", s.inline ? "is_inline" : ""])
10398
+ }, [
10399
+ je(H.$slots, "default", {
10400
+ user: n(V),
10401
+ signOut: n(y)
10402
+ }, void 0, !0)
10403
+ ], 2)) : c.value && s.showFallback ? (a(), o("div", eu, [
10404
+ je(H.$slots, "fallback", { signIn: h }, () => [
10405
+ e("div", { class: "signed-in-fallback" }, [
10406
+ D[0] || (D[0] = Jt('<div class="signed-in-icon-container" data-v-9ef0aaac><svg class="signed-in-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-9ef0aaac><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" data-v-9ef0aaac></path></svg></div><h3 class="signed-in-title" data-v-9ef0aaac>Sign in required</h3><p class="signed-in-subtitle" data-v-9ef0aaac>You need to be signed in to access this content.</p>', 3)),
10407
+ e("button", {
10408
+ onClick: h,
10409
+ class: "signed-in-button"
10410
+ }, " Sign in ")
10411
+ ])
10412
+ ], !0)
10413
+ ])) : I("", !0)
10414
+ ]));
10416
10415
  }
10417
- }), tu = /* @__PURE__ */ De(eu, [["__scopeId", "data-v-12faa289"]]), Nc = /* @__PURE__ */ Ve({
10416
+ }), au = /* @__PURE__ */ De(tu, [["__scopeId", "data-v-9ef0aaac"]]), Bc = /* @__PURE__ */ Ve({
10418
10417
  __name: "StrandsConfigProvider",
10419
10418
  props: {
10420
10419
  config: {}
@@ -10425,7 +10424,7 @@ const ai = {
10425
10424
  La(r.config);
10426
10425
  }), La(r.config), (t, l) => je(t.$slots, "default");
10427
10426
  }
10428
- }), au = ["fill", "stroke", "viewBox", "aria-hidden"], Bc = /* @__PURE__ */ Ve({
10427
+ }), su = ["fill", "stroke", "viewBox", "aria-hidden"], Pc = /* @__PURE__ */ Ve({
10429
10428
  __name: "SvgIcon",
10430
10429
  props: {
10431
10430
  name: {},
@@ -10549,45 +10548,45 @@ const ai = {
10549
10548
  "aria-hidden": s.ariaHidden
10550
10549
  }, [
10551
10550
  (a(), Ce(ot(y.value)))
10552
- ], 10, au));
10551
+ ], 10, su));
10553
10552
  }
10554
- }), su = ["onKeydown", "aria-expanded"], ou = { class: "mini-profile-avatar-container" }, lu = ["src", "alt", "width", "height"], nu = {
10553
+ }), ou = ["onKeydown", "aria-expanded"], lu = { class: "mini-profile-avatar-container" }, nu = ["src", "alt", "width", "height"], iu = {
10555
10554
  key: 1,
10556
10555
  class: "mini-profile-avatar-default"
10557
- }, iu = { class: "mini-profile-content" }, ru = { class: "mini-profile-name" }, uu = { class: "mini-profile-email" }, cu = ["src", "alt", "width", "height"], du = {
10556
+ }, ru = { class: "mini-profile-content" }, uu = { class: "mini-profile-name" }, cu = { class: "mini-profile-email" }, du = ["src", "alt", "width", "height"], vu = {
10558
10557
  key: 1,
10559
10558
  class: "avatar-default"
10560
- }, vu = { key: 0 }, pu = ["onKeydown"], fu = { class: "dropdown-content" }, mu = {
10559
+ }, pu = { key: 0 }, fu = ["onKeydown"], mu = { class: "dropdown-content" }, hu = {
10561
10560
  key: 0,
10562
10561
  class: "dropdown-header"
10563
- }, hu = {
10562
+ }, gu = {
10564
10563
  key: 0,
10565
10564
  class: "dropdown-avatar-container"
10566
- }, gu = ["src", "alt"], Cu = {
10565
+ }, Cu = ["src", "alt"], yu = {
10567
10566
  key: 1,
10568
10567
  class: "dropdown-avatar-default"
10569
- }, yu = { class: "dropdown-user-details" }, ku = { class: "dropdown-user-name" }, wu = { class: "dropdown-user-email" }, bu = {
10568
+ }, ku = { class: "dropdown-user-details" }, wu = { class: "dropdown-user-name" }, bu = { class: "dropdown-user-email" }, xu = {
10570
10569
  key: 1,
10571
10570
  class: "dropdown-divider"
10572
- }, xu = ["onKeydown", "aria-expanded"], Mu = { class: "mini-profile-avatar-container" }, $u = ["src", "alt", "width", "height"], Su = {
10571
+ }, Mu = ["onKeydown", "aria-expanded"], $u = { class: "mini-profile-avatar-container" }, Su = ["src", "alt", "width", "height"], Au = {
10573
10572
  key: 1,
10574
10573
  class: "mini-profile-avatar-default"
10575
- }, Au = { class: "mini-profile-content" }, _u = { class: "mini-profile-name" }, Tu = { class: "mini-profile-email" }, zu = ["src", "alt", "width", "height"], Vu = {
10574
+ }, _u = { class: "mini-profile-content" }, Tu = { class: "mini-profile-name" }, zu = { class: "mini-profile-email" }, Vu = ["src", "alt", "width", "height"], Iu = {
10576
10575
  key: 1,
10577
10576
  class: "avatar-default"
10578
- }, Iu = { key: 0 }, Lu = ["onKeydown"], Eu = { class: "dropdown-content" }, Hu = {
10577
+ }, Lu = { key: 0 }, Eu = ["onKeydown"], Hu = { class: "dropdown-content" }, Uu = {
10579
10578
  key: 0,
10580
10579
  class: "dropdown-header"
10581
- }, Uu = {
10580
+ }, Du = {
10582
10581
  key: 0,
10583
10582
  class: "dropdown-avatar-container"
10584
- }, Du = ["src", "alt"], Nu = {
10583
+ }, Nu = ["src", "alt"], Bu = {
10585
10584
  key: 1,
10586
10585
  class: "dropdown-avatar-default"
10587
- }, Bu = { class: "dropdown-user-details" }, Pu = { class: "dropdown-user-name" }, ju = { class: "dropdown-user-email" }, Ou = {
10586
+ }, Pu = { class: "dropdown-user-details" }, ju = { class: "dropdown-user-name" }, Ou = { class: "dropdown-user-email" }, Ru = {
10588
10587
  key: 1,
10589
10588
  class: "dropdown-divider"
10590
- }, Ru = { class: "sign-in-auth-wrapper" }, Fu = /* @__PURE__ */ Ve({
10589
+ }, Fu = { class: "sign-in-auth-wrapper" }, qu = /* @__PURE__ */ Ve({
10591
10590
  __name: "StrandsUserButton",
10592
10591
  props: {
10593
10592
  hideUser: { type: Boolean, default: !1 },
@@ -10601,8 +10600,8 @@ const ai = {
10601
10600
  },
10602
10601
  emits: ["profile-updated", "signed-out", "signed-in"],
10603
10602
  setup(s, { emit: r }) {
10604
- const t = s, l = r, { currentUser: z, signOut: V, isAuthenticated: y } = ft(), k = M(!1), u = M(!1), h = M(!1), $ = M(), A = M(), c = M(), g = U(() => A.value), { floatingStyle: E, updatePosition: D } = Oa({
10605
- trigger: g,
10603
+ const t = s, l = r, { currentUser: z, signOut: V, isAuthenticated: y } = ft(), k = M(!1), u = M(!1), g = M(!1), $ = M(), A = M(), c = M(), h = U(() => A.value), { floatingStyle: H, updatePosition: D } = Oa({
10604
+ trigger: h,
10606
10605
  floating: c,
10607
10606
  placement: "bottom-end",
10608
10607
  offset: 8,
@@ -10665,9 +10664,9 @@ const ai = {
10665
10664
  l("profile-updated");
10666
10665
  }, ye = () => {
10667
10666
  }, Me = () => {
10668
- h.value = !0;
10667
+ g.value = !0;
10669
10668
  }, Ae = () => {
10670
- h.value = !1, l("signed-in");
10669
+ g.value = !1, l("signed-in");
10671
10670
  }, Se = () => {
10672
10671
  }, xe = async () => {
10673
10672
  try {
@@ -10699,7 +10698,7 @@ const ai = {
10699
10698
  "aria-expanded": k.value,
10700
10699
  "aria-label": "User menu"
10701
10700
  }, [
10702
- e("div", ou, [
10701
+ e("div", lu, [
10703
10702
  d(n(Qt), {
10704
10703
  size: N.value,
10705
10704
  value: p.value?.xp || 0,
@@ -10717,7 +10716,7 @@ const ai = {
10717
10716
  width: C.value,
10718
10717
  height: C.value,
10719
10718
  loading: "eager"
10720
- }, null, 8, lu)) : (a(), o("div", nu, [...j[3] || (j[3] = [
10719
+ }, null, 8, nu)) : (a(), o("div", iu, [...j[3] || (j[3] = [
10721
10720
  e("svg", {
10722
10721
  class: "mini-profile-avatar-icon",
10723
10722
  fill: "currentColor",
@@ -10731,9 +10730,9 @@ const ai = {
10731
10730
  ], -1)
10732
10731
  ])]))
10733
10732
  ]),
10734
- e("div", iu, [
10735
- e("div", ru, R(L.value), 1),
10736
- e("div", uu, R(p.value?.email), 1)
10733
+ e("div", ru, [
10734
+ e("div", uu, R(L.value), 1),
10735
+ e("div", cu, R(p.value?.email), 1)
10737
10736
  ]),
10738
10737
  (a(), o("svg", {
10739
10738
  class: be(["mini-profile-dropdown-arrow", { "dropdown-arrow-open": k.value }]),
@@ -10748,7 +10747,7 @@ const ai = {
10748
10747
  d: "M19 9l-7 7-7-7"
10749
10748
  }, null, -1)
10750
10749
  ])], 2))
10751
- ], 42, su)) : (a(), o("div", {
10750
+ ], 42, ou)) : (a(), o("div", {
10752
10751
  key: 1,
10753
10752
  ref_key: "triggerRef",
10754
10753
  ref: A,
@@ -10778,7 +10777,7 @@ const ai = {
10778
10777
  width: C.value,
10779
10778
  height: C.value,
10780
10779
  loading: "eager"
10781
- }, null, 8, cu)) : (a(), o("div", du, [...j[5] || (j[5] = [
10780
+ }, null, 8, du)) : (a(), o("div", vu, [...j[5] || (j[5] = [
10782
10781
  e("svg", {
10783
10782
  class: "avatar-icon",
10784
10783
  fill: "currentColor",
@@ -10808,7 +10807,7 @@ const ai = {
10808
10807
  ])], 2))
10809
10808
  ]),
10810
10809
  default: x(() => [
10811
- s.hideUser ? I("", !0) : (a(), o("span", vu, R(L.value), 1))
10810
+ s.hideUser ? I("", !0) : (a(), o("span", pu, R(L.value), 1))
10812
10811
  ]),
10813
10812
  _: 1
10814
10813
  }, 8, ["size", "active", "onKeydown", "aria-expanded"])
@@ -10819,7 +10818,7 @@ const ai = {
10819
10818
  ref_key: "dropdownRef",
10820
10819
  ref: c,
10821
10820
  class: "strands-user-dropdown",
10822
- style: Oe(n(E)),
10821
+ style: Oe(n(H)),
10823
10822
  role: "menu",
10824
10823
  "aria-orientation": "vertical",
10825
10824
  onKeydown: [
@@ -10830,9 +10829,9 @@ const ai = {
10830
10829
  Re(Be(T, ["prevent"]), ["end"])
10831
10830
  ]
10832
10831
  }, [
10833
- e("div", fu, [
10834
- s.variant !== "mini-profile" ? (a(), o("div", mu, [
10835
- p.value ? (a(), o("div", hu, [
10832
+ e("div", mu, [
10833
+ s.variant !== "mini-profile" ? (a(), o("div", hu, [
10834
+ p.value ? (a(), o("div", gu, [
10836
10835
  d(n(Qt), {
10837
10836
  size: 80,
10838
10837
  value: p.value.xp,
@@ -10849,7 +10848,7 @@ const ai = {
10849
10848
  class: "dropdown-avatar-image",
10850
10849
  width: "64",
10851
10850
  height: "64"
10852
- }, null, 8, gu)) : (a(), o("div", Cu, [...j[7] || (j[7] = [
10851
+ }, null, 8, Cu)) : (a(), o("div", yu, [...j[7] || (j[7] = [
10853
10852
  e("svg", {
10854
10853
  class: "dropdown-avatar-icon",
10855
10854
  fill: "currentColor",
@@ -10863,13 +10862,13 @@ const ai = {
10863
10862
  ], -1)
10864
10863
  ])]))
10865
10864
  ])) : I("", !0),
10866
- e("div", yu, [
10867
- e("div", ku, R(L.value), 1),
10868
- e("div", wu, R(p.value?.email), 1)
10865
+ e("div", ku, [
10866
+ e("div", wu, R(L.value), 1),
10867
+ e("div", bu, R(p.value?.email), 1)
10869
10868
  ])
10870
10869
  ])) : I("", !0),
10871
10870
  je(ne.$slots, "default", {}, void 0, !0),
10872
- s.variant !== "mini-profile" ? (a(), o("div", bu)) : I("", !0),
10871
+ s.variant !== "mini-profile" ? (a(), o("div", xu)) : I("", !0),
10873
10872
  d(n(Lt), null, {
10874
10873
  default: x(() => [
10875
10874
  d(n(Lt).Item, {
@@ -10894,7 +10893,7 @@ const ai = {
10894
10893
  _: 1
10895
10894
  })
10896
10895
  ])
10897
- ], 44, pu)) : I("", !0)
10896
+ ], 44, fu)) : I("", !0)
10898
10897
  ])),
10899
10898
  d(n(ut), {
10900
10899
  modelValue: u.value,
@@ -10910,7 +10909,7 @@ const ai = {
10910
10909
  ]),
10911
10910
  _: 1
10912
10911
  }, 8, ["modelValue"])
10913
- ], 64)) : (a(), Ce(tu, { key: 1 }, {
10912
+ ], 64)) : (a(), Ce(au, { key: 1 }, {
10914
10913
  fallback: x(() => [
10915
10914
  d(n(ce), {
10916
10915
  onClick: Me,
@@ -10937,11 +10936,11 @@ const ai = {
10937
10936
  _: 1
10938
10937
  }),
10939
10938
  d(n(ut), {
10940
- modelValue: h.value,
10941
- "onUpdate:modelValue": j[2] || (j[2] = (K) => h.value = K)
10939
+ modelValue: g.value,
10940
+ "onUpdate:modelValue": j[2] || (j[2] = (K) => g.value = K)
10942
10941
  }, {
10943
10942
  default: x(() => [
10944
- e("div", Ru, [
10943
+ e("div", Fu, [
10945
10944
  d(n(_i), {
10946
10945
  onSignedIn: Ae,
10947
10946
  onError: Se,
@@ -10978,7 +10977,7 @@ const ai = {
10978
10977
  "aria-expanded": k.value,
10979
10978
  "aria-label": "User menu"
10980
10979
  }, [
10981
- e("div", Mu, [
10980
+ e("div", $u, [
10982
10981
  d(n(Qt), {
10983
10982
  size: N.value,
10984
10983
  value: p.value?.xp || 0,
@@ -10996,7 +10995,7 @@ const ai = {
10996
10995
  width: C.value,
10997
10996
  height: C.value,
10998
10997
  loading: "eager"
10999
- }, null, 8, $u)) : (a(), o("div", Su, [...j[10] || (j[10] = [
10998
+ }, null, 8, Su)) : (a(), o("div", Au, [...j[10] || (j[10] = [
11000
10999
  e("svg", {
11001
11000
  class: "mini-profile-avatar-icon",
11002
11001
  fill: "currentColor",
@@ -11010,9 +11009,9 @@ const ai = {
11010
11009
  ], -1)
11011
11010
  ])]))
11012
11011
  ]),
11013
- e("div", Au, [
11014
- e("div", _u, R(L.value), 1),
11015
- e("div", Tu, R(p.value?.email), 1)
11012
+ e("div", _u, [
11013
+ e("div", Tu, R(L.value), 1),
11014
+ e("div", zu, R(p.value?.email), 1)
11016
11015
  ]),
11017
11016
  (a(), o("svg", {
11018
11017
  class: be(["mini-profile-dropdown-arrow", { "dropdown-arrow-open": k.value }]),
@@ -11027,7 +11026,7 @@ const ai = {
11027
11026
  d: "M19 9l-7 7-7-7"
11028
11027
  }, null, -1)
11029
11028
  ])], 2))
11030
- ], 42, xu)) : (a(), o("div", {
11029
+ ], 42, Mu)) : (a(), o("div", {
11031
11030
  key: 1,
11032
11031
  ref_key: "triggerRef",
11033
11032
  ref: A,
@@ -11057,7 +11056,7 @@ const ai = {
11057
11056
  width: C.value,
11058
11057
  height: C.value,
11059
11058
  loading: "eager"
11060
- }, null, 8, zu)) : (a(), o("div", Vu, [...j[12] || (j[12] = [
11059
+ }, null, 8, Vu)) : (a(), o("div", Iu, [...j[12] || (j[12] = [
11061
11060
  e("svg", {
11062
11061
  class: "avatar-icon",
11063
11062
  fill: "currentColor",
@@ -11087,7 +11086,7 @@ const ai = {
11087
11086
  ])], 2))
11088
11087
  ]),
11089
11088
  default: x(() => [
11090
- s.hideUser ? I("", !0) : (a(), o("span", Iu, R(L.value), 1))
11089
+ s.hideUser ? I("", !0) : (a(), o("span", Lu, R(L.value), 1))
11091
11090
  ]),
11092
11091
  _: 1
11093
11092
  }, 8, ["size", "active", "onKeydown", "aria-expanded"])
@@ -11098,7 +11097,7 @@ const ai = {
11098
11097
  ref_key: "dropdownRef",
11099
11098
  ref: c,
11100
11099
  class: "strands-user-dropdown",
11101
- style: Oe(n(E)),
11100
+ style: Oe(n(H)),
11102
11101
  role: "menu",
11103
11102
  "aria-orientation": "vertical",
11104
11103
  onKeydown: [
@@ -11109,9 +11108,9 @@ const ai = {
11109
11108
  Re(Be(T, ["prevent"]), ["end"])
11110
11109
  ]
11111
11110
  }, [
11112
- e("div", Eu, [
11113
- s.variant !== "mini-profile" ? (a(), o("div", Hu, [
11114
- p.value ? (a(), o("div", Uu, [
11111
+ e("div", Hu, [
11112
+ s.variant !== "mini-profile" ? (a(), o("div", Uu, [
11113
+ p.value ? (a(), o("div", Du, [
11115
11114
  d(n(Qt), {
11116
11115
  size: 80,
11117
11116
  value: p.value.xp,
@@ -11128,7 +11127,7 @@ const ai = {
11128
11127
  class: "dropdown-avatar-image",
11129
11128
  width: "64",
11130
11129
  height: "64"
11131
- }, null, 8, Du)) : (a(), o("div", Nu, [...j[14] || (j[14] = [
11130
+ }, null, 8, Nu)) : (a(), o("div", Bu, [...j[14] || (j[14] = [
11132
11131
  e("svg", {
11133
11132
  class: "dropdown-avatar-icon",
11134
11133
  fill: "currentColor",
@@ -11142,13 +11141,13 @@ const ai = {
11142
11141
  ], -1)
11143
11142
  ])]))
11144
11143
  ])) : I("", !0),
11145
- e("div", Bu, [
11146
- e("div", Pu, R(L.value), 1),
11147
- e("div", ju, R(p.value?.email), 1)
11144
+ e("div", Pu, [
11145
+ e("div", ju, R(L.value), 1),
11146
+ e("div", Ou, R(p.value?.email), 1)
11148
11147
  ])
11149
11148
  ])) : I("", !0),
11150
11149
  je(ne.$slots, "default", {}, void 0, !0),
11151
- s.variant !== "mini-profile" ? (a(), o("div", Ou)) : I("", !0),
11150
+ s.variant !== "mini-profile" ? (a(), o("div", Ru)) : I("", !0),
11152
11151
  d(n(Lt), null, {
11153
11152
  default: x(() => [
11154
11153
  d(n(Lt).Item, {
@@ -11173,7 +11172,7 @@ const ai = {
11173
11172
  _: 1
11174
11173
  })
11175
11174
  ])
11176
- ], 44, Lu)) : I("", !0)
11175
+ ], 44, Eu)) : I("", !0)
11177
11176
  ])),
11178
11177
  d(n(ut), {
11179
11178
  modelValue: u.value,
@@ -11194,7 +11193,7 @@ const ai = {
11194
11193
  }))
11195
11194
  ], 512));
11196
11195
  }
11197
- }), Pc = /* @__PURE__ */ De(Fu, [["__scopeId", "data-v-28bdd12c"]]), qu = /* @__PURE__ */ Ve({
11196
+ }), jc = /* @__PURE__ */ De(qu, [["__scopeId", "data-v-28bdd12c"]]), Zu = /* @__PURE__ */ Ve({
11198
11197
  __name: "StrandsNav",
11199
11198
  props: {
11200
11199
  direction: { default: "column" }
@@ -11208,10 +11207,10 @@ const ai = {
11208
11207
  });
11209
11208
  Xt("userNavState", z);
11210
11209
  const V = (k) => {
11211
- const u = z.items.findIndex((h) => h.id === k.id);
11210
+ const u = z.items.findIndex((g) => g.id === k.id);
11212
11211
  u >= 0 ? z.items[u] = k : z.items.push(k);
11213
11212
  }, y = (k) => {
11214
- const u = z.items.findIndex((h) => h.id === k);
11213
+ const u = z.items.findIndex((g) => g.id === k);
11215
11214
  u >= 0 && z.items.splice(u, 1);
11216
11215
  };
11217
11216
  return Xt("registerNavItem", V), Xt("unregisterNavItem", y), r({
@@ -11222,19 +11221,19 @@ const ai = {
11222
11221
  je(k.$slots, "default", {}, void 0, !0)
11223
11222
  ], 2));
11224
11223
  }
11225
- }), Zu = /* @__PURE__ */ De(qu, [["__scopeId", "data-v-dfb31e47"]]), Ku = {
11224
+ }), Ku = /* @__PURE__ */ De(Zu, [["__scopeId", "data-v-dfb31e47"]]), Gu = {
11226
11225
  key: 0,
11227
11226
  class: "strands-nav-item-icon",
11228
11227
  fill: "none",
11229
11228
  stroke: "currentColor",
11230
11229
  viewBox: "0 0 24 24"
11231
- }, Gu = ["d"], Yu = {
11230
+ }, Yu = ["d"], Wu = {
11232
11231
  key: 0,
11233
11232
  class: "strands-nav-item-icon",
11234
11233
  fill: "none",
11235
11234
  stroke: "currentColor",
11236
11235
  viewBox: "0 0 24 24"
11237
- }, Wu = ["d"], Qu = /* @__PURE__ */ Ve({
11236
+ }, Qu = ["d"], Xu = /* @__PURE__ */ Ve({
11238
11237
  __name: "StrandsNavItem",
11239
11238
  props: {
11240
11239
  variant: { default: "primary" },
@@ -11258,33 +11257,33 @@ const ai = {
11258
11257
  setup(s) {
11259
11258
  const r = s, t = ga(), l = ma("registerNavItem"), z = ma("unregisterNavItem"), V = M(`nav-item-${Math.random().toString(36).substring(2, 11)}`), y = os(), k = U(() => {
11260
11259
  if (typeof window < "u" && y) {
11261
- const g = y.vnode.el?.parentElement;
11262
- if (g)
11263
- return g.closest('[role="menu"]') !== null;
11260
+ const h = y.vnode.el?.parentElement;
11261
+ if (h)
11262
+ return h.closest('[role="menu"]') !== null;
11264
11263
  }
11265
11264
  return !1;
11266
11265
  }), u = () => {
11267
11266
  try {
11268
- const g = t.default?.();
11269
- return g ? g.map((E) => typeof E.children == "string" ? E.children : E.children && Array.isArray(E.children) ? E.children.map(
11267
+ const h = t.default?.();
11268
+ return h ? h.map((H) => typeof H.children == "string" ? H.children : H.children && Array.isArray(H.children) ? H.children.map(
11270
11269
  (D) => typeof D == "string" ? D : ""
11271
11270
  ).join("") : "").join("").trim() : "";
11272
11271
  } catch {
11273
11272
  return "";
11274
11273
  }
11275
- }, h = () => r.type === "button" ? "" : [
11274
+ }, g = () => r.type === "button" ? "" : [
11276
11275
  "strands-nav-item",
11277
11276
  `strands-nav-item--color-${r.color}`,
11278
11277
  { "strands-nav-item--disabled": r.disabled }
11279
11278
  ], $ = () => {
11280
11279
  r.disabled;
11281
- }, A = (g) => {
11282
- const E = {
11280
+ }, A = (h) => {
11281
+ const H = {
11283
11282
  dashboard: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6",
11284
11283
  settings: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",
11285
11284
  help: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
11286
11285
  };
11287
- return E[g] || E.dashboard;
11286
+ return H[h] || H.dashboard;
11288
11287
  }, c = U(() => ({
11289
11288
  id: V.value,
11290
11289
  label: u(),
@@ -11300,10 +11299,10 @@ const ai = {
11300
11299
  z && z(V.value);
11301
11300
  }), Le(() => [r.to, r.icon, r.disabled], () => {
11302
11301
  l && l(c.value);
11303
- }, { deep: !0 }), (g, E) => (a(), Ce(n(ce), {
11302
+ }, { deep: !0 }), (h, H) => (a(), Ce(n(ce), {
11304
11303
  to: r.to,
11305
11304
  onClick: $,
11306
- class: be(h()),
11305
+ class: be(g()),
11307
11306
  variant: r.variant,
11308
11307
  color: r.color,
11309
11308
  size: r.size,
@@ -11314,37 +11313,37 @@ const ai = {
11314
11313
  tabindex: "-1"
11315
11314
  }, Zt({
11316
11315
  default: x(() => [
11317
- r.icon && r.type !== "button" ? (a(), o("svg", Yu, [
11316
+ r.icon && r.type !== "button" ? (a(), o("svg", Wu, [
11318
11317
  e("path", {
11319
11318
  "stroke-linecap": "round",
11320
11319
  "stroke-linejoin": "round",
11321
11320
  "stroke-width": "2",
11322
11321
  d: A(r.icon)
11323
- }, null, 8, Wu)
11322
+ }, null, 8, Qu)
11324
11323
  ])) : I("", !0),
11325
- je(g.$slots, "default")
11324
+ je(h.$slots, "default")
11326
11325
  ]),
11327
11326
  _: 2
11328
11327
  }, [
11329
11328
  r.type === "button" ? {
11330
11329
  name: "icon",
11331
11330
  fn: x(() => [
11332
- r.icon ? (a(), o("svg", Ku, [
11331
+ r.icon ? (a(), o("svg", Gu, [
11333
11332
  e("path", {
11334
11333
  "stroke-linecap": "round",
11335
11334
  "stroke-linejoin": "round",
11336
11335
  "stroke-width": "2",
11337
11336
  d: A(r.icon)
11338
- }, null, 8, Gu)
11337
+ }, null, 8, Yu)
11339
11338
  ])) : I("", !0)
11340
11339
  ]),
11341
11340
  key: "0"
11342
11341
  } : void 0
11343
11342
  ]), 1032, ["to", "class", "variant", "color", "size", "squircle", "disabled", "role"]));
11344
11343
  }
11345
- }), Lt = Zu;
11346
- Lt.Item = Qu;
11347
- const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11344
+ }), Lt = Ku;
11345
+ Lt.Item = Xu;
11346
+ const Ju = { class: "accui-p-2 accui-border-b" }, ec = /* @__PURE__ */ Ve({
11348
11347
  __name: "VirtualList",
11349
11348
  props: {
11350
11349
  items: {},
@@ -11355,40 +11354,40 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11355
11354
  },
11356
11355
  setup(s, { expose: r }) {
11357
11356
  const t = s, l = M(), z = M(0), V = U(() => {
11358
- const c = Math.floor(z.value / t.itemHeight), g = Math.min(
11357
+ const c = Math.floor(z.value / t.itemHeight), h = Math.min(
11359
11358
  c + Math.ceil(t.containerHeight / t.itemHeight),
11360
11359
  t.items.length - 1
11361
11360
  );
11362
11361
  return {
11363
11362
  start: Math.max(0, c - t.overscan),
11364
- end: Math.min(t.items.length - 1, g + t.overscan)
11363
+ end: Math.min(t.items.length - 1, h + t.overscan)
11365
11364
  };
11366
11365
  }), y = U(() => {
11367
- const { start: c, end: g } = V.value, E = [];
11368
- for (let D = c; D <= g; D++)
11369
- E.push({
11366
+ const { start: c, end: h } = V.value, H = [];
11367
+ for (let D = c; D <= h; D++)
11368
+ H.push({
11370
11369
  index: D,
11371
11370
  data: t.items[D],
11372
11371
  top: D * t.itemHeight
11373
11372
  });
11374
- return E;
11373
+ return H;
11375
11374
  }), k = U(() => t.items.length * t.itemHeight), u = (c) => typeof t.itemKey == "function" ? t.itemKey(c) : c[t.itemKey] || c.id || Math.random();
11376
- let h = null;
11375
+ let g = null;
11377
11376
  const $ = (c) => {
11378
- h && clearTimeout(h), h = setTimeout(() => {
11379
- const g = c.target;
11380
- z.value = g.scrollTop;
11377
+ g && clearTimeout(g), g = setTimeout(() => {
11378
+ const h = c.target;
11379
+ z.value = h.scrollTop;
11381
11380
  }, 16);
11382
11381
  };
11383
11382
  return xt(() => {
11384
- h && clearTimeout(h);
11383
+ g && clearTimeout(g);
11385
11384
  }), r({
11386
- scrollToItem: (c, g = "start") => {
11385
+ scrollToItem: (c, h = "start") => {
11387
11386
  if (!l.value) return;
11388
- let E = c * t.itemHeight;
11389
- g === "center" ? E -= t.containerHeight / 2 - t.itemHeight / 2 : g === "end" && (E -= t.containerHeight - t.itemHeight), l.value.scrollTop = Math.max(0, E);
11387
+ let H = c * t.itemHeight;
11388
+ h === "center" ? H -= t.containerHeight / 2 - t.itemHeight / 2 : h === "end" && (H -= t.containerHeight - t.itemHeight), l.value.scrollTop = Math.max(0, H);
11390
11389
  }
11391
- }), (c, g) => (a(), o("div", {
11390
+ }), (c, h) => (a(), o("div", {
11392
11391
  ref_key: "scrollContainer",
11393
11392
  ref: l,
11394
11393
  style: Oe({ height: s.containerHeight + "px", overflowY: "auto" }),
@@ -11398,40 +11397,40 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11398
11397
  e("div", {
11399
11398
  style: Oe({ height: k.value + "px", position: "relative" })
11400
11399
  }, [
11401
- (a(!0), o(Ue, null, Ke(y.value, (E) => (a(), o("div", {
11402
- key: u(E.data),
11400
+ (a(!0), o(Ue, null, Ke(y.value, (H) => (a(), o("div", {
11401
+ key: u(H.data),
11403
11402
  style: Oe({
11404
11403
  position: "absolute",
11405
- top: E.top + "px",
11404
+ top: H.top + "px",
11406
11405
  left: 0,
11407
11406
  right: 0,
11408
11407
  height: s.itemHeight + "px"
11409
11408
  })
11410
11409
  }, [
11411
11410
  je(c.$slots, "default", {
11412
- item: E.data,
11413
- index: E.index
11411
+ item: H.data,
11412
+ index: H.index
11414
11413
  }, () => [
11415
- e("div", Xu, R(JSON.stringify(E.data)), 1)
11414
+ e("div", Ju, R(JSON.stringify(H.data)), 1)
11416
11415
  ], !0)
11417
11416
  ], 4))), 128))
11418
11417
  ], 4)
11419
11418
  ], 36));
11420
11419
  }
11421
- }), jc = /* @__PURE__ */ De(Ju, [["__scopeId", "data-v-1561f0b5"]]), Oc = () => {
11422
- }, ec = { class: "accui-component-scope" }, tc = { class: "mfa-setup-header" }, ac = { class: "mfa-setup-status-container" }, sc = { class: "mfa-setup-content" }, oc = {
11420
+ }), Oc = /* @__PURE__ */ De(ec, [["__scopeId", "data-v-1561f0b5"]]), Rc = () => {
11421
+ }, tc = { class: "accui-component-scope" }, ac = { class: "mfa-setup-header" }, sc = { class: "mfa-setup-status-container" }, oc = { class: "mfa-setup-content" }, lc = {
11423
11422
  key: 0,
11424
11423
  class: "mfa-setup-loading"
11425
- }, lc = {
11424
+ }, nc = {
11426
11425
  key: 1,
11427
11426
  class: "mfa-setup-sections"
11428
- }, nc = {
11427
+ }, ic = {
11429
11428
  key: 0,
11430
11429
  class: "mfa-setup-status-alert"
11431
- }, ic = { class: "mfa-setup-status-content" }, rc = { class: "mfa-setup-status-icon" }, uc = { class: "mfa-setup-methods-grid" }, cc = { class: "mfa-setup-method-content" }, dc = { class: "mfa-setup-method-icon mfa-setup-totp-icon" }, vc = { class: "mfa-setup-method-content" }, pc = { class: "mfa-setup-method-icon mfa-setup-email-icon" }, fc = {
11430
+ }, rc = { class: "mfa-setup-status-content" }, uc = { class: "mfa-setup-status-icon" }, cc = { class: "mfa-setup-methods-grid" }, dc = { class: "mfa-setup-method-content" }, vc = { class: "mfa-setup-method-icon mfa-setup-totp-icon" }, pc = { class: "mfa-setup-method-content" }, fc = { class: "mfa-setup-method-icon mfa-setup-email-icon" }, mc = {
11432
11431
  key: 1,
11433
11432
  class: "mfa-setup-manage-section"
11434
- }, mc = { class: "mfa-setup-manage-header" }, hc = { class: "mfa-setup-manage-description" }, gc = { class: "mfa-setup-footer" }, Cc = /* @__PURE__ */ Ve({
11433
+ }, hc = { class: "mfa-setup-manage-header" }, gc = { class: "mfa-setup-manage-description" }, Cc = { class: "mfa-setup-footer" }, yc = /* @__PURE__ */ Ve({
11435
11434
  __name: "StrandsMFASetup",
11436
11435
  props: {
11437
11436
  show: { type: Boolean, default: !1 }
@@ -11515,7 +11514,7 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11515
11514
  }
11516
11515
  }, y = s, k = r, {
11517
11516
  mfaEnabled: u,
11518
- loading: h,
11517
+ loading: g,
11519
11518
  activeMfaDevices: $,
11520
11519
  fetchMfaDevices: A
11521
11520
  } = Tt(), c = U({
@@ -11523,7 +11522,7 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11523
11522
  set: (q) => {
11524
11523
  q || k("close");
11525
11524
  }
11526
- }), g = M(!1), E = M(!1), D = M(!1), C = M(!1);
11525
+ }), h = M(!1), H = M(!1), D = M(!1), C = M(!1);
11527
11526
  Le(() => y.show, async (q) => {
11528
11527
  q && await A();
11529
11528
  }), We(async () => {
@@ -11532,29 +11531,29 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11532
11531
  const N = () => {
11533
11532
  k("close");
11534
11533
  }, p = () => {
11535
- g.value = !0;
11534
+ h.value = !0;
11536
11535
  }, L = () => {
11537
- E.value = !0;
11536
+ H.value = !0;
11538
11537
  }, O = () => {
11539
11538
  C.value = !0;
11540
11539
  }, S = async () => {
11541
- g.value = !1, E.value = !1, D.value = !1, await A(), k("success");
11540
+ h.value = !1, H.value = !1, D.value = !1, await A(), k("success");
11542
11541
  }, w = async () => {
11543
11542
  await A();
11544
11543
  };
11545
- return (q, Z) => (a(), o("div", ec, [
11544
+ return (q, Z) => (a(), o("div", tc, [
11546
11545
  d(ut, {
11547
11546
  modelValue: c.value,
11548
11547
  "onUpdate:modelValue": Z[0] || (Z[0] = (b) => c.value = b),
11549
11548
  "card-class": "mfa-setup-modal"
11550
11549
  }, {
11551
11550
  header: x(() => [
11552
- e("div", tc, [
11551
+ e("div", ac, [
11553
11552
  Z[5] || (Z[5] = e("div", null, [
11554
11553
  e("h2", { class: "mfa-setup-title" }, "Two-Factor Authentication"),
11555
11554
  e("p", { class: "mfa-setup-subtitle" }, "Add extra security to your account")
11556
11555
  ], -1)),
11557
- e("div", ac, [
11556
+ e("div", sc, [
11558
11557
  e("span", {
11559
11558
  class: be(["mfa-setup-status-badge", n(u) || n($).length > 0 ? "mfa-setup-status-enabled" : "mfa-setup-status-disabled"])
11560
11559
  }, R(n(u) || n($).length > 0 ? "Enabled" : "Not Enabled"), 3)
@@ -11562,11 +11561,11 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11562
11561
  ])
11563
11562
  ]),
11564
11563
  footer: x(() => [
11565
- e("div", gc, [
11564
+ e("div", Cc, [
11566
11565
  d(n(ce), {
11567
11566
  variant: "secondary",
11568
11567
  onClick: N,
11569
- disabled: n(h)
11568
+ disabled: n(g)
11570
11569
  }, {
11571
11570
  default: x(() => [...Z[15] || (Z[15] = [
11572
11571
  Q(" Cancel ", -1)
@@ -11576,14 +11575,14 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11576
11575
  ])
11577
11576
  ]),
11578
11577
  default: x(() => [
11579
- e("div", sc, [
11580
- n(h) ? (a(), o("div", oc, [
11578
+ e("div", oc, [
11579
+ n(g) ? (a(), o("div", lc, [
11581
11580
  d(n(gt), { size: 32 }),
11582
11581
  Z[6] || (Z[6] = e("span", { class: "mfa-setup-loading-text" }, "Loading MFA settings...", -1))
11583
- ])) : (a(), o("div", lc, [
11584
- n(u) || n($).length > 0 ? (a(), o("div", nc, [
11585
- e("div", ic, [
11586
- e("div", rc, [
11582
+ ])) : (a(), o("div", nc, [
11583
+ n(u) || n($).length > 0 ? (a(), o("div", ic, [
11584
+ e("div", rc, [
11585
+ e("div", uc, [
11587
11586
  d(z, {
11588
11587
  size: 20,
11589
11588
  class: "mfa-setup-shield-icon"
@@ -11597,13 +11596,13 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11597
11596
  ])) : I("", !0),
11598
11597
  e("div", null, [
11599
11598
  Z[12] || (Z[12] = e("h3", { class: "mfa-setup-methods-title" }, "Choose Your Authentication Method", -1)),
11600
- e("div", uc, [
11599
+ e("div", cc, [
11601
11600
  e("div", {
11602
11601
  class: "mfa-setup-method-card",
11603
11602
  onClick: p
11604
11603
  }, [
11605
- e("div", cc, [
11606
- e("div", dc, [
11604
+ e("div", dc, [
11605
+ e("div", vc, [
11607
11606
  d(t, {
11608
11607
  size: 28,
11609
11608
  class: "mfa-setup-icon-svg"
@@ -11617,7 +11616,7 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11617
11616
  variant: "primary",
11618
11617
  size: "md",
11619
11618
  onClick: Be(p, ["stop"]),
11620
- disabled: n(h),
11619
+ disabled: n(g),
11621
11620
  class: "mfa-setup-method-button"
11622
11621
  }, {
11623
11622
  default: x(() => [...Z[8] || (Z[8] = [
@@ -11631,8 +11630,8 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11631
11630
  class: "mfa-setup-method-card",
11632
11631
  onClick: L
11633
11632
  }, [
11634
- e("div", vc, [
11635
- e("div", pc, [
11633
+ e("div", pc, [
11634
+ e("div", fc, [
11636
11635
  d(l, {
11637
11636
  size: 28,
11638
11637
  class: "mfa-setup-icon-svg"
@@ -11646,7 +11645,7 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11646
11645
  variant: "primary",
11647
11646
  size: "md",
11648
11647
  onClick: Be(L, ["stop"]),
11649
- disabled: n(h),
11648
+ disabled: n(g),
11650
11649
  class: "mfa-setup-method-button"
11651
11650
  }, {
11652
11651
  default: x(() => [...Z[10] || (Z[10] = [
@@ -11658,17 +11657,17 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11658
11657
  ])
11659
11658
  ])
11660
11659
  ]),
11661
- n($).length > 0 ? (a(), o("div", fc, [
11662
- e("div", mc, [
11660
+ n($).length > 0 ? (a(), o("div", mc, [
11661
+ e("div", hc, [
11663
11662
  e("div", null, [
11664
11663
  Z[13] || (Z[13] = e("h3", { class: "mfa-setup-manage-title" }, "Manage Existing Methods", -1)),
11665
- e("p", hc, R(n($).length) + " device(s) currently active", 1)
11664
+ e("p", gc, R(n($).length) + " device(s) currently active", 1)
11666
11665
  ]),
11667
11666
  d(n(ce), {
11668
11667
  variant: "secondary",
11669
11668
  size: "md",
11670
11669
  onClick: O,
11671
- disabled: n(h)
11670
+ disabled: n(g)
11672
11671
  }, {
11673
11672
  default: x(() => [
11674
11673
  d(V, {
@@ -11686,16 +11685,16 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11686
11685
  ]),
11687
11686
  _: 1
11688
11687
  }, 8, ["modelValue"]),
11689
- g.value ? (a(), Ce(Ga, {
11688
+ h.value ? (a(), Ce(Ga, {
11690
11689
  key: 0,
11691
- show: g.value,
11692
- onClose: Z[1] || (Z[1] = (b) => g.value = !1),
11690
+ show: h.value,
11691
+ onClose: Z[1] || (Z[1] = (b) => h.value = !1),
11693
11692
  onSuccess: S
11694
11693
  }, null, 8, ["show"])) : I("", !0),
11695
- E.value ? (a(), Ce(Ya, {
11694
+ H.value ? (a(), Ce(Ya, {
11696
11695
  key: 1,
11697
- show: E.value,
11698
- onClose: Z[2] || (Z[2] = (b) => E.value = !1),
11696
+ show: H.value,
11697
+ onClose: Z[2] || (Z[2] = (b) => H.value = !1),
11699
11698
  onSuccess: S
11700
11699
  }, null, 8, ["show"])) : I("", !0),
11701
11700
  D.value ? (a(), Ce(Aa, {
@@ -11712,19 +11711,19 @@ const Xu = { class: "accui-p-2 accui-border-b" }, Ju = /* @__PURE__ */ Ve({
11712
11711
  }, null, 8, ["show"])) : I("", !0)
11713
11712
  ]));
11714
11713
  }
11715
- }), Rc = /* @__PURE__ */ De(Cc, [["__scopeId", "data-v-5e4af8e5"]]);
11714
+ }), Fc = /* @__PURE__ */ De(yc, [["__scopeId", "data-v-5e4af8e5"]]);
11716
11715
  function Gt() {
11717
11716
  const { config: s } = pt(), { currentSession: r, refreshToken: t, getAuthHeaders: l } = ft(), z = async ($, A = {}) => {
11718
11717
  const {
11719
11718
  autoRefresh: c = !0,
11720
- requireAuth: g = !0,
11721
- baseURL: E,
11719
+ requireAuth: h = !0,
11720
+ baseURL: H,
11722
11721
  ...D
11723
11722
  } = A;
11724
- if (g && !r.value?.accessToken)
11723
+ if (h && !r.value?.accessToken)
11725
11724
  throw new Error("User is not authenticated");
11726
11725
  let C = $;
11727
- const N = E || s.value.baseUrl;
11726
+ const N = H || s.value.baseUrl;
11728
11727
  N && typeof $ == "string" && !$.startsWith("http") && (C = new URL($, N).toString());
11729
11728
  const p = new Headers(D.headers);
11730
11729
  if (r.value?.accessToken)
@@ -11734,7 +11733,7 @@ function Gt() {
11734
11733
  p.set(w, q);
11735
11734
  });
11736
11735
  } catch (S) {
11737
- if (console.warn("[Strands Auth] Failed to get auth headers:", S), g)
11736
+ if (console.warn("[Strands Auth] Failed to get auth headers:", S), h)
11738
11737
  throw S;
11739
11738
  }
11740
11739
  const L = {
@@ -11759,36 +11758,36 @@ function Gt() {
11759
11758
  authenticatedFetch: z,
11760
11759
  get: ($, A) => z($, { ...A, method: "GET" }),
11761
11760
  post: ($, A, c) => {
11762
- const g = new Headers(c?.headers);
11763
- return A && typeof A == "object" && !g.has("Content-Type") && g.set("Content-Type", "application/json"), z($, {
11761
+ const h = new Headers(c?.headers);
11762
+ return A && typeof A == "object" && !h.has("Content-Type") && h.set("Content-Type", "application/json"), z($, {
11764
11763
  ...c,
11765
11764
  method: "POST",
11766
- headers: g,
11765
+ headers: h,
11767
11766
  body: typeof A == "object" ? JSON.stringify(A) : A
11768
11767
  });
11769
11768
  },
11770
11769
  put: ($, A, c) => {
11771
- const g = new Headers(c?.headers);
11772
- return A && typeof A == "object" && !g.has("Content-Type") && g.set("Content-Type", "application/json"), z($, {
11770
+ const h = new Headers(c?.headers);
11771
+ return A && typeof A == "object" && !h.has("Content-Type") && h.set("Content-Type", "application/json"), z($, {
11773
11772
  ...c,
11774
11773
  method: "PUT",
11775
- headers: g,
11774
+ headers: h,
11776
11775
  body: typeof A == "object" ? JSON.stringify(A) : A
11777
11776
  });
11778
11777
  },
11779
11778
  delete: ($, A) => z($, { ...A, method: "DELETE" }),
11780
11779
  patch: ($, A, c) => {
11781
- const g = new Headers(c?.headers);
11782
- return A && typeof A == "object" && !g.has("Content-Type") && g.set("Content-Type", "application/json"), z($, {
11780
+ const h = new Headers(c?.headers);
11781
+ return A && typeof A == "object" && !h.has("Content-Type") && h.set("Content-Type", "application/json"), z($, {
11783
11782
  ...c,
11784
11783
  method: "PATCH",
11785
- headers: g,
11784
+ headers: h,
11786
11785
  body: typeof A == "object" ? JSON.stringify(A) : A
11787
11786
  });
11788
11787
  }
11789
11788
  };
11790
11789
  }
11791
- const Fc = {
11790
+ const qc = {
11792
11791
  get: async (s, r) => {
11793
11792
  const { get: t } = Gt();
11794
11793
  return t(s, r);
@@ -11809,120 +11808,120 @@ const Fc = {
11809
11808
  const { patch: l } = Gt();
11810
11809
  return l(s, r, t);
11811
11810
  }
11812
- }, qc = (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s), Zc = (s) => {
11811
+ }, Zc = (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s), Kc = (s) => {
11813
11812
  const r = [];
11814
11813
  let t = 0;
11815
11814
  s.length < 8 ? r.push("Password must be at least 8 characters long") : t += 1, /[A-Z]/.test(s) ? t += 1 : r.push("Password must contain at least one uppercase letter"), /[a-z]/.test(s) ? t += 1 : r.push("Password must contain at least one lowercase letter"), /\d/.test(s) ? t += 1 : r.push("Password must contain at least one number"), /[!@#$%^&*(),.?":{}|<>]/.test(s) ? t += 1 : r.push("Password must contain at least one special character");
11816
11815
  const l = r.length === 0;
11817
11816
  let z = "weak";
11818
11817
  return t >= 4 ? z = "strong" : t >= 3 && (z = "medium"), { isValid: l, strength: z, errors: r };
11819
- }, Kc = (s) => s.trim().length >= 2, Gc = (s) => s.trim().length > 0, Yc = (s, r) => s === r, Wc = (s, r) => {
11818
+ }, Gc = (s) => s.trim().length >= 2, Yc = (s) => s.trim().length > 0, Wc = (s, r) => s === r, Qc = (s, r) => {
11820
11819
  const t = s?.charAt(0).toUpperCase() || "", l = r?.charAt(0).toUpperCase() || "";
11821
11820
  return t + l || "U";
11822
- }, Qc = (s) => (typeof s == "string" ? new Date(s) : s).toLocaleDateString("en-US", {
11821
+ }, Xc = (s) => (typeof s == "string" ? new Date(s) : s).toLocaleDateString("en-US", {
11823
11822
  year: "numeric",
11824
11823
  month: "long",
11825
11824
  day: "numeric"
11826
- }), Xc = (s, r) => {
11825
+ }), Jc = (s, r) => {
11827
11826
  let t;
11828
11827
  return (...l) => {
11829
11828
  clearTimeout(t), t = setTimeout(() => s(...l), r);
11830
11829
  };
11831
11830
  };
11832
11831
  export {
11833
- Fc as $authFetch,
11832
+ qc as $authFetch,
11834
11833
  Ii as IconGithub,
11835
11834
  zi as IconGoogle,
11836
- tu as SignedIn,
11835
+ au as SignedIn,
11837
11836
  _i as StrandsAuth,
11838
11837
  n3 as StrandsBackupCodesModal,
11839
- Uc as StrandsCompleteSignUp,
11840
- Nc as StrandsConfigProvider,
11838
+ Dc as StrandsCompleteSignUp,
11839
+ Bc as StrandsConfigProvider,
11841
11840
  v3 as StrandsConfirmModal,
11842
11841
  Ya as StrandsEmailMfaSetupModal,
11843
11842
  Aa as StrandsHardwareKeySetupModal,
11844
11843
  ha as StrandsLogo,
11845
- Rc as StrandsMFASetup,
11844
+ Fc as StrandsMFASetup,
11846
11845
  Wa as StrandsMfaModal,
11847
11846
  Ka as StrandsMfaVerification,
11848
11847
  Lt as StrandsNav,
11849
- Qu as StrandsNavItem,
11850
- Dc as StrandsPasswordReset,
11848
+ Xu as StrandsNavItem,
11849
+ Nc as StrandsPasswordReset,
11851
11850
  Et as StrandsSecuredFooter,
11852
11851
  K4 as StrandsSessionsModal,
11853
11852
  v4 as StrandsSettingsModal,
11854
- Ec as StrandsSignIn,
11855
- Hc as StrandsSignUp,
11853
+ Hc as StrandsSignIn,
11854
+ Uc as StrandsSignUp,
11856
11855
  Ga as StrandsTotpSetupModal,
11857
- td as StrandsUIPlugin,
11856
+ ad as StrandsUIPlugin,
11858
11857
  Ht as StrandsUiAlert,
11859
- xc as StrandsUiApp,
11858
+ Mc as StrandsUiApp,
11860
11859
  Rs as StrandsUiAvatarEditor,
11861
11860
  ce as StrandsUiButton,
11862
11861
  _t as StrandsUiCard,
11863
- Ic as StrandsUiCheckboxGroup,
11864
- Sc as StrandsUiColorPicker,
11862
+ Lc as StrandsUiCheckboxGroup,
11863
+ Ac as StrandsUiColorPicker,
11865
11864
  xa as StrandsUiDivider,
11866
- _c as StrandsUiHero,
11865
+ Tc as StrandsUiHero,
11867
11866
  Ze as StrandsUiInput,
11868
11867
  Qt as StrandsUiLevelProgress,
11869
11868
  mt as StrandsUiLink,
11870
11869
  gt as StrandsUiLoader,
11871
11870
  ut as StrandsUiModal,
11872
- Lc as StrandsUiPill,
11873
- Vc as StrandsUiRadioGroup,
11874
- zc as StrandsUiSlider,
11875
- Ac as StrandsUiTable,
11871
+ Ec as StrandsUiPill,
11872
+ Ic as StrandsUiRadioGroup,
11873
+ Vc as StrandsUiSlider,
11874
+ _c as StrandsUiTable,
11876
11875
  Ra as StrandsUiTabs,
11877
- Tc as StrandsUiThemeToggle,
11876
+ zc as StrandsUiThemeToggle,
11878
11877
  Ua as StrandsUiToggle,
11879
11878
  Yt as StrandsUiTooltip,
11880
- Pc as StrandsUserButton,
11879
+ jc as StrandsUserButton,
11881
11880
  ja as StrandsUserProfile,
11882
- Bc as SvgIcon,
11881
+ Pc as SvgIcon,
11883
11882
  Ht as UiAlert,
11884
- xc as UiApp,
11883
+ Mc as UiApp,
11885
11884
  Rs as UiAvatarEditor,
11886
11885
  Rs as UiAvatarEditorSimple,
11887
11886
  ce as UiButton,
11888
11887
  _t as UiCard,
11889
- Ic as UiCheckboxGroup,
11890
- Sc as UiColorPicker,
11888
+ Lc as UiCheckboxGroup,
11889
+ Ac as UiColorPicker,
11891
11890
  xa as UiDivider,
11892
- _c as UiHero,
11891
+ Tc as UiHero,
11893
11892
  Ze as UiInput,
11894
11893
  Qt as UiLevelProgress,
11895
11894
  mt as UiLink,
11896
11895
  gt as UiLoader,
11897
11896
  ut as UiModal,
11898
- Lc as UiPill,
11899
- Vc as UiRadioGroup,
11900
- zc as UiSlider,
11901
- Ac as UiTable,
11897
+ Ec as UiPill,
11898
+ Ic as UiRadioGroup,
11899
+ Vc as UiSlider,
11900
+ _c as UiTable,
11902
11901
  Ra as UiTabs,
11903
- Tc as UiThemeToggle,
11902
+ zc as UiThemeToggle,
11904
11903
  Ua as UiToggle,
11905
11904
  Yt as UiTooltip,
11906
- jc as VirtualList,
11907
- Xc as debounce,
11908
- Qc as formatDate,
11909
- Wc as getInitials,
11910
- Gc as isRequired,
11911
- qc as isValidEmail,
11912
- Kc as isValidName,
11913
- Yc as passwordsMatch,
11914
- Oc as preloadCriticalComponents,
11905
+ Oc as VirtualList,
11906
+ Jc as debounce,
11907
+ Xc as formatDate,
11908
+ Qc as getInitials,
11909
+ Yc as isRequired,
11910
+ Zc as isValidEmail,
11911
+ Gc as isValidName,
11912
+ Wc as passwordsMatch,
11913
+ Rc as preloadCriticalComponents,
11915
11914
  La as provideStrandsConfig,
11916
- sd as setStrandsConfig,
11915
+ od as setStrandsConfig,
11917
11916
  Co as tailwindColors,
11918
11917
  Gt as useAuthenticatedFetch,
11919
11918
  Oa as useFloatingPosition,
11920
- $c as useGlobalModalStack,
11919
+ Sc as useGlobalModalStack,
11921
11920
  uo as useModalStack,
11922
- Mc as useModalTeleport,
11921
+ $c as useModalTeleport,
11923
11922
  za as useOAuthProviders,
11924
11923
  ft as useStrandsAuth,
11925
11924
  pt as useStrandsConfig,
11926
11925
  sl as useTheme,
11927
- Zc as validatePassword
11926
+ Kc as validatePassword
11928
11927
  };