@elmethis/qwik 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,17 +5,7 @@ const qwik = require("@builder.io/qwik");
5
5
  const js = require("@mdi/js");
6
6
  const katex = require("katex");
7
7
  const lodashEs = require("lodash-es");
8
- const caption$1 = "_caption_f7ep7_27";
9
- const divider = "_divider_f7ep7_49";
10
- const code$1 = "_code_f7ep7_1";
11
- const styles$m = {
12
- "code-block": "_code-block_f7ep7_1",
13
- "language-icon": "_language-icon_f7ep7_22",
14
- caption: caption$1,
15
- "copy-icon": "_copy-icon_f7ep7_33",
16
- divider,
17
- code: code$1
18
- };
8
+ const styles$n = '.code-block {\n display: grid;\n grid-template-rows: 2.75rem 1px 1fr;\n grid-template-columns: 2rem 1fr 2.5rem;\n grid-template-areas: "language-icon caption copy-icon" "divider divider divider" "code code code";\n align-items: center;\n justify-content: center;\n gap: 0;\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 0.25rem;\n border-radius: 0.25rem;\n background-color: rgba(255, 255, 255, 0.4);\n box-shadow: 0 0 0.125rem rgba(62, 67, 75, 0.3);\n}\n[data-theme=dark] .code-block {\n background-color: rgba(44, 48, 55, 0.9);\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.4);\n}\n\n.language-icon {\n grid-area: language-icon;\n padding-inline-start: 0.75rem;\n}\n\n.caption {\n grid-area: caption;\n padding: 1rem;\n font-family: monospace;\n}\n\n.copy-icon {\n grid-area: copy-icon;\n padding: 0.25rem;\n width: 1.25rem;\n height: 1.25rem;\n border-radius: 0.125rem;\n transition: background-color 100ms;\n cursor: pointer;\n}\n.copy-icon:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n[data-theme=dark] .copy-icon:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n\n.divider {\n grid-area: divider;\n width: calc(100% - 1rem);\n border: none;\n border-bottom: solid 1px rgba(128, 128, 128, 0.5);\n}\n\n.code {\n grid-area: code;\n box-sizing: border-box;\n padding: 0 1rem;\n}';
19
9
  const Rust = qwik.component$(({ size = 24, ...props }) => {
20
10
  return /* @__PURE__ */ jsxRuntime.jsx("svg", {
21
11
  xmlns: "http://www.w3.org/2000/svg",
@@ -67,11 +57,9 @@ const Typescript = qwik.component$(({ size = 24, ...props }) => {
67
57
  ]
68
58
  });
69
59
  });
70
- const path = "_path_1ccs2_1";
71
- const styles$l = {
72
- path
73
- };
60
+ const styles$m = ".path {\n fill: #293138;\n}\n[data-theme=dark] .path {\n fill: #d2dbe3;\n}";
74
61
  const Bash = qwik.component$(({ size = 24, ...props }) => {
62
+ qwik.useStylesScoped$(styles$m);
75
63
  return /* @__PURE__ */ jsxRuntime.jsxs("svg", {
76
64
  xmlns: "http://www.w3.org/2000/svg",
77
65
  viewBox: "0 0 128 128",
@@ -84,7 +72,7 @@ const Bash = qwik.component$(({ size = 24, ...props }) => {
84
72
  d: "M4.24 4.24h119.53v119.53H4.24z"
85
73
  }),
86
74
  /* @__PURE__ */ jsxRuntime.jsx("path", {
87
- class: styles$l.path,
75
+ class: "path",
88
76
  d: "M109.01 28.64L71.28 6.24c-2.25-1.33-4.77-2-7.28-2s-5.03.67-7.28 2.01l-37.74 22.4c-4.5 2.67-7.28 7.61-7.28 12.96v44.8c0 5.35 2.77 10.29 7.28 12.96l37.73 22.4c2.25 1.34 4.76 2 7.28 2c2.51 0 5.03-.67 7.28-2l37.74-22.4c4.5-2.67 7.28-7.62 7.28-12.96V41.6c0-5.34-2.77-10.29-7.28-12.96M79.79 98.59l.06 3.22c0 .39-.25.83-.55.99l-1.91 1.1c-.3.15-.56-.03-.56-.42l-.03-3.17c-1.63.68-3.29.84-4.34.42c-.2-.08-.29-.37-.21-.71l.69-2.91c.06-.23.18-.46.34-.6c.06-.06.12-.1.18-.13c.11-.06.22-.07.31-.03c1.14.38 2.59.2 3.99-.5c1.78-.9 2.97-2.72 2.95-4.52c-.02-1.64-.9-2.31-3.05-2.33c-2.74.01-5.3-.53-5.34-4.57c-.03-3.32 1.69-6.78 4.43-8.96l-.03-3.25c0-.4.24-.84.55-1l1.85-1.18c.3-.15.56.04.56.43l.03 3.25c1.36-.54 2.54-.69 3.61-.44c.23.06.34.38.24.75l-.72 2.88c-.06.22-.18.44-.33.58a.8.8 0 0 1-.19.14c-.1.05-.19.06-.28.05c-.49-.11-1.65-.36-3.48.56c-1.92.97-2.59 2.64-2.58 3.88c.02 1.48.77 1.93 3.39 1.97c3.49.06 4.99 1.58 5.03 5.09c.05 3.44-1.79 7.15-4.61 9.41m26.34-60.5l-35.7 22.05c-4.45 2.6-7.73 5.52-7.74 10.89v43.99c0 3.21 1.3 5.29 3.29 5.9c-.65.11-1.32.19-1.98.19c-2.09 0-4.15-.57-5.96-1.64l-37.73-22.4c-3.69-2.19-5.98-6.28-5.98-10.67V41.6c0-4.39 2.29-8.48 5.98-10.67l37.74-22.4c1.81-1.07 3.87-1.64 5.96-1.64s4.15.57 5.96 1.64l37.74 22.4c3.11 1.85 5.21 5.04 5.8 8.63c-1.27-2.67-4.09-3.39-7.38-1.47"
89
77
  }),
90
78
  /* @__PURE__ */ jsxRuntime.jsx("path", {
@@ -609,42 +597,30 @@ const ElmLanguageIcon = qwik.component$(({ size = 24, language }) => {
609
597
  size
610
598
  });
611
599
  });
612
- const text$1 = "_text_1gswr_1";
613
- const code = "_code_1gswr_12";
614
- const kbd = "_kbd_1gswr_21";
615
- const link$1 = "_link_1gswr_47";
616
- const styles$k = {
617
- text: text$1,
618
- code,
619
- kbd,
620
- link: link$1
621
- };
622
- const text = "_text_zryur_1";
623
- const textStyles = {
624
- text
625
- };
626
- const icon$2 = "_icon_19g82_1";
627
- const styles$j = {
628
- icon: icon$2
629
- };
600
+ const styles$l = '.text {\n padding: 0;\n margin: 0;\n white-space: pre-line;\n font-size: var(--font-size, 1em);\n line-height: var(--font-size, 1em);\n background-color: var(--background-color);\n transition: color 200ms;\n text-decoration-color: var(--color);\n}\n\n.code {\n margin-inline: 0.25rem;\n padding: 2px 0.5em;\n font-size: calc(1em - 2px);\n border-radius: 0.125rem;\n background-color: rgba(0, 0, 0, 0.075);\n font-family: "Source Code Pro" monospace;\n}\n\n.kbd {\n padding: 0.125rem 0.25rem;\n position: relative;\n border-radius: 0.125rem;\n background-color: #e6e6e6;\n}\n[data-theme=dark] .kbd {\n background-color: #404040;\n}\n.kbd::before {\n z-index: -1;\n position: absolute;\n content: "";\n bottom: -0.25em;\n left: 0;\n height: 100%;\n width: 100%;\n background-color: #ccc;\n border-radius: 0 0 0.125rem 0.125rem;\n box-shadow: 0 0 0.125em rgba(0, 0, 0, 0.5);\n}\n[data-theme=dark] .kbd::before {\n background-color: #595959;\n box-shadow: 0 0 0.125em rgba(255, 255, 255, 0.5);\n}\n\n.link {\n all: unset;\n box-sizing: border-box;\n padding: 0 0.25rem;\n font-size: var(--font-size);\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n cursor: pointer;\n color: #6987b8;\n border-radius: 0.125rem;\n transition: background-color 200ms, color 200ms, opacity 200ms;\n}\n.link:hover {\n background-color: rgba(105, 135, 184, 0.2);\n}\n.link:active {\n opacity: 0.5;\n}\n.link:visited {\n color: #9771bd;\n border-bottom: dashed 1px #9771bd;\n}\n.link:visited:hover {\n background-color: rgba(151, 113, 189, 0.2);\n}\n\n.ogp {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n overflow: hidden;\n border-radius: 0.25rem;\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.8);\n}\n[data-theme=dark] .ogp {\n background-color: rgba(255, 255, 255, 0.1);\n}\n\n.ogp-text {\n box-sizing: border-box;\n padding: 0.5rem;\n}\n\n.ogp-title {\n box-sizing: border-box;\n font-weight: bold;\n padding-block-end: 0.25rem;\n}\n\n.ogp-description {\n opacity: 0.7;\n padding: 0.25rem;\n}';
601
+ const textStyles = ".text {\n color: var(--color, #606875);\n}\n.text::selection {\n color: #cccfd5;\n background-color: var(--color, #3e434b);\n}\n[data-theme=dark] .text {\n color: var(--color, #b0b5be);\n}\n[data-theme=dark] .text::selection {\n color: #3e434b;\n background-color: var(--color, #cccfd5);\n}";
602
+ const styles$k = ".icon {\n margin: 0;\n padding: 0;\n display: inline-block;\n vertical-align: middle;\n height: 1em;\n}\n.icon::selection {\n filter: brightness(1000%);\n background-color: var(--color, rgba(0, 0, 0, 0.25));\n}\n[data-theme=dark] .icon {\n color: var(--color, rgba(255, 255, 255, 0.7));\n}\n[data-theme=dark] .icon::selection {\n color: rgba(0, 0, 0, 0.7);\n background-color: var(--color, rgba(255, 255, 255, 0.25));\n}";
630
603
  const ElmInlineIcon = qwik.component$(({ src, alt }) => {
631
- return /* @__PURE__ */ jsxRuntime.jsx("div", {
632
- class: styles$j.icon,
604
+ qwik.useStylesScoped$(styles$k);
605
+ return /* @__PURE__ */ jsxRuntime.jsx("span", {
606
+ class: "icon",
633
607
  children: /* @__PURE__ */ jsxRuntime.jsx("img", {
634
608
  src,
635
609
  alt,
636
- class: styles$j.icon
610
+ class: "icon"
637
611
  })
638
612
  });
639
613
  });
640
614
  const ElmInlineText = qwik.component$((props) => {
641
- const { bold = false, italic = false, underline = false, strikethrough = false, code: code2 = false, size = "1em" } = props;
615
+ qwik.useStylesScoped$(styles$l);
616
+ qwik.useStylesScoped$(textStyles);
617
+ const { bold = false, italic = false, underline = false, strikethrough = false, code = false, size = "1em" } = props;
642
618
  let vnode = props.text ? /* @__PURE__ */ jsxRuntime.jsx("span", {
643
619
  children: props.text
644
620
  }) : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {});
645
621
  if (props.kbd) {
646
622
  vnode = /* @__PURE__ */ jsxRuntime.jsx("kbd", {
647
- class: styles$k.kbd,
623
+ class: "kbd",
648
624
  children: vnode
649
625
  });
650
626
  }
@@ -668,15 +644,15 @@ const ElmInlineText = qwik.component$((props) => {
668
644
  children: vnode
669
645
  });
670
646
  }
671
- if (code2) {
647
+ if (code) {
672
648
  vnode = /* @__PURE__ */ jsxRuntime.jsx("code", {
673
- class: styles$k.code,
649
+ class: "code",
674
650
  children: vnode
675
651
  });
676
652
  }
677
653
  if (props.ruby) {
678
654
  vnode = /* @__PURE__ */ jsxRuntime.jsxs("ruby", {
679
- class: styles$k.text,
655
+ class: "text",
680
656
  children: [
681
657
  /* @__PURE__ */ jsxRuntime.jsx("span", {
682
658
  children: vnode
@@ -689,8 +665,8 @@ const ElmInlineText = qwik.component$((props) => {
689
665
  }
690
666
  const wrappedVnode = /* @__PURE__ */ jsxRuntime.jsx("span", {
691
667
  class: [
692
- styles$k.text,
693
- textStyles.text
668
+ "text",
669
+ "text"
694
670
  ],
695
671
  style: {
696
672
  "--color": props.color,
@@ -701,7 +677,7 @@ const ElmInlineText = qwik.component$((props) => {
701
677
  });
702
678
  if (props.href) {
703
679
  return /* @__PURE__ */ jsxRuntime.jsxs("a", {
704
- class: styles$k.link,
680
+ class: "link",
705
681
  href: props.href,
706
682
  style: {
707
683
  "--font-size": size
@@ -718,10 +694,12 @@ const ElmInlineText = qwik.component$((props) => {
718
694
  }
719
695
  return wrappedVnode;
720
696
  });
721
- const ElmShikiHighlighter = qwik.component$(({ code: code2, language = "txt" }) => {
697
+ const styles$j = '.shiki,\n.shiki span {\n font-family: "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace !important;\n}\n.shiki *::selection,\n.shiki span *::selection {\n background-color: rgba(0, 0, 0, 0.1);\n}\n[data-theme=dark] .shiki *::selection,\n[data-theme=dark] .shiki span *::selection {\n background-color: rgba(255, 255, 255, 0.15);\n}\n[data-theme=dark] .shiki,\n[data-theme=dark] .shiki span {\n color: var(--shiki-dark) !important;\n background-color: var(--shiki-dark-bg) !important;\n}';
698
+ const ElmShikiHighlighter = qwik.component$(({ code, language = "txt" }) => {
699
+ qwik.useStyles$(styles$j);
722
700
  const rawHtml = qwik.useSignal("");
723
701
  qwik.useTask$(async ({ track }) => {
724
- const currentCode = track(() => code2);
702
+ const currentCode = track(() => code);
725
703
  const currentLang = track(() => language);
726
704
  const { getHighlighterSingleton } = await Promise.resolve().then(() => require("./shikiInstance-BxkUyfqr.cjs"));
727
705
  const highlighter = await getHighlighterSingleton();
@@ -745,13 +723,11 @@ const ElmShikiHighlighter = qwik.component$(({ code: code2, language = "txt" })
745
723
  dangerouslySetInnerHTML: rawHtml.value
746
724
  });
747
725
  });
748
- const icon$1 = "_icon_1gvln_1";
749
- const styles$i = {
750
- icon: icon$1
751
- };
726
+ const styles$i = ".icon {\n fill: var(--color, #555b67);\n transition: fill 200ms;\n}\n[data-theme=dark] .icon {\n fill: var(--dark-color, #b0b5be);\n}";
752
727
  const ElmMdiIcon = qwik.component$(({ d, size = "1em", color, lightColor, darkColor }) => {
728
+ qwik.useStylesScoped$(styles$i);
753
729
  return /* @__PURE__ */ jsxRuntime.jsx("svg", {
754
- class: styles$i.icon,
730
+ class: "icon",
755
731
  style: {
756
732
  "--color": lightColor ?? color,
757
733
  "--dark-color": darkColor ?? color
@@ -768,7 +744,8 @@ const ElmMdiIcon = qwik.component$(({ d, size = "1em", color, lightColor, darkCo
768
744
  })
769
745
  });
770
746
  });
771
- const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption: caption2, margin }) => {
747
+ const ElmCodeBlock = qwik.component$(({ code, language = "txt", caption, margin }) => {
748
+ qwik.useStylesScoped$(styles$n);
772
749
  const timerId = qwik.useSignal(null);
773
750
  const copyToClipboard = qwik.$(async () => {
774
751
  if (timerId.value !== null) {
@@ -776,35 +753,35 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
776
753
  timerId.value = null;
777
754
  }
778
755
  try {
779
- await navigator.clipboard.writeText(code2);
756
+ await navigator.clipboard.writeText(code);
780
757
  timerId.value = window.setTimeout(() => timerId.value = null, 1500);
781
758
  } catch (err) {
782
759
  console.error("Failed to copy: ", err);
783
760
  }
784
761
  });
785
762
  return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
786
- class: styles$m["code-block"],
763
+ class: "code-block",
787
764
  style: {
788
765
  margin
789
766
  },
790
767
  children: [
791
768
  /* @__PURE__ */ jsxRuntime.jsx("span", {
792
- class: styles$m["language-icon"],
769
+ class: "language-icon",
793
770
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmLanguageIcon, {
794
771
  language
795
772
  })
796
773
  }),
797
774
  /* @__PURE__ */ jsxRuntime.jsx("span", {
798
- class: styles$m["caption"],
775
+ class: "caption",
799
776
  children: /* @__PURE__ */ jsxRuntime.jsxs(ElmInlineText, {
800
777
  children: [
801
- caption2 || language,
778
+ caption || language,
802
779
  /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
803
780
  ]
804
781
  })
805
782
  }),
806
783
  /* @__PURE__ */ jsxRuntime.jsx("div", {
807
- class: styles$m["copy-icon"],
784
+ class: "copy-icon",
808
785
  onClick$: copyToClipboard,
809
786
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
810
787
  size: "1.25rem",
@@ -813,12 +790,12 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
813
790
  })
814
791
  }),
815
792
  /* @__PURE__ */ jsxRuntime.jsx("hr", {
816
- class: styles$m["divider"]
793
+ class: "divider"
817
794
  }),
818
795
  /* @__PURE__ */ jsxRuntime.jsx("div", {
819
- class: styles$m["code"],
796
+ class: "code",
820
797
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmShikiHighlighter, {
821
- code: code2,
798
+ code,
822
799
  language
823
800
  })
824
801
  })
@@ -826,70 +803,48 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
826
803
  });
827
804
  });
828
805
  const ElmKatex = qwik.component$(({ expression, block = false }) => {
806
+ qwik.useStylesScoped$(textStyles);
829
807
  const html = qwik.useComputed$(() => katex.renderToString(expression, {
830
808
  displayMode: block,
831
809
  output: "mathml"
832
810
  }));
833
811
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
834
- class: textStyles.text,
812
+ class: "text",
835
813
  dangerouslySetInnerHTML: html.value
836
814
  });
837
815
  });
838
- const toggle = "_toggle_1nxqa_1";
839
- const summary = "_summary_1nxqa_14";
840
- const content$2 = "_content_1nxqa_60";
841
- const footer = "_footer_1nxqa_80";
842
- const styles$h = {
843
- toggle,
844
- "toggle-closed": "_toggle-closed_1nxqa_7",
845
- "toggle-open": "_toggle-open_1nxqa_10",
846
- summary,
847
- "summary-open": "_summary-open_1nxqa_29",
848
- "summary-closed": "_summary-closed_1nxqa_33",
849
- "chevron-icon": "_chevron-icon_1nxqa_37",
850
- "chevron-icon-open": "_chevron-icon-open_1nxqa_40",
851
- "chevron-icon-closed": "_chevron-icon-closed_1nxqa_43",
852
- "plus-icon": "_plus-icon_1nxqa_47",
853
- "plus-icon-open": "_plus-icon-open_1nxqa_53",
854
- "plus-icon-closed": "_plus-icon-closed_1nxqa_56",
855
- content: content$2,
856
- "content-open": "_content-open_1nxqa_73",
857
- "content-closed": "_content-closed_1nxqa_76",
858
- footer,
859
- "footer-line": "_footer-line_1nxqa_99",
860
- "footer-cross-icon": "_footer-cross-icon_1nxqa_106",
861
- "footer-chevron-icon": "_footer-chevron-icon_1nxqa_109"
862
- };
863
- const ElmToggle = qwik.component$(({ summary: summary2 }) => {
816
+ const styles$h = ".toggle {\n margin: 0;\n display: grid;\n transition: grid 200ms;\n overflow: hidden;\n}\n.toggle.toggle-closed {\n grid-template-rows: 3.5rem 0fr 0rem;\n}\n.toggle.toggle-open {\n grid-template-rows: 3.5rem 1fr 3rem;\n}\n\n.summary {\n box-sizing: border-box;\n padding-inline: 1rem;\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n gap: 1rem;\n align-items: center;\n cursor: pointer;\n border: 1px solid rgba(0, 0, 0, 0.125);\n background-color: rgba(62, 67, 75, 0.05);\n}\n[data-theme=dark] .summary {\n border: 1px solid rgba(255, 255, 255, 0.125);\n background-color: rgba(190, 194, 202, 0.1);\n}\n.summary.summary-open {\n border-radius: 0.25rem 0.25rem 0 0;\n border-bottom-color: transparent;\n}\n.summary.summary-closed {\n border-radius: 0.25rem;\n}\n\n.chevron-icon {\n transition: transform 200ms;\n}\n.chevron-icon.chevron-icon-open {\n transform: rotate(90deg);\n}\n.chevron-icon.chevron-icon-closed {\n transform: rotate(0deg);\n}\n\n.plus-icon {\n height: 1rem;\n width: 1rem;\n transform-origin: center;\n transition: transform 200ms;\n}\n.plus-icon.plus-icon-open {\n transform: rotate(135deg);\n}\n.plus-icon.plus-icon-closed {\n transform: rotate(0deg);\n}\n\n.content {\n box-sizing: border-box;\n padding: 1rem;\n overflow: hidden;\n transition: opacity 200ms;\n border: 1px solid rgba(0, 0, 0, 0.125);\n border-radius: 0 0 0.25rem 0.25rem;\n background-color: rgba(62, 67, 75, 0.0125);\n}\n[data-theme=dark] .content {\n border-color: rgba(255, 255, 255, 0.125);\n background-color: rgba(190, 194, 202, 0.025);\n}\n.content.content-open {\n opacity: 1;\n}\n.content.content-closed {\n opacity: 0;\n}\n\n.footer {\n box-sizing: border-box;\n margin: 0.25rem 0rem;\n padding: 0.5rem;\n color: #c56565;\n font-family: monospace;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n user-select: none;\n cursor: pointer;\n border-radius: 0.25rem;\n transition: opacity 200ms, background-color 200ms;\n}\n.footer:hover {\n opacity: 0.5;\n background-color: rgba(96, 104, 117, 0.1);\n}\n.footer.footer-line {\n box-sizing: border-box;\n margin: 0 0.25rem;\n flex-grow: 1;\n border: none;\n border-bottom: solid 1px rgba(128, 128, 128, 0.3);\n}\n.footer.footer-cross-icon {\n transform: rotate(45deg);\n}\n.footer.footer-chevron-icon {\n transform: rotate(-90deg);\n}";
817
+ const ElmToggle = qwik.component$(({ summary }) => {
818
+ qwik.useStylesScoped$(styles$h);
864
819
  const isOpen = qwik.useSignal(false);
865
- const toggle2 = qwik.$(() => {
820
+ const toggle = qwik.$(() => {
866
821
  isOpen.value = !isOpen.value;
867
822
  });
868
823
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
869
824
  class: [
870
- styles$h["toggle"],
825
+ "toggle",
871
826
  {
872
- [styles$h["toggle-open"]]: isOpen.value,
873
- [styles$h["toggle-closed"]]: !isOpen.value
827
+ "toggle-open": isOpen.value,
828
+ "toggle-closed": !isOpen.value
874
829
  }
875
830
  ],
876
831
  children: [
877
832
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
878
833
  class: [
879
- styles$h["summary"],
834
+ "summary",
880
835
  {
881
- [styles$h["summary-open"]]: isOpen.value,
882
- [styles$h["summary-closed"]]: !isOpen.value
836
+ "summary-open": isOpen.value,
837
+ "summary-closed": !isOpen.value
883
838
  }
884
839
  ],
885
- onClick$: toggle2,
840
+ onClick$: toggle,
886
841
  children: [
887
842
  /* @__PURE__ */ jsxRuntime.jsx("span", {
888
843
  class: [
889
- styles$h["chevron-icon"],
844
+ "chevron-icon",
890
845
  {
891
- [styles$h["chevron-icon-open"]]: isOpen.value,
892
- [styles$h["chevron-icon-closed"]]: !isOpen.value
846
+ "chevron-icon-open": isOpen.value,
847
+ "chevron-icon-closed": !isOpen.value
893
848
  }
894
849
  ],
895
850
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
@@ -897,17 +852,17 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
897
852
  })
898
853
  }),
899
854
  /* @__PURE__ */ jsxRuntime.jsx("span", {
900
- class: styles$h["summary-text"],
901
- children: summary2 ? summary2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
855
+ class: "summary-text",
856
+ children: summary ? summary : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
902
857
  name: "summary"
903
858
  })
904
859
  }),
905
860
  /* @__PURE__ */ jsxRuntime.jsx("span", {
906
861
  class: [
907
- styles$h["plus-icon"],
862
+ "plus-icon",
908
863
  {
909
- [styles$h["plus-icon-open"]]: isOpen.value,
910
- [styles$h["plus-icon-closed"]]: !isOpen.value
864
+ "plus-icon-open": isOpen.value,
865
+ "plus-icon-closed": !isOpen.value
911
866
  }
912
867
  ],
913
868
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
@@ -920,30 +875,30 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
920
875
  }),
921
876
  /* @__PURE__ */ jsxRuntime.jsx("div", {
922
877
  class: [
923
- styles$h["content"],
878
+ "content",
924
879
  {
925
- [styles$h["content-open"]]: isOpen.value,
926
- [styles$h["content-closed"]]: !isOpen.value
880
+ "content-open": isOpen.value,
881
+ "content-closed": !isOpen.value
927
882
  }
928
883
  ],
929
884
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
930
885
  }),
931
886
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
932
- class: styles$h.footer,
933
- onClick$: toggle2,
887
+ class: "footer",
888
+ onClick$: toggle,
934
889
  children: [
935
890
  /* @__PURE__ */ jsxRuntime.jsx("span", {
936
- class: styles$h["footer-chevron-icon"],
891
+ class: "footer-chevron-icon",
937
892
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
938
893
  d: js.mdiChevronRight,
939
894
  color: "gray"
940
895
  })
941
896
  }),
942
897
  /* @__PURE__ */ jsxRuntime.jsx("hr", {
943
- class: styles$h["footer-line"]
898
+ class: "footer-line"
944
899
  }),
945
900
  /* @__PURE__ */ jsxRuntime.jsx("span", {
946
- class: styles$h["footer-cross-icon"],
901
+ class: "footer-cross-icon",
947
902
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
948
903
  d: js.mdiPlus,
949
904
  color: "#c56565"
@@ -953,17 +908,17 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
953
908
  children: "CLOSE"
954
909
  }),
955
910
  /* @__PURE__ */ jsxRuntime.jsx("span", {
956
- class: styles$h["footer-cross-icon"],
911
+ class: "footer-cross-icon",
957
912
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
958
913
  d: js.mdiPlus,
959
914
  color: "#c56565"
960
915
  })
961
916
  }),
962
917
  /* @__PURE__ */ jsxRuntime.jsx("hr", {
963
- class: styles$h["footer-line"]
918
+ class: "footer-line"
964
919
  }),
965
920
  /* @__PURE__ */ jsxRuntime.jsx("span", {
966
- class: styles$h["footer-chevron-icon"],
921
+ class: "footer-chevron-icon",
967
922
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
968
923
  d: js.mdiChevronRight,
969
924
  color: "gray"
@@ -974,50 +929,44 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
974
929
  ]
975
930
  });
976
931
  });
977
- const styles$g = {
978
- "block-fallback": "_block-fallback_rt986_1"
979
- };
980
- const wrapper = "_wrapper_1yktj_12";
981
- const dot = "_dot_1yktj_22";
982
- const styles$f = {
983
- wrapper,
984
- dot
985
- };
932
+ const styles$g = ".block-fallback {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: var(--height);\n}";
933
+ const styles$f = "@keyframes bounce {\n 0% {\n transform: translateY(0%) scaleY(0.3) scaleX(1.5);\n }\n 10% {\n transform: scaleY(0.8) scaleX(1.2);\n }\n 100% {\n transform: translateY(-400%) scaleY(1.1);\n }\n}\n.wrapper {\n width: var(--size);\n height: var(--size);\n user-select: none;\n position: relative;\n display: flex;\n justify-content: space-around;\n align-items: flex-end;\n}\n\n.dot {\n width: 20%;\n height: 20%;\n border-radius: 50%;\n animation-name: bounce;\n animation-duration: 0.4s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n animation-timing-function: ease-out;\n transition: background-color 400ms;\n background-color: var(--color, #606875);\n}\n[data-theme=dark] .dot {\n background-color: #b0b5be;\n}\n.dot:nth-last-of-type(1) {\n animation-delay: -100ms;\n}\n.dot:nth-last-of-type(2) {\n animation-delay: 0ms;\n}\n.dot:nth-last-of-type(3) {\n animation-delay: 100ms;\n}";
986
934
  const ElmDotLoadingIcon = qwik.component$(({ size = "4em", color = "#606875" }) => {
935
+ qwik.useStylesScoped$(styles$f);
987
936
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
988
- class: styles$f.wrapper,
937
+ class: "wrapper",
989
938
  style: {
990
939
  "--size": size,
991
940
  "--color": color
992
941
  },
993
942
  children: [
994
943
  /* @__PURE__ */ jsxRuntime.jsx("div", {
995
- class: styles$f.dot,
944
+ class: "dot",
996
945
  "aria-hidden": "true"
997
946
  }),
998
947
  /* @__PURE__ */ jsxRuntime.jsx("div", {
999
- class: styles$f.dot,
948
+ class: "dot",
1000
949
  "aria-hidden": "true"
1001
950
  }),
1002
951
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1003
- class: styles$f.dot,
952
+ class: "dot",
1004
953
  "aria-hidden": "true"
1005
954
  })
1006
955
  ]
1007
956
  });
1008
957
  });
1009
- const styles$e = {
1010
- "rectangle-wave": "_rectangle-wave_hej9g_17"
1011
- };
958
+ const styles$e = "@keyframes elm-rectangle-wave {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 30% {\n opacity: 0;\n }\n 40% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n.rectangle-wave {\n box-sizing: border-box;\n position: absolute;\n overflow: hidden;\n margin: 0;\n width: 100%;\n height: 100%;\n animation-name: elm-rectangle-wave;\n animation-duration: 1200ms;\n animation-iteration-count: infinite;\n animation-fill-mode: both;\n border-style: solid;\n border-width: 1px;\n border-color: rgba(0, 0, 0, 0.7);\n}\n[data-theme=dark] .rectangle-wave {\n border-color: rgba(255, 255, 255, 0.7);\n}";
1012
959
  const ElmRectangleWave = qwik.component$(() => {
960
+ qwik.useStylesScoped$(styles$e);
1013
961
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
1014
962
  "aria-hidden": "true",
1015
- class: styles$e["rectangle-wave"]
963
+ class: "rectangle-wave"
1016
964
  });
1017
965
  });
1018
966
  const ElmBlockFallback = qwik.component$(({ height = "16rem" }) => {
967
+ qwik.useStylesScoped$(styles$g);
1019
968
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
1020
- class: styles$g["block-fallback"],
969
+ class: "block-fallback",
1021
970
  style: {
1022
971
  "--height": height
1023
972
  },
@@ -1027,17 +976,9 @@ const ElmBlockFallback = qwik.component$(({ height = "16rem" }) => {
1027
976
  ]
1028
977
  });
1029
978
  });
1030
- const image$1 = "_image_zq5gl_11";
1031
- const fallback = "_fallback_zq5gl_31";
1032
- const styles$d = {
1033
- "block-image": "_block-image_zq5gl_1",
1034
- "image-container": "_image-container_zq5gl_11",
1035
- image: image$1,
1036
- fallback,
1037
- "caption-box": "_caption-box_zq5gl_41",
1038
- "modal-container": "_modal-container_zq5gl_53"
1039
- };
1040
- const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, height, enableModal = true }) => {
979
+ const styles$d = ".block-image {\n margin: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n gap: 0.5rem;\n width: 100%;\n}\n\n.image-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.image {\n max-width: 100%;\n max-height: 100%;\n border-radius: 0.25rem;\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.1);\n transition: opacity 400ms;\n opacity: var(--opacity, 1);\n user-select: none;\n cursor: var(--cursor);\n}\n\n.fallback {\n width: 100%;\n height: 100%;\n inset: 0 0 auto auto;\n position: absolute;\n transition: opacity 400ms;\n opacity: var(--opacity, 1);\n pointer-events: none;\n}\n\n.caption-box {\n box-sizing: border-box;\n padding: 0rem 1rem;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n opacity: 0.75;\n opacity: var(--opacity, 1);\n transition: opacity 400ms;\n}\n\n.modal-container {\n width: 100vw;\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n inset: 0 0 auto auto;\n z-index: 100;\n background-color: rgba(35, 38, 42, 0.8);\n cursor: zoom-out;\n opacity: var(--opacity, 1);\n transition: opacity 200ms;\n}";
980
+ const ElmBlockImage = qwik.component$(({ src, alt, caption, width, height, enableModal = true }) => {
981
+ qwik.useStylesScoped$(styles$d);
1041
982
  const isLoading = qwik.useSignal(true);
1042
983
  const isShowModal = qwik.useSignal(false);
1043
984
  const handleImageLoad = qwik.$(() => {
@@ -1050,10 +991,10 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
1050
991
  });
1051
992
  const ImageComponent = /* @__PURE__ */ jsxRuntime.jsx("img", {
1052
993
  class: [
1053
- styles$d.image
994
+ "image"
1054
995
  ],
1055
996
  src,
1056
- alt: alt ?? caption2 ?? "Image",
997
+ alt: alt ?? caption ?? "Image",
1057
998
  width,
1058
999
  height,
1059
1000
  onLoad$: handleImageLoad,
@@ -1063,7 +1004,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
1063
1004
  }
1064
1005
  });
1065
1006
  const Modal = /* @__PURE__ */ jsxRuntime.jsx("div", {
1066
- class: styles$d["modal-container"],
1007
+ class: "modal-container",
1067
1008
  style: {
1068
1009
  pointerEvents: isShowModal.value ? "auto" : "none",
1069
1010
  "--opacity": isShowModal.value ? 1 : 0
@@ -1072,10 +1013,10 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
1072
1013
  children: ImageComponent
1073
1014
  });
1074
1015
  return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
1075
- class: styles$d["block-image"],
1016
+ class: "block-image",
1076
1017
  children: [
1077
1018
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
1078
- class: styles$d["image-container"],
1019
+ class: "image-container",
1079
1020
  style: {
1080
1021
  "--opacity": isLoading.value ? 1 : 0
1081
1022
  },
@@ -1083,13 +1024,13 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
1083
1024
  children: [
1084
1025
  ImageComponent,
1085
1026
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1086
- class: styles$d["fallback"],
1027
+ class: "fallback",
1087
1028
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmRectangleWave, {})
1088
1029
  })
1089
1030
  ]
1090
1031
  }),
1091
- caption2 && /* @__PURE__ */ jsxRuntime.jsxs("figcaption", {
1092
- class: styles$d["caption-box"],
1032
+ caption && /* @__PURE__ */ jsxRuntime.jsxs("figcaption", {
1033
+ class: "caption-box",
1093
1034
  style: {
1094
1035
  "--opacity": isLoading.value ? 0 : 1
1095
1036
  },
@@ -1106,7 +1047,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
1106
1047
  }),
1107
1048
  /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
1108
1049
  size: "1rem",
1109
- children: caption2
1050
+ children: caption
1110
1051
  })
1111
1052
  ]
1112
1053
  }),
@@ -1114,36 +1055,32 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
1114
1055
  ]
1115
1056
  });
1116
1057
  });
1117
- const file = "_file_14a0w_1";
1118
- const styles$c = {
1119
- file,
1120
- "file-size": "_file-size_14a0w_16",
1121
- "download-icon": "_download-icon_14a0w_21"
1122
- };
1058
+ const styles$c = ".file {\n margin: 0;\n padding: 1rem;\n display: grid;\n grid-template-columns: 1.5rem 1fr 1fr 1.5rem;\n gap: 1rem;\n align-items: center;\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.2);\n border-radius: 0.25rem;\n background-color: rgba(255, 255, 255, 0.2);\n}\n[data-theme=dark] .file {\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.file-size {\n text-align: right;\n opacity: 0.5;\n}\n\n.download-icon {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 1.5rem;\n width: 1.5rem;\n padding: 0.125rem;\n border-radius: 0.125rem;\n cursor: pointer;\n transition: color 200ms, background-color 200ms;\n}\n.download-icon:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n[data-theme=dark] .download-icon:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}";
1123
1059
  function getLastPathSegmentWithoutQueryOrHash(urlString) {
1124
1060
  const cleanedUrl = urlString.split(/[?#]/)[0];
1125
1061
  const pathSegments = cleanedUrl.split("/").filter(Boolean);
1126
1062
  return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
1127
1063
  }
1128
1064
  const ElmFile = qwik.component$(({ name, src, filesize }) => {
1065
+ qwik.useStylesScoped$(styles$c);
1129
1066
  const downloadFile = qwik.$(async () => {
1130
- let link2;
1067
+ let link;
1131
1068
  try {
1132
1069
  const response = await fetch(src);
1133
1070
  if (!response.ok) throw new Error("Failed to download file");
1134
1071
  const blob = await response.blob();
1135
- link2 = document.createElement("a");
1136
- link2.href = URL.createObjectURL(blob);
1137
- link2.download = name ?? getLastPathSegmentWithoutQueryOrHash(src) ?? "file";
1138
- link2.click();
1072
+ link = document.createElement("a");
1073
+ link.href = URL.createObjectURL(blob);
1074
+ link.download = name ?? getLastPathSegmentWithoutQueryOrHash(src) ?? "file";
1075
+ link.click();
1139
1076
  } catch (error) {
1140
1077
  console.error("ERROR:", error);
1141
1078
  } finally {
1142
- if (link2) URL.revokeObjectURL(link2.href);
1079
+ if (link) URL.revokeObjectURL(link.href);
1143
1080
  }
1144
1081
  });
1145
1082
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
1146
- class: styles$c.file,
1083
+ class: "file",
1147
1084
  children: [
1148
1085
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1149
1086
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
@@ -1157,13 +1094,13 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
1157
1094
  })
1158
1095
  }),
1159
1096
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1160
- class: styles$c["file-size"],
1097
+ class: "file-size",
1161
1098
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
1162
1099
  children: filesize
1163
1100
  })
1164
1101
  }),
1165
1102
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1166
- class: styles$c["download-icon"],
1103
+ class: "download-icon",
1167
1104
  onClick$: downloadFile,
1168
1105
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
1169
1106
  d: js.mdiDownload,
@@ -1173,55 +1110,41 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
1173
1110
  ]
1174
1111
  });
1175
1112
  });
1176
- const bookmark = "_bookmark_rgq1s_1";
1177
- const container = "_container_rgq1s_19";
1178
- const image = "_image_rgq1s_32";
1179
- const content$1 = "_content_rgq1s_53";
1180
- const title = "_title_rgq1s_73";
1181
- const description = "_description_rgq1s_76";
1182
- const link = "_link_rgq1s_80";
1183
- const styles$b = {
1184
- bookmark,
1185
- container,
1186
- image,
1187
- content: content$1,
1188
- title,
1189
- description,
1190
- link
1191
- };
1192
- const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
1113
+ const styles$b = ".bookmark {\n all: unset;\n display: block;\n container-type: inline-size;\n border-radius: 0.25rem;\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.1);\n overflow: hidden;\n transition: background-color 200ms, transform 200ms;\n}\n.bookmark:hover {\n background-color: rgba(105, 135, 184, 0.1);\n transform: translateX(-0.125rem) translateY(-0.125rem);\n}\n.bookmark:active {\n background-color: rgba(89, 181, 124, 0.1);\n transform: translateX(0) translateY(0);\n}\n\n.container {\n all: unset;\n cursor: pointer;\n width: 100%;\n display: flex;\n flex-direction: row;\n}\n@container (max-width: 700px) {\n .container {\n flex-direction: column;\n }\n}\n\n.image {\n overflow: hidden;\n height: 100%;\n opacity: 0.9;\n display: flex;\n justify-content: center;\n align-items: center;\n object-fit: cover;\n object-position: center;\n aspect-ratio: 2/1;\n width: min-content;\n max-width: 35%;\n}\n@container (max-width: 700px) {\n .image {\n min-width: unset;\n max-width: unset;\n width: 100%;\n }\n}\n\n.content {\n flex: 1;\n width: 75%;\n box-sizing: border-box;\n padding: 0.5rem;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n justify-content: space-between;\n transition: background-color 200ms;\n background-color: rgba(255, 255, 255, 0.4);\n}\n@container (max-width: 700px) {\n .content {\n width: 100%;\n }\n}\n[data-theme=dark] .content {\n background-color: rgba(0, 0, 0, 0.2);\n}\n.content .title {\n box-sizing: border-box;\n}\n.content .description {\n box-sizing: border-box;\n opacity: 0.7;\n}\n.content .link {\n line-height: 0.75rem;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 0.25rem;\n opacity: 0.7;\n}";
1114
+ const ElmBookmark = qwik.component$(({ url, image, title, description, favicon }) => {
1115
+ qwik.useStylesScoped$(styles$b);
1193
1116
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
1194
- class: styles$b.bookmark,
1117
+ class: "bookmark",
1195
1118
  children: /* @__PURE__ */ jsxRuntime.jsxs("a", {
1196
- class: styles$b.container,
1119
+ class: "container",
1197
1120
  href: url,
1198
1121
  target: "_blank",
1199
1122
  rel: "noopener noreferrer",
1200
1123
  children: [
1201
1124
  /* @__PURE__ */ jsxRuntime.jsx("img", {
1202
- class: styles$b.image,
1203
- src: image2,
1125
+ class: "image",
1126
+ src: image,
1204
1127
  alt: "OGP Image"
1205
1128
  }),
1206
1129
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
1207
- class: styles$b.content,
1130
+ class: "content",
1208
1131
  children: [
1209
1132
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1210
- class: styles$b.title,
1133
+ class: "title",
1211
1134
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
1212
1135
  bold: true,
1213
- children: title2
1136
+ children: title
1214
1137
  })
1215
1138
  }),
1216
1139
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1217
- class: styles$b.description,
1140
+ class: "description",
1218
1141
  children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
1219
1142
  size: "0.75rem",
1220
- children: description2
1143
+ children: description
1221
1144
  })
1222
1145
  }),
1223
1146
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
1224
- class: styles$b.link,
1147
+ class: "link",
1225
1148
  children: [
1226
1149
  favicon ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineIcon, {
1227
1150
  src: favicon
@@ -1241,24 +1164,19 @@ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, descri
1241
1164
  })
1242
1165
  });
1243
1166
  });
1244
- const blockquote = "_blockquote_b5jd8_1";
1245
- const body = "_body_b5jd8_18";
1246
- const icon = "_icon_b5jd8_23";
1247
- const styles$a = {
1248
- blockquote,
1249
- body,
1250
- icon
1251
- };
1167
+ const styles$a = '.blockquote {\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n background-color: rgba(134, 142, 156, 0.1);\n position: relative;\n}\n.blockquote::after {\n position: absolute;\n content: "";\n top: 0;\n left: 0;\n width: 4px;\n height: 100%;\n background-color: #868e9c;\n}\n\n.body {\n box-sizing: border-box;\n padding: 2rem 1.5rem;\n}\n\n.icon {\n position: absolute;\n content: "";\n inset: var(--inset);\n opacity: 0.5;\n}';
1252
1168
  const ElmBlockQuote = qwik.component$(({ cite }) => {
1169
+ qwik.useStylesScoped$(styles$a);
1170
+ qwik.useStylesScoped$(textStyles);
1253
1171
  return /* @__PURE__ */ jsxRuntime.jsxs("blockquote", {
1254
1172
  class: [
1255
- styles$a.blockquote,
1256
- textStyles.text
1173
+ "blockquote",
1174
+ "text"
1257
1175
  ],
1258
1176
  cite,
1259
1177
  children: [
1260
1178
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1261
- class: styles$a.icon,
1179
+ class: "icon",
1262
1180
  style: {
1263
1181
  "--inset": "0.25rem auto auto 0.5rem"
1264
1182
  },
@@ -1267,13 +1185,11 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
1267
1185
  })
1268
1186
  }),
1269
1187
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1270
- class: [
1271
- styles$a.body
1272
- ],
1188
+ class: "body",
1273
1189
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1274
1190
  }),
1275
1191
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1276
- class: styles$a.icon,
1192
+ class: "icon",
1277
1193
  style: {
1278
1194
  "--inset": "auto 0.25rem 0.25rem auto"
1279
1195
  },
@@ -1284,14 +1200,7 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
1284
1200
  ]
1285
1201
  });
1286
1202
  });
1287
- const callout = "_callout_1d8l2_1";
1288
- const header = "_header_1d8l2_25";
1289
- const content = "_content_1d8l2_31";
1290
- const styles$9 = {
1291
- callout,
1292
- header,
1293
- content
1294
- };
1203
+ const styles$9 = '.callout {\n position: relative;\n padding: 1rem;\n}\n.callout::after {\n position: absolute;\n content: "";\n inset: 0 auto auto 0;\n height: 100%;\n width: 0.25rem;\n background-color: var(--callout-color);\n}\n.callout::before {\n position: absolute;\n content: "";\n inset: 0 0 auto auto;\n height: 100%;\n width: 100%;\n background-color: var(--callout-color);\n opacity: 0.15;\n z-index: -1;\n pointer-events: none;\n}\n\n.header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.content {\n padding-block-start: 1rem;\n padding-block-end: 0.25rem;\n}';
1295
1204
  const COLOR_MAP = Object.freeze({
1296
1205
  note: {
1297
1206
  code: "#6987b8",
@@ -1315,14 +1224,15 @@ const COLOR_MAP = Object.freeze({
1315
1224
  }
1316
1225
  });
1317
1226
  const ElmCallout = qwik.component$(({ type = "note" }) => {
1227
+ qwik.useStylesScoped$(styles$9);
1318
1228
  return /* @__PURE__ */ jsxRuntime.jsxs("aside", {
1319
- class: styles$9.callout,
1229
+ class: "callout",
1320
1230
  style: {
1321
1231
  "--callout-color": COLOR_MAP[type].code
1322
1232
  },
1323
1233
  children: [
1324
1234
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
1325
- class: styles$9.header,
1235
+ class: "header",
1326
1236
  children: [
1327
1237
  /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
1328
1238
  d: COLOR_MAP[type].icon,
@@ -1335,29 +1245,25 @@ const ElmCallout = qwik.component$(({ type = "note" }) => {
1335
1245
  ]
1336
1246
  }),
1337
1247
  /* @__PURE__ */ jsxRuntime.jsx("div", {
1338
- class: styles$9.content,
1248
+ class: "content",
1339
1249
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1340
1250
  })
1341
1251
  ]
1342
1252
  });
1343
1253
  });
1344
- const hr = "_hr_1g58p_1";
1345
- const styles$8 = {
1346
- hr
1347
- };
1254
+ const styles$8 = ".hr {\n margin: 0;\n width: 100%;\n border: none;\n border-bottom: dashed 1px #868e9c;\n}";
1348
1255
  const ElmDivider = qwik.component$(({ margin }) => {
1256
+ qwik.useStylesScoped$(styles$8);
1349
1257
  return /* @__PURE__ */ jsxRuntime.jsx("hr", {
1350
- class: styles$8.hr,
1258
+ class: "hr",
1351
1259
  style: {
1352
1260
  marginBlock: margin
1353
1261
  }
1354
1262
  });
1355
1263
  });
1356
- const fragment = "_fragment_1kofp_1";
1357
- const styles$7 = {
1358
- fragment
1359
- };
1264
+ const styles$7 = ".fragment {\n font-size: 1rem;\n width: 1rem;\n height: 1rem;\n padding: 0.125rem;\n margin-inline-start: 0.5rem;\n border-radius: 0.125rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n color: #b69545;\n cursor: pointer;\n user-select: none;\n opacity: 1;\n transition: background-color 200ms, opacity 100ms, transform 100ms;\n}\n.fragment:hover {\n background-color: rgba(134, 142, 156, 0.2);\n}\n.fragment:active {\n opacity: 0.5;\n transform: translateX(1px) translateY(1px);\n}";
1360
1265
  const ElmFragmentIdentifier = qwik.component$(({ id }) => {
1266
+ qwik.useStylesScoped$(styles$7);
1361
1267
  const handleHashClick = qwik.$((id2) => {
1362
1268
  const url = new URL(window.location.href);
1363
1269
  url.hash = id2;
@@ -1370,26 +1276,12 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
1370
1276
  }
1371
1277
  });
1372
1278
  return /* @__PURE__ */ jsxRuntime.jsx("span", {
1373
- class: styles$7.fragment,
1279
+ class: "fragment",
1374
1280
  onClick$: () => handleHashClick(id),
1375
1281
  children: "#"
1376
1282
  });
1377
1283
  });
1378
- const h1 = "_h1_1mgdk_10";
1379
- const h2 = "_h2_1mgdk_40";
1380
- const h3 = "_h3_1mgdk_75";
1381
- const h4 = "_h4_1mgdk_92";
1382
- const h5 = "_h5_1mgdk_96";
1383
- const h6 = "_h6_1mgdk_100";
1384
- const styles$6 = {
1385
- "heading-common": "_heading-common_1mgdk_1",
1386
- h1,
1387
- h2,
1388
- h3,
1389
- h4,
1390
- h5,
1391
- h6
1392
- };
1284
+ const styles$6 = '.heading-common {\n margin: 0;\n position: relative;\n font-size: var(--font-size);\n line-height: var(--font-size);\n opacity: var(--opacity);\n transition: color 400ms, opacity 800ms;\n}\n\n.h1::after {\n position: absolute;\n content: "";\n bottom: -4px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n}\n[data-theme=dark] .h1::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.h1::before {\n position: absolute;\n content: "";\n bottom: -6px;\n left: 45%;\n width: 10%;\n height: 2px;\n background-color: rgba(0, 0, 0, 0.6);\n transition: transform 800ms;\n transform: scaleY(var(--scale));\n transform-origin: top;\n}\n[data-theme=dark] .h1::before {\n background-color: rgba(255, 255, 255, 0.6);\n}\n\n.h2 {\n border-bottom: solid 1px rgba(0, 0, 0, 0.5);\n}\n[data-theme=dark] .h2 {\n border-color: rgba(255, 255, 255, 0.5);\n}\n.h2::after {\n position: absolute;\n content: "";\n right: 2px;\n bottom: -4px;\n width: 6px;\n height: 8px;\n opacity: 0.8;\n transform: skewX(-25deg);\n background-color: rgba(0, 0, 0, 0.8);\n}\n[data-theme=dark] .h2::after {\n background-color: rgba(255, 255, 255, 0.8);\n}\n.h2::before {\n position: absolute;\n content: "";\n right: 10px;\n bottom: -4px;\n width: 6px;\n height: 8px;\n opacity: 0.8;\n transform: skewX(-25deg);\n background-color: rgba(0, 0, 0, 0.8);\n}\n[data-theme=dark] .h2::before {\n background-color: rgba(255, 255, 255, 0.8);\n}\n\n.h3 {\n box-sizing: border-box;\n padding-left: 0.75rem;\n}\n.h3::after {\n position: absolute;\n content: "";\n width: 3px;\n height: 12px;\n top: calc(50% - 8px);\n left: 0;\n background-color: rgba(0, 0, 0, 0.5);\n}\n[data-theme=dark] .h3::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\n.h4 {\n position: relative;\n}\n\n.h5 {\n position: relative;\n}\n\n.h6 {\n position: relative;\n}';
1393
1285
  const SIZE_MAP = Object.freeze({
1394
1286
  1: 1.5,
1395
1287
  2: 1.4,
@@ -1398,19 +1290,21 @@ const SIZE_MAP = Object.freeze({
1398
1290
  5: 1.15,
1399
1291
  6: 1.1
1400
1292
  });
1401
- const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
1293
+ const ElmHeading = qwik.component$(({ level, text, id }) => {
1294
+ qwik.useStylesScoped$(styles$6);
1295
+ qwik.useStylesScoped$(textStyles);
1402
1296
  const Tag = `h${level}`;
1403
1297
  return /* @__PURE__ */ jsxRuntime.jsxs(Tag, {
1404
1298
  class: [
1405
- styles$6["heading-common"],
1406
- textStyles.text,
1407
- styles$6[`h${level}`]
1299
+ "heading-common",
1300
+ "text",
1301
+ `h${level}`
1408
1302
  ],
1409
1303
  style: {
1410
1304
  "--font-size": `${SIZE_MAP[level]}em`
1411
1305
  },
1412
1306
  children: [
1413
- text2,
1307
+ text,
1414
1308
  /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}),
1415
1309
  id && /* @__PURE__ */ jsxRuntime.jsx("span", {
1416
1310
  style: {
@@ -1423,11 +1317,14 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
1423
1317
  ]
1424
1318
  });
1425
1319
  });
1320
+ const listStyles = '.elmethis-list-common {\n margin-block: 1rem;\n opacity: var(--opacity);\n transition: opacity 800ms;\n box-sizing: border-box;\n padding-left: 1.25rem;\n}\n\n.elmethis-bulleted-list li {\n box-sizing: border-box;\n padding-left: 0.5rem;\n margin-block: 0.75rem;\n}\n.elmethis-bulleted-list li::marker {\n content: url("data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMTYgMTYnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICA+CiAgICA8cGF0aAogICAgICBmaWxsPScjNDQ5NzYzJwogICAgICBvcGFjaXR5PScwLjgnCiAgICAgIGQ9J00zIDMuNzMyYTEuNSAxLjUgMCAwIDEgMi4zMDUtMS4yNjVsNi43MDYgNC4yNjdhMS41IDEuNSAwIDAgMSAwIDIuNTMxbC02LjcwNiA0LjI2OEExLjUgMS41IDAgMCAxIDMgMTIuMjY3VjMuNzMyWicKICAgIC8+CiAgPC9zdmc+");\n}\n.elmethis-bulleted-list li ul li::marker {\n content: url("data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjQgMjQnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9J3RyYW5zcGFyZW50JwogID4KICAgIDxwYXRoCiAgICAgIHN0cm9rZUxpbmVjYXA9J3JvdW5kJwogICAgICBzdHJva2VMaW5lam9pbj0ncm91bmQnCiAgICAgIGQ9J001LjI1IDUuNjUzYzAtLjg1Ni45MTctMS4zOTggMS42NjctLjk4NmwxMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMSAwIDEuOTcybC0xMS41NCA2LjM0N2ExLjEyNSAxLjEyNSAwIDAgMS0xLjY2Ny0uOTg2VjUuNjUzWicKICAgIC8+CiAgPC9zdmc+");\n}\n.elmethis-bulleted-list li ul li ul li::marker {\n content: url("data:image/svg+xml;base64,ICA8c3ZnCiAgICB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnCiAgICB2aWV3Qm94PScwIDAgMjAgMjAnCiAgICB3aWR0aD0nMTJweCcKICAgIGhlaWdodD0nMTJweCcKICAgIHN0cm9rZT0nIzQ0OTc2MycKICAgIGZpbGw9JyM0NDk3NjMnCiAgPgogICAgPHBhdGgKICAgICAgZmlsbFJ1bGU9J2V2ZW5vZGQnCiAgICAgIGQ9J004LjIyIDUuMjJhLjc1Ljc1IDAgMCAxIDEuMDYgMGw0LjI1IDQuMjVhLjc1Ljc1IDAgMCAxIDAgMS4wNmwtNC4yNSA0LjI1YS43NS43NSAwIDAgMS0xLjA2LTEuMDZMMTEuOTQgMTAgOC4yMiA2LjI4YS43NS43NSAwIDAgMSAwLTEuMDZaJwogICAgICBjbGlwUnVsZT0nZXZlbm9kZCcKICAgIC8+CiAgPC9zdmc+");\n}\n\n.elmethis-numbered-list li {\n box-sizing: border-box;\n padding-left: 0.25rem;\n margin-block: 0.75rem;\n margin-left: 0.25rem;\n list-style-type: decimal;\n}\n.elmethis-numbered-list li::marker {\n font-weight: bold;\n color: #9771bd;\n}\n.elmethis-numbered-list li ol li {\n list-style-type: lower-alpha;\n}\n.elmethis-numbered-list li ol li ol li {\n list-style-type: lower-roman;\n}\n.elmethis-numbered-list li ol li ol li ol li {\n list-style-type: lower-greek;\n}';
1426
1321
  const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
1322
+ qwik.useStyles$(listStyles);
1323
+ qwik.useStylesScoped$(textStyles);
1427
1324
  if (listStyle === "ordered") {
1428
1325
  return /* @__PURE__ */ jsxRuntime.jsx("ol", {
1429
1326
  class: [
1430
- textStyles.text,
1327
+ "text",
1431
1328
  "elmethis-list-common",
1432
1329
  "elmethis-numbered-list"
1433
1330
  ],
@@ -1436,7 +1333,7 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
1436
1333
  } else {
1437
1334
  return /* @__PURE__ */ jsxRuntime.jsx("ul", {
1438
1335
  class: [
1439
- textStyles.text,
1336
+ "text",
1440
1337
  "elmethis-list-common",
1441
1338
  "elmethis-bulleted-list"
1442
1339
  ],
@@ -1444,10 +1341,7 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
1444
1341
  });
1445
1342
  }
1446
1343
  });
1447
- const paragraph = "_paragraph_jz10s_1";
1448
- const styles$5 = {
1449
- paragraph
1450
- };
1344
+ const styles$5 = ".paragraph {\n opacity: var(--opacity, 0);\n opacity: var(--opacity);\n transition: opacity 800ms;\n color: var(--color, #606875);\n background-color: var(--background-color, inherit);\n}\n.paragraph::selection {\n color: rgba(255, 255, 255, 0.7);\n background-color: rgba(0, 0, 0, 0.7);\n}\n[data-theme=dark] .paragraph {\n color: rgba(255, 255, 255, 0.7);\n}\n[data-theme=dark] .paragraph::selection {\n color: rgba(0, 0, 0, 0.7);\n background-color: rgba(255, 255, 255, 0.7);\n}";
1451
1345
  const useInView = (props) => {
1452
1346
  const ref = qwik.useSignal();
1453
1347
  const isVisible = qwik.useSignal(false);
@@ -1468,12 +1362,14 @@ const useInView = (props) => {
1468
1362
  };
1469
1363
  };
1470
1364
  const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
1365
+ qwik.useStylesScoped$(styles$5);
1366
+ qwik.useStylesScoped$(textStyles);
1471
1367
  const { ref, isVisible } = useInView();
1472
1368
  return /* @__PURE__ */ jsxRuntime.jsx("p", {
1473
1369
  ref,
1474
1370
  class: [
1475
- styles$5.paragraph,
1476
- textStyles.text
1371
+ "paragraph",
1372
+ "text"
1477
1373
  ],
1478
1374
  style: {
1479
1375
  "--color": color,
@@ -1483,38 +1379,32 @@ const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
1483
1379
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1484
1380
  });
1485
1381
  });
1486
- const table = "_table_x2nyq_1";
1487
- const caption = "_caption_x2nyq_8";
1488
- const spacing = "_spacing_x2nyq_25";
1489
- const styles$4 = {
1490
- table,
1491
- caption,
1492
- "caption-inner": "_caption-inner_x2nyq_18",
1493
- spacing
1494
- };
1382
+ const styles$4 = ".table {\n margin-block: var(--margin-block);\n border-collapse: collapse;\n border-spacing: 0;\n box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.2);\n}\n\n.caption {\n position: relative;\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n margin-block-end: 1rem;\n}\n\n.caption-inner {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: 0.25rem;\n}\n\n.spacing {\n flex-grow: 1;\n height: 1px;\n background-color: rgba(128, 128, 128, 0.2);\n}";
1495
1383
  const HasRowHeaderContext = qwik.createContextId("HasRowHeaderContext");
1496
1384
  const ElmTable = qwik.component$((props) => {
1497
- const { margin, caption: caption2, hasRowHeader = false } = props;
1385
+ qwik.useStylesScoped$(styles$4);
1386
+ qwik.useStylesScoped$(textStyles);
1387
+ const { margin, caption, hasRowHeader = false } = props;
1498
1388
  const hasRowHeaderComputed = qwik.useComputed$(() => hasRowHeader);
1499
1389
  qwik.useContextProvider(HasRowHeaderContext, hasRowHeaderComputed);
1500
1390
  return /* @__PURE__ */ jsxRuntime.jsxs("table", {
1501
1391
  class: [
1502
- styles$4.table,
1503
- textStyles.text
1392
+ "table",
1393
+ "text"
1504
1394
  ],
1505
1395
  style: {
1506
1396
  "--margin-block": margin
1507
1397
  },
1508
1398
  children: [
1509
- caption2 && /* @__PURE__ */ jsxRuntime.jsx("caption", {
1399
+ caption && /* @__PURE__ */ jsxRuntime.jsx("caption", {
1510
1400
  children: /* @__PURE__ */ jsxRuntime.jsxs("span", {
1511
- class: styles$4["caption"],
1401
+ class: "caption",
1512
1402
  children: [
1513
1403
  /* @__PURE__ */ jsxRuntime.jsx("span", {
1514
- class: styles$4.spacing
1404
+ class: "spacing"
1515
1405
  }),
1516
1406
  /* @__PURE__ */ jsxRuntime.jsxs("span", {
1517
- class: styles$4["caption-inner"],
1407
+ class: "caption-inner",
1518
1408
  children: [
1519
1409
  /* @__PURE__ */ jsxRuntime.jsx("svg", {
1520
1410
  viewBox: "0 0 24 24",
@@ -1526,12 +1416,12 @@ const ElmTable = qwik.component$((props) => {
1526
1416
  })
1527
1417
  }),
1528
1418
  /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
1529
- text: caption2
1419
+ text: caption
1530
1420
  })
1531
1421
  ]
1532
1422
  }),
1533
1423
  /* @__PURE__ */ jsxRuntime.jsx("span", {
1534
- class: styles$4.spacing
1424
+ class: "spacing"
1535
1425
  })
1536
1426
  ]
1537
1427
  })
@@ -1540,15 +1430,13 @@ const ElmTable = qwik.component$((props) => {
1540
1430
  ]
1541
1431
  });
1542
1432
  });
1543
- const thead = "_thead_1brzu_1";
1544
- const styles$3 = {
1545
- thead
1546
- };
1433
+ const styles$3 = ".thead {\n text-align: left;\n transition: background-color 400ms, color 400ms;\n border-bottom: 2px solid rgba(128, 128, 128, 0.5);\n}";
1547
1434
  const HasHeaderContext = qwik.createContextId("HasHeaderContext");
1548
1435
  const ElmTableHeader = qwik.component$(() => {
1436
+ qwik.useStylesScoped$(styles$3);
1549
1437
  qwik.useContextProvider(HasHeaderContext, true);
1550
1438
  return /* @__PURE__ */ jsxRuntime.jsx("thead", {
1551
- class: styles$3.thead,
1439
+ class: "thead",
1552
1440
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1553
1441
  });
1554
1442
  });
@@ -1558,55 +1446,41 @@ const ElmTableBody = qwik.component$(() => {
1558
1446
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1559
1447
  });
1560
1448
  });
1561
- const tr = "_tr_2ogbz_1";
1562
- const styles$2 = {
1563
- tr,
1564
- "has-row-header": "_has-row-header_2ogbz_20"
1565
- };
1449
+ const styles$2 = ".tr {\n transition: background-color 200ms;\n}\n.tr:nth-child(odd) {\n background-color: transparent;\n}\n.tr:nth-child(even) {\n background-color: rgba(0, 0, 0, 0.015);\n}\n[data-theme=dark] .tr:nth-child(even) {\n background-color: rgba(255, 255, 255, 0.015);\n}\n.tr:hover {\n background-color: rgba(105, 135, 184, 0.15);\n}\n[data-theme=dark] .tr:hover {\n background-color: rgba(105, 135, 184, 0.15);\n}\n\n.has-row-header td:first-child,\n.has-row-header tr:first-child {\n background-color: rgba(128, 128, 128, 0.15);\n}";
1566
1450
  const ElmTableRow = qwik.component$(() => {
1451
+ qwik.useStylesScoped$(styles$2);
1567
1452
  const hasRowHeader = qwik.useContext(HasRowHeaderContext);
1568
1453
  return /* @__PURE__ */ jsxRuntime.jsx("tr", {
1569
1454
  class: [
1570
- styles$2.tr,
1571
- hasRowHeader.value && styles$2["has-row-header"]
1455
+ "tr",
1456
+ hasRowHeader.value && "has-row-header"
1572
1457
  ],
1573
1458
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1574
1459
  });
1575
1460
  });
1576
- const common = "_common_1puhv_1";
1577
- const td = "_td_1puhv_24";
1578
- const th = "_th_1puhv_31";
1579
- const styles$1 = {
1580
- common,
1581
- td,
1582
- th
1583
- };
1461
+ const styles$1 = ".common {\n padding: 0.75rem 1rem;\n color: rgba(0, 0, 0, 0.7);\n border-right: 1px dotted rgba(0, 0, 0, 0.15);\n}\n.common::selection {\n color: rgba(255, 255, 255, 0.7);\n background-color: rgba(0, 0, 0, 0.7);\n}\n[data-theme=dark] .common {\n color: rgba(255, 255, 255, 0.7);\n}\n[data-theme=dark] .common::selection {\n color: rgba(0, 0, 0, 0.7);\n background-color: rgba(255, 255, 255, 0.7);\n}\n[data-theme=dark] .common {\n border-right: 1px dotted rgba(255, 255, 255, 0.15);\n}\n.common:last-child {\n border-right: none;\n}\n\n.td {\n border-top: 1px solid rgba(0, 0, 0, 0.15);\n}\n[data-theme=dark] .td {\n border-top-color: rgba(255, 255, 255, 0.15);\n}\n\n.th {\n background-color: rgba(128, 128, 128, 0.15);\n}";
1584
1462
  const ElmTableCell = qwik.component$((props) => {
1585
- const { hasHeader = false, text: text2 } = props;
1463
+ qwik.useStylesScoped$(styles$1);
1464
+ const { hasHeader = false, text } = props;
1586
1465
  const hasHeaderInjected = qwik.useContext(HasHeaderContext, false);
1587
1466
  const isHeader = hasHeader || hasHeaderInjected;
1588
1467
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
1589
1468
  children: isHeader ? /* @__PURE__ */ jsxRuntime.jsx("th", {
1590
1469
  class: [
1591
- styles$1.common,
1592
- styles$1.th
1470
+ "common",
1471
+ "th"
1593
1472
  ],
1594
- children: text2 ? text2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1473
+ children: text ? text : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1595
1474
  }) : /* @__PURE__ */ jsxRuntime.jsx("td", {
1596
1475
  class: [
1597
- styles$1.common,
1598
- styles$1.td
1476
+ "common",
1477
+ "td"
1599
1478
  ],
1600
- children: text2 ? text2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1479
+ children: text ? text : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1601
1480
  })
1602
1481
  });
1603
1482
  });
1604
- const column = "_column_1l2bp_7";
1605
- const styles = {
1606
- "jarkup-body": "_jarkup-body_1l2bp_1",
1607
- "column-list": "_column-list_1l2bp_7",
1608
- column
1609
- };
1483
+ const styles = ".jarkup-body {\n display: flex;\n flex-direction: column;\n gap: 2rem;\n}\n\n.column-list {\n box-sizing: content-box;\n padding-block: 0.25rem;\n width: 100%;\n display: flex;\n flex-direction: row;\n gap: 0.25rem;\n justify-content: space-around;\n overflow: auto;\n}\n\n.column {\n box-sizing: border-box;\n padding: 0.125rem;\n flex: var(--width-ratio, 1);\n}\n.column > * + * {\n margin-block-start: 2em;\n}";
1610
1484
  const convertInlineComponentsToPlainText = (inlineComponents) => {
1611
1485
  return inlineComponents.map((component) => {
1612
1486
  if (component.type === "Text") {
@@ -1617,6 +1491,7 @@ const convertInlineComponentsToPlainText = (inlineComponents) => {
1617
1491
  }).join("");
1618
1492
  };
1619
1493
  const ElmJarkup = qwik.component$((props) => {
1494
+ qwik.useStylesScoped$(styles);
1620
1495
  const render = (jsonComponents) => {
1621
1496
  return jsonComponents.map((component, index) => {
1622
1497
  const key = component.id || index;
@@ -1743,12 +1618,12 @@ const ElmJarkup = qwik.component$((props) => {
1743
1618
  }, key);
1744
1619
  case "ColumnList":
1745
1620
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
1746
- class: styles["column-list"],
1621
+ class: "column-list",
1747
1622
  children: render(component.slots.default)
1748
1623
  }, key);
1749
1624
  case "Column":
1750
1625
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
1751
- class: styles.column,
1626
+ class: "column",
1752
1627
  style: {
1753
1628
  "--width-ratio": component.props?.widthRatio || 1,
1754
1629
  width: component.props?.widthRatio ? `${component.props.widthRatio * 100}%` : void 0
@@ -1770,7 +1645,7 @@ const ElmJarkup = qwik.component$((props) => {
1770
1645
  });
1771
1646
  };
1772
1647
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
1773
- class: styles["jarkup-body"],
1648
+ class: "jarkup-body",
1774
1649
  children: render(props.jsonComponents)
1775
1650
  });
1776
1651
  });