@elmethis/qwik 0.0.19 → 0.0.20
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
|
},
|
|
@@ -1102,7 +1103,7 @@ function useElmethisTheme() {
|
|
|
1102
1103
|
};
|
|
1103
1104
|
}
|
|
1104
1105
|
const icon$1 = "_icon_1husg_1";
|
|
1105
|
-
const styles$
|
|
1106
|
+
const styles$i = {
|
|
1106
1107
|
icon: icon$1
|
|
1107
1108
|
};
|
|
1108
1109
|
const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
@@ -1113,7 +1114,7 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
|
1113
1114
|
width: size,
|
|
1114
1115
|
height: size,
|
|
1115
1116
|
viewBox: "0 0 24 24",
|
|
1116
|
-
class: styles$
|
|
1117
|
+
class: styles$i.icon,
|
|
1117
1118
|
onClick$: toggleTheme,
|
|
1118
1119
|
children: [
|
|
1119
1120
|
/* @__PURE__ */ jsxRuntime.jsxs("g", {
|
|
@@ -1321,7 +1322,7 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
|
1321
1322
|
width: size,
|
|
1322
1323
|
height: size,
|
|
1323
1324
|
viewBox: "0 0 24 24",
|
|
1324
|
-
class: styles$
|
|
1325
|
+
class: styles$i.icon,
|
|
1325
1326
|
onClick$: toggleTheme,
|
|
1326
1327
|
children: [
|
|
1327
1328
|
/* @__PURE__ */ jsxRuntime.jsxs("path", {
|
|
@@ -1569,7 +1570,7 @@ const ElmToggleTheme = qwik.component$(({ size = "2rem" }) => {
|
|
|
1569
1570
|
});
|
|
1570
1571
|
const image$1 = "_image_5s2ag_11";
|
|
1571
1572
|
const fallback = "_fallback_5s2ag_33";
|
|
1572
|
-
const styles$
|
|
1573
|
+
const styles$h = {
|
|
1573
1574
|
"block-image": "_block-image_5s2ag_1",
|
|
1574
1575
|
"image-container": "_image-container_5s2ag_11",
|
|
1575
1576
|
image: image$1,
|
|
@@ -1589,7 +1590,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1589
1590
|
}
|
|
1590
1591
|
});
|
|
1591
1592
|
const ImageComponent = /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
1592
|
-
class: styles$
|
|
1593
|
+
class: styles$h.image,
|
|
1593
1594
|
src,
|
|
1594
1595
|
alt: alt ?? caption2 ?? "Image",
|
|
1595
1596
|
width,
|
|
@@ -1602,7 +1603,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1602
1603
|
}
|
|
1603
1604
|
});
|
|
1604
1605
|
const Modal = /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1605
|
-
class: styles$
|
|
1606
|
+
class: styles$h["modal-container"],
|
|
1606
1607
|
style: {
|
|
1607
1608
|
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
1608
1609
|
"--opacity": isShowModal.value ? 1 : 0
|
|
@@ -1611,10 +1612,10 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1611
1612
|
children: ImageComponent
|
|
1612
1613
|
});
|
|
1613
1614
|
return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
|
|
1614
|
-
class: styles$
|
|
1615
|
+
class: styles$h["block-image"],
|
|
1615
1616
|
children: [
|
|
1616
1617
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1617
|
-
class: styles$
|
|
1618
|
+
class: styles$h["image-container"],
|
|
1618
1619
|
style: {
|
|
1619
1620
|
"--opacity": isLoading.value ? 1 : 0
|
|
1620
1621
|
},
|
|
@@ -1622,13 +1623,13 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1622
1623
|
children: [
|
|
1623
1624
|
ImageComponent,
|
|
1624
1625
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1625
|
-
class: styles$
|
|
1626
|
+
class: styles$h.fallback,
|
|
1626
1627
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmRectangleWave, {})
|
|
1627
1628
|
})
|
|
1628
1629
|
]
|
|
1629
1630
|
}),
|
|
1630
1631
|
caption2 && /* @__PURE__ */ jsxRuntime.jsxs("figcaption", {
|
|
1631
|
-
class: styles$
|
|
1632
|
+
class: styles$h["caption-box"],
|
|
1632
1633
|
style: {
|
|
1633
1634
|
"--opacity": isLoading.value ? 0 : 1
|
|
1634
1635
|
},
|
|
@@ -1654,7 +1655,7 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
1654
1655
|
});
|
|
1655
1656
|
});
|
|
1656
1657
|
const file = "_file_14a0w_1";
|
|
1657
|
-
const styles$
|
|
1658
|
+
const styles$g = {
|
|
1658
1659
|
file,
|
|
1659
1660
|
"file-size": "_file-size_14a0w_16",
|
|
1660
1661
|
"download-icon": "_download-icon_14a0w_21"
|
|
@@ -1682,7 +1683,7 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
|
|
|
1682
1683
|
}
|
|
1683
1684
|
});
|
|
1684
1685
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1685
|
-
class: styles$
|
|
1686
|
+
class: styles$g.file,
|
|
1686
1687
|
children: [
|
|
1687
1688
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1688
1689
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
@@ -1696,13 +1697,13 @@ const ElmFile = qwik.component$(({ name, src, filesize }) => {
|
|
|
1696
1697
|
})
|
|
1697
1698
|
}),
|
|
1698
1699
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1699
|
-
class: styles$
|
|
1700
|
+
class: styles$g["file-size"],
|
|
1700
1701
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
1701
1702
|
children: filesize
|
|
1702
1703
|
})
|
|
1703
1704
|
}),
|
|
1704
1705
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1705
|
-
class: styles$
|
|
1706
|
+
class: styles$g["download-icon"],
|
|
1706
1707
|
onClick$: downloadFile,
|
|
1707
1708
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
1708
1709
|
d: js.mdiDownload,
|
|
@@ -1719,7 +1720,7 @@ const content$1 = "_content_rgq1s_53";
|
|
|
1719
1720
|
const title = "_title_rgq1s_73";
|
|
1720
1721
|
const description = "_description_rgq1s_76";
|
|
1721
1722
|
const link = "_link_rgq1s_80";
|
|
1722
|
-
const styles$
|
|
1723
|
+
const styles$f = {
|
|
1723
1724
|
bookmark,
|
|
1724
1725
|
container: container$1,
|
|
1725
1726
|
image,
|
|
@@ -1730,37 +1731,37 @@ const styles$e = {
|
|
|
1730
1731
|
};
|
|
1731
1732
|
const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, description: description2, favicon }) => {
|
|
1732
1733
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1733
|
-
class: styles$
|
|
1734
|
+
class: styles$f.bookmark,
|
|
1734
1735
|
children: /* @__PURE__ */ jsxRuntime.jsxs("a", {
|
|
1735
|
-
class: styles$
|
|
1736
|
+
class: styles$f.container,
|
|
1736
1737
|
href: url,
|
|
1737
1738
|
target: "_blank",
|
|
1738
1739
|
rel: "noopener noreferrer",
|
|
1739
1740
|
children: [
|
|
1740
1741
|
/* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
1741
|
-
class: styles$
|
|
1742
|
+
class: styles$f.image,
|
|
1742
1743
|
src: image2,
|
|
1743
1744
|
alt: "OGP Image"
|
|
1744
1745
|
}),
|
|
1745
1746
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1746
|
-
class: styles$
|
|
1747
|
+
class: styles$f.content,
|
|
1747
1748
|
children: [
|
|
1748
1749
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1749
|
-
class: styles$
|
|
1750
|
+
class: styles$f.title,
|
|
1750
1751
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
1751
1752
|
bold: true,
|
|
1752
1753
|
children: title2
|
|
1753
1754
|
})
|
|
1754
1755
|
}),
|
|
1755
1756
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1756
|
-
class: styles$
|
|
1757
|
+
class: styles$f.description,
|
|
1757
1758
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
1758
1759
|
size: "0.75rem",
|
|
1759
1760
|
children: description2
|
|
1760
1761
|
})
|
|
1761
1762
|
}),
|
|
1762
1763
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1763
|
-
class: styles$
|
|
1764
|
+
class: styles$f.link,
|
|
1764
1765
|
children: [
|
|
1765
1766
|
favicon ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineIcon, {
|
|
1766
1767
|
src: favicon
|
|
@@ -1782,22 +1783,22 @@ const ElmBookmark = qwik.component$(({ url, image: image2, title: title2, descri
|
|
|
1782
1783
|
});
|
|
1783
1784
|
const container = "_container_xsa12_1";
|
|
1784
1785
|
const text$1 = "_text_xsa12_30";
|
|
1785
|
-
const styles$
|
|
1786
|
+
const styles$e = {
|
|
1786
1787
|
container,
|
|
1787
1788
|
"link-container": "_link-container_xsa12_10",
|
|
1788
1789
|
text: text$1
|
|
1789
1790
|
};
|
|
1790
1791
|
const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
1791
1792
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", {
|
|
1792
|
-
class: styles$
|
|
1793
|
+
class: styles$e.container,
|
|
1793
1794
|
children: links.map((link2, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1794
1795
|
children: [
|
|
1795
1796
|
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
1796
|
-
class: styles$
|
|
1797
|
+
class: styles$e["link-container"],
|
|
1797
1798
|
onClick$: link2.onClick$,
|
|
1798
1799
|
children: [
|
|
1799
1800
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1800
|
-
class: styles$
|
|
1801
|
+
class: styles$e.icon,
|
|
1801
1802
|
style: {
|
|
1802
1803
|
"--delay": `${index * 100}ms`
|
|
1803
1804
|
},
|
|
@@ -1807,7 +1808,7 @@ const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
|
1807
1808
|
})
|
|
1808
1809
|
}),
|
|
1809
1810
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1810
|
-
class: styles$
|
|
1811
|
+
class: styles$e.text,
|
|
1811
1812
|
style: {
|
|
1812
1813
|
"--delay": `${index * 100 + 50}ms`
|
|
1813
1814
|
},
|
|
@@ -1818,7 +1819,7 @@ const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
|
1818
1819
|
]
|
|
1819
1820
|
}),
|
|
1820
1821
|
links.length !== index + 1 && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1821
|
-
class: styles$
|
|
1822
|
+
class: styles$e.text,
|
|
1822
1823
|
style: {
|
|
1823
1824
|
"--delay": `${index * 100 + 100}ms`
|
|
1824
1825
|
},
|
|
@@ -1835,7 +1836,7 @@ const ElmBreadcrumb = qwik.component$(({ links }) => {
|
|
|
1835
1836
|
const wrapper = "_wrapper_nud26_1";
|
|
1836
1837
|
const partial = "_partial_nud26_52";
|
|
1837
1838
|
const text = "_text_nud26_85";
|
|
1838
|
-
const styles$
|
|
1839
|
+
const styles$d = {
|
|
1839
1840
|
wrapper,
|
|
1840
1841
|
"wrapper--visible": "_wrapper--visible_nud26_20",
|
|
1841
1842
|
partial,
|
|
@@ -1863,9 +1864,9 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
|
|
|
1863
1864
|
});
|
|
1864
1865
|
return /* @__PURE__ */ jsxRuntime.jsxs("nav", {
|
|
1865
1866
|
class: [
|
|
1866
|
-
styles$
|
|
1867
|
+
styles$d.wrapper,
|
|
1867
1868
|
{
|
|
1868
|
-
[styles$
|
|
1869
|
+
[styles$d["wrapper--visible"]]: isVisible.value
|
|
1869
1870
|
}
|
|
1870
1871
|
],
|
|
1871
1872
|
style: {
|
|
@@ -1877,18 +1878,18 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
|
|
|
1877
1878
|
children: [
|
|
1878
1879
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1879
1880
|
"aria-hidden": "true",
|
|
1880
|
-
class: styles$
|
|
1881
|
+
class: styles$d.partial
|
|
1881
1882
|
}),
|
|
1882
1883
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1883
1884
|
"aria-hidden": "true",
|
|
1884
|
-
class: styles$
|
|
1885
|
+
class: styles$d.partial
|
|
1885
1886
|
}),
|
|
1886
1887
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1887
1888
|
"aria-hidden": "true",
|
|
1888
|
-
class: styles$
|
|
1889
|
+
class: styles$d.partial
|
|
1889
1890
|
}),
|
|
1890
1891
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1891
|
-
class: styles$
|
|
1892
|
+
class: styles$d.text,
|
|
1892
1893
|
children: "Back to Top"
|
|
1893
1894
|
})
|
|
1894
1895
|
]
|
|
@@ -1897,7 +1898,7 @@ const ElmPageTop = qwik.component$(({ position = "right" }) => {
|
|
|
1897
1898
|
const blockquote = "_blockquote_b5jd8_1";
|
|
1898
1899
|
const body = "_body_b5jd8_18";
|
|
1899
1900
|
const icon = "_icon_b5jd8_23";
|
|
1900
|
-
const styles$
|
|
1901
|
+
const styles$c = {
|
|
1901
1902
|
blockquote,
|
|
1902
1903
|
body,
|
|
1903
1904
|
icon
|
|
@@ -1905,13 +1906,13 @@ const styles$b = {
|
|
|
1905
1906
|
const ElmBlockQuote = qwik.component$(({ cite }) => {
|
|
1906
1907
|
return /* @__PURE__ */ jsxRuntime.jsxs("blockquote", {
|
|
1907
1908
|
class: [
|
|
1908
|
-
styles$
|
|
1909
|
+
styles$c.blockquote,
|
|
1909
1910
|
textStyles.text
|
|
1910
1911
|
],
|
|
1911
1912
|
cite,
|
|
1912
1913
|
children: [
|
|
1913
1914
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1914
|
-
class: styles$
|
|
1915
|
+
class: styles$c.icon,
|
|
1915
1916
|
style: {
|
|
1916
1917
|
"--inset": "0.25rem auto auto 0.5rem"
|
|
1917
1918
|
},
|
|
@@ -1920,11 +1921,11 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
|
|
|
1920
1921
|
})
|
|
1921
1922
|
}),
|
|
1922
1923
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1923
|
-
class: styles$
|
|
1924
|
+
class: styles$c.body,
|
|
1924
1925
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1925
1926
|
}),
|
|
1926
1927
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1927
|
-
class: styles$
|
|
1928
|
+
class: styles$c.icon,
|
|
1928
1929
|
style: {
|
|
1929
1930
|
"--inset": "auto 0.25rem 0.25rem auto"
|
|
1930
1931
|
},
|
|
@@ -1938,7 +1939,7 @@ const ElmBlockQuote = qwik.component$(({ cite }) => {
|
|
|
1938
1939
|
const callout = "_callout_1d8l2_1";
|
|
1939
1940
|
const header = "_header_1d8l2_25";
|
|
1940
1941
|
const content = "_content_1d8l2_31";
|
|
1941
|
-
const styles$
|
|
1942
|
+
const styles$b = {
|
|
1942
1943
|
callout,
|
|
1943
1944
|
header,
|
|
1944
1945
|
content
|
|
@@ -1967,13 +1968,13 @@ const COLOR_MAP = Object.freeze({
|
|
|
1967
1968
|
});
|
|
1968
1969
|
const ElmCallout = qwik.component$(({ type = "note" }) => {
|
|
1969
1970
|
return /* @__PURE__ */ jsxRuntime.jsxs("aside", {
|
|
1970
|
-
class: styles$
|
|
1971
|
+
class: styles$b.callout,
|
|
1971
1972
|
style: {
|
|
1972
1973
|
"--callout-color": COLOR_MAP[type].code
|
|
1973
1974
|
},
|
|
1974
1975
|
children: [
|
|
1975
1976
|
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
1976
|
-
class: styles$
|
|
1977
|
+
class: styles$b.header,
|
|
1977
1978
|
children: [
|
|
1978
1979
|
/* @__PURE__ */ jsxRuntime.jsx(ElmMdiIcon, {
|
|
1979
1980
|
d: COLOR_MAP[type].icon,
|
|
@@ -1986,26 +1987,26 @@ const ElmCallout = qwik.component$(({ type = "note" }) => {
|
|
|
1986
1987
|
]
|
|
1987
1988
|
}),
|
|
1988
1989
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1989
|
-
class: styles$
|
|
1990
|
+
class: styles$b.content,
|
|
1990
1991
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1991
1992
|
})
|
|
1992
1993
|
]
|
|
1993
1994
|
});
|
|
1994
1995
|
});
|
|
1995
1996
|
const hr = "_hr_1g58p_1";
|
|
1996
|
-
const styles$
|
|
1997
|
+
const styles$a = {
|
|
1997
1998
|
hr
|
|
1998
1999
|
};
|
|
1999
2000
|
const ElmDivider = qwik.component$(({ margin }) => {
|
|
2000
2001
|
return /* @__PURE__ */ jsxRuntime.jsx("hr", {
|
|
2001
|
-
class: styles$
|
|
2002
|
+
class: styles$a.hr,
|
|
2002
2003
|
style: {
|
|
2003
2004
|
marginBlock: margin
|
|
2004
2005
|
}
|
|
2005
2006
|
});
|
|
2006
2007
|
});
|
|
2007
2008
|
const fragment = "_fragment_1kofp_1";
|
|
2008
|
-
const styles$
|
|
2009
|
+
const styles$9 = {
|
|
2009
2010
|
fragment
|
|
2010
2011
|
};
|
|
2011
2012
|
const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
@@ -2021,7 +2022,7 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
|
2021
2022
|
}
|
|
2022
2023
|
});
|
|
2023
2024
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2024
|
-
class: styles$
|
|
2025
|
+
class: styles$9.fragment,
|
|
2025
2026
|
onClick$: () => handleHashClick(id),
|
|
2026
2027
|
children: "#"
|
|
2027
2028
|
});
|
|
@@ -2033,7 +2034,7 @@ const h3 = "_h3_16jof_85";
|
|
|
2033
2034
|
const h4 = "_h4_16jof_102";
|
|
2034
2035
|
const h5 = "_h5_16jof_106";
|
|
2035
2036
|
const h6 = "_h6_16jof_110";
|
|
2036
|
-
const styles$
|
|
2037
|
+
const styles$8 = {
|
|
2037
2038
|
"heading-common": "_heading-common_16jof_1",
|
|
2038
2039
|
h1,
|
|
2039
2040
|
h2,
|
|
@@ -2055,9 +2056,9 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
|
|
|
2055
2056
|
const Tag = `h${level}`;
|
|
2056
2057
|
return /* @__PURE__ */ jsxRuntime.jsxs(Tag, {
|
|
2057
2058
|
class: [
|
|
2058
|
-
styles$
|
|
2059
|
+
styles$8["heading-common"],
|
|
2059
2060
|
textStyles.text,
|
|
2060
|
-
styles$
|
|
2061
|
+
styles$8[`h${level}`]
|
|
2061
2062
|
],
|
|
2062
2063
|
style: {
|
|
2063
2064
|
"--font-size": `${SIZE_MAP[level]}em`
|
|
@@ -2076,13 +2077,13 @@ const ElmHeading = qwik.component$(({ level, text: text2, id }) => {
|
|
|
2076
2077
|
})
|
|
2077
2078
|
}),
|
|
2078
2079
|
level === 2 && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2079
|
-
class: styles$
|
|
2080
|
+
class: styles$8["h2__underline"],
|
|
2080
2081
|
"aria-hidden": "true"
|
|
2081
2082
|
})
|
|
2082
2083
|
]
|
|
2083
2084
|
});
|
|
2084
2085
|
});
|
|
2085
|
-
const styles$
|
|
2086
|
+
const styles$7 = {
|
|
2086
2087
|
"elmethis-list-common": "_elmethis-list-common_14epx_1",
|
|
2087
2088
|
"elmethis-bulleted-list": "_elmethis-bulleted-list_14epx_9",
|
|
2088
2089
|
"elmethis-numbered-list": "_elmethis-numbered-list_14epx_24"
|
|
@@ -2092,8 +2093,8 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
|
|
|
2092
2093
|
return /* @__PURE__ */ jsxRuntime.jsx("ol", {
|
|
2093
2094
|
class: [
|
|
2094
2095
|
textStyles.text,
|
|
2095
|
-
styles$
|
|
2096
|
-
styles$
|
|
2096
|
+
styles$7["elmethis-list-common"],
|
|
2097
|
+
styles$7["elmethis-numbered-list"]
|
|
2097
2098
|
],
|
|
2098
2099
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2099
2100
|
});
|
|
@@ -2101,15 +2102,15 @@ const ElmList = qwik.component$(({ listStyle = "unordered" }) => {
|
|
|
2101
2102
|
return /* @__PURE__ */ jsxRuntime.jsx("ul", {
|
|
2102
2103
|
class: [
|
|
2103
2104
|
textStyles.text,
|
|
2104
|
-
styles$
|
|
2105
|
-
styles$
|
|
2105
|
+
styles$7["elmethis-list-common"],
|
|
2106
|
+
styles$7["elmethis-bulleted-list"]
|
|
2106
2107
|
],
|
|
2107
2108
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2108
2109
|
});
|
|
2109
2110
|
}
|
|
2110
2111
|
});
|
|
2111
2112
|
const paragraph = "_paragraph_jz10s_1";
|
|
2112
|
-
const styles$
|
|
2113
|
+
const styles$6 = {
|
|
2113
2114
|
paragraph
|
|
2114
2115
|
};
|
|
2115
2116
|
const useInView = (props) => {
|
|
@@ -2136,7 +2137,7 @@ const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
|
|
|
2136
2137
|
return /* @__PURE__ */ jsxRuntime.jsx("p", {
|
|
2137
2138
|
ref,
|
|
2138
2139
|
class: [
|
|
2139
|
-
styles$
|
|
2140
|
+
styles$6.paragraph,
|
|
2140
2141
|
textStyles.text
|
|
2141
2142
|
],
|
|
2142
2143
|
style: {
|
|
@@ -2150,7 +2151,7 @@ const ElmParagraph = qwik.component$(({ color, backgroundColor }) => {
|
|
|
2150
2151
|
const table = "_table_x2nyq_1";
|
|
2151
2152
|
const caption = "_caption_x2nyq_8";
|
|
2152
2153
|
const spacing = "_spacing_x2nyq_25";
|
|
2153
|
-
const styles$
|
|
2154
|
+
const styles$5 = {
|
|
2154
2155
|
table,
|
|
2155
2156
|
caption,
|
|
2156
2157
|
"caption-inner": "_caption-inner_x2nyq_18",
|
|
@@ -2163,7 +2164,7 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2163
2164
|
qwik.useContextProvider(HasRowHeaderContext, hasRowHeaderComputed);
|
|
2164
2165
|
return /* @__PURE__ */ jsxRuntime.jsxs("table", {
|
|
2165
2166
|
class: [
|
|
2166
|
-
styles$
|
|
2167
|
+
styles$5.table,
|
|
2167
2168
|
textStyles.text
|
|
2168
2169
|
],
|
|
2169
2170
|
style: {
|
|
@@ -2172,13 +2173,13 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2172
2173
|
children: [
|
|
2173
2174
|
caption2 && /* @__PURE__ */ jsxRuntime.jsx("caption", {
|
|
2174
2175
|
children: /* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
2175
|
-
class: styles$
|
|
2176
|
+
class: styles$5.caption,
|
|
2176
2177
|
children: [
|
|
2177
2178
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2178
|
-
class: styles$
|
|
2179
|
+
class: styles$5.spacing
|
|
2179
2180
|
}),
|
|
2180
2181
|
/* @__PURE__ */ jsxRuntime.jsxs("span", {
|
|
2181
|
-
class: styles$
|
|
2182
|
+
class: styles$5["caption-inner"],
|
|
2182
2183
|
children: [
|
|
2183
2184
|
/* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
2184
2185
|
viewBox: "0 0 24 24",
|
|
@@ -2195,7 +2196,7 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2195
2196
|
]
|
|
2196
2197
|
}),
|
|
2197
2198
|
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
2198
|
-
class: styles$
|
|
2199
|
+
class: styles$5.spacing
|
|
2199
2200
|
})
|
|
2200
2201
|
]
|
|
2201
2202
|
})
|
|
@@ -2205,14 +2206,14 @@ const ElmTable = qwik.component$((props) => {
|
|
|
2205
2206
|
});
|
|
2206
2207
|
});
|
|
2207
2208
|
const thead = "_thead_1brzu_1";
|
|
2208
|
-
const styles$
|
|
2209
|
+
const styles$4 = {
|
|
2209
2210
|
thead
|
|
2210
2211
|
};
|
|
2211
2212
|
const HasHeaderContext = qwik.createContextId("HasHeaderContext");
|
|
2212
2213
|
const ElmTableHeader = qwik.component$(() => {
|
|
2213
2214
|
qwik.useContextProvider(HasHeaderContext, true);
|
|
2214
2215
|
return /* @__PURE__ */ jsxRuntime.jsx("thead", {
|
|
2215
|
-
class: styles$
|
|
2216
|
+
class: styles$4.thead,
|
|
2216
2217
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2217
2218
|
});
|
|
2218
2219
|
});
|
|
@@ -2223,7 +2224,7 @@ const ElmTableBody = qwik.component$(() => {
|
|
|
2223
2224
|
});
|
|
2224
2225
|
});
|
|
2225
2226
|
const tr = "_tr_2ogbz_1";
|
|
2226
|
-
const styles$
|
|
2227
|
+
const styles$3 = {
|
|
2227
2228
|
tr,
|
|
2228
2229
|
"has-row-header": "_has-row-header_2ogbz_20"
|
|
2229
2230
|
};
|
|
@@ -2231,8 +2232,8 @@ const ElmTableRow = qwik.component$(() => {
|
|
|
2231
2232
|
const hasRowHeader = qwik.useContext(HasRowHeaderContext);
|
|
2232
2233
|
return /* @__PURE__ */ jsxRuntime.jsx("tr", {
|
|
2233
2234
|
class: [
|
|
2234
|
-
styles$
|
|
2235
|
-
hasRowHeader.value && styles$
|
|
2235
|
+
styles$3.tr,
|
|
2236
|
+
hasRowHeader.value && styles$3["has-row-header"]
|
|
2236
2237
|
],
|
|
2237
2238
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2238
2239
|
});
|
|
@@ -2240,7 +2241,7 @@ const ElmTableRow = qwik.component$(() => {
|
|
|
2240
2241
|
const common = "_common_1puhv_1";
|
|
2241
2242
|
const td = "_td_1puhv_24";
|
|
2242
2243
|
const th = "_th_1puhv_31";
|
|
2243
|
-
const styles$
|
|
2244
|
+
const styles$2 = {
|
|
2244
2245
|
common,
|
|
2245
2246
|
td,
|
|
2246
2247
|
th
|
|
@@ -2252,21 +2253,21 @@ const ElmTableCell = qwik.component$((props) => {
|
|
|
2252
2253
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2253
2254
|
children: isHeader ? /* @__PURE__ */ jsxRuntime.jsx("th", {
|
|
2254
2255
|
class: [
|
|
2255
|
-
styles$
|
|
2256
|
-
styles$
|
|
2256
|
+
styles$2.common,
|
|
2257
|
+
styles$2.th
|
|
2257
2258
|
],
|
|
2258
2259
|
children: text2 ? text2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2259
2260
|
}) : /* @__PURE__ */ jsxRuntime.jsx("td", {
|
|
2260
2261
|
class: [
|
|
2261
|
-
styles$
|
|
2262
|
-
styles$
|
|
2262
|
+
styles$2.common,
|
|
2263
|
+
styles$2.td
|
|
2263
2264
|
],
|
|
2264
2265
|
children: text2 ? text2 : /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
2265
2266
|
})
|
|
2266
2267
|
});
|
|
2267
2268
|
});
|
|
2268
2269
|
const column = "_column_1l2bp_7";
|
|
2269
|
-
const styles = {
|
|
2270
|
+
const styles$1 = {
|
|
2270
2271
|
"jarkup-body": "_jarkup-body_1l2bp_1",
|
|
2271
2272
|
"column-list": "_column-list_1l2bp_7",
|
|
2272
2273
|
column
|
|
@@ -2407,12 +2408,12 @@ const ElmJarkup = qwik.component$((props) => {
|
|
|
2407
2408
|
}, key);
|
|
2408
2409
|
case "ColumnList":
|
|
2409
2410
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2410
|
-
class: styles["column-list"],
|
|
2411
|
+
class: styles$1["column-list"],
|
|
2411
2412
|
children: render(component.slots.default)
|
|
2412
2413
|
}, key);
|
|
2413
2414
|
case "Column":
|
|
2414
2415
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2415
|
-
class: styles.column,
|
|
2416
|
+
class: styles$1.column,
|
|
2416
2417
|
style: {
|
|
2417
2418
|
"--width-ratio": component.props?.widthRatio || 1,
|
|
2418
2419
|
width: component.props?.widthRatio ? `${component.props.widthRatio * 100}%` : void 0
|
|
@@ -2434,10 +2435,175 @@ const ElmJarkup = qwik.component$((props) => {
|
|
|
2434
2435
|
});
|
|
2435
2436
|
};
|
|
2436
2437
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2437
|
-
class: styles["jarkup-body"],
|
|
2438
|
+
class: styles$1["jarkup-body"],
|
|
2438
2439
|
children: render(props.jsonComponents)
|
|
2439
2440
|
});
|
|
2440
2441
|
});
|
|
2442
|
+
const styles = {
|
|
2443
|
+
"markdown-body": "_markdown-body_11s6o_1"
|
|
2444
|
+
};
|
|
2445
|
+
const renderByToken = (tokens) => {
|
|
2446
|
+
const results = [];
|
|
2447
|
+
for (const token of tokens) {
|
|
2448
|
+
switch (token.type) {
|
|
2449
|
+
case "blockquote":
|
|
2450
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
2451
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmBlockQuote, {
|
|
2452
|
+
children: renderByToken(token.tokens)
|
|
2453
|
+
}));
|
|
2454
|
+
}
|
|
2455
|
+
break;
|
|
2456
|
+
case "br":
|
|
2457
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx("br", {}));
|
|
2458
|
+
break;
|
|
2459
|
+
case "code":
|
|
2460
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmCodeBlock, {
|
|
2461
|
+
code: token.text.trim(),
|
|
2462
|
+
language: token.lang
|
|
2463
|
+
}));
|
|
2464
|
+
break;
|
|
2465
|
+
case "codespan":
|
|
2466
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2467
|
+
text: token.text,
|
|
2468
|
+
code: true
|
|
2469
|
+
}));
|
|
2470
|
+
break;
|
|
2471
|
+
case "def":
|
|
2472
|
+
break;
|
|
2473
|
+
case "del":
|
|
2474
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2475
|
+
strikethrough: true,
|
|
2476
|
+
children: renderByToken(token.tokens)
|
|
2477
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2478
|
+
text: token.text,
|
|
2479
|
+
strikethrough: true
|
|
2480
|
+
}));
|
|
2481
|
+
break;
|
|
2482
|
+
case "em":
|
|
2483
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2484
|
+
italic: true,
|
|
2485
|
+
children: renderByToken(token.tokens)
|
|
2486
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2487
|
+
text: token.text,
|
|
2488
|
+
italic: true
|
|
2489
|
+
}));
|
|
2490
|
+
break;
|
|
2491
|
+
case "escape":
|
|
2492
|
+
break;
|
|
2493
|
+
case "heading": {
|
|
2494
|
+
const level = token.depth;
|
|
2495
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
2496
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmHeading, {
|
|
2497
|
+
level,
|
|
2498
|
+
children: renderByToken(token.tokens)
|
|
2499
|
+
}));
|
|
2500
|
+
} else {
|
|
2501
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmHeading, {
|
|
2502
|
+
level,
|
|
2503
|
+
text: token.text
|
|
2504
|
+
}));
|
|
2505
|
+
}
|
|
2506
|
+
break;
|
|
2507
|
+
}
|
|
2508
|
+
case "hr":
|
|
2509
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmDivider, {}));
|
|
2510
|
+
break;
|
|
2511
|
+
case "html":
|
|
2512
|
+
break;
|
|
2513
|
+
case "image":
|
|
2514
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmBlockImage, {
|
|
2515
|
+
enableModal: true,
|
|
2516
|
+
src: token.href,
|
|
2517
|
+
alt: token.text
|
|
2518
|
+
}));
|
|
2519
|
+
break;
|
|
2520
|
+
case "link":
|
|
2521
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2522
|
+
href: token.href,
|
|
2523
|
+
children: renderByToken(token.tokens)
|
|
2524
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2525
|
+
text: token.text,
|
|
2526
|
+
href: token.href
|
|
2527
|
+
}));
|
|
2528
|
+
break;
|
|
2529
|
+
case "list": {
|
|
2530
|
+
const listItems = token.items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx("li", {
|
|
2531
|
+
children: renderByToken(item.tokens)
|
|
2532
|
+
}, index));
|
|
2533
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmList, {
|
|
2534
|
+
listStyle: token.ordered ? "ordered" : "unordered",
|
|
2535
|
+
children: listItems
|
|
2536
|
+
}));
|
|
2537
|
+
break;
|
|
2538
|
+
}
|
|
2539
|
+
case "list_item":
|
|
2540
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx("li", {
|
|
2541
|
+
children: token.tokens && token.tokens.length !== 0 ? renderByToken(token.tokens) : token.text
|
|
2542
|
+
}));
|
|
2543
|
+
break;
|
|
2544
|
+
case "paragraph":
|
|
2545
|
+
if (token.tokens && token.tokens.length !== 0) {
|
|
2546
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsx(ElmParagraph, {
|
|
2547
|
+
children: renderByToken(token.tokens)
|
|
2548
|
+
}));
|
|
2549
|
+
}
|
|
2550
|
+
break;
|
|
2551
|
+
case "space":
|
|
2552
|
+
break;
|
|
2553
|
+
case "strong":
|
|
2554
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2555
|
+
bold: true,
|
|
2556
|
+
children: renderByToken(token.tokens)
|
|
2557
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2558
|
+
text: token.text,
|
|
2559
|
+
bold: true
|
|
2560
|
+
}));
|
|
2561
|
+
break;
|
|
2562
|
+
case "table": {
|
|
2563
|
+
const renderTableCells = (cells) => cells.map((cell, index) => /* @__PURE__ */ jsxRuntime.jsx(ElmTableCell, {
|
|
2564
|
+
children: renderByToken(cell.tokens)
|
|
2565
|
+
}, index));
|
|
2566
|
+
const headerRow = /* @__PURE__ */ jsxRuntime.jsx(ElmTableRow, {
|
|
2567
|
+
children: renderTableCells(token.header)
|
|
2568
|
+
});
|
|
2569
|
+
const bodyRows = token.rows.map((row, index) => /* @__PURE__ */ jsxRuntime.jsx(ElmTableRow, {
|
|
2570
|
+
children: renderTableCells(row)
|
|
2571
|
+
}, index));
|
|
2572
|
+
results.push(/* @__PURE__ */ jsxRuntime.jsxs(ElmTable, {
|
|
2573
|
+
children: [
|
|
2574
|
+
/* @__PURE__ */ jsxRuntime.jsx(ElmTableHeader, {
|
|
2575
|
+
"q:slot": "header",
|
|
2576
|
+
children: headerRow
|
|
2577
|
+
}),
|
|
2578
|
+
/* @__PURE__ */ jsxRuntime.jsx(ElmTableBody, {
|
|
2579
|
+
"q:slot": "body",
|
|
2580
|
+
children: bodyRows
|
|
2581
|
+
})
|
|
2582
|
+
]
|
|
2583
|
+
}));
|
|
2584
|
+
break;
|
|
2585
|
+
}
|
|
2586
|
+
case "text":
|
|
2587
|
+
results.push(token.tokens && token.tokens.length !== 0 ? /* @__PURE__ */ jsxRuntime.jsx(ElmInlineText, {
|
|
2588
|
+
children: renderByToken(token.tokens)
|
|
2589
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(qwik.Fragment, {
|
|
2590
|
+
children: token.text
|
|
2591
|
+
}));
|
|
2592
|
+
break;
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
return results;
|
|
2596
|
+
};
|
|
2597
|
+
const ElmMarkdown = qwik.component$(({ markdown }) => {
|
|
2598
|
+
const tokens = marked.marked.setOptions({
|
|
2599
|
+
gfm: true
|
|
2600
|
+
}).lexer(markdown);
|
|
2601
|
+
const elements = renderByToken(tokens);
|
|
2602
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2603
|
+
class: styles["markdown-body"],
|
|
2604
|
+
children: elements
|
|
2605
|
+
});
|
|
2606
|
+
});
|
|
2441
2607
|
exports.ElmBlockFallback = ElmBlockFallback;
|
|
2442
2608
|
exports.ElmBlockImage = ElmBlockImage;
|
|
2443
2609
|
exports.ElmBlockQuote = ElmBlockQuote;
|
|
@@ -2456,6 +2622,7 @@ exports.ElmJarkup = ElmJarkup;
|
|
|
2456
2622
|
exports.ElmKatex = ElmKatex;
|
|
2457
2623
|
exports.ElmLanguageIcon = ElmLanguageIcon;
|
|
2458
2624
|
exports.ElmList = ElmList;
|
|
2625
|
+
exports.ElmMarkdown = ElmMarkdown;
|
|
2459
2626
|
exports.ElmMdiIcon = ElmMdiIcon;
|
|
2460
2627
|
exports.ElmPageTop = ElmPageTop;
|
|
2461
2628
|
exports.ElmParagraph = ElmParagraph;
|