@fest-lib/dom 0.1.8 → 0.1.10

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.
Files changed (3) hide show
  1. package/dist/dom.js +535 -596
  2. package/package.json +1 -1
  3. package/dist/index.js +0 -1713
package/dist/dom.js CHANGED
@@ -1,4 +1,5 @@
1
- var Je = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), Me = globalThis[Je] ??= /* @__PURE__ */ new Set();
1
+ import { $avoidTrigger as B, camelToKebab as ee, cvt_cs_to_os as Se, hasValue as E, isArrayOrIterable as Xe, isVal as Ye, isValueUnit as Ge, kebabToCamel as Oe, normalizeGridLayout as Je, normalizePrimitive as he, resolveLocalPointToGridCell as Ke, tryStringAsNumber as We } from "@fest-lib/core";
2
+ var Qe = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), we = globalThis[Qe] ??= /* @__PURE__ */ new Set();
2
3
  [
3
4
  {
4
5
  name: "--screen-width",
@@ -195,22 +196,22 @@ var Je = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), Me = gl
195
196
  ].forEach((e) => {
196
197
  if (typeof CSS > "u" || typeof CSS?.registerProperty != "function") return;
197
198
  const t = String(e?.name || "").trim();
198
- if (!(!t || Me.has(t)))
199
+ if (!(!t || we.has(t)))
199
200
  try {
200
201
  CSS.registerProperty(e);
201
202
  } catch (n) {
202
203
  String(n?.name || "").toLowerCase() !== "invalidmodificationerror" && console.warn(n);
203
204
  } finally {
204
- Me.add(t);
205
+ we.add(t);
205
206
  }
206
207
  });
207
- var yn = () => {
208
- }, Ke = () => {
208
+ var nn = () => {
209
+ }, et = () => {
209
210
  let e = navigator?.userAgentData?.mobile || !1;
210
211
  return ((t) => {
211
212
  (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0);
212
213
  })(navigator.userAgent || navigator.vendor || globalThis.opera), e;
213
- }, gn = () => [
214
+ }, rn = () => [
214
215
  /Android/i,
215
216
  /webOS/i,
216
217
  /iPhone/i,
@@ -218,80 +219,19 @@ var yn = () => {
218
219
  /iPod/i,
219
220
  /BlackBerry/i,
220
221
  /Windows Phone/i
221
- ].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches, le = (e, t = "value") => (typeof e == "object" || typeof e == "function") && e != null && (t in e || e?.[t] != null), M = (e) => le(e, "value"), te = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Fe = (e) => e && e?.replace?.(/-([a-z])/g, (t, n) => n.toUpperCase()), Qe = (e) => typeof CSSStyleValue < "u" && e instanceof CSSStyleValue, et = (e) => e != null && (typeof e == "boolean" ? e !== !1 : !0) && typeof e != "object" && typeof e != "function", ge = (e) => typeof e == "boolean" ? e ? "" : null : typeof e == "number" ? String(e) : e, Ee = /* @__PURE__ */ Symbol.for("@trigger-lock"), B = (e, t, n = "value") => {
222
- le(e, n) && (e[Ee] = !0);
223
- let r;
224
- try {
225
- r = t?.();
226
- } finally {
227
- le(e, n) && delete e[Ee];
228
- }
229
- return r;
230
- }, Ie = (e) => {
231
- if (typeof e != "string") return null;
232
- const t = [...e?.matchAll?.(/^\d+(\.\d+)?$/g)];
233
- if (t?.length != 1) return null;
234
- const n = parseFloat(t[0][0]);
235
- return !Number.isNaN(n) && Number.isFinite(n) ? n : null;
236
- }, tt = (e) => Array.isArray(e) || e != null && typeof e == "object" && typeof e[Symbol.iterator] == "function", de = (e, t, n = 0) => {
237
- const r = [...t], i = [...e];
238
- return n % 2 && (i.reverse(), r.reverse()), [(n == 0 || n == 3 ? i[0] : r[0] - i[0]) || 0, (n == 0 || n == 1 ? i[1] : r[1] - i[1]) || 0];
239
- }, H = (e, t = [4, 8]) => {
240
- if (Array.isArray(e) && e.length >= 2) return [Math.max(1, Math.floor(Number(e[0]) || t[0])), Math.max(1, Math.floor(Number(e[1]) || t[1]))];
241
- if (e && typeof e == "object") {
242
- const n = e;
243
- return [Math.max(1, Math.floor(Number(n.columns) || t[0])), Math.max(1, Math.floor(Number(n.rows) || t[1]))];
244
- }
245
- return [t[0], t[1]];
246
- }, nt = (e, t) => {
247
- const [n, r] = H(t);
248
- return [Math.max(0, Math.min(n - 1, Math.floor(Number(e[0]) || 0))), Math.max(0, Math.min(r - 1, Math.floor(Number(e[1]) || 0)))];
249
- }, rt = (e, t, n, r, i) => {
250
- const s = H(n), a = Math.max(1, t[0] || 1), o = Math.max(1, t[1] || 1), u = de(e, [a, o], r), p = {
251
- item: i?.redirect?.item ?? { id: "" },
252
- list: i?.redirect?.list ?? [],
253
- items: i?.redirect?.items ?? /* @__PURE__ */ new Map(),
254
- layout: s,
255
- size: [a, o]
256
- }, d = at(u, p, r), h = (i?.mode ?? "floor") === "round" ? [Math.round(d[0]), Math.round(d[1])] : [Math.floor(d[0]), Math.floor(d[1])], c = ot(h, p);
257
- return nt(c, s);
258
- }, it = (e) => e == null ? [] : Array.isArray(e) ? e : e instanceof Map ? Array.from(e.values()) : e instanceof Set || typeof e[Symbol.iterator] == "function" ? Array.from(e) : [], ot = (e, t) => {
259
- const n = H(t?.layout ?? [4, 8]), r = {
260
- ...t,
261
- layout: n
262
- }, i = it(r?.items), s = r?.item || {}, a = (f) => i.filter((y) => !(y == s || y?.id == s?.id)).some((y) => (y?.cell?.[0] || 0) == (f[0] || 0) && (y?.cell?.[1] || 0) == (f[1] || 0)), o = [...e];
263
- if (!a(o)) return [...o];
264
- const u = n[0] || 4, p = n[1] || 8, d = ([
265
- [o[0] + 1, o[1]],
266
- [o[0] - 1, o[1]],
267
- [o[0], o[1] + 1],
268
- [o[0], o[1] - 1]
269
- ].filter((f) => f[0] >= 0 && f[0] < u && f[1] >= 0 && f[1] < p) || []).find((f) => !a(f));
270
- if (d) return [...d];
271
- let h = 0, c = !0, l = [...o];
272
- for (; c && h++ < u * p; ) {
273
- if (!(c = a(l))) return [...l];
274
- l[0]++, l[0] >= u && (l[0] = 0, l[1]++, l[1] >= p && (l[1] = 0));
275
- }
276
- return [...o];
277
- }, at = (e, t, n = 0) => {
278
- const r = [...t.size], i = [...e], s = H(t.layout ?? [4, 8]);
279
- n % 2 && r.reverse();
280
- const a = [s[0] / r[0], s[1] / r[1]];
281
- return [i[0] * a[0], i[1] * a[1]];
282
- }, st = () => ({
222
+ ].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches, tt = () => ({
283
223
  didTimeout: !1,
284
224
  timeRemaining: () => 0
285
- }), Ae = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(st()), 0), ut = (e) => e?.offsetParent ?? e?.host, vn = (e) => {
225
+ }), xe = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(tt()), 0), nt = (e) => e?.offsetParent ?? e?.host, on = (e) => {
286
226
  const t = [];
287
227
  let n = e;
288
228
  for (; n; ) {
289
- const r = ut(n);
229
+ const r = nt(n);
290
230
  if (r && r instanceof HTMLHtmlElement) break;
291
231
  (n = r) && t.push(n);
292
232
  }
293
233
  return t;
294
- }, bn = (e, t = 1e-6) => Math.abs(e.a - 1) < t && Math.abs(e.b) < t && Math.abs(e.c) < t && Math.abs(e.d - 1) < t && Math.abs(e.e) < t && Math.abs(e.f) < t, ct = () => {
234
+ }, an = (e, t = 1e-6) => Math.abs(e.a - 1) < t && Math.abs(e.b) < t && Math.abs(e.c) < t && Math.abs(e.d - 1) < t && Math.abs(e.e) < t && Math.abs(e.f) < t, rt = () => {
295
235
  const e = {
296
236
  canceled: !1,
297
237
  rAFs: /* @__PURE__ */ new Set(),
@@ -311,25 +251,25 @@ var yn = () => {
311
251
  setTimeout(t, 16);
312
252
  });
313
253
  })(), e;
314
- }, Sn = (e = ct()) => (t) => e.shedule(t), wn = typeof document < "u" ? document?.documentElement : null, xn = (e, t = {}) => {
254
+ }, sn = (e = rt()) => (t) => e.shedule(t), cn = typeof document < "u" ? document?.documentElement : null, un = (e, t = {}) => {
315
255
  if (!(!t || typeof t != "object" || !e))
316
256
  return Array.from(Object.entries(t)).map(([n, r]) => {
317
257
  const i = e.getAttribute(n);
318
258
  r == null ? e.removeAttribute(n) : r != i && e.setAttribute(n, i == "" ? r ?? i : i ?? r);
319
259
  });
320
- }, Mn = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
260
+ }, dn = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
321
261
  r == null ? e.removeAttribute(n) : e.setAttribute(n, r ?? e.getAttribute(n));
322
- }), lt = /* @__PURE__ */ new Map(), En = (e, t = 1e3, ...n) => {
262
+ }), it = /* @__PURE__ */ new Map(), ln = (e, t = 1e3, ...n) => {
323
263
  const r = {
324
264
  running: !0,
325
265
  cancel: () => {
326
266
  r.running = !1;
327
267
  }
328
268
  };
329
- return Ae(async () => {
269
+ return xe(async () => {
330
270
  if (!(!e || typeof e != "function")) {
331
271
  for (; r.running; )
332
- await Promise.all([Promise.try(e, ...n), new Promise((i) => setTimeout(i, t))]).catch?.(console.warn.bind(console)), await Promise.any([new Promise((i) => Ae(i, t)), new Promise((i) => setTimeout(i, t))]);
272
+ await Promise.all([Promise.try(e, ...n), new Promise((i) => setTimeout(i, t))]).catch?.(console.warn.bind(console)), await Promise.any([new Promise((i) => xe(i, t)), new Promise((i) => setTimeout(i, t))]);
333
273
  r.cancel = () => {
334
274
  };
335
275
  }
@@ -337,67 +277,67 @@ var yn = () => {
337
277
  };
338
278
  typeof requestAnimationFrame < "u" && requestAnimationFrame(async () => {
339
279
  for (; ; )
340
- lt.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
280
+ it.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
341
281
  });
342
- var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol("@border-box-height"), G = /* @__PURE__ */ Symbol("@content-box-width"), J = /* @__PURE__ */ Symbol("@content-box-height"), Ce = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), An = (e, t = () => {
282
+ var U = /* @__PURE__ */ Symbol("@border-box-width"), X = /* @__PURE__ */ Symbol("@border-box-height"), Y = /* @__PURE__ */ Symbol("@content-box-width"), G = /* @__PURE__ */ Symbol("@content-box-height"), Ee = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), fn = (e, t = () => {
343
283
  }) => {
344
- if (e instanceof HTMLElement && !Re.has(e)) {
345
- e[G] = e.clientWidth, e[J] = e.clientHeight;
284
+ if (e instanceof HTMLElement && !Ae.has(e)) {
285
+ e[Y] = e.clientWidth, e[G] = e.clientHeight;
346
286
  const n = new ResizeObserver((r) => {
347
287
  for (const i of r) if (i.contentBoxSize) {
348
288
  const s = i.contentBoxSize[0];
349
- s && (e[G] = Math.min(s.inlineSize, e.clientWidth), e[J] = Math.min(s.blockSize, e.clientHeight), t?.(e));
289
+ s && (e[Y] = Math.min(s.inlineSize, e.clientWidth), e[G] = Math.min(s.blockSize, e.clientHeight), t?.(e));
350
290
  }
351
291
  });
352
- Re.set(e, n), n.observe(e?.element ?? e, { box: "content-box" });
292
+ Ae.set(e, n), n.observe(e?.element ?? e, { box: "content-box" });
353
293
  }
354
- }, Cn = (e, t = () => {
294
+ }, pn = (e, t = () => {
355
295
  }) => {
356
- if (e instanceof HTMLElement && !Ce.has(e)) {
357
- e[X] = e.offsetWidth, e[Y] = e.offsetHeight;
296
+ if (e instanceof HTMLElement && !Ee.has(e)) {
297
+ e[U] = e.offsetWidth, e[X] = e.offsetHeight;
358
298
  const n = new ResizeObserver((r) => {
359
299
  for (const i of r) if (i.borderBoxSize) {
360
300
  const s = i.borderBoxSize[0];
361
- s && (e[X] = Math.min(s.inlineSize, e.offsetWidth), e[Y] = Math.min(s.blockSize, e.offsetHeight), t?.(e));
301
+ s && (e[U] = Math.min(s.inlineSize, e.offsetWidth), e[X] = Math.min(s.blockSize, e.offsetHeight), t?.(e));
362
302
  }
363
303
  });
364
- Ce.set(e, n), n.observe(e?.element ?? e, { box: "border-box" });
304
+ Ee.set(e, n), n.observe(e?.element ?? e, { box: "border-box" });
365
305
  }
366
- }, Rn = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), Pn = (e, t = "text/html") => {
306
+ }, hn = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), mn = (e, t = "text/html") => {
367
307
  const n = new DOMParser().parseFromString(e, t);
368
308
  return n.querySelector("template") ?? n.querySelector("*");
369
- }, zn = (e, t, n) => {
309
+ }, yn = (e, t, n) => {
370
310
  t != null && e.checked != t && (e?.type == "checkbox" || e?.type == "radio" && !e?.checked ? (e?.click?.(), n?.preventDefault?.()) : (e.checked = !!t, e?.dispatchEvent?.(new Event("change", {
371
311
  bubbles: !0,
372
312
  cancelable: !0
373
313
  }))));
374
- }, Tn = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, Ln = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, kn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", Vn = `^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`, jn = (e) => {
314
+ }, gn = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, vn = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, bn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", Sn = `^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`, wn = (e) => {
375
315
  if (e == ":fragment:") return document.createDocumentFragment();
376
316
  const t = document.createElement.bind(document);
377
317
  for (var n = t("div"), r, i = ""; e && (r = e.match(`^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`)); )
378
318
  r[1] && (n = t(r[1])), r[2] && (n.id = r[2]), r[3] && (i += " " + r[3]), r[4] && n.setAttribute(r[4], r[7] || ""), e = e.slice(r[0].length);
379
319
  return i && (n.className = i.slice(1)), n;
380
- }, On = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, Nn = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), re = (e, t) => {
320
+ }, xn = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, En = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), ne = (e, t) => {
381
321
  for (; e; ) {
382
322
  if (!(e?.element ?? e)) return !1;
383
323
  if ((e?.element ?? e) === (t?.element ?? t)) return !0;
384
324
  e = e.parentElement ?? (e.parentNode == e?.getRootNode?.({ composed: !0 }) ? e?.getRootNode?.({ composed: !0 })?.host : e?.parentNode);
385
325
  }
386
- }, $e = {};
387
- function m(e, t, n, r = $e) {
326
+ }, Fe = {};
327
+ function m(e, t, n, r = Fe) {
388
328
  e?.addEventListener?.(t, n, r);
389
329
  const i = typeof e == "object" || typeof e == "function" && !e?.deref ? new WeakRef(e) : e;
390
330
  return () => i?.deref?.()?.removeEventListener?.(t, n, r);
391
331
  }
392
- function Pe(e, t, n, r = $e) {
332
+ function Me(e, t, n, r = Fe) {
393
333
  e?.removeEventListener?.(t, n, r);
394
334
  }
395
- var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? m(e, n, ...r) : m(e, n, r))), Wn = (e, t) => {
335
+ var J = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? m(e, n, ...r) : m(e, n, r))), An = (e, t) => {
396
336
  if (t) {
397
337
  let n = t;
398
- return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((tt(i) ? [...i] : i) ?? [])?.map?.((s) => m(e, r, s)));
338
+ return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((Xe(i) ? [...i] : i) ?? [])?.map?.((s) => m(e, r, s)));
399
339
  }
400
- }, Fn = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? Pe(e, n, ...r) : Pe(e, n, r))), In = (e) => {
340
+ }, Mn = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? Me(e, n, ...r) : Me(e, n, r))), Cn = (e) => {
401
341
  if (!e) return null;
402
342
  if (e?.composedPath && typeof e.composedPath == "function") {
403
343
  const n = e.composedPath();
@@ -405,7 +345,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
405
345
  }
406
346
  const t = e?.target;
407
347
  return t instanceof HTMLElement || t instanceof Element ? t : null;
408
- }, $n = (e, t, n) => {
348
+ }, Rn = (e, t, n) => {
409
349
  if (t == null || !(t instanceof Node) && t?.element == null) return !1;
410
350
  if (e == t || (e?.element ?? e) == (t?.element ?? t)) return !0;
411
351
  if (n?.composedPath && typeof n.composedPath == "function") {
@@ -416,42 +356,43 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
416
356
  }
417
357
  }
418
358
  return !!(e?.contains?.(t?.element ?? t) || e?.getRootNode({ composed: !0 })?.host == (t?.element ?? t));
419
- }, fe = (e, t, n) => {
359
+ }, ue = (e, t, n) => {
420
360
  if (n?.composedPath && typeof n.composedPath == "function") {
421
361
  const o = n.composedPath();
422
- for (const u of o) if ((u instanceof HTMLElement || u instanceof Element) && u.matches?.(t))
423
- return u;
362
+ for (const c of o) if ((c instanceof HTMLElement || c instanceof Element) && c.matches?.(t))
363
+ return c;
424
364
  }
425
365
  const r = e?.matches?.(t) ? e : null, i = (e?.getRootNode({ composed: !0 }) ?? e?.parentElement?.getRootNode({ composed: !0 }))?.host, s = i?.matches?.(t) ? i : null, a = e?.closest?.(t) ?? r?.closest?.(t) ?? s?.closest?.(t) ?? null;
426
366
  return r ?? a ?? s;
427
- }, Bn = (e, t) => !!fe(e, t), Hn = (e, t, n = "parent") => {
367
+ }, Pn = (e, t) => !!ue(e, t), kn = (e, t, n = "parent") => {
428
368
  if (!e || e.checkVisibility && !e.checkVisibility({
429
369
  checkOpacity: !0,
430
370
  checkVisibilityCSS: !0
431
371
  }) || !e.checkVisibility && e.offsetParent === null && e.style.position !== "fixed") return !1;
432
372
  let r = document.activeElement;
433
373
  for (; r && r.shadowRoot && r.shadowRoot.activeElement; ) r = r.shadowRoot.activeElement;
434
- const i = r === e || re(r, e), s = e.matches(":hover");
374
+ const i = r === e || ne(r, e), s = e.matches(":hover");
435
375
  if (!i && !s && !t) return !1;
436
376
  if (t) {
437
377
  if (typeof t == "string") {
438
- if (n === "parent") return !!fe(e, t);
378
+ if (n === "parent") return !!ue(e, t);
439
379
  {
440
- const a = i ? r : e.querySelector(":hover") || e, o = !!fe(a, t);
380
+ const a = i ? r : e.querySelector(":hover") || e, o = !!ue(a, t);
441
381
  return e?.querySelector?.(t) != null || e?.matches?.(t) || o;
442
382
  }
443
- } else if (t instanceof HTMLElement) return n === "parent" ? re(e, t) || !1 : re(t, e) || !1;
383
+ } else if (t instanceof HTMLElement)
384
+ return n === "parent" ? ne(e, t) || !1 : ne(t, e) || !1;
444
385
  }
445
386
  return !0;
446
- }, qn = () => "currentCSSZoom" in document.documentElement ? document.documentElement.currentCSSZoom || 1 : parseFloat(document.documentElement.style.getPropertyValue("--scaling") || "1") || 1, dt = /* @__PURE__ */ Symbol.for("dom.ts@zoomValues"), ft = globalThis[dt] ??= /* @__PURE__ */ new WeakMap(), pt = (e = document.documentElement) => ft.getOrInsertComputed(e, () => {
387
+ }, zn = () => "currentCSSZoom" in document.documentElement ? document.documentElement.currentCSSZoom || 1 : parseFloat(document.documentElement.style.getPropertyValue("--scaling") || "1") || 1, ot = /* @__PURE__ */ Symbol.for("dom.ts@zoomValues"), at = globalThis[ot] ??= /* @__PURE__ */ new WeakMap(), st = (e = document.documentElement) => at.getOrInsertComputed(e, () => {
447
388
  const t = (e?.matches?.(".ui-orientbox") ? e : null) || e?.closest?.(".ui-orientbox") || document.body;
448
389
  if (t?.zoom) return t?.zoom || 1;
449
390
  if (e?.currentCSSZoom) return e?.currentCSSZoom || 1;
450
- }), _n = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
391
+ }), Ln = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
451
392
  detail: { zoom: e },
452
393
  bubbles: !0,
453
394
  cancelable: !0
454
- })), e), Zn = (e = document.documentElement) => (e?.currentCSSZoom != null ? 1 : pt(e)) || 1, pe = (e = document.documentElement) => (e?.currentCSSZoom == null ? 1 : e?.currentCSSZoom) || 1, z = (e = document.documentElement) => {
395
+ })), e), Tn = (e = document.documentElement) => (e?.currentCSSZoom != null ? 1 : st(e)) || 1, de = (e = document.documentElement) => (e?.currentCSSZoom == null ? 1 : e?.currentCSSZoom) || 1, k = (e = document.documentElement) => {
455
396
  const t = (e?.matches?.('[orient], [data-mixin="ui-orientbox"]') ? e : null) || e?.closest?.('[orient], [data-mixin="ui-orientbox"]') || e;
456
397
  if (t?.hasAttribute?.("orient")) return parseInt(t?.getAttribute?.("orient") || "0") || 0;
457
398
  if (t?.orient != null && Number.isFinite(Number(t.orient))) return Number(t.orient) || 0;
@@ -461,27 +402,27 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
461
402
  } catch {
462
403
  }
463
404
  return 0;
464
- }, Dn = (e, t = null) => {
465
- const n = pe(e) || 1, r = e?.getBoundingClientRect?.(), i = {
405
+ }, Vn = (e, t = null) => {
406
+ const n = de(e) || 1, r = e?.getBoundingClientRect?.(), i = {
466
407
  left: r?.left / n,
467
408
  right: r?.right / n,
468
409
  top: r?.top / n,
469
410
  bottom: r?.bottom / n,
470
411
  width: r?.width / n,
471
412
  height: r?.height / n
472
- }, s = t ?? (z(e) || 0), a = typeof window < "u" ? window.visualViewport : null, o = [((a?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((a?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [u, p] = de([i.left, i.top], o, s), [d, h] = de([i.right, i.bottom], o, s), [c, l] = s == 0 || s == 3 ? [u, d] : [d, u], [f, y] = s == 0 || s == 1 ? [p, h] : [h, p], [_, Ge] = s % 2 ? [i.height, i.width] : [i.width, i.height];
413
+ }, s = t ?? (k(e) || 0), a = typeof window < "u" ? window.visualViewport : null, o = [((a?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((a?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [c, u] = Se([i.left, i.top], o, s), [l, h] = Se([i.right, i.bottom], o, s), [d, f] = s == 0 || s == 3 ? [c, l] : [l, c], [p, y] = s == 0 || s == 1 ? [u, h] : [h, u], [q, Ue] = s % 2 ? [i.height, i.width] : [i.width, i.height];
473
414
  return {
474
- left: c,
475
- top: f,
476
- right: l,
415
+ left: d,
416
+ top: p,
417
+ right: f,
477
418
  bottom: y,
478
- width: _,
479
- height: Ge
419
+ width: q,
420
+ height: Ue
480
421
  };
481
- }, Un = (e, t = null) => (t ?? z(e)) % 2 ? e[Y] ?? e?.clientHeight : e[X] ?? e?.clientWidth, Xn = (e, t = null) => (t ?? z(e)) % 2 ? e[X] ?? e?.clientWidth : e[Y] ?? e?.clientHeight, Yn = (e, t = null) => (t ?? z(e)) % 2 ? e[J] ?? e?.clientHeight : e[G] ?? e?.clientWidth, Gn = (e, t = null) => (t ?? z(e)) % 2 ? e[G] ?? e?.clientWidth : e[J] ?? e?.clientHeight, ht = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
422
+ }, jn = (e, t = null) => (t ?? k(e)) % 2 ? e[X] ?? e?.clientHeight : e[U] ?? e?.clientWidth, On = (e, t = null) => (t ?? k(e)) % 2 ? e[U] ?? e?.clientWidth : e[X] ?? e?.clientHeight, Wn = (e, t = null) => (t ?? k(e)) % 2 ? e[G] ?? e?.clientHeight : e[Y] ?? e?.clientWidth, Fn = (e, t = null) => (t ?? k(e)) % 2 ? e[Y] ?? e?.clientWidth : e[G] ?? e?.clientHeight, ct = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
482
423
  didTimeout: !1,
483
424
  timeRemaining: () => 0
484
- }), 0), Be = () => {
425
+ }), 0), Ie = () => {
485
426
  const e = typeof matchMedia < "u" ? matchMedia("(orientation: landscape)")?.matches : !1, t = typeof window < "u" ? window.visualViewport : null, n = t ? {
486
427
  "--vv-width": `${t.width}px`,
487
428
  "--vv-height": `${t.height}px`,
@@ -516,35 +457,35 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
516
457
  "--pixel-ratio": "1",
517
458
  ...n
518
459
  };
519
- }, he = Be(), Jn = [[":root, :host, :scope", he]], mt = {
460
+ }, le = Ie(), In = [[":root, :host, :scope", le]], ut = {
520
461
  "portrait-primary": 0,
521
462
  "landscape-primary": 1,
522
463
  "portrait-secondary": 2,
523
464
  "landscape-secondary": 3
524
- }, yt = (e) => {
465
+ }, dt = (e) => {
525
466
  const t = document.documentElement;
526
- Object.assign(he, Be()), Object.entries(he).forEach(([n, r]) => {
467
+ Object.assign(le, Ie()), Object.entries(le).forEach(([n, r]) => {
527
468
  const i = t?.style?.getPropertyValue(n);
528
469
  (!i || i != r) && t?.style?.setProperty?.(n, r || "", "");
529
470
  }), document.documentElement.style.setProperty("--orientation-secondary", screen?.orientation?.type?.endsWith?.("secondary") ? "1" : "0");
530
- }, gt = () => {
471
+ }, lt = () => {
531
472
  let e = screen?.orientation?.type || "portrait-primary";
532
473
  return globalThis.matchMedia("((display-mode: fullscreen) or (display-mode: standalone) or (display-mode: window-controls-overlay))").matches || (matchMedia("(orientation: portrait)").matches ? e = e.replace("landscape", "portrait") : matchMedia("(orientation: landscape)").matches && (e = e.replace("portrait", "landscape"))), e;
533
- }, ie = { passive: !0 }, vt = (e) => {
474
+ }, re = { passive: !0 }, ft = (e) => {
534
475
  let t = !1;
535
476
  const n = () => {
536
477
  t || (requestAnimationFrame(() => {
537
- yt(), e(), t = !1;
478
+ dt(), e(), t = !1;
538
479
  }), t = !0);
539
480
  }, r = [];
540
- return r.push(m(navigator?.virtualKeyboard, "geometrychange", n, ie)), r.push(m(window?.visualViewport, "scroll", n, ie)), r.push(m(window?.visualViewport, "resize", n, ie)), r.push(m(screen?.orientation, "change", n)), r.push(m(window, "resize", n)), r.push(m(document?.documentElement, "fullscreenchange", n)), r.push(m(document, "DOMContentLoaded", n)), r.push(m(matchMedia("(orientation: portrait)"), "change", n)), r.push(m(matchMedia("(orientation: landscape)"), "change", n)), n(), ht(() => n(), 100), () => r.forEach((i) => i());
541
- }, Kn = (e) => {
481
+ return r.push(m(navigator?.virtualKeyboard, "geometrychange", n, re)), r.push(m(window?.visualViewport, "scroll", n, re)), r.push(m(window?.visualViewport, "resize", n, re)), r.push(m(screen?.orientation, "change", n)), r.push(m(window, "resize", n)), r.push(m(document?.documentElement, "fullscreenchange", n)), r.push(m(document, "DOMContentLoaded", n)), r.push(m(matchMedia("(orientation: portrait)"), "change", n)), r.push(m(matchMedia("(orientation: landscape)"), "change", n)), n(), ct(() => n(), 100), () => r.forEach((i) => i());
482
+ }, $n = (e) => {
542
483
  if (!e?.classList?.contains?.("native-portrait-optimized"))
543
- return e?.classList?.add?.("native-portrait-optimized"), vt(() => {
544
- const t = mt?.[gt()] ?? 0;
484
+ return e?.classList?.add?.("native-portrait-optimized"), ft(() => {
485
+ const t = ut?.[lt()] ?? 0;
545
486
  e.orient = t, e.setAttribute?.("orient", String(t)), e.style?.setProperty?.("--orient", String(t));
546
487
  });
547
- }, R = new OffscreenCanvas(1, 1).getContext("2d"), He = (e, t) => {
488
+ }, R = new OffscreenCanvas(1, 1).getContext("2d"), $e = (e, t) => {
548
489
  const n = getComputedStyle(e, "");
549
490
  if (t && n) {
550
491
  const r = n.getPropertyValue("font-weight") || "normal", i = n.getPropertyValue("font-size") || "16px", s = n.getPropertyValue("font-family") || "Times New Roman", a = n.getPropertyValue("font-stretch") || "normal";
@@ -569,22 +510,22 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
569
510
  } catch {
570
511
  }
571
512
  }
572
- }, bt = (e, t) => {
513
+ }, pt = (e, t) => {
573
514
  if (R) {
574
- He(t, R);
515
+ $e(t, R);
575
516
  try {
576
517
  return R.measureText(e);
577
518
  } catch {
578
519
  }
579
520
  }
580
521
  return { width: null };
581
- }, Qn = (e) => {
522
+ }, Nn = (e) => {
582
523
  const t = e.value.slice(0, e.selectionEnd || 0);
583
- return bt(t, e);
584
- }, St = (e, t) => {
524
+ return pt(t, e);
525
+ }, ht = (e, t) => {
585
526
  const n = e?.value || "";
586
527
  if (R) {
587
- He(e, R);
528
+ $e(e, R);
588
529
  let r = 0;
589
530
  for (let i = 0; i < n.length; i++) {
590
531
  if (r = R.measureText(n.slice(0, i))?.width, r == null) return n.length;
@@ -592,18 +533,18 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
592
533
  }
593
534
  }
594
535
  return n.length;
595
- }, er = (e, t) => {
596
- const n = e.getBoundingClientRect(), r = [t[0] - n.left / pe(), t[1] - n.top / pe()];
597
- return St(e, r);
598
- }, wt = (e, t) => {
599
- const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i = H(t ?? [4, 8]);
536
+ }, Bn = (e, t) => {
537
+ const n = e.getBoundingClientRect(), r = [t[0] - n.left / de(), t[1] - n.top / de()];
538
+ return ht(e, r);
539
+ }, mt = (e, t) => {
540
+ const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i = Je(t ?? [4, 8]);
600
541
  return [Number.isFinite(n) && n > 0 ? n : i[0], Number.isFinite(r) && r > 0 ? r : i[1]];
601
- }, tr = (e, t, n, r = "floor") => {
542
+ }, Hn = (e, t, n, r = "floor") => {
602
543
  if (!e) return [0, 0];
603
544
  const i = e.getBoundingClientRect?.();
604
545
  if (!i) return [0, 0];
605
- const s = wt(e, n?.layout), a = z(e), o = globalThis.getComputedStyle?.(e), u = parseFloat(o?.paddingLeft) || 0, p = parseFloat(o?.paddingTop) || 0, d = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, c = Math.max(1, (i.width || e.clientWidth || 1) - u - d), l = Math.max(1, (i.height || e.clientHeight || 1) - p - h);
606
- return rt([(t?.[0] || 0) - i.left - u, (t?.[1] || 0) - i.top - p], [c, l], s, a, {
546
+ const s = mt(e, n?.layout), a = k(e), o = globalThis.getComputedStyle?.(e), c = parseFloat(o?.paddingLeft) || 0, u = parseFloat(o?.paddingTop) || 0, l = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, d = Math.max(1, (i.width || e.clientWidth || 1) - c - l), f = Math.max(1, (i.height || e.clientHeight || 1) - u - h), p = [(t?.[0] || 0) - i.left - c, (t?.[1] || 0) - i.top - u];
547
+ return Ke(p, [d, f], s, a, {
607
548
  mode: r,
608
549
  redirect: {
609
550
  item: n?.item,
@@ -611,7 +552,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
611
552
  items: n?.items
612
553
  }
613
554
  });
614
- }, xt = async (e) => {
555
+ }, yt = async (e) => {
615
556
  const t = () => {
616
557
  e?.hasAttribute?.("data-hidden") || (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-appear", {
617
558
  detail: {},
@@ -651,14 +592,14 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
651
592
  pointerEvents: "revert-layer"
652
593
  }
653
594
  ], {
654
- duration: Ke() ? 100 : 80,
595
+ duration: et() ? 100 : 80,
655
596
  easing: "linear",
656
597
  delay: 0
657
598
  });
658
599
  let r = !1;
659
600
  const i = () => {
660
601
  r || (r = !0, s?.forEach?.((a) => a?.()), n.currentTime = 1, n.finish(), t?.());
661
- }, s = K(e, {
602
+ }, s = J(e, {
662
603
  "u2-before-hide": [i, {
663
604
  once: !0,
664
605
  passive: !0
@@ -673,8 +614,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
673
614
  const { resolve: n, reject: r, promise: i } = Promise.withResolvers(), s = requestAnimationFrame(n);
674
615
  let a = !1;
675
616
  const o = () => {
676
- a || (a = !0, u?.forEach?.((p) => p?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
677
- }, u = K(e, {
617
+ a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
618
+ }, c = J(e, {
678
619
  "u2-before-hide": [o, {
679
620
  once: !0,
680
621
  passive: !0
@@ -686,7 +627,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
686
627
  });
687
628
  await i, o?.();
688
629
  }
689
- }, Mt = async (e) => {
630
+ }, gt = async (e) => {
690
631
  const t = () => {
691
632
  e?.hasAttribute?.("data-hidden") && (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-hidden", {
692
633
  detail: {},
@@ -729,7 +670,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
729
670
  let r = !1;
730
671
  const i = () => {
731
672
  r || (r = !0, s?.forEach?.((a) => a?.()), n.currentTime = 1, n.finish(), t?.());
732
- }, s = K(e, { "u2-before-show": [i, {
673
+ }, s = J(e, { "u2-before-show": [i, {
733
674
  once: !0,
734
675
  passive: !0
735
676
  }] });
@@ -738,8 +679,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
738
679
  const { resolve: n, reject: r, promise: i } = Promise.withResolvers(), s = requestAnimationFrame(n);
739
680
  let a = !1;
740
681
  const o = () => {
741
- a || (a = !0, u?.forEach?.((p) => p?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
742
- }, u = K(e, {
682
+ a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
683
+ }, c = J(e, {
743
684
  "u2-before-hide": [o, {
744
685
  once: !0,
745
686
  passive: !0
@@ -751,8 +692,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
751
692
  });
752
693
  await i, o?.();
753
694
  }
754
- }, Et = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), T = globalThis[Et] ??= /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), L = globalThis[At] ??= /* @__PURE__ */ new WeakMap(), q = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), nr = (e, t) => {
755
- if (!L.has(e = q(e))) {
695
+ }, vt = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), z = globalThis[vt] ??= /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), L = globalThis[bt] ??= /* @__PURE__ */ new WeakMap(), H = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), qn = (e, t) => {
696
+ if (!L.has(e = H(e))) {
756
697
  const n = [], r = new ResizeObserver((i) => {
757
698
  for (const s of i) if (s.contentBoxSize) {
758
699
  const a = s.contentBoxSize[0];
@@ -765,8 +706,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
765
706
  }, r), L.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
766
707
  }
767
708
  return L.get(e)?.push?.(t), { disconnect: () => L.get(e)?.splice?.(L.get(e)?.indexOf(t) || -1, 1) };
768
- }, rr = (e, t) => {
769
- if (!T.has(e = q(e))) {
709
+ }, _n = (e, t) => {
710
+ if (!z.has(e = H(e))) {
770
711
  const n = [], r = new ResizeObserver((i) => {
771
712
  for (const s of i) if (s.borderBoxSize) {
772
713
  const a = s.borderBoxSize[0];
@@ -776,15 +717,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
776
717
  t?.({
777
718
  inlineSize: e.offsetWidth,
778
719
  blockSize: e.offsetHeight
779
- }, r), T.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
720
+ }, r), z.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
780
721
  }
781
- return T.get(e)?.push?.(t), { disconnect: () => T.get(e)?.splice?.(T.get(e)?.indexOf(t) || -1, 1) };
782
- }, ir = (e, t, n) => {
783
- if (typeof e?.selector == "string") return ve(e, e?.selector, t, n);
722
+ return z.get(e)?.push?.(t), { disconnect: () => z.get(e)?.splice?.(z.get(e)?.indexOf(t) || -1, 1) };
723
+ }, Dn = (e, t, n) => {
724
+ if (typeof e?.selector == "string") return me(e, e?.selector, t, n);
784
725
  const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, a) => {
785
726
  for (const o of s) o.attributeName && r.has(o.attributeName) && n(o, a);
786
727
  });
787
- return (e?.element ?? e) instanceof Node && i.observe(e = q(e), {
728
+ return (e?.element ?? e) instanceof Node && i.observe(e = H(e), {
788
729
  attributes: !0,
789
730
  attributeOldValue: !0,
790
731
  attributeFilter: [...r]
@@ -794,23 +735,23 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
794
735
  attributeName: s,
795
736
  oldValue: e?.getAttribute?.(s)
796
737
  }, i)), i;
797
- }, ve = (e, t, n, r) => {
738
+ }, me = (e, t, n, r) => {
798
739
  const i = new Set([...n.split(",") || [n]].map((a) => a.trim())), s = new MutationObserver((a, o) => {
799
- for (const u of a) if (u.type == "childList") {
800
- const p = Array.from(u.addedNodes) || [], d = Array.from(u.removedNodes) || [];
801
- p.push(...Array.from(u.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), d.push(...Array.from(u.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(p)].filter((h) => h?.matches?.(t))?.map?.((h) => {
802
- i.forEach((c) => {
740
+ for (const c of a) if (c.type == "childList") {
741
+ const u = Array.from(c.addedNodes) || [], l = Array.from(c.removedNodes) || [];
742
+ u.push(...Array.from(c.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), l.push(...Array.from(c.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(u)].filter((h) => h?.matches?.(t))?.map?.((h) => {
743
+ i.forEach((d) => {
803
744
  r({
804
745
  target: h,
805
746
  type: "attributes",
806
- attributeName: c,
807
- oldValue: h?.getAttribute?.(c)
747
+ attributeName: d,
748
+ oldValue: h?.getAttribute?.(d)
808
749
  }, o);
809
750
  });
810
751
  });
811
- } else u.target?.matches?.(t) && u.attributeName && i.has(u.attributeName) && r(u, o);
752
+ } else c.target?.matches?.(t) && c.attributeName && i.has(c.attributeName) && r(c, o);
812
753
  });
813
- return s.observe(e = q(e), {
754
+ return s.observe(e = H(e), {
814
755
  attributeOldValue: !0,
815
756
  attributes: !0,
816
757
  attributeFilter: [...i],
@@ -823,69 +764,71 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
823
764
  attributeName: o,
824
765
  oldValue: a?.getAttribute?.(o)
825
766
  }, s))), s;
826
- }, Ct = (e, t = "*", n = (r, i) => {
767
+ }, St = (e, t = "*", n = (r, i) => {
827
768
  }) => {
828
- const r = (c) => {
829
- const l = Array.from(c || []) || [];
830
- return l.push(...Array.from(c || []).flatMap((f) => Array.from(f?.querySelectorAll?.(t) || []))), [...Array.from(new Set(l).values())].filter((f) => f?.matches?.(t));
831
- }, i = (c) => {
832
- const l = d?.deref?.(), f = r(c.addedNodes), y = r(c.removedNodes);
833
- (f.length > 0 || y.length > 0) && n?.({
834
- type: c.type,
835
- target: c.target,
836
- attributeName: c.attributeName,
837
- attributeNamespace: c.attributeNamespace,
838
- nextSibling: c.nextSibling,
839
- oldValue: c.oldValue,
840
- previousSibling: c.previousSibling,
841
- addedNodes: f,
769
+ const r = (d) => {
770
+ const f = Array.from(d || []) || [];
771
+ return f.push(...Array.from(d || []).flatMap((p) => Array.from(p?.querySelectorAll?.(t) || []))), [...Array.from(new Set(f).values())].filter((p) => p?.matches?.(t));
772
+ };
773
+ let i = null;
774
+ const s = (d) => {
775
+ const f = i?.deref?.(), p = r(d.addedNodes), y = r(d.removedNodes);
776
+ (p.length > 0 || y.length > 0) && n?.({
777
+ type: d.type,
778
+ target: d.target,
779
+ attributeName: d.attributeName,
780
+ attributeNamespace: d.attributeNamespace,
781
+ nextSibling: d.nextSibling,
782
+ oldValue: d.oldValue,
783
+ previousSibling: d.previousSibling,
784
+ addedNodes: p,
842
785
  removedNodes: y
843
- }, l);
844
- }, s = (c) => {
845
- i({
846
- addedNodes: [c?.target].filter((l) => !!l),
847
- removedNodes: [c?.relatedTarget].filter((l) => !!l),
786
+ }, f);
787
+ }, a = (d) => {
788
+ s({
789
+ addedNodes: [d?.target].filter((f) => !!f),
790
+ removedNodes: [d?.relatedTarget].filter((f) => !!f),
848
791
  type: "childList",
849
- target: c?.currentTarget
792
+ target: d?.currentTarget
850
793
  });
851
- }, a = (c) => {
852
- i({
853
- addedNodes: [c?.relatedTarget].filter((l) => !!l),
854
- removedNodes: [c?.target].filter((l) => !!l),
794
+ }, o = (d) => {
795
+ s({
796
+ addedNodes: [d?.relatedTarget].filter((f) => !!f),
797
+ removedNodes: [d?.target].filter((f) => !!f),
855
798
  type: "childList",
856
- target: c?.currentTarget
799
+ target: d?.currentTarget
857
800
  });
858
- }, o = (c) => {
859
- i({
860
- addedNodes: [c?.target].filter((l) => !!l),
861
- removedNodes: [c?.relatedTarget || document?.activeElement].filter((l) => !!l),
801
+ }, c = (d) => {
802
+ s({
803
+ addedNodes: [d?.target].filter((f) => !!f),
804
+ removedNodes: [d?.relatedTarget || document?.activeElement].filter((f) => !!f),
862
805
  type: "childList",
863
- target: c?.currentTarget
806
+ target: d?.currentTarget
864
807
  });
865
808
  }, u = {
866
809
  passive: !0,
867
810
  capture: !1
868
811
  };
869
812
  if (t?.includes?.(":hover") && t?.includes?.(":active"))
870
- return e.addEventListener("pointerover", s, u), e.addEventListener("pointerout", a, u), e.addEventListener("pointerdown", s, u), e.addEventListener("pointerup", a, u), e.addEventListener("pointercancel", a, u), { disconnect: () => {
871
- e.removeEventListener("pointerover", s, u), e.removeEventListener("pointerout", a, u), e.removeEventListener("pointerdown", s, u), e.removeEventListener("pointerup", a, u), e.removeEventListener("pointercancel", a, u);
813
+ return e.addEventListener("pointerover", a, u), e.addEventListener("pointerout", o, u), e.addEventListener("pointerdown", a, u), e.addEventListener("pointerup", o, u), e.addEventListener("pointercancel", o, u), { disconnect: () => {
814
+ e.removeEventListener("pointerover", a, u), e.removeEventListener("pointerout", o, u), e.removeEventListener("pointerdown", a, u), e.removeEventListener("pointerup", o, u), e.removeEventListener("pointercancel", o, u);
872
815
  } };
873
816
  if (t?.includes?.(":hover"))
874
- return e.addEventListener("pointerover", s, u), e.addEventListener("pointerout", a, u), { disconnect: () => {
875
- e.removeEventListener("pointerover", s, u), e.removeEventListener("pointerout", a, u);
817
+ return e.addEventListener("pointerover", a, u), e.addEventListener("pointerout", o, u), { disconnect: () => {
818
+ e.removeEventListener("pointerover", a, u), e.removeEventListener("pointerout", o, u);
876
819
  } };
877
820
  if (t?.includes?.(":active"))
878
- return e.addEventListener("pointerdown", s, u), e.addEventListener("pointerup", a, u), e.addEventListener("pointercancel", a, u), { disconnect: () => {
879
- e.removeEventListener("pointerdown", s, u), e.removeEventListener("pointerup", a, u), e.removeEventListener("pointercancel", a, u);
821
+ return e.addEventListener("pointerdown", a, u), e.addEventListener("pointerup", o, u), e.addEventListener("pointercancel", o, u), { disconnect: () => {
822
+ e.removeEventListener("pointerdown", a, u), e.removeEventListener("pointerup", o, u), e.removeEventListener("pointercancel", o, u);
880
823
  } };
881
824
  if (t?.includes?.(":focus") && t?.includes?.(":focus-within") && t?.includes?.(":focus-visible"))
882
- return e.addEventListener("focusin", s, u), e.addEventListener("focusout", a, u), e.addEventListener("click", o, u), { disconnect: () => {
883
- e.removeEventListener("focusin", s, u), e.removeEventListener("focusout", a, u), e.removeEventListener("click", o, u);
825
+ return e.addEventListener("focusin", a, u), e.addEventListener("focusout", o, u), e.addEventListener("click", c, u), { disconnect: () => {
826
+ e.removeEventListener("focusin", a, u), e.removeEventListener("focusout", o, u), e.removeEventListener("click", c, u);
884
827
  } };
885
- const p = new MutationObserver((c, l) => {
886
- for (const f of c) f.type == "childList" && i(f);
887
- }), d = new WeakRef(p);
888
- (e?.element ?? e) instanceof Node && p.observe(e = q(e), {
828
+ const l = new MutationObserver((d, f) => {
829
+ for (const p of d) p.type == "childList" && s(p);
830
+ });
831
+ i = new WeakRef(l), (e?.element ?? e) instanceof Node && l.observe(e = H(e), {
889
832
  childList: !0,
890
833
  subtree: !0
891
834
  });
@@ -893,15 +836,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
893
836
  return h.length > 0 && n?.({
894
837
  addedNodes: h,
895
838
  removedNodes: []
896
- }, p), p;
897
- }, or = async (e = document.body) => {
898
- ve(e, "*", "data-hidden", (t, n) => {
839
+ }, l), l;
840
+ }, Zn = async (e = document.body) => {
841
+ me(e, "*", "data-hidden", (t, n) => {
899
842
  if (t.attributeName == "data-hidden") {
900
843
  const r = t.target;
901
- r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? Mt : xt, r, n)?.catch?.(console.warn.bind(console));
844
+ r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? gt : yt, r, n)?.catch?.(console.warn.bind(console));
902
845
  }
903
846
  });
904
- }, ar = (e = 100, t = 0.05, n = 8) => {
847
+ }, Un = (e = 100, t = 0.05, n = 8) => {
905
848
  const r = [];
906
849
  for (let o = 0; o < e; o++) r.push(o / e);
907
850
  const i = (o) => `calc(${o}rad * pi * 2)`, s = (o) => `calc(calc(cos(calc(var(--clip-freq, 8) * ${i(o)})) * 0.5 + 0.5) * var(--clip-amplitude, 0))`, a = (o) => [`calc(calc(0.5 + calc(cos(${i(o)}) * calc(0.5 - ${s(o)}))) * var(--icon-size, 100%))`, `calc(calc(0.5 + calc(sin(${i(o)}) * calc(0.5 - ${s(o)}))) * var(--icon-size, 100%))`];
@@ -910,40 +853,40 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
910
853
  "--clip-freq": n,
911
854
  "--clip-path": `polygon(${r.map((o) => a(o).join(" ")).join(", ")})`
912
855
  };
913
- }, qe = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", ze = (e) => typeof e == "string" && /@import\b/i.test(e), be = "DOM", W = typeof document < "u" ? document.createElement("style") : null;
914
- W && (typeof document < "u" && document.querySelector("head")?.appendChild?.(W), W.dataset.owner = be);
915
- var Te = (e, t, n = "") => {
856
+ }, Ne = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", Ce = (e) => typeof e == "string" && /@import\b/i.test(e), ye = "DOM", F = typeof document < "u" ? document.createElement("style") : null;
857
+ F && (typeof document < "u" && document.querySelector("head")?.appendChild?.(F), F.dataset.owner = ye);
858
+ var Re = (e, t, n = "") => {
916
859
  e[0][e[1]] = e[1] == "innerHTML" ? `@import url("${t}") ${n && typeof n == "string" ? `layer(${n})` : ""};` : t;
917
- }, sr = (e) => e?.map?.((t) => qt(...t)), Rt = (e, t) => {
918
- t ||= W?.sheet;
860
+ }, Xn = (e) => e?.map?.((t) => Lt(...t)), wt = (e, t) => {
861
+ t ||= F?.sheet;
919
862
  let n = Array.from(t?.cssRules || []).findIndex((i) => i instanceof CSSLayerBlockRule && i?.name === e), r;
920
863
  return n === -1 && t ? r = t?.cssRules?.[n = t.insertRule(`@layer ${e} {}`)] : r = t?.cssRules?.[n], r;
921
- }, Pt = 0, oe = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot, Le = (e) => typeof Document < "u" && e instanceof Document, zt = (e) => typeof Element < "u" && e instanceof Element, ke = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : Array.from(e).map((t) => `\\${t.codePointAt(0).toString(16)} `).join(""), Tt = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `ux-${Date.now().toString(36)}-${(++Pt).toString(36)}`, Lt = (e, t) => (t = t.trim(), e ? t ? t.startsWith("::") ? `${e}${t}` : `${e} ${t}` : e : t), kt = (e, t, n, r) => {
864
+ }, xt = 0, ie = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot, Pe = (e) => typeof Document < "u" && e instanceof Document, Et = (e) => typeof Element < "u" && e instanceof Element, ke = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : Array.from(e).map((t) => `\\${t.codePointAt(0).toString(16)} `).join(""), At = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `ux-${Date.now().toString(36)}-${(++xt).toString(36)}`, Mt = (e, t) => (t = t.trim(), e ? t ? t.startsWith("::") ? `${e}${t}` : `${e} ${t}` : e : t), Ct = (e, t, n, r) => {
922
865
  const i = Array.from(e?.cssRules || []), s = t.trim(), a = r.trim();
923
866
  return i.findIndex((o) => {
924
867
  if (!(o instanceof CSSStyleRule)) return !1;
925
- const u = o.selectorText?.trim?.() ?? "";
926
- return u === s ? !0 : a && u.endsWith(a) ? u.slice(0, u.length - a.length).trim() === n : !1;
868
+ const c = o.selectorText?.trim?.() ?? "";
869
+ return c === s ? !0 : a && c.endsWith(a) ? c.slice(0, c.length - a.length).trim() === n : !1;
927
870
  });
928
- }, Se = (e, t, n = "ux-query", r = null) => {
929
- const i = oe(r) || Le(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = zt(r) ? r : null;
871
+ }, ge = (e, t, n = "ux-query", r = null) => {
872
+ const i = ie(r) || Pe(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = Et(r) ? r : null;
930
873
  let a = "";
931
874
  if (s?.id) a = `#${ke(s.id)}`;
932
875
  else if (s) {
933
- let d = s.getAttribute("data-style-id");
934
- d || (d = Tt(), s.setAttribute("data-style-id", d)), a = `[data-style-id="${ke(d)}"]`;
935
- } else oe(i) ? a = ":host" : Le(i) && (a = ":root");
876
+ let l = s.getAttribute("data-style-id");
877
+ l || (l = At(), s.setAttribute("data-style-id", l)), a = `[data-style-id="${ke(l)}"]`;
878
+ } else ie(i) ? a = ":host" : Pe(i) && (a = ":root");
936
879
  let o = null;
937
- if (oe(i) ? (o = i.querySelector("style[data-ux-query]"), !o && typeof document < "u" && (o = document.createElement("style"), o.setAttribute("data-ux-query", ""), i.appendChild(o))) : o = Vt(), t ||= o?.sheet, !t) return;
938
- if (n) return Se(e, Rt(n, t), null, r);
939
- const u = Lt(a, e);
940
- let p = kt(t, u, a, e);
941
- return p === -1 && (p = t.insertRule(`${u} {}`)), t.cssRules?.[p];
880
+ if (ie(i) ? (o = i.querySelector("style[data-ux-query]"), !o && typeof document < "u" && (o = document.createElement("style"), o.setAttribute("data-ux-query", ""), i.appendChild(o))) : o = Rt(), t ||= o?.sheet, !t) return;
881
+ if (n) return ge(e, wt(n, t), null, r);
882
+ const c = Mt(a, e);
883
+ let u = Ct(t, c, a, e);
884
+ return u === -1 && (u = t.insertRule(`${c} {}`)), t.cssRules?.[u];
942
885
  };
943
- function Vt() {
944
- return W ?? null;
886
+ function Rt() {
887
+ return F ?? null;
945
888
  }
946
- var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne && e instanceof CSSStyleValue, A = (e) => ne && e instanceof CSSUnitValue, b = (e, t, n, r = "") => {
889
+ var te = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => te && e instanceof CSSStyleValue, M = (e) => te && e instanceof CSSUnitValue, b = (e, t, n, r = "") => {
947
890
  if (!(!e || !t)) {
948
891
  if (n == null) {
949
892
  e.getPropertyValue(t) !== "" && e.removeProperty(t);
@@ -951,47 +894,48 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
951
894
  }
952
895
  e.getPropertyValue(t) !== n && e.setProperty(t, n, r);
953
896
  }
954
- }, jt = (e, t, n, r = "") => {
897
+ }, Pt = (e, t, n, r = "") => {
955
898
  if (!e || !t) return e;
956
- const i = te(t), s = e.style, a = e.attributeStyleMap ?? e.styleMap;
957
- if (!ne || !a) return _e(e, t, n, r);
958
- let o = M(n) && !(P(n) || A(n)) ? n?.value : n;
899
+ const i = ee(t), s = e.style, a = e.attributeStyleMap ?? e.styleMap;
900
+ if (!te || !a) return Be(e, t, n, r);
901
+ let o = E(n) && !(P(n) || M(n)) ? n?.value : n;
959
902
  if (o == null)
960
903
  return a.delete?.(i), s && b(s, i, null, r), e;
961
904
  if (P(o)) {
962
- const u = a.get(i);
963
- if (A(o) && A(u)) {
964
- if (u.value === o.value && u.unit === o.unit) return e;
965
- } else if (u === o) return e;
905
+ const c = a.get(i);
906
+ if (M(o) && M(c)) {
907
+ if (c.value === o.value && c.unit === o.unit) return e;
908
+ } else if (c === o) return e;
966
909
  return a.set(i, o), e;
967
910
  }
968
- if (typeof o == "number") if (CSS?.number && !i.startsWith("--")) {
969
- const u = CSS.number(o), p = a.get(i);
970
- return A(p) && p.value === u.value && p.unit === u.unit || a.set(i, u), e;
971
- } else
972
- return b(s, i, String(o), r), e;
911
+ if (typeof o == "number")
912
+ if (CSS?.number && !i.startsWith("--")) {
913
+ const c = CSS.number(o), u = a.get(i);
914
+ return M(u) && u.value === c.value && u.unit === c.unit || a.set(i, c), e;
915
+ } else
916
+ return b(s, i, String(o), r), e;
973
917
  if (typeof o == "string" && !P(o)) {
974
- const u = Ie(o);
975
- if (typeof u == "number" && CSS?.number && !i.startsWith("--")) {
976
- const p = CSS.number(u), d = a.get(i);
977
- return A(d) && d.value === p.value && d.unit === p.unit || a.set(i, p), e;
918
+ const c = We(o);
919
+ if (typeof c == "number" && CSS?.number && !i.startsWith("--")) {
920
+ const u = CSS.number(c), l = a.get(i);
921
+ return M(l) && l.value === u.value && l.unit === u.unit || a.set(i, u), e;
978
922
  } else
979
923
  return b(s, i, o, r), e;
980
924
  }
981
925
  return b(s, i, String(o), r), e;
982
- }, _e = (e, t, n, r = "") => {
926
+ }, Be = (e, t, n, r = "") => {
983
927
  if (!e || !t) return e;
984
- const i = te(t), s = e.style;
928
+ const i = ee(t), s = e.style;
985
929
  if (!s) return e;
986
- let a = M(n) && !(P(n) || A(n)) ? n?.value : n;
987
- return typeof a == "string" && !P(a) && (a = Ie(a) ?? a), a == null ? (b(s, i, null, r), e) : (P(a) || typeof a == "number", b(s, i, String(a), r), e);
988
- }, Ze = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), Ot = /* @__PURE__ */ Symbol.for("dom.ts@blobURLMap"), k = globalThis[Ot] ??= /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ Symbol.for("dom.ts@cacheMap"), x = globalThis[Nt] ??= /* @__PURE__ */ new Map(), Wt = (e) => {
930
+ let a = E(n) && !(P(n) || M(n)) ? n?.value : n;
931
+ return typeof a == "string" && !P(a) && (a = We(a) ?? a), a == null ? (b(s, i, null, r), e) : (P(a) || typeof a == "number", b(s, i, String(a), r), e);
932
+ }, He = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), T = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new Map(), kt = (e) => {
989
933
  if (!e) return null;
990
934
  if (x.has(e)) return x.get(e);
991
935
  if (e instanceof Blob || e instanceof File) {
992
- if (k.has(e)) return k.get(e);
936
+ if (T.has(e)) return T.get(e);
993
937
  const t = URL.createObjectURL(e);
994
- return k.set(e, t), x.set(t, t), t;
938
+ return T.set(e, t), x.set(t, t), t;
995
939
  }
996
940
  if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
997
941
  const t = fetch(e?.replace?.("?url", "?raw"), {
@@ -1000,22 +944,22 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1000
944
  priority: "high"
1001
945
  })?.then?.(async (n) => {
1002
946
  const r = await n.blob(), i = URL.createObjectURL(r);
1003
- return k.set(r, i), x.set(e, i), x.set(i, i), i;
947
+ return T.set(r, i), x.set(e, i), x.set(i, i), i;
1004
948
  });
1005
949
  return x.set(e, t), t;
1006
950
  }
1007
951
  if (typeof e == "string") {
1008
952
  const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
1009
- return k.set(t, n), x.set(n, n), n;
953
+ return T.set(t, n), x.set(n, n), n;
1010
954
  }
1011
955
  return e;
1012
- }, V = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new WeakMap(), Ft = (e) => {
956
+ }, V = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new WeakMap(), zt = (e) => {
1013
957
  if (!e) return "";
1014
958
  if (V.has(e)) return V.get(e) ?? "";
1015
959
  if (e instanceof Blob || e instanceof File) {
1016
- if (Z.has(e)) return Z.get(e) ?? "";
1017
- const t = e?.text?.()?.then?.((n) => (Z.set(e, n), n));
1018
- return Z.set(e, t), t;
960
+ if (_.has(e)) return _.get(e) ?? "";
961
+ const t = e?.text?.()?.then?.((n) => (_.set(e, n), n));
962
+ return _.set(e, t), t;
1019
963
  }
1020
964
  if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
1021
965
  const t = fetch(e?.replace?.("?url", "?raw"), {
@@ -1029,82 +973,83 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1029
973
  return V.set(e, t), t;
1030
974
  }
1031
975
  return typeof e == "string" && V.set(e, e), e;
1032
- }, It = /* @__PURE__ */ Symbol.for("dom.ts@adoptedSelectorMap"), Ve = globalThis[It] ??= /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowSelectorMap"), je = globalThis[$t] ??= /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ Symbol.for("dom.ts@adoptedLayerMap"), Oe = globalThis[Bt] ??= /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowLayerMap"), D = globalThis[Ht] ??= /* @__PURE__ */ new WeakMap(), ur = (e, t = "ux-query", n = null) => {
1033
- if (!e || !qe()) return null;
976
+ }, ze = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), Yn = (e, t = "ux-query", n = null) => {
977
+ if (!e || !Ne()) return null;
1034
978
  const r = n instanceof ShadowRoot ? n : n?.getRootNode ? n.getRootNode({ composed: !0 }) : null, i = r instanceof ShadowRoot, s = i ? r.adoptedStyleSheets : typeof document < "u" ? document.adoptedStyleSheets : null;
1035
979
  if (!s) return null;
1036
980
  const a = `${t || ""}:${e}`;
1037
981
  let o;
1038
982
  if (i) {
1039
- let d = je.get(r);
1040
- d || (d = /* @__PURE__ */ new Map(), je.set(r, d)), o = d.get(a), o || (o = new CSSStyleSheet(), d.set(a, o), s.includes(o) || s.push(o));
983
+ let l = Le.get(r);
984
+ l || (l = /* @__PURE__ */ new Map(), Le.set(r, l)), o = l.get(a), o || (o = new CSSStyleSheet(), l.set(a, o), s.includes(o) || s.push(o));
1041
985
  } else
1042
- o = Ve.get(a), o || (o = new CSSStyleSheet(), Ve.set(a, o), s.includes(o) || s.push(o));
986
+ o = ze.get(a), o || (o = new CSSStyleSheet(), ze.set(a, o), s.includes(o) || s.push(o));
1043
987
  if (t) {
1044
- let d;
988
+ let l;
1045
989
  if (i) {
1046
990
  let h = D.get(r);
1047
- h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), d = h.get(t);
1048
- } else d = Oe.get(t);
1049
- if (!d) {
1050
- const h = Array.from(o.cssRules || []), c = h.findIndex((l) => l instanceof CSSLayerBlockRule && l.name === t);
1051
- if (c === -1) try {
991
+ h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), l = h.get(t);
992
+ } else l = Te.get(t);
993
+ if (!l) {
994
+ const h = Array.from(o.cssRules || []), d = h.findIndex((f) => f instanceof CSSLayerBlockRule && f.name === t);
995
+ if (d === -1) try {
1052
996
  o.insertRule(`@layer ${t} {}`, o.cssRules.length);
1053
- const l = o.cssRules[o.cssRules.length - 1];
1054
- l instanceof CSSLayerBlockRule && (d = l);
997
+ const f = o.cssRules[o.cssRules.length - 1];
998
+ f instanceof CSSLayerBlockRule && (l = f);
1055
999
  } catch {
1056
- d = void 0;
1000
+ l = void 0;
1057
1001
  }
1058
- else d = h[c];
1059
- if (d) if (i) {
1060
- let l = D.get(r);
1061
- l || (l = /* @__PURE__ */ new Map(), D.set(r, l)), l.set(t, d);
1062
- } else Oe.set(t, d);
1002
+ else l = h[d];
1003
+ if (l)
1004
+ if (i) {
1005
+ let f = D.get(r);
1006
+ f || (f = /* @__PURE__ */ new Map(), D.set(r, f)), f.set(t, l);
1007
+ } else Te.set(t, l);
1063
1008
  }
1064
- if (d) {
1065
- let h = Array.from(d.cssRules || []).findIndex((c) => c instanceof CSSStyleRule && c.selectorText?.trim?.() === e?.trim?.());
1009
+ if (l) {
1010
+ let h = Array.from(l.cssRules || []).findIndex((d) => d instanceof CSSStyleRule && d.selectorText?.trim?.() === e?.trim?.());
1066
1011
  if (h === -1) try {
1067
- h = d.insertRule(`${e} {}`, d.cssRules.length);
1012
+ h = l.insertRule(`${e} {}`, l.cssRules.length);
1068
1013
  } catch {
1069
1014
  return null;
1070
1015
  }
1071
- return d.cssRules[h];
1016
+ return l.cssRules[h];
1072
1017
  }
1073
1018
  }
1074
- let u = Array.from(o.cssRules || []).findIndex((d) => d instanceof CSSStyleRule && d.selectorText?.trim?.() === e?.trim?.());
1075
- if (u === -1) try {
1076
- u = o.insertRule(`${e} {}`, o.cssRules.length);
1019
+ let c = Array.from(o.cssRules || []).findIndex((l) => l instanceof CSSStyleRule && l.selectorText?.trim?.() === e?.trim?.());
1020
+ if (c === -1) try {
1021
+ c = o.insertRule(`${e} {}`, o.cssRules.length);
1077
1022
  } catch {
1078
1023
  return null;
1079
1024
  }
1080
- const p = o.cssRules[u];
1081
- return p instanceof CSSStyleRule ? p : null;
1082
- }, S = (e, t, n, r = "") => ne ? jt(e, t, n, r) : _e(e, t, n, r), cr = (e, t, n) => S(Se(e), t, n), qt = (e, t) => {
1083
- const n = Se(e);
1025
+ const u = o.cssRules[c];
1026
+ return u instanceof CSSStyleRule ? u : null;
1027
+ }, S = (e, t, n, r = "") => te ? Pt(e, t, n, r) : Be(e, t, n, r), Gn = (e, t, n) => S(ge(e), t, n), Lt = (e, t) => {
1028
+ const n = ge(e);
1084
1029
  return Object.entries(t).forEach(([r, i]) => S(n, r, i)), n;
1085
- }, lr = async (e) => {
1030
+ }, Jn = async (e) => {
1086
1031
  const t = await crypto?.subtle?.digest("SHA-256", typeof e == "string" ? new TextEncoder().encode(e) : e instanceof ArrayBuffer ? e : await e?.arrayBuffer?.());
1087
1032
  return "sha256-" + btoa(String.fromCharCode.apply(null, new Uint8Array(t)));
1088
- }, De = (e, t, n = "", r) => {
1089
- const i = Wt(e), s = typeof e == "string" && URL.canParse(e) ? e : i;
1090
- return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" && Te(t, s, n), t?.[0] && (!URL.canParse(e) || r) && t?.[0] instanceof HTMLLinkElement, Ze(i, (a) => {
1091
- t?.[0] && a && (Te(t, a, n), t?.[0].setAttribute("loaded", ""));
1033
+ }, qe = (e, t, n = "", r) => {
1034
+ const i = kt(e), s = typeof e == "string" && URL.canParse(e) ? e : i;
1035
+ return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" && Re(t, s, n), t?.[0] && (!URL.canParse(e) || r) && t?.[0] instanceof HTMLLinkElement, He(i, (a) => {
1036
+ t?.[0] && a && (Re(t, a, n), t?.[0].setAttribute("loaded", ""));
1092
1037
  })?.catch?.((a) => {
1093
1038
  console.warn("Failed to load style sheet:", a);
1094
1039
  });
1095
- }, _t = (e) => {
1040
+ }, Tt = (e) => {
1096
1041
  const t = typeof document < "u" ? document.createElement("link") : null;
1097
1042
  return t && (t.fetchPriority = "high"), t ? (Object.assign(t, {
1098
1043
  rel: "stylesheet",
1099
1044
  type: "text/css",
1100
1045
  crossOrigin: "same-origin"
1101
- }), t.dataset.owner = be, De(e, [t, "href"]), typeof document < "u" && document.head.append(t), t) : null;
1046
+ }), t.dataset.owner = ye, qe(e, [t, "href"]), typeof document < "u" && document.head.append(t), t) : null;
1102
1047
  }, j = (e, t = typeof document < "u" ? document?.head : null, n = "") => {
1103
1048
  const r = t?.querySelector?.("head") ?? t;
1104
- if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return _t(e);
1049
+ if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return Tt(e);
1105
1050
  const i = typeof document < "u" ? document.createElement("style") : null;
1106
- return i ? (i.dataset.owner = be, De(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
1107
- }, dr = (e, t, n, r = "") => S(e, t, n, r), fr = (e) => Xt(e, ""), Zt = /* @__PURE__ */ Symbol.for("dom.ts@adoptedMap"), v = globalThis[Zt] ??= /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ Symbol.for("dom.ts@adoptedBlobMap"), O = globalThis[Dt] ??= /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ Symbol.for("dom.ts@layerCounter"), pr = globalThis[Ut] ??= 0, Ne = (e, t) => {
1051
+ return i ? (i.dataset.owner = ye, qe(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
1052
+ }, Kn = (e, t, n, r = "") => S(e, t, n, r), Qn = (e) => Vt(e, ""), v = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new WeakMap(), Ve = (e, t) => {
1108
1053
  if (!e || !t) return !1;
1109
1054
  try {
1110
1055
  return e.replaceSync(t), !0;
@@ -1112,10 +1057,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1112
1057
  const r = String(n?.message || "").toLowerCase();
1113
1058
  return r.includes("@import rules are not allowed") || r.includes("@import") && r.includes("not allowed") || console.warn("[DOM] Failed to apply adopted stylesheet:", n), !1;
1114
1059
  }
1115
- }, Xt = (e, t = null) => {
1116
- if (!qe())
1060
+ }, Vt = (e, t = null) => {
1061
+ if (!Ne())
1117
1062
  return typeof e == "string" && j(e, void 0, t || ""), null;
1118
- if (typeof e == "string" && ze(e))
1063
+ if (typeof e == "string" && Ce(e))
1119
1064
  return j(e, void 0, t || ""), null;
1120
1065
  if (typeof e == "string" && v?.has?.(e)) {
1121
1066
  const r = v.get(e);
@@ -1129,26 +1074,26 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1129
1074
  const n = typeof e == "string" ? v.getOrInsertComputed(e, (r) => new CSSStyleSheet()) : O.getOrInsertComputed(e, (r) => new CSSStyleSheet());
1130
1075
  if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
1131
1076
  const r = t ? `@layer ${t} { ${e} }` : e;
1132
- return v.set(e, n), Ne(n, r) || (ae(n), v.delete(e), j(e)), n;
1133
- } else Ze(Ft(e), (r) => {
1077
+ return v.set(e, n), Ve(n, r) || (oe(n), v.delete(e), j(e)), n;
1078
+ } else He(zt(e), (r) => {
1134
1079
  if (v.set(r, n), r) {
1135
- if (ze(r))
1136
- return ae(n), v.delete(r), O.delete(e), j(r, void 0, t || ""), n;
1080
+ if (Ce(r))
1081
+ return oe(n), v.delete(r), O.delete(e), j(r, void 0, t || ""), n;
1137
1082
  const i = t ? `@layer ${t} { ${r} }` : r;
1138
- return Ne(n, i) || (ae(n), v.delete(r), O.delete(e), j(r, void 0, t || "")), n;
1083
+ return Ve(n, i) || (oe(n), v.delete(r), O.delete(e), j(r, void 0, t || "")), n;
1139
1084
  }
1140
1085
  });
1141
1086
  return n;
1142
- }, ae = (e) => {
1087
+ }, oe = (e) => {
1143
1088
  if (!e) return !1;
1144
1089
  const t = typeof e == "string" ? v.get(e) : e;
1145
1090
  if (!t || typeof document > "u") return !1;
1146
1091
  const n = document.adoptedStyleSheets, r = n.indexOf(t);
1147
1092
  return r !== -1 ? (n.splice(r, 1), !0) : !1;
1148
- }, Yt = (e, t) => {
1093
+ }, jt = (e, t) => {
1149
1094
  const n = e.split(" ");
1150
- return new DOMPoint(We(n[0], () => t.clientWidth), We(n[1], () => t.clientHeight));
1151
- }, We = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), hr = (e) => {
1095
+ return new DOMPoint(je(n[0], () => t.clientWidth), je(n[1], () => t.clientHeight));
1096
+ }, je = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), er = (e) => {
1152
1097
  if (e?.computedStyleMap) {
1153
1098
  const t = e.computedStyleMap().get("transform")?.toMatrix?.();
1154
1099
  if (t) return t;
@@ -1157,10 +1102,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1157
1102
  return new DOMMatrix(t?.getPropertyValue?.("transform"));
1158
1103
  }
1159
1104
  return new DOMMatrix();
1160
- }, mr = (e) => {
1105
+ }, tr = (e) => {
1161
1106
  const t = getComputedStyle(e)?.getPropertyValue?.("transform-origin") || "50% 50%";
1162
- return Yt(t, e);
1163
- }, N = (e, t) => {
1107
+ return jt(t, e);
1108
+ }, W = (e, t) => {
1164
1109
  if ("computedStyleMap" in e) {
1165
1110
  const n = e?.computedStyleMap?.()?.get(t);
1166
1111
  return n instanceof CSSUnitValue ? n?.value || 0 : n?.toString?.();
@@ -1170,7 +1115,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1170
1115
  return parseFloat(n?.getPropertyValue?.(t)?.replace?.("px", "")) || 0;
1171
1116
  }
1172
1117
  return parseFloat((e?.style ?? e).getPropertyValue?.(t)?.replace?.("px", "")) || 0;
1173
- }, yr = (e) => {
1118
+ }, nr = (e) => {
1174
1119
  let t = 1, n = e;
1175
1120
  for (; n; ) {
1176
1121
  if ("currentCSSZoom" in n) {
@@ -1183,70 +1128,71 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
1183
1128
  n = n?.offsetParent ?? n?.parentElement;
1184
1129
  }
1185
1130
  return t;
1186
- }, gr = (e, t) => N?.(e, t), vr = (e, t) => t == "inline" ? N(e, "padding-inline-start") + N(e, "padding-inline-end") : N(e, "padding-block-start") + N(e, "padding-block-end"), Ue = /* @__PURE__ */ new WeakMap(), Gt = (e, t, n) => (new WeakRef(e), t.has(n) || t.add(n), e), br = (e, t) => {
1131
+ }, rr = (e, t) => W?.(e, t), ir = (e, t) => t == "inline" ? W(e, "padding-inline-start") + W(e, "padding-inline-end") : W(e, "padding-block-start") + W(e, "padding-block-end"), _e = /* @__PURE__ */ new WeakMap(), Ot = (e, t, n) => (new WeakRef(e), t.has(n) || t.add(n), e), or = (e, t) => {
1187
1132
  if (e) {
1188
1133
  if (t) {
1189
- const n = Ue.getOrInsert(e, /* @__PURE__ */ new Set());
1190
- [...t?.values?.() || []].map((r) => Gt(e, n, r));
1134
+ const n = _e.getOrInsert(e, /* @__PURE__ */ new Set());
1135
+ [...t?.values?.() || []].map((r) => Ot(e, n, r));
1191
1136
  }
1192
1137
  return e;
1193
1138
  }
1194
- }, Jt = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), I = globalThis[Jt] ??= /* @__PURE__ */ new Map(), Kt = (e, t) => {
1139
+ }, Wt = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), $ = globalThis[Wt] ??= /* @__PURE__ */ new Map(), Ft = (e, t) => {
1195
1140
  const n = [...e.entries() || []];
1196
1141
  return new Map(n?.map?.(([r, i]) => [r, i?.get?.(t)])?.filter?.(([r, i]) => !!i) || []);
1197
- }, Qt = (e, t, n) => {
1198
- let r = I.get(t);
1199
- return r || (r = /* @__PURE__ */ new WeakMap(), I.set(t, r)), r.has(e) || r.set(e, n), e;
1200
- }, Sr = (e, t) => {
1142
+ }, It = (e) => (typeof e == "object" || typeof e == "function") && e != null, $t = (e, t, n) => {
1143
+ if (!It(e) && e != null) return e;
1144
+ let r = $.get(t);
1145
+ return r || (r = /* @__PURE__ */ new WeakMap(), $.set(t, r)), !r.has(e) && e != null && r.set(e, n), e;
1146
+ }, ar = (e, t) => {
1201
1147
  if (!(!e || !t)) {
1202
- for (const [n, r] of t.entries()) Qt(e, n, r);
1148
+ for (const [n, r] of t.entries()) $t(e, n, r);
1203
1149
  return e;
1204
1150
  }
1205
- }, wr = (e, t) => {
1151
+ }, sr = (e, t) => {
1206
1152
  if (e) {
1207
1153
  if (t) {
1208
1154
  const n = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1209
- w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) => en(e, r, n));
1155
+ w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) => Nt(e, r, n));
1210
1156
  }
1211
1157
  return e;
1212
1158
  }
1213
- }, F = (e) => ({
1214
- storeSet: Kt(I, e),
1159
+ }, I = (e) => ({
1160
+ storeSet: Ft($, e),
1215
1161
  mixinSet: w?.get?.(e),
1216
- behaviorSet: Ue?.get?.(e)
1217
- }), en = (e, t, n) => {
1162
+ behaviorSet: _e?.get?.(e)
1163
+ }), Nt = (e, t, n) => {
1218
1164
  const r = new WeakRef(e);
1219
- return n ||= w?.get?.(e), n?.has?.(t) || (n?.add?.(t), C?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t, F(e))), e;
1220
- }, tn = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), w = globalThis[tn] ??= /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), C = globalThis[nn] ??= /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), $ = globalThis[rn] ??= /* @__PURE__ */ new Map(), on = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), Q = globalThis[on] ??= /* @__PURE__ */ new WeakMap(), Xe = (e, t) => {
1221
- typeof t == "string" && (t = $?.get?.(t));
1222
- const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) => $?.get?.(a)).filter((a) => !!a)), i = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1165
+ return n ||= w?.get?.(e), n?.has?.(t) || (n?.add?.(t), C?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t, I(e))), e;
1166
+ }, Bt = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), w = globalThis[Bt] ??= /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), C = globalThis[Ht] ??= /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), N = globalThis[qt] ??= /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), K = globalThis[_t] ??= /* @__PURE__ */ new WeakMap(), De = (e, t) => {
1167
+ typeof t == "string" && (t = N?.get?.(t));
1168
+ const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) => N?.get?.(a)).filter((a) => !!a)), i = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
1223
1169
  C?.has?.(t) || C?.set?.(t, /* @__PURE__ */ new WeakSet()), w?.has?.(e) || w?.set?.(e, i);
1224
1170
  const s = new WeakRef(e);
1225
- i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, F(e)), (r.has(t) || !C?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, F(e)), n.add(Q?.get?.(t)), i?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((a) => !!a).join(" "))), C?.get?.(t)?.add?.(e)), i?.has?.(t) && (r.has(t) || (i?.delete?.(t), t?.disconnect?.(s, t, F(e))));
1226
- }, me = /* @__PURE__ */ new Set(), an = (e = typeof document < "u" ? document : null) => {
1171
+ i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, I(e)), (r.has(t) || !C?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, I(e)), n.add(K?.get?.(t)), i?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((a) => !!a).join(" "))), C?.get?.(t)?.add?.(e)), i?.has?.(t) && (r.has(t) || (i?.delete?.(t), t?.disconnect?.(s, t, I(e))));
1172
+ }, fe = /* @__PURE__ */ new Set(), Dt = (e = typeof document < "u" ? document : null) => {
1227
1173
  if (e)
1228
- return me?.has?.(e) || (me?.add?.(e), ve(e, "*", "data-mixin", (t) => ye(t.target)), Ct(e, "[data-mixin]", (t) => {
1229
- for (const n of t.addedNodes) n instanceof HTMLElement && ye(n);
1174
+ return fe?.has?.(e) || (fe?.add?.(e), me(e, "*", "data-mixin", (t) => pe(t.target)), St(e, "[data-mixin]", (t) => {
1175
+ for (const n of t.addedNodes) n instanceof HTMLElement && pe(n);
1230
1176
  })), e;
1231
- }, ye = (e) => {
1177
+ }, pe = (e) => {
1232
1178
  const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
1233
- [...new Set([...t].map((n) => $?.get?.(n)).filter((n) => !!n))].map?.((n) => Xe(e, n));
1234
- }, sn = (e, t) => {
1235
- e.forEach((n) => t ? Xe(n, t) : ye(n));
1236
- }, un = (e) => {
1237
- for (const t of me) sn(t?.querySelectorAll?.("[data-mixin]"), e);
1238
- }, cn = new FinalizationRegistry((e) => {
1239
- $?.delete?.(e);
1240
- }), ln = (e, t) => {
1241
- if (!Q?.has?.(t)) {
1179
+ [...new Set([...t].map((n) => N?.get?.(n)).filter((n) => !!n))].map?.((n) => De(e, n));
1180
+ }, Zt = (e, t) => {
1181
+ e.forEach((n) => t ? De(n, t) : pe(n));
1182
+ }, Ut = (e) => {
1183
+ for (const t of fe) Zt(t?.querySelectorAll?.("[data-mixin]"), e);
1184
+ }, Xt = new FinalizationRegistry((e) => {
1185
+ N?.delete?.(e);
1186
+ }), Yt = (e, t) => {
1187
+ if (!K?.has?.(t)) {
1242
1188
  const n = e?.trim?.();
1243
- n && (Q?.set?.(t, n), $?.set?.(n, t), cn?.register?.(t, n), un(t));
1189
+ n && (K?.set?.(t, n), N?.set?.(n, t), Xt?.register?.(t, n), Ut(t));
1244
1190
  }
1245
1191
  };
1246
- an(typeof document < "u" ? document : null);
1247
- var we = class {
1192
+ Dt(typeof document < "u" ? document : null);
1193
+ var ve = class {
1248
1194
  constructor(e = null) {
1249
- e && ln(e, this);
1195
+ e && Yt(e, this);
1250
1196
  }
1251
1197
  connect(e, t, n) {
1252
1198
  return this;
@@ -1255,29 +1201,29 @@ var we = class {
1255
1201
  return this;
1256
1202
  }
1257
1203
  storeForElement(e) {
1258
- return I.get(this.name || "")?.get?.(e);
1204
+ return $.get(this.name || "")?.get?.(e);
1259
1205
  }
1260
1206
  relatedForElement(e) {
1261
- return F(e);
1207
+ return I(e);
1262
1208
  }
1263
1209
  get elements() {
1264
1210
  return C?.get?.(this);
1265
1211
  }
1266
1212
  get storage() {
1267
- return I?.get?.(this.name || "");
1213
+ return $?.get?.(this.name || "");
1268
1214
  }
1269
1215
  get name() {
1270
- return Q?.get?.(this);
1216
+ return K?.get?.(this);
1271
1217
  }
1272
- }, xr = (e, t, n) => {
1218
+ }, cr = (e, t, n) => {
1273
1219
  const r = n;
1274
- M(n) && (n = n.value);
1275
- const i = (n = ge(n)) != null && n !== !1;
1220
+ E(n) && (n = n.value);
1221
+ const i = (n = he(n)) != null && n !== !1;
1276
1222
  return B(r, () => {
1277
1223
  e instanceof HTMLInputElement ? e.hidden = !i : i ? e?.removeAttribute?.("data-hidden") : e?.setAttribute?.("data-hidden", "");
1278
1224
  }), e;
1279
- }, Mr = (e, t, n) => {
1280
- if (!(t = typeof t == "string" ? Fe(t) : t) || !e || [
1225
+ }, ur = (e, t, n) => {
1226
+ if (!(t = typeof t == "string" ? Oe(t) : t) || !e || [
1281
1227
  "style",
1282
1228
  "dataset",
1283
1229
  "attributeStyleMap",
@@ -1285,29 +1231,29 @@ var we = class {
1285
1231
  "computedStyleMap"
1286
1232
  ].indexOf(t || "") != -1) return e;
1287
1233
  const r = n;
1288
- return M(n) && (n = n.value), e?.[t] === n || e?.[t] !== n && B(r, () => {
1234
+ return E(n) && (n = n.value), e?.[t] === n || e?.[t] !== n && B(r, () => {
1289
1235
  n != null ? e[t] = n : delete e[t];
1290
1236
  }), e;
1291
- }, Er = (e, t, n) => {
1237
+ }, dr = (e, t, n) => {
1292
1238
  const r = e?.dataset;
1293
1239
  if (!t || !e || !r) return e;
1294
1240
  const i = n;
1295
- return M(n) && (n = n?.value), t = Fe(t), r?.[t] === (n = ge(n)) || (n == null || n === !1 ? delete r[t] : B(i, () => {
1241
+ return E(n) && (n = n?.value), t = Oe(t), r?.[t] === (n = he(n)) || (n == null || n === !1 ? delete r[t] : B(i, () => {
1296
1242
  typeof n != "object" && typeof n != "function" ? r[t] = String(n) : delete r[t];
1297
1243
  })), e;
1298
- }, dn = (e, t) => e.style.removeProperty(te(t)), Ar = (e, t, n) => {
1244
+ }, Gt = (e, t) => e.style.removeProperty(ee(t)), lr = (e, t, n) => {
1299
1245
  const r = e?.style;
1300
1246
  return !t || typeof t != "string" || !e || !r || B(n, () => {
1301
- et(n) || M(n) || Qe(n) ? S(e, t, n) : n == null && dn(e, t);
1247
+ Ye(n) || E(n) || Ge(n) ? S(e, t, n) : n == null && Gt(e, t);
1302
1248
  }), e;
1303
- }, Cr = (e, t, n) => {
1249
+ }, fr = (e, t, n) => {
1304
1250
  if (!t || !e) return e;
1305
1251
  const r = n;
1306
- return M(n) && (n = n.value), t = te(t), e?.getAttribute?.(t) === (n = ge(n)) || B(r, () => {
1252
+ return E(n) && (n = n.value), t = ee(t), e?.getAttribute?.(t) === (n = he(n)) || B(r, () => {
1307
1253
  typeof n != "object" && typeof n != "function" && n != null && (typeof n != "boolean" || n == !0) ? e?.setAttribute?.(t, String(n)) : e?.removeAttribute?.(t);
1308
1254
  }), e;
1309
1255
  };
1310
- function se(e, t) {
1256
+ function ae(e, t) {
1311
1257
  const n = Math.min(e.x, t.x), r = Math.min(e.y, t.y), i = Math.max(e.x, t.x), s = Math.max(e.y, t.y);
1312
1258
  return {
1313
1259
  left: n,
@@ -1318,12 +1264,12 @@ function se(e, t) {
1318
1264
  height: s - r
1319
1265
  };
1320
1266
  }
1321
- var U = {
1267
+ var Z = {
1322
1268
  start: "junction-select:start",
1323
1269
  move: "junction-select:move",
1324
1270
  end: "junction-select:end",
1325
1271
  cancel: "junction-select:cancel"
1326
- }, ue = {
1272
+ }, se = {
1327
1273
  start: "junction-drag:start",
1328
1274
  move: "junction-drag:move",
1329
1275
  end: "junction-drag:end"
@@ -1331,27 +1277,27 @@ var U = {
1331
1277
  start: "junction-resize:start",
1332
1278
  move: "junction-resize:move",
1333
1279
  end: "junction-resize:end"
1334
- }, fn = /* @__PURE__ */ Symbol.for("dom.ts@mixinDisposers"), ee = globalThis[fn] ??= /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
1335
- const r = ee.get(e) ?? /* @__PURE__ */ new Map(), i = r.get(t) ?? [];
1336
- i.push(n), r.set(t, i), ee.set(e, r);
1337
- }, xe = (e, t) => {
1338
- const n = ee.get(e), r = n?.get(t);
1280
+ }, Jt = /* @__PURE__ */ Symbol.for("dom.ts@mixinDisposers"), Q = globalThis[Jt] ??= /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
1281
+ const r = Q.get(e) ?? /* @__PURE__ */ new Map(), i = r.get(t) ?? [];
1282
+ i.push(n), r.set(t, i), Q.set(e, r);
1283
+ }, be = (e, t) => {
1284
+ const n = Q.get(e), r = n?.get(t);
1339
1285
  if (r) {
1340
1286
  for (const i of r) try {
1341
1287
  i();
1342
1288
  } catch {
1343
1289
  }
1344
- n.delete(t), n.size === 0 && ee.delete(e);
1290
+ n.delete(t), n.size === 0 && Q.delete(e);
1345
1291
  }
1346
- }, E = (e, t) => {
1292
+ }, A = (e, t) => {
1347
1293
  const n = globalThis.getComputedStyle?.(e)?.getPropertyValue?.(t)?.trim?.() ?? "", r = parseFloat(n);
1348
1294
  return Number.isFinite(r) ? r : 0;
1349
- }, Ye = (e, t, n) => {
1295
+ }, Ze = (e, t, n) => {
1350
1296
  const r = e.getAttribute(t)?.trim();
1351
1297
  if (!r) return n;
1352
1298
  const i = e.querySelector(r);
1353
1299
  return i instanceof HTMLElement ? i : n;
1354
- }, pn = class extends we {
1300
+ }, Kt = class extends ve {
1355
1301
  constructor() {
1356
1302
  super("ui-junction-select");
1357
1303
  }
@@ -1367,33 +1313,33 @@ var U = {
1367
1313
  x: 0,
1368
1314
  y: 0
1369
1315
  };
1370
- const o = (f) => {
1316
+ const o = (p) => {
1371
1317
  const y = t.getBoundingClientRect();
1372
1318
  return {
1373
- x: f.clientX - y.left,
1374
- y: f.clientY - y.top
1319
+ x: p.clientX - y.left,
1320
+ y: p.clientY - y.top
1375
1321
  };
1376
- }, u = () => {
1377
- const f = se(s, a);
1378
- if (f.width < 1 && f.height < 1) {
1322
+ }, c = () => {
1323
+ const p = ae(s, a);
1324
+ if (p.width < 1 && p.height < 1) {
1379
1325
  n.style.display = "none";
1380
1326
  return;
1381
1327
  }
1382
- n.style.display = "block", n.style.left = `${f.left}px`, n.style.top = `${f.top}px`, n.style.width = `${f.width}px`, n.style.height = `${f.height}px`;
1383
- }, p = (f) => {
1384
- f.button === 0 && (f.target?.closest?.("[data-junction-ignore-select], [data-junction-drag-handle], [data-junction-resize-handle], button, a, input, textarea, select") || (f.target === t || t.contains(f.target)) && (i = !0, s = o(f), a = { ...s }, t.setPointerCapture(f.pointerId), t.dispatchEvent(new CustomEvent(U.start, {
1328
+ n.style.display = "block", n.style.left = `${p.left}px`, n.style.top = `${p.top}px`, n.style.width = `${p.width}px`, n.style.height = `${p.height}px`;
1329
+ }, u = (p) => {
1330
+ p.button === 0 && (p.target?.closest?.("[data-junction-ignore-select], [data-junction-drag-handle], [data-junction-resize-handle], button, a, input, textarea, select") || (p.target === t || t.contains(p.target)) && (i = !0, s = o(p), a = { ...s }, t.setPointerCapture(p.pointerId), t.dispatchEvent(new CustomEvent(Z.start, {
1385
1331
  bubbles: !0,
1386
1332
  detail: {
1387
1333
  a: { ...s },
1388
1334
  b: { ...a },
1389
1335
  host: t
1390
1336
  }
1391
- })), u()));
1392
- }, d = (f) => {
1337
+ })), c()));
1338
+ }, l = (p) => {
1393
1339
  if (!i) return;
1394
- a = o(f), u();
1395
- const y = se(s, a);
1396
- t.dispatchEvent(new CustomEvent(U.move, {
1340
+ a = o(p), c();
1341
+ const y = ae(s, a);
1342
+ t.dispatchEvent(new CustomEvent(Z.move, {
1397
1343
  bubbles: !0,
1398
1344
  detail: {
1399
1345
  a: { ...s },
@@ -1402,15 +1348,15 @@ var U = {
1402
1348
  host: t
1403
1349
  }
1404
1350
  }));
1405
- }, h = (f) => {
1351
+ }, h = (p) => {
1406
1352
  if (!i) return;
1407
1353
  i = !1;
1408
1354
  try {
1409
- t.releasePointerCapture(f.pointerId);
1355
+ t.releasePointerCapture(p.pointerId);
1410
1356
  } catch {
1411
1357
  }
1412
- const y = se(s, a);
1413
- t.dispatchEvent(new CustomEvent(U.end, {
1358
+ const y = ae(s, a);
1359
+ t.dispatchEvent(new CustomEvent(Z.end, {
1414
1360
  bubbles: !0,
1415
1361
  detail: {
1416
1362
  a: { ...s },
@@ -1419,16 +1365,16 @@ var U = {
1419
1365
  host: t
1420
1366
  }
1421
1367
  }));
1422
- }, c = (f) => {
1423
- i && h(f);
1424
- }, l = (f) => {
1368
+ }, d = (p) => {
1369
+ i && h(p);
1370
+ }, f = (p) => {
1425
1371
  if (i) {
1426
1372
  i = !1, n.style.display = "none";
1427
1373
  try {
1428
- t.releasePointerCapture(f.pointerId);
1374
+ t.releasePointerCapture(p.pointerId);
1429
1375
  } catch {
1430
1376
  }
1431
- t.dispatchEvent(new CustomEvent(U.cancel, {
1377
+ t.dispatchEvent(new CustomEvent(Z.cancel, {
1432
1378
  bubbles: !0,
1433
1379
  detail: { host: t }
1434
1380
  }));
@@ -1436,84 +1382,84 @@ var U = {
1436
1382
  };
1437
1383
  return g(t, "ui-junction-select", () => {
1438
1384
  n.remove();
1439
- }), g(t, "ui-junction-select", m(t, "pointerdown", p)), g(t, "ui-junction-select", m(t, "pointermove", d)), g(t, "ui-junction-select", m(t, "pointerup", c)), g(t, "ui-junction-select", m(t, "pointercancel", l)), this;
1385
+ }), g(t, "ui-junction-select", m(t, "pointerdown", u)), g(t, "ui-junction-select", m(t, "pointermove", l)), g(t, "ui-junction-select", m(t, "pointerup", d)), g(t, "ui-junction-select", m(t, "pointercancel", f)), this;
1440
1386
  }
1441
1387
  disconnect(e) {
1442
1388
  const t = e?.deref?.();
1443
- return t && xe(t, "ui-junction-select"), this;
1389
+ return t && be(t, "ui-junction-select"), this;
1444
1390
  }
1445
- }, hn = class extends we {
1391
+ }, Qt = class extends ve {
1446
1392
  constructor() {
1447
1393
  super("ui-junction-drag");
1448
1394
  }
1449
1395
  connect(e) {
1450
1396
  const t = e?.deref?.();
1451
1397
  if (!t) return this;
1452
- S(t, "--jx-drag-x", E(t, "--jx-drag-x")), S(t, "--jx-drag-y", E(t, "--jx-drag-y"));
1398
+ S(t, "--jx-drag-x", A(t, "--jx-drag-x")), S(t, "--jx-drag-y", A(t, "--jx-drag-y"));
1453
1399
  const n = t.style.transform;
1454
1400
  (!t.style.transform || t.style.transform === "none") && (t.style.transform = "translate3d(calc(var(--jx-drag-x, 0) * 1px), calc(var(--jx-drag-y, 0) * 1px), 0)");
1455
- const r = Ye(t, "data-junction-drag-handle", t);
1456
- let i = !1, s = 0, a = 0, o = 0, u = 0;
1457
- const p = (c) => {
1458
- c.button === 0 && (c.target !== r && !r.contains(c.target) || (i = !0, s = c.clientX, a = c.clientY, o = E(t, "--jx-drag-x"), u = E(t, "--jx-drag-y"), r.setPointerCapture(c.pointerId), t.dispatchEvent(new CustomEvent(ue.start, {
1401
+ const r = Ze(t, "data-junction-drag-handle", t);
1402
+ let i = !1, s = 0, a = 0, o = 0, c = 0;
1403
+ const u = (d) => {
1404
+ d.button === 0 && (d.target !== r && !r.contains(d.target) || (i = !0, s = d.clientX, a = d.clientY, o = A(t, "--jx-drag-x"), c = A(t, "--jx-drag-y"), r.setPointerCapture(d.pointerId), t.dispatchEvent(new CustomEvent(se.start, {
1459
1405
  bubbles: !0,
1460
1406
  detail: {
1461
1407
  host: t,
1462
- clientX: c.clientX,
1463
- clientY: c.clientY,
1408
+ clientX: d.clientX,
1409
+ clientY: d.clientY,
1464
1410
  baseX: o,
1465
- baseY: u
1411
+ baseY: c
1466
1412
  }
1467
1413
  }))));
1468
- }, d = (c) => {
1414
+ }, l = (d) => {
1469
1415
  if (!i) return;
1470
- const l = c.clientX - s, f = c.clientY - a, y = o + l, _ = u + f;
1471
- S(t, "--jx-drag-x", y), S(t, "--jx-drag-y", _), t.dispatchEvent(new CustomEvent(ue.move, {
1416
+ const f = d.clientX - s, p = d.clientY - a, y = o + f, q = c + p;
1417
+ S(t, "--jx-drag-x", y), S(t, "--jx-drag-y", q), t.dispatchEvent(new CustomEvent(se.move, {
1472
1418
  bubbles: !0,
1473
1419
  detail: {
1474
1420
  host: t,
1475
- dx: l,
1476
- dy: f,
1421
+ dx: f,
1422
+ dy: p,
1477
1423
  x: y,
1478
- y: _
1424
+ y: q
1479
1425
  }
1480
1426
  }));
1481
- }, h = (c) => {
1427
+ }, h = (d) => {
1482
1428
  if (i) {
1483
1429
  i = !1;
1484
1430
  try {
1485
- r.releasePointerCapture(c.pointerId);
1431
+ r.releasePointerCapture(d.pointerId);
1486
1432
  } catch {
1487
1433
  }
1488
- t.dispatchEvent(new CustomEvent(ue.end, {
1434
+ t.dispatchEvent(new CustomEvent(se.end, {
1489
1435
  bubbles: !0,
1490
1436
  detail: {
1491
1437
  host: t,
1492
- x: E(t, "--jx-drag-x"),
1493
- y: E(t, "--jx-drag-y")
1438
+ x: A(t, "--jx-drag-x"),
1439
+ y: A(t, "--jx-drag-y")
1494
1440
  }
1495
1441
  }));
1496
1442
  }
1497
1443
  };
1498
1444
  return g(t, "ui-junction-drag", () => {
1499
1445
  t.style.transform = n;
1500
- }), g(t, "ui-junction-drag", m(r, "pointerdown", p)), g(t, "ui-junction-drag", m(r, "pointermove", d)), g(t, "ui-junction-drag", m(r, "pointerup", h)), g(t, "ui-junction-drag", m(r, "pointercancel", h)), this;
1446
+ }), g(t, "ui-junction-drag", m(r, "pointerdown", u)), g(t, "ui-junction-drag", m(r, "pointermove", l)), g(t, "ui-junction-drag", m(r, "pointerup", h)), g(t, "ui-junction-drag", m(r, "pointercancel", h)), this;
1501
1447
  }
1502
1448
  disconnect(e) {
1503
1449
  const t = e?.deref?.();
1504
- return t && xe(t, "ui-junction-drag"), this;
1450
+ return t && be(t, "ui-junction-drag"), this;
1505
1451
  }
1506
- }, mn = class extends we {
1452
+ }, en = class extends ve {
1507
1453
  constructor() {
1508
1454
  super("ui-junction-resize");
1509
1455
  }
1510
1456
  connect(e) {
1511
1457
  const t = e?.deref?.();
1512
1458
  if (!t) return this;
1513
- const n = Ye(t, "data-junction-resize-handle", t);
1459
+ const n = Ze(t, "data-junction-resize-handle", t);
1514
1460
  let r = !1, i = 0, s = 0, a = 0, o = 0;
1515
- const u = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), p = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80), d = (l) => {
1516
- l.button === 0 && (l.target !== n && !n.contains(l.target) || (r = !0, i = l.clientX, s = l.clientY, a = t.offsetWidth, o = t.offsetHeight, n.setPointerCapture(l.pointerId), t.dispatchEvent(new CustomEvent(ce.start, {
1461
+ const c = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), u = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80), l = (f) => {
1462
+ f.button === 0 && (f.target !== n && !n.contains(f.target) || (r = !0, i = f.clientX, s = f.clientY, a = t.offsetWidth, o = t.offsetHeight, n.setPointerCapture(f.pointerId), t.dispatchEvent(new CustomEvent(ce.start, {
1517
1463
  bubbles: !0,
1518
1464
  detail: {
1519
1465
  host: t,
@@ -1521,22 +1467,22 @@ var U = {
1521
1467
  height: o
1522
1468
  }
1523
1469
  }))));
1524
- }, h = (l) => {
1470
+ }, h = (f) => {
1525
1471
  if (!r) return;
1526
- const f = Math.max(u, a + (l.clientX - i)), y = Math.max(p, o + (l.clientY - s));
1527
- t.style.width = `${f}px`, t.style.height = `${y}px`, t.dispatchEvent(new CustomEvent(ce.move, {
1472
+ const p = Math.max(c, a + (f.clientX - i)), y = Math.max(u, o + (f.clientY - s));
1473
+ t.style.width = `${p}px`, t.style.height = `${y}px`, t.dispatchEvent(new CustomEvent(ce.move, {
1528
1474
  bubbles: !0,
1529
1475
  detail: {
1530
1476
  host: t,
1531
- width: f,
1477
+ width: p,
1532
1478
  height: y
1533
1479
  }
1534
1480
  }));
1535
- }, c = (l) => {
1481
+ }, d = (f) => {
1536
1482
  if (r) {
1537
1483
  r = !1;
1538
1484
  try {
1539
- n.releasePointerCapture(l.pointerId);
1485
+ n.releasePointerCapture(f.pointerId);
1540
1486
  } catch {
1541
1487
  }
1542
1488
  t.dispatchEvent(new CustomEvent(ce.end, {
@@ -1549,165 +1495,158 @@ var U = {
1549
1495
  }));
1550
1496
  }
1551
1497
  };
1552
- return g(t, "ui-junction-resize", m(n, "pointerdown", d)), g(t, "ui-junction-resize", m(n, "pointermove", h)), g(t, "ui-junction-resize", m(n, "pointerup", c)), g(t, "ui-junction-resize", m(n, "pointercancel", c)), this;
1498
+ return g(t, "ui-junction-resize", m(n, "pointerdown", l)), g(t, "ui-junction-resize", m(n, "pointermove", h)), g(t, "ui-junction-resize", m(n, "pointerup", d)), g(t, "ui-junction-resize", m(n, "pointercancel", d)), this;
1553
1499
  }
1554
1500
  disconnect(e) {
1555
1501
  const t = e?.deref?.();
1556
- return t && xe(t, "ui-junction-resize"), this;
1502
+ return t && be(t, "ui-junction-resize"), this;
1557
1503
  }
1558
1504
  };
1559
- new pn();
1560
- new hn();
1561
- new mn();
1505
+ new Kt();
1506
+ new Qt();
1507
+ new en();
1562
1508
  export {
1563
- we as DOMMixin,
1564
- hn as JunctionDragMixin,
1565
- mn as JunctionResizeMixin,
1566
- pn as JunctionSelectMixin,
1567
- kn as MATCH,
1568
- Bn as MOC,
1569
- fe as MOCElement,
1570
- Sn as RAFBehavior,
1571
- Vn as REGEX,
1572
- wn as ROOT,
1573
- ar as WavyShapedCircle,
1574
- yn as __exportProperties,
1575
- Me as __registeredCssProperties,
1509
+ ve as DOMMixin,
1510
+ Qt as JunctionDragMixin,
1511
+ en as JunctionResizeMixin,
1512
+ Kt as JunctionSelectMixin,
1513
+ bn as MATCH,
1514
+ Pn as MOC,
1515
+ ue as MOCElement,
1516
+ sn as RAFBehavior,
1517
+ Sn as REGEX,
1518
+ cn as ROOT,
1519
+ Un as WavyShapedCircle,
1520
+ nn as __exportProperties,
1521
+ we as __registeredCssProperties,
1576
1522
  m as addEvent,
1577
- K as addEvents,
1578
- Wn as addEventsList,
1579
- an as addRoot,
1523
+ J as addEvents,
1524
+ An as addEventsList,
1525
+ Dt as addRoot,
1580
1526
  O as adoptedBlobMap,
1581
- Oe as adoptedLayerMap,
1582
1527
  v as adoptedMap,
1583
- Ve as adoptedSelectorMap,
1584
- D as adoptedShadowLayerMap,
1585
- je as adoptedShadowSelectorMap,
1586
- Mt as animateHide,
1587
- xt as animateShow,
1588
- he as availSize,
1589
- Xn as bbh,
1590
- Un as bbw,
1591
- Gt as bindBehavior,
1592
- en as bindMixins,
1593
- Qt as bindStore,
1594
- k as blobURLMap,
1595
- Y as borderBoxHeight,
1596
- X as borderBoxWidth,
1597
- Ue as boundBehaviors,
1528
+ gt as animateHide,
1529
+ yt as animateShow,
1530
+ le as availSize,
1531
+ On as bbh,
1532
+ jn as bbw,
1533
+ Ot as bindBehavior,
1534
+ Nt as bindMixins,
1535
+ $t as bindStore,
1536
+ X as borderBoxHeight,
1537
+ U as borderBoxWidth,
1538
+ _e as boundBehaviors,
1598
1539
  w as boundMixinSet,
1599
- x as cacheMap,
1600
- Gn as cbh,
1601
- Yn as cbw,
1602
- _n as changeZoom,
1603
- Jn as classes,
1604
- St as computeCaretPosition,
1605
- er as computeCaretPositionFromClient,
1606
- $n as containsOrSelf,
1607
- J as contentBoxHeight,
1608
- G as contentBoxWidth,
1609
- jn as createElementVanilla,
1610
- dn as deleteStyleProperty,
1611
- gn as detectMobile,
1612
- Cn as doBorderObserve,
1613
- An as doContentObserve,
1614
- Wt as fetchAndCache,
1615
- Ft as fetchAsInline,
1616
- Kn as fixOrientToScreen,
1617
- Zn as fixedClientZoom,
1618
- ur as getAdoptedStyleRule,
1619
- Be as getAvailSize,
1620
- Dn as getBoundingOrientRect,
1621
- gt as getCorrectOrientation,
1622
- F as getElementRelated,
1623
- yr as getElementZoom,
1624
- In as getEventTarget,
1625
- ut as getOffsetParent,
1626
- vn as getOffsetParentChain,
1627
- vr as getPadding,
1628
- N as getPropertyValue,
1629
- gr as getPxValue,
1630
- Kt as getStoresOfElement,
1631
- Rt as getStyleLayer,
1632
- Se as getStyleRule,
1633
- hr as getTransform,
1634
- mr as getTransformOrigin,
1635
- qn as getZoom,
1636
- Cr as handleAttribute,
1637
- Er as handleDataset,
1638
- xr as handleHidden,
1639
- Mr as handleProperty,
1640
- Ar as handleStyleChange,
1641
- re as hasParent,
1642
- lr as hash,
1643
- Pn as html,
1644
- Nn as includeSelf,
1645
- Ln as indexOf,
1646
- He as initTextStyle,
1647
- or as initVisibility,
1648
- On as isElement,
1649
- Hn as isInFocus,
1650
- Ke as isMobile,
1651
- bn as isNearlyIdentity,
1652
- Tn as isValidParent,
1653
- pr as layerCounter,
1654
- Xt as loadAsAdopted,
1655
- _t as loadBlobStyle,
1540
+ Fn as cbh,
1541
+ Wn as cbw,
1542
+ Ln as changeZoom,
1543
+ In as classes,
1544
+ ht as computeCaretPosition,
1545
+ Bn as computeCaretPositionFromClient,
1546
+ Rn as containsOrSelf,
1547
+ G as contentBoxHeight,
1548
+ Y as contentBoxWidth,
1549
+ wn as createElementVanilla,
1550
+ Gt as deleteStyleProperty,
1551
+ rn as detectMobile,
1552
+ pn as doBorderObserve,
1553
+ fn as doContentObserve,
1554
+ kt as fetchAndCache,
1555
+ zt as fetchAsInline,
1556
+ $n as fixOrientToScreen,
1557
+ Tn as fixedClientZoom,
1558
+ Yn as getAdoptedStyleRule,
1559
+ Ie as getAvailSize,
1560
+ Vn as getBoundingOrientRect,
1561
+ lt as getCorrectOrientation,
1562
+ I as getElementRelated,
1563
+ nr as getElementZoom,
1564
+ Cn as getEventTarget,
1565
+ nt as getOffsetParent,
1566
+ on as getOffsetParentChain,
1567
+ ir as getPadding,
1568
+ W as getPropertyValue,
1569
+ rr as getPxValue,
1570
+ Ft as getStoresOfElement,
1571
+ wt as getStyleLayer,
1572
+ ge as getStyleRule,
1573
+ er as getTransform,
1574
+ tr as getTransformOrigin,
1575
+ zn as getZoom,
1576
+ fr as handleAttribute,
1577
+ dr as handleDataset,
1578
+ cr as handleHidden,
1579
+ ur as handleProperty,
1580
+ lr as handleStyleChange,
1581
+ ne as hasParent,
1582
+ Jn as hash,
1583
+ mn as html,
1584
+ En as includeSelf,
1585
+ vn as indexOf,
1586
+ $e as initTextStyle,
1587
+ Zn as initVisibility,
1588
+ xn as isElement,
1589
+ kn as isInFocus,
1590
+ et as isMobile,
1591
+ an as isNearlyIdentity,
1592
+ gn as isValidParent,
1593
+ Vt as loadAsAdopted,
1594
+ Tt as loadBlobStyle,
1656
1595
  j as loadInlineStyle,
1657
- De as loadStyleSheet,
1658
- ct as makeRAFCycle,
1659
- Qn as measureInputInFocus,
1660
- bt as measureText,
1661
- ee as mixinDisposers,
1596
+ qe as loadStyleSheet,
1597
+ rt as makeRAFCycle,
1598
+ Nn as measureInputInFocus,
1599
+ pt as measureText,
1600
+ Q as mixinDisposers,
1662
1601
  C as mixinElements,
1663
- Q as mixinNamespace,
1664
- $ as mixinRegistry,
1665
- cn as nameRegistryF,
1666
- I as namedStoreMaps,
1667
- ir as observeAttribute,
1668
- ve as observeAttributeBySelector,
1669
- rr as observeBorderBox,
1670
- Ct as observeBySelector,
1671
- nr as observeContentBox,
1672
- Ce as onBorderObserve,
1673
- Re as onContentObserve,
1674
- z as orientOf,
1675
- mt as orientationNumberMap,
1676
- We as parseLength,
1677
- Yt as parseOrigin,
1678
- $e as passiveOpts,
1679
- fr as preloadStyle,
1680
- wt as readLauncherLayoutFromElement,
1681
- br as reflectBehaviors,
1682
- wr as reflectMixins,
1683
- Sr as reflectStores,
1684
- ln as registerMixin,
1685
- ae as removeAdopted,
1686
- Pe as removeEvent,
1687
- Fn as removeEvents,
1688
- tr as resolveGridCellFromClientPoint,
1689
- me as roots,
1690
- Mn as setAttributes,
1691
- xn as setAttributesIfNull,
1692
- zn as setChecked,
1693
- En as setIdleInterval,
1694
- dr as setProperty,
1695
- cr as setStyleInRule,
1602
+ K as mixinNamespace,
1603
+ N as mixinRegistry,
1604
+ Xt as nameRegistryF,
1605
+ $ as namedStoreMaps,
1606
+ Dn as observeAttribute,
1607
+ me as observeAttributeBySelector,
1608
+ _n as observeBorderBox,
1609
+ St as observeBySelector,
1610
+ qn as observeContentBox,
1611
+ Ee as onBorderObserve,
1612
+ Ae as onContentObserve,
1613
+ k as orientOf,
1614
+ ut as orientationNumberMap,
1615
+ je as parseLength,
1616
+ jt as parseOrigin,
1617
+ Fe as passiveOpts,
1618
+ Qn as preloadStyle,
1619
+ mt as readLauncherLayoutFromElement,
1620
+ or as reflectBehaviors,
1621
+ sr as reflectMixins,
1622
+ ar as reflectStores,
1623
+ Yt as registerMixin,
1624
+ oe as removeAdopted,
1625
+ Me as removeEvent,
1626
+ Mn as removeEvents,
1627
+ Hn as resolveGridCellFromClientPoint,
1628
+ fe as roots,
1629
+ dn as setAttributes,
1630
+ un as setAttributesIfNull,
1631
+ yn as setChecked,
1632
+ ln as setIdleInterval,
1633
+ Kn as setProperty,
1634
+ Gn as setStyleInRule,
1696
1635
  S as setStyleProperty,
1697
- _e as setStylePropertyFallback,
1698
- jt as setStylePropertyTyped,
1699
- qt as setStyleRule,
1700
- sr as setStyleRules,
1701
- Te as setStyleURL,
1702
- lt as throttleMap,
1703
- pe as unfixedClientZoom,
1704
- ye as updateAllMixins,
1705
- Xe as updateMixinAttributes,
1706
- sn as updateMixinAttributesAll,
1707
- un as updateMixinAttributesAllInRoots,
1708
- yt as updateVP,
1709
- Rn as url,
1710
- vt as whenAnyScreenChanges,
1711
- pt as zoomOf,
1712
- ft as zoomValues
1636
+ Be as setStylePropertyFallback,
1637
+ Pt as setStylePropertyTyped,
1638
+ Lt as setStyleRule,
1639
+ Xn as setStyleRules,
1640
+ Re as setStyleURL,
1641
+ it as throttleMap,
1642
+ de as unfixedClientZoom,
1643
+ pe as updateAllMixins,
1644
+ De as updateMixinAttributes,
1645
+ Zt as updateMixinAttributesAll,
1646
+ Ut as updateMixinAttributesAllInRoots,
1647
+ dt as updateVP,
1648
+ hn as url,
1649
+ ft as whenAnyScreenChanges,
1650
+ st as zoomOf,
1651
+ at as zoomValues
1713
1652
  };