@pie-element/venn-classification 0.1.1 → 0.1.2-next.20261002215153

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.
@@ -2510,38 +2510,38 @@ var Ui = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", Wi = {
2510
2510
  ["$", "$"],
2511
2511
  ["\\[", "\\]"],
2512
2512
  ["\\(", "\\)"]
2513
- ], Xi = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Zi = "PIE-MJX-CHTML-styles", Qi = "MJX-CHTML-styles", $i = [Qi, "MJX-SVG-styles"], ea = 201;
2514
- function ta(e) {
2513
+ ], Xi = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Zi = "PIE-MJX-CHTML-styles", Qi = "MJX-CHTML-styles", $i = [Qi, "MJX-SVG-styles"], ea = 200, ta = 201;
2514
+ function na(e) {
2515
2515
  let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
2516
2516
  for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
2517
2517
  }
2518
- function na() {
2518
+ function ra() {
2519
2519
  return window.MathJax;
2520
2520
  }
2521
- function ra(e) {
2521
+ function ia(e) {
2522
2522
  for (let [t, n] of Yi) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
2523
2523
  return e;
2524
2524
  }
2525
- function ia(e) {
2526
- return ra(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
2525
+ function aa(e) {
2526
+ return ia(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
2527
2527
  }
2528
- var aa = "mathjax_ignore", oa = "mathjax_process";
2529
- function sa(e, t) {
2530
- let n = e.closest(`.${aa}, .${oa}`);
2531
- return n !== null && t.contains(n) && !n.classList.contains(oa);
2528
+ var oa = "mathjax_ignore", sa = "mathjax_process";
2529
+ function ca(e, t) {
2530
+ let n = e.closest(`.${oa}, .${sa}`);
2531
+ return n !== null && t.contains(n) && !n.classList.contains(sa);
2532
2532
  }
2533
- function ca(e) {
2533
+ function la(e) {
2534
2534
  for (let t of e.querySelectorAll("[data-latex]")) {
2535
- if (t.dataset.mathHandled || t.closest("mjx-container") || sa(t, e)) continue;
2535
+ if (t.dataset.mathHandled || t.closest("mjx-container") || ca(t, e)) continue;
2536
2536
  let n = t.textContent;
2537
- n && (t.textContent = `\\(${ia(n)}\\)`.replace(Ji, "\\newline "), t.dataset.mathHandled = "true");
2537
+ n && (t.textContent = `\\(${aa(n)}\\)`.replace(Ji, "\\newline "), t.dataset.mathHandled = "true");
2538
2538
  }
2539
2539
  }
2540
- function la(e, t) {
2540
+ function ua(e, t) {
2541
2541
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
2542
2542
  return (t ? qi : Ki).test(e.textContent ?? "");
2543
2543
  }
2544
- function ua(e) {
2544
+ function da(e) {
2545
2545
  return new Promise((t, n) => {
2546
2546
  let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = e, s = {
2547
2547
  loader: {
@@ -2551,8 +2551,8 @@ function ua(e) {
2551
2551
  startup: {
2552
2552
  typeset: !1,
2553
2553
  ready: () => {
2554
- let e = na(), r = e?.startup, i = !!e?.version?.startsWith("4.");
2555
- i && da(e), r?.defaultReady?.(), i && fa(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2554
+ let e = ra(), r = e?.startup, i = !!e?.version?.startsWith("4.");
2555
+ i && fa(e), r?.defaultReady?.(), i && pa(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2556
2556
  }
2557
2557
  },
2558
2558
  tex: { macros: { ...Wi } },
@@ -2570,155 +2570,172 @@ function ua(e) {
2570
2570
  c.src = o || Ui, c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
2571
2571
  });
2572
2572
  }
2573
- function da(e) {
2573
+ function fa(e) {
2574
2574
  let t = e?._?.output?.chtml_ts?.CHTML;
2575
2575
  t && (t.STYLESHEETID = Zi);
2576
2576
  }
2577
- function fa(e) {
2577
+ function pa(e) {
2578
2578
  if (!e) return;
2579
2579
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
2580
2580
  let n = e.typesetRoot;
2581
- !n || t.has(n) || (ta(n), t.add(n));
2581
+ !n || t.has(n) || (na(n), t.add(n));
2582
2582
  };
2583
- e.addRenderAction?.("pie-strip-latex", ea, (e) => {
2583
+ e.addRenderAction?.("pie-strip-latex", ta, (e) => {
2584
2584
  for (let t of e.math ?? []) n(t);
2585
2585
  return !1;
2586
2586
  }, (e) => {
2587
2587
  let t = e.typesetRoot;
2588
- return t && ta(t), !1;
2588
+ return t && na(t), !1;
2589
2589
  });
2590
2590
  let r = e.outputJax?.chtmlStyles;
2591
- r?.id === Qi && (r.id = Zi), ha();
2591
+ r?.id === Qi && (r.id = Zi), ga();
2592
2592
  }
2593
- function pa(e) {
2593
+ function ma(e) {
2594
2594
  return e instanceof HTMLStyleElement && $i.includes(e.id);
2595
2595
  }
2596
- function ma(e) {
2596
+ function ha(e) {
2597
2597
  Vi("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
2598
2598
  }
2599
- function ha() {
2600
- let e = document.head, t = [...e.children].find(pa);
2599
+ function ga() {
2600
+ let e = document.head, t = [...e.children].find(ma);
2601
2601
  if (t) {
2602
- ma(t);
2602
+ ha(t);
2603
2603
  return;
2604
2604
  }
2605
2605
  let n = new MutationObserver((e) => {
2606
2606
  for (let t of e) {
2607
- let e = [...t.addedNodes].find(pa);
2607
+ let e = [...t.addedNodes].find(ma);
2608
2608
  if (e) {
2609
- ma(e), n.disconnect();
2609
+ ha(e), n.disconnect();
2610
2610
  return;
2611
2611
  }
2612
2612
  }
2613
2613
  });
2614
2614
  n.observe(e, { childList: !0 });
2615
2615
  }
2616
- function ga(e) {
2616
+ function _a(e) {
2617
+ let t = e?.math;
2618
+ if (!t?.remove) return;
2619
+ let n = [...t].filter((e) => (e.state?.() ?? 0) >= ea && e.typesetRoot?.isConnected === !1);
2620
+ if (n.length !== 0) {
2621
+ for (let e of [...n].reverse()) e.clear?.();
2622
+ t.remove(...n);
2623
+ }
2624
+ }
2625
+ function va(e) {
2617
2626
  return new Promise((t, n) => {
2618
2627
  let r = e.startup ?? {};
2619
2628
  e.startup = r;
2620
2629
  let i = r.ready;
2621
2630
  r.ready = () => {
2622
- let e = na()?.startup;
2631
+ let e = ra()?.startup;
2623
2632
  i ? i.call(r) : e?.defaultReady?.(), Promise.resolve(e?.promise).then(() => t(), n);
2624
2633
  };
2625
2634
  });
2626
2635
  }
2627
- function _a(e) {
2628
- let t = na();
2629
- return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : ga(t) : ua(e);
2636
+ function ya(e) {
2637
+ let t = ra();
2638
+ return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : va(t) : da(e);
2630
2639
  }
2631
- function va(e) {
2632
- return _a(e).then(() => {
2633
- typeof na()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2640
+ function ba(e) {
2641
+ return ya(e).then(() => {
2642
+ typeof ra()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2634
2643
  });
2635
2644
  }
2636
- function ya(e) {
2645
+ function xa(e) {
2637
2646
  let t = globalThis, n = t[Xi];
2638
- return n || (n = va(e), t[Xi] = n), n;
2647
+ return n || (n = ba(e), t[Xi] = n), n;
2639
2648
  }
2640
- function ba(e = {}) {
2649
+ function Sa(e = {}) {
2641
2650
  let t = e.useSingleDollar ?? !1;
2642
2651
  return async (n) => {
2643
2652
  if (typeof window > "u") return;
2644
2653
  let r = Hi();
2645
- r && Vi("mathjax-3-global", `window.MathJax is MathJax ${r}`), ca(n);
2646
- let i = ya(e);
2647
- if (!la(n, t)) {
2654
+ r && Vi("mathjax-3-global", `window.MathJax is MathJax ${r}`), la(n);
2655
+ let i = xa(e);
2656
+ if (!ua(n, t)) {
2648
2657
  i.catch(() => {});
2649
2658
  return;
2650
2659
  }
2651
2660
  await i;
2652
- let a = na();
2653
- await a?.startup?.promise, typeof a?.typesetPromise == "function" && (await a.typesetPromise([n]), ta(n));
2661
+ let a = ra();
2662
+ if (await a?.startup?.promise, typeof a?.typesetPromise == "function") {
2663
+ _a(a.startup?.document);
2664
+ try {
2665
+ await a.typesetPromise([n]);
2666
+ } catch (e) {
2667
+ throw a.typesetClear?.([n]), e;
2668
+ }
2669
+ na(n);
2670
+ }
2654
2671
  };
2655
2672
  }
2656
- var xa = "@pie-lib/math-rendering", Sa = "@pie-lib/math-rendering@2", Ca = "pie-print", wa = 50, Ta = 1e4, Ea = null;
2657
- function Da() {
2658
- return !!window[Sa]?.opts?.useSingleDollar;
2673
+ var Ca = "@pie-lib/math-rendering", wa = "@pie-lib/math-rendering@2", Ta = "pie-print", Ea = 50, Da = 1e4, Oa = null;
2674
+ function ka() {
2675
+ return !!window[wa]?.opts?.useSingleDollar;
2659
2676
  }
2660
- function Oa() {
2661
- return Ea ||= ba({ useSingleDollar: Da() }), Ea;
2677
+ function Aa() {
2678
+ return Oa ||= Sa({ useSingleDollar: ka() }), Oa;
2662
2679
  }
2663
- function ka() {
2680
+ function ja() {
2664
2681
  if (typeof window > "u") return null;
2665
- let e = window[xa];
2666
- return typeof e?.renderMath == "function" && e.renderMath !== Na ? e : null;
2682
+ let e = window[Ca];
2683
+ return typeof e?.renderMath == "function" && e.renderMath !== Fa ? e : null;
2667
2684
  }
2668
- function Aa(e) {
2685
+ function Ma(e) {
2669
2686
  let t = e;
2670
2687
  for (; t;) {
2671
- if (t instanceof Element && t.localName === Ca) return t;
2688
+ if (t instanceof Element && t.localName === Ta) return t;
2672
2689
  t = t instanceof ShadowRoot ? t.host : t.parentNode;
2673
2690
  }
2674
2691
  return null;
2675
2692
  }
2676
- function ja() {
2693
+ function Na() {
2677
2694
  let e = window.renderMath;
2678
2695
  return typeof e == "function" ? e : null;
2679
2696
  }
2680
- async function Ma(e) {
2681
- let t = Aa(e);
2697
+ async function Pa(e) {
2698
+ let t = Ma(e);
2682
2699
  if (!t) return null;
2683
- let n = ja();
2700
+ let n = Na();
2684
2701
  if (n || t.mathRenderingModuleUrlImported !== !0) return n;
2685
- let r = Date.now() + Ta;
2702
+ let r = Date.now() + Da;
2686
2703
  for (; Date.now() < r;) {
2687
- await new Promise((e) => setTimeout(e, wa));
2688
- let e = ja();
2704
+ await new Promise((e) => setTimeout(e, Ea));
2705
+ let e = Na();
2689
2706
  if (e) return e;
2690
2707
  }
2691
2708
  return null;
2692
2709
  }
2693
- var Na = async (e) => {
2710
+ var Fa = async (e) => {
2694
2711
  if (typeof window > "u") return;
2695
2712
  let t = typeof e == "string", n;
2696
2713
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2697
- let r = ka(), i = r || t ? null : await Ma(n);
2698
- return r ? await r.renderMath?.(n) : i && i !== Na ? await i(n) : await Oa()(n), t ? n.innerHTML : void 0;
2714
+ let r = ja(), i = r || t ? null : await Pa(n);
2715
+ return r ? await r.renderMath?.(n) : i && i !== Fa ? await i(n) : await Aa()(n), t ? n.innerHTML : void 0;
2699
2716
  };
2700
2717
  //#endregion
2701
2718
  //#region src/delivery/tile-accessible-name.ts
2702
- function Pa(e) {
2719
+ function Ia(e) {
2703
2720
  return (e || "").replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
2704
2721
  }
2705
- function Fa(e, n) {
2722
+ function La(e, n) {
2706
2723
  let r = (e.imageAlt ?? "").trim();
2707
- return (e.imageUrl ?? "").trim() && r ? r : Pa(e.label ?? "") || t("tileFallbackName", n);
2724
+ return (e.imageUrl ?? "").trim() && r ? r : Ia(e.label ?? "") || t("tileFallbackName", n);
2708
2725
  }
2709
- function Ia(e, n, r, i) {
2710
- let a = [Fa(e, i), n === null ? t("tileNotPlaced", i) : t("tileInRegion", i, { region: n })];
2726
+ function Ra(e, n, r, i) {
2727
+ let a = [La(e, i), n === null ? t("tileNotPlaced", i) : t("tileInRegion", i, { region: n })];
2711
2728
  return r === "correct" && a.push(t("tileCorrect", i)), r === "incorrect" && a.push(t("tileIncorrect", i)), a.join(", ");
2712
2729
  }
2713
2730
  //#endregion
2714
2731
  //#region src/delivery/Tile.svelte
2715
- var La = /* @__PURE__ */ Y("<img alt=\"\" class=\"tile-img svelte-1hgaksk\" aria-hidden=\"true\" draggable=\"false\"/>"), Ra = /* @__PURE__ */ Y("<span></span>"), za = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-correct svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z\"></path></svg></span>"), Ba = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-incorrect svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z\"></path></svg></span>"), Va = /* @__PURE__ */ Y("<button type=\"button\"><span><!> <!></span> <!></button>"), Ha = {
2732
+ var za = /* @__PURE__ */ Y("<img alt=\"\" class=\"tile-img svelte-1hgaksk\" aria-hidden=\"true\" draggable=\"false\"/>"), Ba = /* @__PURE__ */ Y("<span></span>"), Va = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-correct svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z\"></path></svg></span>"), Ha = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-incorrect svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z\"></path></svg></span>"), Ua = /* @__PURE__ */ Y("<button type=\"button\"><span><!> <!></span> <!></button>"), Wa = {
2716
2733
  hash: "svelte-1hgaksk",
2717
2734
  code: ".venn-tile.svelte-1hgaksk {position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:8px 14px;border:1.5px solid #334155;border-radius:10px;background:#ffffff;color:#0f172a;font-size:14px;font-weight:500;box-shadow:0 1px 2px rgba(15, 23, 42, 0.06);cursor:grab;touch-action:none;user-select:none;transition:box-shadow 120ms ease, transform 120ms ease, background 120ms ease;}.venn-tile.svelte-1hgaksk:focus-visible,\n .venn-tile.focused.svelte-1hgaksk {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.venn-tile.svelte-1hgaksk:hover:not(:disabled) {background:#f8fafc;}.venn-tile.held.svelte-1hgaksk {cursor:grabbing;box-shadow:0 6px 18px rgba(15, 23, 42, 0.18);transform:translateY(-1px);background:#eef2ff;}.venn-tile.invisible.svelte-1hgaksk {visibility:hidden;}.venn-tile.ghost.svelte-1hgaksk {pointer-events:none;cursor:grabbing;box-shadow:0 10px 24px rgba(15, 23, 42, 0.22);transform:rotate(-1.5deg);background:#ffffff;opacity:0.96;}.venn-tile.correct.svelte-1hgaksk {border-color:#0ea449;}.venn-tile.incorrect.svelte-1hgaksk {border-color:#bf0d00;}.venn-tile.svelte-1hgaksk:disabled {cursor:default;}.tile-body.svelte-1hgaksk {display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;pointer-events:none;max-width:220px;}.tile-body-image.svelte-1hgaksk {flex-direction:column;gap:4px;}.tile-img.svelte-1hgaksk {width:40px;height:40px;object-fit:contain;flex-shrink:0;}.tile-label.svelte-1hgaksk {pointer-events:none;text-align:center;line-height:1.25;word-break:break-word;}.tile-label-below.svelte-1hgaksk {font-size:12px;font-weight:600;}.venn-tile.fit.svelte-1hgaksk {box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;padding:6px 10px;}.fit.svelte-1hgaksk .tile-body:where(.svelte-1hgaksk) {max-width:100%;max-height:100%;overflow:hidden;}.fit.svelte-1hgaksk .tile-label:where(.svelte-1hgaksk) {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;}.fit.svelte-1hgaksk .tile-label-below:where(.svelte-1hgaksk) {-webkit-line-clamp:1;line-clamp:1;}.venn-badge.svelte-1hgaksk {position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#ffffff;}.venn-badge-correct.svelte-1hgaksk {background:#0ea449;}.venn-badge-incorrect.svelte-1hgaksk {background:#bf0d00;}\n @media (prefers-reduced-motion: reduce) {.venn-tile.svelte-1hgaksk {transition:none;}\n }"
2718
2735
  };
2719
- function Ua(e, t) {
2720
- Xe(t, !0), si(e, Ha);
2721
- let n = $(t, "id", 7), r = $(t, "label", 7), i = $(t, "imageUrl", 7), a = $(t, "imageAlt", 7), o = $(t, "name", 7), s = $(t, "language", 7), c = $(t, "correctness", 7, "neutral"), l = $(t, "held", 7, !1), u = $(t, "invisible", 7, !1), d = $(t, "ghost", 7, !1), f = $(t, "disabled", 7, !1), p = $(t, "focused", 7, !1), m = $(t, "fit", 7, !1), h = $(t, "onpointerdown", 7), g = $(t, "onkeydown", 7), _ = $(t, "onkeyup", 7), v = $(t, "onfocus", 7), y = $(t, "onclick", 7), b = /* @__PURE__ */ I(() => o() ?? Fa({
2736
+ function Ga(e, t) {
2737
+ Xe(t, !0), si(e, Wa);
2738
+ let n = $(t, "id", 7), r = $(t, "label", 7), i = $(t, "imageUrl", 7), a = $(t, "imageAlt", 7), o = $(t, "name", 7), s = $(t, "language", 7), c = $(t, "correctness", 7, "neutral"), l = $(t, "held", 7, !1), u = $(t, "invisible", 7, !1), d = $(t, "ghost", 7, !1), f = $(t, "disabled", 7, !1), p = $(t, "focused", 7, !1), m = $(t, "fit", 7, !1), h = $(t, "onpointerdown", 7), g = $(t, "onkeydown", 7), _ = $(t, "onkeyup", 7), v = $(t, "onfocus", 7), y = $(t, "onclick", 7), b = /* @__PURE__ */ I(() => o() ?? La({
2722
2739
  label: r(),
2723
2740
  imageUrl: i(),
2724
2741
  imageAlt: a()
@@ -2832,19 +2849,19 @@ function Ua(e, t) {
2832
2849
  set onclick(e) {
2833
2850
  y(e), R();
2834
2851
  }
2835
- }, C = Va();
2852
+ }, C = Ua();
2836
2853
  let w;
2837
2854
  var te = H(C);
2838
2855
  let ne;
2839
2856
  var re = H(te), ie = (e) => {
2840
- var t = La();
2857
+ var t = za();
2841
2858
  W(() => Q(t, "src", i())), X(e, t);
2842
2859
  };
2843
2860
  Z(re, (e) => {
2844
2861
  J(x) && e(ie);
2845
2862
  });
2846
2863
  var T = U(re, 2), E = (e) => {
2847
- var t = Ra();
2864
+ var t = Ba();
2848
2865
  let n;
2849
2866
  oi(t, r, !0), N(t), W(() => n = pi(t, 1, "tile-label svelte-1hgaksk", null, n, { "tile-label-below": J(x) })), X(e, t);
2850
2867
  };
@@ -2852,9 +2869,9 @@ function Ua(e, t) {
2852
2869
  J(S) && e(E);
2853
2870
  }), N(te);
2854
2871
  var ae = U(te, 2), oe = (e) => {
2855
- X(e, za());
2872
+ X(e, Va());
2856
2873
  }, se = (e) => {
2857
- X(e, Ba());
2874
+ X(e, Ha());
2858
2875
  };
2859
2876
  return Z(ae, (e) => {
2860
2877
  c() === "correct" ? e(oe) : c() === "incorrect" && e(se, 1);
@@ -2885,7 +2902,7 @@ Sr([
2885
2902
  "keydown",
2886
2903
  "keyup",
2887
2904
  "click"
2888
- ]), Li(Ua, {
2905
+ ]), Li(Ga, {
2889
2906
  id: {},
2890
2907
  label: {},
2891
2908
  imageUrl: {},
@@ -2907,12 +2924,12 @@ Sr([
2907
2924
  }, [], [], { mode: "open" });
2908
2925
  //#endregion
2909
2926
  //#region src/delivery/Tray.svelte
2910
- var Wa = /* @__PURE__ */ Y("<div role=\"region\" data-region-key=\"tray\"><div class=\"tray-label svelte-1ogsh8s\"> </div> <div class=\"tray-items svelte-1ogsh8s\"><!></div></div>"), Ga = {
2927
+ var Ka = /* @__PURE__ */ Y("<div role=\"region\" data-region-key=\"tray\"><div class=\"tray-label svelte-1ogsh8s\"> </div> <div class=\"tray-items svelte-1ogsh8s\"><!></div></div>"), qa = {
2911
2928
  hash: "svelte-1ogsh8s",
2912
2929
  code: ".venn-tray.svelte-1ogsh8s {border:1.5px dashed #94a3b8;border-radius:12px;padding:14px 16px;background:#f8fafc;min-height:120px;transition:background 120ms ease, border-color 120ms ease;}.venn-tray.drop-target.svelte-1ogsh8s {background:#e0f2fe;border-color:#0ea5e9;}.venn-tray.focused.svelte-1ogsh8s {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.tray-label.svelte-1ogsh8s {font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:8px;}.tray-items.svelte-1ogsh8s {display:flex;flex-wrap:wrap;gap:10px;}\n @media (prefers-reduced-motion: reduce) {.venn-tray.svelte-1ogsh8s {transition:none;}\n }"
2913
2930
  };
2914
- function Ka(e, t) {
2915
- Xe(t, !0), si(e, Ga);
2931
+ function Ja(e, t) {
2932
+ Xe(t, !0), si(e, qa);
2916
2933
  let n = $(t, "isDropTarget", 7, !1), r = $(t, "focused", 7, !1), i = $(t, "label", 7), a = $(t, "onpointerenter", 7), o = $(t, "onpointerleave", 7), s = $(t, "children", 7);
2917
2934
  var c = {
2918
2935
  get isDropTarget() {
@@ -2951,7 +2968,7 @@ function Ka(e, t) {
2951
2968
  set children(e) {
2952
2969
  s(e), R();
2953
2970
  }
2954
- }, l = Wa();
2971
+ }, l = Ka();
2955
2972
  let u;
2956
2973
  var d = H(l), f = ln(d, !0), p = U(d, 2), m = H(p), h = (e) => {
2957
2974
  var t = Mr();
@@ -2970,7 +2987,7 @@ function Ka(e, t) {
2970
2987
  o()?.apply(this, e);
2971
2988
  }), X(e, l), Ze(c);
2972
2989
  }
2973
- Li(Ka, {
2990
+ Li(Ja, {
2974
2991
  isDropTarget: {},
2975
2992
  focused: {},
2976
2993
  label: {},
@@ -2980,12 +2997,12 @@ Li(Ka, {
2980
2997
  }, [], [], { mode: "open" });
2981
2998
  //#endregion
2982
2999
  //#region src/delivery/TeacherInstructions.svelte
2983
- var qa = /* @__PURE__ */ Y("<div class=\"teacher-instructions pie-teacher-instructions svelte-1jhejbv\"><button type=\"button\" class=\"teacher-instructions-toggle pie-teacher-instructions-toggle svelte-1jhejbv\"> </button> <div class=\"teacher-instructions-content pie-teacher-instructions-content svelte-1jhejbv\"></div></div>"), Ja = {
3000
+ var Ya = /* @__PURE__ */ Y("<div class=\"teacher-instructions pie-teacher-instructions svelte-1jhejbv\"><button type=\"button\" class=\"teacher-instructions-toggle pie-teacher-instructions-toggle svelte-1jhejbv\"> </button> <div class=\"teacher-instructions-content pie-teacher-instructions-content svelte-1jhejbv\"></div></div>"), Xa = {
2984
3001
  hash: "svelte-1jhejbv",
2985
3002
  code: ".teacher-instructions.svelte-1jhejbv {margin-bottom:1rem;}.teacher-instructions-toggle.svelte-1jhejbv {padding:0;border:0;border-bottom:1px dotted currentColor;background:transparent;font:inherit;color:var(--pie-primary, #3f51b5);cursor:pointer;}.teacher-instructions-toggle.svelte-1jhejbv:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.teacher-instructions-content.svelte-1jhejbv {padding-top:1rem;}"
2986
3003
  };
2987
- function Ya(e, t) {
2988
- Xe(t, !0), si(e, Ja);
3004
+ function Za(e, t) {
3005
+ Xe(t, !0), si(e, Xa);
2989
3006
  let n = $(t, "html", 7), r = $(t, "language", 7), i = /* @__PURE__ */ z(!1), a = `venn-teacher-instructions-${Math.random().toString(36).slice(2, 10)}`;
2990
3007
  var o = {
2991
3008
  get html() {
@@ -3000,37 +3017,37 @@ function Ya(e, t) {
3000
3017
  set language(e) {
3001
3018
  r(e), R();
3002
3019
  }
3003
- }, c = qa(), l = H(c), u = ln(l, !0), d = U(l, 2);
3020
+ }, c = Ya(), l = H(c), u = ln(l, !0), d = U(l, 2);
3004
3021
  return oi(d, n, !0), N(d), N(c), W((e) => {
3005
3022
  Q(l, "aria-expanded", J(i)), Q(l, "aria-controls", a), zr(u, e), Q(d, "id", a), Q(d, "hidden", !J(i));
3006
3023
  }, [() => s(J(i) ? "hideTeacherInstructions" : "showTeacherInstructions", r())]), xr("click", l, () => B(i, !J(i))), X(e, c), Ze(o);
3007
3024
  }
3008
- Sr(["click"]), Li(Ya, {
3025
+ Sr(["click"]), Li(Za, {
3009
3026
  html: {},
3010
3027
  language: {}
3011
3028
  }, [], [], { mode: "open" });
3012
3029
  //#endregion
3013
3030
  //#region src/delivery/layout.ts
3014
- var Xa = {
3031
+ var Qa = {
3015
3032
  w: 120,
3016
3033
  h: 52
3017
- }, Za = {
3034
+ }, $a = {
3018
3035
  w: 120,
3019
3036
  h: 84
3020
- }, Qa = .6;
3021
- function $a(e) {
3037
+ }, eo = .6;
3038
+ function to(e) {
3022
3039
  return Math.min(1, 44 / Math.min(e.w, e.h));
3023
3040
  }
3024
- var eo = {
3041
+ var no = {
3025
3042
  side: 24,
3026
3043
  top: 40,
3027
3044
  radius: 236,
3028
3045
  centerDistance: 200,
3029
3046
  outsideGap: 12,
3030
3047
  outsideStripHeight: 136
3031
- }, to = .05;
3032
- function no(e = 1, t = 0) {
3033
- let n = eo.side * e, r = eo.radius * e, i = eo.centerDistance * e, a = eo.top * e + r, o = eo.outsideGap * e, s = Math.max(eo.outsideStripHeight * e, t);
3048
+ }, ro = .05;
3049
+ function io(e = 1, t = 0) {
3050
+ let n = no.side * e, r = no.radius * e, i = no.centerDistance * e, a = no.top * e + r, o = no.outsideGap * e, s = Math.max(no.outsideStripHeight * e, t);
3034
3051
  return {
3035
3052
  width: 2 * n + 2 * r + i,
3036
3053
  height: a + r + o + s,
@@ -3048,37 +3065,37 @@ function no(e = 1, t = 0) {
3048
3065
  }]
3049
3066
  };
3050
3067
  }
3051
- function ro() {
3052
- return no();
3068
+ function ao() {
3069
+ return io();
3053
3070
  }
3054
- function io(e, t) {
3055
- return `min(100%, max(min(720px, ${Qa * 100 * e.width / e.height}vh), ${e.width * $a(t)}px))`;
3071
+ function oo(e, t) {
3072
+ return `min(100%, max(min(720px, ${eo * 100 * e.width / e.height}vh), ${e.width * to(t)}px))`;
3056
3073
  }
3057
- function ao(e, t, n) {
3058
- return e > 0 ? Math.max($a(n), Math.min(1, e / t.width)) : 1;
3074
+ function so(e, t, n) {
3075
+ return e > 0 ? Math.max(to(n), Math.min(1, e / t.width)) : 1;
3059
3076
  }
3060
- function oo(e, t) {
3077
+ function co(e, t) {
3061
3078
  return Math.max(0, Math.floor((e + 8) / (t.w + 8) + 1e-9));
3062
3079
  }
3063
- function so(e, t) {
3080
+ function lo(e, t) {
3064
3081
  return t > e.r ? -1 : Math.sqrt(e.r * e.r - t * t);
3065
3082
  }
3066
- function co(e, t, n) {
3067
- let r = so(e, Math.max(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3083
+ function uo(e, t, n) {
3084
+ let r = lo(e, Math.max(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3068
3085
  return r < 0 ? null : [e.cx - r, e.cx + r];
3069
3086
  }
3070
- function lo(e, t, n) {
3071
- return so(e, t <= e.cy && e.cy <= n ? 0 : Math.min(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3087
+ function fo(e, t, n) {
3088
+ return lo(e, t <= e.cy && e.cy <= n ? 0 : Math.min(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3072
3089
  }
3073
- function uo(e, t, n, r, i) {
3074
- let a = co(t, r, i), o = co(n, r, i), s, c;
3090
+ function po(e, t, n, r, i) {
3091
+ let a = uo(t, r, i), o = uo(n, r, i), s, c;
3075
3092
  if (e === "0") {
3076
3093
  if (!a) return null;
3077
- let e = lo(n, r, i);
3094
+ let e = fo(n, r, i);
3078
3095
  [s, c] = [a[0], e < 0 ? a[1] : Math.min(a[1], n.cx - e)];
3079
3096
  } else if (e === "1") {
3080
3097
  if (!o) return null;
3081
- let e = lo(t, r, i);
3098
+ let e = fo(t, r, i);
3082
3099
  [s, c] = [e < 0 ? o[0] : Math.max(o[0], t.cx + e), o[1]];
3083
3100
  } else {
3084
3101
  if (!a || !o) return null;
@@ -3086,14 +3103,14 @@ function uo(e, t, n, r, i) {
3086
3103
  }
3087
3104
  return c > s ? [s, c] : null;
3088
3105
  }
3089
- function fo(e, t, n, r) {
3106
+ function mo(e, t, n, r) {
3090
3107
  let i = r.h + 8, a = t.cy, o = Math.max(t.r, n.r);
3091
3108
  return [0, .5].map((s) => {
3092
3109
  let c = [], l = Math.ceil(o / i) + 1;
3093
3110
  for (let o = -l; o <= l; o++) {
3094
- let l = a + (o + s) * i, u = uo(e, t, n, l - r.h / 2 - 6, l + r.h / 2 + 6);
3111
+ let l = a + (o + s) * i, u = po(e, t, n, l - r.h / 2 - 6, l + r.h / 2 + 6);
3095
3112
  if (!u) continue;
3096
- let d = u[0] + 6, f = u[1] - 6, p = oo(f - d, r);
3113
+ let d = u[0] + 6, f = u[1] - 6, p = co(f - d, r);
3097
3114
  p > 0 && c.push({
3098
3115
  y: l,
3099
3116
  lo: d,
@@ -3104,11 +3121,11 @@ function fo(e, t, n, r) {
3104
3121
  return c;
3105
3122
  });
3106
3123
  }
3107
- function po(e) {
3124
+ function ho(e) {
3108
3125
  return e.reduce((e, t) => e + t.n, 0);
3109
3126
  }
3110
- function mo(e, t, n) {
3111
- let r = e.width - 6, i = oo(r - 6, n), a = n.h + 8, o = e.height - t, s = i * Math.max(0, Math.floor((o - 12 + 8) / a + 1e-9)), c = {
3127
+ function go(e, t, n) {
3128
+ let r = e.width - 6, i = co(r - 6, n), a = n.h + 8, o = e.height - t, s = i * Math.max(0, Math.floor((o - 12 + 8) / a + 1e-9)), c = {
3112
3129
  x: e.width / 2,
3113
3130
  y: t + o / 2
3114
3131
  };
@@ -3117,7 +3134,7 @@ function mo(e, t, n) {
3117
3134
  slots: (e) => {
3118
3135
  if (e <= 0) return [];
3119
3136
  let l = Math.min(e, s), u = i > 0 ? Math.ceil(l / i) : 0, d = t + (o - (u * a - 8)) / 2;
3120
- return yo(vo(Array.from({ length: u }, (e, t) => ({
3137
+ return xo(bo(Array.from({ length: u }, (e, t) => ({
3121
3138
  y: d + n.h / 2 + t * a,
3122
3139
  lo: 6,
3123
3140
  hi: r,
@@ -3126,20 +3143,20 @@ function mo(e, t, n) {
3126
3143
  }
3127
3144
  };
3128
3145
  }
3129
- function ho(e) {
3146
+ function _o(e) {
3130
3147
  return {
3131
3148
  x: e.x + e.w / 2,
3132
3149
  y: e.y + e.h / 2
3133
3150
  };
3134
3151
  }
3135
- function go(e, t, n) {
3152
+ function vo(e, t, n) {
3136
3153
  let r = t * n.w + (t - 1) * 8, i = (e.lo + e.hi) / 2 - r / 2 + n.w / 2;
3137
3154
  return Array.from({ length: t }, (t, r) => ({
3138
3155
  x: i + r * (n.w + 8),
3139
3156
  y: e.y
3140
3157
  }));
3141
3158
  }
3142
- function _o(e, t, n) {
3159
+ function yo(e, t, n) {
3143
3160
  let r = [...e].sort((e, n) => Math.abs(e.y - t) - Math.abs(n.y - t) || e.y - n.y), i = [], a = 0;
3144
3161
  for (let e of r) {
3145
3162
  if (a >= n) break;
@@ -3147,39 +3164,39 @@ function _o(e, t, n) {
3147
3164
  }
3148
3165
  return i.sort((e, t) => e.y - t.y);
3149
3166
  }
3150
- function vo(e, t, n) {
3167
+ function bo(e, t, n) {
3151
3168
  let r = [], i = t;
3152
3169
  for (let t of e) {
3153
3170
  let e = Math.min(t.n, i);
3154
- r.push(...go(t, e, n)), i -= e;
3171
+ r.push(...vo(t, e, n)), i -= e;
3155
3172
  }
3156
3173
  return r;
3157
3174
  }
3158
- function yo(e, t, n) {
3175
+ function xo(e, t, n) {
3159
3176
  let r = e[e.length - 1] ?? n;
3160
3177
  for (; e.length < t;) e.push({ ...r });
3161
3178
  return e;
3162
3179
  }
3163
- function bo(e, t, n, r) {
3164
- let i = Math.max(...e.map(po));
3180
+ function So(e, t, n, r) {
3181
+ let i = Math.max(...e.map(ho));
3165
3182
  return (a) => {
3166
3183
  if (a <= 0) return [];
3167
3184
  let o = Math.min(a, i), s = null, c = [Infinity, Infinity];
3168
3185
  for (let n of e) {
3169
- if (po(n) < o) continue;
3170
- let e = _o(n, t, o), r = Math.abs(e.reduce((e, t) => e + t.y, 0) / e.length - t), i = [e.length, r];
3186
+ if (ho(n) < o) continue;
3187
+ let e = yo(n, t, o), r = Math.abs(e.reduce((e, t) => e + t.y, 0) / e.length - t), i = [e.length, r];
3171
3188
  (i[0] < c[0] || i[0] === c[0] && i[1] < c[1] - 1e-9) && (s = e, c = i);
3172
3189
  }
3173
- return yo(s ? vo(s, o, n) : [], a, r);
3190
+ return xo(s ? bo(s, o, n) : [], a, r);
3174
3191
  };
3175
3192
  }
3176
- function xo(e, t, n) {
3193
+ function Co(e, t, n) {
3177
3194
  let r = t.cy, i = 0, a = Math.min(t.r, n.r);
3178
3195
  for (let o = 0; o < 40; o++) {
3179
- let o = (i + a) / 2, s = uo(e, t, n, r - o, r + o);
3196
+ let o = (i + a) / 2, s = po(e, t, n, r - o, r + o);
3180
3197
  s && s[1] - s[0] >= 2 * o ? i = o : a = o;
3181
3198
  }
3182
- let o = uo(e, t, n, r - i, r + i) ?? [0, 0];
3199
+ let o = po(e, t, n, r - i, r + i) ?? [0, 0];
3183
3200
  return {
3184
3201
  x: o[0] + 1,
3185
3202
  y: r - i + 1,
@@ -3187,26 +3204,26 @@ function xo(e, t, n) {
3187
3204
  h: 2 * i - 2
3188
3205
  };
3189
3206
  }
3190
- function So(e, t, n) {
3207
+ function wo(e, t, n) {
3191
3208
  let [r, i] = t.circles;
3192
- return Math.max(...fo(e, r, i, n).map(po));
3209
+ return Math.max(...mo(e, r, i, n).map(ho));
3193
3210
  }
3194
- var Co = [
3211
+ var To = [
3195
3212
  "0",
3196
3213
  "0,1",
3197
3214
  "1"
3198
3215
  ];
3199
- function wo(e, t = Xa) {
3200
- let n = no();
3216
+ function Eo(e, t = Qa) {
3217
+ let n = io();
3201
3218
  for (let r = 1;; r++) {
3202
3219
  let i = n;
3203
- if (Co.every((n) => So(n, i, t) >= (e[n] ?? 0))) break;
3204
- n = no(1 + r * to);
3220
+ if (To.every((n) => wo(n, i, t) >= (e[n] ?? 0))) break;
3221
+ n = io(1 + r * ro);
3205
3222
  }
3206
- let r = e[""] ?? 0, i = oo(n.width - 12, t), a = Math.ceil(r / i) * (t.h + 8) - 8 + 12;
3207
- return a > n.outsideStripHeight ? no(n.scale, a) : n;
3223
+ let r = e[""] ?? 0, i = co(n.width - 12, t), a = Math.ceil(r / i) * (t.h + 8) - 8 + 12;
3224
+ return a > n.outsideStripHeight ? io(n.scale, a) : n;
3208
3225
  }
3209
- function To(e, t = ro(), n = Xa) {
3226
+ function Do(e, t = ao(), n = Qa) {
3210
3227
  if (e.circles?.length !== 2) throw Error(`buildLayout2Set requires exactly 2 circles (got ${e.circles?.length ?? 0})`);
3211
3228
  let [a, s] = t.circles, c = i(2), l = Math.max(a.cy + a.r, s.cy + s.r), u = Math.min(t.height - t.outsideStripHeight, l + t.outsideGap), d = (e, t, n) => (r, i) => {
3212
3229
  let a = r - e, o = i - t;
@@ -3222,11 +3239,11 @@ function To(e, t = ro(), n = Xa) {
3222
3239
  y: u,
3223
3240
  w: t.width,
3224
3241
  h: t.height - u
3225
- }, {capacity: g, slots: _} = mo(t, u, n);
3242
+ }, {capacity: g, slots: _} = go(t, u, n);
3226
3243
  else if (c === "0" || c === "1" || c === "0,1") {
3227
- d = c === "0" ? (e, t) => f(e, t) && !p(e, t) : c === "1" ? (e, t) => p(e, t) && !f(e, t) : (e, t) => f(e, t) && p(e, t), h = xo(c, a, s);
3228
- let e = fo(c, a, s, n);
3229
- g = Math.max(...e.map(po)), _ = bo(e, a.cy, n, ho(h));
3244
+ d = c === "0" ? (e, t) => f(e, t) && !p(e, t) : c === "1" ? (e, t) => p(e, t) && !f(e, t) : (e, t) => f(e, t) && p(e, t), h = Co(c, a, s);
3245
+ let e = mo(c, a, s, n);
3246
+ g = Math.max(...e.map(ho)), _ = So(e, a.cy, n, _o(h));
3230
3247
  } else d = () => !1, h = {
3231
3248
  x: 0,
3232
3249
  y: 0,
@@ -3248,7 +3265,7 @@ function To(e, t = ro(), n = Xa) {
3248
3265
  outsideStripTop: u
3249
3266
  };
3250
3267
  }
3251
- function Eo(e, t, n) {
3268
+ function Oo(e, t, n) {
3252
3269
  for (let r of [
3253
3270
  "0,1",
3254
3271
  "0",
@@ -3262,7 +3279,7 @@ function Eo(e, t, n) {
3262
3279
  }
3263
3280
  //#endregion
3264
3281
  //#region src/delivery/dnd.ts
3265
- function Do({ model: t, session: r, tileId: i, placement: o }) {
3282
+ function ko({ model: t, session: r, tileId: i, placement: o }) {
3266
3283
  let s = a(r, t), c = {
3267
3284
  ...s,
3268
3285
  placements: {
@@ -3272,19 +3289,19 @@ function Do({ model: t, session: r, tileId: i, placement: o }) {
3272
3289
  };
3273
3290
  return c.completed = n(t, c), c;
3274
3291
  }
3275
- function Oo(t, n) {
3292
+ function Ao(t, n) {
3276
3293
  let r = t?.placements?.[n];
3277
3294
  return Array.isArray(r) ? e(r) : null;
3278
3295
  }
3279
- function ko(e, t, n) {
3280
- let r = Oo(e, t);
3296
+ function jo(e, t, n) {
3297
+ let r = Ao(e, t);
3281
3298
  return r === null || n === null ? r === n : c(r, n);
3282
3299
  }
3283
- function Ao(e, t) {
3300
+ function Mo(e, t) {
3284
3301
  let n = t?.placements ?? {};
3285
3302
  return (e.tiles || []).filter((e) => n[e.id] == null);
3286
3303
  }
3287
- function jo(t, n) {
3304
+ function No(t, n) {
3288
3305
  let r = n?.placements ?? {}, i = {};
3289
3306
  for (let n of t.tiles || []) {
3290
3307
  let t = r[n.id];
@@ -3296,12 +3313,12 @@ function jo(t, n) {
3296
3313
  }
3297
3314
  //#endregion
3298
3315
  //#region src/delivery/VennClassification.svelte
3299
- var Mo = /* @__PURE__ */ Y("<div class=\"venn-prompt svelte-gkcqor\"></div>"), No = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\" aria-hidden=\"true\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"#bce2ff\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"#bce2ff\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"#1a9cff\"></polygon></svg>"), Po = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\" aria-hidden=\"true\"><path style=\"fill: #D0CAC5; stroke: #E6E3E0; stroke-width: 0.75; stroke-miterlimit: 10;\" d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\"></path><path style=\"fill: #B3ABA4; stroke: #CDC7C2; stroke-width: 0.5; stroke-miterlimit: 10;\" d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"#bce2ff\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"#1a9cff\"></polygon></svg>"), Fo = /* @__PURE__ */ Y("<button type=\"button\" class=\"toggle-correct svelte-gkcqor\"><!> <span class=\"toggle-label svelte-gkcqor\"> </span></button>"), Io = /* @__PURE__ */ Y("<div class=\"venn-error svelte-gkcqor\" role=\"alert\"> </div>"), Lo = /* @__PURE__ */ jr("<circle fill=\"rgba(14, 165, 233, 0.12)\"></circle>"), Ro = /* @__PURE__ */ jr("<rect x=\"0\" y=\"0\"></rect>"), zo = /* @__PURE__ */ jr("<circle></circle>"), Bo = /* @__PURE__ */ jr("<circle fill=\"none\" stroke=\"#1e293b\"></circle>"), Vo = /* @__PURE__ */ jr("<text font-weight=\"600\" fill=\"#0f172a\"> </text>"), Ho = /* @__PURE__ */ Y("<div class=\"region-aria svelte-gkcqor\" role=\"region\"></div>"), Uo = /* @__PURE__ */ Y("<div class=\"tile-wrapper svelte-gkcqor\"><!></div>"), Wo = /* @__PURE__ */ Y("<div class=\"venn-diagram svelte-gkcqor\"><svg preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\" class=\"svelte-gkcqor\"><defs><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><clipPath clipPathUnits=\"userSpaceOnUse\"><circle></circle></clipPath><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"white\"></rect><circle fill=\"black\"></circle><circle fill=\"black\"></circle></mask></defs><rect fill=\"#ffffff\" stroke=\"#cbd5e1\"></rect><!><!><!><!><!><!><!><line stroke=\"#cbd5e1\"></line></svg> <div class=\"region-labels svelte-gkcqor\" aria-hidden=\"false\"></div> <div class=\"placed-tiles svelte-gkcqor\"></div></div> <!>", 1), Go = /* @__PURE__ */ Y("<div class=\"drag-ghost svelte-gkcqor\"><!></div>"), Ko = /* @__PURE__ */ Y("<div class=\"venn-root svelte-gkcqor\"><!> <!> <!> <!> <!> <div class=\"sr-only svelte-gkcqor\" aria-live=\"polite\" aria-atomic=\"true\"></div></div>"), qo = {
3316
+ var Po = /* @__PURE__ */ Y("<div class=\"venn-prompt svelte-gkcqor\"></div>"), Fo = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\" aria-hidden=\"true\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"#bce2ff\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"#bce2ff\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"#1a9cff\"></polygon></svg>"), Io = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\" aria-hidden=\"true\"><path style=\"fill: #D0CAC5; stroke: #E6E3E0; stroke-width: 0.75; stroke-miterlimit: 10;\" d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\"></path><path style=\"fill: #B3ABA4; stroke: #CDC7C2; stroke-width: 0.5; stroke-miterlimit: 10;\" d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"#bce2ff\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"#1a9cff\"></polygon></svg>"), Lo = /* @__PURE__ */ Y("<button type=\"button\" class=\"toggle-correct svelte-gkcqor\"><!> <span class=\"toggle-label svelte-gkcqor\"> </span></button>"), Ro = /* @__PURE__ */ Y("<div class=\"venn-error svelte-gkcqor\" role=\"alert\"> </div>"), zo = /* @__PURE__ */ jr("<circle fill=\"rgba(14, 165, 233, 0.12)\"></circle>"), Bo = /* @__PURE__ */ jr("<rect x=\"0\" y=\"0\"></rect>"), Vo = /* @__PURE__ */ jr("<circle></circle>"), Ho = /* @__PURE__ */ jr("<circle fill=\"none\" stroke=\"#1e293b\"></circle>"), Uo = /* @__PURE__ */ jr("<text font-weight=\"600\" fill=\"#0f172a\"> </text>"), Wo = /* @__PURE__ */ Y("<div class=\"region-aria svelte-gkcqor\" role=\"region\"></div>"), Go = /* @__PURE__ */ Y("<div class=\"tile-wrapper svelte-gkcqor\"><!></div>"), Ko = /* @__PURE__ */ Y("<div class=\"venn-diagram svelte-gkcqor\"><svg preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\" class=\"svelte-gkcqor\"><defs><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><clipPath clipPathUnits=\"userSpaceOnUse\"><circle></circle></clipPath><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"white\"></rect><circle fill=\"black\"></circle><circle fill=\"black\"></circle></mask></defs><rect fill=\"#ffffff\" stroke=\"#cbd5e1\"></rect><!><!><!><!><!><!><!><line stroke=\"#cbd5e1\"></line></svg> <div class=\"region-labels svelte-gkcqor\" aria-hidden=\"false\"></div> <div class=\"placed-tiles svelte-gkcqor\"></div></div> <!>", 1), qo = /* @__PURE__ */ Y("<div class=\"drag-ghost svelte-gkcqor\"><!></div>"), Jo = /* @__PURE__ */ Y("<div class=\"venn-root svelte-gkcqor\"><!> <!> <!> <!> <!> <div class=\"sr-only svelte-gkcqor\" aria-live=\"polite\" aria-atomic=\"true\"></div></div>"), Yo = {
3300
3317
  hash: "svelte-gkcqor",
3301
3318
  code: ".venn-root.svelte-gkcqor {display:flex;flex-direction:column;gap:16px;padding:16px;color:#0f172a;font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;--vc-focus-ring: var(\n --pie-focus-outline,\n var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))\n );}.venn-prompt.svelte-gkcqor {font-size:16px;line-height:1.5;}.venn-prompt.svelte-gkcqor p {margin:0 0 8px 0;}.toggle-correct.svelte-gkcqor {align-self:center;display:inline-flex;align-items:center;gap:8px;margin:0 0 4px 0;padding:0;background:transparent;border:0;color:inherit;font:inherit;font-size:14px;cursor:pointer;user-select:none;}.toggle-correct.svelte-gkcqor:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;border-radius:2px;}.toggle-icon.svelte-gkcqor {width:25px;height:25px;flex-shrink:0;}.toggle-label.svelte-gkcqor {line-height:1.2;}.toggle-correct.svelte-gkcqor:hover .toggle-label:where(.svelte-gkcqor),\n .toggle-correct.svelte-gkcqor:focus-visible .toggle-label:where(.svelte-gkcqor) {text-decoration:underline;}.venn-diagram.svelte-gkcqor {\n /*\n * Width and aspect ratio come from the geometry, inline. The width cap\n * keeps the diagram from dominating wide layouts, and the viewport-height\n * share keeps the prompt, toggle and tray in view in short windows, down\n * to the width that keeps tiles at 44 px (`diagramCssWidth`).\n */position:relative;margin:0 auto;}.venn-diagram.svelte-gkcqor svg:where(.svelte-gkcqor) {width:100%;height:100%;display:block;}.placed-tiles.svelte-gkcqor,\n .region-labels.svelte-gkcqor {position:absolute;inset:0;pointer-events:none;}.tile-wrapper.svelte-gkcqor {position:absolute;display:flex;pointer-events:auto;}.region-aria.svelte-gkcqor {position:absolute;width:1px;height:1px;transform:translate(-50%, -50%);opacity:0;pointer-events:none;}.venn-error.svelte-gkcqor {padding:12px 16px;border:1.5px solid #bf0d00;border-radius:8px;background:#fef2f2;color:#7f1d1d;font-size:14px;}\n /* Tailwind's `sr-only`, scoped: PIE players ship no Tailwind. */.sr-only.svelte-gkcqor {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.drag-ghost.svelte-gkcqor {position:fixed;top:0;left:0;transform:translate(-50%, -50%);pointer-events:none;z-index:1000;}"
3302
3319
  };
3303
- function Jo(e, n) {
3304
- Xe(n, !0), si(e, qo);
3320
+ function Xo(e, n) {
3321
+ Xe(n, !0), si(e, Yo);
3305
3322
  let r = [{ label: "Set A" }, { label: "Set B" }], i = `venn-${Math.random().toString(36).slice(2, 10)}`, a = `${i}-mask-left-only`, c = `${i}-mask-right-only`, l = `${i}-mask-outside`, u = `${i}-clip-left`, d = null, f = /* @__PURE__ */ z(null), p = null, m = /* @__PURE__ */ z(!1), h = /* @__PURE__ */ z(null), g = /* @__PURE__ */ z(null), _ = /* @__PURE__ */ z(null), v = /* @__PURE__ */ z(null), y = /* @__PURE__ */ z(0), b = null, x = null, S = /* @__PURE__ */ I(() => n?.model?.circles ?? r), ee = /* @__PURE__ */ I(() => J(S).length === 2), C = /* @__PURE__ */ I(() => n?.model?.language), w = /* @__PURE__ */ I(() => ({
3306
3323
  circles: J(S),
3307
3324
  tiles: n?.model?.tiles ?? [],
@@ -3309,7 +3326,7 @@ function Jo(e, n) {
3309
3326
  language: J(C),
3310
3327
  scoringPolicy: "partialPerTile",
3311
3328
  promptEnabled: !0
3312
- })), te = /* @__PURE__ */ I(() => n?.model?.env?.mode === "evaluate"), ne = /* @__PURE__ */ I(() => n?.model?.disabled === !0), re = /* @__PURE__ */ I(() => n?.model?.prompt ?? null), T = /* @__PURE__ */ I(() => de(n?.session, n?.model, J(m))), E = /* @__PURE__ */ I(() => ({ placements: J(T) })), ae = /* @__PURE__ */ I(() => jo(J(w), J(E))), oe = /* @__PURE__ */ I(() => Ao(J(w), J(E))), se = /* @__PURE__ */ I(() => (J(w).tiles ?? []).some((e) => (e.imageUrl ?? "").trim()) ? Za : Xa), D = /* @__PURE__ */ I(() => wo(Object.fromEntries(Object.entries(J(ae)).map(([e, t]) => [e, t.length])), J(se))), ce = /* @__PURE__ */ I(() => J(ee) ? To(J(w), J(D), J(se)) : null), le = /* @__PURE__ */ I(() => ao(J(y), J(D), J(se))), O = /* @__PURE__ */ I(() => [
3329
+ })), te = /* @__PURE__ */ I(() => n?.model?.env?.mode === "evaluate"), ne = /* @__PURE__ */ I(() => n?.model?.disabled === !0), re = /* @__PURE__ */ I(() => n?.model?.prompt ?? null), T = /* @__PURE__ */ I(() => de(n?.session, n?.model, J(m))), E = /* @__PURE__ */ I(() => ({ placements: J(T) })), ae = /* @__PURE__ */ I(() => No(J(w), J(E))), oe = /* @__PURE__ */ I(() => Mo(J(w), J(E))), se = /* @__PURE__ */ I(() => (J(w).tiles ?? []).some((e) => (e.imageUrl ?? "").trim()) ? $a : Qa), D = /* @__PURE__ */ I(() => Eo(Object.fromEntries(Object.entries(J(ae)).map(([e, t]) => [e, t.length])), J(se))), ce = /* @__PURE__ */ I(() => J(ee) ? Do(J(w), J(D), J(se)) : null), le = /* @__PURE__ */ I(() => so(J(y), J(D), J(se))), O = /* @__PURE__ */ I(() => [
3313
3330
  "0",
3314
3331
  "0,1",
3315
3332
  "1",
@@ -3353,7 +3370,7 @@ function Jo(e, n) {
3353
3370
  };
3354
3371
  }
3355
3372
  function me(e, t) {
3356
- let r = Do({
3373
+ let r = ko({
3357
3374
  model: J(w),
3358
3375
  session: n?.session,
3359
3376
  tileId: e,
@@ -3377,8 +3394,8 @@ function Jo(e, n) {
3377
3394
  b?.(), J(h) !== null && ve();
3378
3395
  }
3379
3396
  function be(e, r) {
3380
- let i = Fa(e, J(C)), a = r === "tray" ? null : r === null ? void 0 : ge(r)?.region;
3381
- if (a === void 0 || ko(n?.session, e.id, a)) {
3397
+ let i = La(e, J(C)), a = r === "tray" ? null : r === null ? void 0 : ge(r)?.region;
3398
+ if (a === void 0 || jo(n?.session, e.id, a)) {
3382
3399
  k(t("cancelled", J(C)));
3383
3400
  return;
3384
3401
  }
@@ -3392,7 +3409,7 @@ function Jo(e, n) {
3392
3409
  n.preventDefault(), b?.(), n.currentTarget.setPointerCapture?.(n.pointerId), B(h, e.id, !0), B(_, null), B(v, {
3393
3410
  x: n.clientX,
3394
3411
  y: n.clientY
3395
- }, !0), B(g, Se(n.clientX, n.clientY), !0), k(t("pickedUp", J(C), { name: Fa(e, J(C)) }));
3412
+ }, !0), B(g, Se(n.clientX, n.clientY), !0), k(t("pickedUp", J(C), { name: La(e, J(C)) }));
3396
3413
  let r = (e) => {
3397
3414
  B(v, {
3398
3415
  x: e.clientX,
@@ -3413,7 +3430,7 @@ function Jo(e, n) {
3413
3430
  if (Ce(e, t)) return "tray";
3414
3431
  let n = pe(e, t);
3415
3432
  if (!n || !J(ce)) return null;
3416
- let r = Eo(J(ce), n.x, n.y);
3433
+ let r = Oo(J(ce), n.x, n.y);
3417
3434
  return r ? r.key : null;
3418
3435
  }
3419
3436
  function Ce(e, t) {
@@ -3435,9 +3452,9 @@ function Jo(e, n) {
3435
3452
  let t = J(_);
3436
3453
  ve(), be(e, t), we(e.id);
3437
3454
  } else {
3438
- let n = Oo(J(E), e.id), r = n === null ? J(O)[0] ?? null : o(n);
3455
+ let n = Ao(J(E), e.id), r = n === null ? J(O)[0] ?? null : o(n);
3439
3456
  B(h, e.id, !0), B(_, r, !0), k(t("pickedUpWithKeyboard", J(C), {
3440
- name: Fa(e, J(C)),
3457
+ name: La(e, J(C)),
3441
3458
  target: _e(r ?? "")
3442
3459
  }));
3443
3460
  }
@@ -3489,7 +3506,7 @@ function Jo(e, n) {
3489
3506
  if (!d) return;
3490
3507
  let e = (e) => console.warn("venn-classification: MathJax render failed", e);
3491
3508
  try {
3492
- Promise.resolve(Na(d)).catch(e);
3509
+ Promise.resolve(Fa(d)).catch(e);
3493
3510
  } catch (t) {
3494
3511
  e(t);
3495
3512
  }
@@ -3500,8 +3517,8 @@ function Jo(e, n) {
3500
3517
  J(T), J(w).tiles?.length, fr().then(M);
3501
3518
  });
3502
3519
  let ke = /* @__PURE__ */ I(() => J(te) ? Object.values(n?.model?.correctness ?? {}).filter((e) => e === "incorrect" || e === "unanswered").length : 0), Ae = /* @__PURE__ */ I(() => J(h) === null ? J(g) ?? null : J(g) ?? J(_) ?? null), je = /* @__PURE__ */ I(() => J(Ae) === "0"), Me = /* @__PURE__ */ I(() => J(Ae) === "1"), Ne = /* @__PURE__ */ I(() => J(Ae) === "0,1"), Pe = /* @__PURE__ */ I(() => J(Ae) === ""), Fe = "rgba(37, 99, 235, 0.18)", Ie = /* @__PURE__ */ I(() => J(h) !== null && J(v) !== null ? he(J(h)) : null);
3503
- var Le = Ko(), Re = H(Le), ze = (e) => {
3504
- Ya(e, {
3520
+ var Le = Jo(), Re = H(Le), ze = (e) => {
3521
+ Za(e, {
3505
3522
  get html() {
3506
3523
  return n.model.teacherInstructions;
3507
3524
  },
@@ -3514,17 +3531,17 @@ function Jo(e, n) {
3514
3531
  n?.model?.teacherInstructions && e(ze);
3515
3532
  });
3516
3533
  var Be = U(Re, 2), Ve = (e) => {
3517
- var t = Mo();
3534
+ var t = Po();
3518
3535
  oi(t, () => J(re), !0), N(t), X(e, t);
3519
3536
  };
3520
3537
  Z(Be, (e) => {
3521
3538
  J(re) && e(Ve);
3522
3539
  });
3523
3540
  var He = U(Be, 2), Ue = (e) => {
3524
- var t = Fo(), n = H(t), r = (e) => {
3525
- X(e, No());
3541
+ var t = Lo(), n = H(t), r = (e) => {
3542
+ X(e, Fo());
3526
3543
  }, i = (e) => {
3527
- X(e, Po());
3544
+ X(e, Io());
3528
3545
  };
3529
3546
  Z(n, (e) => {
3530
3547
  J(m) ? e(r) : e(i, -1);
@@ -3538,13 +3555,13 @@ function Jo(e, n) {
3538
3555
  J(te) && J(ke) > 0 && e(Ue);
3539
3556
  });
3540
3557
  var We = U(He, 2), Ge = (e) => {
3541
- var n = Io(), r = ln(n, !0);
3558
+ var n = Ro(), r = ln(n, !0);
3542
3559
  W((e) => zr(r, e), [() => t("unsupportedCircles", J(C), {
3543
3560
  count: J(S).length,
3544
3561
  supported: 2
3545
3562
  })]), X(e, n);
3546
3563
  }, Ke = (e) => {
3547
- var n = Wo(), r = cn(n);
3564
+ var n = Ko(), r = cn(n);
3548
3565
  let i;
3549
3566
  var o = H(r), s = H(o), d = H(s), p = H(d), m = U(p), b = U(m);
3550
3567
  N(d);
@@ -3554,13 +3571,13 @@ function Jo(e, n) {
3554
3571
  N(E), N(s);
3555
3572
  var k = U(s), pe = U(k);
3556
3573
  ei(pe, 17, () => J(D).circles, Xr, (e, t) => {
3557
- var n = Lo();
3574
+ var n = zo();
3558
3575
  W(() => {
3559
3576
  Q(n, "cx", J(t).cx), Q(n, "cy", J(t).cy), Q(n, "r", J(t).r);
3560
3577
  }), X(e, n);
3561
3578
  });
3562
3579
  var me = U(pe), he = (e) => {
3563
- var t = Ro();
3580
+ var t = Bo();
3564
3581
  Q(t, "fill", Fe), W(() => {
3565
3582
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${a})`);
3566
3583
  }), X(e, t);
@@ -3569,7 +3586,7 @@ function Jo(e, n) {
3569
3586
  J(je) && e(he);
3570
3587
  });
3571
3588
  var ge = U(me), _e = (e) => {
3572
- var t = Ro();
3589
+ var t = Bo();
3573
3590
  Q(t, "fill", Fe), W(() => {
3574
3591
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${c})`);
3575
3592
  }), X(e, t);
@@ -3578,7 +3595,7 @@ function Jo(e, n) {
3578
3595
  J(Me) && e(_e);
3579
3596
  });
3580
3597
  var ve = U(ge), ye = (e) => {
3581
- var t = zo();
3598
+ var t = Vo();
3582
3599
  Q(t, "fill", Fe), W(() => {
3583
3600
  Q(t, "cx", J(D).circles[1].cx), Q(t, "cy", J(D).circles[1].cy), Q(t, "r", J(D).circles[1].r), Q(t, "clip-path", `url(#${u})`);
3584
3601
  }), X(e, t);
@@ -3587,7 +3604,7 @@ function Jo(e, n) {
3587
3604
  J(Ne) && e(ye);
3588
3605
  });
3589
3606
  var be = U(ve), Se = (e) => {
3590
- var t = Ro();
3607
+ var t = Bo();
3591
3608
  Q(t, "fill", Fe), W(() => {
3592
3609
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${l})`);
3593
3610
  }), X(e, t);
@@ -3597,14 +3614,14 @@ function Jo(e, n) {
3597
3614
  });
3598
3615
  var Ce = U(be);
3599
3616
  ei(Ce, 17, () => J(D).circles, Xr, (e, t) => {
3600
- var n = Bo();
3617
+ var n = Ho();
3601
3618
  W(() => {
3602
3619
  Q(n, "cx", J(t).cx), Q(n, "cy", J(t).cy), Q(n, "r", J(t).r), Q(n, "stroke-width", 2 * J(D).scale);
3603
3620
  }), X(e, n);
3604
3621
  });
3605
3622
  var we = U(Ce);
3606
3623
  ei(we, 17, () => J(D).circles, Xr, (e, t, n) => {
3607
- var r = Vo();
3624
+ var r = Uo();
3608
3625
  Q(r, "text-anchor", n === 0 ? "start" : "end");
3609
3626
  var i = ln(r, !0);
3610
3627
  W((e, t) => {
@@ -3616,7 +3633,7 @@ function Jo(e, n) {
3616
3633
  var Oe = U(o, 2);
3617
3634
  ei(Oe, 21, () => J(ce).regions, Xr, (e, t) => {
3618
3635
  let n = /* @__PURE__ */ I(() => fe(J(t).hitRect.x + J(t).hitRect.w / 2, J(t).hitRect.y + J(t).hitRect.h / 2));
3619
- var r = Ho();
3636
+ var r = Wo();
3620
3637
  W(() => {
3621
3638
  Q(r, "aria-label", J(t).label), Q(r, "data-region-key", J(t).key), hi(r, `left: ${J(n).left ?? ""}%; top: ${J(n).top ?? ""}%;`);
3622
3639
  }), X(e, r);
@@ -3630,10 +3647,10 @@ function Jo(e, n) {
3630
3647
  var n = Mr();
3631
3648
  ei(cn(n), 19, i, (e) => e.id, (e, n, r) => {
3632
3649
  let i = /* @__PURE__ */ I(() => fe(J(t)[J(r)].x, J(t)[J(r)].y));
3633
- var o = Uo(), s = H(o);
3650
+ var o = Go(), s = H(o);
3634
3651
  {
3635
- let e = /* @__PURE__ */ I(() => Ia(J(n), J(a).label, j(J(n).id), J(C))), t = /* @__PURE__ */ I(() => j(J(n).id) ?? "neutral"), r = /* @__PURE__ */ I(() => J(h) === J(n).id), i = /* @__PURE__ */ I(() => J(h) === J(n).id && J(v) !== null);
3636
- Ua(s, {
3652
+ let e = /* @__PURE__ */ I(() => Ra(J(n), J(a).label, j(J(n).id), J(C))), t = /* @__PURE__ */ I(() => j(J(n).id) ?? "neutral"), r = /* @__PURE__ */ I(() => J(h) === J(n).id), i = /* @__PURE__ */ I(() => J(h) === J(n).id && J(v) !== null);
3653
+ Ga(s, {
3637
3654
  fit: !0,
3638
3655
  get id() {
3639
3656
  return J(n).id;
@@ -3678,7 +3695,7 @@ function Jo(e, n) {
3678
3695
  var ke = U(r, 2);
3679
3696
  {
3680
3697
  let e = /* @__PURE__ */ I(() => J(g) === "tray" || J(h) !== null && J(_) === "tray"), n = /* @__PURE__ */ I(() => t("tray", J(C)));
3681
- Ka(ke, {
3698
+ Ja(ke, {
3682
3699
  get isDropTarget() {
3683
3700
  return J(e);
3684
3701
  },
@@ -3689,8 +3706,8 @@ function Jo(e, n) {
3689
3706
  var n = Mr();
3690
3707
  ei(cn(n), 17, () => J(oe), (e) => e.id, (e, t) => {
3691
3708
  {
3692
- let n = /* @__PURE__ */ I(() => Ia(J(t), null, j(J(t).id), J(C))), r = /* @__PURE__ */ I(() => j(J(t).id) ?? "neutral"), i = /* @__PURE__ */ I(() => J(h) === J(t).id), a = /* @__PURE__ */ I(() => J(h) === J(t).id && J(v) !== null);
3693
- Ua(e, {
3709
+ let n = /* @__PURE__ */ I(() => Ra(J(t), null, j(J(t).id), J(C))), r = /* @__PURE__ */ I(() => j(J(t).id) ?? "neutral"), i = /* @__PURE__ */ I(() => J(h) === J(t).id), a = /* @__PURE__ */ I(() => J(h) === J(t).id && J(v) !== null);
3710
+ Ga(e, {
3694
3711
  get id() {
3695
3712
  return J(t).id;
3696
3713
  },
@@ -3734,14 +3751,14 @@ function Jo(e, n) {
3734
3751
  width: e,
3735
3752
  "aspect-ratio": `${J(D).width ?? ""} / ${J(D).height ?? ""}`
3736
3753
  }), Q(o, "viewBox", `0 0 ${J(D).width ?? ""} ${J(D).height ?? ""}`), Q(d, "id", a), Q(d, "width", J(D).width), Q(d, "height", J(D).height), Q(p, "width", J(D).width), Q(p, "height", J(D).height), Q(m, "cx", J(D).circles[0].cx), Q(m, "cy", J(D).circles[0].cy), Q(m, "r", J(D).circles[0].r), Q(b, "cx", J(D).circles[1].cx), Q(b, "cy", J(D).circles[1].cy), Q(b, "r", J(D).circles[1].r), Q(x, "id", c), Q(x, "width", J(D).width), Q(x, "height", J(D).height), Q(S, "width", J(D).width), Q(S, "height", J(D).height), Q(ee, "cx", J(D).circles[1].cx), Q(ee, "cy", J(D).circles[1].cy), Q(ee, "r", J(D).circles[1].r), Q(te, "cx", J(D).circles[0].cx), Q(te, "cy", J(D).circles[0].cy), Q(te, "r", J(D).circles[0].r), Q(re, "id", u), Q(T, "cx", J(D).circles[0].cx), Q(T, "cy", J(D).circles[0].cy), Q(T, "r", J(D).circles[0].r), Q(E, "id", l), Q(E, "width", J(D).width), Q(E, "height", J(D).height), Q(O, "width", J(D).width), Q(O, "height", J(D).height), Q(ue, "cx", J(D).circles[0].cx), Q(ue, "cy", J(D).circles[0].cy), Q(ue, "r", J(D).circles[0].r), Q(de, "cx", J(D).circles[1].cx), Q(de, "cy", J(D).circles[1].cy), Q(de, "r", J(D).circles[1].r), Q(k, "x", J(D).scale), Q(k, "y", J(D).scale), Q(k, "width", J(D).width - 2 * J(D).scale), Q(k, "height", J(D).height - 2 * J(D).scale), Q(k, "stroke-width", 1.5 * J(D).scale), Q(k, "rx", 12 * J(D).scale), Q(Te, "x1", 16 * J(D).scale), Q(Te, "x2", J(D).width - 16 * J(D).scale), Q(Te, "y1", J(ce).outsideStripTop), Q(Te, "y2", J(ce).outsideStripTop), Q(Te, "stroke-width", J(D).scale), Q(Te, "stroke-dasharray", `${4 * J(D).scale} ${6 * J(D).scale}`);
3737
- }, [() => io(J(D), J(se))]), Di(r, "clientWidth", (e) => B(y, e)), X(e, n);
3754
+ }, [() => oo(J(D), J(se))]), Di(r, "clientWidth", (e) => B(y, e)), X(e, n);
3738
3755
  };
3739
3756
  Z(We, (e) => {
3740
3757
  J(ce) ? e(Ke, -1) : e(Ge);
3741
3758
  });
3742
3759
  var qe = U(We, 2), Je = (e) => {
3743
- var t = Go();
3744
- Ua(H(t), {
3760
+ var t = qo();
3761
+ Ga(H(t), {
3745
3762
  get id() {
3746
3763
  return J(Ie).id;
3747
3764
  },
@@ -3765,12 +3782,12 @@ function Jo(e, n) {
3765
3782
  J(Ie) && J(v) && e(Je);
3766
3783
  }), ki(U(qe, 2), (e) => p = e, () => p), N(Le), ki(Le, (e) => d = e, () => d), xr("focusout", Le, Oe), X(e, Le), Ze();
3767
3784
  }
3768
- Sr(["focusout", "click"]), Li(Jo, {
3785
+ Sr(["focusout", "click"]), Li(Xo, {
3769
3786
  model: { type: "Object" },
3770
3787
  session: { type: "Object" },
3771
3788
  onSessionChange: {}
3772
3789
  }, [], []);
3773
3790
  //#endregion
3774
- export { H as A, Xe as B, Mr as C, J as D, xr as E, B as F, N as H, z as I, R as L, ln as M, U as N, W as O, $t as P, I as R, X as S, Sr as T, ie as U, Ae as V, Z as _, ki as a, qr as b, Q as c, hi as d, pi as f, Xr as g, ei as h, $ as i, cn as j, xn as k, Si as l, oi as m, Pa as n, Di as o, si as p, Li as r, bi as s, Jo as t, xi as u, Yr as v, Y as w, zr as x, Jr as y, Ze as z };
3791
+ export { H as A, Xe as B, Mr as C, J as D, xr as E, B as F, N as H, z as I, R as L, ln as M, U as N, W as O, $t as P, I as R, X as S, Sr as T, ie as U, Ae as V, Z as _, ki as a, qr as b, Q as c, hi as d, pi as f, Xr as g, ei as h, $ as i, cn as j, xn as k, Si as l, oi as m, Ia as n, Di as o, si as p, Li as r, bi as s, Xo as t, xi as u, Yr as v, Y as w, zr as x, Jr as y, Ze as z };
3775
3792
 
3776
- //# sourceMappingURL=VennClassification-Dh-jgyW3.js.map
3793
+ //# sourceMappingURL=VennClassification-Vd5Uzu-u.js.map