@fest-lib/dom 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom.js +289 -286
- package/dist/index.js +289 -286
- package/package.json +1 -1
package/dist/dom.js
CHANGED
|
@@ -204,13 +204,13 @@ var Je = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), Me = gl
|
|
|
204
204
|
Me.add(t);
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
var
|
|
207
|
+
var gn = () => {
|
|
208
208
|
}, Ke = () => {
|
|
209
209
|
let e = navigator?.userAgentData?.mobile || !1;
|
|
210
210
|
return ((t) => {
|
|
211
211
|
(/(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
212
|
})(navigator.userAgent || navigator.vendor || globalThis.opera), e;
|
|
213
|
-
},
|
|
213
|
+
}, vn = () => [
|
|
214
214
|
/Android/i,
|
|
215
215
|
/webOS/i,
|
|
216
216
|
/iPhone/i,
|
|
@@ -247,31 +247,31 @@ var yn = () => {
|
|
|
247
247
|
const [n, r] = H(t);
|
|
248
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
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),
|
|
250
|
+
const s = H(n), a = Math.max(1, t[0] || 1), o = Math.max(1, t[1] || 1), c = de(e, [a, o], r), u = {
|
|
251
251
|
item: i?.redirect?.item ?? { id: "" },
|
|
252
252
|
list: i?.redirect?.list ?? [],
|
|
253
253
|
items: i?.redirect?.items ?? /* @__PURE__ */ new Map(),
|
|
254
254
|
layout: s,
|
|
255
255
|
size: [a, o]
|
|
256
|
-
}, d = at(
|
|
257
|
-
return nt(
|
|
256
|
+
}, d = at(c, u, r), h = (i?.mode ?? "floor") === "round" ? [Math.round(d[0]), Math.round(d[1])] : [Math.floor(d[0]), Math.floor(d[1])], l = ot(h, u);
|
|
257
|
+
return nt(l, s);
|
|
258
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
259
|
const n = H(t?.layout ?? [4, 8]), r = {
|
|
260
260
|
...t,
|
|
261
261
|
layout: n
|
|
262
|
-
}, i = it(r?.items), s = r?.item || {}, a = (
|
|
262
|
+
}, i = it(r?.items), s = r?.item || {}, a = (p) => i.filter((y) => !(y == s || y?.id == s?.id)).some((y) => (y?.cell?.[0] || 0) == (p[0] || 0) && (y?.cell?.[1] || 0) == (p[1] || 0)), o = [...e];
|
|
263
263
|
if (!a(o)) return [...o];
|
|
264
|
-
const
|
|
264
|
+
const c = n[0] || 4, u = n[1] || 8, d = ([
|
|
265
265
|
[o[0] + 1, o[1]],
|
|
266
266
|
[o[0] - 1, o[1]],
|
|
267
267
|
[o[0], o[1] + 1],
|
|
268
268
|
[o[0], o[1] - 1]
|
|
269
|
-
].filter((
|
|
269
|
+
].filter((p) => p[0] >= 0 && p[0] < c && p[1] >= 0 && p[1] < u) || []).find((p) => !a(p));
|
|
270
270
|
if (d) return [...d];
|
|
271
|
-
let h = 0,
|
|
272
|
-
for (;
|
|
273
|
-
if (!(
|
|
274
|
-
|
|
271
|
+
let h = 0, l = !0, f = [...o];
|
|
272
|
+
for (; l && h++ < c * u; ) {
|
|
273
|
+
if (!(l = a(f))) return [...f];
|
|
274
|
+
f[0]++, f[0] >= c && (f[0] = 0, f[1]++, f[1] >= u && (f[1] = 0));
|
|
275
275
|
}
|
|
276
276
|
return [...o];
|
|
277
277
|
}, at = (e, t, n = 0) => {
|
|
@@ -282,7 +282,7 @@ var yn = () => {
|
|
|
282
282
|
}, st = () => ({
|
|
283
283
|
didTimeout: !1,
|
|
284
284
|
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,
|
|
285
|
+
}), Ae = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(st()), 0), ut = (e) => e?.offsetParent ?? e?.host, bn = (e) => {
|
|
286
286
|
const t = [];
|
|
287
287
|
let n = e;
|
|
288
288
|
for (; n; ) {
|
|
@@ -291,7 +291,7 @@ var yn = () => {
|
|
|
291
291
|
(n = r) && t.push(n);
|
|
292
292
|
}
|
|
293
293
|
return t;
|
|
294
|
-
},
|
|
294
|
+
}, Sn = (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 = () => {
|
|
295
295
|
const e = {
|
|
296
296
|
canceled: !1,
|
|
297
297
|
rAFs: /* @__PURE__ */ new Set(),
|
|
@@ -311,15 +311,15 @@ var yn = () => {
|
|
|
311
311
|
setTimeout(t, 16);
|
|
312
312
|
});
|
|
313
313
|
})(), e;
|
|
314
|
-
},
|
|
314
|
+
}, wn = (e = ct()) => (t) => e.shedule(t), xn = typeof document < "u" ? document?.documentElement : null, Mn = (e, t = {}) => {
|
|
315
315
|
if (!(!t || typeof t != "object" || !e))
|
|
316
316
|
return Array.from(Object.entries(t)).map(([n, r]) => {
|
|
317
317
|
const i = e.getAttribute(n);
|
|
318
318
|
r == null ? e.removeAttribute(n) : r != i && e.setAttribute(n, i == "" ? r ?? i : i ?? r);
|
|
319
319
|
});
|
|
320
|
-
},
|
|
320
|
+
}, En = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
|
|
321
321
|
r == null ? e.removeAttribute(n) : e.setAttribute(n, r ?? e.getAttribute(n));
|
|
322
|
-
}), lt = /* @__PURE__ */ new Map(),
|
|
322
|
+
}), lt = /* @__PURE__ */ new Map(), An = (e, t = 1e3, ...n) => {
|
|
323
323
|
const r = {
|
|
324
324
|
running: !0,
|
|
325
325
|
cancel: () => {
|
|
@@ -339,7 +339,7 @@ typeof requestAnimationFrame < "u" && requestAnimationFrame(async () => {
|
|
|
339
339
|
for (; ; )
|
|
340
340
|
lt.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
|
|
341
341
|
});
|
|
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(),
|
|
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(), Cn = (e, t = () => {
|
|
343
343
|
}) => {
|
|
344
344
|
if (e instanceof HTMLElement && !Re.has(e)) {
|
|
345
345
|
e[G] = e.clientWidth, e[J] = e.clientHeight;
|
|
@@ -351,7 +351,7 @@ var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol(
|
|
|
351
351
|
});
|
|
352
352
|
Re.set(e, n), n.observe(e?.element ?? e, { box: "content-box" });
|
|
353
353
|
}
|
|
354
|
-
},
|
|
354
|
+
}, Rn = (e, t = () => {
|
|
355
355
|
}) => {
|
|
356
356
|
if (e instanceof HTMLElement && !Ce.has(e)) {
|
|
357
357
|
e[X] = e.offsetWidth, e[Y] = e.offsetHeight;
|
|
@@ -363,21 +363,21 @@ var X = /* @__PURE__ */ Symbol("@border-box-width"), Y = /* @__PURE__ */ Symbol(
|
|
|
363
363
|
});
|
|
364
364
|
Ce.set(e, n), n.observe(e?.element ?? e, { box: "border-box" });
|
|
365
365
|
}
|
|
366
|
-
},
|
|
366
|
+
}, Pn = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), zn = (e, t = "text/html") => {
|
|
367
367
|
const n = new DOMParser().parseFromString(e, t);
|
|
368
368
|
return n.querySelector("template") ?? n.querySelector("*");
|
|
369
|
-
},
|
|
369
|
+
}, Tn = (e, t, n) => {
|
|
370
370
|
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
371
|
bubbles: !0,
|
|
372
372
|
cancelable: !0
|
|
373
373
|
}))));
|
|
374
|
-
},
|
|
374
|
+
}, Ln = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, kn = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, Vn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", jn = `^(?:(-?[_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)?\\]`, On = (e) => {
|
|
375
375
|
if (e == ":fragment:") return document.createDocumentFragment();
|
|
376
376
|
const t = document.createElement.bind(document);
|
|
377
377
|
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
378
|
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
379
|
return i && (n.className = i.slice(1)), n;
|
|
380
|
-
},
|
|
380
|
+
}, Nn = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, Wn = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), re = (e, t) => {
|
|
381
381
|
for (; e; ) {
|
|
382
382
|
if (!(e?.element ?? e)) return !1;
|
|
383
383
|
if ((e?.element ?? e) === (t?.element ?? t)) return !0;
|
|
@@ -392,12 +392,12 @@ function m(e, t, n, r = $e) {
|
|
|
392
392
|
function Pe(e, t, n, r = $e) {
|
|
393
393
|
e?.removeEventListener?.(t, n, r);
|
|
394
394
|
}
|
|
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))),
|
|
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))), Fn = (e, t) => {
|
|
396
396
|
if (t) {
|
|
397
397
|
let n = t;
|
|
398
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)));
|
|
399
399
|
}
|
|
400
|
-
},
|
|
400
|
+
}, In = (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))), $n = (e) => {
|
|
401
401
|
if (!e) return null;
|
|
402
402
|
if (e?.composedPath && typeof e.composedPath == "function") {
|
|
403
403
|
const n = e.composedPath();
|
|
@@ -405,7 +405,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
405
405
|
}
|
|
406
406
|
const t = e?.target;
|
|
407
407
|
return t instanceof HTMLElement || t instanceof Element ? t : null;
|
|
408
|
-
},
|
|
408
|
+
}, Bn = (e, t, n) => {
|
|
409
409
|
if (t == null || !(t instanceof Node) && t?.element == null) return !1;
|
|
410
410
|
if (e == t || (e?.element ?? e) == (t?.element ?? t)) return !0;
|
|
411
411
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
@@ -419,12 +419,12 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
419
419
|
}, fe = (e, t, n) => {
|
|
420
420
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
421
421
|
const o = n.composedPath();
|
|
422
|
-
for (const
|
|
423
|
-
return
|
|
422
|
+
for (const c of o) if ((c instanceof HTMLElement || c instanceof Element) && c.matches?.(t))
|
|
423
|
+
return c;
|
|
424
424
|
}
|
|
425
425
|
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
426
|
return r ?? a ?? s;
|
|
427
|
-
},
|
|
427
|
+
}, Hn = (e, t) => !!fe(e, t), qn = (e, t, n = "parent") => {
|
|
428
428
|
if (!e || e.checkVisibility && !e.checkVisibility({
|
|
429
429
|
checkOpacity: !0,
|
|
430
430
|
checkVisibilityCSS: !0
|
|
@@ -443,15 +443,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
443
443
|
} else if (t instanceof HTMLElement) return n === "parent" ? re(e, t) || !1 : re(t, e) || !1;
|
|
444
444
|
}
|
|
445
445
|
return !0;
|
|
446
|
-
},
|
|
446
|
+
}, _n = () => "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, () => {
|
|
447
447
|
const t = (e?.matches?.(".ui-orientbox") ? e : null) || e?.closest?.(".ui-orientbox") || document.body;
|
|
448
448
|
if (t?.zoom) return t?.zoom || 1;
|
|
449
449
|
if (e?.currentCSSZoom) return e?.currentCSSZoom || 1;
|
|
450
|
-
}),
|
|
450
|
+
}), Zn = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
|
|
451
451
|
detail: { zoom: e },
|
|
452
452
|
bubbles: !0,
|
|
453
453
|
cancelable: !0
|
|
454
|
-
})), e),
|
|
454
|
+
})), e), Dn = (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) => {
|
|
455
455
|
const t = (e?.matches?.('[orient], [data-mixin="ui-orientbox"]') ? e : null) || e?.closest?.('[orient], [data-mixin="ui-orientbox"]') || e;
|
|
456
456
|
if (t?.hasAttribute?.("orient")) return parseInt(t?.getAttribute?.("orient") || "0") || 0;
|
|
457
457
|
if (t?.orient != null && Number.isFinite(Number(t.orient))) return Number(t.orient) || 0;
|
|
@@ -461,7 +461,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
461
461
|
} catch {
|
|
462
462
|
}
|
|
463
463
|
return 0;
|
|
464
|
-
},
|
|
464
|
+
}, Un = (e, t = null) => {
|
|
465
465
|
const n = pe(e) || 1, r = e?.getBoundingClientRect?.(), i = {
|
|
466
466
|
left: r?.left / n,
|
|
467
467
|
right: r?.right / n,
|
|
@@ -469,16 +469,16 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
469
469
|
bottom: r?.bottom / n,
|
|
470
470
|
width: r?.width / n,
|
|
471
471
|
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], [
|
|
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], [c, u] = de([i.left, i.top], o, s), [d, h] = de([i.right, i.bottom], o, s), [l, f] = s == 0 || s == 3 ? [c, d] : [d, c], [p, y] = s == 0 || s == 1 ? [u, h] : [h, u], [_, Ge] = s % 2 ? [i.height, i.width] : [i.width, i.height];
|
|
473
473
|
return {
|
|
474
|
-
left:
|
|
475
|
-
top:
|
|
476
|
-
right:
|
|
474
|
+
left: l,
|
|
475
|
+
top: p,
|
|
476
|
+
right: f,
|
|
477
477
|
bottom: y,
|
|
478
478
|
width: _,
|
|
479
479
|
height: Ge
|
|
480
480
|
};
|
|
481
|
-
},
|
|
481
|
+
}, Xn = (e, t = null) => (t ?? z(e)) % 2 ? e[Y] ?? e?.clientHeight : e[X] ?? e?.clientWidth, Yn = (e, t = null) => (t ?? z(e)) % 2 ? e[X] ?? e?.clientWidth : e[Y] ?? e?.clientHeight, Gn = (e, t = null) => (t ?? z(e)) % 2 ? e[J] ?? e?.clientHeight : e[G] ?? e?.clientWidth, Jn = (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({
|
|
482
482
|
didTimeout: !1,
|
|
483
483
|
timeRemaining: () => 0
|
|
484
484
|
}), 0), Be = () => {
|
|
@@ -516,7 +516,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
516
516
|
"--pixel-ratio": "1",
|
|
517
517
|
...n
|
|
518
518
|
};
|
|
519
|
-
}, he = Be(),
|
|
519
|
+
}, he = Be(), Kn = [[":root, :host, :scope", he]], mt = {
|
|
520
520
|
"portrait-primary": 0,
|
|
521
521
|
"landscape-primary": 1,
|
|
522
522
|
"portrait-secondary": 2,
|
|
@@ -538,7 +538,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
538
538
|
}), t = !0);
|
|
539
539
|
}, r = [];
|
|
540
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
|
-
},
|
|
541
|
+
}, Qn = (e) => {
|
|
542
542
|
if (!e?.classList?.contains?.("native-portrait-optimized"))
|
|
543
543
|
return e?.classList?.add?.("native-portrait-optimized"), vt(() => {
|
|
544
544
|
const t = mt?.[gt()] ?? 0;
|
|
@@ -578,7 +578,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return { width: null };
|
|
581
|
-
},
|
|
581
|
+
}, er = (e) => {
|
|
582
582
|
const t = e.value.slice(0, e.selectionEnd || 0);
|
|
583
583
|
return bt(t, e);
|
|
584
584
|
}, St = (e, t) => {
|
|
@@ -592,18 +592,18 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
return n.length;
|
|
595
|
-
},
|
|
595
|
+
}, tr = (e, t) => {
|
|
596
596
|
const n = e.getBoundingClientRect(), r = [t[0] - n.left / pe(), t[1] - n.top / pe()];
|
|
597
597
|
return St(e, r);
|
|
598
598
|
}, wt = (e, t) => {
|
|
599
599
|
const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i = H(t ?? [4, 8]);
|
|
600
600
|
return [Number.isFinite(n) && n > 0 ? n : i[0], Number.isFinite(r) && r > 0 ? r : i[1]];
|
|
601
|
-
},
|
|
601
|
+
}, nr = (e, t, n, r = "floor") => {
|
|
602
602
|
if (!e) return [0, 0];
|
|
603
603
|
const i = e.getBoundingClientRect?.();
|
|
604
604
|
if (!i) return [0, 0];
|
|
605
|
-
const s = wt(e, n?.layout), a = z(e), o = globalThis.getComputedStyle?.(e),
|
|
606
|
-
return rt([(t?.[0] || 0) - i.left -
|
|
605
|
+
const s = wt(e, n?.layout), a = z(e), o = globalThis.getComputedStyle?.(e), c = parseFloat(o?.paddingLeft) || 0, u = parseFloat(o?.paddingTop) || 0, d = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, l = Math.max(1, (i.width || e.clientWidth || 1) - c - d), f = Math.max(1, (i.height || e.clientHeight || 1) - u - h);
|
|
606
|
+
return rt([(t?.[0] || 0) - i.left - c, (t?.[1] || 0) - i.top - u], [l, f], s, a, {
|
|
607
607
|
mode: r,
|
|
608
608
|
redirect: {
|
|
609
609
|
item: n?.item,
|
|
@@ -673,8 +673,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
673
673
|
const { resolve: n, reject: r, promise: i } = Promise.withResolvers(), s = requestAnimationFrame(n);
|
|
674
674
|
let a = !1;
|
|
675
675
|
const o = () => {
|
|
676
|
-
a || (a = !0,
|
|
677
|
-
},
|
|
676
|
+
a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
|
|
677
|
+
}, c = K(e, {
|
|
678
678
|
"u2-before-hide": [o, {
|
|
679
679
|
once: !0,
|
|
680
680
|
passive: !0
|
|
@@ -738,8 +738,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
738
738
|
const { resolve: n, reject: r, promise: i } = Promise.withResolvers(), s = requestAnimationFrame(n);
|
|
739
739
|
let a = !1;
|
|
740
740
|
const o = () => {
|
|
741
|
-
a || (a = !0,
|
|
742
|
-
},
|
|
741
|
+
a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
|
|
742
|
+
}, c = K(e, {
|
|
743
743
|
"u2-before-hide": [o, {
|
|
744
744
|
once: !0,
|
|
745
745
|
passive: !0
|
|
@@ -751,7 +751,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
751
751
|
});
|
|
752
752
|
await i, o?.();
|
|
753
753
|
}
|
|
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),
|
|
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), rr = (e, t) => {
|
|
755
755
|
if (!L.has(e = q(e))) {
|
|
756
756
|
const n = [], r = new ResizeObserver((i) => {
|
|
757
757
|
for (const s of i) if (s.contentBoxSize) {
|
|
@@ -765,7 +765,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
765
765
|
}, r), L.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
|
|
766
766
|
}
|
|
767
767
|
return L.get(e)?.push?.(t), { disconnect: () => L.get(e)?.splice?.(L.get(e)?.indexOf(t) || -1, 1) };
|
|
768
|
-
},
|
|
768
|
+
}, ir = (e, t) => {
|
|
769
769
|
if (!T.has(e = q(e))) {
|
|
770
770
|
const n = [], r = new ResizeObserver((i) => {
|
|
771
771
|
for (const s of i) if (s.borderBoxSize) {
|
|
@@ -779,7 +779,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
779
779
|
}, r), T.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
|
|
780
780
|
}
|
|
781
781
|
return T.get(e)?.push?.(t), { disconnect: () => T.get(e)?.splice?.(T.get(e)?.indexOf(t) || -1, 1) };
|
|
782
|
-
},
|
|
782
|
+
}, or = (e, t, n) => {
|
|
783
783
|
if (typeof e?.selector == "string") return ve(e, e?.selector, t, n);
|
|
784
784
|
const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, a) => {
|
|
785
785
|
for (const o of s) o.attributeName && r.has(o.attributeName) && n(o, a);
|
|
@@ -796,19 +796,19 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
796
796
|
}, i)), i;
|
|
797
797
|
}, ve = (e, t, n, r) => {
|
|
798
798
|
const i = new Set([...n.split(",") || [n]].map((a) => a.trim())), s = new MutationObserver((a, o) => {
|
|
799
|
-
for (const
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
i.forEach((
|
|
799
|
+
for (const c of a) if (c.type == "childList") {
|
|
800
|
+
const u = Array.from(c.addedNodes) || [], d = Array.from(c.removedNodes) || [];
|
|
801
|
+
u.push(...Array.from(c.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), d.push(...Array.from(c.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(u)].filter((h) => h?.matches?.(t))?.map?.((h) => {
|
|
802
|
+
i.forEach((l) => {
|
|
803
803
|
r({
|
|
804
804
|
target: h,
|
|
805
805
|
type: "attributes",
|
|
806
|
-
attributeName:
|
|
807
|
-
oldValue: h?.getAttribute?.(
|
|
806
|
+
attributeName: l,
|
|
807
|
+
oldValue: h?.getAttribute?.(l)
|
|
808
808
|
}, o);
|
|
809
809
|
});
|
|
810
810
|
});
|
|
811
|
-
} else
|
|
811
|
+
} else c.target?.matches?.(t) && c.attributeName && i.has(c.attributeName) && r(c, o);
|
|
812
812
|
});
|
|
813
813
|
return s.observe(e = q(e), {
|
|
814
814
|
attributeOldValue: !0,
|
|
@@ -825,67 +825,69 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
825
825
|
}, s))), s;
|
|
826
826
|
}, Ct = (e, t = "*", n = (r, i) => {
|
|
827
827
|
}) => {
|
|
828
|
-
const r = (
|
|
829
|
-
const
|
|
830
|
-
return
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
828
|
+
const r = (l) => {
|
|
829
|
+
const f = Array.from(l || []) || [];
|
|
830
|
+
return f.push(...Array.from(l || []).flatMap((p) => Array.from(p?.querySelectorAll?.(t) || []))), [...Array.from(new Set(f).values())].filter((p) => p?.matches?.(t));
|
|
831
|
+
};
|
|
832
|
+
let i = null;
|
|
833
|
+
const s = (l) => {
|
|
834
|
+
const f = i?.deref?.(), p = r(l.addedNodes), y = r(l.removedNodes);
|
|
835
|
+
(p.length > 0 || y.length > 0) && n?.({
|
|
836
|
+
type: l.type,
|
|
837
|
+
target: l.target,
|
|
838
|
+
attributeName: l.attributeName,
|
|
839
|
+
attributeNamespace: l.attributeNamespace,
|
|
840
|
+
nextSibling: l.nextSibling,
|
|
841
|
+
oldValue: l.oldValue,
|
|
842
|
+
previousSibling: l.previousSibling,
|
|
843
|
+
addedNodes: p,
|
|
842
844
|
removedNodes: y
|
|
843
|
-
},
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
addedNodes: [
|
|
847
|
-
removedNodes: [
|
|
845
|
+
}, f);
|
|
846
|
+
}, a = (l) => {
|
|
847
|
+
s({
|
|
848
|
+
addedNodes: [l?.target].filter((f) => !!f),
|
|
849
|
+
removedNodes: [l?.relatedTarget].filter((f) => !!f),
|
|
848
850
|
type: "childList",
|
|
849
|
-
target:
|
|
851
|
+
target: l?.currentTarget
|
|
850
852
|
});
|
|
851
|
-
},
|
|
852
|
-
|
|
853
|
-
addedNodes: [
|
|
854
|
-
removedNodes: [
|
|
853
|
+
}, o = (l) => {
|
|
854
|
+
s({
|
|
855
|
+
addedNodes: [l?.relatedTarget].filter((f) => !!f),
|
|
856
|
+
removedNodes: [l?.target].filter((f) => !!f),
|
|
855
857
|
type: "childList",
|
|
856
|
-
target:
|
|
858
|
+
target: l?.currentTarget
|
|
857
859
|
});
|
|
858
|
-
},
|
|
859
|
-
|
|
860
|
-
addedNodes: [
|
|
861
|
-
removedNodes: [
|
|
860
|
+
}, c = (l) => {
|
|
861
|
+
s({
|
|
862
|
+
addedNodes: [l?.target].filter((f) => !!f),
|
|
863
|
+
removedNodes: [l?.relatedTarget || document?.activeElement].filter((f) => !!f),
|
|
862
864
|
type: "childList",
|
|
863
|
-
target:
|
|
865
|
+
target: l?.currentTarget
|
|
864
866
|
});
|
|
865
867
|
}, u = {
|
|
866
868
|
passive: !0,
|
|
867
869
|
capture: !1
|
|
868
870
|
};
|
|
869
871
|
if (t?.includes?.(":hover") && t?.includes?.(":active"))
|
|
870
|
-
return e.addEventListener("pointerover",
|
|
871
|
-
e.removeEventListener("pointerover",
|
|
872
|
+
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: () => {
|
|
873
|
+
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
874
|
} };
|
|
873
875
|
if (t?.includes?.(":hover"))
|
|
874
|
-
return e.addEventListener("pointerover",
|
|
875
|
-
e.removeEventListener("pointerover",
|
|
876
|
+
return e.addEventListener("pointerover", a, u), e.addEventListener("pointerout", o, u), { disconnect: () => {
|
|
877
|
+
e.removeEventListener("pointerover", a, u), e.removeEventListener("pointerout", o, u);
|
|
876
878
|
} };
|
|
877
879
|
if (t?.includes?.(":active"))
|
|
878
|
-
return e.addEventListener("pointerdown",
|
|
879
|
-
e.removeEventListener("pointerdown",
|
|
880
|
+
return e.addEventListener("pointerdown", a, u), e.addEventListener("pointerup", o, u), e.addEventListener("pointercancel", o, u), { disconnect: () => {
|
|
881
|
+
e.removeEventListener("pointerdown", a, u), e.removeEventListener("pointerup", o, u), e.removeEventListener("pointercancel", o, u);
|
|
880
882
|
} };
|
|
881
883
|
if (t?.includes?.(":focus") && t?.includes?.(":focus-within") && t?.includes?.(":focus-visible"))
|
|
882
|
-
return e.addEventListener("focusin",
|
|
883
|
-
e.removeEventListener("focusin",
|
|
884
|
+
return e.addEventListener("focusin", a, u), e.addEventListener("focusout", o, u), e.addEventListener("click", c, u), { disconnect: () => {
|
|
885
|
+
e.removeEventListener("focusin", a, u), e.removeEventListener("focusout", o, u), e.removeEventListener("click", c, u);
|
|
884
886
|
} };
|
|
885
|
-
const
|
|
886
|
-
for (const
|
|
887
|
-
})
|
|
888
|
-
(e?.element ?? e) instanceof Node &&
|
|
887
|
+
const d = new MutationObserver((l, f) => {
|
|
888
|
+
for (const p of l) p.type == "childList" && s(p);
|
|
889
|
+
});
|
|
890
|
+
i = new WeakRef(d), (e?.element ?? e) instanceof Node && d.observe(e = q(e), {
|
|
889
891
|
childList: !0,
|
|
890
892
|
subtree: !0
|
|
891
893
|
});
|
|
@@ -893,15 +895,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
893
895
|
return h.length > 0 && n?.({
|
|
894
896
|
addedNodes: h,
|
|
895
897
|
removedNodes: []
|
|
896
|
-
},
|
|
897
|
-
},
|
|
898
|
+
}, d), d;
|
|
899
|
+
}, ar = async (e = document.body) => {
|
|
898
900
|
ve(e, "*", "data-hidden", (t, n) => {
|
|
899
901
|
if (t.attributeName == "data-hidden") {
|
|
900
902
|
const r = t.target;
|
|
901
903
|
r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? Mt : xt, r, n)?.catch?.(console.warn.bind(console));
|
|
902
904
|
}
|
|
903
905
|
});
|
|
904
|
-
},
|
|
906
|
+
}, sr = (e = 100, t = 0.05, n = 8) => {
|
|
905
907
|
const r = [];
|
|
906
908
|
for (let o = 0; o < e; o++) r.push(o / e);
|
|
907
909
|
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%))`];
|
|
@@ -914,7 +916,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
914
916
|
W && (typeof document < "u" && document.querySelector("head")?.appendChild?.(W), W.dataset.owner = be);
|
|
915
917
|
var Te = (e, t, n = "") => {
|
|
916
918
|
e[0][e[1]] = e[1] == "innerHTML" ? `@import url("${t}") ${n && typeof n == "string" ? `layer(${n})` : ""};` : t;
|
|
917
|
-
},
|
|
919
|
+
}, ur = (e) => e?.map?.((t) => qt(...t)), Rt = (e, t) => {
|
|
918
920
|
t ||= W?.sheet;
|
|
919
921
|
let n = Array.from(t?.cssRules || []).findIndex((i) => i instanceof CSSLayerBlockRule && i?.name === e), r;
|
|
920
922
|
return n === -1 && t ? r = t?.cssRules?.[n = t.insertRule(`@layer ${e} {}`)] : r = t?.cssRules?.[n], r;
|
|
@@ -922,8 +924,8 @@ var Te = (e, t, n = "") => {
|
|
|
922
924
|
const i = Array.from(e?.cssRules || []), s = t.trim(), a = r.trim();
|
|
923
925
|
return i.findIndex((o) => {
|
|
924
926
|
if (!(o instanceof CSSStyleRule)) return !1;
|
|
925
|
-
const
|
|
926
|
-
return
|
|
927
|
+
const c = o.selectorText?.trim?.() ?? "";
|
|
928
|
+
return c === s ? !0 : a && c.endsWith(a) ? c.slice(0, c.length - a.length).trim() === n : !1;
|
|
927
929
|
});
|
|
928
930
|
}, Se = (e, t, n = "ux-query", r = null) => {
|
|
929
931
|
const i = oe(r) || Le(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = zt(r) ? r : null;
|
|
@@ -936,9 +938,9 @@ var Te = (e, t, n = "") => {
|
|
|
936
938
|
let o = null;
|
|
937
939
|
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
940
|
if (n) return Se(e, Rt(n, t), null, r);
|
|
939
|
-
const
|
|
940
|
-
let
|
|
941
|
-
return
|
|
941
|
+
const c = Lt(a, e);
|
|
942
|
+
let u = kt(t, c, a, e);
|
|
943
|
+
return u === -1 && (u = t.insertRule(`${c} {}`)), t.cssRules?.[u];
|
|
942
944
|
};
|
|
943
945
|
function Vt() {
|
|
944
946
|
return W ?? null;
|
|
@@ -959,22 +961,22 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
959
961
|
if (o == null)
|
|
960
962
|
return a.delete?.(i), s && b(s, i, null, r), e;
|
|
961
963
|
if (P(o)) {
|
|
962
|
-
const
|
|
963
|
-
if (A(o) && A(
|
|
964
|
-
if (
|
|
965
|
-
} else if (
|
|
964
|
+
const c = a.get(i);
|
|
965
|
+
if (A(o) && A(c)) {
|
|
966
|
+
if (c.value === o.value && c.unit === o.unit) return e;
|
|
967
|
+
} else if (c === o) return e;
|
|
966
968
|
return a.set(i, o), e;
|
|
967
969
|
}
|
|
968
970
|
if (typeof o == "number") if (CSS?.number && !i.startsWith("--")) {
|
|
969
|
-
const
|
|
970
|
-
return A(
|
|
971
|
+
const c = CSS.number(o), u = a.get(i);
|
|
972
|
+
return A(u) && u.value === c.value && u.unit === c.unit || a.set(i, c), e;
|
|
971
973
|
} else
|
|
972
974
|
return b(s, i, String(o), r), e;
|
|
973
975
|
if (typeof o == "string" && !P(o)) {
|
|
974
|
-
const
|
|
975
|
-
if (typeof
|
|
976
|
-
const
|
|
977
|
-
return A(d) && d.value ===
|
|
976
|
+
const c = Ie(o);
|
|
977
|
+
if (typeof c == "number" && CSS?.number && !i.startsWith("--")) {
|
|
978
|
+
const u = CSS.number(c), d = a.get(i);
|
|
979
|
+
return A(d) && d.value === u.value && d.unit === u.unit || a.set(i, u), e;
|
|
978
980
|
} else
|
|
979
981
|
return b(s, i, o, r), e;
|
|
980
982
|
}
|
|
@@ -1029,7 +1031,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1029
1031
|
return V.set(e, t), t;
|
|
1030
1032
|
}
|
|
1031
1033
|
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(),
|
|
1034
|
+
}, 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(), cr = (e, t = "ux-query", n = null) => {
|
|
1033
1035
|
if (!e || !qe()) return null;
|
|
1034
1036
|
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
1037
|
if (!s) return null;
|
|
@@ -1047,22 +1049,22 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1047
1049
|
h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), d = h.get(t);
|
|
1048
1050
|
} else d = Oe.get(t);
|
|
1049
1051
|
if (!d) {
|
|
1050
|
-
const h = Array.from(o.cssRules || []),
|
|
1051
|
-
if (
|
|
1052
|
+
const h = Array.from(o.cssRules || []), l = h.findIndex((f) => f instanceof CSSLayerBlockRule && f.name === t);
|
|
1053
|
+
if (l === -1) try {
|
|
1052
1054
|
o.insertRule(`@layer ${t} {}`, o.cssRules.length);
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1055
|
+
const f = o.cssRules[o.cssRules.length - 1];
|
|
1056
|
+
f instanceof CSSLayerBlockRule && (d = f);
|
|
1055
1057
|
} catch {
|
|
1056
1058
|
d = void 0;
|
|
1057
1059
|
}
|
|
1058
|
-
else d = h[
|
|
1060
|
+
else d = h[l];
|
|
1059
1061
|
if (d) if (i) {
|
|
1060
|
-
let
|
|
1061
|
-
|
|
1062
|
+
let f = D.get(r);
|
|
1063
|
+
f || (f = /* @__PURE__ */ new Map(), D.set(r, f)), f.set(t, d);
|
|
1062
1064
|
} else Oe.set(t, d);
|
|
1063
1065
|
}
|
|
1064
1066
|
if (d) {
|
|
1065
|
-
let h = Array.from(d.cssRules || []).findIndex((
|
|
1067
|
+
let h = Array.from(d.cssRules || []).findIndex((l) => l instanceof CSSStyleRule && l.selectorText?.trim?.() === e?.trim?.());
|
|
1066
1068
|
if (h === -1) try {
|
|
1067
1069
|
h = d.insertRule(`${e} {}`, d.cssRules.length);
|
|
1068
1070
|
} catch {
|
|
@@ -1071,18 +1073,18 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1071
1073
|
return d.cssRules[h];
|
|
1072
1074
|
}
|
|
1073
1075
|
}
|
|
1074
|
-
let
|
|
1075
|
-
if (
|
|
1076
|
-
|
|
1076
|
+
let c = Array.from(o.cssRules || []).findIndex((d) => d instanceof CSSStyleRule && d.selectorText?.trim?.() === e?.trim?.());
|
|
1077
|
+
if (c === -1) try {
|
|
1078
|
+
c = o.insertRule(`${e} {}`, o.cssRules.length);
|
|
1077
1079
|
} catch {
|
|
1078
1080
|
return null;
|
|
1079
1081
|
}
|
|
1080
|
-
const
|
|
1081
|
-
return
|
|
1082
|
-
}, S = (e, t, n, r = "") => ne ? jt(e, t, n, r) : _e(e, t, n, r),
|
|
1082
|
+
const u = o.cssRules[c];
|
|
1083
|
+
return u instanceof CSSStyleRule ? u : null;
|
|
1084
|
+
}, S = (e, t, n, r = "") => ne ? jt(e, t, n, r) : _e(e, t, n, r), lr = (e, t, n) => S(Se(e), t, n), qt = (e, t) => {
|
|
1083
1085
|
const n = Se(e);
|
|
1084
1086
|
return Object.entries(t).forEach(([r, i]) => S(n, r, i)), n;
|
|
1085
|
-
},
|
|
1087
|
+
}, dr = async (e) => {
|
|
1086
1088
|
const t = await crypto?.subtle?.digest("SHA-256", typeof e == "string" ? new TextEncoder().encode(e) : e instanceof ArrayBuffer ? e : await e?.arrayBuffer?.());
|
|
1087
1089
|
return "sha256-" + btoa(String.fromCharCode.apply(null, new Uint8Array(t)));
|
|
1088
1090
|
}, De = (e, t, n = "", r) => {
|
|
@@ -1104,7 +1106,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1104
1106
|
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return _t(e);
|
|
1105
1107
|
const i = typeof document < "u" ? document.createElement("style") : null;
|
|
1106
1108
|
return i ? (i.dataset.owner = be, De(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
|
|
1107
|
-
},
|
|
1109
|
+
}, fr = (e, t, n, r = "") => S(e, t, n, r), pr = (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"), hr = globalThis[Ut] ??= 0, Ne = (e, t) => {
|
|
1108
1110
|
if (!e || !t) return !1;
|
|
1109
1111
|
try {
|
|
1110
1112
|
return e.replaceSync(t), !0;
|
|
@@ -1148,7 +1150,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1148
1150
|
}, Yt = (e, t) => {
|
|
1149
1151
|
const n = e.split(" ");
|
|
1150
1152
|
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),
|
|
1153
|
+
}, We = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), mr = (e) => {
|
|
1152
1154
|
if (e?.computedStyleMap) {
|
|
1153
1155
|
const t = e.computedStyleMap().get("transform")?.toMatrix?.();
|
|
1154
1156
|
if (t) return t;
|
|
@@ -1157,7 +1159,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1157
1159
|
return new DOMMatrix(t?.getPropertyValue?.("transform"));
|
|
1158
1160
|
}
|
|
1159
1161
|
return new DOMMatrix();
|
|
1160
|
-
},
|
|
1162
|
+
}, yr = (e) => {
|
|
1161
1163
|
const t = getComputedStyle(e)?.getPropertyValue?.("transform-origin") || "50% 50%";
|
|
1162
1164
|
return Yt(t, e);
|
|
1163
1165
|
}, N = (e, t) => {
|
|
@@ -1170,7 +1172,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1170
1172
|
return parseFloat(n?.getPropertyValue?.(t)?.replace?.("px", "")) || 0;
|
|
1171
1173
|
}
|
|
1172
1174
|
return parseFloat((e?.style ?? e).getPropertyValue?.(t)?.replace?.("px", "")) || 0;
|
|
1173
|
-
},
|
|
1175
|
+
}, gr = (e) => {
|
|
1174
1176
|
let t = 1, n = e;
|
|
1175
1177
|
for (; n; ) {
|
|
1176
1178
|
if ("currentCSSZoom" in n) {
|
|
@@ -1183,7 +1185,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1183
1185
|
n = n?.offsetParent ?? n?.parentElement;
|
|
1184
1186
|
}
|
|
1185
1187
|
return t;
|
|
1186
|
-
},
|
|
1188
|
+
}, vr = (e, t) => N?.(e, t), br = (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), Sr = (e, t) => {
|
|
1187
1189
|
if (e) {
|
|
1188
1190
|
if (t) {
|
|
1189
1191
|
const n = Ue.getOrInsert(e, /* @__PURE__ */ new Set());
|
|
@@ -1194,19 +1196,20 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1194
1196
|
}, Jt = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), I = globalThis[Jt] ??= /* @__PURE__ */ new Map(), Kt = (e, t) => {
|
|
1195
1197
|
const n = [...e.entries() || []];
|
|
1196
1198
|
return new Map(n?.map?.(([r, i]) => [r, i?.get?.(t)])?.filter?.(([r, i]) => !!i) || []);
|
|
1197
|
-
}, Qt = (e, t, n) => {
|
|
1199
|
+
}, Qt = (e) => (typeof e == "object" || typeof e == "function") && e != null, en = (e, t, n) => {
|
|
1200
|
+
if (!Qt(e) && e != null) return e;
|
|
1198
1201
|
let r = I.get(t);
|
|
1199
|
-
return r || (r = /* @__PURE__ */ new WeakMap(), I.set(t, r)), r.has(e)
|
|
1200
|
-
},
|
|
1202
|
+
return r || (r = /* @__PURE__ */ new WeakMap(), I.set(t, r)), !r.has(e) && e != null && r.set(e, n), e;
|
|
1203
|
+
}, wr = (e, t) => {
|
|
1201
1204
|
if (!(!e || !t)) {
|
|
1202
|
-
for (const [n, r] of t.entries())
|
|
1205
|
+
for (const [n, r] of t.entries()) en(e, n, r);
|
|
1203
1206
|
return e;
|
|
1204
1207
|
}
|
|
1205
|
-
},
|
|
1208
|
+
}, xr = (e, t) => {
|
|
1206
1209
|
if (e) {
|
|
1207
1210
|
if (t) {
|
|
1208
1211
|
const n = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1209
|
-
w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) =>
|
|
1212
|
+
w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) => tn(e, r, n));
|
|
1210
1213
|
}
|
|
1211
1214
|
return e;
|
|
1212
1215
|
}
|
|
@@ -1214,16 +1217,16 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1214
1217
|
storeSet: Kt(I, e),
|
|
1215
1218
|
mixinSet: w?.get?.(e),
|
|
1216
1219
|
behaviorSet: Ue?.get?.(e)
|
|
1217
|
-
}),
|
|
1220
|
+
}), tn = (e, t, n) => {
|
|
1218
1221
|
const r = new WeakRef(e);
|
|
1219
1222
|
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
|
-
},
|
|
1223
|
+
}, nn = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), w = globalThis[nn] ??= /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), C = globalThis[rn] ??= /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), $ = globalThis[on] ??= /* @__PURE__ */ new Map(), an = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), Q = globalThis[an] ??= /* @__PURE__ */ new WeakMap(), Xe = (e, t) => {
|
|
1221
1224
|
typeof t == "string" && (t = $?.get?.(t));
|
|
1222
1225
|
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();
|
|
1223
1226
|
C?.has?.(t) || C?.set?.(t, /* @__PURE__ */ new WeakSet()), w?.has?.(e) || w?.set?.(e, i);
|
|
1224
1227
|
const s = new WeakRef(e);
|
|
1225
1228
|
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(),
|
|
1229
|
+
}, me = /* @__PURE__ */ new Set(), sn = (e = typeof document < "u" ? document : null) => {
|
|
1227
1230
|
if (e)
|
|
1228
1231
|
return me?.has?.(e) || (me?.add?.(e), ve(e, "*", "data-mixin", (t) => ye(t.target)), Ct(e, "[data-mixin]", (t) => {
|
|
1229
1232
|
for (const n of t.addedNodes) n instanceof HTMLElement && ye(n);
|
|
@@ -1231,22 +1234,22 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1231
1234
|
}, ye = (e) => {
|
|
1232
1235
|
const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
|
|
1233
1236
|
[...new Set([...t].map((n) => $?.get?.(n)).filter((n) => !!n))].map?.((n) => Xe(e, n));
|
|
1234
|
-
},
|
|
1237
|
+
}, un = (e, t) => {
|
|
1235
1238
|
e.forEach((n) => t ? Xe(n, t) : ye(n));
|
|
1236
|
-
},
|
|
1237
|
-
for (const t of me)
|
|
1238
|
-
},
|
|
1239
|
+
}, cn = (e) => {
|
|
1240
|
+
for (const t of me) un(t?.querySelectorAll?.("[data-mixin]"), e);
|
|
1241
|
+
}, ln = new FinalizationRegistry((e) => {
|
|
1239
1242
|
$?.delete?.(e);
|
|
1240
|
-
}),
|
|
1243
|
+
}), dn = (e, t) => {
|
|
1241
1244
|
if (!Q?.has?.(t)) {
|
|
1242
1245
|
const n = e?.trim?.();
|
|
1243
|
-
n && (Q?.set?.(t, n), $?.set?.(n, t),
|
|
1246
|
+
n && (Q?.set?.(t, n), $?.set?.(n, t), ln?.register?.(t, n), cn(t));
|
|
1244
1247
|
}
|
|
1245
1248
|
};
|
|
1246
|
-
|
|
1249
|
+
sn(typeof document < "u" ? document : null);
|
|
1247
1250
|
var we = class {
|
|
1248
1251
|
constructor(e = null) {
|
|
1249
|
-
e &&
|
|
1252
|
+
e && dn(e, this);
|
|
1250
1253
|
}
|
|
1251
1254
|
connect(e, t, n) {
|
|
1252
1255
|
return this;
|
|
@@ -1269,14 +1272,14 @@ var we = class {
|
|
|
1269
1272
|
get name() {
|
|
1270
1273
|
return Q?.get?.(this);
|
|
1271
1274
|
}
|
|
1272
|
-
},
|
|
1275
|
+
}, Mr = (e, t, n) => {
|
|
1273
1276
|
const r = n;
|
|
1274
1277
|
M(n) && (n = n.value);
|
|
1275
1278
|
const i = (n = ge(n)) != null && n !== !1;
|
|
1276
1279
|
return B(r, () => {
|
|
1277
1280
|
e instanceof HTMLInputElement ? e.hidden = !i : i ? e?.removeAttribute?.("data-hidden") : e?.setAttribute?.("data-hidden", "");
|
|
1278
1281
|
}), e;
|
|
1279
|
-
},
|
|
1282
|
+
}, Er = (e, t, n) => {
|
|
1280
1283
|
if (!(t = typeof t == "string" ? Fe(t) : t) || !e || [
|
|
1281
1284
|
"style",
|
|
1282
1285
|
"dataset",
|
|
@@ -1288,19 +1291,19 @@ var we = class {
|
|
|
1288
1291
|
return M(n) && (n = n.value), e?.[t] === n || e?.[t] !== n && B(r, () => {
|
|
1289
1292
|
n != null ? e[t] = n : delete e[t];
|
|
1290
1293
|
}), e;
|
|
1291
|
-
},
|
|
1294
|
+
}, Ar = (e, t, n) => {
|
|
1292
1295
|
const r = e?.dataset;
|
|
1293
1296
|
if (!t || !e || !r) return e;
|
|
1294
1297
|
const i = n;
|
|
1295
1298
|
return M(n) && (n = n?.value), t = Fe(t), r?.[t] === (n = ge(n)) || (n == null || n === !1 ? delete r[t] : B(i, () => {
|
|
1296
1299
|
typeof n != "object" && typeof n != "function" ? r[t] = String(n) : delete r[t];
|
|
1297
1300
|
})), e;
|
|
1298
|
-
},
|
|
1301
|
+
}, fn = (e, t) => e.style.removeProperty(te(t)), Cr = (e, t, n) => {
|
|
1299
1302
|
const r = e?.style;
|
|
1300
1303
|
return !t || typeof t != "string" || !e || !r || B(n, () => {
|
|
1301
|
-
et(n) || M(n) || Qe(n) ? S(e, t, n) : n == null &&
|
|
1304
|
+
et(n) || M(n) || Qe(n) ? S(e, t, n) : n == null && fn(e, t);
|
|
1302
1305
|
}), e;
|
|
1303
|
-
},
|
|
1306
|
+
}, Rr = (e, t, n) => {
|
|
1304
1307
|
if (!t || !e) return e;
|
|
1305
1308
|
const r = n;
|
|
1306
1309
|
return M(n) && (n = n.value), t = te(t), e?.getAttribute?.(t) === (n = ge(n)) || B(r, () => {
|
|
@@ -1331,7 +1334,7 @@ var U = {
|
|
|
1331
1334
|
start: "junction-resize:start",
|
|
1332
1335
|
move: "junction-resize:move",
|
|
1333
1336
|
end: "junction-resize:end"
|
|
1334
|
-
},
|
|
1337
|
+
}, pn = /* @__PURE__ */ Symbol.for("dom.ts@mixinDisposers"), ee = globalThis[pn] ??= /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
|
|
1335
1338
|
const r = ee.get(e) ?? /* @__PURE__ */ new Map(), i = r.get(t) ?? [];
|
|
1336
1339
|
i.push(n), r.set(t, i), ee.set(e, r);
|
|
1337
1340
|
}, xe = (e, t) => {
|
|
@@ -1351,7 +1354,7 @@ var U = {
|
|
|
1351
1354
|
if (!r) return n;
|
|
1352
1355
|
const i = e.querySelector(r);
|
|
1353
1356
|
return i instanceof HTMLElement ? i : n;
|
|
1354
|
-
},
|
|
1357
|
+
}, hn = class extends we {
|
|
1355
1358
|
constructor() {
|
|
1356
1359
|
super("ui-junction-select");
|
|
1357
1360
|
}
|
|
@@ -1367,31 +1370,31 @@ var U = {
|
|
|
1367
1370
|
x: 0,
|
|
1368
1371
|
y: 0
|
|
1369
1372
|
};
|
|
1370
|
-
const o = (
|
|
1373
|
+
const o = (p) => {
|
|
1371
1374
|
const y = t.getBoundingClientRect();
|
|
1372
1375
|
return {
|
|
1373
|
-
x:
|
|
1374
|
-
y:
|
|
1376
|
+
x: p.clientX - y.left,
|
|
1377
|
+
y: p.clientY - y.top
|
|
1375
1378
|
};
|
|
1376
|
-
},
|
|
1377
|
-
const
|
|
1378
|
-
if (
|
|
1379
|
+
}, c = () => {
|
|
1380
|
+
const p = se(s, a);
|
|
1381
|
+
if (p.width < 1 && p.height < 1) {
|
|
1379
1382
|
n.style.display = "none";
|
|
1380
1383
|
return;
|
|
1381
1384
|
}
|
|
1382
|
-
n.style.display = "block", n.style.left = `${
|
|
1383
|
-
},
|
|
1384
|
-
|
|
1385
|
+
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`;
|
|
1386
|
+
}, u = (p) => {
|
|
1387
|
+
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(U.start, {
|
|
1385
1388
|
bubbles: !0,
|
|
1386
1389
|
detail: {
|
|
1387
1390
|
a: { ...s },
|
|
1388
1391
|
b: { ...a },
|
|
1389
1392
|
host: t
|
|
1390
1393
|
}
|
|
1391
|
-
})),
|
|
1392
|
-
}, d = (
|
|
1394
|
+
})), c()));
|
|
1395
|
+
}, d = (p) => {
|
|
1393
1396
|
if (!i) return;
|
|
1394
|
-
a = o(
|
|
1397
|
+
a = o(p), c();
|
|
1395
1398
|
const y = se(s, a);
|
|
1396
1399
|
t.dispatchEvent(new CustomEvent(U.move, {
|
|
1397
1400
|
bubbles: !0,
|
|
@@ -1402,11 +1405,11 @@ var U = {
|
|
|
1402
1405
|
host: t
|
|
1403
1406
|
}
|
|
1404
1407
|
}));
|
|
1405
|
-
}, h = (
|
|
1408
|
+
}, h = (p) => {
|
|
1406
1409
|
if (!i) return;
|
|
1407
1410
|
i = !1;
|
|
1408
1411
|
try {
|
|
1409
|
-
t.releasePointerCapture(
|
|
1412
|
+
t.releasePointerCapture(p.pointerId);
|
|
1410
1413
|
} catch {
|
|
1411
1414
|
}
|
|
1412
1415
|
const y = se(s, a);
|
|
@@ -1419,13 +1422,13 @@ var U = {
|
|
|
1419
1422
|
host: t
|
|
1420
1423
|
}
|
|
1421
1424
|
}));
|
|
1422
|
-
},
|
|
1423
|
-
i && h(
|
|
1424
|
-
},
|
|
1425
|
+
}, l = (p) => {
|
|
1426
|
+
i && h(p);
|
|
1427
|
+
}, f = (p) => {
|
|
1425
1428
|
if (i) {
|
|
1426
1429
|
i = !1, n.style.display = "none";
|
|
1427
1430
|
try {
|
|
1428
|
-
t.releasePointerCapture(
|
|
1431
|
+
t.releasePointerCapture(p.pointerId);
|
|
1429
1432
|
} catch {
|
|
1430
1433
|
}
|
|
1431
1434
|
t.dispatchEvent(new CustomEvent(U.cancel, {
|
|
@@ -1436,13 +1439,13 @@ var U = {
|
|
|
1436
1439
|
};
|
|
1437
1440
|
return g(t, "ui-junction-select", () => {
|
|
1438
1441
|
n.remove();
|
|
1439
|
-
}), g(t, "ui-junction-select", m(t, "pointerdown",
|
|
1442
|
+
}), g(t, "ui-junction-select", m(t, "pointerdown", u)), g(t, "ui-junction-select", m(t, "pointermove", d)), g(t, "ui-junction-select", m(t, "pointerup", l)), g(t, "ui-junction-select", m(t, "pointercancel", f)), this;
|
|
1440
1443
|
}
|
|
1441
1444
|
disconnect(e) {
|
|
1442
1445
|
const t = e?.deref?.();
|
|
1443
1446
|
return t && xe(t, "ui-junction-select"), this;
|
|
1444
1447
|
}
|
|
1445
|
-
},
|
|
1448
|
+
}, mn = class extends we {
|
|
1446
1449
|
constructor() {
|
|
1447
1450
|
super("ui-junction-drag");
|
|
1448
1451
|
}
|
|
@@ -1453,36 +1456,36 @@ var U = {
|
|
|
1453
1456
|
const n = t.style.transform;
|
|
1454
1457
|
(!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
1458
|
const r = Ye(t, "data-junction-drag-handle", t);
|
|
1456
|
-
let i = !1, s = 0, a = 0, o = 0,
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
+
let i = !1, s = 0, a = 0, o = 0, c = 0;
|
|
1460
|
+
const u = (l) => {
|
|
1461
|
+
l.button === 0 && (l.target !== r && !r.contains(l.target) || (i = !0, s = l.clientX, a = l.clientY, o = E(t, "--jx-drag-x"), c = E(t, "--jx-drag-y"), r.setPointerCapture(l.pointerId), t.dispatchEvent(new CustomEvent(ue.start, {
|
|
1459
1462
|
bubbles: !0,
|
|
1460
1463
|
detail: {
|
|
1461
1464
|
host: t,
|
|
1462
|
-
clientX:
|
|
1463
|
-
clientY:
|
|
1465
|
+
clientX: l.clientX,
|
|
1466
|
+
clientY: l.clientY,
|
|
1464
1467
|
baseX: o,
|
|
1465
|
-
baseY:
|
|
1468
|
+
baseY: c
|
|
1466
1469
|
}
|
|
1467
1470
|
}))));
|
|
1468
|
-
}, d = (
|
|
1471
|
+
}, d = (l) => {
|
|
1469
1472
|
if (!i) return;
|
|
1470
|
-
const
|
|
1473
|
+
const f = l.clientX - s, p = l.clientY - a, y = o + f, _ = c + p;
|
|
1471
1474
|
S(t, "--jx-drag-x", y), S(t, "--jx-drag-y", _), t.dispatchEvent(new CustomEvent(ue.move, {
|
|
1472
1475
|
bubbles: !0,
|
|
1473
1476
|
detail: {
|
|
1474
1477
|
host: t,
|
|
1475
|
-
dx:
|
|
1476
|
-
dy:
|
|
1478
|
+
dx: f,
|
|
1479
|
+
dy: p,
|
|
1477
1480
|
x: y,
|
|
1478
1481
|
y: _
|
|
1479
1482
|
}
|
|
1480
1483
|
}));
|
|
1481
|
-
}, h = (
|
|
1484
|
+
}, h = (l) => {
|
|
1482
1485
|
if (i) {
|
|
1483
1486
|
i = !1;
|
|
1484
1487
|
try {
|
|
1485
|
-
r.releasePointerCapture(
|
|
1488
|
+
r.releasePointerCapture(l.pointerId);
|
|
1486
1489
|
} catch {
|
|
1487
1490
|
}
|
|
1488
1491
|
t.dispatchEvent(new CustomEvent(ue.end, {
|
|
@@ -1497,13 +1500,13 @@ var U = {
|
|
|
1497
1500
|
};
|
|
1498
1501
|
return g(t, "ui-junction-drag", () => {
|
|
1499
1502
|
t.style.transform = n;
|
|
1500
|
-
}), g(t, "ui-junction-drag", m(r, "pointerdown",
|
|
1503
|
+
}), g(t, "ui-junction-drag", m(r, "pointerdown", u)), 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;
|
|
1501
1504
|
}
|
|
1502
1505
|
disconnect(e) {
|
|
1503
1506
|
const t = e?.deref?.();
|
|
1504
1507
|
return t && xe(t, "ui-junction-drag"), this;
|
|
1505
1508
|
}
|
|
1506
|
-
},
|
|
1509
|
+
}, yn = class extends we {
|
|
1507
1510
|
constructor() {
|
|
1508
1511
|
super("ui-junction-resize");
|
|
1509
1512
|
}
|
|
@@ -1512,8 +1515,8 @@ var U = {
|
|
|
1512
1515
|
if (!t) return this;
|
|
1513
1516
|
const n = Ye(t, "data-junction-resize-handle", t);
|
|
1514
1517
|
let r = !1, i = 0, s = 0, a = 0, o = 0;
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1518
|
+
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), d = (f) => {
|
|
1519
|
+
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
1520
|
bubbles: !0,
|
|
1518
1521
|
detail: {
|
|
1519
1522
|
host: t,
|
|
@@ -1521,22 +1524,22 @@ var U = {
|
|
|
1521
1524
|
height: o
|
|
1522
1525
|
}
|
|
1523
1526
|
}))));
|
|
1524
|
-
}, h = (
|
|
1527
|
+
}, h = (f) => {
|
|
1525
1528
|
if (!r) return;
|
|
1526
|
-
const
|
|
1527
|
-
t.style.width = `${
|
|
1529
|
+
const p = Math.max(c, a + (f.clientX - i)), y = Math.max(u, o + (f.clientY - s));
|
|
1530
|
+
t.style.width = `${p}px`, t.style.height = `${y}px`, t.dispatchEvent(new CustomEvent(ce.move, {
|
|
1528
1531
|
bubbles: !0,
|
|
1529
1532
|
detail: {
|
|
1530
1533
|
host: t,
|
|
1531
|
-
width:
|
|
1534
|
+
width: p,
|
|
1532
1535
|
height: y
|
|
1533
1536
|
}
|
|
1534
1537
|
}));
|
|
1535
|
-
},
|
|
1538
|
+
}, l = (f) => {
|
|
1536
1539
|
if (r) {
|
|
1537
1540
|
r = !1;
|
|
1538
1541
|
try {
|
|
1539
|
-
n.releasePointerCapture(
|
|
1542
|
+
n.releasePointerCapture(f.pointerId);
|
|
1540
1543
|
} catch {
|
|
1541
1544
|
}
|
|
1542
1545
|
t.dispatchEvent(new CustomEvent(ce.end, {
|
|
@@ -1549,34 +1552,34 @@ var U = {
|
|
|
1549
1552
|
}));
|
|
1550
1553
|
}
|
|
1551
1554
|
};
|
|
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",
|
|
1555
|
+
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", l)), g(t, "ui-junction-resize", m(n, "pointercancel", l)), this;
|
|
1553
1556
|
}
|
|
1554
1557
|
disconnect(e) {
|
|
1555
1558
|
const t = e?.deref?.();
|
|
1556
1559
|
return t && xe(t, "ui-junction-resize"), this;
|
|
1557
1560
|
}
|
|
1558
1561
|
};
|
|
1559
|
-
new pn();
|
|
1560
1562
|
new hn();
|
|
1561
1563
|
new mn();
|
|
1564
|
+
new yn();
|
|
1562
1565
|
export {
|
|
1563
1566
|
we as DOMMixin,
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1567
|
+
mn as JunctionDragMixin,
|
|
1568
|
+
yn as JunctionResizeMixin,
|
|
1569
|
+
hn as JunctionSelectMixin,
|
|
1570
|
+
Vn as MATCH,
|
|
1571
|
+
Hn as MOC,
|
|
1569
1572
|
fe as MOCElement,
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1573
|
+
wn as RAFBehavior,
|
|
1574
|
+
jn as REGEX,
|
|
1575
|
+
xn as ROOT,
|
|
1576
|
+
sr as WavyShapedCircle,
|
|
1577
|
+
gn as __exportProperties,
|
|
1575
1578
|
Me as __registeredCssProperties,
|
|
1576
1579
|
m as addEvent,
|
|
1577
1580
|
K as addEvents,
|
|
1578
|
-
|
|
1579
|
-
|
|
1581
|
+
Fn as addEventsList,
|
|
1582
|
+
sn as addRoot,
|
|
1580
1583
|
O as adoptedBlobMap,
|
|
1581
1584
|
Oe as adoptedLayerMap,
|
|
1582
1585
|
v as adoptedMap,
|
|
@@ -1586,89 +1589,89 @@ export {
|
|
|
1586
1589
|
Mt as animateHide,
|
|
1587
1590
|
xt as animateShow,
|
|
1588
1591
|
he as availSize,
|
|
1589
|
-
|
|
1590
|
-
|
|
1592
|
+
Yn as bbh,
|
|
1593
|
+
Xn as bbw,
|
|
1591
1594
|
Gt as bindBehavior,
|
|
1592
|
-
|
|
1593
|
-
|
|
1595
|
+
tn as bindMixins,
|
|
1596
|
+
en as bindStore,
|
|
1594
1597
|
k as blobURLMap,
|
|
1595
1598
|
Y as borderBoxHeight,
|
|
1596
1599
|
X as borderBoxWidth,
|
|
1597
1600
|
Ue as boundBehaviors,
|
|
1598
1601
|
w as boundMixinSet,
|
|
1599
1602
|
x as cacheMap,
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1603
|
+
Jn as cbh,
|
|
1604
|
+
Gn as cbw,
|
|
1605
|
+
Zn as changeZoom,
|
|
1606
|
+
Kn as classes,
|
|
1604
1607
|
St as computeCaretPosition,
|
|
1605
|
-
|
|
1606
|
-
|
|
1608
|
+
tr as computeCaretPositionFromClient,
|
|
1609
|
+
Bn as containsOrSelf,
|
|
1607
1610
|
J as contentBoxHeight,
|
|
1608
1611
|
G as contentBoxWidth,
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1612
|
+
On as createElementVanilla,
|
|
1613
|
+
fn as deleteStyleProperty,
|
|
1614
|
+
vn as detectMobile,
|
|
1615
|
+
Rn as doBorderObserve,
|
|
1616
|
+
Cn as doContentObserve,
|
|
1614
1617
|
Wt as fetchAndCache,
|
|
1615
1618
|
Ft as fetchAsInline,
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
+
Qn as fixOrientToScreen,
|
|
1620
|
+
Dn as fixedClientZoom,
|
|
1621
|
+
cr as getAdoptedStyleRule,
|
|
1619
1622
|
Be as getAvailSize,
|
|
1620
|
-
|
|
1623
|
+
Un as getBoundingOrientRect,
|
|
1621
1624
|
gt as getCorrectOrientation,
|
|
1622
1625
|
F as getElementRelated,
|
|
1623
|
-
|
|
1624
|
-
|
|
1626
|
+
gr as getElementZoom,
|
|
1627
|
+
$n as getEventTarget,
|
|
1625
1628
|
ut as getOffsetParent,
|
|
1626
|
-
|
|
1627
|
-
|
|
1629
|
+
bn as getOffsetParentChain,
|
|
1630
|
+
br as getPadding,
|
|
1628
1631
|
N as getPropertyValue,
|
|
1629
|
-
|
|
1632
|
+
vr as getPxValue,
|
|
1630
1633
|
Kt as getStoresOfElement,
|
|
1631
1634
|
Rt as getStyleLayer,
|
|
1632
1635
|
Se as getStyleRule,
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1636
|
+
mr as getTransform,
|
|
1637
|
+
yr as getTransformOrigin,
|
|
1638
|
+
_n as getZoom,
|
|
1639
|
+
Rr as handleAttribute,
|
|
1640
|
+
Ar as handleDataset,
|
|
1641
|
+
Mr as handleHidden,
|
|
1642
|
+
Er as handleProperty,
|
|
1643
|
+
Cr as handleStyleChange,
|
|
1641
1644
|
re as hasParent,
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1645
|
+
dr as hash,
|
|
1646
|
+
zn as html,
|
|
1647
|
+
Wn as includeSelf,
|
|
1648
|
+
kn as indexOf,
|
|
1646
1649
|
He as initTextStyle,
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
+
ar as initVisibility,
|
|
1651
|
+
Nn as isElement,
|
|
1652
|
+
qn as isInFocus,
|
|
1650
1653
|
Ke as isMobile,
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
+
Sn as isNearlyIdentity,
|
|
1655
|
+
Ln as isValidParent,
|
|
1656
|
+
hr as layerCounter,
|
|
1654
1657
|
Xt as loadAsAdopted,
|
|
1655
1658
|
_t as loadBlobStyle,
|
|
1656
1659
|
j as loadInlineStyle,
|
|
1657
1660
|
De as loadStyleSheet,
|
|
1658
1661
|
ct as makeRAFCycle,
|
|
1659
|
-
|
|
1662
|
+
er as measureInputInFocus,
|
|
1660
1663
|
bt as measureText,
|
|
1661
1664
|
ee as mixinDisposers,
|
|
1662
1665
|
C as mixinElements,
|
|
1663
1666
|
Q as mixinNamespace,
|
|
1664
1667
|
$ as mixinRegistry,
|
|
1665
|
-
|
|
1668
|
+
ln as nameRegistryF,
|
|
1666
1669
|
I as namedStoreMaps,
|
|
1667
|
-
|
|
1670
|
+
or as observeAttribute,
|
|
1668
1671
|
ve as observeAttributeBySelector,
|
|
1669
|
-
|
|
1672
|
+
ir as observeBorderBox,
|
|
1670
1673
|
Ct as observeBySelector,
|
|
1671
|
-
|
|
1674
|
+
rr as observeContentBox,
|
|
1672
1675
|
Ce as onBorderObserve,
|
|
1673
1676
|
Re as onContentObserve,
|
|
1674
1677
|
z as orientOf,
|
|
@@ -1676,37 +1679,37 @@ export {
|
|
|
1676
1679
|
We as parseLength,
|
|
1677
1680
|
Yt as parseOrigin,
|
|
1678
1681
|
$e as passiveOpts,
|
|
1679
|
-
|
|
1682
|
+
pr as preloadStyle,
|
|
1680
1683
|
wt as readLauncherLayoutFromElement,
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1684
|
+
Sr as reflectBehaviors,
|
|
1685
|
+
xr as reflectMixins,
|
|
1686
|
+
wr as reflectStores,
|
|
1687
|
+
dn as registerMixin,
|
|
1685
1688
|
ae as removeAdopted,
|
|
1686
1689
|
Pe as removeEvent,
|
|
1687
|
-
|
|
1688
|
-
|
|
1690
|
+
In as removeEvents,
|
|
1691
|
+
nr as resolveGridCellFromClientPoint,
|
|
1689
1692
|
me as roots,
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1693
|
+
En as setAttributes,
|
|
1694
|
+
Mn as setAttributesIfNull,
|
|
1695
|
+
Tn as setChecked,
|
|
1696
|
+
An as setIdleInterval,
|
|
1697
|
+
fr as setProperty,
|
|
1698
|
+
lr as setStyleInRule,
|
|
1696
1699
|
S as setStyleProperty,
|
|
1697
1700
|
_e as setStylePropertyFallback,
|
|
1698
1701
|
jt as setStylePropertyTyped,
|
|
1699
1702
|
qt as setStyleRule,
|
|
1700
|
-
|
|
1703
|
+
ur as setStyleRules,
|
|
1701
1704
|
Te as setStyleURL,
|
|
1702
1705
|
lt as throttleMap,
|
|
1703
1706
|
pe as unfixedClientZoom,
|
|
1704
1707
|
ye as updateAllMixins,
|
|
1705
1708
|
Xe as updateMixinAttributes,
|
|
1706
|
-
|
|
1707
|
-
|
|
1709
|
+
un as updateMixinAttributesAll,
|
|
1710
|
+
cn as updateMixinAttributesAllInRoots,
|
|
1708
1711
|
yt as updateVP,
|
|
1709
|
-
|
|
1712
|
+
Pn as url,
|
|
1710
1713
|
vt as whenAnyScreenChanges,
|
|
1711
1714
|
pt as zoomOf,
|
|
1712
1715
|
ft as zoomValues
|