@pie-element/venn-classification 0.1.1-next.10 → 0.1.1-next.11

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["t","n","r","i","e.from_html","e.prop","e.child","e.reset","e.sibling","e.append","e.append_styles","e.derived","e.get","e.to_array","e.only_child","e.comment","e.first_child","e.template_effect","e.set_checked","e.delegated","e.set_value","e.set_text","e.pop","e.delegate","root","$.from_html","root_1","root_2","root_3","root_4","root_5","$$css","EditableHtml","$.prop","$.state","$.proxy","$.get","$.child","$.sibling","$.first_child","$.set_class","$.comment","$.set","$.delegate"],"sources":["../../../../../../shared/configure-events/dist/index.js","../../../../../../lib-svelte/config-ui-svelte/dist/index.js","../../../../../../lib-svelte/editable-html-tiptap-svelte/dist/index2.js","../../../../../../lib-svelte/editable-html-tiptap-svelte/dist/index.js","../../../../src/author/RegionPicker.svelte","../../../../src/author/Author.svelte","../../../../src/author/index.ts"],"sourcesContent":["//#region src/index.ts\nvar e = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model.updated\";\n\t}\n\tconstructor(t, n = !1) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tupdate: t,\n\t\t\t\treset: n\n\t\t\t}\n\t\t}), this.update = t, this.reset = n;\n\t}\n}, t = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.image\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, n = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.image\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n}, r = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"delete.sound\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: {\n\t\t\t\tsrc: t,\n\t\t\t\tdone: n\n\t\t\t}\n\t\t}), this.src = t, this.done = n;\n\t}\n}, i = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"insert.sound\";\n\t}\n\tconstructor(t) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tdetail: t\n\t\t}), this.handler = t;\n\t}\n};\n//#endregion\nexport { t as DeleteImageEvent, r as DeleteSoundEvent, n as InsertImageEvent, i as InsertSoundEvent, e as ModelUpdatedEvent };\n","import \"svelte/internal/disclose-version\";\nimport * as e from \"svelte/internal/client\";\n//#region src/ConfigLayout.svelte\nvar t = e.from_html(\"<aside class=\\\"pie-config-layout-settings svelte-9dr0jr\\\" aria-label=\\\"Settings\\\"><!></aside>\"), n = e.from_html(\"<div class=\\\"pie-config-layout svelte-9dr0jr\\\"><div class=\\\"pie-config-layout-contents svelte-9dr0jr\\\"><div class=\\\"pie-config-layout-design svelte-9dr0jr\\\"><!></div> <!></div></div>\"), r = {\n\thash: \"svelte-9dr0jr\",\n\tcode: \".pie-config-layout.svelte-9dr0jr {container-type:inline-size;}.pie-config-layout-contents.svelte-9dr0jr {display:flex;flex-direction:column;gap:16px;}.pie-config-layout-design.svelte-9dr0jr {flex:1 1 auto;min-width:0;}\\n\\n @container (min-width: 1135px) {.pie-config-layout-contents.svelte-9dr0jr {flex-direction:row;align-items:flex-start;}.pie-config-layout-settings.svelte-9dr0jr {flex:0 0 300px;position:sticky;top:0;}\\n }\"\n};\nfunction i(i, a) {\n\te.append_styles(i, r);\n\tlet o = e.prop(a, \"hideSettings\", 3, !1);\n\tvar s = n(), c = e.child(s), l = e.child(c), u = e.child(l);\n\te.snippet(u, () => a.children), e.reset(l);\n\tvar d = e.sibling(l, 2), f = (n) => {\n\t\tvar r = t(), i = e.child(r);\n\t\te.snippet(i, () => a.settings), e.reset(r), e.append(n, r);\n\t};\n\te.if(d, (e) => {\n\t\ta.settings && !o() && e(f);\n\t}), e.reset(c), e.reset(s), e.append(i, s);\n}\n//#endregion\n//#region src/configuration.ts\nvar a = (e) => typeof e == \"object\" && !!e && !Array.isArray(e);\nfunction o(e, t) {\n\tif (!a(t)) return e;\n\tlet n = { ...e };\n\tfor (let [r, i] of Object.entries(t)) {\n\t\tlet t = e[r];\n\t\tn[r] = a(t) && a(i) ? {\n\t\t\t...t,\n\t\t\t...i\n\t\t} : i;\n\t}\n\treturn n;\n}\nfunction s(e) {\n\treturn a(e) ? Object.values(e).some((e) => a(e) && (e.settings === !0 || s(e))) : !1;\n}\nvar c = (e, t = !1, n = !1) => ({\n\ttype: \"toggle\",\n\tlabel: e,\n\tisConfigProperty: t,\n\tdisabled: n\n}), l = (e, t, n = !1) => ({\n\ttype: \"radio\",\n\tlabel: e,\n\tchoices: t.map((e) => typeof e == \"string\" ? {\n\t\tlabel: e,\n\t\tvalue: e\n\t} : e),\n\tisConfigProperty: n\n});\nfunction u(e, t) {\n\tlet n = e;\n\tfor (let e of t.split(\".\")) {\n\t\tif (!a(n)) return;\n\t\tn = n[e];\n\t}\n\treturn n;\n}\nfunction d(e, t, n) {\n\tlet [r, ...i] = t.split(\".\"), o = e[r], s = i.length === 0 ? n : d(a(o) ? o : {}, i.join(\".\"), n);\n\treturn {\n\t\t...e,\n\t\t[r]: s\n\t};\n}\n//#endregion\n//#region src/SettingsPanel.svelte\nvar f = e.from_html(\"<label class=\\\"pie-settings-toggle svelte-1ang3sw\\\"><span> </span> <input type=\\\"checkbox\\\" role=\\\"switch\\\" class=\\\"svelte-1ang3sw\\\"/></label>\"), p = e.from_html(\"<label class=\\\"pie-settings-choice-row svelte-1ang3sw\\\"><input type=\\\"radio\\\" class=\\\"svelte-1ang3sw\\\"/> <span> </span></label>\"), m = e.from_html(\"<fieldset class=\\\"pie-settings-choice svelte-1ang3sw\\\"><legend class=\\\"svelte-1ang3sw\\\"> </legend> <!></fieldset>\"), h = e.from_html(\"<fieldset class=\\\"pie-settings-group svelte-1ang3sw\\\"><legend class=\\\"pie-settings-group-name svelte-1ang3sw\\\"> </legend> <!></fieldset>\"), g = e.from_html(\"<div class=\\\"pie-settings-panel svelte-1ang3sw\\\"></div>\"), _ = {\n\thash: \"svelte-1ang3sw\",\n\tcode: \".pie-settings-panel.svelte-1ang3sw {display:flex;flex-direction:column;gap:16px;padding:16px;border:1px solid var(--pie-border-light, #ccc);border-radius:4px;color:var(--pie-text, #212121);}fieldset.svelte-1ang3sw {margin:0;padding:0;border:0;min-width:0;}.pie-settings-group.svelte-1ang3sw {display:flex;flex-direction:column;gap:8px;}.pie-settings-group-name.svelte-1ang3sw {margin-bottom:8px;font-weight:600;}.pie-settings-toggle.svelte-1ang3sw {display:flex;align-items:center;justify-content:space-between;gap:12px;}.pie-settings-choice.svelte-1ang3sw legend:where(.svelte-1ang3sw) {margin-bottom:4px;}.pie-settings-choice-row.svelte-1ang3sw {display:flex;align-items:center;gap:8px;}input.svelte-1ang3sw {accent-color:var(--pie-primary, #3f51b5);}input.svelte-1ang3sw:focus-visible {outline:2px solid var(--pie-focus-outline, #1a73e8);outline-offset:2px;}\"\n};\nfunction v(t, n) {\n\te.push(n, !0), e.append_styles(t, _);\n\tlet r = e.prop(n, \"configuration\", 19, () => ({})), i = Math.random().toString(36).slice(2, 10), a = e.derived(() => Object.entries(n.groups).map(([e, t]) => [e, Object.entries(t).filter((e) => !!e[1])]).filter(([, e]) => e.length > 0)), o = (e, t) => u(t.isConfigProperty ? r() : n.model, e);\n\tfunction s(e, t, i) {\n\t\tt.isConfigProperty ? n.onChangeConfiguration?.(d(r(), e, i), e) : n.onChangeModel(d(n.model, e, i), e);\n\t}\n\tvar c = g();\n\te.each(c, 21, () => e.get(a), ([e, t]) => e, (t, n) => {\n\t\tvar r = e.derived(() => e.to_array(e.get(n), 2));\n\t\tlet a = () => e.get(r)[0], c = () => e.get(r)[1];\n\t\tvar l = h(), u = e.child(l), d = e.only_child(u, !0), g = e.sibling(u, 2);\n\t\te.each(g, 17, c, ([e, t]) => e, (t, n) => {\n\t\t\tvar r = e.derived(() => e.to_array(e.get(n), 2));\n\t\t\tlet a = () => e.get(r)[0], c = () => e.get(r)[1];\n\t\t\tvar l = e.comment(), u = e.first_child(l), d = (t) => {\n\t\t\t\tvar n = f(), r = e.child(n), i = e.only_child(r, !0), l = e.sibling(r, 2);\n\t\t\t\te.remove_input_defaults(l), e.reset(n), e.template_effect((t) => {\n\t\t\t\t\te.set_text(i, c().label), e.set_checked(l, t), l.disabled = c().disabled;\n\t\t\t\t}, [() => !!o(a(), c())]), e.delegated(\"change\", l, (e) => s(a(), c(), e.currentTarget.checked)), e.append(t, n);\n\t\t\t}, h = (t) => {\n\t\t\t\tvar n = m(), r = e.child(n), l = e.only_child(r, !0), u = e.sibling(r, 2);\n\t\t\t\te.each(u, 17, () => c().choices, (e) => e.value, (t, n) => {\n\t\t\t\t\tvar r = p(), l = e.child(r);\n\t\t\t\t\te.remove_input_defaults(l);\n\t\t\t\t\tvar u = e.sibling(l, 2), d = e.only_child(u, !0);\n\t\t\t\t\te.reset(r), e.template_effect((t) => {\n\t\t\t\t\t\te.set_attribute(l, \"name\", `${i}-${a()}`), e.set_value(l, e.get(n).value), e.set_checked(l, t), e.set_text(d, e.get(n).label);\n\t\t\t\t\t}, [() => o(a(), c()) === e.get(n).value]), e.delegated(\"change\", l, () => s(a(), c(), e.get(n).value)), e.append(t, r);\n\t\t\t\t}), e.reset(n), e.template_effect(() => e.set_text(l, c().label)), e.append(t, n);\n\t\t\t};\n\t\t\te.if(u, (e) => {\n\t\t\t\tc().type === \"toggle\" ? e(d) : c().type === \"radio\" && e(h, 1);\n\t\t\t}), e.append(t, l);\n\t\t}), e.reset(l), e.template_effect(() => e.set_text(d, a())), e.append(t, l);\n\t}), e.reset(c), e.append(t, c), e.pop();\n}\ne.delegate([\"change\"]);\n//#endregion\n//#region src/index.ts\nvar y = i, b = v;\n//#endregion\nexport { y as ConfigLayout, b as SettingsPanel, u as getPath, s as hasSettings, o as mergeConfiguration, l as radio, d as setPath, c as toggle };\n","import \"svelte/internal/disclose-version\";\nimport * as $ from \"svelte/internal/client\";\nimport { onDestroy, onMount } from \"svelte\";\nimport { Editor } from \"@tiptap/core\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport { TextStyle } from \"@tiptap/extension-text-style\";\nimport { CharacterCount } from \"@tiptap/extension-character-count\";\nimport SuperScript from \"@tiptap/extension-superscript\";\nimport SubScript from \"@tiptap/extension-subscript\";\nimport TextAlign from \"@tiptap/extension-text-align\";\nimport Image from \"@tiptap/extension-image\";\nimport { Table } from \"@tiptap/extension-table\";\nimport { TableRow } from \"@tiptap/extension-table-row\";\nimport { TableCell } from \"@tiptap/extension-table-cell\";\nimport { TableHeader } from \"@tiptap/extension-table-header\";\nimport { Placeholder } from \"@tiptap/extensions\";\n//#region src/EditableHtml.svelte\nvar root = $.from_html(`<button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Table\"></button>`);\nvar root_1 = $.from_html(`<button type=\"button\" title=\"Add Row\"></button> <button type=\"button\" title=\"Delete Row\"></button> <button type=\"button\" title=\"Add Column\"></button> <button type=\"button\" title=\"Delete Column\"></button> <button type=\"button\" title=\"Delete Table\"></button> <button type=\"button\" title=\"Toggle Table Border\"></button>`, 1);\nvar root_2 = $.from_html(`<div class=\"align-menu\"><button type=\"button\" class=\"align-menu-btn\" title=\"Align Left\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Center\"></button> <button type=\"button\" class=\"align-menu-btn\" title=\"Align Right\"></button></div>`);\nvar root_3 = $.from_html(`<button type=\"button\" title=\"Bold\"></button> <button type=\"button\" title=\"Italic\"></button> <button type=\"button\" title=\"Strikethrough\"></button> <button type=\"button\" title=\"Code\"></button> <button type=\"button\" title=\"Underline\"></button> <button type=\"button\" title=\"Subscript\"></button> <button type=\"button\" title=\"Superscript\"></button> <button type=\"button\" title=\"Heading\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Insert Image\"></button> <div class=\"align-dropdown\"><button type=\"button\" class=\"pie-toolbar-btn\" title=\"Text Alignment\"><!> <span class=\"dropdown-arrow\">▼</span></button> <!></div> <button type=\"button\" title=\"Bullet List\"></button> <button type=\"button\" title=\"Numbered List\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Undo\"></button> <button type=\"button\" class=\"pie-toolbar-btn\" title=\"Redo\"></button>`, 1);\nvar root_4 = $.from_html(`<div role=\"toolbar\" tabindex=\"-1\"><div class=\"toolbar-content\"><div class=\"toolbar-buttons\"><!> <!> <!></div> <button type=\"button\" class=\"done-btn\" title=\"Done\"></button></div></div>`);\nvar root_5 = $.from_html(`<div class=\"pie-editable-html editor-container editable-html svelte-rx7so6\"><div><div class=\"editor-children\"><div class=\"editor\"></div></div></div> <!></div>`);\nvar $$css = {\n\thash: \"svelte-rx7so6\",\n\tcode: \".pie-editable-html.svelte-rx7so6 {position:relative;padding:0px;border:1px solid #ccc;border-radius:4px;cursor:text;background-color:var(--pie-background, rgba(255, 255, 255, 0));width:100%;}.pie-editable-html.svelte-rx7so6 .editor-holder {position:relative;padding:0px;overflow-y:auto;color:var(--pie-text, black);background-color:var(--pie-background, rgba(255, 255, 255, 0));min-height:120px;}.pie-editable-html.svelte-rx7so6 .editor-holder.disabled {cursor:not-allowed;}.pie-editable-html.svelte-rx7so6 .editor-children {padding:10px 16px;}.pie-editable-html.svelte-rx7so6 .editor {padding:5px;min-height:100px;}\\n\\n /* Toolbar styles matching React version EXACTLY */.pie-editable-html.svelte-rx7so6 .toolbar {position:absolute;z-index:20;cursor:pointer;justify-content:space-between;background:var(--editable-html-toolbar-bg, #efefef);min-width:280px;margin:5px 0 0 0;padding:2px;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.2),\\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\\n 0px 3px 1px -2px rgba(0, 0, 0, 0.12);box-sizing:border-box;display:flex;opacity:0;pointer-events:none;top:100%;left:0;}.pie-editable-html.svelte-rx7so6 .toolbar.focused {opacity:1;pointer-events:auto;}.pie-editable-html.svelte-rx7so6 .toolbar-content {display:flex;width:100%;justify-content:space-between;}.pie-editable-html.svelte-rx7so6 .toolbar-buttons {align-items:center;display:flex;width:100%;}.pie-editable-html.svelte-rx7so6 .toolbar button.pie-toolbar-btn {\\n /* Reset all browser defaults */appearance:none;-webkit-appearance:none;-moz-appearance:none;\\n\\n /* Core button styling - matching React MenuBar exactly */color:grey !important;display:inline-flex !important;padding:2px !important;background:none !important;border:0 !important;border-width:0 !important;border-style:none !important;outline:none !important;box-shadow:none !important;cursor:pointer !important;align-items:center !important;justify-content:center !important;min-width:auto !important;width:auto !important;height:auto !important;margin:0 !important;font:inherit !important;text-align:inherit !important;text-transform:none !important;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:hover:not(:disabled) {color:black;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:focus {outline:2px solid #666;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:disabled {opacity:0.7;cursor:not-allowed;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn:disabled:hover {color:grey;}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn.active {background:var(--pie-primary, #3f51b5);color:var(--pie-white, #ffffff);}.pie-editable-html.svelte-rx7so6 .pie-toolbar-btn svg {width:24px;height:24px;}\\n\\n /* Done Button - matching React DoneButton component */.pie-editable-html.svelte-rx7so6 .done-btn {vertical-align:top;width:28px;height:28px;color:var(--editable-html-toolbar-check, #00bb00);padding:4px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;}.pie-editable-html.svelte-rx7so6 .done-btn:hover {background-color:rgba(0, 187, 0, 0.08);border-radius:4px;}.pie-editable-html.svelte-rx7so6 .done-btn svg {width:24px;height:24px;}\\n\\n /* Text alignment dropdown */.pie-editable-html.svelte-rx7so6 .align-dropdown {position:relative;}.pie-editable-html.svelte-rx7so6 .dropdown-arrow {margin-left:2px;font-size:8px;}.pie-editable-html.svelte-rx7so6 .align-menu {position:absolute;top:100%;left:0;background:var(--pie-white, #ffffff);display:flex;flex-direction:row;padding:2px;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.2),\\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\\n 0px 3px 1px -2px rgba(0, 0, 0, 0.12);z-index:30;}.pie-editable-html.svelte-rx7so6 .align-menu-btn {color:var(--pie-disabled, grey);display:inline-flex;padding:4px;background:none;border:none;cursor:pointer;align-items:center;justify-content:center;min-width:32px;min-height:32px;}.pie-editable-html.svelte-rx7so6 .align-menu-btn:hover {color:var(--pie-black, #000000);background-color:rgba(0, 0, 0, 0.04);}\\n\\n /* ProseMirror editor styles */.pie-editable-html.svelte-rx7so6 .ProseMirror {outline:none !important;min-height:100px;font-family:-apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Roboto, Helvetica, Arial, sans-serif;font-size:14px;line-height:1.6;color:var(--pie-text, black);}.pie-editable-html.svelte-rx7so6 .ProseMirror p {margin:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror ul,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror ol {padding:0 1rem;margin:1.25rem 1rem 1.25rem 0.4rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror ul li p,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror ol li p {margin-top:0.25em;margin-bottom:0.25em;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h2,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h3,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h4,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h5,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h6 {line-height:1.1;margin-top:2.5rem;text-wrap:pretty;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h2 {margin-top:3.5rem;margin-bottom:1.5rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h1 {font-size:1.4rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h2 {font-size:1.2rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h3 {font-size:1.1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror h4,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h5,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror h6 {font-size:1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror code {background-color:rgba(88, 5, 255, 0.05);border-radius:0.4rem;color:#2e2b29;font-size:0.85rem;padding:0.25em 0.3em;}.pie-editable-html.svelte-rx7so6 .ProseMirror pre {background:#2e2b29;border-radius:0.5rem;color:#fff;font-family:'JetBrainsMono', monospace;margin:1.5rem 0;padding:0.75rem 1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror pre code {background:none;color:inherit;font-size:0.8rem;padding:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror blockquote {border-left:3px solid rgba(61, 37, 20, 0.12);margin:1.5rem 0;padding-left:1rem;}.pie-editable-html.svelte-rx7so6 .ProseMirror hr {border:none;border-top:1px solid rgba(61, 37, 20, 0.08);margin:2rem 0;}.pie-editable-html.svelte-rx7so6 .ProseMirror img {max-width:100%;height:auto;}\\n\\n /* Table styles */.pie-editable-html.svelte-rx7so6 .ProseMirror table {table-layout:fixed;width:100%;border-collapse:collapse;color:var(--pie-text, black);background-color:var(--pie-background, rgba(255, 255, 255, 0));margin:1rem 0;}.pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\\\"1\\\"]) tr {border-top:1px solid #dfe2e5;}.pie-editable-html.svelte-rx7so6 .ProseMirror td,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror th {padding:0.6em 1em;text-align:center;vertical-align:top;position:relative;}.pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\\\"1\\\"]) td,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror table:not([border=\\\"1\\\"]) th {border:1px solid #dfe2e5;}.pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\\\"1\\\"] {border:2px solid var(--pie-black, #000000);}.pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\\\"1\\\"] td,\\n .pie-editable-html.svelte-rx7so6 .ProseMirror table[border=\\\"1\\\"] th {border:1px solid var(--pie-black, #000000);}.pie-editable-html.svelte-rx7so6 .ProseMirror .selectedCell {background-color:rgba(200, 200, 255, 0.4);}\\n\\n /* Placeholder */.pie-editable-html.svelte-rx7so6 .ProseMirror p.is-editor-empty:first-child::before {content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;height:0;}.pie-editable-html.svelte-rx7so6 .ProseMirror:focus {outline:none;}\"\n};\nfunction EditableHtml($$anchor, $$props) {\n\t$.push($$props, true);\n\t$.append_styles($$anchor, $$css);\n\tlet markup = $.prop($$props, \"markup\", 3, \"\"), placeholder = $.prop($$props, \"placeholder\", 3, \"Enter text here...\"), showToolbar = $.prop($$props, \"showToolbar\", 3, true), disabled = $.prop($$props, \"disabled\", 3, false);\n\tlet editorElement;\n\tlet editor = $.state(null);\n\tlet hasFocus = $.state(false);\n\tlet showAlignMenu = $.state(false);\n\tfunction editorAttributes() {\n\t\treturn {\n\t\t\trole: \"textbox\",\n\t\t\t\"aria-multiline\": \"true\",\n\t\t\t...$$props.ariaLabel ? { \"aria-label\": $$props.ariaLabel } : {}\n\t\t};\n\t}\n\tlet editorState = $.state($.proxy({\n\t\tisBold: false,\n\t\tcanBold: false,\n\t\tisItalic: false,\n\t\tcanItalic: false,\n\t\tisStrike: false,\n\t\tcanStrike: false,\n\t\tisCode: false,\n\t\tcanCode: false,\n\t\tisUnderline: false,\n\t\tisSubScript: false,\n\t\tisSuperScript: false,\n\t\tisHeading3: false,\n\t\tisBulletList: false,\n\t\tisOrderedList: false,\n\t\tcanUndo: false,\n\t\tcanRedo: false,\n\t\tisTable: false,\n\t\tcanTable: false,\n\t\ttableHasBorder: false,\n\t\ttextAlign: \"left\"\n\t}));\n\tfunction updateEditorState() {\n\t\tif (!$.get(editor)) return;\n\t\t$.set(editorState, {\n\t\t\tisBold: $.get(editor).isActive(\"bold\"),\n\t\t\tcanBold: $.get(editor).can().chain().focus().toggleBold().run(),\n\t\t\tisItalic: $.get(editor).isActive(\"italic\"),\n\t\t\tcanItalic: $.get(editor).can().chain().focus().toggleItalic().run(),\n\t\t\tisStrike: $.get(editor).isActive(\"strike\"),\n\t\t\tcanStrike: $.get(editor).can().chain().focus().toggleStrike().run(),\n\t\t\tisCode: $.get(editor).isActive(\"code\"),\n\t\t\tcanCode: $.get(editor).can().chain().focus().toggleCode().run(),\n\t\t\tisUnderline: $.get(editor).isActive(\"underline\"),\n\t\t\tisSubScript: $.get(editor).isActive(\"subscript\"),\n\t\t\tisSuperScript: $.get(editor).isActive(\"superscript\"),\n\t\t\tisHeading3: $.get(editor).isActive(\"heading\", { level: 3 }),\n\t\t\tisBulletList: $.get(editor).isActive(\"bulletList\"),\n\t\t\tisOrderedList: $.get(editor).isActive(\"orderedList\"),\n\t\t\tcanUndo: $.get(editor).can().chain().focus().undo().run(),\n\t\t\tcanRedo: $.get(editor).can().chain().focus().redo().run(),\n\t\t\tisTable: $.get(editor).isActive(\"table\"),\n\t\t\tcanTable: $.get(editor).can().chain().focus().insertTable().run(),\n\t\t\ttableHasBorder: $.get(editor).getAttributes(\"table\")?.border === \"1\",\n\t\t\ttextAlign: $.get(editor).isActive({ textAlign: \"right\" }) ? \"right\" : $.get(editor).isActive({ textAlign: \"center\" }) ? \"center\" : $.get(editor).isActive({ textAlign: \"justify\" }) ? \"justify\" : \"left\"\n\t\t}, true);\n\t}\n\tonMount(() => {\n\t\t$.set(editor, new Editor({\n\t\t\telement: editorElement,\n\t\t\textensions: [\n\t\t\t\tStarterKit.configure({\n\t\t\t\t\theading: { levels: [\n\t\t\t\t\t\t1,\n\t\t\t\t\t\t2,\n\t\t\t\t\t\t3,\n\t\t\t\t\t\t4,\n\t\t\t\t\t\t5,\n\t\t\t\t\t\t6\n\t\t\t\t\t] },\n\t\t\t\t\tlink: {\n\t\t\t\t\t\tautolink: false,\n\t\t\t\t\t\tlinkOnPaste: false,\n\t\t\t\t\t\tshouldAutoLink: () => false\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tTextStyle,\n\t\t\t\tCharacterCount.configure({ limit: 1e6 }),\n\t\t\t\tSubScript,\n\t\t\t\tSuperScript,\n\t\t\t\tTextAlign.configure({\n\t\t\t\t\ttypes: [\"heading\", \"paragraph\"],\n\t\t\t\t\talignments: [\n\t\t\t\t\t\t\"left\",\n\t\t\t\t\t\t\"right\",\n\t\t\t\t\t\t\"center\"\n\t\t\t\t\t]\n\t\t\t\t}),\n\t\t\t\tImage,\n\t\t\t\tTable.configure({\n\t\t\t\t\tresizable: true,\n\t\t\t\t\tHTMLAttributes: { border: \"0\" }\n\t\t\t\t}),\n\t\t\t\tTableRow,\n\t\t\t\tTableHeader,\n\t\t\t\tTableCell,\n\t\t\t\tPlaceholder.configure({ placeholder: () => placeholder() })\n\t\t\t],\n\t\t\tcontent: markup() || \"\",\n\t\t\teditable: !disabled(),\n\t\t\tautofocus: false,\n\t\t\teditorProps: { attributes: editorAttributes() },\n\t\t\tonUpdate: ({ editor }) => {\n\t\t\t\tconst html = editor.getHTML();\n\t\t\t\tif ($$props.onChange) $$props.onChange(html);\n\t\t\t\tupdateEditorState();\n\t\t\t},\n\t\t\tonSelectionUpdate: () => {\n\t\t\t\tupdateEditorState();\n\t\t\t},\n\t\t\tonFocus: () => {\n\t\t\t\tupdateEditorState();\n\t\t\t}\n\t\t}), true);\n\t\tupdateEditorState();\n\t});\n\tonDestroy(() => {\n\t\tif ($.get(editor)) $.get(editor).destroy();\n\t});\n\t$.user_effect(() => {\n\t\tif ($.get(editor) && markup() !== $.get(editor).getHTML()) $.get(editor).commands.setContent(markup() || \"\", { emitUpdate: false });\n\t});\n\t$.user_effect(() => {\n\t\tconst editable = !disabled();\n\t\tif ($.get(editor) && $.get(editor).isEditable !== editable) $.get(editor).setEditable(editable, false);\n\t});\n\t$.user_effect(() => {\n\t\tconst attributes = editorAttributes();\n\t\tif ($.get(editor) && $.get(editor).view.dom.getAttribute(\"aria-label\") !== (attributes[\"aria-label\"] ?? null)) $.get(editor).setOptions({ editorProps: { attributes } });\n\t});\n\tfunction handleFocusIn() {\n\t\t$.set(hasFocus, true);\n\t}\n\tfunction handleFocusOut(e) {\n\t\tif (!e.currentTarget.contains(e.relatedTarget)) {\n\t\t\t$.set(hasFocus, false);\n\t\t\t$.set(showAlignMenu, false);\n\t\t}\n\t}\n\tfunction toggleBold() {\n\t\t$.get(editor)?.chain().focus().toggleBold().run();\n\t}\n\tfunction toggleItalic() {\n\t\t$.get(editor)?.chain().focus().toggleItalic().run();\n\t}\n\tfunction toggleStrike() {\n\t\t$.get(editor)?.chain().focus().toggleStrike().run();\n\t}\n\tfunction toggleCode() {\n\t\t$.get(editor)?.chain().focus().toggleCode().run();\n\t}\n\tfunction toggleUnderline() {\n\t\t$.get(editor)?.chain().focus().toggleUnderline().run();\n\t}\n\tfunction toggleSubscript() {\n\t\t$.get(editor)?.chain().focus().toggleSubscript().run();\n\t}\n\tfunction toggleSuperscript() {\n\t\t$.get(editor)?.chain().focus().toggleSuperscript().run();\n\t}\n\tfunction toggleHeading3() {\n\t\t$.get(editor)?.chain().focus().toggleHeading({ level: 3 }).run();\n\t}\n\tfunction toggleBulletList() {\n\t\t$.get(editor)?.chain().focus().toggleBulletList().run();\n\t}\n\tfunction toggleOrderedList() {\n\t\t$.get(editor)?.chain().focus().toggleOrderedList().run();\n\t}\n\tfunction undo() {\n\t\t$.get(editor)?.chain().focus().undo().run();\n\t}\n\tfunction redo() {\n\t\t$.get(editor)?.chain().focus().redo().run();\n\t}\n\tfunction insertTable() {\n\t\t$.get(editor)?.chain().focus().insertTable({\n\t\t\trows: 2,\n\t\t\tcols: 2,\n\t\t\twithHeaderRow: false\n\t\t}).run();\n\t}\n\tfunction addRowAfter() {\n\t\t$.get(editor)?.chain().focus().addRowAfter().run();\n\t}\n\tfunction deleteRow() {\n\t\t$.get(editor)?.chain().focus().deleteRow().run();\n\t}\n\tfunction addColumnAfter() {\n\t\t$.get(editor)?.chain().focus().addColumnAfter().run();\n\t}\n\tfunction deleteColumn() {\n\t\t$.get(editor)?.chain().focus().deleteColumn().run();\n\t}\n\tfunction deleteTable() {\n\t\t$.get(editor)?.chain().focus().deleteTable().run();\n\t}\n\tfunction toggleTableBorder() {\n\t\tif (!$.get(editor)) return;\n\t\tconst tableAttrs = $.get(editor).getAttributes(\"table\");\n\t\tconst update = {\n\t\t\t...tableAttrs,\n\t\t\tborder: tableAttrs.border !== \"0\" ? \"0\" : \"1\"\n\t\t};\n\t\t$.get(editor).commands.updateAttributes(\"table\", update);\n\t}\n\tfunction setTextAlign(alignment) {\n\t\t$.get(editor)?.chain().focus().setTextAlign(alignment).run();\n\t\t$.set(showAlignMenu, false);\n\t}\n\tfunction insertImage() {\n\t\tconst url = window.prompt(\"Enter image URL:\");\n\t\tif (url) $.get(editor)?.chain().focus().setImage({ src: url }).run();\n\t}\n\tfunction handleMouseDown(e) {\n\t\te.preventDefault();\n\t}\n\tfunction handleDoneClick() {\n\t\tif ($.get(editor)) {\n\t\t\tconst html = $.get(editor).getHTML();\n\t\t\tif (html !== markup()) $$props.onChange?.(html);\n\t\t\t$.get(editor).commands.blur();\n\t\t}\n\t}\n\tvar div = root_5();\n\tvar div_1 = $.child(div);\n\tlet classes;\n\tvar div_2 = $.child(div_1);\n\tvar div_3 = $.child(div_2);\n\t$.bind_this(div_3, ($$value) => editorElement = $$value, () => editorElement);\n\t$.reset(div_2);\n\t$.reset(div_1);\n\tvar node = $.sibling(div_1, 2);\n\tvar consequent_6 = ($$anchor) => {\n\t\tvar div_4 = root_4();\n\t\tlet classes_1;\n\t\tvar div_5 = $.child(div_4);\n\t\tvar div_6 = $.child(div_5);\n\t\tvar node_1 = $.child(div_6);\n\t\tvar consequent = ($$anchor) => {\n\t\t\tvar button = root();\n\t\t\t$.html(button, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10.02H3V19z\\\"/></svg>\", true);\n\t\t\t$.reset(button);\n\t\t\t$.template_effect(() => button.disabled = !$.get(editorState).canTable);\n\t\t\t$.delegated(\"click\", button, insertTable);\n\t\t\t$.append($$anchor, button);\n\t\t};\n\t\t$.if(node_1, ($$render) => {\n\t\t\tif (!$.get(editorState).isTable) $$render(consequent);\n\t\t});\n\t\tvar node_2 = $.sibling(node_1, 2);\n\t\tvar consequent_1 = ($$anchor) => {\n\t\t\tvar fragment = root_1();\n\t\t\tvar button_1 = $.first_child(fragment);\n\t\t\tlet classes_2;\n\t\t\t$.html(button_1, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_1);\n\t\t\tvar button_2 = $.sibling(button_1, 2);\n\t\t\tlet classes_3;\n\t\t\t$.html(button_2, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_2);\n\t\t\tvar button_3 = $.sibling(button_2, 2);\n\t\t\tlet classes_4;\n\t\t\t$.html(button_3, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_3);\n\t\t\tvar button_4 = $.sibling(button_3, 2);\n\t\t\tlet classes_5;\n\t\t\t$.html(button_4, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_4);\n\t\t\tvar button_5 = $.sibling(button_4, 2);\n\t\t\tlet classes_6;\n\t\t\t$.html(button_5, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"currentColor\\\"><path d=\\\"M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_5);\n\t\t\tvar button_6 = $.sibling(button_5, 2);\n\t\t\tlet classes_7;\n\t\t\t$.html(button_6, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z\\\"/></svg>\", true);\n\t\t\t$.reset(button_6);\n\t\t\t$.template_effect(() => {\n\t\t\t\tclasses_2 = $.set_class(button_1, 1, \"pie-toolbar-btn\", null, classes_2, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_1.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_3 = $.set_class(button_2, 1, \"pie-toolbar-btn\", null, classes_3, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_2.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_4 = $.set_class(button_3, 1, \"pie-toolbar-btn\", null, classes_4, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_3.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_5 = $.set_class(button_4, 1, \"pie-toolbar-btn\", null, classes_5, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_4.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_6 = $.set_class(button_5, 1, \"pie-toolbar-btn\", null, classes_6, { active: $.get(editorState).isTable });\n\t\t\t\tbutton_5.disabled = !$.get(editorState).canTable;\n\t\t\t\tclasses_7 = $.set_class(button_6, 1, \"pie-toolbar-btn\", null, classes_7, { active: $.get(editorState).tableHasBorder });\n\t\t\t\tbutton_6.disabled = !$.get(editorState).canTable;\n\t\t\t});\n\t\t\t$.delegated(\"click\", button_1, addRowAfter);\n\t\t\t$.delegated(\"click\", button_2, deleteRow);\n\t\t\t$.delegated(\"click\", button_3, addColumnAfter);\n\t\t\t$.delegated(\"click\", button_4, deleteColumn);\n\t\t\t$.delegated(\"click\", button_5, deleteTable);\n\t\t\t$.delegated(\"click\", button_6, toggleTableBorder);\n\t\t\t$.append($$anchor, fragment);\n\t\t};\n\t\t$.if(node_2, ($$render) => {\n\t\t\tif ($.get(editorState).isTable) $$render(consequent_1);\n\t\t});\n\t\tvar node_3 = $.sibling(node_2, 2);\n\t\tvar consequent_5 = ($$anchor) => {\n\t\t\tvar fragment_1 = root_3();\n\t\t\tvar button_7 = $.first_child(fragment_1);\n\t\t\tlet classes_8;\n\t\t\t$.html(button_7, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z\\\"/></svg>\", true);\n\t\t\t$.reset(button_7);\n\t\t\tvar button_8 = $.sibling(button_7, 2);\n\t\t\tlet classes_9;\n\t\t\t$.html(button_8, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z\\\"/></svg>\", true);\n\t\t\t$.reset(button_8);\n\t\t\tvar button_9 = $.sibling(button_8, 2);\n\t\t\tlet classes_10;\n\t\t\t$.html(button_9, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z\\\"/></svg>\", true);\n\t\t\t$.reset(button_9);\n\t\t\tvar button_10 = $.sibling(button_9, 2);\n\t\t\tlet classes_11;\n\t\t\t$.html(button_10, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\\\"/></svg>\", true);\n\t\t\t$.reset(button_10);\n\t\t\tvar button_11 = $.sibling(button_10, 2);\n\t\t\tlet classes_12;\n\t\t\t$.html(button_11, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z\\\"/></svg>\", true);\n\t\t\t$.reset(button_11);\n\t\t\tvar button_12 = $.sibling(button_11, 2);\n\t\t\tlet classes_13;\n\t\t\t$.html(button_12, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z\\\"/></svg>\", true);\n\t\t\t$.reset(button_12);\n\t\t\tvar button_13 = $.sibling(button_12, 2);\n\t\t\tlet classes_14;\n\t\t\t$.html(button_13, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z\\\"/></svg>\", true);\n\t\t\t$.reset(button_13);\n\t\t\tvar button_14 = $.sibling(button_13, 2);\n\t\t\tlet classes_15;\n\t\t\t$.html(button_14, () => \"<svg width=\\\"20\\\" height=\\\"18\\\" viewBox=\\\"0 0 30 28\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M27 4V24H29C29.5 24 30 24.5 30 25V27C30 27.5625 29.5 28 29 28H19C18.4375 28 18 27.5625 18 27V25C18 24.5 18.4375 24 19 24H21V16H9V24H11C11.5 24 12 24.5 12 25V27C12 27.5625 11.5 28 11 28H1C0.4375 28 0 27.5625 0 27V25C0 24.5 0.4375 24 1 24H3V4H1C0.4375 4 0 3.5625 0 3V1C0 0.5 0.4375 0 1 0H11C11.5 0 12 0.5 12 1V3C12 3.5625 11.5 4 11 4H9V12H21V4H19C18.4375 4 18 3.5625 18 3V1C18 0.5 18.4375 0 19 0H29C29.5 0 30 0.5 30 1V3C30 3.5625 29.5 4 29 4H27Z\\\"/></svg>\", true);\n\t\t\t$.reset(button_14);\n\t\t\tvar button_15 = $.sibling(button_14, 2);\n\t\t\t$.html(button_15, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\\\"/></svg>\", true);\n\t\t\t$.reset(button_15);\n\t\t\tvar div_7 = $.sibling(button_15, 2);\n\t\t\tvar button_16 = $.child(div_7);\n\t\t\tvar node_4 = $.child(button_16);\n\t\t\tvar consequent_2 = ($$anchor) => {\n\t\t\t\tvar fragment_2 = $.comment();\n\t\t\t\tvar node_5 = $.first_child(fragment_2);\n\t\t\t\t$.html(node_5, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\");\n\t\t\t\t$.append($$anchor, fragment_2);\n\t\t\t};\n\t\t\tvar consequent_3 = ($$anchor) => {\n\t\t\t\tvar fragment_3 = $.comment();\n\t\t\t\tvar node_6 = $.first_child(fragment_3);\n\t\t\t\t$.html(node_6, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\\\"/></svg>\");\n\t\t\t\t$.append($$anchor, fragment_3);\n\t\t\t};\n\t\t\tvar alternate = ($$anchor) => {\n\t\t\t\tvar fragment_4 = $.comment();\n\t\t\t\tvar node_7 = $.first_child(fragment_4);\n\t\t\t\t$.html(node_7, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\");\n\t\t\t\t$.append($$anchor, fragment_4);\n\t\t\t};\n\t\t\t$.if(node_4, ($$render) => {\n\t\t\t\tif ($.get(editorState).textAlign === \"right\") $$render(consequent_2);\n\t\t\t\telse if ($.get(editorState).textAlign === \"center\") $$render(consequent_3, 1);\n\t\t\t\telse $$render(alternate, -1);\n\t\t\t});\n\t\t\t$.next(2);\n\t\t\t$.reset(button_16);\n\t\t\tvar node_8 = $.sibling(button_16, 2);\n\t\t\tvar consequent_4 = ($$anchor) => {\n\t\t\t\tvar div_8 = root_2();\n\t\t\t\tvar button_17 = $.child(div_8);\n\t\t\t\t$.html(button_17, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M42.1875 4.75C42.1875 7.38672 39.9902 9.4375 37.5 9.4375H4.6875C2.05078 9.4375 0 7.38672 0 4.75C0 2.25977 2.05078 0.0625 4.6875 0.0625H37.5C39.9902 0.0625 42.1875 2.25977 42.1875 4.75ZM42.1875 42.25C42.1875 44.8867 39.9902 46.9375 37.5 46.9375H4.6875C2.05078 46.9375 0 44.8867 0 42.25C0 39.7598 2.05078 37.5625 4.6875 37.5625H37.5C39.9902 37.5625 42.1875 39.7598 42.1875 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\", true);\n\t\t\t\t$.reset(button_17);\n\t\t\t\tvar button_18 = $.sibling(button_17, 2);\n\t\t\t\t$.html(button_18, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M51.5625 4.75C51.5625 7.38672 49.3652 9.4375 46.875 9.4375H18.75C16.1133 9.4375 14.0625 7.38672 14.0625 4.75C14.0625 2.25977 16.1133 0.0625 18.75 0.0625H46.875C49.3652 0.0625 51.5625 2.25977 51.5625 4.75ZM65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5ZM0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61ZM51.5625 42.25C51.5625 44.8867 49.3652 46.9375 46.875 46.9375H18.75C16.1133 46.9375 14.0625 44.8867 14.0625 42.25C14.0625 39.7598 16.1133 37.5625 18.75 37.5625H46.875C49.3652 37.5625 51.5625 39.7598 51.5625 42.25Z\\\"/></svg>\", true);\n\t\t\t\t$.reset(button_18);\n\t\t\t\tvar button_19 = $.sibling(button_18, 2);\n\t\t\t\t$.html(button_19, () => \"<svg width=\\\"20\\\" height=\\\"20\\\" viewBox=\\\"0 0 66 66\\\" fill=\\\"currentColor\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M65.625 4.75C65.625 7.38672 63.4277 9.4375 60.9375 9.4375H28.125C25.4883 9.4375 23.4375 7.38672 23.4375 4.75C23.4375 2.25977 25.4883 0.0625 28.125 0.0625H60.9375C63.4277 0.0625 65.625 2.25977 65.625 4.75ZM65.625 42.25C65.625 44.8867 63.4277 46.9375 60.9375 46.9375H28.125C25.4883 46.9375 23.4375 44.8867 23.4375 42.25C23.4375 39.7598 25.4883 37.5625 28.125 37.5625H60.9375C63.4277 37.5625 65.625 39.7598 65.625 42.25ZM0 23.5C0 21.0098 2.05078 18.8125 4.6875 18.8125H60.9375C63.4277 18.8125 65.625 21.0098 65.625 23.5C65.625 26.1367 63.4277 28.1875 60.9375 28.1875H4.6875C2.05078 28.1875 0 26.1367 0 23.5ZM65.625 61C65.625 63.6367 63.4277 65.6875 60.9375 65.6875H4.6875C2.05078 65.6875 0 63.6367 0 61C0 58.5098 2.05078 56.3125 4.6875 56.3125H60.9375C63.4277 56.3125 65.625 58.5098 65.625 61Z\\\"/></svg>\", true);\n\t\t\t\t$.reset(button_19);\n\t\t\t\t$.reset(div_8);\n\t\t\t\t$.delegated(\"click\", button_17, () => setTextAlign(\"left\"));\n\t\t\t\t$.delegated(\"click\", button_18, () => setTextAlign(\"center\"));\n\t\t\t\t$.delegated(\"click\", button_19, () => setTextAlign(\"right\"));\n\t\t\t\t$.append($$anchor, div_8);\n\t\t\t};\n\t\t\t$.if(node_8, ($$render) => {\n\t\t\t\tif ($.get(showAlignMenu)) $$render(consequent_4);\n\t\t\t});\n\t\t\t$.reset(div_7);\n\t\t\tvar button_20 = $.sibling(div_7, 2);\n\t\t\tlet classes_16;\n\t\t\t$.html(button_20, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z\\\"/></svg>\", true);\n\t\t\t$.reset(button_20);\n\t\t\tvar button_21 = $.sibling(button_20, 2);\n\t\t\tlet classes_17;\n\t\t\t$.html(button_21, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z\\\"/></svg>\", true);\n\t\t\t$.reset(button_21);\n\t\t\tvar button_22 = $.sibling(button_21, 2);\n\t\t\t$.html(button_22, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\\\"/></svg>\", true);\n\t\t\t$.reset(button_22);\n\t\t\tvar button_23 = $.sibling(button_22, 2);\n\t\t\t$.html(button_23, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z\\\"/></svg>\", true);\n\t\t\t$.reset(button_23);\n\t\t\t$.template_effect(() => {\n\t\t\t\tclasses_8 = $.set_class(button_7, 1, \"pie-toolbar-btn\", null, classes_8, { active: $.get(editorState).isBold });\n\t\t\t\tbutton_7.disabled = !$.get(editorState).canBold;\n\t\t\t\tclasses_9 = $.set_class(button_8, 1, \"pie-toolbar-btn\", null, classes_9, { active: $.get(editorState).isItalic });\n\t\t\t\tbutton_8.disabled = !$.get(editorState).canItalic;\n\t\t\t\tclasses_10 = $.set_class(button_9, 1, \"pie-toolbar-btn\", null, classes_10, { active: $.get(editorState).isStrike });\n\t\t\t\tbutton_9.disabled = !$.get(editorState).canStrike;\n\t\t\t\tclasses_11 = $.set_class(button_10, 1, \"pie-toolbar-btn\", null, classes_11, { active: $.get(editorState).isCode });\n\t\t\t\tbutton_10.disabled = !$.get(editorState).canCode;\n\t\t\t\tclasses_12 = $.set_class(button_11, 1, \"pie-toolbar-btn\", null, classes_12, { active: $.get(editorState).isUnderline });\n\t\t\t\tclasses_13 = $.set_class(button_12, 1, \"pie-toolbar-btn\", null, classes_13, { active: $.get(editorState).isSubScript });\n\t\t\t\tclasses_14 = $.set_class(button_13, 1, \"pie-toolbar-btn\", null, classes_14, { active: $.get(editorState).isSuperScript });\n\t\t\t\tclasses_15 = $.set_class(button_14, 1, \"pie-toolbar-btn\", null, classes_15, { active: $.get(editorState).isHeading3 });\n\t\t\t\tclasses_16 = $.set_class(button_20, 1, \"pie-toolbar-btn\", null, classes_16, { active: $.get(editorState).isBulletList });\n\t\t\t\tclasses_17 = $.set_class(button_21, 1, \"pie-toolbar-btn\", null, classes_17, { active: $.get(editorState).isOrderedList });\n\t\t\t\tbutton_22.disabled = !$.get(editorState).canUndo;\n\t\t\t\tbutton_23.disabled = !$.get(editorState).canRedo;\n\t\t\t});\n\t\t\t$.delegated(\"click\", button_7, toggleBold);\n\t\t\t$.delegated(\"click\", button_8, toggleItalic);\n\t\t\t$.delegated(\"click\", button_9, toggleStrike);\n\t\t\t$.delegated(\"click\", button_10, toggleCode);\n\t\t\t$.delegated(\"click\", button_11, toggleUnderline);\n\t\t\t$.delegated(\"click\", button_12, toggleSubscript);\n\t\t\t$.delegated(\"click\", button_13, toggleSuperscript);\n\t\t\t$.delegated(\"click\", button_14, toggleHeading3);\n\t\t\t$.delegated(\"click\", button_15, insertImage);\n\t\t\t$.delegated(\"click\", button_16, () => $.set(showAlignMenu, !$.get(showAlignMenu)));\n\t\t\t$.delegated(\"click\", button_20, toggleBulletList);\n\t\t\t$.delegated(\"click\", button_21, toggleOrderedList);\n\t\t\t$.delegated(\"click\", button_22, undo);\n\t\t\t$.delegated(\"click\", button_23, redo);\n\t\t\t$.append($$anchor, fragment_1);\n\t\t};\n\t\t$.if(node_3, ($$render) => {\n\t\t\tif (!$.get(editorState).isTable) $$render(consequent_5);\n\t\t});\n\t\t$.reset(div_6);\n\t\tvar button_24 = $.sibling(div_6, 2);\n\t\t$.html(button_24, () => \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" width=\\\"24\\\" fill=\\\"currentColor\\\"><path d=\\\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\\\"/></svg>\", true);\n\t\t$.reset(button_24);\n\t\t$.reset(div_5);\n\t\t$.reset(div_4);\n\t\t$.template_effect(() => {\n\t\t\tclasses_1 = $.set_class(div_4, 1, \"toolbar\", null, classes_1, { focused: $.get(hasFocus) });\n\t\t\tdiv_4.inert = !$.get(hasFocus);\n\t\t});\n\t\t$.delegated(\"mousedown\", div_4, handleMouseDown);\n\t\t$.delegated(\"click\", button_24, handleDoneClick);\n\t\t$.append($$anchor, div_4);\n\t};\n\t$.if(node, ($$render) => {\n\t\tif (showToolbar() && $.get(editor)) $$render(consequent_6);\n\t});\n\t$.reset(div);\n\t$.template_effect(() => classes = $.set_class(div_1, 1, \"editor-holder\", null, classes, { disabled: disabled() }));\n\t$.delegated(\"focusin\", div, handleFocusIn);\n\t$.delegated(\"focusout\", div, handleFocusOut);\n\t$.append($$anchor, div);\n\t$.pop();\n}\n$.delegate([\n\t\"focusin\",\n\t\"focusout\",\n\t\"mousedown\",\n\t\"click\"\n]);\n//#endregion\nexport { EditableHtml as default };\n\n//# sourceMappingURL=index2.js.map","import EditableHtml$1 from \"./index2.js\";\n//#region src/index.ts\nvar EditableHtml = EditableHtml$1;\n//#endregion\nexport { EditableHtml };\n\n//# sourceMappingURL=index.js.map","<script lang=\"ts\">\nimport {\n enumerateRegions,\n regionKey,\n composeRegionLabel,\n regionsEqual,\n} from '../controller/region.js';\nimport type { Region, VennCircle } from '../types.js';\n\nlet {\n circles,\n regionLabels = {},\n value,\n onchange,\n}: {\n circles: VennCircle[];\n regionLabels?: Record<string, string>;\n value: Region | undefined;\n onchange: (region: Region) => void;\n} = $props();\n\nconst regions = $derived(enumerateRegions(circles?.length || 0));\n\nfunction label(region: Region): string {\n const key = regionKey(region);\n const override = regionLabels?.[key];\n return override && override.trim().length > 0\n ? override\n : composeRegionLabel(circles || [], region);\n}\n\nfunction isSelected(region: Region): boolean {\n return regionsEqual(region, value);\n}\n</script>\n\n<div class=\"region-picker\" role=\"radiogroup\" aria-label=\"Correct region\">\n {#each regions as region (regionKey(region))}\n <button\n type=\"button\"\n class=\"region-cell\"\n class:selected={isSelected(region)}\n role=\"radio\"\n aria-checked={isSelected(region)}\n onclick={() => onchange(region)}\n >\n <span class=\"cell-key\">{regionKey(region) || '—'}</span>\n <span class=\"cell-label\">{label(region)}</span>\n </button>\n {/each}\n</div>\n\n<style>\n .region-picker {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 6px;\n }\n .region-cell {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n padding: 8px 10px;\n border: 1.5px solid #cbd5e1;\n border-radius: 6px;\n background: #ffffff;\n cursor: pointer;\n text-align: left;\n font-size: 12px;\n }\n .region-cell:hover {\n background: #f1f5f9;\n }\n .region-cell.selected {\n border-color: #2563eb;\n background: #eff6ff;\n }\n .cell-key {\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 11px;\n color: #64748b;\n }\n .cell-label {\n font-weight: 500;\n color: #0f172a;\n }\n</style>\n","<svelte:options\n customElement={{\n shadow: 'none',\n props: {\n model: { type: 'Object' },\n configuration: { type: 'Object' }\n }\n }}\n/>\n\n<script lang=\"ts\">\nimport { ModelUpdatedEvent } from '@pie-element/shared-configure-events';\nimport {\n ConfigLayout,\n SettingsPanel,\n hasSettings,\n mergeConfiguration,\n radio,\n toggle,\n} from '@pie-lib/config-ui-svelte';\nimport { EditableHtml } from '@pie-lib/editable-html-tiptap-svelte';\nimport RegionPicker from './RegionPicker.svelte';\nimport VennClassification from '../delivery/VennClassification.svelte';\nimport { buildPreviewSession, createDefaultModel } from '../controller/index.js';\nimport defaults from '../controller/defaults.js';\nimport {\n enumerateRegions,\n regionKey,\n composeRegionLabel,\n getRegionLabel,\n normalizeRegion,\n} from '../controller/region.js';\nimport type { Region, VennModel, VennTile } from '../types.js';\nimport { stripHtml } from '../delivery/tile-accessible-name.js';\n\nlet { model, configuration }: { model?: VennModel; configuration?: Record<string, unknown> } =\n $props();\n\nconst config = $derived(mergeConfiguration(defaults.configuration, configuration));\n\nconst SCORING_POLICY_CHOICES = [\n { label: 'Partial credit per tile', value: 'partialPerTile' },\n { label: 'All or nothing', value: 'allOrNothing' },\n];\n\n/**\n * Keeps the edit as the element's model, so the next edit builds on it,\n * assigning it through the host: a remount after a detach starts from the\n * host's property. Announces it as a bubbling `model.updated` for the player\n * listening at its root.\n */\nfunction emit(next: VennModel) {\n $host<HTMLElement & { model: unknown }>().model = next;\n $host().dispatchEvent(new ModelUpdatedEvent(next));\n}\n\n/**\n * The model with the controller's defaults filled in. Every other field, `id`\n * and `element` included, passes through untouched: the player owns those two,\n * and an edit must not drop what the form does not show.\n */\nfunction safeModel(): VennModel {\n return createDefaultModel(model || undefined);\n}\n\nfunction update(patch: Partial<VennModel>) {\n emit({ ...safeModel(), ...patch });\n}\n\nfunction onPromptChange(html: string) {\n update({ prompt: html });\n}\n\nfunction setCircleLabel(idx: number, label: string) {\n const base = safeModel();\n const nextCircles = base.circles.map((c, i) => (i === idx ? { ...c, label } : c));\n update({ circles: nextCircles });\n}\n\nfunction addTile() {\n const base = safeModel();\n const id = `tile-${Date.now().toString(36)}-${Math.floor(Math.random() * 1000).toString(36)}`;\n const tile: VennTile = { id, label: 'New tile', correctRegion: [] };\n update({ tiles: [...base.tiles, tile] });\n}\n\nfunction removeTile(idx: number) {\n const base = safeModel();\n const next = base.tiles.slice();\n next.splice(idx, 1);\n update({ tiles: next });\n}\n\nfunction moveTile(idx: number, delta: number) {\n const base = safeModel();\n const target = idx + delta;\n if (target < 0 || target >= base.tiles.length) return;\n const next = base.tiles.slice();\n [next[idx], next[target]] = [next[target], next[idx]];\n update({ tiles: next });\n}\n\nfunction setTileLabel(idx: number, label: string) {\n const base = safeModel();\n const next = base.tiles.map((t, i) => (i === idx ? { ...t, label } : t));\n update({ tiles: next });\n}\n\nfunction setTileImageUrl(idx: number, imageUrl: string) {\n const base = safeModel();\n const v = imageUrl.trim();\n const next = base.tiles.map((t, i) =>\n i === idx\n ? { ...t, ...(v ? { imageUrl: v } : { imageUrl: undefined, imageAlt: undefined }) }\n : t\n );\n update({ tiles: next });\n}\n\nfunction setTileImageAlt(idx: number, imageAlt: string) {\n const base = safeModel();\n const next = base.tiles.map((t, i) =>\n i === idx ? { ...t, imageAlt: imageAlt.trim() || undefined } : t\n );\n update({ tiles: next });\n}\n\nfunction clearTileImage(idx: number) {\n const base = safeModel();\n const next = base.tiles.map((t, i) => {\n if (i !== idx) return t;\n const { imageUrl: _u, imageAlt: _a, ...rest } = t;\n return rest as VennTile;\n });\n update({ tiles: next });\n}\n\nfunction setTileId(idx: number, id: string) {\n const base = safeModel();\n const next = base.tiles.map((t, i) => (i === idx ? { ...t, id } : t));\n update({ tiles: next });\n}\n\nfunction setTileRegion(idx: number, region: Region) {\n const base = safeModel();\n const next = base.tiles.map((t, i) =>\n i === idx ? { ...t, correctRegion: normalizeRegion(region) } : t\n );\n update({ tiles: next });\n}\n\nfunction setRegionLabelOverride(key: string, label: string) {\n const base = safeModel();\n const next = { ...(base.regionLabels || {}) };\n if (label.trim().length === 0) {\n delete next[key];\n } else {\n next[key] = label;\n }\n update({ regionLabels: next });\n}\n\nconst m = $derived(safeModel());\nconst regions = $derived(enumerateRegions(m.circles?.length || 0));\n\n/**\n * Each tile id once. Delivery keys tiles by id, and an id being typed can\n * repeat another's for a keystroke: `validate` reports that, and the preview\n * leaves the repeat out until it is resolved.\n */\nconst previewTiles = $derived.by(() => {\n const seen = new Set<string>();\n return m.tiles.filter((tile) => {\n if (seen.has(tile.id)) return false;\n seen.add(tile.id);\n return true;\n });\n});\nconst previewSession = $derived(buildPreviewSession({ ...m, tiles: previewTiles }));\nconst previewModel = $derived({\n circles: m.circles,\n tiles: previewTiles,\n regionLabels: m.regionLabels ?? {},\n prompt: m.promptEnabled === false ? null : (m.prompt ?? null),\n disabled: true,\n env: { mode: 'view' as const },\n});\n\nconst SPLITTER_W = 6;\nconst MIN_EDITOR_W = 260;\nconst MIN_PREVIEW_W = 200;\n\nlet authorShellEl: HTMLDivElement | null = $state(null);\nlet shellWidth = $state(0);\n/** Pixel width of the editor column; initialized to half the shell when first measured. */\nlet editorWidthPx = $state<number | null>(null);\n\n$effect(() => {\n if (shellWidth > 0 && editorWidthPx === null) {\n editorWidthPx = Math.floor((shellWidth - SPLITTER_W) / 2);\n }\n});\n\n$effect(() => {\n if (shellWidth <= 0 || editorWidthPx === null) return;\n const maxEditor = shellWidth - MIN_PREVIEW_W - SPLITTER_W;\n if (editorWidthPx > maxEditor) editorWidthPx = maxEditor;\n if (editorWidthPx < MIN_EDITOR_W) editorWidthPx = MIN_EDITOR_W;\n});\n\nconst editorColumnWidth = $derived.by(() => {\n const sw = shellWidth;\n if (!sw) return '50%';\n const maxEditor = sw - MIN_PREVIEW_W - SPLITTER_W;\n const w = editorWidthPx ?? Math.floor((sw - SPLITTER_W) / 2);\n return `${Math.min(Math.max(w, MIN_EDITOR_W), maxEditor)}px`;\n});\n\nfunction onSplitPointerDown(e: PointerEvent) {\n const shellEl = authorShellEl;\n if (!shellEl) return;\n e.preventDefault();\n const shell = shellEl;\n const gutter = e.currentTarget as HTMLElement;\n gutter.setPointerCapture(e.pointerId);\n const rect0 = shell.getBoundingClientRect();\n const startX = e.clientX;\n const startW = editorWidthPx ?? Math.floor((rect0.width - SPLITTER_W) / 2);\n\n function move(ev: PointerEvent) {\n const rect = shell.getBoundingClientRect();\n const maxEditor = rect.width - MIN_PREVIEW_W - SPLITTER_W;\n const dx = ev.clientX - startX;\n editorWidthPx = Math.min(Math.max(startW + dx, MIN_EDITOR_W), maxEditor);\n }\n\n function up(ev: PointerEvent) {\n try {\n gutter.releasePointerCapture(ev.pointerId);\n } catch {\n /* ignore if capture already released */\n }\n window.removeEventListener('pointermove', move);\n window.removeEventListener('pointerup', up);\n window.removeEventListener('pointercancel', up);\n }\n\n window.addEventListener('pointermove', move);\n window.addEventListener('pointerup', up);\n window.addEventListener('pointercancel', up);\n}\n\nfunction onSplitKeyDown(e: KeyboardEvent) {\n const shell = authorShellEl;\n if (!shell || editorWidthPx === null) return;\n const rect = shell.getBoundingClientRect();\n const maxEditor = rect.width - MIN_PREVIEW_W - SPLITTER_W;\n const step = 24;\n if (e.key === 'ArrowLeft') {\n e.preventDefault();\n editorWidthPx = Math.max(MIN_EDITOR_W, editorWidthPx - step);\n } else if (e.key === 'ArrowRight') {\n e.preventDefault();\n editorWidthPx = Math.min(maxEditor, editorWidthPx + step);\n }\n}\n</script>\n\n<div class=\"venn-author\">\n <ConfigLayout hideSettings={config.settingsPanelDisabled === true || !hasSettings(config)}>\n {#snippet settings()}\n <SettingsPanel\n model={m}\n configuration={config}\n groups={{\n Settings: {\n promptEnabled: config.prompt?.settings && toggle(config.prompt.label),\n },\n Properties: {\n teacherInstructionsEnabled:\n config.teacherInstructions?.settings && toggle(config.teacherInstructions.label),\n scoringPolicy:\n config.scoringPolicy?.settings && radio(config.scoringPolicy.label, SCORING_POLICY_CHOICES),\n },\n }}\n onChangeModel={(next) => update(next)}\n />\n {/snippet}\n <div class=\"author-shell\" bind:this={authorShellEl} bind:clientWidth={shellWidth}>\n <div class=\"editor-column\" style:width={editorColumnWidth}>\n {#if m.teacherInstructionsEnabled !== false}\n <div class=\"field-group\">\n <div class=\"field-header\">{config.teacherInstructions?.label}</div>\n <EditableHtml\n markup={m.teacherInstructions || ''}\n onChange={(html) => update({ teacherInstructions: html })}\n ariaLabel={config.teacherInstructions?.label}\n />\n </div>\n {/if}\n\n {#if m.promptEnabled !== false}\n <div class=\"field-group\">\n <div class=\"field-header\">{config.prompt?.label}</div>\n <EditableHtml\n markup={m.prompt || ''}\n onChange={onPromptChange}\n placeholder=\"Enter a prompt for the Venn classification question...\"\n ariaLabel={config.prompt?.label}\n />\n </div>\n {/if}\n\n <div class=\"field-group\">\n <div class=\"field-header\">Circles</div>\n <p class=\"hint circle-count-note\">2 circles (4 regions).</p>\n <div class=\"circle-labels\">\n {#each m.circles as circle, idx}\n <label class=\"circle-label-row\">\n <span>Circle {idx + 1} label</span>\n <input\n type=\"text\"\n value={circle.label}\n oninput={(e) => setCircleLabel(idx, (e.currentTarget as HTMLInputElement).value)}\n />\n </label>\n {/each}\n </div>\n </div>\n\n <div class=\"field-group\">\n <div class=\"field-header-row\">\n <span class=\"field-header\">Tiles</span>\n <button type=\"button\" class=\"btn-add\" onclick={addTile}>+ Add tile</button>\n </div>\n {#if m.tiles.length === 0}\n <div class=\"hint\">\n Add at least one tile; each tile needs a correct region and either a label (text or simple HTML) or an\n image URL plus short alt text.\n </div>\n {/if}\n <ul class=\"tile-list\">\n <!-- Unkeyed: the key would be the id this row edits, so typing in it\n would remount the row, and two tiles sharing an id would throw. -->\n {#each m.tiles as tile, idx}\n <li class=\"tile-row\">\n <div class=\"tile-row-header\">\n <div class=\"tile-inputs\">\n <label>\n <span>ID</span>\n <input\n type=\"text\"\n value={tile.id}\n oninput={(e) => setTileId(idx, (e.currentTarget as HTMLInputElement).value)}\n />\n </label>\n <label class=\"label-input\">\n <span>Label</span>\n <input\n type=\"text\"\n value={tile.label}\n oninput={(e) => setTileLabel(idx, (e.currentTarget as HTMLInputElement).value)}\n />\n </label>\n <label class=\"label-input tile-field-full\">\n <span>Image URL (optional)</span>\n <input\n type=\"text\"\n value={tile.imageUrl ?? ''}\n placeholder=\"https://… or data:image/…\"\n oninput={(e) => setTileImageUrl(idx, (e.currentTarget as HTMLInputElement).value)}\n />\n </label>\n <label class=\"label-input tile-field-full\">\n <span>Image alt (required if image URL is set)</span>\n <input\n type=\"text\"\n value={tile.imageAlt ?? ''}\n oninput={(e) => setTileImageAlt(idx, (e.currentTarget as HTMLInputElement).value)}\n />\n </label>\n {#if (tile.imageUrl ?? '').trim()}\n <div class=\"tile-field-full\">\n <button type=\"button\" class=\"btn-ghost\" onclick={() => clearTileImage(idx)}>\n Remove image\n </button>\n </div>\n {/if}\n </div>\n <div class=\"tile-actions\">\n <button type=\"button\" class=\"btn-ghost\" onclick={() => moveTile(idx, -1)} aria-label=\"Move up\" disabled={idx === 0}>↑</button>\n <button type=\"button\" class=\"btn-ghost\" onclick={() => moveTile(idx, 1)} aria-label=\"Move down\" disabled={idx === m.tiles.length - 1}>↓</button>\n <button type=\"button\" class=\"btn-ghost danger\" onclick={() => removeTile(idx)} aria-label=\"Remove\">✕</button>\n </div>\n </div>\n <div class=\"tile-region\">\n <div class=\"region-header\">Correct region</div>\n <RegionPicker\n circles={m.circles}\n regionLabels={m.regionLabels}\n value={tile.correctRegion}\n onchange={(region) => setTileRegion(idx, region)}\n />\n </div>\n </li>\n {/each}\n </ul>\n </div>\n\n <details class=\"field-group\">\n <summary class=\"field-header\">Region labels (advanced)</summary>\n <p class=\"hint\">Override the auto-composed region labels that delivery uses for aria-labels and visible region chrome.</p>\n {#each regions as region (regionKey(region))}\n {@const key = regionKey(region)}\n {@const placeholder = composeRegionLabel(m.circles || [], region)}\n <label class=\"override-row\">\n <span class=\"override-key\">{key || '(outside)'}</span>\n <input\n type=\"text\"\n placeholder={placeholder}\n value={m.regionLabels?.[key] ?? ''}\n oninput={(e) => setRegionLabelOverride(key, (e.currentTarget as HTMLInputElement).value)}\n />\n </label>\n {/each}\n </details>\n </div>\n\n <button\n type=\"button\"\n class=\"split-gutter\"\n role=\"slider\"\n aria-orientation=\"vertical\"\n aria-valuemin={MIN_EDITOR_W}\n aria-valuemax={shellWidth > 0 ? shellWidth - MIN_PREVIEW_W - SPLITTER_W : MIN_EDITOR_W + 100}\n aria-valuenow={editorWidthPx ?? (shellWidth > 0 ? Math.floor((shellWidth - SPLITTER_W) / 2) : MIN_EDITOR_W)}\n aria-label=\"Resize editor and preview panels\"\n onpointerdown={onSplitPointerDown}\n onkeydown={onSplitKeyDown}\n ></button>\n\n <div class=\"preview-column\">\n <div class=\"preview-header\">Preview</div>\n <div class=\"preview-note\">\n Live diagram with each tile in its authored <em>correct region</em>. Drag the vertical handle (or use\n arrow keys when it is focused) to change the editor / preview split.\n </div>\n <div class=\"preview-summary\">\n <div><strong>Circles:</strong> {m.circles.map((c) => c.label).join(', ')}</div>\n <div><strong>Scoring:</strong> {m.scoringPolicy === 'allOrNothing' ? 'All or nothing' : 'Partial per tile'}</div>\n <div><strong>Tiles:</strong> {m.tiles.length}</div>\n </div>\n {#if m.tiles.length > 0 && m.circles?.length === 2}\n <div class=\"preview-diagram\">\n <VennClassification model={previewModel} session={previewSession} />\n </div>\n {:else if m.tiles.length === 0}\n <p class=\"hint preview-diagram-placeholder\">Add at least one tile to see the diagram.</p>\n {:else}\n <p class=\"hint preview-diagram-placeholder\">Exactly two circles are required for the preview.</p>\n {/if}\n {#if m.tiles.length > 0}\n <div class=\"preview-list-heading\">Correct regions</div>\n <ol class=\"preview-list\">\n {#each m.tiles as tile}\n <li>\n <span class=\"preview-tile\">\n {#if (tile.imageUrl ?? '').trim()}\n <img src={tile.imageUrl} alt=\"\" class=\"preview-thumb\" aria-hidden=\"true\" />\n {/if}\n {stripHtml(tile.label) || (tile.imageAlt ?? '').trim() || tile.id}\n </span>\n <span class=\"preview-arrow\">→</span>\n <span class=\"preview-region\">{getRegionLabel(m, tile.correctRegion)}</span>\n </li>\n {/each}\n </ol>\n {/if}\n </div>\n </div>\n </ConfigLayout>\n</div>\n\n<style>\n .venn-author {\n padding: 24px;\n font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;\n color: #0f172a;\n box-sizing: border-box;\n --vc-focus-ring: var(\n --pie-focus-outline,\n var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))\n );\n }\n .author-shell {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n gap: 0;\n width: 100%;\n min-height: min(72vh, 720px);\n max-height: min(85vh, 960px);\n box-sizing: border-box;\n }\n .editor-column {\n display: flex;\n flex-direction: column;\n gap: 20px;\n flex-shrink: 0;\n overflow: auto;\n min-width: 0;\n }\n .split-gutter {\n flex: 0 0 6px;\n width: 6px;\n margin: 0;\n padding: 0;\n border: none;\n border-left: 1px solid #cbd5e1;\n border-right: 1px solid #cbd5e1;\n cursor: col-resize;\n touch-action: none;\n background: #e2e8f0;\n align-self: stretch;\n }\n .split-gutter:hover,\n .split-gutter:focus-visible {\n background: #cbd5e1;\n }\n .split-gutter:focus-visible {\n outline: 2px solid var(--vc-focus-ring, #1565c0);\n outline-offset: 2px;\n }\n @media (max-width: 900px) {\n .author-shell {\n flex-direction: column;\n min-height: unset;\n max-height: unset;\n }\n .editor-column {\n width: 100% !important;\n flex: none;\n max-width: none;\n }\n .split-gutter {\n display: none;\n }\n .preview-column {\n flex: none;\n width: 100%;\n }\n }\n .field-group {\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n padding: 16px;\n background: #ffffff;\n }\n .field-header,\n .field-header-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: 600;\n font-size: 14px;\n margin-bottom: 12px;\n color: #0f172a;\n }\n .field-header-row {\n gap: 8px;\n }\n .btn-add {\n background: #2563eb;\n color: #ffffff;\n border: none;\n padding: 6px 10px;\n border-radius: 6px;\n font-size: 12px;\n cursor: pointer;\n }\n .btn-add:hover {\n background: #1d4ed8;\n }\n .btn-ghost {\n background: transparent;\n border: 1px solid #cbd5e1;\n border-radius: 4px;\n padding: 2px 8px;\n cursor: pointer;\n font-size: 13px;\n }\n .btn-ghost:hover:not(:disabled) {\n background: #f1f5f9;\n }\n .btn-ghost:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n }\n .btn-ghost.danger {\n color: #bf0d00;\n }\n .circle-labels {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .circle-count-note {\n margin: 0 0 4px 0;\n }\n .circle-label-row {\n display: grid;\n grid-template-columns: 120px minmax(0, 1fr);\n align-items: center;\n gap: 8px;\n font-size: 13px;\n }\n .circle-label-row input,\n .tile-inputs input,\n .override-row input {\n padding: 6px 8px;\n border: 1px solid #cbd5e1;\n border-radius: 4px;\n font-size: 13px;\n width: 100%;\n box-sizing: border-box;\n }\n .tile-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 12px;\n }\n .tile-row {\n border: 1px solid #e2e8f0;\n border-radius: 6px;\n padding: 10px 12px;\n background: #f8fafc;\n }\n .tile-row-header {\n display: flex;\n gap: 8px;\n align-items: center;\n }\n .tile-inputs {\n flex: 1;\n display: grid;\n grid-template-columns: 140px 1fr;\n gap: 8px;\n }\n .tile-inputs label {\n display: flex;\n flex-direction: column;\n gap: 2px;\n font-size: 12px;\n color: #475569;\n }\n .tile-inputs .tile-field-full {\n grid-column: 1 / -1;\n }\n .tile-actions {\n display: flex;\n gap: 4px;\n }\n .tile-region {\n margin-top: 8px;\n }\n .region-header {\n font-size: 12px;\n font-weight: 600;\n color: #475569;\n margin-bottom: 6px;\n }\n .override-row {\n display: grid;\n grid-template-columns: 100px minmax(0, 1fr);\n align-items: center;\n gap: 8px;\n font-size: 13px;\n margin-top: 6px;\n }\n .override-key {\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n font-size: 12px;\n color: #64748b;\n }\n .hint {\n font-size: 12px;\n color: #64748b;\n margin: 8px 0;\n }\n .preview-column {\n flex: 1 1 auto;\n min-width: 0;\n overflow: auto;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n padding: 16px;\n background: #ffffff;\n }\n .preview-diagram {\n margin: 12px 0 16px 0;\n max-width: 100%;\n overflow-x: auto;\n }\n .preview-diagram :global(.venn-root) {\n padding-top: 8px;\n }\n .preview-list-heading {\n font-size: 12px;\n font-weight: 600;\n color: #475569;\n margin: 8px 0 6px 0;\n }\n .preview-diagram-placeholder {\n margin: 12px 0;\n }\n .preview-header {\n font-weight: 600;\n font-size: 14px;\n margin-bottom: 8px;\n }\n .preview-note {\n font-size: 12px;\n color: #64748b;\n margin-bottom: 12px;\n }\n .preview-summary {\n font-size: 13px;\n line-height: 1.5;\n color: #334155;\n margin-bottom: 10px;\n }\n .preview-list {\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n .preview-list li {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 13px;\n }\n .preview-tile {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n background: #eff6ff;\n border: 1px solid #bfdbfe;\n border-radius: 4px;\n padding: 2px 6px;\n color: #1d4ed8;\n }\n .preview-thumb {\n width: 22px;\n height: 22px;\n object-fit: contain;\n flex-shrink: 0;\n }\n .preview-arrow {\n color: #94a3b8;\n }\n .preview-region {\n color: #0f172a;\n }\n</style>\n","import AuthorComponent from './Author.svelte';\n\nexport default (AuthorComponent as any).element;\n"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAI,KAAI,MAAM,UAAU,YAAY;CACnC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,IAAI,CAAC,GAAG;EACtB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;IACP,QAAQ;IACR,OAAO;GACR;EACD,CAAC,GAAG,KAAK,SAAS,GAAG,KAAK,QAAQ;CACnC;AACD;CAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG;EACjB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;IACP,KAAK;IACL,MAAM;GACP;EACD,CAAC,GAAG,KAAK,MAAM,GAAG,KAAK,OAAO;CAC/B;AACD,IAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG;EACd,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;EACT,CAAC,GAAG,KAAK,UAAU;CACpB;AACD,GAAO,MAAM,UAAU,YAAY;CAClC;EACC,KAAK,OAAO;CACb;CACA,YAAY,GAAG,GAAG;EACjB,MAAM,EAAE,MAAM;GACb,SAAS,CAAC;GACV,QAAQ;IACP,KAAK;IACL,MAAM;GACP;EACD,CAAC,GAAG,KAAK,MAAM,GAAG,KAAK,OAAO;CAC/B;AACD,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A,qCAqBmC,CAAC,CAAA,CAAC,kBAAkB,iBAAiB,mBAAmB,oBAAkB,cAC5E,CAAC,CAAA,CAAC,MAAM,UAAM,IAAA;gBAf/B,CAAa,MAAA,EAAK,CAAU,IAAG,IAAI,KAAK,OAAK,EAAE,CAAU,IAAG,KAAc,CAAC,IAAI,YAAA,EAa5D,CAAC,CAAA,CAAC,QAAQ,KAAK,MAAM,EAAE,KAAK,CAAA,CAAE,KAAK,IAAI,CAAA,CAAA,cAnHpE,GAA8C,CAAO,oBA+F3D,GASgB,EAAkB,gBATlC,GAUY,CAAc,KAtJ1B,GAAG,gBAAA,MAAA,EAAkE,GAAU,CAAA,CAAA,QAA/E,CAAG;;;;;;;;UApBL,CAAG,QAAH,CAAG;AAFI;;;;;;;;;;;;ACxQR,IAAA,KAAgB,GAAwB"}
@@ -0,0 +1,2 @@
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, r as f, s as p, t as m, u as h, v as g, y as _ } from "../controller-bkBJ6-j1.js";
2
+ export { m as SUPPORTED_CIRCLE_COUNTS, u as buildPreviewSession, l as composeRegionLabel, f as createCorrectResponseSession, s as createDefaultModel, t as effectiveScoringPolicy, o as enumerateRegions, d as getCorrectnessMap, a as getRegionLabel, p as getTileCorrectness, n as isComplete, c as model, e as normalizeRegion, h as normalizeSession, r as outcome, g as regionKey, _ as regionsEqual, i as validate };