@fest-lib/veela 0.1.1

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 (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +533 -0
  3. package/dist/veela.js +878 -0
  4. package/package.json +83 -0
  5. package/src/scss/_layers.scss +16 -0
  6. package/src/scss/advanced/_index.scss +0 -0
  7. package/src/scss/advanced/animation/_motion.scss +317 -0
  8. package/src/scss/advanced/color/_color.scss +328 -0
  9. package/src/scss/advanced/color/_colorize.scss +325 -0
  10. package/src/scss/advanced/design/_design-tokens.scss +118 -0
  11. package/src/scss/advanced/design/_effects.scss +275 -0
  12. package/src/scss/advanced/design/_shadow.scss +359 -0
  13. package/src/scss/advanced/design/_surfaces.scss +76 -0
  14. package/src/scss/advanced/effects/_animations.scss +124 -0
  15. package/src/scss/advanced/effects/_shadows.scss +50 -0
  16. package/src/scss/advanced/font/_typography.scss +600 -0
  17. package/src/scss/advanced/index.scss +11 -0
  18. package/src/scss/advanced/index.ts +35 -0
  19. package/src/scss/advanced/layout/_content.scss +170 -0
  20. package/src/scss/advanced/layout/_index.scss +5 -0
  21. package/src/scss/advanced/layout/_normalize.scss +541 -0
  22. package/src/scss/advanced/layout/_shared-overlays.scss +162 -0
  23. package/src/scss/advanced/md3/_md3.scss +596 -0
  24. package/src/scss/advanced/md3/_utils.scss +114 -0
  25. package/src/scss/advanced/misc/_config.scss +119 -0
  26. package/src/scss/advanced/misc/_initials.scss +298 -0
  27. package/src/scss/advanced/misc/_mixins.scss +179 -0
  28. package/src/scss/advanced/misc/_queries.scss +34 -0
  29. package/src/scss/advanced/misc/_rendering.scss +82 -0
  30. package/src/scss/advanced/misc/_tokens.scss +74 -0
  31. package/src/scss/advanced/theme/_shared.scss +232 -0
  32. package/src/scss/advanced/theme/_states.scss +332 -0
  33. package/src/scss/advanced/theme/_variants.scss +354 -0
  34. package/src/scss/advanced/tokens/_material-color.scss +120 -0
  35. package/src/scss/advanced/tokens/_variables.scss +171 -0
  36. package/src/scss/basic/_layers.scss +0 -0
  37. package/src/scss/basic/design/_index.scss +3 -0
  38. package/src/scss/basic/design/_keyframes.scss +163 -0
  39. package/src/scss/basic/design/_shapes.scss +266 -0
  40. package/src/scss/basic/design/_wavy-runtime.scss +50 -0
  41. package/src/scss/basic/index.scss +19 -0
  42. package/src/scss/basic/index.ts +29 -0
  43. package/src/scss/basic/misc/_core-layout.scss +272 -0
  44. package/src/scss/basic/misc/_index.scss +18 -0
  45. package/src/scss/basic/misc/_layout.scss +1040 -0
  46. package/src/scss/basic/misc/_mixins.scss +179 -0
  47. package/src/scss/basic/misc/_motion.scss +28 -0
  48. package/src/scss/basic/misc/_normalize.scss +765 -0
  49. package/src/scss/basic/misc/_queries.scss +34 -0
  50. package/src/scss/basic/misc/_shared.scss +232 -0
  51. package/src/scss/basic/misc/_states.scss +135 -0
  52. package/src/scss/basic/misc/_tokens.scss +78 -0
  53. package/src/scss/basic/misc/_veela.scss +12 -0
  54. package/src/scss/core/index.scss +1 -0
  55. package/src/scss/core/interact/_draggable.scss +32 -0
  56. package/src/scss/core/interact/_position.scss +45 -0
  57. package/src/scss/core/interact/_ps-anchor.scss +28 -0
  58. package/src/scss/core/interact/_ps-centered.scss +28 -0
  59. package/src/scss/core/interact/_ps-cursor.scss +18 -0
  60. package/src/scss/core/interact/_ps-draggable.scss +25 -0
  61. package/src/scss/core/interact/_ps-mechanic.scss +0 -0
  62. package/src/scss/core/interact/_ps-properties.scss +54 -0
  63. package/src/scss/core/interact/_ps-resizable.scss +61 -0
  64. package/src/scss/core/interact/_resizable.scss +69 -0
  65. package/src/scss/core/interact/_viewport.scss +469 -0
  66. package/src/scss/core/misc/_color-properties.scss +64 -0
  67. package/src/scss/core/misc/_config.scss +110 -0
  68. package/src/scss/core/misc/_functions.scss +530 -0
  69. package/src/scss/core/misc/_icons.scss +109 -0
  70. package/src/scss/core/misc/_index.scss +6 -0
  71. package/src/scss/core/misc/_layout.scss +49 -0
  72. package/src/scss/core/misc/_mixins.scss +744 -0
  73. package/src/scss/core/misc/_properties.scss +245 -0
  74. package/src/scss/core/misc/_tokens.scss +947 -0
  75. package/src/scss/core/misc/_utilities.scss +941 -0
  76. package/src/scss/core/misc/_utils.scss +17 -0
  77. package/src/scss/index.scss +18 -0
  78. package/src/scss/index.ts +105 -0
package/dist/veela.js ADDED
@@ -0,0 +1,878 @@
1
+ var K = /* @__PURE__ */ new Set();
2
+ [
3
+ {
4
+ name: "--screen-width",
5
+ syntax: "<length-percentage>",
6
+ inherits: !0,
7
+ initialValue: "0px"
8
+ },
9
+ {
10
+ name: "--screen-height",
11
+ syntax: "<length-percentage>",
12
+ inherits: !0,
13
+ initialValue: "0px"
14
+ },
15
+ {
16
+ name: "--visual-width",
17
+ syntax: "<length-percentage>",
18
+ inherits: !0,
19
+ initialValue: "0px"
20
+ },
21
+ {
22
+ name: "--visual-height",
23
+ syntax: "<length-percentage>",
24
+ inherits: !0,
25
+ initialValue: "0px"
26
+ },
27
+ {
28
+ name: "--clip-ampl",
29
+ syntax: "<number>",
30
+ inherits: !0,
31
+ initialValue: "0"
32
+ },
33
+ {
34
+ name: "--clip-freq",
35
+ syntax: "<number>",
36
+ inherits: !0,
37
+ initialValue: "0"
38
+ },
39
+ {
40
+ name: "--avail-width",
41
+ syntax: "<length-percentage>",
42
+ inherits: !0,
43
+ initialValue: "0px"
44
+ },
45
+ {
46
+ name: "--avail-height",
47
+ syntax: "<length-percentage>",
48
+ inherits: !0,
49
+ initialValue: "0px"
50
+ },
51
+ {
52
+ name: "--pixel-ratio",
53
+ syntax: "<number>",
54
+ inherits: !0,
55
+ initialValue: "1"
56
+ },
57
+ {
58
+ name: "--percent",
59
+ syntax: "<number>",
60
+ inherits: !0,
61
+ initialValue: "0"
62
+ },
63
+ {
64
+ name: "--percent-x",
65
+ syntax: "<number>",
66
+ inherits: !0,
67
+ initialValue: "0"
68
+ },
69
+ {
70
+ name: "--percent-y",
71
+ syntax: "<number>",
72
+ inherits: !0,
73
+ initialValue: "0"
74
+ },
75
+ {
76
+ name: "--scroll-left",
77
+ syntax: "<number>",
78
+ inherits: !0,
79
+ initialValue: "0"
80
+ },
81
+ {
82
+ name: "--scroll-top",
83
+ syntax: "<number>",
84
+ inherits: !0,
85
+ initialValue: "0"
86
+ },
87
+ {
88
+ name: "--drag-x",
89
+ syntax: "<length>",
90
+ inherits: !1,
91
+ initialValue: "0px"
92
+ },
93
+ {
94
+ name: "--drag-y",
95
+ syntax: "<length>",
96
+ inherits: !1,
97
+ initialValue: "0px"
98
+ },
99
+ {
100
+ name: "--grid-r",
101
+ syntax: "<number>",
102
+ inherits: !1,
103
+ initialValue: "0"
104
+ },
105
+ {
106
+ name: "--grid-c",
107
+ syntax: "<number>",
108
+ inherits: !1,
109
+ initialValue: "0"
110
+ },
111
+ {
112
+ name: "--resize-x",
113
+ syntax: "<length>",
114
+ inherits: !1,
115
+ initialValue: "0px"
116
+ },
117
+ {
118
+ name: "--resize-y",
119
+ syntax: "<length>",
120
+ inherits: !1,
121
+ initialValue: "0px"
122
+ },
123
+ {
124
+ name: "--shift-x",
125
+ syntax: "<length>",
126
+ inherits: !1,
127
+ initialValue: "0px"
128
+ },
129
+ {
130
+ name: "--shift-y",
131
+ syntax: "<length>",
132
+ inherits: !1,
133
+ initialValue: "0px"
134
+ },
135
+ {
136
+ name: "--cs-grid-r",
137
+ syntax: "<number>",
138
+ inherits: !1,
139
+ initialValue: "0"
140
+ },
141
+ {
142
+ name: "--cs-grid-c",
143
+ syntax: "<number>",
144
+ inherits: !1,
145
+ initialValue: "0"
146
+ },
147
+ {
148
+ name: "--cs-p-grid-r",
149
+ syntax: "<number>",
150
+ inherits: !1,
151
+ initialValue: "0"
152
+ },
153
+ {
154
+ name: "--cs-p-grid-c",
155
+ syntax: "<number>",
156
+ inherits: !1,
157
+ initialValue: "0"
158
+ },
159
+ {
160
+ name: "--os-grid-r",
161
+ syntax: "<number>",
162
+ inherits: !1,
163
+ initialValue: "0"
164
+ },
165
+ {
166
+ name: "--os-grid-c",
167
+ syntax: "<number>",
168
+ inherits: !1,
169
+ initialValue: "0"
170
+ },
171
+ {
172
+ name: "--rv-grid-r",
173
+ syntax: "<number>",
174
+ inherits: !1,
175
+ initialValue: "0"
176
+ },
177
+ {
178
+ name: "--rv-grid-c",
179
+ syntax: "<number>",
180
+ inherits: !1,
181
+ initialValue: "0"
182
+ },
183
+ {
184
+ name: "--cell-x",
185
+ syntax: "<integer>",
186
+ inherits: !1,
187
+ initialValue: "0"
188
+ },
189
+ {
190
+ name: "--cell-y",
191
+ syntax: "<integer>",
192
+ inherits: !1,
193
+ initialValue: "0"
194
+ }
195
+ ].forEach((e) => {
196
+ if (typeof CSS > "u" || typeof CSS?.registerProperty != "function") return;
197
+ const t = String(e?.name || "").trim();
198
+ if (!(!t || K.has(t)))
199
+ try {
200
+ CSS.registerProperty(e);
201
+ } catch (n) {
202
+ String(n?.name || "").toLowerCase() !== "invalidmodificationerror" && console.warn(n);
203
+ } finally {
204
+ K.add(t);
205
+ }
206
+ });
207
+ function pe() {
208
+ const e = globalThis;
209
+ if (typeof e.HTMLElement == "function") return;
210
+ const t = class {
211
+ }, n = (a) => {
212
+ typeof e[a] != "function" && (e[a] = t);
213
+ };
214
+ n("EventTarget"), n("Node"), n("Element"), n("HTMLElement"), n("SVGElement"), n("Text"), n("Comment"), n("DocumentFragment"), n("ShadowRoot"), n("HTMLDocument"), n("Document"), n("HTMLBodyElement"), n("HTMLHeadElement"), n("HTMLCanvasElement"), n("HTMLInputElement"), n("HTMLLinkElement"), n("HTMLStyleElement"), n("HTMLPreElement"), n("HTMLDivElement"), n("CSSStyleRule"), n("CSSLayerBlockRule");
215
+ }
216
+ var he = (e, t = "value") => (typeof e == "object" || typeof e == "function") && e != null && (t in e || e?.[t] != null), ne = (e) => he(e, "value"), ae = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), re = (e) => {
217
+ if (typeof e != "string") return null;
218
+ const t = [...e?.matchAll?.(/^\d+(\.\d+)?$/g)];
219
+ if (t?.length != 1) return null;
220
+ const n = parseFloat(t[0][0]);
221
+ return !Number.isNaN(n) && Number.isFinite(n) ? n : null;
222
+ };
223
+ pe();
224
+ var qe = typeof document < "u" ? document?.documentElement : null, fe = /* @__PURE__ */ new Map();
225
+ typeof requestAnimationFrame < "u" && requestAnimationFrame(async () => {
226
+ for (; ; )
227
+ fe.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
228
+ });
229
+ var ge = {};
230
+ function v(e, t, n, a = ge) {
231
+ e?.addEventListener?.(t, n, a);
232
+ const r = typeof e == "object" || typeof e == "function" && !e?.deref ? new WeakRef(e) : e;
233
+ return () => r?.deref?.()?.removeEventListener?.(t, n, a);
234
+ }
235
+ var ye = () => {
236
+ const e = typeof matchMedia < "u" ? matchMedia("(orientation: landscape)")?.matches : !1, t = typeof window < "u" ? window.visualViewport : null, n = t ? {
237
+ "--vv-width": `${t.width}px`,
238
+ "--vv-height": `${t.height}px`,
239
+ "--vv-offset-left": `${t.offsetLeft}px`,
240
+ "--vv-offset-top": `${t.offsetTop}px`,
241
+ "--vv-scale": String(t.scale ?? 1)
242
+ } : {
243
+ "--vv-width": typeof window < "u" ? `${window.innerWidth}px` : "0px",
244
+ "--vv-height": typeof window < "u" ? `${window.innerHeight}px` : "0px",
245
+ "--vv-offset-left": "0px",
246
+ "--vv-offset-top": "0px",
247
+ "--vv-scale": "1"
248
+ };
249
+ if (typeof screen < "u") {
250
+ const a = screen?.availWidth + "px", r = screen?.availHeight + "px";
251
+ return {
252
+ "--screen-width": Math.min(screen?.width, screen?.availWidth) + "px",
253
+ "--screen-height": Math.min(screen?.height, screen?.availHeight) + "px",
254
+ "--avail-width": e ? r : a,
255
+ "--avail-height": e ? a : r,
256
+ "--view-height": Math.min(screen?.availHeight, window?.innerHeight) + "px",
257
+ "--pixel-ratio": String(devicePixelRatio || 1),
258
+ ...n
259
+ };
260
+ }
261
+ return {
262
+ "--screen-width": "0px",
263
+ "--screen-height": "0px",
264
+ "--avail-width": "0px",
265
+ "--avail-height": "0px",
266
+ "--view-height": "0px",
267
+ "--pixel-ratio": "1",
268
+ ...n
269
+ };
270
+ }, Oe = ye(), We = new OffscreenCanvas(1, 1).getContext("2d"), ie = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), ve = (e, t, n, a) => {
271
+ const r = new Set([...n.split(",") || [n]].map((i) => i.trim())), o = new MutationObserver((i, u) => {
272
+ for (const s of i) if (s.type == "childList") {
273
+ const p = Array.from(s.addedNodes) || [], y = Array.from(s.removedNodes) || [];
274
+ p.push(...Array.from(s.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), y.push(...Array.from(s.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(p)].filter((h) => h?.matches?.(t))?.map?.((h) => {
275
+ r.forEach((d) => {
276
+ a({
277
+ target: h,
278
+ type: "attributes",
279
+ attributeName: d,
280
+ oldValue: h?.getAttribute?.(d)
281
+ }, u);
282
+ });
283
+ });
284
+ } else s.target?.matches?.(t) && s.attributeName && r.has(s.attributeName) && a(s, u);
285
+ });
286
+ return o.observe(e = ie(e), {
287
+ attributeOldValue: !0,
288
+ attributes: !0,
289
+ attributeFilter: [...r],
290
+ childList: !0,
291
+ subtree: !0,
292
+ characterData: !0
293
+ }), [...e.querySelectorAll(t)].map((i) => r.forEach((u) => a({
294
+ target: i,
295
+ type: "attributes",
296
+ attributeName: u,
297
+ oldValue: i?.getAttribute?.(u)
298
+ }, o))), o;
299
+ }, me = (e, t = "*", n = (a, r) => {
300
+ }) => {
301
+ const a = (d) => {
302
+ const l = Array.from(d || []) || [];
303
+ return l.push(...Array.from(d || []).flatMap((c) => Array.from(c?.querySelectorAll?.(t) || []))), [...Array.from(new Set(l).values())].filter((c) => c?.matches?.(t));
304
+ }, r = (d) => {
305
+ const l = y?.deref?.(), c = a(d.addedNodes), f = a(d.removedNodes);
306
+ (c.length > 0 || f.length > 0) && n?.({
307
+ type: d.type,
308
+ target: d.target,
309
+ attributeName: d.attributeName,
310
+ attributeNamespace: d.attributeNamespace,
311
+ nextSibling: d.nextSibling,
312
+ oldValue: d.oldValue,
313
+ previousSibling: d.previousSibling,
314
+ addedNodes: c,
315
+ removedNodes: f
316
+ }, l);
317
+ }, o = (d) => {
318
+ r({
319
+ addedNodes: [d?.target].filter((l) => !!l),
320
+ removedNodes: [d?.relatedTarget].filter((l) => !!l),
321
+ type: "childList",
322
+ target: d?.currentTarget
323
+ });
324
+ }, i = (d) => {
325
+ r({
326
+ addedNodes: [d?.relatedTarget].filter((l) => !!l),
327
+ removedNodes: [d?.target].filter((l) => !!l),
328
+ type: "childList",
329
+ target: d?.currentTarget
330
+ });
331
+ }, u = (d) => {
332
+ r({
333
+ addedNodes: [d?.target].filter((l) => !!l),
334
+ removedNodes: [d?.relatedTarget || document?.activeElement].filter((l) => !!l),
335
+ type: "childList",
336
+ target: d?.currentTarget
337
+ });
338
+ }, s = {
339
+ passive: !0,
340
+ capture: !1
341
+ };
342
+ if (t?.includes?.(":hover") && t?.includes?.(":active"))
343
+ return e.addEventListener("pointerover", o, s), e.addEventListener("pointerout", i, s), e.addEventListener("pointerdown", o, s), e.addEventListener("pointerup", i, s), e.addEventListener("pointercancel", i, s), { disconnect: () => {
344
+ e.removeEventListener("pointerover", o, s), e.removeEventListener("pointerout", i, s), e.removeEventListener("pointerdown", o, s), e.removeEventListener("pointerup", i, s), e.removeEventListener("pointercancel", i, s);
345
+ } };
346
+ if (t?.includes?.(":hover"))
347
+ return e.addEventListener("pointerover", o, s), e.addEventListener("pointerout", i, s), { disconnect: () => {
348
+ e.removeEventListener("pointerover", o, s), e.removeEventListener("pointerout", i, s);
349
+ } };
350
+ if (t?.includes?.(":active"))
351
+ return e.addEventListener("pointerdown", o, s), e.addEventListener("pointerup", i, s), e.addEventListener("pointercancel", i, s), { disconnect: () => {
352
+ e.removeEventListener("pointerdown", o, s), e.removeEventListener("pointerup", i, s), e.removeEventListener("pointercancel", i, s);
353
+ } };
354
+ if (t?.includes?.(":focus") && t?.includes?.(":focus-within") && t?.includes?.(":focus-visible"))
355
+ return e.addEventListener("focusin", o, s), e.addEventListener("focusout", i, s), e.addEventListener("click", u, s), { disconnect: () => {
356
+ e.removeEventListener("focusin", o, s), e.removeEventListener("focusout", i, s), e.removeEventListener("click", u, s);
357
+ } };
358
+ const p = new MutationObserver((d, l) => {
359
+ for (const c of d) c.type == "childList" && r(c);
360
+ }), y = new WeakRef(p);
361
+ (e?.element ?? e) instanceof Node && p.observe(e = ie(e), {
362
+ childList: !0,
363
+ subtree: !0
364
+ });
365
+ const h = Array.from(e.querySelectorAll(t));
366
+ return h.length > 0 && n?.({
367
+ addedNodes: h,
368
+ removedNodes: []
369
+ }, p), p;
370
+ }, be = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", Q = (e) => typeof e == "string" && /@import\b/i.test(e), Y = "DOM", W = typeof document < "u" ? document.createElement("style") : null;
371
+ W && (typeof document < "u" && document.querySelector("head")?.appendChild?.(W), W.dataset.owner = Y);
372
+ var ee = (e, t, n = "") => {
373
+ e[0][e[1]] = e[1] == "innerHTML" ? `@import url("${t}") ${n && typeof n == "string" ? `layer(${n})` : ""};` : t;
374
+ }, O = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", E = (e) => O && e instanceof CSSStyleValue, S = (e) => O && e instanceof CSSUnitValue, b = (e, t, n, a = "") => {
375
+ if (!(!e || !t)) {
376
+ if (n == null) {
377
+ e.getPropertyValue(t) !== "" && e.removeProperty(t);
378
+ return;
379
+ }
380
+ e.getPropertyValue(t) !== n && e.setProperty(t, n, a);
381
+ }
382
+ }, we = (e, t, n, a = "") => {
383
+ if (!e || !t) return e;
384
+ const r = ae(t), o = e.style, i = e.attributeStyleMap ?? e.styleMap;
385
+ if (!O || !i) return se(e, t, n, a);
386
+ let u = ne(n) && !(E(n) || S(n)) ? n?.value : n;
387
+ if (u == null)
388
+ return i.delete?.(r), o && b(o, r, null, a), e;
389
+ if (E(u)) {
390
+ const s = i.get(r);
391
+ if (S(u) && S(s)) {
392
+ if (s.value === u.value && s.unit === u.unit) return e;
393
+ } else if (s === u) return e;
394
+ return i.set(r, u), e;
395
+ }
396
+ if (typeof u == "number") if (CSS?.number && !r.startsWith("--")) {
397
+ const s = CSS.number(u), p = i.get(r);
398
+ return S(p) && p.value === s.value && p.unit === s.unit || i.set(r, s), e;
399
+ } else
400
+ return b(o, r, String(u), a), e;
401
+ if (typeof u == "string" && !E(u)) {
402
+ const s = re(u);
403
+ if (typeof s == "number" && CSS?.number && !r.startsWith("--")) {
404
+ const p = CSS.number(s), y = i.get(r);
405
+ return S(y) && y.value === p.value && y.unit === p.unit || i.set(r, p), e;
406
+ } else
407
+ return b(o, r, u, a), e;
408
+ }
409
+ return b(o, r, String(u), a), e;
410
+ }, se = (e, t, n, a = "") => {
411
+ if (!e || !t) return e;
412
+ const r = ae(t), o = e.style;
413
+ if (!o) return e;
414
+ let i = ne(n) && !(E(n) || S(n)) ? n?.value : n;
415
+ return typeof i == "string" && !E(i) && (i = re(i) ?? i), i == null ? (b(o, r, null, a), e) : (E(i) || typeof i == "number", b(o, r, String(i), a), e);
416
+ }, oe = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), M = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new Map(), xe = (e) => {
417
+ if (!e) return null;
418
+ if (w.has(e)) return w.get(e);
419
+ if (e instanceof Blob || e instanceof File) {
420
+ if (M.has(e)) return M.get(e);
421
+ const t = URL.createObjectURL(e);
422
+ return M.set(e, t), w.set(t, t), t;
423
+ }
424
+ if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
425
+ const t = fetch(e?.replace?.("?url", "?raw"), {
426
+ cache: "force-cache",
427
+ mode: "same-origin",
428
+ priority: "high"
429
+ })?.then?.(async (n) => {
430
+ const a = await n.blob(), r = URL.createObjectURL(a);
431
+ return M.set(a, r), w.set(e, r), w.set(r, r), r;
432
+ });
433
+ return w.set(e, t), t;
434
+ }
435
+ if (typeof e == "string") {
436
+ const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
437
+ return M.set(t, n), w.set(n, n), n;
438
+ }
439
+ return e;
440
+ }, L = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new WeakMap(), Se = (e) => {
441
+ if (!e) return "";
442
+ if (L.has(e)) return L.get(e) ?? "";
443
+ if (e instanceof Blob || e instanceof File) {
444
+ if (T.has(e)) return T.get(e) ?? "";
445
+ const t = e?.text?.()?.then?.((n) => (T.set(e, n), n));
446
+ return T.set(e, t), t;
447
+ }
448
+ if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
449
+ const t = fetch(e?.replace?.("?url", "?raw"), {
450
+ cache: "force-cache",
451
+ mode: "same-origin",
452
+ priority: "high"
453
+ })?.then?.(async (n) => {
454
+ const a = await n.text();
455
+ return L.set(e, a), a;
456
+ });
457
+ return L.set(e, t), t;
458
+ }
459
+ return typeof e == "string" && L.set(e, e), e;
460
+ }, N = (e, t, n, a = "") => O ? we(e, t, n, a) : se(e, t, n, a), de = (e, t, n = "", a) => {
461
+ const r = xe(e), o = typeof e == "string" && URL.canParse(e) ? e : r;
462
+ return t?.[0] && (t[0].fetchPriority = "high"), t && o && typeof o == "string" && ee(t, o, n), t?.[0] && (!URL.canParse(e) || a) && t?.[0] instanceof HTMLLinkElement, oe(r, (i) => {
463
+ t?.[0] && i && (ee(t, i, n), t?.[0].setAttribute("loaded", ""));
464
+ })?.catch?.((i) => {
465
+ console.warn("Failed to load style sheet:", i);
466
+ });
467
+ }, Ee = (e) => {
468
+ const t = typeof document < "u" ? document.createElement("link") : null;
469
+ return t && (t.fetchPriority = "high"), t ? (Object.assign(t, {
470
+ rel: "stylesheet",
471
+ type: "text/css",
472
+ crossOrigin: "same-origin"
473
+ }), t.dataset.owner = Y, de(e, [t, "href"]), typeof document < "u" && document.head.append(t), t) : null;
474
+ }, V = (e, t = typeof document < "u" ? document?.head : null, n = "") => {
475
+ const a = t?.querySelector?.("head") ?? t;
476
+ if (typeof HTMLHeadElement < "u" && a instanceof HTMLHeadElement) return Ee(e);
477
+ const r = typeof document < "u" ? document.createElement("style") : null;
478
+ return r ? (r.dataset.owner = Y, de(e, [r, "innerHTML"], n), a?.prepend?.(r), r) : null;
479
+ }, m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new WeakMap(), te = (e, t) => {
480
+ if (!e || !t) return !1;
481
+ try {
482
+ return e.replaceSync(t), !0;
483
+ } catch (n) {
484
+ const a = String(n?.message || "").toLowerCase();
485
+ return a.includes("@import rules are not allowed") || a.includes("@import") && a.includes("not allowed") || console.warn("[DOM] Failed to apply adopted stylesheet:", n), !1;
486
+ }
487
+ }, ce = (e, t = null) => {
488
+ if (!be())
489
+ return typeof e == "string" && V(e, void 0, t || ""), null;
490
+ if (typeof e == "string" && Q(e))
491
+ return V(e, void 0, t || ""), null;
492
+ if (typeof e == "string" && m?.has?.(e)) {
493
+ const a = m.get(e);
494
+ return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(a) && document.adoptedStyleSheets.push(a), a;
495
+ }
496
+ if ((e instanceof Blob || e instanceof File) && C?.has?.(e)) {
497
+ const a = C.get(e);
498
+ return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(a) && document.adoptedStyleSheets.push(a), a;
499
+ }
500
+ if (!e) return null;
501
+ const n = typeof e == "string" ? m.getOrInsertComputed(e, (a) => new CSSStyleSheet()) : C.getOrInsertComputed(e, (a) => new CSSStyleSheet());
502
+ if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
503
+ const a = t ? `@layer ${t} { ${e} }` : e;
504
+ return m.set(e, n), te(n, a) || ($(n), m.delete(e), V(e)), n;
505
+ } else oe(Se(e), (a) => {
506
+ if (m.set(a, n), a) {
507
+ if (Q(a))
508
+ return $(n), m.delete(a), C.delete(e), V(a, void 0, t || ""), n;
509
+ const r = t ? `@layer ${t} { ${a} }` : a;
510
+ return te(n, r) || ($(n), m.delete(a), C.delete(e), V(a, void 0, t || "")), n;
511
+ }
512
+ });
513
+ return n;
514
+ }, $ = (e) => {
515
+ if (!e) return !1;
516
+ const t = typeof e == "string" ? m.get(e) : e;
517
+ if (!t || typeof document > "u") return !1;
518
+ const n = document.adoptedStyleSheets, a = n.indexOf(t);
519
+ return a !== -1 ? (n.splice(a, 1), !0) : !1;
520
+ }, Me = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new Map(), Le = (e, t) => {
521
+ const n = [...e.entries() || []];
522
+ return new Map(n?.map?.(([a, r]) => [a, r?.get?.(t)])?.filter?.(([a, r]) => !!r) || []);
523
+ }, R = (e) => ({
524
+ storeSet: Le(B, e),
525
+ mixinSet: z?.get?.(e),
526
+ behaviorSet: Me?.get?.(e)
527
+ }), z = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new WeakMap(), ue = (e, t) => {
528
+ typeof t == "string" && (t = A?.get?.(t));
529
+ const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), a = new Set([...n].map((i) => A?.get?.(i)).filter((i) => !!i)), r = z?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
530
+ j?.has?.(t) || j?.set?.(t, /* @__PURE__ */ new WeakSet()), z?.has?.(e) || z?.set?.(e, r);
531
+ const o = new WeakRef(e);
532
+ r?.has?.(t) || (a.has(t) || t?.disconnect?.(o, t, R(e)), (a.has(t) || !j?.get?.(t)?.has?.(e)) && (t?.connect?.(o, t, R(e)), n.add(k?.get?.(t)), r?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((i) => !!i).join(" "))), j?.get?.(t)?.add?.(e)), r?.has?.(t) && (a.has(t) || (r?.delete?.(t), t?.disconnect?.(o, t, R(e))));
533
+ }, _ = /* @__PURE__ */ new Set(), Ve = (e = typeof document < "u" ? document : null) => {
534
+ if (e)
535
+ return _?.has?.(e) || (_?.add?.(e), ve(e, "*", "data-mixin", (t) => X(t.target)), me(e, "[data-mixin]", (t) => {
536
+ for (const n of t.addedNodes) n instanceof HTMLElement && X(n);
537
+ })), e;
538
+ }, X = (e) => {
539
+ const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
540
+ [...new Set([...t].map((n) => A?.get?.(n)).filter((n) => !!n))].map?.((n) => ue(e, n));
541
+ }, Ce = (e, t) => {
542
+ e.forEach((n) => t ? ue(n, t) : X(n));
543
+ }, je = (e) => {
544
+ for (const t of _) Ce(t?.querySelectorAll?.("[data-mixin]"), e);
545
+ }, Ae = new FinalizationRegistry((e) => {
546
+ A?.delete?.(e);
547
+ }), Te = (e, t) => {
548
+ if (!k?.has?.(t)) {
549
+ const n = e?.trim?.();
550
+ n && (k?.set?.(t, n), A?.set?.(n, t), Ae?.register?.(t, n), je(t));
551
+ }
552
+ };
553
+ Ve(typeof document < "u" ? document : null);
554
+ var J = class {
555
+ constructor(e = null) {
556
+ e && Te(e, this);
557
+ }
558
+ connect(e, t, n) {
559
+ return this;
560
+ }
561
+ disconnect(e, t, n) {
562
+ return this;
563
+ }
564
+ storeForElement(e) {
565
+ return B.get(this.name || "")?.get?.(e);
566
+ }
567
+ relatedForElement(e) {
568
+ return R(e);
569
+ }
570
+ get elements() {
571
+ return j?.get?.(this);
572
+ }
573
+ get storage() {
574
+ return B?.get?.(this.name || "");
575
+ }
576
+ get name() {
577
+ return k?.get?.(this);
578
+ }
579
+ };
580
+ function F(e, t) {
581
+ const n = Math.min(e.x, t.x), a = Math.min(e.y, t.y), r = Math.max(e.x, t.x), o = Math.max(e.y, t.y);
582
+ return {
583
+ left: n,
584
+ top: a,
585
+ right: r,
586
+ bottom: o,
587
+ width: r - n,
588
+ height: o - a
589
+ };
590
+ }
591
+ var P = {
592
+ start: "junction-select:start",
593
+ move: "junction-select:move",
594
+ end: "junction-select:end",
595
+ cancel: "junction-select:cancel"
596
+ }, U = {
597
+ start: "junction-drag:start",
598
+ move: "junction-drag:move",
599
+ end: "junction-drag:end"
600
+ }, I = {
601
+ start: "junction-resize:start",
602
+ move: "junction-resize:move",
603
+ end: "junction-resize:end"
604
+ }, H = /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
605
+ const a = H.get(e) ?? /* @__PURE__ */ new Map(), r = a.get(t) ?? [];
606
+ r.push(n), a.set(t, r), H.set(e, a);
607
+ }, G = (e, t) => {
608
+ const n = H.get(e), a = n?.get(t);
609
+ if (a) {
610
+ for (const r of a) try {
611
+ r();
612
+ } catch {
613
+ }
614
+ n.delete(t), n.size === 0 && H.delete(e);
615
+ }
616
+ }, x = (e, t) => {
617
+ const n = globalThis.getComputedStyle?.(e)?.getPropertyValue?.(t)?.trim?.() ?? "", a = parseFloat(n);
618
+ return Number.isFinite(a) ? a : 0;
619
+ }, le = (e, t, n) => {
620
+ const a = e.getAttribute(t)?.trim();
621
+ if (!a) return n;
622
+ const r = e.querySelector(a);
623
+ return r instanceof HTMLElement ? r : n;
624
+ }, Ne = class extends J {
625
+ constructor() {
626
+ super("ui-junction-select");
627
+ }
628
+ connect(e) {
629
+ const t = e?.deref?.();
630
+ if (!t) return this;
631
+ const n = document.createElement("div");
632
+ n.className = "ui-junction-select-overlay", n.setAttribute("data-junction-overlay", ""), n.style.cssText = "position:absolute;pointer-events:none;z-index:9999;box-sizing:border-box;border:1px dashed color-mix(in oklab, #3794ff 70%, transparent);background:color-mix(in oklab, #3794ff 14%, transparent);display:none;inset:auto;min-width:0;min-height:0;", globalThis.getComputedStyle?.(t)?.position === "static" && (t.style.position = "relative"), t.appendChild(n);
633
+ let r = !1, o = {
634
+ x: 0,
635
+ y: 0
636
+ }, i = {
637
+ x: 0,
638
+ y: 0
639
+ };
640
+ const u = (c) => {
641
+ const f = t.getBoundingClientRect();
642
+ return {
643
+ x: c.clientX - f.left,
644
+ y: c.clientY - f.top
645
+ };
646
+ }, s = () => {
647
+ const c = F(o, i);
648
+ if (c.width < 1 && c.height < 1) {
649
+ n.style.display = "none";
650
+ return;
651
+ }
652
+ n.style.display = "block", n.style.left = `${c.left}px`, n.style.top = `${c.top}px`, n.style.width = `${c.width}px`, n.style.height = `${c.height}px`;
653
+ }, p = (c) => {
654
+ c.button === 0 && (c.target?.closest?.("[data-junction-ignore-select], [data-junction-drag-handle], [data-junction-resize-handle], button, a, input, textarea, select") || (c.target === t || t.contains(c.target)) && (r = !0, o = u(c), i = { ...o }, t.setPointerCapture(c.pointerId), t.dispatchEvent(new CustomEvent(P.start, {
655
+ bubbles: !0,
656
+ detail: {
657
+ a: { ...o },
658
+ b: { ...i },
659
+ host: t
660
+ }
661
+ })), s()));
662
+ }, y = (c) => {
663
+ if (!r) return;
664
+ i = u(c), s();
665
+ const f = F(o, i);
666
+ t.dispatchEvent(new CustomEvent(P.move, {
667
+ bubbles: !0,
668
+ detail: {
669
+ a: { ...o },
670
+ b: { ...i },
671
+ box: f,
672
+ host: t
673
+ }
674
+ }));
675
+ }, h = (c) => {
676
+ if (!r) return;
677
+ r = !1;
678
+ try {
679
+ t.releasePointerCapture(c.pointerId);
680
+ } catch {
681
+ }
682
+ const f = F(o, i);
683
+ t.dispatchEvent(new CustomEvent(P.end, {
684
+ bubbles: !0,
685
+ detail: {
686
+ a: { ...o },
687
+ b: { ...i },
688
+ box: f,
689
+ host: t
690
+ }
691
+ }));
692
+ }, d = (c) => {
693
+ r && h(c);
694
+ }, l = (c) => {
695
+ if (r) {
696
+ r = !1, n.style.display = "none";
697
+ try {
698
+ t.releasePointerCapture(c.pointerId);
699
+ } catch {
700
+ }
701
+ t.dispatchEvent(new CustomEvent(P.cancel, {
702
+ bubbles: !0,
703
+ detail: { host: t }
704
+ }));
705
+ }
706
+ };
707
+ return g(t, "ui-junction-select", () => {
708
+ n.remove();
709
+ }), g(t, "ui-junction-select", v(t, "pointerdown", p)), g(t, "ui-junction-select", v(t, "pointermove", y)), g(t, "ui-junction-select", v(t, "pointerup", d)), g(t, "ui-junction-select", v(t, "pointercancel", l)), this;
710
+ }
711
+ disconnect(e) {
712
+ const t = e?.deref?.();
713
+ return t && G(t, "ui-junction-select"), this;
714
+ }
715
+ }, Pe = class extends J {
716
+ constructor() {
717
+ super("ui-junction-drag");
718
+ }
719
+ connect(e) {
720
+ const t = e?.deref?.();
721
+ if (!t) return this;
722
+ N(t, "--jx-drag-x", x(t, "--jx-drag-x")), N(t, "--jx-drag-y", x(t, "--jx-drag-y"));
723
+ const n = t.style.transform;
724
+ (!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)");
725
+ const a = le(t, "data-junction-drag-handle", t);
726
+ let r = !1, o = 0, i = 0, u = 0, s = 0;
727
+ const p = (d) => {
728
+ d.button === 0 && (d.target !== a && !a.contains(d.target) || (r = !0, o = d.clientX, i = d.clientY, u = x(t, "--jx-drag-x"), s = x(t, "--jx-drag-y"), a.setPointerCapture(d.pointerId), t.dispatchEvent(new CustomEvent(U.start, {
729
+ bubbles: !0,
730
+ detail: {
731
+ host: t,
732
+ clientX: d.clientX,
733
+ clientY: d.clientY,
734
+ baseX: u,
735
+ baseY: s
736
+ }
737
+ }))));
738
+ }, y = (d) => {
739
+ if (!r) return;
740
+ const l = d.clientX - o, c = d.clientY - i, f = u + l, Z = s + c;
741
+ N(t, "--jx-drag-x", f), N(t, "--jx-drag-y", Z), t.dispatchEvent(new CustomEvent(U.move, {
742
+ bubbles: !0,
743
+ detail: {
744
+ host: t,
745
+ dx: l,
746
+ dy: c,
747
+ x: f,
748
+ y: Z
749
+ }
750
+ }));
751
+ }, h = (d) => {
752
+ if (r) {
753
+ r = !1;
754
+ try {
755
+ a.releasePointerCapture(d.pointerId);
756
+ } catch {
757
+ }
758
+ t.dispatchEvent(new CustomEvent(U.end, {
759
+ bubbles: !0,
760
+ detail: {
761
+ host: t,
762
+ x: x(t, "--jx-drag-x"),
763
+ y: x(t, "--jx-drag-y")
764
+ }
765
+ }));
766
+ }
767
+ };
768
+ return g(t, "ui-junction-drag", () => {
769
+ t.style.transform = n;
770
+ }), g(t, "ui-junction-drag", v(a, "pointerdown", p)), g(t, "ui-junction-drag", v(a, "pointermove", y)), g(t, "ui-junction-drag", v(a, "pointerup", h)), g(t, "ui-junction-drag", v(a, "pointercancel", h)), this;
771
+ }
772
+ disconnect(e) {
773
+ const t = e?.deref?.();
774
+ return t && G(t, "ui-junction-drag"), this;
775
+ }
776
+ }, Re = class extends J {
777
+ constructor() {
778
+ super("ui-junction-resize");
779
+ }
780
+ connect(e) {
781
+ const t = e?.deref?.();
782
+ if (!t) return this;
783
+ const n = le(t, "data-junction-resize-handle", t);
784
+ let a = !1, r = 0, o = 0, i = 0, u = 0;
785
+ const s = 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), y = (l) => {
786
+ l.button === 0 && (l.target !== n && !n.contains(l.target) || (a = !0, r = l.clientX, o = l.clientY, i = t.offsetWidth, u = t.offsetHeight, n.setPointerCapture(l.pointerId), t.dispatchEvent(new CustomEvent(I.start, {
787
+ bubbles: !0,
788
+ detail: {
789
+ host: t,
790
+ width: i,
791
+ height: u
792
+ }
793
+ }))));
794
+ }, h = (l) => {
795
+ if (!a) return;
796
+ const c = Math.max(s, i + (l.clientX - r)), f = Math.max(p, u + (l.clientY - o));
797
+ t.style.width = `${c}px`, t.style.height = `${f}px`, t.dispatchEvent(new CustomEvent(I.move, {
798
+ bubbles: !0,
799
+ detail: {
800
+ host: t,
801
+ width: c,
802
+ height: f
803
+ }
804
+ }));
805
+ }, d = (l) => {
806
+ if (a) {
807
+ a = !1;
808
+ try {
809
+ n.releasePointerCapture(l.pointerId);
810
+ } catch {
811
+ }
812
+ t.dispatchEvent(new CustomEvent(I.end, {
813
+ bubbles: !0,
814
+ detail: {
815
+ host: t,
816
+ width: t.offsetWidth,
817
+ height: t.offsetHeight
818
+ }
819
+ }));
820
+ }
821
+ };
822
+ return g(t, "ui-junction-resize", v(n, "pointerdown", y)), g(t, "ui-junction-resize", v(n, "pointermove", h)), g(t, "ui-junction-resize", v(n, "pointerup", d)), g(t, "ui-junction-resize", v(n, "pointercancel", d)), this;
823
+ }
824
+ disconnect(e) {
825
+ const t = e?.deref?.();
826
+ return t && G(t, "ui-junction-resize"), this;
827
+ }
828
+ };
829
+ new Ne();
830
+ new Pe();
831
+ new Re();
832
+ var ze = "@layer animations{}@function --wavy-step(--step <number>){--angle:calc((var(--step, 0) * 2) * 1rad * pi);--variant:calc(cos(var(--clip-freq, 8) * var(--angle, 0deg)) * 0.5 + 0.5);--adjust:calc(var(--variant, 0) * var(--clip-amplitude, 0));--x:calc(50% + (cos(var(--angle, 0deg)) * (0.5 - var(--adjust, 0))) * var(--icon-size, 100%));--y:calc(50% + (sin(var(--angle, 0deg)) * (0.5 - var(--adjust, 0))) * var(--icon-size, 100%));result:var(--x) var(--y)}@layer ux-shapes{.shaped{aspect-ratio:1/1;border-radius:1.5rem;contain:strict;display:flex;overflow:hidden;padding:1.25rem;place-content:center;place-items:center;pointer-events:auto;transition:--background-tone-shift .2s ease-in-out,--icon-color .2s ease-in-out;transition-behavior:allow-discrete;user-select:none;z-index:1}.shaped,.shaped :is(span,ui-icon){block-size:stretch;inline-size:stretch}[data-dragging]{z-index:calc(100 + var(--z-index, 0))!important}:not(.shaped) .shaped[data-shape],:not(.shaped)>[data-shape],:not(:has(.shaped))[data-shape]{aspect-ratio:1/1;contain:strict;overflow:hidden;pointer-events:auto;touch-action:none}:not(.shaped) .shaped[data-shape=square],:not(.shaped)>[data-shape=square],:not(:has(.shaped))[data-shape=square]{--border-radius:var(--radius-md);--clip-path:none}:not(.shaped) .shaped[data-shape=squircle],:not(.shaped)>[data-shape=squircle],:not(:has(.shaped))[data-shape=squircle]{--border-radius:28%;--clip-path:none}:not(.shaped) .shaped[data-shape=circle],:not(.shaped)>[data-shape=circle],:not(:has(.shaped))[data-shape=circle]{--border-radius:50%;--clip-path:none}:not(.shaped) .shaped[data-shape=rounded],:not(.shaped)>[data-shape=rounded],:not(:has(.shaped))[data-shape=rounded]{--border-radius:var(--radius-xl);--clip-path:none}:not(.shaped) .shaped[data-shape=blob],:not(.shaped)>[data-shape=blob],:not(:has(.shaped))[data-shape=blob]{--border-radius:60% 40% 30% 70%/60% 30% 70% 40%;--clip-path:none}:not(.shaped) .shaped[data-shape=hexagon],:not(.shaped)>[data-shape=hexagon],:not(:has(.shaped))[data-shape=hexagon]{--border-radius:0;--clip-path:polygon(round 0.375rem,50% 0%,93.3% 25%,93.3% 75%,50% 100%,6.7% 75%,6.7% 25%)}:not(.shaped) .shaped[data-shape=diamond],:not(.shaped)>[data-shape=diamond],:not(:has(.shaped))[data-shape=diamond]{--border-radius:0;--clip-path:polygon(round 0.5rem,50% 0%,100% 50%,50% 100%,0% 50%)}:not(.shaped) .shaped[data-shape=star],:not(.shaped)>[data-shape=star],:not(:has(.shaped))[data-shape=star]{--border-radius:0;--clip-path:polygon(round 0.25rem,50% 0%,61% 35%,98% 38%,68% 59%,79% 95%,50% 75%,21% 95%,32% 59%,2% 38%,39% 35%)}:not(.shaped) .shaped[data-shape=badge],:not(.shaped)>[data-shape=badge],:not(:has(.shaped))[data-shape=badge]{--border-radius:0;--clip-path:polygon(round 0.375rem,0% 0%,100% 0%,100% 70%,50% 100%,0% 70%)}:not(.shaped) .shaped[data-shape=heart],:not(.shaped)>[data-shape=heart],:not(:has(.shaped))[data-shape=heart]{--border-radius:0;--clip-path:polygon(round 0.25rem,50% 100%,10% 65%,0% 45%,0% 30%,5% 15%,18% 3%,35% 0%,50% 12%,65% 0%,82% 3%,95% 15%,100% 30%,100% 45%,90% 65%)}:not(.shaped) .shaped[data-shape=clover],:not(.shaped)>[data-shape=clover],:not(:has(.shaped))[data-shape=clover]{--border-radius:0;--clip-path:polygon(round 0.375rem,50% 0%,60% 30%,70% 30%,100% 50%,70% 70%,60% 70%,50% 100%,40% 70%,30% 70%,0% 50%,30% 30%,40% 30%)}:not(.shaped) .shaped[data-shape=flower],:not(.shaped)>[data-shape=flower],:not(:has(.shaped))[data-shape=flower]{--border-radius:0;--clip-path:polygon(round 0.25rem,50% 0%,58% 25%,85% 15%,68% 40%,100% 50%,68% 60%,85% 85%,58% 75%,50% 100%,42% 75%,15% 85%,32% 60%,0% 50%,32% 40%,15% 15%,42% 25%)}:not(.shaped) .shaped[data-shape=triangle],:not(.shaped)>[data-shape=triangle],:not(:has(.shaped))[data-shape=triangle]{--border-radius:0;--clip-path:polygon(round 0.5rem,50% 0%,100% 87%,0% 87%)}:not(.shaped) .shaped[data-shape=pentagon],:not(.shaped)>[data-shape=pentagon],:not(:has(.shaped))[data-shape=pentagon]{--border-radius:0;--clip-path:polygon(round 0.375rem,50% 0%,97.5% 35%,79.5% 95%,20.5% 95%,2.5% 35%)}:not(.shaped) .shaped[data-shape=octagon],:not(.shaped)>[data-shape=octagon],:not(:has(.shaped))[data-shape=octagon]{--border-radius:0;--clip-path:polygon(round 0.25rem,30% 0%,70% 0%,100% 30%,100% 70%,70% 100%,30% 100%,0% 70%,0% 30%)}:not(.shaped) .shaped[data-shape=cross],:not(.shaped)>[data-shape=cross],:not(:has(.shaped))[data-shape=cross]{--border-radius:0;--clip-path:polygon(round 0.375rem,35% 0%,65% 0%,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0% 65%,0% 35%,35% 35%)}:not(.shaped) .shaped[data-shape=arrow],:not(.shaped)>[data-shape=arrow],:not(:has(.shaped))[data-shape=arrow]{--border-radius:0;--clip-path:polygon(round 0.375rem,0% 20%,60% 20%,60% 0%,100% 50%,60% 100%,60% 80%,0% 80%)}:not(.shaped) .shaped[data-shape=egg],:not(.shaped)>[data-shape=egg],:not(:has(.shaped))[data-shape=egg]{--border-radius:50% 50% 50% 50%/60% 60% 40% 40%;--clip-path:none}:not(.shaped) .shaped[data-shape=tear],:not(.shaped)>[data-shape=tear],:not(:has(.shaped))[data-shape=tear]{--border-radius:50cqmin 50cqmin 5rem 50cqmin;--clip-path:none;border-end-end-radius:5rem;border-end-start-radius:50cqmin;border-start-end-radius:50cqmin;border-start-start-radius:50cqmin}:not(.shaped) .shaped[data-shape=wavy],:not(.shaped)>[data-shape=wavy],:not(:has(.shaped))[data-shape=wavy]{--border-radius:calc(var(--icon-size, 100%) * 0.5)}}";
833
+ async function D() {
834
+ try {
835
+ await ce(ze), console.log("[Veela/Core] Core styles loaded");
836
+ } catch (e) {
837
+ console.warn("[Veela/Core] Failed to load core styles:", e);
838
+ }
839
+ }
840
+ var ke = "@layer ux-animation{}";
841
+ async function He() {
842
+ try {
843
+ await ce(ke), console.log("[Veela/Advanced] Advanced styles loaded");
844
+ } catch (e) {
845
+ console.warn("[Veela/Advanced] Failed to load advanced styles:", e);
846
+ }
847
+ }
848
+ var q = null;
849
+ async function $e(e) {
850
+ if (q === e) {
851
+ console.log(`[Veela] Variant '${e}' already loaded`);
852
+ return;
853
+ }
854
+ switch (console.log(`[Veela] Loading variant: ${e}`), e) {
855
+ case "basic":
856
+ await D();
857
+ break;
858
+ case "advanced":
859
+ await D(), await He();
860
+ break;
861
+ default:
862
+ console.warn(`[Veela] Unknown variant: ${e}, using basic`), await D();
863
+ break;
864
+ }
865
+ q = e;
866
+ }
867
+ function Fe() {
868
+ return q;
869
+ }
870
+ function Ue(e) {
871
+ return q === e;
872
+ }
873
+ export {
874
+ $e as default,
875
+ Fe as getLoadedVariant,
876
+ Ue as isVariantLoaded,
877
+ $e as loadVeelaVariant
878
+ };