@craftile/editor 0.8.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { provide as pr, inject as tn, computed as _, toValue as ge, onMounted as ao, onBeforeUnmount as gr, nextTick as hr, shallowRef as Pn, watch as pt, onUnmounted as mr, defineComponent as R, cloneVNode as vr, Fragment as nn, h as Tn, getCurrentInstance as yr, ref as gt, createBlock as D, openBlock as P, unref as v, mergeProps as $, withCtx as S, renderSlot as N, createCommentVNode as Ee, normalizeProps as on, guardReactiveProps as rn, createElementBlock as G, renderList as lo, toDisplayString as Me, useId as sn, mergeDefaults as co, useSlots as br, createTextVNode as Ye, normalizeClass as Gt, createElementVNode as z, markRaw as tt, createVNode as Y, resolveDynamicComponent as ct } from "vue";
1
+ import { provide as pr, inject as tn, computed as _, toValue as ge, onMounted as ao, onBeforeUnmount as gr, nextTick as hr, shallowRef as Pn, watch as pt, onUnmounted as mr, defineComponent as R, cloneVNode as vr, Fragment as nn, h as Tn, getCurrentInstance as yr, ref as gt, createBlock as D, openBlock as P, unref as v, mergeProps as $, withCtx as S, renderSlot as N, createCommentVNode as he, normalizeProps as on, guardReactiveProps as rn, createElementBlock as G, renderList as lo, toDisplayString as Ae, useId as sn, mergeDefaults as co, useSlots as br, createTextVNode as Ye, normalizeClass as Gt, createElementVNode as z, markRaw as tt, createVNode as Y, resolveDynamicComponent as ct } from "vue";
2
2
  const uo = Symbol.for("craftile-editor"), le = (e) => {
3
3
  const t = Symbol(e);
4
4
  return [(r) => pr(t, r), (r) => tn(t, r), t];
@@ -6,19 +6,19 @@ const uo = Symbol.for("craftile-editor"), le = (e) => {
6
6
  function Er(e) {
7
7
  return e == null ? [] : Array.isArray(e) ? e : [e];
8
8
  }
9
- var Ac = (e) => e[0], Sc = (e) => e[e.length - 1], wr = (e, t) => e.indexOf(t) !== -1, Or = (e, ...t) => e.concat(t), Cr = (e, ...t) => e.filter((n) => !t.includes(n)), _n = (e, t) => wr(e, t) ? Cr(e, t) : Or(e, t);
9
+ var Sc = (e) => e[0], kc = (e) => e[e.length - 1], wr = (e, t) => e.indexOf(t) !== -1, Or = (e, ...t) => e.concat(t), Cr = (e, ...t) => e.filter((n) => !t.includes(n)), _n = (e, t) => wr(e, t) ? Cr(e, t) : Or(e, t);
10
10
  function fo(e, t, n = {}) {
11
11
  const { step: o = 1, loop: r = !0 } = n, i = t + o, s = e.length, a = s - 1;
12
12
  return t === -1 ? o > 0 ? 0 : a : i < 0 ? r ? a : 0 : i >= s ? r ? 0 : t > s ? s : t : i;
13
13
  }
14
- function kc(e, t, n = {}) {
14
+ function Rc(e, t, n = {}) {
15
15
  return e[fo(e, t, n)];
16
16
  }
17
17
  function xr(e, t, n = {}) {
18
18
  const { step: o = 1, loop: r = !0 } = n;
19
19
  return fo(e, t, { step: -o, loop: r });
20
20
  }
21
- function Rc(e, t, n = {}) {
21
+ function Dc(e, t, n = {}) {
22
22
  return e[xr(e, t, n)];
23
23
  }
24
24
  var An = (e) => e?.constructor.name === "Array", Ir = (e, t) => {
@@ -50,12 +50,12 @@ var An = (e) => e?.constructor.name === "Array", Ir = (e, t) => {
50
50
  if (t === null) return !0;
51
51
  const n = dt(t, "constructor") && t.constructor;
52
52
  return typeof n == "function" && n instanceof n && go.call(n) == Ar;
53
- }, kr = (e) => typeof e == "object" && e !== null && "$$typeof" in e && "props" in e, Rr = (e) => typeof e == "object" && e !== null && "__v_isVNode" in e, Dr = (e) => kr(e) || Rr(e), Dc = (e, ...t) => (typeof e == "function" ? e(...t) : e) ?? void 0, Lc = (e) => e, Lr = () => {
53
+ }, kr = (e) => typeof e == "object" && e !== null && "$$typeof" in e && "props" in e, Rr = (e) => typeof e == "object" && e !== null && "__v_isVNode" in e, Dr = (e) => kr(e) || Rr(e), Lc = (e, ...t) => (typeof e == "function" ? e(...t) : e) ?? void 0, Vc = (e) => e, Lr = () => {
54
54
  }, Wt = (...e) => (...t) => {
55
55
  e.forEach(function(n) {
56
56
  n?.(...t);
57
57
  });
58
- }, Vc = /* @__PURE__ */ (() => {
58
+ }, Nc = /* @__PURE__ */ (() => {
59
59
  let e = 0;
60
60
  return () => (e++, e.toString(36));
61
61
  })();
@@ -90,7 +90,7 @@ function Vr(e, t = Object.is) {
90
90
  snapshot: () => ({ ...n })
91
91
  };
92
92
  }
93
- function Nc(e, t) {
93
+ function Mc(e, t) {
94
94
  const n = performance.now();
95
95
  let o;
96
96
  function r(i) {
@@ -109,7 +109,7 @@ function ht(...e) {
109
109
  function ho(e, t) {
110
110
  if (e == null) throw new Error(t());
111
111
  }
112
- function Mc(e, t, n) {
112
+ function Fc(e, t, n) {
113
113
  let o = [];
114
114
  for (const r of t)
115
115
  e[r] == null && o.push(r);
@@ -117,11 +117,11 @@ function Mc(e, t, n) {
117
117
  throw new Error(`[zag-js${` > ${n}`}] missing required props: ${o.join(", ")}`);
118
118
  }
119
119
  var Nr = (e, t) => e.map((n, o) => e[(Math.max(t, 0) + o) % e.length]), mo = () => {
120
- }, Ct = (e) => typeof e == "object" && e !== null, Fc = 2147483647, M = (e) => e ? "" : void 0, Mr = (e) => e ? "true" : void 0, Fr = 1, $r = 9, Br = 11, W = (e) => Ct(e) && e.nodeType === Fr && typeof e.nodeName == "string", vo = (e) => Ct(e) && e.nodeType === $r, Hr = (e) => Ct(e) && e === e.window, yo = (e) => W(e) ? e.localName || "" : "#document";
120
+ }, Ct = (e) => typeof e == "object" && e !== null, $c = 2147483647, M = (e) => e ? "" : void 0, Mr = (e) => e ? "true" : void 0, Fr = 1, $r = 9, Br = 11, W = (e) => Ct(e) && e.nodeType === Fr && typeof e.nodeName == "string", vo = (e) => Ct(e) && e.nodeType === $r, Hr = (e) => Ct(e) && e === e.window, yo = (e) => W(e) ? e.localName || "" : "#document";
121
121
  function Gr(e) {
122
122
  return ["html", "body", "#document"].includes(yo(e));
123
123
  }
124
- var Wr = (e) => Ct(e) && e.nodeType !== void 0, Xe = (e) => Wr(e) && e.nodeType === Br && "host" in e, jr = (e) => W(e) && e.localName === "input", $c = (e) => !!e?.matches("a[href]"), Ur = (e) => W(e) ? e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0 : !1;
124
+ var Wr = (e) => Ct(e) && e.nodeType !== void 0, Xe = (e) => Wr(e) && e.nodeType === Br && "host" in e, jr = (e) => W(e) && e.localName === "input", Bc = (e) => !!e?.matches("a[href]"), Ur = (e) => W(e) ? e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0 : !1;
125
125
  function Te(e) {
126
126
  if (!e) return !1;
127
127
  const t = e.getRootNode();
@@ -184,20 +184,20 @@ function Xr() {
184
184
  const e = navigator.userAgentData;
185
185
  return e && Array.isArray(e.brands) ? e.brands.map(({ brand: t, version: n }) => `${t}/${n}`).join(" ") : navigator.userAgent;
186
186
  }
187
- var cn = (e) => xt() && e.test(Yr()), wo = (e) => xt() && e.test(Xr()), Jr = (e) => xt() && e.test(navigator.vendor), Sn = () => xt() && !!navigator.maxTouchPoints, Zr = () => cn(/^iPhone/i), Qr = () => cn(/^iPad/i) || ot() && navigator.maxTouchPoints > 1, ei = () => Zr() || Qr(), ti = () => ot() || ei(), ot = () => cn(/^Mac/i), Bc = () => ti() && Jr(/apple/i), ni = () => wo(/Firefox/i), oi = () => wo(/Android/i);
187
+ var cn = (e) => xt() && e.test(Yr()), wo = (e) => xt() && e.test(Xr()), Jr = (e) => xt() && e.test(navigator.vendor), Sn = () => xt() && !!navigator.maxTouchPoints, Zr = () => cn(/^iPhone/i), Qr = () => cn(/^iPad/i) || ot() && navigator.maxTouchPoints > 1, ei = () => Zr() || Qr(), ti = () => ot() || ei(), ot = () => cn(/^Mac/i), Hc = () => ti() && Jr(/apple/i), ni = () => wo(/Firefox/i), oi = () => wo(/Android/i);
188
188
  function ri(e) {
189
189
  return e.composedPath?.() ?? e.nativeEvent?.composedPath?.();
190
190
  }
191
- function he(e) {
191
+ function me(e) {
192
192
  return ri(e)?.[0] ?? e.target;
193
193
  }
194
- function Hc(e) {
194
+ function Gc(e) {
195
195
  const t = e.currentTarget;
196
196
  if (!t || !t.matches("a[href], button[type='submit'], input[type='submit']")) return !1;
197
197
  const o = e.button === 1, r = si(e);
198
198
  return o || r;
199
199
  }
200
- function Gc(e) {
200
+ function Wc(e) {
201
201
  const t = e.currentTarget;
202
202
  if (!t) return !1;
203
203
  const n = t.localName;
@@ -209,13 +209,13 @@ function ii(e) {
209
209
  function si(e) {
210
210
  return ot() ? e.metaKey : e.ctrlKey;
211
211
  }
212
- function Wc(e) {
212
+ function jc(e) {
213
213
  return e.key.length === 1 && !e.ctrlKey && !e.metaKey;
214
214
  }
215
215
  function ai(e) {
216
216
  return e.pointerType === "" && e.isTrusted ? !0 : oi() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
217
217
  }
218
- var li = (e) => e.button === 0, ci = (e) => e.button === 2 || ot() && e.ctrlKey && e.button === 0, jc = (e) => e.ctrlKey || e.altKey || e.metaKey, ui = (e) => "touches" in e && e.touches.length > 0, di = {
218
+ var li = (e) => e.button === 0, ci = (e) => e.button === 2 || ot() && e.ctrlKey && e.button === 0, Uc = (e) => e.ctrlKey || e.altKey || e.metaKey, ui = (e) => "touches" in e && e.touches.length > 0, di = {
219
219
  Up: "ArrowUp",
220
220
  Down: "ArrowDown",
221
221
  Esc: "Escape",
@@ -235,11 +235,11 @@ function Rn(e, t = {}) {
235
235
  function fi(e) {
236
236
  return e.nativeEvent ?? e;
237
237
  }
238
- function Uc(e, t = "client") {
238
+ function Kc(e, t = "client") {
239
239
  const n = ui(e) ? e.touches[0] || e.changedTouches[0] : e;
240
240
  return { x: n[`${t}X`], y: n[`${t}Y`] };
241
241
  }
242
- var be = (e, t, n, o) => {
242
+ var Ee = (e, t, n, o) => {
243
243
  const r = typeof e == "function" ? e() : e;
244
244
  return r?.addEventListener(t, n, o), () => {
245
245
  r?.removeEventListener(t, n, o);
@@ -311,7 +311,7 @@ function wi(e, t) {
311
311
  const i = n.indexOf(r);
312
312
  return n[i + 1] || null;
313
313
  }
314
- function Kc(e) {
314
+ function zc(e) {
315
315
  return e.tabIndex < 0 && (/^(audio|video|details)$/.test(e.localName) || bo(e)) && !yi(e) ? 0 : e.tabIndex;
316
316
  }
317
317
  function Oi(e) {
@@ -376,7 +376,7 @@ function Ti(e, t) {
376
376
  r.forEach((i) => i?.());
377
377
  };
378
378
  }
379
- function zc(e) {
379
+ function qc(e) {
380
380
  const t = () => {
381
381
  const n = q(e);
382
382
  e.dispatchEvent(new n.MouseEvent("click"));
@@ -411,9 +411,9 @@ function Ri(e, t = {}) {
411
411
  const [d, p] = Co(e, !0), m = wi(s, n), f = !d && !p;
412
412
  l.shiftKey && Te(m) ? (r?.(), c = p) : l.shiftKey && (Te(d) || f) ? c = n : !l.shiftKey && Te(n) ? (r?.(), c = d) : !l.shiftKey && (Te(p) || f) && (c = m), c && (l.preventDefault(), typeof o == "function" ? o(c) : c.focus());
413
413
  }
414
- return be(i, "keydown", a, !0);
414
+ return Ee(i, "keydown", a, !0);
415
415
  }
416
- function qc(e, t) {
416
+ function Yc(e, t) {
417
417
  const { defer: n, triggerElement: o, ...r } = t, i = n ? J : (a) => a(), s = [];
418
418
  return s.push(
419
419
  i(() => {
@@ -424,7 +424,7 @@ function qc(e, t) {
424
424
  s.forEach((a) => a?.());
425
425
  };
426
426
  }
427
- function Yc(e, t) {
427
+ function Xc(e, t) {
428
428
  return Array.from(e?.querySelectorAll(t) ?? []);
429
429
  }
430
430
  var fn = (e) => e.id;
@@ -435,15 +435,15 @@ function pn(e, t, n = fn) {
435
435
  const o = Di(e, t, n);
436
436
  return o ? e.indexOf(o) : -1;
437
437
  }
438
- function Xc(e, t, n = !0) {
438
+ function Jc(e, t, n = !0) {
439
439
  let o = pn(e, t);
440
440
  return o = n ? (o + 1) % e.length : Math.min(o + 1, e.length - 1), e[o];
441
441
  }
442
- function Jc(e, t, n = !0) {
442
+ function Zc(e, t, n = !0) {
443
443
  let o = pn(e, t);
444
444
  return o === -1 ? n ? e[e.length - 1] : null : (o = n ? (o - 1 + e.length) % e.length : Math.max(0, o - 1), e[o]);
445
445
  }
446
- function Zc(e, t) {
446
+ function Qc(e, t) {
447
447
  const { onEntry: n, measure: o, box: r = "border-box" } = t, i = (Array.isArray(e) ? e : [e]).filter(W), s = q(i[0]), a = (c) => {
448
448
  const d = i.map((p) => o(p));
449
449
  n({ rects: d, entries: c });
@@ -468,7 +468,7 @@ function Io(e, t) {
468
468
  Object.assign(e.style, n), e.style.length === 0 && e.removeAttribute("style");
469
469
  };
470
470
  }
471
- function Qc(e, t, n) {
471
+ function eu(e, t, n) {
472
472
  if (!e) return mo;
473
473
  const o = e.style.getPropertyValue(t);
474
474
  return e.style.setProperty(t, n), () => {
@@ -598,10 +598,10 @@ function hn() {
598
598
  }
599
599
  };
600
600
  }
601
- function eu(e) {
601
+ function tu(e) {
602
602
  return e;
603
603
  }
604
- function tu() {
604
+ function nu() {
605
605
  return {
606
606
  guards: hn(),
607
607
  createMachine: (e) => e,
@@ -610,7 +610,7 @@ function tu() {
610
610
  }
611
611
  };
612
612
  }
613
- var Le = /* @__PURE__ */ ((e) => (e.NotStarted = "Not Started", e.Started = "Started", e.Stopped = "Stopped", e))(Le || {}), Vt = "__init__";
613
+ var Ve = /* @__PURE__ */ ((e) => (e.NotStarted = "Not Started", e.Started = "Started", e.Stopped = "Stopped", e))(Ve || {}), Vt = "__init__";
614
614
  function Ki(e) {
615
615
  const t = () => e.getRootNode?.() ?? document, n = () => ce(t());
616
616
  return {
@@ -846,18 +846,18 @@ function mn(e, t = {}) {
846
846
  y(e.states[E]?.entry);
847
847
  }
848
848
  }));
849
- let k = Le.NotStarted;
849
+ let k = Ve.NotStarted;
850
850
  ao(() => {
851
- const E = k === Le.Started;
852
- k = Le.Started, o(E ? "rehydrating..." : "initializing..."), I.invoke(I.initial, Vt);
851
+ const E = k === Ve.Started;
852
+ k = Ve.Started, o(E ? "rehydrating..." : "initializing..."), I.invoke(I.initial, Vt);
853
853
  }), gr(() => {
854
- k = Le.Stopped, o("unmounting...");
854
+ k = Ve.Stopped, o("unmounting...");
855
855
  const E = l.values();
856
856
  for (const g of E) g?.();
857
857
  l = /* @__PURE__ */ new Map(), y(e.exit);
858
858
  });
859
859
  const L = (E) => {
860
- if (k !== Le.Started) return;
860
+ if (k !== Ve.Started) return;
861
861
  d.current = p.current, p.current = E;
862
862
  let g = I.get();
863
863
  const O = (
@@ -985,37 +985,37 @@ function F() {
985
985
  }
986
986
  return { forwardRef: i, currentRef: t, currentElement: n };
987
987
  }
988
- var Ve = (e, t = []) => ({
988
+ var Ne = (e, t = []) => ({
989
989
  parts: (...n) => {
990
990
  if (ss(t))
991
- return Ve(e, n);
991
+ return Ne(e, n);
992
992
  throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
993
993
  },
994
- extendWith: (...n) => Ve(e, [...t, ...n]),
995
- omit: (...n) => Ve(e, t.filter((o) => !n.includes(o))),
996
- rename: (n) => Ve(n, t),
994
+ extendWith: (...n) => Ne(e, [...t, ...n]),
995
+ omit: (...n) => Ne(e, t.filter((o) => !n.includes(o))),
996
+ rename: (n) => Ne(n, t),
997
997
  keys: () => t,
998
998
  build: () => [...new Set(t)].reduce(
999
999
  (n, o) => Object.assign(n, {
1000
1000
  [o]: {
1001
1001
  selector: [
1002
- `&[data-scope="${Re(e)}"][data-part="${Re(o)}"]`,
1003
- `& [data-scope="${Re(e)}"][data-part="${Re(o)}"]`
1002
+ `&[data-scope="${De(e)}"][data-part="${De(o)}"]`,
1003
+ `& [data-scope="${De(e)}"][data-part="${De(o)}"]`
1004
1004
  ].join(", "),
1005
- attrs: { "data-scope": Re(e), "data-part": Re(o) }
1005
+ attrs: { "data-scope": De(e), "data-part": De(o) }
1006
1006
  }
1007
1007
  }),
1008
1008
  {}
1009
1009
  )
1010
- }), Re = (e) => e.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), ss = (e) => e.length === 0;
1011
- const [nu, _o] = le("EnvironmentContext"), Ao = _(() => ({
1010
+ }), De = (e) => e.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), ss = (e) => e.length === 0;
1011
+ const [ou, _o] = le("EnvironmentContext"), Ao = _(() => ({
1012
1012
  getRootNode: () => document,
1013
1013
  getDocument: () => document,
1014
1014
  getWindow: () => window
1015
1015
  })), So = _(() => ({
1016
1016
  dir: "ltr",
1017
1017
  locale: "en-US"
1018
- })), [ou, ko] = le("LocaleContext"), Ro = (e) => {
1018
+ })), [ru, ko] = le("LocaleContext"), Ro = (e) => {
1019
1019
  const t = {};
1020
1020
  for (const [n, o] of Object.entries(e))
1021
1021
  o !== void 0 && (t[n] = o);
@@ -1035,10 +1035,10 @@ const [nu, _o] = le("EnvironmentContext"), Ao = _(() => ({
1035
1035
  function Ut(e, t, n) {
1036
1036
  return Z(e, we(t, n));
1037
1037
  }
1038
- function me(e, t) {
1038
+ function ve(e, t) {
1039
1039
  return typeof e == "function" ? e(t) : e;
1040
1040
  }
1041
- function ve(e) {
1041
+ function ye(e) {
1042
1042
  return e.split("-")[0];
1043
1043
  }
1044
1044
  function Be(e) {
@@ -1052,7 +1052,7 @@ function yn(e) {
1052
1052
  }
1053
1053
  const us = /* @__PURE__ */ new Set(["top", "bottom"]);
1054
1054
  function ie(e) {
1055
- return us.has(ve(e)) ? "y" : "x";
1055
+ return us.has(ye(e)) ? "y" : "x";
1056
1056
  }
1057
1057
  function bn(e) {
1058
1058
  return vn(ie(e));
@@ -1085,7 +1085,7 @@ function hs(e, t, n) {
1085
1085
  }
1086
1086
  function ms(e, t, n, o) {
1087
1087
  const r = Be(e);
1088
- let i = hs(ve(e), n === "start", o);
1088
+ let i = hs(ye(e), n === "start", o);
1089
1089
  return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Kt)))), i;
1090
1090
  }
1091
1091
  function bt(e) {
@@ -1131,7 +1131,7 @@ function $n(e, t, n) {
1131
1131
  reference: o,
1132
1132
  floating: r
1133
1133
  } = e;
1134
- const i = ie(t), s = bn(t), a = yn(s), l = ve(t), c = i === "y", d = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
1134
+ const i = ie(t), s = bn(t), a = yn(s), l = ye(t), c = i === "y", d = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
1135
1135
  let f;
1136
1136
  switch (l) {
1137
1137
  case "top":
@@ -1251,7 +1251,7 @@ async function Qe(e, t) {
1251
1251
  elementContext: p = "floating",
1252
1252
  altBoundary: m = !1,
1253
1253
  padding: f = 0
1254
- } = me(t, e), h = Do(f), y = a[m ? p === "floating" ? "reference" : "floating" : p], x = Et(await i.getClippingRect({
1254
+ } = ve(t, e), h = Do(f), y = a[m ? p === "floating" ? "reference" : "floating" : p], x = Et(await i.getClippingRect({
1255
1255
  element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1256
1256
  boundary: c,
1257
1257
  rootBoundary: d,
@@ -1295,7 +1295,7 @@ const bs = (e) => ({
1295
1295
  } = t, {
1296
1296
  element: c,
1297
1297
  padding: d = 0
1298
- } = me(e, t) || {};
1298
+ } = ve(e, t) || {};
1299
1299
  if (c == null)
1300
1300
  return {};
1301
1301
  const p = Do(d), m = {
@@ -1338,10 +1338,10 @@ const bs = (e) => ({
1338
1338
  fallbackAxisSideDirection: h = "none",
1339
1339
  flipAlignment: u = !0,
1340
1340
  ...y
1341
- } = me(e, t);
1341
+ } = ve(e, t);
1342
1342
  if ((n = i.arrow) != null && n.alignmentOffset)
1343
1343
  return {};
1344
- const x = ve(r), b = ie(a), w = ve(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), I = m || (w || !u ? [bt(a)] : fs(a)), k = h !== "none";
1344
+ const x = ye(r), b = ie(a), w = ye(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), I = m || (w || !u ? [bt(a)] : fs(a)), k = h !== "none";
1345
1345
  !m && k && I.push(...ms(a, u, h, C));
1346
1346
  const L = [a, ...I], E = await Qe(t, y), g = [];
1347
1347
  let O = ((o = i.flip) == null ? void 0 : o.overflows) || [];
@@ -1374,13 +1374,13 @@ const bs = (e) => ({
1374
1374
  var H;
1375
1375
  const te = (H = O.filter((ne) => {
1376
1376
  if (k) {
1377
- const ye = ie(ne.placement);
1378
- return ye === b || // Create a bias to the `y` side axis due to horizontal
1377
+ const be = ie(ne.placement);
1378
+ return be === b || // Create a bias to the `y` side axis due to horizontal
1379
1379
  // reading directions favoring greater width.
1380
- ye === "y";
1380
+ be === "y";
1381
1381
  }
1382
1382
  return !0;
1383
- }).map((ne) => [ne.placement, ne.overflows.filter((ye) => ye > 0).reduce((ye, fr) => ye + fr, 0)]).sort((ne, ye) => ne[1] - ye[1])[0]) == null ? void 0 : H[0];
1383
+ }).map((ne) => [ne.placement, ne.overflows.filter((be) => be > 0).reduce((be, fr) => be + fr, 0)]).sort((ne, be) => ne[1] - be[1])[0]) == null ? void 0 : H[0];
1384
1384
  te && (de = te);
1385
1385
  break;
1386
1386
  }
@@ -1420,7 +1420,7 @@ const ws = function(e) {
1420
1420
  } = t, {
1421
1421
  strategy: o = "referenceHidden",
1422
1422
  ...r
1423
- } = me(e, t);
1423
+ } = ve(e, t);
1424
1424
  switch (o) {
1425
1425
  case "referenceHidden": {
1426
1426
  const i = await Qe(t, {
@@ -1457,7 +1457,7 @@ async function Os(e, t) {
1457
1457
  placement: n,
1458
1458
  platform: o,
1459
1459
  elements: r
1460
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ve(n), a = Be(n), l = ie(n) === "y", c = Lo.has(s) ? -1 : 1, d = i && l ? -1 : 1, p = me(t, e);
1460
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = ye(n), a = Be(n), l = ie(n) === "y", c = Lo.has(s) ? -1 : 1, d = i && l ? -1 : 1, p = ve(t, e);
1461
1461
  let {
1462
1462
  mainAxis: m,
1463
1463
  crossAxis: f,
@@ -1526,10 +1526,10 @@ const Cs = function(e) {
1526
1526
  }
1527
1527
  },
1528
1528
  ...l
1529
- } = me(e, t), c = {
1529
+ } = ve(e, t), c = {
1530
1530
  x: n,
1531
1531
  y: o
1532
- }, d = await Qe(t, l), p = ie(ve(r)), m = vn(p);
1532
+ }, d = await Qe(t, l), p = ie(ye(r)), m = vn(p);
1533
1533
  let f = c[m], h = c[p];
1534
1534
  if (i) {
1535
1535
  const y = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", b = f + d[y], w = f - d[x];
@@ -1571,12 +1571,12 @@ const Cs = function(e) {
1571
1571
  offset: a = 0,
1572
1572
  mainAxis: l = !0,
1573
1573
  crossAxis: c = !0
1574
- } = me(e, t), d = {
1574
+ } = ve(e, t), d = {
1575
1575
  x: n,
1576
1576
  y: o
1577
1577
  }, p = ie(r), m = vn(p);
1578
1578
  let f = d[m], h = d[p];
1579
- const u = me(a, t), y = typeof u == "number" ? {
1579
+ const u = ve(a, t), y = typeof u == "number" ? {
1580
1580
  mainAxis: u,
1581
1581
  crossAxis: 0
1582
1582
  } : {
@@ -1590,7 +1590,7 @@ const Cs = function(e) {
1590
1590
  }
1591
1591
  if (c) {
1592
1592
  var x, b;
1593
- const w = m === "y" ? "width" : "height", C = Lo.has(ve(r)), I = i.reference[p] - i.floating[w] + (C && ((x = s.offset) == null ? void 0 : x[p]) || 0) + (C ? 0 : y.crossAxis), k = i.reference[p] + i.reference[w] + (C ? 0 : ((b = s.offset) == null ? void 0 : b[p]) || 0) - (C ? y.crossAxis : 0);
1593
+ const w = m === "y" ? "width" : "height", C = Lo.has(ye(r)), I = i.reference[p] - i.floating[w] + (C && ((x = s.offset) == null ? void 0 : x[p]) || 0) + (C ? 0 : y.crossAxis), k = i.reference[p] + i.reference[w] + (C ? 0 : ((b = s.offset) == null ? void 0 : b[p]) || 0) - (C ? y.crossAxis : 0);
1594
1594
  h < I ? h = I : h > k && (h = k);
1595
1595
  }
1596
1596
  return {
@@ -1614,7 +1614,7 @@ const Cs = function(e) {
1614
1614
  apply: l = () => {
1615
1615
  },
1616
1616
  ...c
1617
- } = me(e, t), d = await Qe(t, c), p = ve(r), m = Be(r), f = ie(r) === "y", {
1617
+ } = ve(e, t), d = await Qe(t, c), p = ye(r), m = Be(r), f = ie(r) === "y", {
1618
1618
  width: h,
1619
1619
  height: u
1620
1620
  } = i.floating;
@@ -1767,7 +1767,7 @@ function Mo(e) {
1767
1767
  function On(e) {
1768
1768
  return oe(e) ? e : e.contextElement;
1769
1769
  }
1770
- function Ne(e) {
1770
+ function Me(e) {
1771
1771
  const t = On(e);
1772
1772
  if (!ae(t))
1773
1773
  return se(1);
@@ -1793,18 +1793,18 @@ function Fo(e) {
1793
1793
  function Ms(e, t, n) {
1794
1794
  return t === void 0 && (t = !1), !n || t && n !== Q(e) ? !1 : t;
1795
1795
  }
1796
- function Ae(e, t, n, o) {
1796
+ function Se(e, t, n, o) {
1797
1797
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1798
1798
  const r = e.getBoundingClientRect(), i = On(e);
1799
1799
  let s = se(1);
1800
- t && (o ? oe(o) && (s = Ne(o)) : s = Ne(e));
1800
+ t && (o ? oe(o) && (s = Me(o)) : s = Me(e));
1801
1801
  const a = Ms(i, n, o) ? Fo(i) : se(0);
1802
1802
  let l = (r.left + a.x) / s.x, c = (r.top + a.y) / s.y, d = r.width / s.x, p = r.height / s.y;
1803
1803
  if (i) {
1804
1804
  const m = Q(i), f = o && oe(o) ? Q(o) : o;
1805
1805
  let h = m, u = zt(h);
1806
1806
  for (; u && o && f !== h; ) {
1807
- const y = Ne(u), x = u.getBoundingClientRect(), b = re(u), w = x.left + (u.clientLeft + parseFloat(b.paddingLeft)) * y.x, C = x.top + (u.clientTop + parseFloat(b.paddingTop)) * y.y;
1807
+ const y = Me(u), x = u.getBoundingClientRect(), b = re(u), w = x.left + (u.clientLeft + parseFloat(b.paddingLeft)) * y.x, C = x.top + (u.clientTop + parseFloat(b.paddingTop)) * y.y;
1808
1808
  l *= y.x, c *= y.y, d *= y.x, p *= y.y, l += w, c += C, h = Q(u), u = zt(h);
1809
1809
  }
1810
1810
  }
@@ -1817,7 +1817,7 @@ function Ae(e, t, n, o) {
1817
1817
  }
1818
1818
  function At(e, t) {
1819
1819
  const n = _t(e).scrollLeft;
1820
- return t ? t.left + n : Ae(ue(e)).left + n;
1820
+ return t ? t.left + n : Se(ue(e)).left + n;
1821
1821
  }
1822
1822
  function $o(e, t) {
1823
1823
  const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - At(e, n), r = n.top + t.scrollTop;
@@ -1842,8 +1842,8 @@ function Fs(e) {
1842
1842
  }, c = se(1);
1843
1843
  const d = se(0), p = ae(o);
1844
1844
  if ((p || !p && !i) && ((He(o) !== "body" || rt(s)) && (l = _t(o)), ae(o))) {
1845
- const f = Ae(o);
1846
- c = Ne(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
1845
+ const f = Se(o);
1846
+ c = Me(o), d.x = f.x + o.clientLeft, d.y = f.y + o.clientTop;
1847
1847
  }
1848
1848
  const m = s && !p && !i ? $o(s, l) : se(0);
1849
1849
  return {
@@ -1890,7 +1890,7 @@ function Hs(e, t) {
1890
1890
  }
1891
1891
  const Gs = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1892
1892
  function Ws(e, t) {
1893
- const n = Ae(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = ae(e) ? Ne(e) : se(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = r * i.x, c = o * i.y;
1893
+ const n = Se(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = ae(e) ? Me(e) : se(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = r * i.x, c = o * i.y;
1894
1894
  return {
1895
1895
  width: s,
1896
1896
  height: a,
@@ -1963,7 +1963,7 @@ function Ks(e) {
1963
1963
  };
1964
1964
  }
1965
1965
  function zs(e, t, n) {
1966
- const o = ae(t), r = ue(t), i = n === "fixed", s = Ae(e, !0, i, t);
1966
+ const o = ae(t), r = ue(t), i = n === "fixed", s = Se(e, !0, i, t);
1967
1967
  let a = {
1968
1968
  scrollLeft: 0,
1969
1969
  scrollTop: 0
@@ -1974,7 +1974,7 @@ function zs(e, t, n) {
1974
1974
  }
1975
1975
  if (o || !o && !i)
1976
1976
  if ((He(t) !== "body" || rt(r)) && (a = _t(t)), o) {
1977
- const f = Ae(t, !0, i, t);
1977
+ const f = Se(t, !0, i, t);
1978
1978
  l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
1979
1979
  } else r && c();
1980
1980
  i && !o && r && c();
@@ -2038,7 +2038,7 @@ const Xs = {
2038
2038
  getElementRects: qs,
2039
2039
  getClientRects: $s,
2040
2040
  getDimensions: Ks,
2041
- getScale: Ne,
2041
+ getScale: Me,
2042
2042
  isElement: oe,
2043
2043
  isRTL: Ys
2044
2044
  };
@@ -2114,10 +2114,10 @@ function Zs(e, t, n, o) {
2114
2114
  (w = f) == null || w.observe(t);
2115
2115
  })), n();
2116
2116
  }), c && !l && f.observe(c), f.observe(t));
2117
- let h, u = l ? Ae(e) : null;
2117
+ let h, u = l ? Se(e) : null;
2118
2118
  l && y();
2119
2119
  function y() {
2120
- const x = Ae(e);
2120
+ const x = Se(e);
2121
2121
  u && !Go(u, x) && n(), u = x, h = requestAnimationFrame(y);
2122
2122
  }
2123
2123
  return n(), () => {
@@ -2223,7 +2223,7 @@ function pa(e) {
2223
2223
  const [t, n] = e.split("-");
2224
2224
  return { side: t, align: n, hasAlign: n != null };
2225
2225
  }
2226
- function ru(e) {
2226
+ function iu(e) {
2227
2227
  return e.split("-")[0];
2228
2228
  }
2229
2229
  var ga = {
@@ -2491,7 +2491,7 @@ function Aa(e, t) {
2491
2491
  function w(C) {
2492
2492
  const I = s && !Sn() ? J : (E) => E(), k = C ?? b, L = k?.composedPath?.() ?? [k?.target];
2493
2493
  I(() => {
2494
- const E = f ? L[0] : he(b);
2494
+ const E = f ? L[0] : me(b);
2495
2495
  if (!(!e || !p(b, E))) {
2496
2496
  if (r || i) {
2497
2497
  const g = Wt(r, i);
@@ -2510,14 +2510,14 @@ function Aa(e, t) {
2510
2510
  }
2511
2511
  });
2512
2512
  }
2513
- b.pointerType === "touch" ? (m.forEach((C) => C()), m.add(be(a, "click", w, { once: !0 })), m.add(d.addEventListener("click", w, { once: !0 })), m.add(c.addEventListener("click", w, { once: !0 }))) : w();
2513
+ b.pointerType === "touch" ? (m.forEach((C) => C()), m.add(Ee(a, "click", w, { once: !0 })), m.add(d.addEventListener("click", w, { once: !0 })), m.add(c.addEventListener("click", w, { once: !0 }))) : w();
2514
2514
  }
2515
2515
  const u = /* @__PURE__ */ new Set(), y = setTimeout(() => {
2516
- u.add(be(a, "pointerdown", h, !0)), u.add(d.addEventListener("pointerdown", h, !0)), u.add(c.addEventListener("pointerdown", h, !0));
2516
+ u.add(Ee(a, "pointerdown", h, !0)), u.add(d.addEventListener("pointerdown", h, !0)), u.add(c.addEventListener("pointerdown", h, !0));
2517
2517
  }, 0);
2518
2518
  function x(b) {
2519
2519
  (s ? J : (C) => C())(() => {
2520
- const C = he(b);
2520
+ const C = me(b);
2521
2521
  if (!(!e || !p(b, C))) {
2522
2522
  if (o || i) {
2523
2523
  const I = Wt(o, i);
@@ -2536,7 +2536,7 @@ function Aa(e, t) {
2536
2536
  }
2537
2537
  });
2538
2538
  }
2539
- return Sn() || (u.add(be(a, "focusin", x, !0)), u.add(d.addEventListener("focusin", x, !0)), u.add(c.addEventListener("focusin", x, !0))), () => {
2539
+ return Sn() || (u.add(Ee(a, "focusin", x, !0)), u.add(d.addEventListener("focusin", x, !0)), u.add(c.addEventListener("focusin", x, !0))), () => {
2540
2540
  clearTimeout(y), m.forEach((b) => b()), u.forEach((b) => b());
2541
2541
  };
2542
2542
  }
@@ -2559,7 +2559,7 @@ function ka(e, t) {
2559
2559
  const n = (o) => {
2560
2560
  o.key === "Escape" && (o.isComposing || t?.(o));
2561
2561
  };
2562
- return be(ce(e), "keydown", n, { capture: !0 });
2562
+ return Ee(ce(e), "keydown", n, { capture: !0 });
2563
2563
  }
2564
2564
  var Zn = "layer:request-dismiss", X = {
2565
2565
  layers: [],
@@ -2694,11 +2694,11 @@ function Na(e, t) {
2694
2694
  const { onDismiss: o, onRequestDismiss: r, pointerBlocking: i, exclude: s, debug: a, type: l = "dialog" } = t, c = { dismiss: o, node: e, type: l, pointerBlocking: i, requestDismiss: r };
2695
2695
  X.add(c), eo();
2696
2696
  function d(u) {
2697
- const y = he(u.detail.originalEvent);
2697
+ const y = me(u.detail.originalEvent);
2698
2698
  X.isBelowPointerBlockingLayer(e) || X.isInBranch(y) || (t.onPointerDownOutside?.(u), t.onInteractOutside?.(u), !u.defaultPrevented && (a && console.log("onPointerDownOutside:", u.detail.originalEvent), o?.()));
2699
2699
  }
2700
2700
  function p(u) {
2701
- const y = he(u.detail.originalEvent);
2701
+ const y = me(u.detail.originalEvent);
2702
2702
  X.isInBranch(y) || (t.onFocusOutside?.(u), t.onInteractOutside?.(u), !u.defaultPrevented && (a && console.log("onFocusOutside:", u.detail.originalEvent), o?.()));
2703
2703
  }
2704
2704
  function m(u) {
@@ -2729,7 +2729,7 @@ function Ma(e, t) {
2729
2729
  r.forEach((i) => i?.());
2730
2730
  };
2731
2731
  }
2732
- function iu(e, t = {}) {
2732
+ function su(e, t = {}) {
2733
2733
  const { defer: n } = t, o = n ? J : (i) => i(), r = [];
2734
2734
  return r.push(
2735
2735
  o(() => {
@@ -2752,10 +2752,10 @@ function Fa(e) {
2752
2752
  }
2753
2753
  var $a = /* @__PURE__ */ new Set(["checkbox", "radio", "range", "color", "file", "image", "button", "submit", "reset"]);
2754
2754
  function Ba(e, t, n) {
2755
- const o = n ? he(n) : null, r = q(o);
2755
+ const o = n ? me(n) : null, r = q(o);
2756
2756
  return e = e || o instanceof r.HTMLInputElement && !$a.has(o?.type) || o instanceof r.HTMLTextAreaElement || o instanceof r.HTMLElement && o.isContentEditable, !(e && t === "keyboard" && n instanceof r.KeyboardEvent && !Reflect.has(Ha, n.key));
2757
2757
  }
2758
- var ke = null, qt = /* @__PURE__ */ new Set(), qe = /* @__PURE__ */ new Map(), Se = !1, Yt = !1, Ha = {
2758
+ var Re = null, qt = /* @__PURE__ */ new Set(), qe = /* @__PURE__ */ new Map(), ke = !1, Yt = !1, Ha = {
2759
2759
  Tab: !0,
2760
2760
  Escape: !0
2761
2761
  };
@@ -2764,20 +2764,20 @@ function kt(e, t) {
2764
2764
  n(e, t);
2765
2765
  }
2766
2766
  function Ot(e) {
2767
- Se = !0, Fa(e) && (ke = "keyboard", kt("keyboard", e));
2767
+ ke = !0, Fa(e) && (Re = "keyboard", kt("keyboard", e));
2768
2768
  }
2769
2769
  function ee(e) {
2770
- ke = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Se = !0, kt("pointer", e));
2770
+ Re = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (ke = !0, kt("pointer", e));
2771
2771
  }
2772
2772
  function Ko(e) {
2773
- ai(e) && (Se = !0, ke = "virtual");
2773
+ ai(e) && (ke = !0, Re = "virtual");
2774
2774
  }
2775
2775
  function zo(e) {
2776
- const t = he(e);
2777
- t === q(t) || t === ce(t) || (!Se && !Yt && (ke = "virtual", kt("virtual", e)), Se = !1, Yt = !1);
2776
+ const t = me(e);
2777
+ t === q(t) || t === ce(t) || (!ke && !Yt && (Re = "virtual", kt("virtual", e)), ke = !1, Yt = !1);
2778
2778
  }
2779
2779
  function qo() {
2780
- Se = !1, Yt = !0;
2780
+ ke = !1, Yt = !0;
2781
2781
  }
2782
2782
  function Ga(e) {
2783
2783
  if (typeof window > "u" || qe.get(q(e)))
@@ -2785,7 +2785,7 @@ function Ga(e) {
2785
2785
  const t = q(e), n = ce(e);
2786
2786
  let o = t.HTMLElement.prototype.focus;
2787
2787
  function r() {
2788
- ke = "virtual", kt("virtual", null), Se = !0, o.apply(this, arguments);
2788
+ Re = "virtual", kt("virtual", null), ke = !0, o.apply(this, arguments);
2789
2789
  }
2790
2790
  Object.defineProperty(t.HTMLElement.prototype, "focus", {
2791
2791
  configurable: !0,
@@ -2803,11 +2803,11 @@ var Wa = (e, t) => {
2803
2803
  qe.has(n) && (n.HTMLElement.prototype.focus = qe.get(n).focus, o.removeEventListener("keydown", Ot, !0), o.removeEventListener("keyup", Ot, !0), o.removeEventListener("click", Ko, !0), n.removeEventListener("focus", zo, !0), n.removeEventListener("blur", qo, !1), typeof n.PointerEvent < "u" ? (o.removeEventListener("pointerdown", ee, !0), o.removeEventListener("pointermove", ee, !0), o.removeEventListener("pointerup", ee, !0)) : (o.removeEventListener("mousedown", ee, !0), o.removeEventListener("mousemove", ee, !0), o.removeEventListener("mouseup", ee, !0)), qe.delete(n));
2804
2804
  };
2805
2805
  function Xt() {
2806
- return ke === "keyboard";
2806
+ return Re === "keyboard";
2807
2807
  }
2808
2808
  function ja(e = {}) {
2809
2809
  const { isTextInput: t, autoFocus: n, onChange: o, root: r } = e;
2810
- Ga(r), o?.({ isFocusVisible: n || Xt(), modality: ke });
2810
+ Ga(r), o?.({ isFocusVisible: n || Xt(), modality: Re });
2811
2811
  const i = (s, a) => {
2812
2812
  Ba(!!t, s, a) && o?.({ isFocusVisible: Xt(), modality: s });
2813
2813
  };
@@ -2815,7 +2815,7 @@ function ja(e = {}) {
2815
2815
  qt.delete(i);
2816
2816
  };
2817
2817
  }
2818
- const [su, Yo] = le("FieldContext");
2818
+ const [au, Yo] = le("FieldContext");
2819
2819
  var Ua = Object.defineProperty, Ka = (e, t, n) => t in e ? Ua(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, A = (e, t, n) => Ka(e, typeof t != "symbol" ? t + "" : t, n), ft = {
2820
2820
  itemToValue(e) {
2821
2821
  return typeof e == "string" ? e : Dt(e) && dt(e, "value") ? e.value : "";
@@ -3164,7 +3164,7 @@ var Xa = {
3164
3164
  (a.composedPath?.()?.[0] ?? a.target) === o && e.set("prevAnimationName", at(t.get("styles")));
3165
3165
  }, i = (a) => {
3166
3166
  const l = at(t.get("styles"));
3167
- he(a) === o && l === e.get("unmountAnimationName") && n({ type: "UNMOUNT", src: "animationend" });
3167
+ me(a) === o && l === e.get("unmountAnimationName") && n({ type: "UNMOUNT", src: "animationend" });
3168
3168
  };
3169
3169
  o.addEventListener("animationstart", r), o.addEventListener("animationcancel", i), o.addEventListener("animationend", i);
3170
3170
  const s = Io(o, { animationFillMode: "forwards" });
@@ -3227,7 +3227,7 @@ const Qo = (e, t) => {
3227
3227
  },
3228
3228
  setup(e) {
3229
3229
  const t = j(), n = Zo(), o = _(() => gn(t.value.getContentProps(), n.value.presenceProps));
3230
- return F(), (r, i) => v(n).unmounted ? Ee("", !0) : (P(), D(v(B).div, $({ key: 0 }, o.value, { "as-child": r.asChild }), {
3230
+ return F(), (r, i) => v(n).unmounted ? he("", !0) : (P(), D(v(B).div, $({ key: 0 }, o.value, { "as-child": r.asChild }), {
3231
3231
  default: S(() => [
3232
3232
  N(r.$slots, "default")
3233
3233
  ]),
@@ -3268,12 +3268,12 @@ const Qo = (e, t) => {
3268
3268
  "aria-describedby": v(n)?.ariaDescribedby
3269
3269
  }, v(t).getHiddenSelectProps()), {
3270
3270
  default: S(() => [
3271
- v(t).value.length === 0 ? (P(), G("option", tl)) : Ee("", !0),
3271
+ v(t).value.length === 0 ? (P(), G("option", tl)) : he("", !0),
3272
3272
  (P(!0), G(nn, null, lo(v(t).collection.items, (i) => (P(), G("option", {
3273
3273
  key: i.value,
3274
3274
  value: v(t).collection.getItemValue(i),
3275
3275
  disabled: v(t).collection.getItemDisabled(i)
3276
- }, Me(v(t).collection.stringifyItem(i)) + " > ", 9, nl))), 128))
3276
+ }, Ae(v(t).collection.stringifyItem(i)) + " > ", 9, nl))), 128))
3277
3277
  ]),
3278
3278
  _: 1
3279
3279
  }, 16, ["aria-describedby"]));
@@ -3411,7 +3411,7 @@ const Qo = (e, t) => {
3411
3411
  present: t.value.open
3412
3412
  }))
3413
3413
  );
3414
- return Jo(o), F(), (r, i) => v(o).unmounted ? Ee("", !0) : (P(), D(v(B).div, $({ key: 0 }, v(t).getPositionerProps(), { "as-child": r.asChild }), {
3414
+ return Jo(o), F(), (r, i) => v(o).unmounted ? he("", !0) : (P(), D(v(B).div, $({ key: 0 }, v(t).getPositionerProps(), { "as-child": r.asChild }), {
3415
3415
  default: S(() => [
3416
3416
  N(r.$slots, "default")
3417
3417
  ]),
@@ -3436,7 +3436,7 @@ const Qo = (e, t) => {
3436
3436
  }, 16, ["as-child"]));
3437
3437
  }
3438
3438
  });
3439
- var El = Ve("select").parts(
3439
+ var El = Ne("select").parts(
3440
3440
  "label",
3441
3441
  "positioner",
3442
3442
  "trigger",
@@ -3754,7 +3754,7 @@ function Il(e, t) {
3754
3754
  "aria-labelledby": lt(r),
3755
3755
  tabIndex: 0,
3756
3756
  onKeyDown(g) {
3757
- if (!I || !Je(g.currentTarget, he(g))) return;
3757
+ if (!I || !Je(g.currentTarget, me(g))) return;
3758
3758
  if (g.key === "Tab" && !Ci(g)) {
3759
3759
  g.preventDefault();
3760
3760
  return;
@@ -3783,7 +3783,7 @@ function Il(e, t) {
3783
3783
  T(g), g.preventDefault();
3784
3784
  return;
3785
3785
  }
3786
- const V = he(g);
3786
+ const V = me(g);
3787
3787
  bo(V) || jt.isValidEvent(g) && (a({ type: "CONTENT.TYPEAHEAD", key: g.key }), g.preventDefault());
3788
3788
  }
3789
3789
  });
@@ -4573,7 +4573,7 @@ const _l = (e, t) => {
4573
4573
  return F(), (r, i) => (P(), D(v(B).span, $(v(n).getValueTextProps(), { "as-child": r.asChild }), {
4574
4574
  default: S(() => [
4575
4575
  N(r.$slots, "default", {}, () => [
4576
- Ye(Me(o.default?.() || v(n).valueAsString || t.placeholder), 1)
4576
+ Ye(Ae(o.default?.() || v(n).valueAsString || t.placeholder), 1)
4577
4577
  ])
4578
4578
  ]),
4579
4579
  _: 3
@@ -4635,7 +4635,7 @@ const _l = (e, t) => {
4635
4635
  },
4636
4636
  setup(e) {
4637
4637
  const t = Ge(), n = Zo(), o = _(() => gn(t.value.getContentProps(), n.value.presenceProps));
4638
- return F(), (r, i) => v(n).unmounted ? Ee("", !0) : (P(), D(v(B).div, $({ key: 0 }, o.value, { "as-child": r.asChild }), {
4638
+ return F(), (r, i) => v(n).unmounted ? he("", !0) : (P(), D(v(B).div, $({ key: 0 }, o.value, { "as-child": r.asChild }), {
4639
4639
  default: S(() => [
4640
4640
  N(r.$slots, "default")
4641
4641
  ]),
@@ -4660,7 +4660,7 @@ const _l = (e, t) => {
4660
4660
  present: t.value.open
4661
4661
  }))
4662
4662
  );
4663
- return Jo(o), F(), (r, i) => v(o).unmounted ? Ee("", !0) : (P(), D(v(B).div, $({ key: 0 }, v(t).getPositionerProps(), { "as-child": r.asChild }), {
4663
+ return Jo(o), F(), (r, i) => v(o).unmounted ? he("", !0) : (P(), D(v(B).div, $({ key: 0 }, v(t).getPositionerProps(), { "as-child": r.asChild }), {
4664
4664
  default: S(() => [
4665
4665
  N(r.$slots, "default")
4666
4666
  ]),
@@ -4679,7 +4679,7 @@ const _l = (e, t) => {
4679
4679
  return ir(n), St(_(() => ({ lazyMount: t.lazyMount, unmountOnExit: t.unmountOnExit }))), F(), (o, r) => N(o.$slots, "default");
4680
4680
  }
4681
4681
  });
4682
- var Fl = Ve("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content"), ze = Fl.build(), sr = (e) => e.ids?.trigger ?? `tooltip:${e.id}:trigger`, $l = (e) => e.ids?.content ?? `tooltip:${e.id}:content`, Bl = (e) => e.ids?.arrow ?? `tooltip:${e.id}:arrow`, ar = (e) => e.ids?.positioner ?? `tooltip:${e.id}:popper`, Bt = (e) => e.getById(sr(e)), ro = (e) => e.getById(ar(e)), pe = Vr({ id: null });
4682
+ var Fl = Ne("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content"), ze = Fl.build(), sr = (e) => e.ids?.trigger ?? `tooltip:${e.id}:trigger`, $l = (e) => e.ids?.content ?? `tooltip:${e.id}:content`, Bl = (e) => e.ids?.arrow ?? `tooltip:${e.id}:arrow`, ar = (e) => e.ids?.positioner ?? `tooltip:${e.id}:popper`, Bt = (e) => e.getById(sr(e)), ro = (e) => e.getById(ar(e)), pe = Vr({ id: null });
4683
4683
  function Hl(e, t) {
4684
4684
  const { state: n, context: o, send: r, scope: i, prop: s, event: a } = e, l = s("id"), c = !!s("aria-label"), d = n.matches("open", "closing"), p = sr(i), m = $l(i), f = s("disabled"), h = Wo({
4685
4685
  ...s("positioning"),
@@ -5049,13 +5049,13 @@ var { and: Gl, not: io } = hn(), Wl = {
5049
5049
  },
5050
5050
  trackPointerlockChange: ({ send: e, scope: t }) => {
5051
5051
  const n = t.getDoc();
5052
- return be(n, "pointerlockchange", () => e({ type: "close", src: "pointerlock:change" }), !1);
5052
+ return Ee(n, "pointerlockchange", () => e({ type: "close", src: "pointerlock:change" }), !1);
5053
5053
  },
5054
5054
  trackScroll: ({ send: e, prop: t, scope: n }) => {
5055
5055
  if (!t("closeOnScroll")) return;
5056
5056
  const o = Bt(n);
5057
5057
  if (!o) return;
5058
- const i = xo(o).map((s) => be(s, "scroll", () => {
5058
+ const i = xo(o).map((s) => Ee(s, "scroll", () => {
5059
5059
  e({ type: "close", src: "scroll" });
5060
5060
  }, {
5061
5061
  passive: !0,
@@ -5073,7 +5073,7 @@ var { and: Gl, not: io } = hn(), Wl = {
5073
5073
  });
5074
5074
  }), () => n?.();
5075
5075
  },
5076
- trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? be(document, "keydown", (o) => {
5076
+ trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? Ee(document, "keydown", (o) => {
5077
5077
  ii(o) || o.key === "Escape" && (o.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
5078
5078
  }, !0) : void 0,
5079
5079
  waitForOpenDelay: ({ send: e, prop: t }) => {
@@ -5172,7 +5172,7 @@ const jl = (e = {}, t) => {
5172
5172
  _: 3
5173
5173
  }, 16, ["as-child"]));
5174
5174
  }
5175
- }), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5175
+ }), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5176
5176
  __proto__: null,
5177
5177
  Arrow: Dl,
5178
5178
  ArrowTip: Rl,
@@ -5298,7 +5298,7 @@ const Jl = ["type", "disabled"], Zl = {
5298
5298
  xmlns: "http://www.w3.org/2000/svg",
5299
5299
  fill: "none",
5300
5300
  viewBox: "0 0 24 24"
5301
- }, au = /* @__PURE__ */ R({
5301
+ }, lu = /* @__PURE__ */ R({
5302
5302
  __name: "Button",
5303
5303
  props: {
5304
5304
  variant: { default: "default" },
@@ -5349,7 +5349,7 @@ const Jl = ["type", "disabled"], Zl = {
5349
5349
  fill: "currentColor",
5350
5350
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
5351
5351
  }, null, -1)
5352
- ])])) : Ee("", !0),
5352
+ ])])) : he("", !0),
5353
5353
  z("span", {
5354
5354
  class: Gt(["inline-flex items-center gap-2", { invisible: s.loading }])
5355
5355
  }, [
@@ -5484,28 +5484,28 @@ const fc = tt({ name: "heroicons-check", render: dc }), pc = /* @__PURE__ */ R({
5484
5484
  title: {}
5485
5485
  },
5486
5486
  setup(e) {
5487
- return (t, n) => (P(), D(v(De).Root, {
5487
+ return (t, n) => (P(), D(v(Le).Root, {
5488
5488
  "open-delay": 100,
5489
5489
  positioning: { placement: "top" }
5490
5490
  }, {
5491
5491
  default: S(() => [
5492
- Y(v(De).Trigger, null, {
5492
+ Y(v(Le).Trigger, null, {
5493
5493
  default: S(() => [
5494
5494
  N(t.$slots, "default")
5495
5495
  ]),
5496
5496
  _: 3
5497
5497
  }),
5498
- Y(v(De).Positioner, null, {
5498
+ Y(v(Le).Positioner, null, {
5499
5499
  default: S(() => [
5500
- Y(v(De).Content, { class: "relative w-max bg-white border border-gray-300/60 rounded-md shadow-sm text-sm font-medium px-2 py-1 text-gray-700 data-[state=open]:animate-enter data-[state=closed]:animate-exit" }, {
5500
+ Y(v(Le).Content, { class: "relative w-max bg-white border border-gray-300/60 rounded-md shadow-sm text-sm font-medium px-2 py-1 text-gray-700 data-[state=open]:animate-enter data-[state=closed]:animate-exit" }, {
5501
5501
  default: S(() => [
5502
- Y(v(De).Arrow, { style: { "--arrow-size": "12px", "--arrow-background": "white" } }, {
5502
+ Y(v(Le).Arrow, { style: { "--arrow-size": "12px", "--arrow-background": "white" } }, {
5503
5503
  default: S(() => [
5504
- Y(v(De).ArrowTip, { class: "border-l border-t border-gray-300/60" })
5504
+ Y(v(Le).ArrowTip, { class: "border-l border-t border-gray-300/60" })
5505
5505
  ]),
5506
5506
  _: 1
5507
5507
  }),
5508
- Ye(" " + Me(t.title), 1)
5508
+ Ye(" " + Ae(t.title), 1)
5509
5509
  ]),
5510
5510
  _: 1
5511
5511
  })
@@ -5582,7 +5582,7 @@ const yc = { class: "relative" }, bc = { class: "flex items-center justify-end g
5582
5582
  class: "hover:text-gray-600 text-gray-400 transition-colors cursor-pointer"
5583
5583
  }, [
5584
5584
  Y(x, { class: "w-3 h-3 rotate-180" })
5585
- ])) : Ee("", !0)
5585
+ ])) : he("", !0)
5586
5586
  ]),
5587
5587
  _: 1
5588
5588
  }),
@@ -5594,7 +5594,7 @@ const yc = { class: "relative" }, bc = { class: "flex items-center justify-end g
5594
5594
  z("div", { class: "size-1.5 bg-green-800 rotate-45" }, null, -1)
5595
5595
  ])]),
5596
5596
  _: 1
5597
- })) : Ee("", !0),
5597
+ })) : he("", !0),
5598
5598
  Y(v(Ie).Root, {
5599
5599
  "model-value": [u.currentDevice],
5600
5600
  collection: v(m),
@@ -5620,7 +5620,7 @@ const yc = { class: "relative" }, bc = { class: "flex items-center justify-end g
5620
5620
  Y(v(Ie).ItemText, { class: "flex items-center gap-2" }, {
5621
5621
  default: S(() => [
5622
5622
  (P(), D(ct(i(I.icon)), { class: "w-4 h-4" })),
5623
- Ye(" " + Me(I.label), 1)
5623
+ Ye(" " + Ae(I.label), 1)
5624
5624
  ]),
5625
5625
  _: 2
5626
5626
  }, 1024),
@@ -5658,7 +5658,7 @@ const yc = { class: "relative" }, bc = { class: "flex items-center justify-end g
5658
5658
  }, null, 8, ["render-fn", "field", "value"])) : (P(), G("div", Ec, [
5659
5659
  z("p", wc, [
5660
5660
  y[1] || (y[1] = Ye(" Unknown field type: ", -1)),
5661
- z("code", Oc, Me(u.field.type), 1)
5661
+ z("code", Oc, Ae(u.field.type), 1)
5662
5662
  ])
5663
5663
  ]))
5664
5664
  ])
@@ -5668,7 +5668,10 @@ const yc = { class: "relative" }, bc = { class: "flex items-center justify-end g
5668
5668
  }), xc = { key: 1 }, Ic = {
5669
5669
  key: 2,
5670
5670
  class: "mb-4 p-3 bg-red-50 border border-red-200 rounded-md"
5671
- }, Pc = { class: "text-sm text-red-600" }, Tc = { class: "font-mono" }, lu = /* @__PURE__ */ R({
5671
+ }, Pc = { class: "text-sm text-red-600" }, Tc = { class: "font-mono" }, _c = {
5672
+ key: 2,
5673
+ class: "text-[0.625rem] text-gray-500 mt-1 italic"
5674
+ }, cu = /* @__PURE__ */ R({
5672
5675
  __name: "PropertyField",
5673
5676
  props: {
5674
5677
  field: {},
@@ -5686,33 +5689,36 @@ const yc = { class: "relative" }, bc = { class: "flex items-center justify-end g
5686
5689
  };
5687
5690
  return (f, h) => {
5688
5691
  const u = dr;
5689
- return f.field.responsive ? (P(), D(Cc, {
5690
- key: 0,
5691
- field: f.field,
5692
- "model-value": f.modelValue,
5693
- "current-device": v(c),
5694
- "available-devices": v(l),
5695
- "onUpdate:modelValue": p,
5696
- onChangeDevice: m
5697
- }, null, 8, ["field", "model-value", "current-device", "available-devices"])) : (P(), G("div", xc, [
5698
- v(In)(v(d)) || v(lr)(v(d)) ? (P(), D(ct(v(d)), {
5692
+ return P(), G("div", null, [
5693
+ f.field.responsive ? (P(), D(Cc, {
5699
5694
  key: 0,
5700
5695
  field: f.field,
5701
5696
  "model-value": f.modelValue,
5702
- "onUpdate:modelValue": p
5703
- }, null, 8, ["field", "model-value"])) : v(cr)(v(d)) ? (P(), D(u, {
5704
- key: 1,
5705
- "render-fn": v(d),
5706
- field: f.field,
5707
- value: f.modelValue,
5708
- "on-change": p
5709
- }, null, 8, ["render-fn", "field", "value"])) : (P(), G("div", Ic, [
5710
- z("p", Pc, [
5711
- h[0] || (h[0] = Ye(" Unknown field type: ", -1)),
5712
- z("code", Tc, Me(f.field.type), 1)
5713
- ])
5714
- ]))
5715
- ]));
5697
+ "current-device": v(c),
5698
+ "available-devices": v(l),
5699
+ "onUpdate:modelValue": p,
5700
+ onChangeDevice: m
5701
+ }, null, 8, ["field", "model-value", "current-device", "available-devices"])) : (P(), G("div", xc, [
5702
+ v(In)(v(d)) || v(lr)(v(d)) ? (P(), D(ct(v(d)), {
5703
+ key: 0,
5704
+ field: f.field,
5705
+ "model-value": f.modelValue,
5706
+ "onUpdate:modelValue": p
5707
+ }, null, 8, ["field", "model-value"])) : v(cr)(v(d)) ? (P(), D(u, {
5708
+ key: 1,
5709
+ "render-fn": v(d),
5710
+ field: f.field,
5711
+ value: f.modelValue,
5712
+ "on-change": p
5713
+ }, null, 8, ["render-fn", "field", "value"])) : (P(), G("div", Ic, [
5714
+ z("p", Pc, [
5715
+ h[0] || (h[0] = Ye(" Unknown field type: ", -1)),
5716
+ z("code", Tc, Ae(f.field.type), 1)
5717
+ ])
5718
+ ]))
5719
+ ])),
5720
+ f.field.info ? (P(), G("p", _c, Ae(f.field.info), 1)) : he("", !0)
5721
+ ]);
5716
5722
  };
5717
5723
  }
5718
5724
  });
@@ -5723,8 +5729,8 @@ export {
5723
5729
  uo as C,
5724
5730
  Ao as D,
5725
5731
  Rn as E,
5726
- Bc as F,
5727
- Yc as G,
5732
+ Hc as F,
5733
+ Xc as G,
5728
5734
  Qo as H,
5729
5735
  Zo as I,
5730
5736
  gn as J,
@@ -5732,33 +5738,33 @@ export {
5732
5738
  It as L,
5733
5739
  Ei as M,
5734
5740
  Dn as N,
5735
- Kc as O,
5741
+ zc as O,
5736
5742
  Jo as P,
5737
- be as Q,
5743
+ Ee as Q,
5738
5744
  St as R,
5739
5745
  ln as S,
5740
5746
  vo as T,
5741
5747
  Ze as U,
5742
- Qc as V,
5748
+ eu as V,
5743
5749
  ei as W,
5744
5750
  Ma as X,
5745
5751
  Yo as Y,
5746
- su as Z,
5747
- au as _,
5748
- lu as a,
5752
+ au as Z,
5753
+ lu as _,
5754
+ cu as a,
5749
5755
  Mr as a0,
5750
5756
  q as a1,
5751
5757
  bo as a2,
5752
- ru as a3,
5753
- $c as a4,
5758
+ iu as a3,
5759
+ Bc as a4,
5754
5760
  wt as a5,
5755
5761
  nt as a6,
5756
5762
  Ti as a7,
5757
5763
  jt as a8,
5758
- zc as a9,
5759
- Dc as aA,
5760
- Vc as aB,
5761
- iu as aC,
5764
+ qc as a9,
5765
+ Lc as aA,
5766
+ Nc as aB,
5767
+ su as aC,
5762
5768
  ur as aD,
5763
5769
  In as aE,
5764
5770
  lr as aF,
@@ -5771,37 +5777,37 @@ export {
5771
5777
  Ht as aM,
5772
5778
  Wo as aa,
5773
5779
  dt as ab,
5774
- Gc as ac,
5775
- Hc as ad,
5780
+ Wc as ac,
5781
+ Gc as ad,
5776
5782
  Je as ae,
5777
5783
  Ci as af,
5778
- Wc as ag,
5779
- jc as ah,
5784
+ jc as ag,
5785
+ Uc as ah,
5780
5786
  ci as ai,
5781
- Uc as aj,
5782
- Rc as ak,
5783
- kc as al,
5784
- Lc as am,
5787
+ Kc as aj,
5788
+ Dc as ak,
5789
+ Rc as al,
5790
+ Vc as am,
5785
5791
  W as an,
5786
5792
  Oi as ao,
5787
5793
  ki as ap,
5788
5794
  li as aq,
5789
- qc as ar,
5790
- tu as as,
5791
- Zc as at,
5795
+ Yc as ar,
5796
+ nu as as,
5797
+ Qc as at,
5792
5798
  ii as au,
5793
5799
  Di as av,
5794
- Fc as aw,
5795
- Nc as ax,
5796
- Mc as ay,
5800
+ $c as aw,
5801
+ Mc as ax,
5802
+ Fc as ay,
5797
5803
  an as az,
5798
5804
  B as b,
5799
5805
  le as c,
5800
- eu as d,
5801
- he as e,
5806
+ tu as d,
5807
+ me as e,
5802
5808
  M as f,
5803
5809
  Eo as g,
5804
- Ve as h,
5810
+ Ne as h,
5805
5811
  $e as i,
5806
5812
  _o as j,
5807
5813
  ko as k,
@@ -5815,9 +5821,9 @@ export {
5815
5821
  Io as s,
5816
5822
  hn as t,
5817
5823
  F as u,
5818
- Jc as v,
5824
+ Zc as v,
5819
5825
  ht as w,
5820
- Xc as x,
5821
- Sc as y,
5822
- Ac as z
5826
+ Jc as x,
5827
+ kc as y,
5828
+ Sc as z
5823
5829
  };