@elmethis/qwik 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.qwik.cjs
CHANGED
|
@@ -6,10 +6,11 @@ const js = require("@mdi/js");
|
|
|
6
6
|
const shiki = require("shiki");
|
|
7
7
|
const katex = require("katex");
|
|
8
8
|
const lodashEs = require("lodash-es");
|
|
9
|
+
const marked = require("marked");
|
|
9
10
|
const caption$1 = "_caption_1j0ec_27";
|
|
10
11
|
const divider = "_divider_1j0ec_50";
|
|
11
12
|
const code$2 = "_code_1j0ec_1";
|
|
12
|
-
const styles$
|
|
13
|
+
const styles$t = {
|
|
13
14
|
"code-block": "_code-block_1j0ec_1",
|
|
14
15
|
"language-icon": "_language-icon_1j0ec_22",
|
|
15
16
|
caption: caption$1,
|
|
@@ -69,7 +70,7 @@ const Typescript = qwik.component$(({ size = 24, ...props }) => {
|
|
|
69
70
|
});
|
|
70
71
|
});
|
|
71
72
|
const path = "_path_1ccs2_1";
|
|
72
|
-
const styles$
|
|
73
|
+
const styles$s = {
|
|
73
74
|
path
|
|
74
75
|
};
|
|
75
76
|
const Bash = qwik.component$(({ size = 24, ...props }) => {
|
|
@@ -85,7 +86,7 @@ const Bash = qwik.component$(({ size = 24, ...props }) => {
|
|
|
85
86
|
d: "M4.24 4.24h119.53v119.53H4.24z"
|
|
86
87
|
}),
|
|
87
88
|
/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
88
|
-
class: styles$
|
|
89
|
+
class: styles$s.path,
|
|
89
90
|
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"
|
|
90
91
|
}),
|
|
91
92
|
/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
@@ -526,12 +527,12 @@ const C = qwik.component$(({ size = 24, ...props }) => {
|
|
|
526
527
|
});
|
|
527
528
|
});
|
|
528
529
|
const icon$3 = "_icon_1gvln_1";
|
|
529
|
-
const styles$
|
|
530
|
+
const styles$r = {
|
|
530
531
|
icon: icon$3
|
|
531
532
|
};
|
|
532
533
|
const ElmMdiIcon = qwik.component$(({ d, size = "1em", color, lightColor, darkColor }) => {
|
|
533
534
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
534
|
-
class: styles$
|
|
535
|
+
class: styles$r.icon,
|
|
535
536
|
style: {
|
|
536
537
|
"--color": lightColor ?? color,
|
|
537
538
|
"--dark-color": darkColor ?? color
|
|
@@ -640,7 +641,7 @@ const text$3 = "_text_1gswr_1";
|
|
|
640
641
|
const code$1 = "_code_1gswr_12";
|
|
641
642
|
const kbd = "_kbd_1gswr_21";
|
|
642
643
|
const link$1 = "_link_1gswr_47";
|
|
643
|
-
const styles$
|
|
644
|
+
const styles$q = {
|
|
644
645
|
text: text$3,
|
|
645
646
|
code: code$1,
|
|
646
647
|
kbd,
|
|
@@ -651,16 +652,16 @@ const textStyles = {
|
|
|
651
652
|
text: text$2
|
|
652
653
|
};
|
|
653
654
|
const icon$2 = "_icon_19g82_1";
|
|
654
|
-
const styles$
|
|
655
|
+
const styles$p = {
|
|
655
656
|
icon: icon$2
|
|
656
657
|
};
|
|
657
658
|
const ElmInlineIcon = qwik.component$(({ src, alt }) => {
|
|
658
659
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
659
|
-
class: styles$
|
|
660
|
+
class: styles$p.icon,
|
|
660
661
|
children: /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
661
662
|
src,
|
|
662
663
|
alt,
|
|
663
|
-
class: styles$
|
|
664
|
+
class: styles$p.icon
|
|
664
665
|
})
|
|
665
666
|
});
|
|
666
667
|
});
|
|
@@ -671,7 +672,7 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
671
672
|
}) : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {});
|
|
672
673
|
if (props.kbd) {
|
|
673
674
|
vnode = /* @__PURE__ */ jsxRuntime.jsx("kbd", {
|
|
674
|
-
class: styles$
|
|
675
|
+
class: styles$q.kbd,
|
|
675
676
|
children: vnode
|
|
676
677
|
});
|
|
677
678
|
}
|
|
@@ -697,13 +698,13 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
697
698
|
}
|
|
698
699
|
if (code2) {
|
|
699
700
|
vnode = /* @__PURE__ */ jsxRuntime.jsx("code", {
|
|
700
|
-
class: styles$
|
|
701
|
+
class: styles$q.code,
|
|
701
702
|
children: vnode
|
|
702
703
|
});
|
|
703
704
|
}
|
|
704
705
|
if (props.ruby) {
|
|
705
706
|
vnode = /* @__PURE__ */ jsxRuntime.jsxs("ruby", {
|
|
706
|
-
class: styles$
|
|
707
|
+
class: styles$q.text,
|
|
707
708
|
children: [
|
|
708
709
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
709
710
|
children: vnode
|
|
@@ -716,7 +717,7 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
716
717
|
}
|
|
717
718
|
const wrappedVnode = /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
718
719
|
class: [
|
|
719
|
-
styles$
|
|
720
|
+
styles$q.text,
|
|
720
721
|
textStyles.text
|
|
721
722
|
],
|
|
722
723
|
style: {
|
|
@@ -728,7 +729,7 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
728
729
|
});
|
|
729
730
|
if (props.href) {
|
|
730
731
|
return /* @__PURE__ */ jsxRuntime.jsxs("a", {
|
|
731
|
-
class: styles$
|
|
732
|
+
class: styles$q.link,
|
|
732
733
|
href: props.href,
|
|
733
734
|
style: {
|
|
734
735
|
"--font-size": size
|
|
@@ -746,7 +747,7 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
746
747
|
return wrappedVnode;
|
|
747
748
|
});
|
|
748
749
|
const code = "_code_1sw1e_1";
|
|
749
|
-
const styles$
|
|
750
|
+
const styles$o = {
|
|
750
751
|
code
|
|
751
752
|
};
|
|
752
753
|
const ElmShikiHighlighter = qwik.component$(({ code: code2, language = "txt" }) => {
|
|
@@ -771,7 +772,7 @@ const ElmShikiHighlighter = qwik.component$(({ code: code2, language = "txt" })
|
|
|
771
772
|
}
|
|
772
773
|
});
|
|
773
774
|
return /* @__PURE__ */ jsxRuntime.jsx("pre", {
|
|
774
|
-
class: styles$
|
|
775
|
+
class: styles$o.code,
|
|
775
776
|
dangerouslySetInnerHTML: rawHtml.value
|
|
776
777
|
});
|
|
777
778
|
});
|
|
@@ -790,19 +791,19 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
|
|
|
790
791
|
}
|
|
791
792
|
});
|
|
792
793
|
return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
|
|
793
|
-
class: styles$
|
|
794
|
+
class: styles$t["code-block"],
|
|
794
795
|
style: {
|
|
795
796
|
margin
|
|
796
797
|
},
|
|
797
798
|
children: [
|
|
798
799
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
799
|
-
class: styles$
|
|
800
|
+
class: styles$t["language-icon"],
|
|
800
801
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmLanguageIcon, {
|
|
801
802
|
language
|
|
802
803
|
})
|
|
803
804
|
}),
|
|
804
805
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
805
|
-
class: styles$
|
|
806
|
+
class: styles$t.caption,
|
|
806
807
|
children: /* @__PURE__ */ jsxRuntime.jsxs(ElmInlineText, {
|
|
807
808
|
children: [
|
|
808
809
|
caption2 || language,
|
|
@@ -811,7 +812,7 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
|
|
|
811
812
|
})
|
|
812
813
|
}),
|
|
813
814
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
814
|
-
class: styles$
|
|
815
|
+
class: styles$t["copy-icon"],
|
|
815
816
|
onClick$: copyToClipboard,
|
|
816
817
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
817
818
|
size: "1.25rem",
|
|
@@ -820,10 +821,10 @@ const ElmCodeBlock = qwik.component$(({ code: code2, language = "txt", caption:
|
|
|
820
821
|
})
|
|
821
822
|
}),
|
|
822
823
|
/* @__PURE__ */ jsxRuntime.jsx("hr", {
|
|
823
|
-
class: styles$
|
|
824
|
+
class: styles$t.divider
|
|
824
825
|
}),
|
|
825
826
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
826
|
-
class: styles$
|
|
827
|
+
class: styles$t.code,
|
|
827
828
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmShikiHighlighter, {
|
|
828
829
|
code: code2,
|
|
829
830
|
language
|
|
@@ -843,7 +844,7 @@ const ElmKatex = qwik.component$(({ expression, block = false }) => {
|
|
|
843
844
|
});
|
|
844
845
|
});
|
|
845
846
|
const parallax = "_parallax_1kb0k_1";
|
|
846
|
-
const styles$
|
|
847
|
+
const styles$n = {
|
|
847
848
|
"parallax-watcher": "_parallax-watcher_1kb0k_1",
|
|
848
849
|
parallax
|
|
849
850
|
};
|
|
@@ -852,13 +853,13 @@ const ElmParallax = qwik.component$(({ images }) => {
|
|
|
852
853
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
853
854
|
children: [
|
|
854
855
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
855
|
-
class: styles$
|
|
856
|
+
class: styles$n["parallax-watcher"],
|
|
856
857
|
"window:onScroll$": () => {
|
|
857
858
|
y.value = window.scrollY;
|
|
858
859
|
}
|
|
859
860
|
}),
|
|
860
861
|
images.map((image2, index) => /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
861
|
-
class: styles$
|
|
862
|
+
class: styles$n.parallax,
|
|
862
863
|
style: {
|
|
863
864
|
backgroundImage: `url(${image2})`,
|
|
864
865
|
transform: `scale(1.2) translateY(${y.value / (1e3 * (index + 1))}%)`,
|
|
@@ -872,7 +873,7 @@ const toggle = "_toggle_1nxqa_1";
|
|
|
872
873
|
const summary = "_summary_1nxqa_14";
|
|
873
874
|
const content$2 = "_content_1nxqa_60";
|
|
874
875
|
const footer = "_footer_1nxqa_80";
|
|
875
|
-
const styles$
|
|
876
|
+
const styles$m = {
|
|
876
877
|
toggle,
|
|
877
878
|
"toggle-closed": "_toggle-closed_1nxqa_7",
|
|
878
879
|
"toggle-open": "_toggle-open_1nxqa_10",
|
|
@@ -900,29 +901,29 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
|
|
|
900
901
|
});
|
|
901
902
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
902
903
|
class: [
|
|
903
|
-
styles$
|
|
904
|
+
styles$m.toggle,
|
|
904
905
|
{
|
|
905
|
-
[styles$
|
|
906
|
-
[styles$
|
|
906
|
+
[styles$m["toggle-open"]]: isOpen.value,
|
|
907
|
+
[styles$m["toggle-closed"]]: !isOpen.value
|
|
907
908
|
}
|
|
908
909
|
],
|
|
909
910
|
children: [
|
|
910
911
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
911
912
|
class: [
|
|
912
|
-
styles$
|
|
913
|
+
styles$m.summary,
|
|
913
914
|
{
|
|
914
|
-
[styles$
|
|
915
|
-
[styles$
|
|
915
|
+
[styles$m["summary-open"]]: isOpen.value,
|
|
916
|
+
[styles$m["summary-closed"]]: !isOpen.value
|
|
916
917
|
}
|
|
917
918
|
],
|
|
918
919
|
onClick$: toggle2,
|
|
919
920
|
children: [
|
|
920
921
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
921
922
|
class: [
|
|
922
|
-
styles$
|
|
923
|
+
styles$m["chevron-icon"],
|
|
923
924
|
{
|
|
924
|
-
[styles$
|
|
925
|
-
[styles$
|
|
925
|
+
[styles$m["chevron-icon-open"]]: isOpen.value,
|
|
926
|
+
[styles$m["chevron-icon-closed"]]: !isOpen.value
|
|
926
927
|
}
|
|
927
928
|
],
|
|
928
929
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
@@ -930,17 +931,17 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
|
|
|
930
931
|
})
|
|
931
932
|
}),
|
|
932
933
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
933
|
-
class: styles$
|
|
934
|
+
class: styles$m["summary-text"],
|
|
934
935
|
children: summary2 ? summary2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {
|
|
935
936
|
name: "summary"
|
|
936
937
|
})
|
|
937
938
|
}),
|
|
938
939
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
939
940
|
class: [
|
|
940
|
-
styles$
|
|
941
|
+
styles$m["plus-icon"],
|
|
941
942
|
{
|
|
942
|
-
[styles$
|
|
943
|
-
[styles$
|
|
943
|
+
[styles$m["plus-icon-open"]]: isOpen.value,
|
|
944
|
+
[styles$m["plus-icon-closed"]]: !isOpen.value
|
|
944
945
|
}
|
|
945
946
|
],
|
|
946
947
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
@@ -953,30 +954,30 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
|
|
|
953
954
|
}),
|
|
954
955
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
955
956
|
class: [
|
|
956
|
-
styles$
|
|
957
|
+
styles$m.content,
|
|
957
958
|
{
|
|
958
|
-
[styles$
|
|
959
|
-
[styles$
|
|
959
|
+
[styles$m["content-open"]]: isOpen.value,
|
|
960
|
+
[styles$m["content-closed"]]: !isOpen.value
|
|
960
961
|
}
|
|
961
962
|
],
|
|
962
963
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
963
964
|
}),
|
|
964
965
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
965
|
-
class: styles$
|
|
966
|
+
class: styles$m.footer,
|
|
966
967
|
onClick$: toggle2,
|
|
967
968
|
children: [
|
|
968
969
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
969
|
-
class: styles$
|
|
970
|
+
class: styles$m["footer-chevron-icon"],
|
|
970
971
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
971
972
|
d: js.mdiChevronRight,
|
|
972
973
|
color: "gray"
|
|
973
974
|
})
|
|
974
975
|
}),
|
|
975
976
|
/* @__PURE__ */ jsxRuntime.jsx("hr", {
|
|
976
|
-
class: styles$
|
|
977
|
+
class: styles$m["footer-line"]
|
|
977
978
|
}),
|
|
978
979
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
979
|
-
class: styles$
|
|
980
|
+
class: styles$m["footer-cross-icon"],
|
|
980
981
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
981
982
|
d: js.mdiPlus,
|
|
982
983
|
color: "#c56565"
|
|
@@ -986,17 +987,17 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
|
|
|
986
987
|
children: "CLOSE"
|
|
987
988
|
}),
|
|
988
989
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
989
|
-
class: styles$
|
|
990
|
+
class: styles$m["footer-cross-icon"],
|
|
990
991
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
991
992
|
d: js.mdiPlus,
|
|
992
993
|
color: "#c56565"
|
|
993
994
|
})
|
|
994
995
|
}),
|
|
995
996
|
/* @__PURE__ */ jsxRuntime.jsx("hr", {
|
|
996
|
-
class: styles$
|
|
997
|
+
class: styles$m["footer-line"]
|
|
997
998
|
}),
|
|
998
999
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
999
|
-
class: styles$
|
|
1000
|
+
class: styles$m["footer-chevron-icon"],
|
|
1000
1001
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
1001
1002
|
d: js.mdiChevronRight,
|
|
1002
1003
|
color: "gray"
|
|
@@ -1007,50 +1008,50 @@ const ElmToggle = qwik.component$(({ summary: summary2 }) => {
|
|
|
1007
1008
|
]
|
|
1008
1009
|
});
|
|
1009
1010
|
});
|
|
1010
|
-
const styles$
|
|
1011
|
+
const styles$l = {
|
|
1011
1012
|
"block-fallback": "_block-fallback_rt986_1"
|
|
1012
1013
|
};
|
|
1013
1014
|
const wrapper$1 = "_wrapper_1yktj_12";
|
|
1014
1015
|
const dot = "_dot_1yktj_22";
|
|
1015
|
-
const styles$
|
|
1016
|
+
const styles$k = {
|
|
1016
1017
|
wrapper: wrapper$1,
|
|
1017
1018
|
dot
|
|
1018
1019
|
};
|
|
1019
1020
|
const ElmDotLoadingIcon = qwik.component$(({ size = "4em", color = "#606875" }) => {
|
|
1020
1021
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1021
|
-
class: styles$
|
|
1022
|
+
class: styles$k.wrapper,
|
|
1022
1023
|
style: {
|
|
1023
1024
|
"--size": size,
|
|
1024
1025
|
"--color": color
|
|
1025
1026
|
},
|
|
1026
1027
|
children: [
|
|
1027
1028
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1028
|
-
class: styles$
|
|
1029
|
+
class: styles$k.dot,
|
|
1029
1030
|
"aria-hidden": "true"
|
|
1030
1031
|
}),
|
|
1031
1032
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1032
|
-
class: styles$
|
|
1033
|
+
class: styles$k.dot,
|
|
1033
1034
|
"aria-hidden": "true"
|
|
1034
1035
|
}),
|
|
1035
1036
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1036
|
-
class: styles$
|
|
1037
|
+
class: styles$k.dot,
|
|
1037
1038
|
"aria-hidden": "true"
|
|
1038
1039
|
})
|
|
1039
1040
|
]
|
|
1040
1041
|
});
|
|
1041
1042
|
});
|
|
1042
|
-
const styles$
|
|
1043
|
+
const styles$j = {
|
|
1043
1044
|
"rectangle-wave": "_rectangle-wave_hej9g_17"
|
|
1044
1045
|
};
|
|
1045
1046
|
const ElmRectangleWave = qwik.component$(() => {
|
|
1046
1047
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1047
1048
|
"aria-hidden": "true",
|
|
1048
|
-
class: styles$
|
|
1049
|
+
class: styles$j["rectangle-wave"]
|
|
1049
1050
|
});
|
|
1050
1051
|
});
|
|
1051
1052
|
const ElmBlockFallback = qwik.component$(({ height = "16rem" }) => {
|
|
1052
1053
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1053
|
-
class: styles$
|
|
1054
|
+
class: styles$l["block-fallback"],
|
|
1054
1055
|
style: {
|
|
1055
1056
|
"--height": height
|
|
1056
1057
|
},
|
|
@@ -1084,13 +1085,18 @@ function useElmethisTheme() {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
}));
|
|
1086
1087
|
qwik.useVisibleTask$(() => {
|
|
1087
|
-
const
|
|
1088
|
-
if (
|
|
1089
|
-
isDarkTheme.value =
|
|
1088
|
+
const localStorageTheme = localStorage.getItem(LOCAL_STORAGE_KEY);
|
|
1089
|
+
if (localStorageTheme != null) {
|
|
1090
|
+
isDarkTheme.value = localStorageTheme === "dark";
|
|
1091
|
+
document.documentElement.setAttribute("data-theme", localStorageTheme);
|
|
1092
|
+
const body2 = document.querySelector("body");
|
|
1093
|
+
if (body2 != null) {
|
|
1094
|
+
body2.style.colorScheme = localStorageTheme;
|
|
1095
|
+
}
|
|
1090
1096
|
} else {
|
|
1091
|
-
const
|
|
1092
|
-
if (
|
|
1093
|
-
isDarkTheme.value =
|
|
1097
|
+
const currentTheme = document.documentElement.getAttribute("data-theme");
|
|
1098
|
+
if (currentTheme != null) {
|
|
1099
|
+
isDarkTheme.value = currentTheme === "dark";
|
|
1094
1100
|
}
|
|
1095
1101
|
}
|
|
1096
1102
|
}, {
|
|
@@ -1102,7 +1108,7 @@ function useElmethisTheme() {
|
|
|
1102
1108
|
};
|
|
1103
1109
|
}
|
|
1104
1110
|
const icon$1 = "_icon_1husg_1";
|
|
1105
|
-
const styles$
|
|
1111
|
+
const styles$i = {
|
|
1106
1112
|
icon: icon$1
|
|
1107
1113
|
};
|
|
1108
1114
|
const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
@@ -1113,7 +1119,7 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
|
1113
1119
|
width: size,
|
|
1114
1120
|
height: size,
|
|
1115
1121
|
viewBox: "0 0 24 24",
|
|
1116
|
-
class: styles$
|
|
1122
|
+
class: styles$i.icon,
|
|
1117
1123
|
onClick$: toggleTheme,
|
|
1118
1124
|
children: [
|
|
1119
1125
|
/* @__PURE__ */ jsxRuntime.jsxs("g", {
|
|
@@ -1321,7 +1327,7 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
|
1321
1327
|
width: size,
|
|
1322
1328
|
height: size,
|
|
1323
1329
|
viewBox: "0 0 24 24",
|
|
1324
|
-
class: styles$
|
|
1330
|
+
class: styles$i.icon,
|
|
1325
1331
|
onClick$: toggleTheme,
|
|
1326
1332
|
children: [
|
|
1327
1333
|
/* @__PURE__ */ jsxRuntime.jsxs("path", {
|
|
@@ -1569,7 +1575,7 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
|
1569
1575
|
});
|
|
1570
1576
|
const image$1 = "_image_5s2ag_11";
|
|
1571
1577
|
const fallback = "_fallback_5s2ag_33";
|
|
1572
|
-
const styles$
|
|
1578
|
+
const styles$h = {
|
|
1573
1579
|
"block-image": "_block-image_5s2ag_1",
|
|
1574
1580
|
"image-container": "_image-container_5s2ag_11",
|
|
1575
1581
|
image: image$1,
|
|
@@ -1589,7 +1595,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1589
1595
|
}
|
|
1590
1596
|
});
|
|
1591
1597
|
const ImageComponent = /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
1592
|
-
class: styles$
|
|
1598
|
+
class: styles$h.image,
|
|
1593
1599
|
src,
|
|
1594
1600
|
alt: alt ?? caption2 ?? "Image",
|
|
1595
1601
|
width,
|
|
@@ -1602,7 +1608,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1602
1608
|
}
|
|
1603
1609
|
});
|
|
1604
1610
|
const Modal = /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1605
|
-
class: styles$
|
|
1611
|
+
class: styles$h["modal-container"],
|
|
1606
1612
|
style: {
|
|
1607
1613
|
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
1608
1614
|
"--opacity": isShowModal.value ? 1 : 0
|
|
@@ -1611,10 +1617,10 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1611
1617
|
children: ImageComponent
|
|
1612
1618
|
});
|
|
1613
1619
|
return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
|
|
1614
|
-
class: styles$
|
|
1620
|
+
class: styles$h["block-image"],
|
|
1615
1621
|
children: [
|
|
1616
1622
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1617
|
-
class: styles$
|
|
1623
|
+
class: styles$h["image-container"],
|
|
1618
1624
|
style: {
|
|
1619
1625
|
"--opacity": isLoading.value ? 1 : 0
|
|
1620
1626
|
},
|
|
@@ -1622,13 +1628,13 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1622
1628
|
children: [
|
|
1623
1629
|
ImageComponent,
|
|
1624
1630
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1625
|
-
class: styles$
|
|
1631
|
+
class: styles$h.fallback,
|
|
1626
1632
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmRectangleWave, {})
|
|
1627
1633
|
})
|
|
1628
1634
|
]
|
|
1629
1635
|
}),
|
|
1630
1636
|
caption2 && /* @__PURE__ */ jsxRuntime.jsxs("figcaption", {
|
|
1631
|
-
class: styles$
|
|
1637
|
+
class: styles$h["caption-box"],
|
|
1632
1638
|
style: {
|
|
1633
1639
|
"--opacity": isLoading.value ? 0 : 1
|
|
1634
1640
|
},
|
|
@@ -1654,7 +1660,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1654
1660
|
});
|
|
1655
1661
|
});
|
|
1656
1662
|
const file = "_file_14a0w_1";
|
|
1657
|
-
const styles$
|
|
1663
|
+
const styles$g = {
|
|
1658
1664
|
file,
|
|
1659
1665
|
"file-size": "_file-size_14a0w_16",
|
|
1660
1666
|
"download-icon": "_download-icon_14a0w_21"
|
|
@@ -1682,7 +1688,7 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
|
|
|
1682
1688
|
}
|
|
1683
1689
|
});
|
|
1684
1690
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1685
|
-
class: styles$
|
|
1691
|
+
class: styles$g.file,
|
|
1686
1692
|
children: [
|
|
1687
1693
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1688
1694
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
@@ -1696,13 +1702,13 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
|
|
|
1696
1702
|
})
|
|
1697
1703
|
}),
|
|
1698
1704
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1699
|
-
class: styles$
|
|
1705
|
+
class: styles$g["file-size"],
|
|
1700
1706
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
1701
1707
|
children: filesize
|
|
1702
1708
|
})
|
|
1703
1709
|
}),
|
|
1704
1710
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1705
|
-
class: styles$
|
|
1711
|
+
class: styles$g["download-icon"],
|
|
1706
1712
|
onClick$: downloadFile,
|
|
1707
1713
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
1708
1714
|
d: js.mdiDownload,
|
|
@@ -1719,7 +1725,7 @@ const content$1 = "_content_rgq1s_53";
|
|
|
1719
1725
|
const title = "_title_rgq1s_73";
|
|
1720
1726
|
const description = "_description_rgq1s_76";
|
|
1721
1727
|
const link = "_link_rgq1s_80";
|
|
1722
|
-
const styles$
|
|
1728
|
+
const styles$f = {
|
|
1723
1729
|
bookmark,
|
|
1724
1730
|
container: container$1,
|
|
1725
1731
|
image,
|
|
@@ -1730,37 +1736,37 @@ const styles$e = {
|
|
|
1730
1736
|
};
|
|
1731
1737
|
const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
|
|
1732
1738
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1733
|
-
class: styles$
|
|
1739
|
+
class: styles$f.bookmark,
|
|
1734
1740
|
children: /* @__PURE__ */ jsxRuntime.jsxs("a", {
|
|
1735
|
-
class: styles$
|
|
1741
|
+
class: styles$f.container,
|
|
1736
1742
|
href: url,
|
|
1737
1743
|
target: "_blank",
|
|
1738
1744
|
rel: "noopener noreferrer",
|
|
1739
1745
|
children: [
|
|
1740
1746
|
/* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
1741
|
-
class: styles$
|
|
1747
|
+
class: styles$f.image,
|
|
1742
1748
|
src: image2,
|
|
1743
1749
|
alt: "OGP Image"
|
|
1744
1750
|
}),
|
|
1745
1751
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1746
|
-
class: styles$
|
|
1752
|
+
class: styles$f.content,
|
|
1747
1753
|
children: [
|
|
1748
1754
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1749
|
-
class: styles$
|
|
1755
|
+
class: styles$f.title,
|
|
1750
1756
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
1751
1757
|
bold: true,
|
|
1752
1758
|
children: title2
|
|
1753
1759
|
})
|
|
1754
1760
|
}),
|
|
1755
1761
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1756
|
-
class: styles$
|
|
1762
|
+
class: styles$f.description,
|
|
1757
1763
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
1758
1764
|
size: "0.75rem",
|
|
1759
1765
|
children: description2
|
|
1760
1766
|
})
|
|
1761
1767
|
}),
|
|
1762
1768
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1763
|
-
class: styles$
|
|
1769
|
+
class: styles$f.link,
|
|
1764
1770
|
children: [
|
|
1765
1771
|
favicon ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineIcon, {
|
|
1766
1772
|
src: favicon
|
|
@@ -1782,22 +1788,22 @@ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, descri
|
|
|
1782
1788
|
});
|
|
1783
1789
|
const container = "_container_xsa12_1";
|
|
1784
1790
|
const text$1 = "_text_xsa12_30";
|
|
1785
|
-
const styles$
|
|
1791
|
+
const styles$e = {
|
|
1786
1792
|
container,
|
|
1787
1793
|
"link-container": "_link-container_xsa12_10",
|
|
1788
1794
|
text: text$1
|
|
1789
1795
|
};
|
|
1790
1796
|
const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
1791
1797
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", {
|
|
1792
|
-
class: styles$
|
|
1798
|
+
class: styles$e.container,
|
|
1793
1799
|
children: links.map((link2, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1794
1800
|
children: [
|
|
1795
1801
|
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
1796
|
-
class: styles$
|
|
1802
|
+
class: styles$e["link-container"],
|
|
1797
1803
|
onClick$: link2.onClick$,
|
|
1798
1804
|
children: [
|
|
1799
1805
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1800
|
-
class: styles$
|
|
1806
|
+
class: styles$e.icon,
|
|
1801
1807
|
style: {
|
|
1802
1808
|
"--delay": `${index * 100}ms`
|
|
1803
1809
|
},
|
|
@@ -1807,7 +1813,7 @@ const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
|
1807
1813
|
})
|
|
1808
1814
|
}),
|
|
1809
1815
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1810
|
-
class: styles$
|
|
1816
|
+
class: styles$e.text,
|
|
1811
1817
|
style: {
|
|
1812
1818
|
"--delay": `${index * 100 + 50}ms`
|
|
1813
1819
|
},
|
|
@@ -1818,7 +1824,7 @@ const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
|
1818
1824
|
]
|
|
1819
1825
|
}),
|
|
1820
1826
|
links.length !== index + 1 && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1821
|
-
class: styles$
|
|
1827
|
+
class: styles$e.text,
|
|
1822
1828
|
style: {
|
|
1823
1829
|
"--delay": `${index * 100 + 100}ms`
|
|
1824
1830
|
},
|
|
@@ -1835,7 +1841,7 @@ const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
|
1835
1841
|
const wrapper = "_wrapper_nud26_1";
|
|
1836
1842
|
const partial = "_partial_nud26_52";
|
|
1837
1843
|
const text = "_text_nud26_85";
|
|
1838
|
-
const styles$
|
|
1844
|
+
const styles$d = {
|
|
1839
1845
|
wrapper,
|
|
1840
1846
|
"wrapper--visible": "_wrapper--visible_nud26_20",
|
|
1841
1847
|
partial,
|
|
@@ -1863,9 +1869,9 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
|
|
|
1863
1869
|
});
|
|
1864
1870
|
return /* @__PURE__ */ jsxRuntime.jsxs("nav", {
|
|
1865
1871
|
class: [
|
|
1866
|
-
styles$
|
|
1872
|
+
styles$d.wrapper,
|
|
1867
1873
|
{
|
|
1868
|
-
[styles$
|
|
1874
|
+
[styles$d["wrapper--visible"]]: isVisible.value
|
|
1869
1875
|
}
|
|
1870
1876
|
],
|
|
1871
1877
|
style: {
|
|
@@ -1877,18 +1883,18 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
|
|
|
1877
1883
|
children: [
|
|
1878
1884
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1879
1885
|
"aria-hidden": "true",
|
|
1880
|
-
class: styles$
|
|
1886
|
+
class: styles$d.partial
|
|
1881
1887
|
}),
|
|
1882
1888
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1883
1889
|
"aria-hidden": "true",
|
|
1884
|
-
class: styles$
|
|
1890
|
+
class: styles$d.partial
|
|
1885
1891
|
}),
|
|
1886
1892
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1887
1893
|
"aria-hidden": "true",
|
|
1888
|
-
class: styles$
|
|
1894
|
+
class: styles$d.partial
|
|
1889
1895
|
}),
|
|
1890
1896
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1891
|
-
class: styles$
|
|
1897
|
+
class: styles$d.text,
|
|
1892
1898
|
children: "Back to Top"
|
|
1893
1899
|
})
|
|
1894
1900
|
]
|
|
@@ -1897,7 +1903,7 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
|
|
|
1897
1903
|
const blockquote = "_blockquote_b5jd8_1";
|
|
1898
1904
|
const body = "_body_b5jd8_18";
|
|
1899
1905
|
const icon = "_icon_b5jd8_23";
|
|
1900
|
-
const styles$
|
|
1906
|
+
const styles$c = {
|
|
1901
1907
|
blockquote,
|
|
1902
1908
|
body,
|
|
1903
1909
|
icon
|
|
@@ -1905,13 +1911,13 @@ const styles$b = {
|
|
|
1905
1911
|
const ElmBlockQuote = qwik.component$(({ cite }) => {
|
|
1906
1912
|
return /* @__PURE__ */ jsxRuntime.jsxs("blockquote", {
|
|
1907
1913
|
class: [
|
|
1908
|
-
styles$
|
|
1914
|
+
styles$c.blockquote,
|
|
1909
1915
|
textStyles.text
|
|
1910
1916
|
],
|
|
1911
1917
|
cite,
|
|
1912
1918
|
children: [
|
|
1913
1919
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1914
|
-
class: styles$
|
|
1920
|
+
class: styles$c.icon,
|
|
1915
1921
|
style: {
|
|
1916
1922
|
"--inset": "0.25rem auto auto 0.5rem"
|
|
1917
1923
|
},
|
|
@@ -1920,11 +1926,11 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
|
|
|
1920
1926
|
})
|
|
1921
1927
|
}),
|
|
1922
1928
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1923
|
-
class: styles$
|
|
1929
|
+
class: styles$c.body,
|
|
1924
1930
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1925
1931
|
}),
|
|
1926
1932
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1927
|
-
class: styles$
|
|
1933
|
+
class: styles$c.icon,
|
|
1928
1934
|
style: {
|
|
1929
1935
|
"--inset": "auto 0.25rem 0.25rem auto"
|
|
1930
1936
|
},
|
|
@@ -1938,7 +1944,7 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
|
|
|
1938
1944
|
const callout = "_callout_1d8l2_1";
|
|
1939
1945
|
const header = "_header_1d8l2_25";
|
|
1940
1946
|
const content = "_content_1d8l2_31";
|
|
1941
|
-
const styles$
|
|
1947
|
+
const styles$b = {
|
|
1942
1948
|
callout,
|
|
1943
1949
|
header,
|
|
1944
1950
|
content
|
|
@@ -1967,13 +1973,13 @@ const COLOR_MAP = Object.freeze({
|
|
|
1967
1973
|
});
|
|
1968
1974
|
const ElmCallout = qwik.component$(({ type = "note" }) => {
|
|
1969
1975
|
return /* @__PURE__ */ jsxRuntime.jsxs("aside", {
|
|
1970
|
-
class: styles$
|
|
1976
|
+
class: styles$b.callout,
|
|
1971
1977
|
style: {
|
|
1972
1978
|
"--callout-color": COLOR_MAP[type].code
|
|
1973
1979
|
},
|
|
1974
1980
|
children: [
|
|
1975
1981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1976
|
-
class: styles$
|
|
1982
|
+
class: styles$b.header,
|
|
1977
1983
|
children: [
|
|
1978
1984
|
/* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
1979
1985
|
d: COLOR_MAP[type].icon,
|
|
@@ -1986,26 +1992,26 @@ const ElmCallout = qwik.component$(({ type = "note" }) => {
|
|
|
1986
1992
|
]
|
|
1987
1993
|
}),
|
|
1988
1994
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1989
|
-
class: styles$
|
|
1995
|
+
class: styles$b.content,
|
|
1990
1996
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1991
1997
|
})
|
|
1992
1998
|
]
|
|
1993
1999
|
});
|
|
1994
2000
|
});
|
|
1995
2001
|
const hr = "_hr_1g58p_1";
|
|
1996
|
-
const styles$
|
|
2002
|
+
const styles$a = {
|
|
1997
2003
|
hr
|
|
1998
2004
|
};
|
|
1999
2005
|
const ElmDivider = qwik.component$(({ margin }) => {
|
|
2000
2006
|
return /* @__PURE__ */ jsxRuntime.jsx("hr", {
|
|
2001
|
-
class: styles$
|
|
2007
|
+
class: styles$a.hr,
|
|
2002
2008
|
style: {
|
|
2003
2009
|
marginBlock: margin
|
|
2004
2010
|
}
|
|
2005
2011
|
});
|
|
2006
2012
|
});
|
|
2007
2013
|
const fragment = "_fragment_1kofp_1";
|
|
2008
|
-
const styles$
|
|
2014
|
+
const styles$9 = {
|
|
2009
2015
|
fragment
|
|
2010
2016
|
};
|
|
2011
2017
|
const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
@@ -2021,7 +2027,7 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
|
2021
2027
|
}
|
|
2022
2028
|
});
|
|
2023
2029
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2024
|
-
class: styles$
|
|
2030
|
+
class: styles$9.fragment,
|
|
2025
2031
|
onClick$: () => handleHashClick(id),
|
|
2026
2032
|
children: "#"
|
|
2027
2033
|
});
|
|
@@ -2033,7 +2039,7 @@ const h3 = "_h3_16jof_85";
|
|
|
2033
2039
|
const h4 = "_h4_16jof_102";
|
|
2034
2040
|
const h5 = "_h5_16jof_106";
|
|
2035
2041
|
const h6 = "_h6_16jof_110";
|
|
2036
|
-
const styles$
|
|
2042
|
+
const styles$8 = {
|
|
2037
2043
|
"heading-common": "_heading-common_16jof_1",
|
|
2038
2044
|
h1,
|
|
2039
2045
|
h2,
|
|
@@ -2055,9 +2061,9 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
|
|
|
2055
2061
|
const Tag = `h${level}`;
|
|
2056
2062
|
return /* @__PURE__ */ jsxRuntime.jsxs(Tag, {
|
|
2057
2063
|
class: [
|
|
2058
|
-
styles$
|
|
2064
|
+
styles$8["heading-common"],
|
|
2059
2065
|
textStyles.text,
|
|
2060
|
-
styles$
|
|
2066
|
+
styles$8[`h${level}`]
|
|
2061
2067
|
],
|
|
2062
2068
|
style: {
|
|
2063
2069
|
"--font-size": `${SIZE_MAP[level]}em`
|
|
@@ -2076,13 +2082,13 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
|
|
|
2076
2082
|
})
|
|
2077
2083
|
}),
|
|
2078
2084
|
level === 2 && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2079
|
-
class: styles$
|
|
2085
|
+
class: styles$8["h2__underline"],
|
|
2080
2086
|
"aria-hidden": "true"
|
|
2081
2087
|
})
|
|
2082
2088
|
]
|
|
2083
2089
|
});
|
|
2084
2090
|
});
|
|
2085
|
-
const styles$
|
|
2091
|
+
const styles$7 = {
|
|
2086
2092
|
"elmethis-list-common": "_elmethis-list-common_14epx_1",
|
|
2087
2093
|
"elmethis-bulleted-list": "_elmethis-bulleted-list_14epx_9",
|
|
2088
2094
|
"elmethis-numbered-list": "_elmethis-numbered-list_14epx_24"
|
|
@@ -2092,8 +2098,8 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
|
|
|
2092
2098
|
return /* @__PURE__ */ jsxRuntime.jsx("ol", {
|
|
2093
2099
|
class: [
|
|
2094
2100
|
textStyles.text,
|
|
2095
|
-
styles$
|
|
2096
|
-
styles$
|
|
2101
|
+
styles$7["elmethis-list-common"],
|
|
2102
|
+
styles$7["elmethis-numbered-list"]
|
|
2097
2103
|
],
|
|
2098
2104
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2099
2105
|
});
|
|
@@ -2101,15 +2107,15 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
|
|
|
2101
2107
|
return /* @__PURE__ */ jsxRuntime.jsx("ul", {
|
|
2102
2108
|
class: [
|
|
2103
2109
|
textStyles.text,
|
|
2104
|
-
styles$
|
|
2105
|
-
styles$
|
|
2110
|
+
styles$7["elmethis-list-common"],
|
|
2111
|
+
styles$7["elmethis-bulleted-list"]
|
|
2106
2112
|
],
|
|
2107
2113
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2108
2114
|
});
|
|
2109
2115
|
}
|
|
2110
2116
|
});
|
|
2111
2117
|
const paragraph = "_paragraph_jz10s_1";
|
|
2112
|
-
const styles$
|
|
2118
|
+
const styles$6 = {
|
|
2113
2119
|
paragraph
|
|
2114
2120
|
};
|
|
2115
2121
|
const useInView = (props) => {
|
|
@@ -2136,7 +2142,7 @@ const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
|
|
|
2136
2142
|
return /* @__PURE__ */ jsxRuntime.jsx("p", {
|
|
2137
2143
|
ref,
|
|
2138
2144
|
class: [
|
|
2139
|
-
styles$
|
|
2145
|
+
styles$6.paragraph,
|
|
2140
2146
|
textStyles.text
|
|
2141
2147
|
],
|
|
2142
2148
|
style: {
|
|
@@ -2150,7 +2156,7 @@ const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
|
|
|
2150
2156
|
const table = "_table_x2nyq_1";
|
|
2151
2157
|
const caption = "_caption_x2nyq_8";
|
|
2152
2158
|
const spacing = "_spacing_x2nyq_25";
|
|
2153
|
-
const styles$
|
|
2159
|
+
const styles$5 = {
|
|
2154
2160
|
table,
|
|
2155
2161
|
caption,
|
|
2156
2162
|
"caption-inner": "_caption-inner_x2nyq_18",
|
|
@@ -2163,7 +2169,7 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2163
2169
|
qwik.useContextProvider(HasRowHeaderContext, hasRowHeaderComputed);
|
|
2164
2170
|
return /* @__PURE__ */ jsxRuntime.jsxs("table", {
|
|
2165
2171
|
class: [
|
|
2166
|
-
styles$
|
|
2172
|
+
styles$5.table,
|
|
2167
2173
|
textStyles.text
|
|
2168
2174
|
],
|
|
2169
2175
|
style: {
|
|
@@ -2172,13 +2178,13 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2172
2178
|
children: [
|
|
2173
2179
|
caption2 && /* @__PURE__ */ jsxRuntime.jsx("caption", {
|
|
2174
2180
|
children: /* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
2175
|
-
class: styles$
|
|
2181
|
+
class: styles$5.caption,
|
|
2176
2182
|
children: [
|
|
2177
2183
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2178
|
-
class: styles$
|
|
2184
|
+
class: styles$5.spacing
|
|
2179
2185
|
}),
|
|
2180
2186
|
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
2181
|
-
class: styles$
|
|
2187
|
+
class: styles$5["caption-inner"],
|
|
2182
2188
|
children: [
|
|
2183
2189
|
/* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
2184
2190
|
viewBox: "0 0 24 24",
|
|
@@ -2195,7 +2201,7 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2195
2201
|
]
|
|
2196
2202
|
}),
|
|
2197
2203
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2198
|
-
class: styles$
|
|
2204
|
+
class: styles$5.spacing
|
|
2199
2205
|
})
|
|
2200
2206
|
]
|
|
2201
2207
|
})
|
|
@@ -2205,14 +2211,14 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2205
2211
|
});
|
|
2206
2212
|
});
|
|
2207
2213
|
const thead = "_thead_1brzu_1";
|
|
2208
|
-
const styles$
|
|
2214
|
+
const styles$4 = {
|
|
2209
2215
|
thead
|
|
2210
2216
|
};
|
|
2211
2217
|
const HasHeaderContext = qwik.createContextId("HasHeaderContext");
|
|
2212
2218
|
const ElmTableHeader = qwik.component$(() => {
|
|
2213
2219
|
qwik.useContextProvider(HasHeaderContext, true);
|
|
2214
2220
|
return /* @__PURE__ */ jsxRuntime.jsx("thead", {
|
|
2215
|
-
class: styles$
|
|
2221
|
+
class: styles$4.thead,
|
|
2216
2222
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2217
2223
|
});
|
|
2218
2224
|
});
|
|
@@ -2223,7 +2229,7 @@ const ElmTableBody = qwik.component$(() => {
|
|
|
2223
2229
|
});
|
|
2224
2230
|
});
|
|
2225
2231
|
const tr = "_tr_2ogbz_1";
|
|
2226
|
-
const styles$
|
|
2232
|
+
const styles$3 = {
|
|
2227
2233
|
tr,
|
|
2228
2234
|
"has-row-header": "_has-row-header_2ogbz_20"
|
|
2229
2235
|
};
|
|
@@ -2231,8 +2237,8 @@ const ElmTableRow = qwik.component$(() => {
|
|
|
2231
2237
|
const hasRowHeader = qwik.useContext(HasRowHeaderContext);
|
|
2232
2238
|
return /* @__PURE__ */ jsxRuntime.jsx("tr", {
|
|
2233
2239
|
class: [
|
|
2234
|
-
styles$
|
|
2235
|
-
hasRowHeader.value && styles$
|
|
2240
|
+
styles$3.tr,
|
|
2241
|
+
hasRowHeader.value && styles$3["has-row-header"]
|
|
2236
2242
|
],
|
|
2237
2243
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2238
2244
|
});
|
|
@@ -2240,7 +2246,7 @@ const ElmTableRow = qwik.component$(() => {
|
|
|
2240
2246
|
const common = "_common_1puhv_1";
|
|
2241
2247
|
const td = "_td_1puhv_24";
|
|
2242
2248
|
const th = "_th_1puhv_31";
|
|
2243
|
-
const styles$
|
|
2249
|
+
const styles$2 = {
|
|
2244
2250
|
common,
|
|
2245
2251
|
td,
|
|
2246
2252
|
th
|
|
@@ -2252,21 +2258,21 @@ const ElmTableCell = qwik.component$((props) => {
|
|
|
2252
2258
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2253
2259
|
children: isHeader ? /* @__PURE__ */ jsxRuntime.jsx("th", {
|
|
2254
2260
|
class: [
|
|
2255
|
-
styles$
|
|
2256
|
-
styles$
|
|
2261
|
+
styles$2.common,
|
|
2262
|
+
styles$2.th
|
|
2257
2263
|
],
|
|
2258
2264
|
children: text2 ? text2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2259
2265
|
}) : /* @__PURE__ */ jsxRuntime.jsx("td", {
|
|
2260
2266
|
class: [
|
|
2261
|
-
styles$
|
|
2262
|
-
styles$
|
|
2267
|
+
styles$2.common,
|
|
2268
|
+
styles$2.td
|
|
2263
2269
|
],
|
|
2264
2270
|
children: text2 ? text2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2265
2271
|
})
|
|
2266
2272
|
});
|
|
2267
2273
|
});
|
|
2268
2274
|
const column = "_column_1l2bp_7";
|
|
2269
|
-
const styles = {
|
|
2275
|
+
const styles$1 = {
|
|
2270
2276
|
"jarkup-body": "_jarkup-body_1l2bp_1",
|
|
2271
2277
|
"column-list": "_column-list_1l2bp_7",
|
|
2272
2278
|
column
|
|
@@ -2407,12 +2413,12 @@ const ElmJarkup = qwik.component$((props) => {
|
|
|
2407
2413
|
}, key);
|
|
2408
2414
|
case "ColumnList":
|
|
2409
2415
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2410
|
-
class: styles["column-list"],
|
|
2416
|
+
class: styles$1["column-list"],
|
|
2411
2417
|
children: render(component.slots.default)
|
|
2412
2418
|
}, key);
|
|
2413
2419
|
case "Column":
|
|
2414
2420
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2415
|
-
class: styles.column,
|
|
2421
|
+
class: styles$1.column,
|
|
2416
2422
|
style: {
|
|
2417
2423
|
"--width-ratio": component.props?.widthRatio || 1,
|
|
2418
2424
|
width: component.props?.widthRatio ? `${component.props.widthRatio * 100}%` : void 0
|
|
@@ -2434,10 +2440,175 @@ const ElmJarkup = qwik.component$((props) => {
|
|
|
2434
2440
|
});
|
|
2435
2441
|
};
|
|
2436
2442
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2437
|
-
class: styles["jarkup-body"],
|
|
2443
|
+
class: styles$1["jarkup-body"],
|
|
2438
2444
|
children: render(props.jsonComponents)
|
|
2439
2445
|
});
|
|
2440
2446
|
});
|
|
2447
|
+
const styles = {
|
|
2448
|
+
"markdown-body": "_markdown-body_11s6o_1"
|
|
2449
|
+
};
|
|
2450
|
+
const renderByToken = (tokens) => {
|
|
2451
|
+
const results = [];
|
|
2452
|
+
for (const token of tokens) {
|
|
2453
|
+
switch (token.type) {
|
|
2454
|
+
case "blockquote":
|
|
2455
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
2456
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmBlockQuote, {
|
|
2457
|
+
children: renderByToken(token.tokens)
|
|
2458
|
+
}));
|
|
2459
|
+
}
|
|
2460
|
+
break;
|
|
2461
|
+
case "br":
|
|
2462
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx("br", {}));
|
|
2463
|
+
break;
|
|
2464
|
+
case "code":
|
|
2465
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmCodeBlock, {
|
|
2466
|
+
code: token.text.trim(),
|
|
2467
|
+
language: token.lang
|
|
2468
|
+
}));
|
|
2469
|
+
break;
|
|
2470
|
+
case "codespan":
|
|
2471
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2472
|
+
text: token.text,
|
|
2473
|
+
code: true
|
|
2474
|
+
}));
|
|
2475
|
+
break;
|
|
2476
|
+
case "def":
|
|
2477
|
+
break;
|
|
2478
|
+
case "del":
|
|
2479
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2480
|
+
strikethrough: true,
|
|
2481
|
+
children: renderByToken(token.tokens)
|
|
2482
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2483
|
+
text: token.text,
|
|
2484
|
+
strikethrough: true
|
|
2485
|
+
}));
|
|
2486
|
+
break;
|
|
2487
|
+
case "em":
|
|
2488
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2489
|
+
italic: true,
|
|
2490
|
+
children: renderByToken(token.tokens)
|
|
2491
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2492
|
+
text: token.text,
|
|
2493
|
+
italic: true
|
|
2494
|
+
}));
|
|
2495
|
+
break;
|
|
2496
|
+
case "escape":
|
|
2497
|
+
break;
|
|
2498
|
+
case "heading": {
|
|
2499
|
+
const level = token.depth;
|
|
2500
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
2501
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmHeading, {
|
|
2502
|
+
level,
|
|
2503
|
+
children: renderByToken(token.tokens)
|
|
2504
|
+
}));
|
|
2505
|
+
} else {
|
|
2506
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmHeading, {
|
|
2507
|
+
level,
|
|
2508
|
+
text: token.text
|
|
2509
|
+
}));
|
|
2510
|
+
}
|
|
2511
|
+
break;
|
|
2512
|
+
}
|
|
2513
|
+
case "hr":
|
|
2514
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmDivider, {}));
|
|
2515
|
+
break;
|
|
2516
|
+
case "html":
|
|
2517
|
+
break;
|
|
2518
|
+
case "image":
|
|
2519
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmBlockImage, {
|
|
2520
|
+
enableModal: true,
|
|
2521
|
+
src: token.href,
|
|
2522
|
+
alt: token.text
|
|
2523
|
+
}));
|
|
2524
|
+
break;
|
|
2525
|
+
case "link":
|
|
2526
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2527
|
+
href: token.href,
|
|
2528
|
+
children: renderByToken(token.tokens)
|
|
2529
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2530
|
+
text: token.text,
|
|
2531
|
+
href: token.href
|
|
2532
|
+
}));
|
|
2533
|
+
break;
|
|
2534
|
+
case "list": {
|
|
2535
|
+
const listItems = token.items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx("li", {
|
|
2536
|
+
children: renderByToken(item.tokens)
|
|
2537
|
+
}, index));
|
|
2538
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmList, {
|
|
2539
|
+
listStyle: token.ordered ? "ordered" : "unordered",
|
|
2540
|
+
children: listItems
|
|
2541
|
+
}));
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
case "list_item":
|
|
2545
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx("li", {
|
|
2546
|
+
children: token.tokens && token.tokens.length !== 0 ? renderByToken(token.tokens) : token.text
|
|
2547
|
+
}));
|
|
2548
|
+
break;
|
|
2549
|
+
case "paragraph":
|
|
2550
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
2551
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmParagraph, {
|
|
2552
|
+
children: renderByToken(token.tokens)
|
|
2553
|
+
}));
|
|
2554
|
+
}
|
|
2555
|
+
break;
|
|
2556
|
+
case "space":
|
|
2557
|
+
break;
|
|
2558
|
+
case "strong":
|
|
2559
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2560
|
+
bold: true,
|
|
2561
|
+
children: renderByToken(token.tokens)
|
|
2562
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2563
|
+
text: token.text,
|
|
2564
|
+
bold: true
|
|
2565
|
+
}));
|
|
2566
|
+
break;
|
|
2567
|
+
case "table": {
|
|
2568
|
+
const renderTableCells = (cells) => cells.map((cell, index) => /* @__PURE__ */ jsxRuntime.jsx(ElmTableCell, {
|
|
2569
|
+
children: renderByToken(cell.tokens)
|
|
2570
|
+
}, index));
|
|
2571
|
+
const headerRow = /* @__PURE__ */ jsxRuntime.jsx(ElmTableRow, {
|
|
2572
|
+
children: renderTableCells(token.header)
|
|
2573
|
+
});
|
|
2574
|
+
const bodyRows = token.rows.map((row, index) => /* @__PURE__ */ jsxRuntime.jsx(ElmTableRow, {
|
|
2575
|
+
children: renderTableCells(row)
|
|
2576
|
+
}, index));
|
|
2577
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsxs(ElmTable, {
|
|
2578
|
+
children: [
|
|
2579
|
+
/* @__PURE__ */ jsxRuntime.jsx(ElmTableHeader, {
|
|
2580
|
+
"q:slot": "header",
|
|
2581
|
+
children: headerRow
|
|
2582
|
+
}),
|
|
2583
|
+
/* @__PURE__ */ jsxRuntime.jsx(ElmTableBody, {
|
|
2584
|
+
"q:slot": "body",
|
|
2585
|
+
children: bodyRows
|
|
2586
|
+
})
|
|
2587
|
+
]
|
|
2588
|
+
}));
|
|
2589
|
+
break;
|
|
2590
|
+
}
|
|
2591
|
+
case "text":
|
|
2592
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2593
|
+
children: renderByToken(token.tokens)
|
|
2594
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(qwik.Fragment, {
|
|
2595
|
+
children: token.text
|
|
2596
|
+
}));
|
|
2597
|
+
break;
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
return results;
|
|
2601
|
+
};
|
|
2602
|
+
const ElmMarkdown = qwik.component$(({ markdown }) => {
|
|
2603
|
+
const tokens = marked.marked.setOptions({
|
|
2604
|
+
gfm: true
|
|
2605
|
+
}).lexer(markdown);
|
|
2606
|
+
const elements = renderByToken(tokens);
|
|
2607
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2608
|
+
class: styles["markdown-body"],
|
|
2609
|
+
children: elements
|
|
2610
|
+
});
|
|
2611
|
+
});
|
|
2441
2612
|
exports.ElmBlockFallback = ElmBlockFallback;
|
|
2442
2613
|
exports.ElmBlockImage = ElmBlockImage;
|
|
2443
2614
|
exports.ElmBlockQuote = ElmBlockQuote;
|
|
@@ -2456,6 +2627,7 @@ exports.ElmJarkup = ElmJarkup;
|
|
|
2456
2627
|
exports.ElmKatex = ElmKatex;
|
|
2457
2628
|
exports.ElmLanguageIcon = ElmLanguageIcon;
|
|
2458
2629
|
exports.ElmList = ElmList;
|
|
2630
|
+
exports.ElmMarkdown = ElmMarkdown;
|
|
2459
2631
|
exports.ElmMdiIcon = ElmMdiIcon;
|
|
2460
2632
|
exports.ElmPageTop = ElmPageTop;
|
|
2461
2633
|
exports.ElmParagraph = ElmParagraph;
|