@elmethis/react 0.3.11 → 0.3.12
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.react.cjs +1 -1
- package/lib/index.react.mjs +629 -602
- package/lib/style.css +1 -1
- package/lib-types/components/copilotkit/ElmModelSelect.d.ts +17 -0
- package/lib-types/components/copilotkit/ElmModelSelect.d.ts.map +1 -0
- package/lib-types/components/copilotkit/ElmModelSelect.stories.d.ts +28 -0
- package/lib-types/components/copilotkit/ElmModelSelect.stories.d.ts.map +1 -0
- package/lib-types/components/form/ElmSelect.d.ts +7 -7
- package/lib-types/components/form/ElmSelect.d.ts.map +1 -1
- package/lib-types/lib.d.ts +1 -0
- package/lib-types/lib.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.react.mjs
CHANGED
|
@@ -1,24 +1,183 @@
|
|
|
1
1
|
import { t as e } from "./ElmMermaid-CUeT_XM9.js";
|
|
2
2
|
import t, { Suspense as n, createContext as r, lazy as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
3
3
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { useControllableState as
|
|
9
|
-
import { kebabCase as
|
|
10
|
-
import { marked as
|
|
11
|
-
var
|
|
4
|
+
import { mdiAccount as h, mdiAlert as g, mdiAlertCircle as _, mdiAlertOctagram as v, mdiApplicationOutline as y, mdiArchive as b, mdiArrowDownDropCircleOutline as ee, mdiArrowLeft as te, mdiBackspaceOutline as ne, mdiCalendarMonth as re, mdiCalendarRefresh as ie, mdiCheck as ae, mdiCheckCircle as oe, mdiCheckCircleOutline as se, mdiChevronRight as ce, mdiClipboardCheckMultipleOutline as le, mdiClipboardMultipleOutline as ue, mdiCloseCircleOutline as de, mdiConsoleLine as fe, mdiDownload as pe, mdiEarth as me, mdiEmail as he, mdiEyeOffOutline as ge, mdiEyeOutline as _e, mdiFileOutline as ve, mdiFolderOpen as ye, mdiFormatQuoteClose as be, mdiFormatQuoteOpen as xe, mdiHome as Se, mdiInformation as Ce, mdiKey as we, mdiKeyboardReturn as Te, mdiLightbulbOn as Ee, mdiLinkVariant as De, mdiLoading as Oe, mdiLock as ke, mdiLoginVariant as Ae, mdiLogoutVariant as je, mdiMagnify as Me, mdiMenuDown as Ne, mdiMessageImageOutline as Pe, mdiPen as Fe, mdiPlus as Ie, mdiReload as Le, mdiShieldAlert as Re, mdiTable as ze, mdiTag as Be, mdiText as Ve } from "@mdi/js";
|
|
5
|
+
import x from "clsx";
|
|
6
|
+
import { darken as He, getLuminance as Ue, opacify as We, parseToHsl as Ge, parseToRgb as Ke, rgbToColorString as qe } from "polished";
|
|
7
|
+
import { createPortal as Je } from "react-dom";
|
|
8
|
+
import { useControllableState as Ye } from "@radix-ui/react-use-controllable-state";
|
|
9
|
+
import { kebabCase as Xe } from "lodash-es";
|
|
10
|
+
import { marked as Ze } from "marked";
|
|
11
|
+
var Qe = { option: "_option_hdb87_1" }, S = {
|
|
12
|
+
wrapper: "_wrapper_1xby6_1",
|
|
13
|
+
active: "_active_1xby6_29",
|
|
14
|
+
header: "_header_1xby6_33",
|
|
15
|
+
label: "_label_1xby6_41",
|
|
16
|
+
body: "_body_1xby6_54",
|
|
17
|
+
select: "_select_1xby6_63",
|
|
18
|
+
selected: "_selected_1xby6_72",
|
|
19
|
+
fallback: "_fallback_1xby6_77",
|
|
20
|
+
pulldown: "_pulldown_1xby6_85",
|
|
21
|
+
collapse: "_collapse_1xby6_106",
|
|
22
|
+
option: "_option_1xby6_116",
|
|
23
|
+
selectable: "_selectable_1xby6_129",
|
|
24
|
+
description: "_description_1xby6_140"
|
|
25
|
+
}, $e = {
|
|
26
|
+
icon: "_icon_g71ox_1",
|
|
27
|
+
"icon-theme-color": "_icon-theme-color_g71ox_10"
|
|
28
|
+
}, C = (e) => /* @__PURE__ */ p("div", {
|
|
29
|
+
className: e.className,
|
|
30
|
+
style: e.style,
|
|
31
|
+
children: /* @__PURE__ */ p("svg", {
|
|
32
|
+
width: e.size || "1.25rem",
|
|
33
|
+
height: e.size || "1.25rem",
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
focusable: "false",
|
|
36
|
+
role: "img",
|
|
37
|
+
children: /* @__PURE__ */ p("path", {
|
|
38
|
+
style: {
|
|
39
|
+
"--elmethis-scoped-color": e.colorLight ?? e.color,
|
|
40
|
+
"--elmethis-scoped-color-dark": e.colorDark ?? e.color,
|
|
41
|
+
...e.style
|
|
42
|
+
},
|
|
43
|
+
className: e.useThemeColor ? $e["icon-theme-color"] : $e.icon,
|
|
44
|
+
fill: "currentColor",
|
|
45
|
+
d: e.d
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
}), et = ({ disabled: e = !1, loading: t = !1, ...n }) => {
|
|
49
|
+
let [r, i] = d(!1), a = u(null), o = () => {
|
|
50
|
+
!e && !t && i((e) => !e);
|
|
51
|
+
}, { options: c, onSelect: l } = n, h = (e) => {
|
|
52
|
+
let t = c.find((t) => t.id === e);
|
|
53
|
+
t && l && (l(t.id), i(!1));
|
|
54
|
+
};
|
|
55
|
+
s(() => {
|
|
56
|
+
let e = (e) => {
|
|
57
|
+
a.current && !a.current.contains(e.target) && i(!1);
|
|
58
|
+
};
|
|
59
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
60
|
+
}, []);
|
|
61
|
+
let g = (e, t, r) => {
|
|
62
|
+
let i = n.options.find((t) => t.id === e);
|
|
63
|
+
if (!i) return null;
|
|
64
|
+
let a = t ? (e) => {
|
|
65
|
+
e.stopPropagation(), h(i.id);
|
|
66
|
+
} : void 0, o = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: i.label }), i.description && /* @__PURE__ */ p("span", {
|
|
67
|
+
className: S.description,
|
|
68
|
+
children: i.description
|
|
69
|
+
})] });
|
|
70
|
+
return /* @__PURE__ */ m("div", {
|
|
71
|
+
className: x(S.option, { [S.selectable]: t }),
|
|
72
|
+
onClick: a,
|
|
73
|
+
children: [t && /* @__PURE__ */ p(C, {
|
|
74
|
+
d: ce,
|
|
75
|
+
color: "#868e9c",
|
|
76
|
+
size: "0.75em"
|
|
77
|
+
}), i.children ? i.children : o]
|
|
78
|
+
}, r);
|
|
79
|
+
};
|
|
80
|
+
return /* @__PURE__ */ m("div", {
|
|
81
|
+
ref: a,
|
|
82
|
+
className: x(S.wrapper, n.className, { [S.active]: r }),
|
|
83
|
+
style: {
|
|
84
|
+
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
85
|
+
...n.style
|
|
86
|
+
},
|
|
87
|
+
onClick: o,
|
|
88
|
+
children: [/* @__PURE__ */ p("div", {
|
|
89
|
+
className: S.header,
|
|
90
|
+
children: /* @__PURE__ */ p("span", {
|
|
91
|
+
className: S.label,
|
|
92
|
+
children: n.label
|
|
93
|
+
})
|
|
94
|
+
}), /* @__PURE__ */ p("div", {
|
|
95
|
+
className: S.body,
|
|
96
|
+
children: /* @__PURE__ */ m("div", {
|
|
97
|
+
className: S.select,
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ p("div", {
|
|
100
|
+
className: S.selected,
|
|
101
|
+
children: n.selectedOptionId ? g(n.selectedOptionId, !1) : /* @__PURE__ */ m("div", {
|
|
102
|
+
className: S.fallback,
|
|
103
|
+
children: [/* @__PURE__ */ p(C, { d: ee }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
|
|
104
|
+
})
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ p(C, {
|
|
107
|
+
d: Ne,
|
|
108
|
+
size: "1.5rem"
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ p("div", {
|
|
111
|
+
className: x(S.pulldown, { [S.active]: r }),
|
|
112
|
+
children: /* @__PURE__ */ p("div", {
|
|
113
|
+
className: S.collapse,
|
|
114
|
+
children: n.options.map((e) => g(e.id, !0, e.id))
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
})
|
|
119
|
+
})]
|
|
120
|
+
});
|
|
121
|
+
}, tt = { icon: "_icon_k0isg_1" }, w = ({ src: e, alt: t, className: n }) => {
|
|
12
122
|
let [r, i] = d(e);
|
|
13
123
|
return /* @__PURE__ */ p("img", {
|
|
14
|
-
className: [
|
|
124
|
+
className: [tt.icon, n].filter(Boolean).join(" "),
|
|
15
125
|
src: r,
|
|
16
126
|
alt: t,
|
|
17
127
|
onError: () => {
|
|
18
128
|
i("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill=\"gray\" d=\"M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2\"/></svg>");
|
|
19
129
|
}
|
|
20
130
|
});
|
|
21
|
-
},
|
|
131
|
+
}, nt = {
|
|
132
|
+
text: "_text_1nnze_1",
|
|
133
|
+
link: "_link_1nnze_19"
|
|
134
|
+
}, T = (e) => {
|
|
135
|
+
let t = (e) => {
|
|
136
|
+
let t = e.children;
|
|
137
|
+
return e.kbd && (t = /* @__PURE__ */ p("kbd", { children: t })), e.code && (t = /* @__PURE__ */ p("code", { children: t })), e.strikethrough && (t = /* @__PURE__ */ p("del", { children: t })), e.underline && (t = /* @__PURE__ */ p("ins", { children: t })), e.italic && (t = /* @__PURE__ */ p("em", { children: t })), e.bold && (t = /* @__PURE__ */ p("strong", { children: t })), e.ruby && (t = /* @__PURE__ */ m("ruby", { children: [t, /* @__PURE__ */ p("rt", { children: e.ruby })] })), t;
|
|
138
|
+
}, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */ m("a", {
|
|
139
|
+
className: nt.link,
|
|
140
|
+
href: t,
|
|
141
|
+
target: "_blank",
|
|
142
|
+
rel: "noopener noreferrer",
|
|
143
|
+
children: [e && /* @__PURE__ */ p(w, { src: e }), n]
|
|
144
|
+
}), r = (e) => e.href ? n(e) : t(e);
|
|
145
|
+
return /* @__PURE__ */ p("span", {
|
|
146
|
+
className: [nt.text, e.className].filter(Boolean).join(" "),
|
|
147
|
+
style: {
|
|
148
|
+
"--elmethis-text-color-light": e.color,
|
|
149
|
+
"--elmethis-text-color-dark": e.color,
|
|
150
|
+
"--elmethis-text-background-color-light": e.backgroundColor,
|
|
151
|
+
"--elmethis-text-background-color-dark": e.backgroundColor,
|
|
152
|
+
color: e.color ?? (e.backgroundColor ? Ue(e.backgroundColor) > .5 ? "#3e434b" : "#eeeff1" : void 0),
|
|
153
|
+
backgroundColor: e.backgroundColor,
|
|
154
|
+
...e.style
|
|
155
|
+
},
|
|
156
|
+
children: r(e)
|
|
157
|
+
});
|
|
158
|
+
}, rt = (e) => ({
|
|
159
|
+
id: e.modelId,
|
|
160
|
+
label: e.label,
|
|
161
|
+
children: /* @__PURE__ */ m("div", {
|
|
162
|
+
className: Qe.option,
|
|
163
|
+
children: [/* @__PURE__ */ p(w, {
|
|
164
|
+
src: e.icon,
|
|
165
|
+
alt: e.label,
|
|
166
|
+
className: Qe.icon
|
|
167
|
+
}), /* @__PURE__ */ p(T, { children: e.label })]
|
|
168
|
+
})
|
|
169
|
+
}), it = (e) => {
|
|
170
|
+
let n = t.useMemo(() => {
|
|
171
|
+
let t = e.models.find((t) => t.modelId === e.selectedModelId) || null;
|
|
172
|
+
return t ? rt(t) : null;
|
|
173
|
+
}, [e.models, e.selectedModelId]);
|
|
174
|
+
return /* @__PURE__ */ p(et, {
|
|
175
|
+
label: "Model",
|
|
176
|
+
options: e.models.map(rt),
|
|
177
|
+
selectedOptionId: n?.id,
|
|
178
|
+
onSelect: e.setSelectedModelId
|
|
179
|
+
});
|
|
180
|
+
}, at = { icon: "_icon_18sdb_1" }, ot = {
|
|
22
181
|
rust: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20128'%20fill='%23a84f33'%20width='128'%20height='128'%20%3e%3cpath%20d='M62.96.242c-.232.135-1.203%201.528-2.16%203.097c-2.4%203.94-2.426%203.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916%201.612-1.504%203.183c-1.346%203.6-1.41%203.715-2.156%203.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291%200-1.655.706-2.27%204.4c-.78%204.697-.754%204.681-4.988%202.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475%204.246l.178%203.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692%202.964c.38%201.63.745%203.2.814%203.487c.067.287-.05.746-.26%201.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51%205.3c.718%201.56%201.305%202.98%201.305%203.15c0%20.898-.717%201.224-3.794%201.727c-1.722.28-3.218.51-3.326.51c-.107%200-.43.235-.717.522c-.937.936-.671%201.816%201.453%204.814c2.646%203.735%202.642%203.75-1.73%205.421c-4.971%201.902-5.072%202.37-1.287%205.96c3.525%203.344%203.53%203.295-.461%205.804C.208%2062.8.162%2062.846.085%2063.876c-.093%201.253-.071%201.275%203.538%203.48c3.57%202.18%203.57%202.246.067%205.56C-.078%2076.48.038%2077%205.013%2078.877c4.347%201.64%204.353%201.66%201.702%205.394c-1.502%202.117-1.981%203-1.981%203.653c0%201.223.637%201.535%204.44%202.174c3.206.54%203.92.857%203.92%201.741c0%20.182-.588%201.612-1.307%203.177c-2.236%204.87-1.981%205.275%203.31%205.275c4.93%200%204.799-.15%203.737%204.294c-.8%203.35-.813%203.992-.088%204.715c.554.556%201.6.494%204.87-.289c2.499-.596%202.937-.637%203.516-.328l.66.354l-.177%203.594c-.178%203.593-.177%203.595.475%204.248c.358.36.884.652%201.165.652s1.903-.63%203.604-1.404c4.22-1.916%204.194-1.932%204.973%202.75c.617%203.711.977%204.4%202.294%204.4c.327%200%201.83-.88%203.34-1.958c2.654-1.893%203.342-2.19%204.049-1.74c.182.115.89%201.67%201.572%203.455c1.003%202.625%201.37%203.31%201.929%203.576c1.062.51%201.72.1%204.218-2.62c3.016-3.286%203.14-3.27%205.602.72c2.72%204.406%203.424%204.396%206.212-.089c2.402-3.864%202.374-3.862%205.621-.47c2.157%202.25%202.616%202.61%203.343%202.61c.464%200%201.019-.175%201.23-.388c.214-.213.92-1.786%201.568-3.496c.649-1.71%201.321-3.2%201.495-3.31c.687-.436%201.398-.13%204.048%201.752c1.56%201.108%203.028%201.96%203.377%201.96c1.296%200%201.764-.92%202.302-4.535c.46-3.082.554-3.378%201.16-3.685c.596-.302.954-.2%203.75%201.07c1.701.77%203.323%201.402%203.604%201.402s.816-.302%201.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486%203.615.204c3.656.835%204.338.857%205.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19%203.78-4.19c3.374%200%203.75-.049%204.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227%204.065-1.767c2.033-.329%203.553-.71%203.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738%201.599-5.297c5.064-1.866%205.209-2.488%201.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853%204.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593%203.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18%201.982-2.903%201.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574%201.307-3.113c1.406-3.013%201.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27%200-1.884.64-3.583%201.421c-2.838%201.306-3.143%201.393-3.757%201.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311%200-1.853.925-3.426%202.055c-2.584%201.856-2.93%202.032-3.574%201.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637%200-1.213.458-3.28%202.604c-3.25%203.375-3.261%203.374-5.65-.545C66.073%201.78%2065.075.382%2064.81.24c-.597-.32-1.3-.32-1.85.002m2.96%2011.798c2.83%202.014%201.326%206.75-2.144%206.75c-3.368%200-5.064-4.057-2.66-6.36c1.358-1.3%203.304-1.459%204.805-.39m-3.558%2012.507c1.855.705%202.616.282%206.852-3.8l3.182-3.07l1.347.18c4.225.56%2012.627%204.25%2017.455%207.666c4.436%203.14%2010.332%209.534%2012.845%2013.93l.537.942l-2.38%205.364c-1.31%202.95-2.382%205.673-2.382%206.053c0%20.878.576%202.267%201.13%202.726c.234.195%202.457%201.265%204.939%202.378l4.51%202.025l.178%201.148c.23%201.495.26%205.167.052%206.21l-.163.816h-2.575c-2.987%200-2.756-.267-2.918%203.396c-.118%202.656-.76%204.124-2.22%205.075c-2.377%201.551-6.304%201.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915%202.145-1.803c4.298-3.24%206.77-7.012%207.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057%200-25.56-.092-25.56-.204c0-.263%203.125-3.295%204.965-4.816c5.054-4.178%2011.618-7.465%2018.417-9.22l2.35-.61l3.34%203.387c1.839%201.863%203.64%203.5%204.003%203.637M20.3%2046.34c1.539%201.008%202.17%203.54%201.26%205.062c-1.405%202.356-4.966%202.455-6.373.178c-2.046-3.309%201.895-7.349%205.113-5.24m90.672.13c4.026%202.454.906%208.493-3.404%206.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6%202.523-.579%203.56.053M32.163%2061.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283%204.706-2.262%204.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39%2047.132c2.843.74%204.345%202.245%204.349%204.355c.002%201.55-.765%202.52-2.67%203.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078%200%208.112.086%209.288.393m-2.934%2021.554c1.41.392%203.076%201.616%203.93%202.888c.898%201.337%201.423%203.076%202.667%208.836c1.05%204.87%201.727%206.46%203.62%208.532c2.345%202.566%201.8%202.466%2013.514%202.466c5.61%200%2010.198.09%2010.198.2c0%20.197-3.863%204.764-4.03%204.764c-.048%200-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642%206.032l-1.008%204.702l-.91.448c-1.518.75-6.453%202.292-9.01%202.82c-4.228.87-8.828%201.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248%200-3.923-4.249-3.923-4.535c0-.09%208.728-.194%2019.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002%207.02.12%207.539.264M37.57%20100.02c3.084%201.88%201.605%206.804-2.043%206.8c-3.74%200-5.127-4.88-1.94-6.826c1.055-.643%202.908-.63%203.983.026m56.48.206c1.512%201.108%202.015%203.413%201.079%204.95c-2.46%204.034-8.612.827-6.557-3.419c1.01-2.085%203.695-2.837%205.478-1.53'%20/%3e%3c/svg%3e",
|
|
23
182
|
javascript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23f0db4f'%20d='M1.408%201.408h125.184v125.185H1.408z'%20/%3e%3cpath%20fill='%23323330'%20d='M116.347%2096.736c-.917-5.711-4.641-10.508-15.672-14.981c-3.832-1.761-8.104-3.022-9.377-5.926c-.452-1.69-.512-2.642-.226-3.665c.821-3.32%204.784-4.355%207.925-3.403c2.023.678%203.938%202.237%205.093%204.724c5.402-3.498%205.391-3.475%209.163-5.879c-1.381-2.141-2.118-3.129-3.022-4.045c-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902%202.748-8.877%205.235c-5.926%206.724-4.236%2018.492%202.975%2023.335c7.104%205.332%2017.54%206.545%2018.873%2011.531c1.297%206.104-4.486%208.08-10.234%207.378c-4.236-.881-6.592-3.034-9.139-6.949c-4.688%202.713-4.688%202.713-9.508%205.485c1.143%202.499%202.344%203.63%204.26%205.795c9.068%209.198%2031.76%208.746%2035.83-5.176c.165-.478%201.261-3.666.38-8.581M69.462%2058.943H57.753l-.048%2030.272c0%206.438.333%2012.34-.714%2014.149c-1.713%203.558-6.152%203.117-8.175%202.427c-2.059-1.012-3.106-2.451-4.319-4.485c-.333-.584-.583-1.036-.667-1.071l-9.52%205.83c1.583%203.249%203.915%206.069%206.902%207.901c4.462%202.678%2010.459%203.499%2016.731%202.059c4.082-1.189%207.604-3.652%209.448-7.401c2.666-4.915%202.094-10.864%202.07-17.444c.06-10.735.001-21.468.001-32.237'%20/%3e%3c/svg%3e",
|
|
24
183
|
typescript: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23fff'%20d='M22.67%2047h99.67v73.67H22.67z'%20/%3e%3cpath%20fill='%23007acc'%20d='M1.5%2063.91v62.5h125v-125H1.5zm100.73-5a15.56%2015.56%200%200%201%207.82%204.5a20.6%2020.6%200%200%201%203%204c0%20.16-5.4%203.81-8.69%205.85c-.12.08-.6-.44-1.13-1.23a7.09%207.09%200%200%200-5.87-3.53c-3.79-.26-6.23%201.73-6.21%205a4.6%204.6%200%200%200%20.54%202.34c.83%201.73%202.38%202.76%207.24%204.86c8.95%203.85%2012.78%206.39%2015.16%2010c2.66%204%203.25%2010.46%201.45%2015.24c-2%205.2-6.9%208.73-13.83%209.9a38.3%2038.3%200%200%201-9.52-.1a23%2023%200%200%201-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9%209%200%200%201%201.15-.73L82%20101l3.59-2.08l.75%201.11a16.8%2016.8%200%200%200%204.74%204.54c4%202.1%209.46%201.81%2012.16-.62a5.43%205.43%200%200%200%20.69-6.92c-1-1.39-3-2.56-8.59-5c-6.45-2.78-9.23-4.5-11.77-7.24a16.5%2016.5%200%200%201-3.43-6.25a25%2025%200%200%201-.22-8c1.33-6.23%206-10.58%2012.82-11.87a31.7%2031.7%200%200%201%209.49.26zm-29.34%205.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49%2049%200%200%201%20.12-5.17C29.08%2059%2039%2059%2051%2059h21.83z'%20/%3e%3c/svg%3e",
|
|
@@ -38,9 +197,9 @@ var Ze = { icon: "_icon_k0isg_1" }, C = ({ src: e, alt: t, className: n }) => {
|
|
|
38
197
|
cpp: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%2300599c'%20d='M118.766%2095.82c.89-1.543%201.441-3.28%201.441-4.843V36.78c0-1.558-.55-3.297-1.441-4.84l-55.32%2031.94Zm0%200'%20/%3e%3cpath%20fill='%23004482'%20d='m68.36%20126.586l46.933-27.094c1.352-.781%202.582-2.129%203.473-3.672l-55.32-31.94L8.12%2095.82c.89%201.543%202.121%202.89%203.473%203.672l46.933%2027.094c2.703%201.562%207.13%201.562%209.832%200Zm0%200'%20/%3e%3cpath%20fill='%23659ad2'%20d='M118.766%2031.941c-.891-1.546-2.121-2.894-3.473-3.671L68.359%201.172c-2.703-1.563-7.129-1.563-9.832%200L11.594%2028.27C8.89%2029.828%206.68%2033.66%206.68%2036.78v54.196c0%201.562.55%203.3%201.441%204.843L63.445%2063.88Zm0%200'%20/%3e%3cpath%20fill='%23fff'%20d='M63.445%2026.035c-20.867%200-37.843%2016.977-37.843%2037.844s16.976%2037.844%2037.843%2037.844c13.465%200%2026.024-7.247%2032.77-18.91L79.84%2073.335c-3.38%205.84-9.66%209.465-16.395%209.465c-10.433%200-18.922-8.488-18.922-18.922s8.49-18.922%2018.922-18.922c6.73%200%2013.017%203.629%2016.39%209.465l16.38-9.477c-6.75-11.664-19.305-18.91-32.77-18.91zM92.88%2057.57v4.207h-4.207v4.203h4.207v4.207h4.203V65.98h4.203v-4.203h-4.203V57.57zm15.766%200v4.207h-4.204v4.203h4.204v4.207h4.207V65.98h4.203v-4.203h-4.203V57.57z'%20/%3e%3c/svg%3e",
|
|
39
198
|
c: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23659ad3'%20d='M115.4%2030.7L67.1%202.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48%2027.9c-1.7%201-2.9%203.5-2.9%205.4v55.7c0%201.1.2%202.4%201%203.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7'%20/%3e%3cpath%20fill='%2303599c'%20d='M10.7%2095.3c.5.8%201.2%201.5%201.9%201.9l48.2%2027.9c.8.5%201.9.7%203.1.7s2.3-.3%203.1-.7l48-27.9c1.7-1%202.9-3.5%202.9-5.4V36.1c0-.9-.1-1.9-.6-2.8z'%20/%3e%3cpath%20fill='%23fff'%20d='M85.3%2076.1C81.1%2083.5%2073.1%2088.5%2064%2088.5c-13.5%200-24.5-11-24.5-24.5s11-24.5%2024.5-24.5c9.1%200%2017.1%205%2021.3%2012.5l13-7.5c-6.8-11.9-19.6-20-34.3-20c-21.8%200-39.5%2017.7-39.5%2039.5s17.7%2039.5%2039.5%2039.5c14.6%200%2027.4-8%2034.2-19.8z'%20/%3e%3c/svg%3e",
|
|
40
199
|
file: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e"
|
|
41
|
-
},
|
|
42
|
-
className: [
|
|
43
|
-
src:
|
|
200
|
+
}, st = (e) => /* @__PURE__ */ p("img", {
|
|
201
|
+
className: [at.icon, e.className].filter(Boolean).join(" "),
|
|
202
|
+
src: ot[e.language] || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23788191'%20d='m12.89%203l1.96.4L11.11%2021l-1.96-.4zm6.7%209L16%208.41V5.58L22.42%2012L16%2018.41v-2.83zM1.58%2012L8%205.58v2.83L4.41%2012L8%2015.58v2.83z'%20/%3e%3c/svg%3e",
|
|
44
203
|
width: e.size,
|
|
45
204
|
height: e.size,
|
|
46
205
|
alt: e.language,
|
|
@@ -49,7 +208,7 @@ var Ze = { icon: "_icon_k0isg_1" }, C = ({ src: e, alt: t, className: n }) => {
|
|
|
49
208
|
height: e.size,
|
|
50
209
|
...e.style
|
|
51
210
|
}
|
|
52
|
-
}),
|
|
211
|
+
}), ct = [
|
|
53
212
|
"rust",
|
|
54
213
|
"javascript",
|
|
55
214
|
"typescript",
|
|
@@ -69,37 +228,14 @@ var Ze = { icon: "_icon_k0isg_1" }, C = ({ src: e, alt: t, className: n }) => {
|
|
|
69
228
|
"cpp",
|
|
70
229
|
"c",
|
|
71
230
|
"file"
|
|
72
|
-
],
|
|
73
|
-
icon: "_icon_g71ox_1",
|
|
74
|
-
"icon-theme-color": "_icon-theme-color_g71ox_10"
|
|
75
|
-
}, w = (e) => /* @__PURE__ */ p("div", {
|
|
76
|
-
className: e.className,
|
|
77
|
-
style: e.style,
|
|
78
|
-
children: /* @__PURE__ */ p("svg", {
|
|
79
|
-
width: e.size || "1.25rem",
|
|
80
|
-
height: e.size || "1.25rem",
|
|
81
|
-
viewBox: "0 0 24 24",
|
|
82
|
-
focusable: "false",
|
|
83
|
-
role: "img",
|
|
84
|
-
children: /* @__PURE__ */ p("path", {
|
|
85
|
-
style: {
|
|
86
|
-
"--elmethis-scoped-color": e.colorLight ?? e.color,
|
|
87
|
-
"--elmethis-scoped-color-dark": e.colorDark ?? e.color,
|
|
88
|
-
...e.style
|
|
89
|
-
},
|
|
90
|
-
className: e.useThemeColor ? nt["icon-theme-color"] : nt.icon,
|
|
91
|
-
fill: "currentColor",
|
|
92
|
-
d: e.d
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
}), rt = {
|
|
231
|
+
], lt = {
|
|
96
232
|
wrapper: "_wrapper_1q92c_15",
|
|
97
233
|
dot: "_dot_1q92c_22",
|
|
98
234
|
bounce: "_bounce_1q92c_1"
|
|
99
|
-
},
|
|
235
|
+
}, E = (e) => {
|
|
100
236
|
let { color: t, size: n = "64px", style: r } = e;
|
|
101
237
|
return /* @__PURE__ */ p("div", {
|
|
102
|
-
className: [
|
|
238
|
+
className: [lt.wrapper, e.className].filter(Boolean).join(" "),
|
|
103
239
|
style: {
|
|
104
240
|
width: n,
|
|
105
241
|
height: n,
|
|
@@ -110,51 +246,51 @@ var Ze = { icon: "_icon_k0isg_1" }, C = ({ src: e, alt: t, className: n }) => {
|
|
|
110
246
|
2,
|
|
111
247
|
3
|
|
112
248
|
].map((e) => /* @__PURE__ */ p("div", {
|
|
113
|
-
className:
|
|
249
|
+
className: lt.dot,
|
|
114
250
|
"aria-hidden": !0,
|
|
115
251
|
style: t ? { backgroundColor: t } : void 0
|
|
116
252
|
}, e))
|
|
117
253
|
});
|
|
118
|
-
},
|
|
254
|
+
}, ut = {
|
|
119
255
|
wrapper: "_wrapper_1yu3x_19",
|
|
120
256
|
square: "_square_1yu3x_28",
|
|
121
257
|
appear: "_appear_1yu3x_1"
|
|
122
|
-
},
|
|
123
|
-
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i =
|
|
258
|
+
}, dt = 1200, ft = (e) => {
|
|
259
|
+
let { size: t = "3rem", dimensions: n = 4, style: r } = e, i = dt / (n * 3), a = Array.from({ length: n });
|
|
124
260
|
return /* @__PURE__ */ p("div", {
|
|
125
|
-
className: [
|
|
261
|
+
className: [ut.wrapper, e.className].filter(Boolean).join(" "),
|
|
126
262
|
style: {
|
|
127
263
|
"--size": t,
|
|
128
264
|
"--dimensions": n,
|
|
129
|
-
"--duration": `${
|
|
265
|
+
"--duration": `${dt}ms`,
|
|
130
266
|
...r
|
|
131
267
|
},
|
|
132
268
|
children: a.map((e, t) => a.map((e, n) => /* @__PURE__ */ p("div", {
|
|
133
|
-
className:
|
|
269
|
+
className: ut.square,
|
|
134
270
|
style: { "--delay": `${i * (t + n)}ms` }
|
|
135
271
|
}, `${t}-${n}`)))
|
|
136
272
|
});
|
|
137
|
-
},
|
|
138
|
-
function
|
|
273
|
+
}, pt = { icon: "_icon_x4u0f_1" }, mt = "elmethis-theme";
|
|
274
|
+
function ht() {
|
|
139
275
|
if (typeof document < "u") {
|
|
140
276
|
let e = document.documentElement.getAttribute("data-theme");
|
|
141
277
|
if (e != null) return e === "dark";
|
|
142
278
|
}
|
|
143
279
|
if (typeof localStorage < "u") {
|
|
144
|
-
let e = localStorage.getItem(
|
|
280
|
+
let e = localStorage.getItem(mt);
|
|
145
281
|
if (e != null) return e === "dark";
|
|
146
282
|
}
|
|
147
283
|
return !1;
|
|
148
284
|
}
|
|
149
|
-
function
|
|
150
|
-
let [e, t] = d(
|
|
285
|
+
function gt() {
|
|
286
|
+
let [e, t] = d(ht), n = a(() => {
|
|
151
287
|
t((e) => !e);
|
|
152
288
|
}, []);
|
|
153
289
|
return s(() => {
|
|
154
290
|
if (typeof document < "u") {
|
|
155
291
|
document.documentElement.setAttribute("data-theme", e ? "dark" : "light");
|
|
156
292
|
let t = document.querySelector("body");
|
|
157
|
-
t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(
|
|
293
|
+
t != null && (t.style.colorScheme = e ? "dark" : "light"), typeof localStorage < "u" && localStorage.setItem(mt, e ? "dark" : "light");
|
|
158
294
|
}
|
|
159
295
|
}, [e]), {
|
|
160
296
|
isDarkTheme: e,
|
|
@@ -163,14 +299,14 @@ function ut() {
|
|
|
163
299
|
}
|
|
164
300
|
//#endregion
|
|
165
301
|
//#region src/components/icon/ElmToggleTheme.tsx
|
|
166
|
-
var
|
|
167
|
-
let { size: t = "2rem", style: n, className: r } = e, { isDarkTheme: i, toggleTheme: a } =
|
|
302
|
+
var _t = (e) => {
|
|
303
|
+
let { size: t = "2rem", style: n, className: r } = e, { isDarkTheme: i, toggleTheme: a } = gt();
|
|
168
304
|
return i ? /* @__PURE__ */ m("svg", {
|
|
169
305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
170
306
|
width: t,
|
|
171
307
|
height: t,
|
|
172
308
|
viewBox: "0 0 24 24",
|
|
173
|
-
className: [
|
|
309
|
+
className: [pt.icon, r].filter(Boolean).join(" "),
|
|
174
310
|
style: n,
|
|
175
311
|
onClick: a,
|
|
176
312
|
children: [
|
|
@@ -399,7 +535,7 @@ var dt = (e) => {
|
|
|
399
535
|
width: t,
|
|
400
536
|
height: t,
|
|
401
537
|
viewBox: "0 0 24 24",
|
|
402
|
-
className:
|
|
538
|
+
className: pt.icon,
|
|
403
539
|
style: n,
|
|
404
540
|
onClick: a,
|
|
405
541
|
children: [
|
|
@@ -592,19 +728,19 @@ var dt = (e) => {
|
|
|
592
728
|
})
|
|
593
729
|
]
|
|
594
730
|
});
|
|
595
|
-
},
|
|
731
|
+
}, D = {
|
|
596
732
|
arrow: "_arrow_kn879_19",
|
|
597
733
|
loading: "_loading_kn879_49",
|
|
598
734
|
normal: "_normal_kn879_55",
|
|
599
735
|
pending: "_pending_kn879_64"
|
|
600
|
-
},
|
|
736
|
+
}, vt = (e) => {
|
|
601
737
|
let { direction: t = "right", loading: n = !1, pending: r = !1, size: i = "2rem", style: a } = e, o = t === "up" ? "rotate(270deg)" : t === "down" ? "rotate(90deg)" : t === "left" ? "rotate(180deg)" : "rotate(0deg)";
|
|
602
738
|
return /* @__PURE__ */ p("div", {
|
|
603
739
|
className: [
|
|
604
|
-
|
|
605
|
-
!n && !r ?
|
|
606
|
-
n ?
|
|
607
|
-
!n && r ?
|
|
740
|
+
D.arrow,
|
|
741
|
+
!n && !r ? D.normal : void 0,
|
|
742
|
+
n ? D.loading : void 0,
|
|
743
|
+
!n && r ? D.pending : void 0,
|
|
608
744
|
e.className
|
|
609
745
|
].filter(Boolean).join(" "),
|
|
610
746
|
style: {
|
|
@@ -613,66 +749,39 @@ var dt = (e) => {
|
|
|
613
749
|
...a
|
|
614
750
|
}
|
|
615
751
|
});
|
|
616
|
-
},
|
|
752
|
+
}, yt = {
|
|
617
753
|
wrapper: "_wrapper_1c6r3_1",
|
|
618
754
|
favicon: "_favicon_1c6r3_24",
|
|
619
755
|
text: "_text_1c6r3_29"
|
|
620
|
-
},
|
|
621
|
-
text: "_text_1nnze_1",
|
|
622
|
-
link: "_link_1nnze_19"
|
|
623
|
-
}, D = (e) => {
|
|
624
|
-
let t = (e) => {
|
|
625
|
-
let t = e.children;
|
|
626
|
-
return e.kbd && (t = /* @__PURE__ */ p("kbd", { children: t })), e.code && (t = /* @__PURE__ */ p("code", { children: t })), e.strikethrough && (t = /* @__PURE__ */ p("del", { children: t })), e.underline && (t = /* @__PURE__ */ p("ins", { children: t })), e.italic && (t = /* @__PURE__ */ p("em", { children: t })), e.bold && (t = /* @__PURE__ */ p("strong", { children: t })), e.ruby && (t = /* @__PURE__ */ m("ruby", { children: [t, /* @__PURE__ */ p("rt", { children: e.ruby })] })), t;
|
|
627
|
-
}, n = ({ favicon: e, href: t, children: n }) => /* @__PURE__ */ m("a", {
|
|
628
|
-
className: mt.link,
|
|
629
|
-
href: t,
|
|
630
|
-
target: "_blank",
|
|
631
|
-
rel: "noopener noreferrer",
|
|
632
|
-
children: [e && /* @__PURE__ */ p(C, { src: e }), n]
|
|
633
|
-
}), r = (e) => e.href ? n(e) : t(e);
|
|
634
|
-
return /* @__PURE__ */ p("span", {
|
|
635
|
-
className: [mt.text, e.className].filter(Boolean).join(" "),
|
|
636
|
-
style: {
|
|
637
|
-
"--elmethis-text-color-light": e.color,
|
|
638
|
-
"--elmethis-text-color-dark": e.color,
|
|
639
|
-
"--elmethis-text-background-color-light": e.backgroundColor,
|
|
640
|
-
"--elmethis-text-background-color-dark": e.backgroundColor,
|
|
641
|
-
color: e.color ?? (e.backgroundColor ? g(e.backgroundColor) > .5 ? "#3e434b" : "#eeeff1" : void 0),
|
|
642
|
-
backgroundColor: e.backgroundColor,
|
|
643
|
-
...e.style
|
|
644
|
-
},
|
|
645
|
-
children: r(e)
|
|
646
|
-
});
|
|
647
|
-
}, ht = (e) => {
|
|
756
|
+
}, bt = (e) => {
|
|
648
757
|
let { name: t, href: n, favicon: r, style: i } = e;
|
|
649
758
|
return /* @__PURE__ */ m("a", {
|
|
650
|
-
className: [
|
|
759
|
+
className: [yt.wrapper, e.className].filter(Boolean).join(" "),
|
|
651
760
|
href: n,
|
|
652
761
|
target: "_blank",
|
|
653
762
|
rel: "noopener noreferrer",
|
|
654
763
|
style: i,
|
|
655
|
-
children: [r == null ? /* @__PURE__ */ p(
|
|
656
|
-
d:
|
|
764
|
+
children: [r == null ? /* @__PURE__ */ p(C, {
|
|
765
|
+
d: me,
|
|
657
766
|
size: "2.5rem",
|
|
658
767
|
style: { opacity: .7 }
|
|
659
768
|
}) : /* @__PURE__ */ p("img", {
|
|
660
|
-
className:
|
|
769
|
+
className: yt.favicon,
|
|
661
770
|
src: r,
|
|
662
771
|
alt: `favicon of ${t ?? n}`
|
|
663
772
|
}), /* @__PURE__ */ p("div", {
|
|
664
|
-
className:
|
|
665
|
-
children: /* @__PURE__ */ p(
|
|
773
|
+
className: yt.text,
|
|
774
|
+
children: /* @__PURE__ */ p(T, {
|
|
666
775
|
size: ".6rem",
|
|
667
776
|
children: t ?? n
|
|
668
777
|
})
|
|
669
778
|
})]
|
|
670
779
|
});
|
|
671
|
-
},
|
|
780
|
+
}, xt = {
|
|
672
781
|
cube: "_cube_1merk_1",
|
|
673
782
|
"elmethis-cube-icon-rotate": "_elmethis-cube-icon-rotate_1merk_1",
|
|
674
783
|
face: "_face_1merk_8"
|
|
675
|
-
},
|
|
784
|
+
}, St = [
|
|
676
785
|
{
|
|
677
786
|
name: "front",
|
|
678
787
|
rotate: ""
|
|
@@ -697,33 +806,33 @@ var dt = (e) => {
|
|
|
697
806
|
name: "bottom",
|
|
698
807
|
rotate: "rotateX(-90deg)"
|
|
699
808
|
}
|
|
700
|
-
],
|
|
809
|
+
], Ct = (e) => {
|
|
701
810
|
let { size: t = 128, style: n } = e, r = l(() => `translateZ(${t / 2}px)`, [t]);
|
|
702
811
|
return /* @__PURE__ */ p("div", {
|
|
703
|
-
className: [
|
|
812
|
+
className: [xt.cube, e.className].filter(Boolean).join(" "),
|
|
704
813
|
style: {
|
|
705
814
|
width: `${t}px`,
|
|
706
815
|
height: `${t}px`,
|
|
707
816
|
...n
|
|
708
817
|
},
|
|
709
|
-
children:
|
|
710
|
-
className:
|
|
818
|
+
children: St.map((e) => /* @__PURE__ */ p("div", {
|
|
819
|
+
className: xt.face,
|
|
711
820
|
style: { transform: `${e.rotate} ${r}` }
|
|
712
821
|
}, e.name))
|
|
713
822
|
});
|
|
714
|
-
},
|
|
715
|
-
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ?
|
|
823
|
+
}, wt = { icon: "_icon_140bn_1" }, Tt = (e) => {
|
|
824
|
+
let { size: t = "2rem", isLogin: n = !1, isLoading: r = !1, style: i } = e, a = r ? Oe : n ? je : Ae, o = r ? "gray" : n ? "#b36472" : "#6987b8";
|
|
716
825
|
return /* @__PURE__ */ p("div", {
|
|
717
|
-
className: [
|
|
826
|
+
className: [wt.icon, e.className].filter(Boolean).join(" "),
|
|
718
827
|
style: i,
|
|
719
|
-
children: /* @__PURE__ */ p(
|
|
828
|
+
children: /* @__PURE__ */ p(C, {
|
|
720
829
|
d: a,
|
|
721
830
|
color: o,
|
|
722
831
|
size: t
|
|
723
832
|
})
|
|
724
833
|
});
|
|
725
|
-
},
|
|
726
|
-
className: [
|
|
834
|
+
}, Et = { paragraph: "_paragraph_ewdky_1" }, Dt = (e) => /* @__PURE__ */ p("p", {
|
|
835
|
+
className: [Et.paragraph, e.className].filter(Boolean).join(" "),
|
|
727
836
|
style: {
|
|
728
837
|
backgroundColor: e.backgroundColor,
|
|
729
838
|
...e.style
|
|
@@ -733,7 +842,7 @@ var dt = (e) => {
|
|
|
733
842
|
blockquote: "_blockquote_x79j0_1",
|
|
734
843
|
cite: "_cite_x79j0_16",
|
|
735
844
|
icon: "_icon_x79j0_37"
|
|
736
|
-
},
|
|
845
|
+
}, Ot = (e) => /* @__PURE__ */ m("blockquote", {
|
|
737
846
|
ref: u(null),
|
|
738
847
|
className: [O.blockquote, e.className].filter(Boolean).join(" "),
|
|
739
848
|
cite: e.cite,
|
|
@@ -758,7 +867,7 @@ var dt = (e) => {
|
|
|
758
867
|
viewBox: "0 0 24 24",
|
|
759
868
|
width: "1rem",
|
|
760
869
|
height: "1rem",
|
|
761
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
870
|
+
children: /* @__PURE__ */ p("path", { d: xe })
|
|
762
871
|
}),
|
|
763
872
|
/* @__PURE__ */ p("svg", {
|
|
764
873
|
className: O.icon,
|
|
@@ -769,69 +878,69 @@ var dt = (e) => {
|
|
|
769
878
|
viewBox: "0 0 24 24",
|
|
770
879
|
width: "1rem",
|
|
771
880
|
height: "1rem",
|
|
772
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
881
|
+
children: /* @__PURE__ */ p("path", { d: be })
|
|
773
882
|
})
|
|
774
883
|
]
|
|
775
|
-
}),
|
|
884
|
+
}), kt = {
|
|
776
885
|
callout: "_callout_16oli_1",
|
|
777
886
|
header: "_header_16oli_24"
|
|
778
|
-
},
|
|
887
|
+
}, At = Object.freeze({
|
|
779
888
|
note: {
|
|
780
889
|
code: "#6987b8",
|
|
781
|
-
icon:
|
|
890
|
+
icon: Ce
|
|
782
891
|
},
|
|
783
892
|
tip: {
|
|
784
893
|
code: "#59b57c",
|
|
785
|
-
icon:
|
|
894
|
+
icon: Ee
|
|
786
895
|
},
|
|
787
896
|
important: {
|
|
788
897
|
code: "#9771bd",
|
|
789
|
-
icon:
|
|
898
|
+
icon: Re
|
|
790
899
|
},
|
|
791
900
|
warning: {
|
|
792
901
|
code: "#b8a36e",
|
|
793
|
-
icon:
|
|
902
|
+
icon: g
|
|
794
903
|
},
|
|
795
904
|
caution: {
|
|
796
905
|
code: "#b36472",
|
|
797
|
-
icon:
|
|
906
|
+
icon: v
|
|
798
907
|
}
|
|
799
|
-
}),
|
|
800
|
-
let n =
|
|
908
|
+
}), jt = ({ type: e = "note", ...t }) => {
|
|
909
|
+
let n = At[e];
|
|
801
910
|
return /* @__PURE__ */ m("aside", {
|
|
802
|
-
className: [
|
|
911
|
+
className: [kt.callout, t.className].filter(Boolean).join(" "),
|
|
803
912
|
style: {
|
|
804
913
|
"--elmethis-scoped-border-color": n.code,
|
|
805
914
|
"--elmethis-scoped-background-color": `color-mix(in srgb, ${n.code} 10%, transparent)`,
|
|
806
915
|
...t.style
|
|
807
916
|
},
|
|
808
917
|
children: [/* @__PURE__ */ m("div", {
|
|
809
|
-
className:
|
|
810
|
-
children: [/* @__PURE__ */ p(
|
|
918
|
+
className: kt.header,
|
|
919
|
+
children: [/* @__PURE__ */ p(C, {
|
|
811
920
|
d: n.icon,
|
|
812
921
|
size: "1.25em",
|
|
813
922
|
color: n.code
|
|
814
|
-
}), /* @__PURE__ */ p(
|
|
923
|
+
}), /* @__PURE__ */ p(T, {
|
|
815
924
|
color: n.code,
|
|
816
925
|
children: e.toUpperCase()
|
|
817
926
|
})]
|
|
818
927
|
}), /* @__PURE__ */ p("div", { children: t.children })]
|
|
819
928
|
});
|
|
820
|
-
},
|
|
821
|
-
className: [
|
|
929
|
+
}, Mt = { divider: "_divider_uq5jr_1" }, k = (e) => /* @__PURE__ */ p("hr", {
|
|
930
|
+
className: [Mt.divider, e.className].filter(Boolean).join(" "),
|
|
822
931
|
style: e.style
|
|
823
|
-
}),
|
|
932
|
+
}), Nt = { fragment: "_fragment_il7xb_1" }, Pt = (e) => {
|
|
824
933
|
let t = a((e) => {
|
|
825
934
|
let t = new URL(window.location.href);
|
|
826
935
|
t.hash = e, window.history.replaceState(null, "", t.toString()), document.getElementById(e)?.scrollIntoView({ behavior: "smooth" });
|
|
827
936
|
}, []);
|
|
828
937
|
return /* @__PURE__ */ p("span", {
|
|
829
|
-
className: [
|
|
938
|
+
className: [Nt.fragment, e.className].filter(Boolean).join(" "),
|
|
830
939
|
style: e.style,
|
|
831
940
|
onClick: () => t(e.id),
|
|
832
941
|
children: "#"
|
|
833
942
|
});
|
|
834
|
-
},
|
|
943
|
+
}, Ft = {
|
|
835
944
|
"heading-common": "_heading-common_1ytfd_1",
|
|
836
945
|
h1: "_h1_1ytfd_22",
|
|
837
946
|
h2: "_h2_1ytfd_57",
|
|
@@ -841,14 +950,14 @@ var dt = (e) => {
|
|
|
841
950
|
h5: "_h5_1ytfd_134",
|
|
842
951
|
h6: "_h6_1ytfd_138",
|
|
843
952
|
"heading-stretch": "_heading-stretch_1ytfd_1"
|
|
844
|
-
},
|
|
953
|
+
}, It = Object.freeze({
|
|
845
954
|
1: 1.5,
|
|
846
955
|
2: 1.4,
|
|
847
956
|
3: 1.3,
|
|
848
957
|
4: 1.2,
|
|
849
958
|
5: 1.15,
|
|
850
959
|
6: 1.1
|
|
851
|
-
}),
|
|
960
|
+
}), Lt = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), A = ({ level: e = 1, disableFragmentIdentifier: t = !1, ...n }) => {
|
|
852
961
|
let r = u(null), [i, a] = d(!1);
|
|
853
962
|
s(() => {
|
|
854
963
|
let e = r.current;
|
|
@@ -858,17 +967,17 @@ var dt = (e) => {
|
|
|
858
967
|
});
|
|
859
968
|
return t.observe(e), () => t.disconnect();
|
|
860
969
|
}, []);
|
|
861
|
-
let o = `h${e}`, c = n.id ?? (n.text ?
|
|
970
|
+
let o = `h${e}`, c = n.id ?? (n.text ? Lt(n.text) : void 0);
|
|
862
971
|
return /* @__PURE__ */ m(o, {
|
|
863
972
|
ref: r,
|
|
864
973
|
className: [
|
|
865
|
-
|
|
866
|
-
|
|
974
|
+
Ft["heading-common"],
|
|
975
|
+
Ft[`h${e}`],
|
|
867
976
|
n.className
|
|
868
977
|
].filter(Boolean).join(" "),
|
|
869
978
|
id: c,
|
|
870
979
|
style: {
|
|
871
|
-
"--font-size": n.size ?? `${
|
|
980
|
+
"--font-size": n.size ?? `${It[e]}rem`,
|
|
872
981
|
"--scale": +!!i,
|
|
873
982
|
"--opacity": +!!i,
|
|
874
983
|
...n.style
|
|
@@ -876,21 +985,21 @@ var dt = (e) => {
|
|
|
876
985
|
children: [
|
|
877
986
|
n.text && /* @__PURE__ */ p("span", { children: n.text }),
|
|
878
987
|
n.children,
|
|
879
|
-
!t && c && /* @__PURE__ */ p(
|
|
988
|
+
!t && c && /* @__PURE__ */ p(Pt, { id: c }),
|
|
880
989
|
e === 2 && /* @__PURE__ */ p("span", {
|
|
881
|
-
className:
|
|
990
|
+
className: Ft.h2__underline,
|
|
882
991
|
"aria-hidden": "true"
|
|
883
992
|
})
|
|
884
993
|
]
|
|
885
994
|
});
|
|
886
|
-
},
|
|
995
|
+
}, Rt = {
|
|
887
996
|
"elmethis-list-common": "_elmethis-list-common_1qwri_1",
|
|
888
997
|
"elmethis-bulleted-list": "_elmethis-bulleted-list_1qwri_7",
|
|
889
998
|
"elmethis-numbered-list": "_elmethis-numbered-list_1qwri_25"
|
|
890
|
-
},
|
|
999
|
+
}, zt = ({ listStyle: e = "unordered", ...t }) => {
|
|
891
1000
|
let n = [
|
|
892
|
-
|
|
893
|
-
e === "unordered" ?
|
|
1001
|
+
Rt["elmethis-list-common"],
|
|
1002
|
+
e === "unordered" ? Rt["elmethis-bulleted-list"] : Rt["elmethis-numbered-list"],
|
|
894
1003
|
t.className
|
|
895
1004
|
].filter(Boolean).join(" ");
|
|
896
1005
|
return p(e === "ordered" ? "ol" : "ul", {
|
|
@@ -898,53 +1007,53 @@ var dt = (e) => {
|
|
|
898
1007
|
style: t.style,
|
|
899
1008
|
children: t.children
|
|
900
1009
|
});
|
|
901
|
-
},
|
|
1010
|
+
}, Bt = {
|
|
902
1011
|
text: "_text_zrzts_1",
|
|
903
1012
|
cursor: "_cursor_zrzts_30",
|
|
904
1013
|
blink: "_blink_zrzts_1"
|
|
905
|
-
},
|
|
1014
|
+
}, j = (e) => new Promise((t) => {
|
|
906
1015
|
setTimeout(t, e);
|
|
907
|
-
}),
|
|
1016
|
+
}), Vt = ({ texts: e = [], interval: t = 3e3, fontSize: n = "1rem", ...r }) => {
|
|
908
1017
|
let [i, a] = d(""), o = u(!1);
|
|
909
1018
|
return s(() => (o.current = !1, (async () => {
|
|
910
1019
|
for (; !o.current;) for (let n of e) {
|
|
911
1020
|
for (let e = 0; e < n.length; e++) {
|
|
912
|
-
if (o.current || (await
|
|
1021
|
+
if (o.current || (await j(75), o.current)) return;
|
|
913
1022
|
a(n.slice(0, e + 1));
|
|
914
1023
|
}
|
|
915
|
-
if (await
|
|
916
|
-
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await
|
|
917
|
-
if (await
|
|
1024
|
+
if (await j(t), o.current) return;
|
|
1025
|
+
for (let e = n.length; e >= 0; e--) if (o.current || (a(n.slice(0, e)), await j(25), o.current)) return;
|
|
1026
|
+
if (await j(200), o.current) return;
|
|
918
1027
|
}
|
|
919
1028
|
})(), () => {
|
|
920
1029
|
o.current = !0;
|
|
921
1030
|
}), [e, t]), /* @__PURE__ */ m("span", {
|
|
922
|
-
className: [
|
|
1031
|
+
className: [Bt.text, r.className].filter(Boolean).join(" "),
|
|
923
1032
|
style: {
|
|
924
1033
|
fontSize: n,
|
|
925
1034
|
...r.style
|
|
926
1035
|
},
|
|
927
1036
|
children: [i, /* @__PURE__ */ p("span", {
|
|
928
|
-
className:
|
|
1037
|
+
className: Bt.cursor,
|
|
929
1038
|
children: "\xA0"
|
|
930
1039
|
})]
|
|
931
1040
|
});
|
|
932
|
-
},
|
|
933
|
-
className: [
|
|
1041
|
+
}, Ht = { "elm-template": "_elm-template_18rwn_1" }, Ut = (e) => /* @__PURE__ */ p("div", {
|
|
1042
|
+
className: [Ht["elm-template"], e.className].filter(Boolean).join(" "),
|
|
934
1043
|
style: e.style,
|
|
935
1044
|
children: "PLACEHOLDER"
|
|
936
|
-
}),
|
|
1045
|
+
}), M = {
|
|
937
1046
|
progress: "_progress_e6hmw_1",
|
|
938
1047
|
container: "_container_e6hmw_27",
|
|
939
1048
|
value: "_value_e6hmw_41",
|
|
940
1049
|
loading: "_loading_e6hmw_56",
|
|
941
1050
|
buffer: "_buffer_e6hmw_72"
|
|
942
|
-
},
|
|
943
|
-
className:
|
|
1051
|
+
}, Wt = ({ value: e, buffer: t, max: n = 100, weight: r = "4px", round: i = !0, color: a, loading: o = !1, style: s, className: c }) => /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("progress", {
|
|
1052
|
+
className: M.progress,
|
|
944
1053
|
value: e,
|
|
945
1054
|
max: n
|
|
946
1055
|
}), /* @__PURE__ */ m("div", {
|
|
947
|
-
className: [
|
|
1056
|
+
className: [M.container, c].filter(Boolean).join(" "),
|
|
948
1057
|
style: {
|
|
949
1058
|
"--weight": r,
|
|
950
1059
|
"--border-radius": i ? "calc(var(--weight) / 2)" : void 0,
|
|
@@ -953,19 +1062,19 @@ var dt = (e) => {
|
|
|
953
1062
|
},
|
|
954
1063
|
children: [
|
|
955
1064
|
/* @__PURE__ */ p("div", {
|
|
956
|
-
className:
|
|
1065
|
+
className: M.value,
|
|
957
1066
|
style: { "--scale-x": `scaleX(${o ? 0 : e / n})` }
|
|
958
1067
|
}),
|
|
959
|
-
o && /* @__PURE__ */ p("div", { className:
|
|
1068
|
+
o && /* @__PURE__ */ p("div", { className: M.loading }),
|
|
960
1069
|
/* @__PURE__ */ p("div", {
|
|
961
|
-
className:
|
|
1070
|
+
className: M.buffer,
|
|
962
1071
|
style: { "--scale-x": `scaleX(${o ? 0 : t == null ? e / n : t / n})` }
|
|
963
1072
|
})
|
|
964
1073
|
]
|
|
965
|
-
})] }),
|
|
1074
|
+
})] }), Gt = {
|
|
966
1075
|
container: "_container_13d02_1",
|
|
967
1076
|
bar: "_bar_13d02_15"
|
|
968
|
-
},
|
|
1077
|
+
}, Kt = ({ progress: e, weight: t = "4px", round: n = !0, style: r, className: i }) => {
|
|
969
1078
|
let a = l(() => {
|
|
970
1079
|
let t = e.reduce((e, t) => e + t.value, 0), n = e.map((e) => e.value / t * 100);
|
|
971
1080
|
return e.map((e, t) => ({
|
|
@@ -975,52 +1084,52 @@ var dt = (e) => {
|
|
|
975
1084
|
}));
|
|
976
1085
|
}, [e]);
|
|
977
1086
|
return /* @__PURE__ */ p("div", {
|
|
978
|
-
className: [
|
|
1087
|
+
className: [Gt.container, i].filter(Boolean).join(" "),
|
|
979
1088
|
style: {
|
|
980
1089
|
"--weight": t,
|
|
981
1090
|
"--border-radius": n ? "calc(var(--weight) / 2)" : void 0,
|
|
982
1091
|
...r
|
|
983
1092
|
},
|
|
984
1093
|
children: a.map((e, t) => /* @__PURE__ */ p("div", {
|
|
985
|
-
className:
|
|
1094
|
+
className: Gt.bar,
|
|
986
1095
|
style: {
|
|
987
1096
|
"--transform": `translateX(${e.start}%) scaleX(${e.scale})`,
|
|
988
1097
|
"--color": e.color
|
|
989
1098
|
}
|
|
990
1099
|
}, t))
|
|
991
1100
|
});
|
|
992
|
-
},
|
|
1101
|
+
}, qt = { wrapper: "_wrapper_17chp_1" }, Jt = Object.freeze({
|
|
993
1102
|
pending: {
|
|
994
1103
|
color: "#6987b8",
|
|
995
|
-
icon:
|
|
1104
|
+
icon: Le
|
|
996
1105
|
},
|
|
997
1106
|
error: {
|
|
998
1107
|
color: "#c56565",
|
|
999
|
-
icon:
|
|
1108
|
+
icon: _
|
|
1000
1109
|
},
|
|
1001
1110
|
warning: {
|
|
1002
1111
|
color: "#cdb57b",
|
|
1003
|
-
icon:
|
|
1112
|
+
icon: g
|
|
1004
1113
|
},
|
|
1005
1114
|
success: {
|
|
1006
1115
|
color: "#59b57c",
|
|
1007
|
-
icon:
|
|
1116
|
+
icon: oe
|
|
1008
1117
|
}
|
|
1009
|
-
}),
|
|
1010
|
-
let { color: i, icon: a } =
|
|
1118
|
+
}), Yt = ({ status: e, message: t, style: n, className: r }) => {
|
|
1119
|
+
let { color: i, icon: a } = Jt[e];
|
|
1011
1120
|
return /* @__PURE__ */ m("div", {
|
|
1012
|
-
className: [
|
|
1121
|
+
className: [qt.wrapper, r].filter(Boolean).join(" "),
|
|
1013
1122
|
style: n,
|
|
1014
|
-
children: [/* @__PURE__ */ p(
|
|
1123
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1015
1124
|
d: a,
|
|
1016
1125
|
color: i,
|
|
1017
1126
|
size: "1em"
|
|
1018
|
-
}), /* @__PURE__ */ p(
|
|
1127
|
+
}), /* @__PURE__ */ p(T, {
|
|
1019
1128
|
color: i,
|
|
1020
1129
|
children: t
|
|
1021
1130
|
})]
|
|
1022
1131
|
});
|
|
1023
|
-
},
|
|
1132
|
+
}, N = {
|
|
1024
1133
|
wrapper: "_wrapper_gcui5_1",
|
|
1025
1134
|
error: "_error_gcui5_9",
|
|
1026
1135
|
"image-frame": "_image-frame_gcui5_21",
|
|
@@ -1032,7 +1141,7 @@ var dt = (e) => {
|
|
|
1032
1141
|
"alt-text": "_alt-text_gcui5_90",
|
|
1033
1142
|
modal: "_modal_gcui5_94",
|
|
1034
1143
|
"modal-image": "_modal-image_gcui5_108"
|
|
1035
|
-
},
|
|
1144
|
+
}, P = ({ src: e, alt: t, block: n = !1, enableModal: r = !1, width: i, height: a, style: o, className: c }) => {
|
|
1036
1145
|
let [l, f] = d(!0), [h, g] = d(!1), [_, v] = d(!1), y = u(null);
|
|
1037
1146
|
return s(() => {
|
|
1038
1147
|
let t = new Image();
|
|
@@ -1047,30 +1156,30 @@ var dt = (e) => {
|
|
|
1047
1156
|
};
|
|
1048
1157
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1049
1158
|
}, []), /* @__PURE__ */ m("div", {
|
|
1050
|
-
className: [
|
|
1159
|
+
className: [N.wrapper, c].filter(Boolean).join(" "),
|
|
1051
1160
|
ref: y,
|
|
1052
1161
|
style: o,
|
|
1053
1162
|
children: [
|
|
1054
1163
|
h && /* @__PURE__ */ p("div", {
|
|
1055
|
-
className:
|
|
1056
|
-
children: /* @__PURE__ */ p(
|
|
1164
|
+
className: N.error,
|
|
1165
|
+
children: /* @__PURE__ */ p(T, {
|
|
1057
1166
|
color: "#c56565",
|
|
1058
1167
|
size: "1.5rem",
|
|
1059
1168
|
children: "Error loading image"
|
|
1060
1169
|
})
|
|
1061
1170
|
}),
|
|
1062
1171
|
/* @__PURE__ */ m("div", {
|
|
1063
|
-
className:
|
|
1172
|
+
className: N["image-frame"],
|
|
1064
1173
|
style: o,
|
|
1065
1174
|
children: [l && /* @__PURE__ */ p("div", {
|
|
1066
|
-
className:
|
|
1175
|
+
className: N.fallback,
|
|
1067
1176
|
style: {
|
|
1068
1177
|
aspectRatio: i && a ? `${i} / ${a}` : "1200 / 630",
|
|
1069
1178
|
width: i ? `${i}px` : void 0,
|
|
1070
1179
|
height: a ? `${a}px` : void 0
|
|
1071
1180
|
}
|
|
1072
1181
|
}), /* @__PURE__ */ p("img", {
|
|
1073
|
-
className: n ?
|
|
1182
|
+
className: n ? N["image-block"] : N["image-inline"],
|
|
1074
1183
|
src: e,
|
|
1075
1184
|
alt: t,
|
|
1076
1185
|
width: i,
|
|
@@ -1088,24 +1197,24 @@ var dt = (e) => {
|
|
|
1088
1197
|
})]
|
|
1089
1198
|
}),
|
|
1090
1199
|
n && !l && t != null && t.trim() !== "" && /* @__PURE__ */ m("div", {
|
|
1091
|
-
className:
|
|
1092
|
-
children: [/* @__PURE__ */ p(
|
|
1093
|
-
d:
|
|
1200
|
+
className: N["alt-container"],
|
|
1201
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1202
|
+
d: Pe,
|
|
1094
1203
|
color: "#b69545",
|
|
1095
1204
|
style: { flexShrink: 0 }
|
|
1096
1205
|
}), /* @__PURE__ */ p("div", {
|
|
1097
|
-
className:
|
|
1098
|
-
children: /* @__PURE__ */ p(
|
|
1206
|
+
className: N["alt-text"],
|
|
1207
|
+
children: /* @__PURE__ */ p(T, {
|
|
1099
1208
|
size: "0.8rem",
|
|
1100
1209
|
children: t
|
|
1101
1210
|
})
|
|
1102
1211
|
})]
|
|
1103
1212
|
}),
|
|
1104
1213
|
_ && /* @__PURE__ */ p("div", {
|
|
1105
|
-
className:
|
|
1214
|
+
className: N.modal,
|
|
1106
1215
|
onClick: () => v(!1),
|
|
1107
1216
|
children: /* @__PURE__ */ p("img", {
|
|
1108
|
-
className:
|
|
1217
|
+
className: N["modal-image"],
|
|
1109
1218
|
src: e,
|
|
1110
1219
|
alt: t,
|
|
1111
1220
|
width: i,
|
|
@@ -1114,7 +1223,7 @@ var dt = (e) => {
|
|
|
1114
1223
|
})
|
|
1115
1224
|
]
|
|
1116
1225
|
});
|
|
1117
|
-
},
|
|
1226
|
+
}, F = {
|
|
1118
1227
|
file: "_file_sk4pw_1",
|
|
1119
1228
|
"left-container": "_left-container_sk4pw_19",
|
|
1120
1229
|
"right-container": "_right-container_sk4pw_26",
|
|
@@ -1122,49 +1231,49 @@ var dt = (e) => {
|
|
|
1122
1231
|
};
|
|
1123
1232
|
//#endregion
|
|
1124
1233
|
//#region src/components/media/ElmFile.tsx
|
|
1125
|
-
function
|
|
1234
|
+
function Xt(e) {
|
|
1126
1235
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
1127
1236
|
return t.length > 0 ? t[t.length - 1] : null;
|
|
1128
1237
|
}
|
|
1129
|
-
var
|
|
1238
|
+
var Zt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
1130
1239
|
let o = a(async () => {
|
|
1131
1240
|
let n;
|
|
1132
1241
|
try {
|
|
1133
1242
|
let r = await fetch(t);
|
|
1134
1243
|
if (!r.ok) throw Error("Failed to download file");
|
|
1135
1244
|
let i = await r.blob();
|
|
1136
|
-
n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ??
|
|
1245
|
+
n = document.createElement("a"), n.href = URL.createObjectURL(i), n.download = e ?? Xt(t) ?? "file", n.click();
|
|
1137
1246
|
} catch (e) {
|
|
1138
1247
|
console.error("ERROR:", e);
|
|
1139
1248
|
} finally {
|
|
1140
1249
|
n && URL.revokeObjectURL(n.href);
|
|
1141
1250
|
}
|
|
1142
|
-
}, [t, e]), s = e ??
|
|
1251
|
+
}, [t, e]), s = e ?? Xt(t) ?? "unknown file";
|
|
1143
1252
|
return /* @__PURE__ */ m("div", {
|
|
1144
|
-
className: [
|
|
1253
|
+
className: [F.file, i].filter(Boolean).join(" "),
|
|
1145
1254
|
style: r,
|
|
1146
1255
|
children: [/* @__PURE__ */ m("div", {
|
|
1147
|
-
className:
|
|
1148
|
-
children: [/* @__PURE__ */ p(
|
|
1149
|
-
d:
|
|
1256
|
+
className: F["left-container"],
|
|
1257
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1258
|
+
d: ve,
|
|
1150
1259
|
size: "1.25em"
|
|
1151
|
-
}), /* @__PURE__ */ p(
|
|
1260
|
+
}), /* @__PURE__ */ p(T, { children: s })]
|
|
1152
1261
|
}), /* @__PURE__ */ m("div", {
|
|
1153
|
-
className:
|
|
1262
|
+
className: F["right-container"],
|
|
1154
1263
|
children: [n && /* @__PURE__ */ p("span", {
|
|
1155
1264
|
style: { opacity: .6 },
|
|
1156
|
-
children: /* @__PURE__ */ p(
|
|
1265
|
+
children: /* @__PURE__ */ p(T, { children: n })
|
|
1157
1266
|
}), /* @__PURE__ */ p("div", {
|
|
1158
|
-
className:
|
|
1267
|
+
className: F["download-icon"],
|
|
1159
1268
|
onClick: o,
|
|
1160
|
-
children: /* @__PURE__ */ p(
|
|
1161
|
-
d:
|
|
1269
|
+
children: /* @__PURE__ */ p(C, {
|
|
1270
|
+
d: pe,
|
|
1162
1271
|
size: "1.25em"
|
|
1163
1272
|
})
|
|
1164
1273
|
})]
|
|
1165
1274
|
})]
|
|
1166
1275
|
});
|
|
1167
|
-
},
|
|
1276
|
+
}, I = {
|
|
1168
1277
|
parent: "_parent_1hx4v_1",
|
|
1169
1278
|
bookmark: "_bookmark_1hx4v_23",
|
|
1170
1279
|
image: "_image_1hx4v_42",
|
|
@@ -1173,21 +1282,21 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1173
1282
|
date: "_date_1hx4v_81",
|
|
1174
1283
|
link: "_link_1hx4v_90",
|
|
1175
1284
|
favicon: "_favicon_1hx4v_100"
|
|
1176
|
-
},
|
|
1285
|
+
}, Qt = ({ hideUrl: e = !1, openInNewTab: t = !0, title: n, description: r = "No description provided", image: i, url: a, createdAt: o, updatedAt: s, onClick: c, favicon: l, style: u, className: h }) => {
|
|
1177
1286
|
let [g, _] = d(!1), v = (e) => {
|
|
1178
1287
|
c && (e.preventDefault(), c());
|
|
1179
1288
|
}, y = r != null && r.length > 100 ? r.slice(0, 100) + "..." : r;
|
|
1180
1289
|
return /* @__PURE__ */ p("div", {
|
|
1181
|
-
className: [
|
|
1290
|
+
className: [I.parent, h].filter(Boolean).join(" "),
|
|
1182
1291
|
style: u,
|
|
1183
1292
|
children: /* @__PURE__ */ m("a", {
|
|
1184
|
-
className:
|
|
1293
|
+
className: I.bookmark,
|
|
1185
1294
|
href: a,
|
|
1186
1295
|
target: t ? "_blank" : void 0,
|
|
1187
1296
|
rel: "noopener noreferrer",
|
|
1188
1297
|
onClick: v,
|
|
1189
1298
|
children: [i != null && !g && /* @__PURE__ */ p("div", {
|
|
1190
|
-
className:
|
|
1299
|
+
className: I.image,
|
|
1191
1300
|
children: /* @__PURE__ */ p("img", {
|
|
1192
1301
|
src: i,
|
|
1193
1302
|
alt: "OGP Image",
|
|
@@ -1199,16 +1308,16 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1199
1308
|
}
|
|
1200
1309
|
})
|
|
1201
1310
|
}), /* @__PURE__ */ m("div", {
|
|
1202
|
-
className:
|
|
1311
|
+
className: I.typography,
|
|
1203
1312
|
children: [
|
|
1204
1313
|
/* @__PURE__ */ p("div", {
|
|
1205
|
-
className:
|
|
1206
|
-
children: /* @__PURE__ */ p(
|
|
1314
|
+
className: I.title,
|
|
1315
|
+
children: /* @__PURE__ */ p(T, {
|
|
1207
1316
|
bold: !0,
|
|
1208
1317
|
children: n ?? "No title provided"
|
|
1209
1318
|
})
|
|
1210
1319
|
}),
|
|
1211
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
1320
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(T, {
|
|
1212
1321
|
size: "0.8rem",
|
|
1213
1322
|
children: /* @__PURE__ */ p("span", {
|
|
1214
1323
|
style: { opacity: .6 },
|
|
@@ -1216,24 +1325,24 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1216
1325
|
})
|
|
1217
1326
|
}) }),
|
|
1218
1327
|
(o != null || s != null) && /* @__PURE__ */ m("div", {
|
|
1219
|
-
className:
|
|
1220
|
-
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1221
|
-
d:
|
|
1328
|
+
className: I.date,
|
|
1329
|
+
children: [o != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(C, {
|
|
1330
|
+
d: re,
|
|
1222
1331
|
size: "1em"
|
|
1223
|
-
}), /* @__PURE__ */ p(
|
|
1332
|
+
}), /* @__PURE__ */ p(T, {
|
|
1224
1333
|
size: "0.8rem",
|
|
1225
1334
|
children: o
|
|
1226
|
-
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
1227
|
-
d:
|
|
1335
|
+
})] }), s != null && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(C, {
|
|
1336
|
+
d: ie,
|
|
1228
1337
|
size: "1em"
|
|
1229
|
-
}), /* @__PURE__ */ p(
|
|
1338
|
+
}), /* @__PURE__ */ p(T, {
|
|
1230
1339
|
size: "0.8rem",
|
|
1231
1340
|
children: s
|
|
1232
1341
|
})] })]
|
|
1233
1342
|
}),
|
|
1234
1343
|
!e && a != null && /* @__PURE__ */ m("div", {
|
|
1235
|
-
className:
|
|
1236
|
-
children: [l && /* @__PURE__ */ p(
|
|
1344
|
+
className: I.link,
|
|
1345
|
+
children: [l && /* @__PURE__ */ p(w, { src: l }), /* @__PURE__ */ p(T, {
|
|
1237
1346
|
size: "0.8rem",
|
|
1238
1347
|
color: "#6987b8",
|
|
1239
1348
|
children: a
|
|
@@ -1243,11 +1352,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1243
1352
|
})]
|
|
1244
1353
|
})
|
|
1245
1354
|
});
|
|
1246
|
-
},
|
|
1355
|
+
}, L = {
|
|
1247
1356
|
container: "_container_1r6mu_1",
|
|
1248
1357
|
"link-container": "_link-container_1r6mu_10",
|
|
1249
1358
|
text: "_text_1r6mu_36"
|
|
1250
|
-
},
|
|
1359
|
+
}, $t = ({ links: e, style: n, className: r }) => {
|
|
1251
1360
|
let i = u(null), [a, o] = d(!1);
|
|
1252
1361
|
return s(() => {
|
|
1253
1362
|
let e = i.current;
|
|
@@ -1257,44 +1366,44 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1257
1366
|
});
|
|
1258
1367
|
return t.observe(e), () => t.disconnect();
|
|
1259
1368
|
}, []), /* @__PURE__ */ p("nav", {
|
|
1260
|
-
className: [
|
|
1369
|
+
className: [L.container, r].filter(Boolean).join(" "),
|
|
1261
1370
|
ref: i,
|
|
1262
1371
|
style: {
|
|
1263
1372
|
"--opacity": +!!a,
|
|
1264
1373
|
...n
|
|
1265
1374
|
},
|
|
1266
1375
|
children: e.map((n, r) => /* @__PURE__ */ m(t.Fragment, { children: [/* @__PURE__ */ m("div", {
|
|
1267
|
-
className:
|
|
1376
|
+
className: L["link-container"],
|
|
1268
1377
|
onClick: n.onClick,
|
|
1269
1378
|
children: [/* @__PURE__ */ p("span", {
|
|
1270
|
-
className:
|
|
1379
|
+
className: L.text,
|
|
1271
1380
|
style: { "--delay": `${r * 100}ms` },
|
|
1272
|
-
children: /* @__PURE__ */ p(
|
|
1273
|
-
d: r === 0 ?
|
|
1381
|
+
children: /* @__PURE__ */ p(C, {
|
|
1382
|
+
d: r === 0 ? Se : r === e.length - 1 ? y : ye,
|
|
1274
1383
|
size: "1.25em"
|
|
1275
1384
|
})
|
|
1276
1385
|
}), /* @__PURE__ */ p("span", {
|
|
1277
|
-
className:
|
|
1386
|
+
className: L.text,
|
|
1278
1387
|
style: { "--delay": `${r * 100 + 50}ms` },
|
|
1279
|
-
children: /* @__PURE__ */ p(
|
|
1388
|
+
children: /* @__PURE__ */ p(T, { children: n.text })
|
|
1280
1389
|
})]
|
|
1281
1390
|
}), e.length !== r + 1 && /* @__PURE__ */ p("span", {
|
|
1282
|
-
className:
|
|
1391
|
+
className: L.text,
|
|
1283
1392
|
style: { "--delay": `${r * 100 + 100}ms` },
|
|
1284
|
-
children: /* @__PURE__ */ p(
|
|
1285
|
-
d:
|
|
1393
|
+
children: /* @__PURE__ */ p(C, {
|
|
1394
|
+
d: ce,
|
|
1286
1395
|
size: "1em",
|
|
1287
1396
|
color: "#b69545"
|
|
1288
1397
|
})
|
|
1289
1398
|
})] }, r))
|
|
1290
1399
|
});
|
|
1291
|
-
},
|
|
1400
|
+
}, R = {
|
|
1292
1401
|
wrapper: "_wrapper_1tlqa_1",
|
|
1293
1402
|
"wrapper--visible": "_wrapper--visible_1tlqa_33",
|
|
1294
1403
|
partial: "_partial_1tlqa_63",
|
|
1295
1404
|
move: "_move_1tlqa_1",
|
|
1296
1405
|
text: "_text_1tlqa_104"
|
|
1297
|
-
},
|
|
1406
|
+
}, en = ({ position: e = "right", style: t, className: n }) => {
|
|
1298
1407
|
let [r, i] = d(!1);
|
|
1299
1408
|
s(() => {
|
|
1300
1409
|
let e = () => {
|
|
@@ -1310,8 +1419,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1310
1419
|
};
|
|
1311
1420
|
return /* @__PURE__ */ m("nav", {
|
|
1312
1421
|
className: [
|
|
1313
|
-
|
|
1314
|
-
r ?
|
|
1422
|
+
R.wrapper,
|
|
1423
|
+
r ? R["wrapper--visible"] : void 0,
|
|
1315
1424
|
n
|
|
1316
1425
|
].filter(Boolean).join(" "),
|
|
1317
1426
|
style: {
|
|
@@ -1324,68 +1433,68 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1324
1433
|
children: [
|
|
1325
1434
|
/* @__PURE__ */ p("div", {
|
|
1326
1435
|
"aria-hidden": "true",
|
|
1327
|
-
className:
|
|
1436
|
+
className: R.partial
|
|
1328
1437
|
}),
|
|
1329
1438
|
/* @__PURE__ */ p("div", {
|
|
1330
1439
|
"aria-hidden": "true",
|
|
1331
|
-
className:
|
|
1440
|
+
className: R.partial
|
|
1332
1441
|
}),
|
|
1333
1442
|
/* @__PURE__ */ p("div", {
|
|
1334
1443
|
"aria-hidden": "true",
|
|
1335
|
-
className:
|
|
1444
|
+
className: R.partial
|
|
1336
1445
|
}),
|
|
1337
1446
|
/* @__PURE__ */ p("span", {
|
|
1338
|
-
className:
|
|
1447
|
+
className: R.text,
|
|
1339
1448
|
children: "Back to Top"
|
|
1340
1449
|
})
|
|
1341
1450
|
]
|
|
1342
1451
|
});
|
|
1343
|
-
},
|
|
1452
|
+
}, tn = {
|
|
1344
1453
|
toc: "_toc_eubcy_1",
|
|
1345
1454
|
link: "_link_eubcy_15"
|
|
1346
|
-
},
|
|
1347
|
-
className: [
|
|
1455
|
+
}, nn = ({ headings: e, style: t, className: n }) => /* @__PURE__ */ p("nav", {
|
|
1456
|
+
className: [tn.toc, n].filter(Boolean).join(" "),
|
|
1348
1457
|
style: t,
|
|
1349
1458
|
children: e.map((e, t) => /* @__PURE__ */ m("a", {
|
|
1350
|
-
className:
|
|
1459
|
+
className: tn.link,
|
|
1351
1460
|
href: `#${e.id ?? e.text}`,
|
|
1352
1461
|
style: { "--padding-left": `${e.level * .5}rem` },
|
|
1353
1462
|
children: [
|
|
1354
|
-
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(
|
|
1463
|
+
/* @__PURE__ */ p("sup", { children: /* @__PURE__ */ p(T, {
|
|
1355
1464
|
size: "0.6rem",
|
|
1356
1465
|
color: "#6987b8",
|
|
1357
1466
|
children: `H${e.level}`
|
|
1358
1467
|
}) }),
|
|
1359
|
-
/* @__PURE__ */ p(
|
|
1360
|
-
/* @__PURE__ */ p(
|
|
1361
|
-
d:
|
|
1468
|
+
/* @__PURE__ */ p(T, { children: e.text }),
|
|
1469
|
+
/* @__PURE__ */ p(C, {
|
|
1470
|
+
d: Ne,
|
|
1362
1471
|
size: "1em",
|
|
1363
1472
|
color: "#6987b8"
|
|
1364
1473
|
})
|
|
1365
1474
|
]
|
|
1366
1475
|
}, t))
|
|
1367
|
-
}),
|
|
1476
|
+
}), rn = { "block-fallback": "_block-fallback_adya7_1" }, an = {
|
|
1368
1477
|
"rectangle-wave": "_rectangle-wave_gxedo_21",
|
|
1369
1478
|
"elm-rectangle-wave": "_elm-rectangle-wave_gxedo_1"
|
|
1370
|
-
},
|
|
1479
|
+
}, on = (e) => /* @__PURE__ */ p("div", {
|
|
1371
1480
|
"aria-hidden": !0,
|
|
1372
|
-
className: [
|
|
1481
|
+
className: [an["rectangle-wave"], e.className].filter(Boolean).join(" "),
|
|
1373
1482
|
style: e.style
|
|
1374
|
-
}),
|
|
1483
|
+
}), sn = (e) => {
|
|
1375
1484
|
let { height: t = "16rem", style: n } = e;
|
|
1376
1485
|
return /* @__PURE__ */ m("div", {
|
|
1377
|
-
className: [
|
|
1486
|
+
className: [rn["block-fallback"], e.className].filter(Boolean).join(" "),
|
|
1378
1487
|
style: {
|
|
1379
1488
|
"--height": t,
|
|
1380
1489
|
...n
|
|
1381
1490
|
},
|
|
1382
|
-
children: [/* @__PURE__ */ p(
|
|
1491
|
+
children: [/* @__PURE__ */ p(E, {}), /* @__PURE__ */ p(on, {})]
|
|
1383
1492
|
});
|
|
1384
|
-
},
|
|
1493
|
+
}, cn = {
|
|
1385
1494
|
circle: "_circle_ycu2l_19",
|
|
1386
1495
|
"draw-line": "_draw-line_ycu2l_1",
|
|
1387
1496
|
rotate: "_rotate_ycu2l_1"
|
|
1388
|
-
},
|
|
1497
|
+
}, ln = (e) => {
|
|
1389
1498
|
let { radius: t = 16, weight: n = 2, style: r } = e;
|
|
1390
1499
|
return /* @__PURE__ */ p("svg", {
|
|
1391
1500
|
className: e.className,
|
|
@@ -1393,7 +1502,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1393
1502
|
width: t * 2,
|
|
1394
1503
|
style: r,
|
|
1395
1504
|
children: /* @__PURE__ */ p("circle", {
|
|
1396
|
-
className:
|
|
1505
|
+
className: cn.circle,
|
|
1397
1506
|
cx: t,
|
|
1398
1507
|
cy: t,
|
|
1399
1508
|
r: t - n,
|
|
@@ -1401,34 +1510,34 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1401
1510
|
strokeWidth: n
|
|
1402
1511
|
})
|
|
1403
1512
|
});
|
|
1404
|
-
},
|
|
1513
|
+
}, z = {
|
|
1405
1514
|
unsupported: "_unsupported_1xu4c_1",
|
|
1406
1515
|
message: "_message_1xu4c_13",
|
|
1407
1516
|
icon: "_icon_1xu4c_20",
|
|
1408
1517
|
details: "_details_1xu4c_24"
|
|
1409
|
-
},
|
|
1410
|
-
className: [
|
|
1518
|
+
}, un = (e) => /* @__PURE__ */ m("div", {
|
|
1519
|
+
className: [z.unsupported, e.className].filter(Boolean).join(" "),
|
|
1411
1520
|
style: e.style,
|
|
1412
1521
|
children: [/* @__PURE__ */ m("div", {
|
|
1413
|
-
className:
|
|
1522
|
+
className: z.message,
|
|
1414
1523
|
children: [/* @__PURE__ */ p("svg", {
|
|
1415
1524
|
viewBox: "0 0 24 24",
|
|
1416
1525
|
width: "1.25rem",
|
|
1417
1526
|
height: "1.25rem",
|
|
1418
|
-
className:
|
|
1419
|
-
children: /* @__PURE__ */ p("path", { d:
|
|
1420
|
-
}), /* @__PURE__ */ p(
|
|
1527
|
+
className: z.icon,
|
|
1528
|
+
children: /* @__PURE__ */ p("path", { d: Ce })
|
|
1529
|
+
}), /* @__PURE__ */ p(T, {
|
|
1421
1530
|
color: "#868e9c",
|
|
1422
1531
|
children: "UNSUPPORTED BLOCK"
|
|
1423
1532
|
})]
|
|
1424
1533
|
}), e.details && /* @__PURE__ */ p("div", {
|
|
1425
|
-
className:
|
|
1426
|
-
children: /* @__PURE__ */ p(
|
|
1534
|
+
className: z.details,
|
|
1535
|
+
children: /* @__PURE__ */ p(T, {
|
|
1427
1536
|
color: "#868e9c",
|
|
1428
1537
|
children: e.details
|
|
1429
1538
|
})
|
|
1430
1539
|
})]
|
|
1431
|
-
}),
|
|
1540
|
+
}), B = {
|
|
1432
1541
|
button: "_button_c0mex_1",
|
|
1433
1542
|
"button-ornament": "_button-ornament_c0mex_29",
|
|
1434
1543
|
normal: "_normal_c0mex_40",
|
|
@@ -1438,7 +1547,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1438
1547
|
flex: "_flex_c0mex_95",
|
|
1439
1548
|
ripple: "_ripple_c0mex_117",
|
|
1440
1549
|
"button-ripple": "_button-ripple_c0mex_1"
|
|
1441
|
-
},
|
|
1550
|
+
}, dn = ({ loading: e = !1, block: t = !1, disabled: n = !1, primary: r = !1, ...i }) => {
|
|
1442
1551
|
let [o, c] = d(!1), l = u(void 0), { onClick: f } = i, h = a(() => {
|
|
1443
1552
|
!e && !n && f && (c(!0), l.current = window.setTimeout(() => c(!1), 300), f());
|
|
1444
1553
|
}, [
|
|
@@ -1450,11 +1559,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1450
1559
|
l.current && clearTimeout(l.current);
|
|
1451
1560
|
}, []), /* @__PURE__ */ m("button", {
|
|
1452
1561
|
className: [
|
|
1453
|
-
|
|
1454
|
-
!e && !n ?
|
|
1455
|
-
i.color ?
|
|
1456
|
-
!i.color && !r ?
|
|
1457
|
-
!i.color && r ?
|
|
1562
|
+
B.button,
|
|
1563
|
+
!e && !n ? B.enable : "",
|
|
1564
|
+
i.color ? B.colored : "",
|
|
1565
|
+
!i.color && !r ? B.normal : "",
|
|
1566
|
+
!i.color && r ? B.primary : "",
|
|
1458
1567
|
i.className
|
|
1459
1568
|
].filter(Boolean).join(" "),
|
|
1460
1569
|
style: {
|
|
@@ -1467,15 +1576,15 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1467
1576
|
},
|
|
1468
1577
|
onClick: h,
|
|
1469
1578
|
children: [
|
|
1470
|
-
o && /* @__PURE__ */ p("div", { className:
|
|
1471
|
-
e ? /* @__PURE__ */ p(
|
|
1472
|
-
className:
|
|
1579
|
+
o && /* @__PURE__ */ p("div", { className: B.ripple }),
|
|
1580
|
+
e ? /* @__PURE__ */ p(E, { size: "1.5rem" }) : /* @__PURE__ */ p("span", {
|
|
1581
|
+
className: B.flex,
|
|
1473
1582
|
children: i.children
|
|
1474
1583
|
}),
|
|
1475
|
-
/* @__PURE__ */ p("div", { className:
|
|
1584
|
+
/* @__PURE__ */ p("div", { className: B["button-ornament"] })
|
|
1476
1585
|
]
|
|
1477
1586
|
});
|
|
1478
|
-
},
|
|
1587
|
+
}, V = {
|
|
1479
1588
|
container: "_container_12edl_1",
|
|
1480
1589
|
"container-disable": "_container-disable_12edl_14",
|
|
1481
1590
|
checkbox: "_checkbox_12edl_23",
|
|
@@ -1485,7 +1594,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1485
1594
|
loading: "_loading_12edl_48",
|
|
1486
1595
|
"check-line": "_check-line_12edl_67",
|
|
1487
1596
|
"elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_12edl_1"
|
|
1488
|
-
},
|
|
1597
|
+
}, fn = ({ loading: e = !1, disable: t = !1, checked: n = !1, ...r }) => {
|
|
1489
1598
|
let { onChange: i } = r, o = a(() => {
|
|
1490
1599
|
!e && !t && i && i(!n);
|
|
1491
1600
|
}, [
|
|
@@ -1494,13 +1603,13 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1494
1603
|
n,
|
|
1495
1604
|
i
|
|
1496
1605
|
]), s = [
|
|
1497
|
-
|
|
1498
|
-
t ?
|
|
1606
|
+
V.container,
|
|
1607
|
+
t ? V["container-disable"] : "",
|
|
1499
1608
|
r.className
|
|
1500
1609
|
].filter(Boolean).join(" "), c = [
|
|
1501
|
-
|
|
1502
|
-
n ?
|
|
1503
|
-
e ?
|
|
1610
|
+
V.rect,
|
|
1611
|
+
n ? V["rect-checked"] : "",
|
|
1612
|
+
e ? V["rect-loading"] : ""
|
|
1504
1613
|
].filter(Boolean).join(" ");
|
|
1505
1614
|
return /* @__PURE__ */ p("div", {
|
|
1506
1615
|
className: s,
|
|
@@ -1515,13 +1624,13 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1515
1624
|
children: [/* @__PURE__ */ m("svg", {
|
|
1516
1625
|
width: "24",
|
|
1517
1626
|
height: "24",
|
|
1518
|
-
className:
|
|
1627
|
+
className: V.checkbox,
|
|
1519
1628
|
children: [
|
|
1520
1629
|
/* @__PURE__ */ m("circle", {
|
|
1521
1630
|
cx: "0",
|
|
1522
1631
|
cy: "0",
|
|
1523
1632
|
r: "2",
|
|
1524
|
-
className:
|
|
1633
|
+
className: V.loading,
|
|
1525
1634
|
style: { opacity: +!!e },
|
|
1526
1635
|
children: [/* @__PURE__ */ p("animate", {
|
|
1527
1636
|
attributeName: "cx",
|
|
@@ -1543,7 +1652,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1543
1652
|
cx: "20",
|
|
1544
1653
|
cy: "20",
|
|
1545
1654
|
r: "2",
|
|
1546
|
-
className:
|
|
1655
|
+
className: V.loading,
|
|
1547
1656
|
style: { opacity: +!!e },
|
|
1548
1657
|
children: [/* @__PURE__ */ p("animate", {
|
|
1549
1658
|
attributeName: "cx",
|
|
@@ -1570,7 +1679,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1570
1679
|
strokeWidth: "0.8"
|
|
1571
1680
|
}),
|
|
1572
1681
|
n && /* @__PURE__ */ p("polyline", {
|
|
1573
|
-
className:
|
|
1682
|
+
className: V["check-line"],
|
|
1574
1683
|
points: "5,12 10,17 19,8",
|
|
1575
1684
|
strokeWidth: "1.5",
|
|
1576
1685
|
fill: "transparent"
|
|
@@ -1635,88 +1744,6 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1635
1744
|
}), /* @__PURE__ */ p("span", { children: r.label })]
|
|
1636
1745
|
})
|
|
1637
1746
|
});
|
|
1638
|
-
}, V = {
|
|
1639
|
-
wrapper: "_wrapper_fb6dj_1",
|
|
1640
|
-
active: "_active_fb6dj_29",
|
|
1641
|
-
header: "_header_fb6dj_33",
|
|
1642
|
-
label: "_label_fb6dj_41",
|
|
1643
|
-
body: "_body_fb6dj_54",
|
|
1644
|
-
select: "_select_fb6dj_63",
|
|
1645
|
-
selected: "_selected_fb6dj_72",
|
|
1646
|
-
fallback: "_fallback_fb6dj_77",
|
|
1647
|
-
pulldown: "_pulldown_fb6dj_85",
|
|
1648
|
-
collapse: "_collapse_fb6dj_106",
|
|
1649
|
-
option: "_option_fb6dj_116",
|
|
1650
|
-
description: "_description_fb6dj_138"
|
|
1651
|
-
}, ln = ({ disabled: e = !1, loading: t = !1, ...n }) => {
|
|
1652
|
-
let [r, i] = d(!1), o = u(null), c = a(() => {
|
|
1653
|
-
!e && !t && i((e) => !e);
|
|
1654
|
-
}, [e, t]), { options: l, onSelect: h } = n, g = a((e) => {
|
|
1655
|
-
let t = l.find((t) => t.id === e);
|
|
1656
|
-
t && h && (h(t), i(!1));
|
|
1657
|
-
}, [l, h]);
|
|
1658
|
-
return s(() => {
|
|
1659
|
-
let e = (e) => {
|
|
1660
|
-
o.current && !o.current.contains(e.target) && i(!1);
|
|
1661
|
-
};
|
|
1662
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1663
|
-
}, []), /* @__PURE__ */ m("div", {
|
|
1664
|
-
ref: o,
|
|
1665
|
-
className: S(V.wrapper, n.className, { [V.active]: r }),
|
|
1666
|
-
style: {
|
|
1667
|
-
backgroundColor: e || t ? "rgba(0,0,0,0.15)" : void 0,
|
|
1668
|
-
...n.style
|
|
1669
|
-
},
|
|
1670
|
-
onClick: c,
|
|
1671
|
-
children: [/* @__PURE__ */ p("div", {
|
|
1672
|
-
className: V.header,
|
|
1673
|
-
children: /* @__PURE__ */ p("span", {
|
|
1674
|
-
className: V.label,
|
|
1675
|
-
children: n.label
|
|
1676
|
-
})
|
|
1677
|
-
}), /* @__PURE__ */ p("div", {
|
|
1678
|
-
className: V.body,
|
|
1679
|
-
children: /* @__PURE__ */ m("div", {
|
|
1680
|
-
className: V.select,
|
|
1681
|
-
children: [
|
|
1682
|
-
/* @__PURE__ */ p("div", {
|
|
1683
|
-
className: V.selected,
|
|
1684
|
-
children: n.selectedOption ? n.selectedOption.children ? /* @__PURE__ */ p("div", { children: n.selectedOption.children }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", { children: n.selectedOption.label }), n.selectedOption.description && /* @__PURE__ */ p("span", {
|
|
1685
|
-
className: V.description,
|
|
1686
|
-
children: n.selectedOption.description
|
|
1687
|
-
})] }) : /* @__PURE__ */ m("div", {
|
|
1688
|
-
className: V.fallback,
|
|
1689
|
-
children: [/* @__PURE__ */ p(w, { d: ae }), /* @__PURE__ */ p("span", { children: n.placeholder ?? "Select an option" })]
|
|
1690
|
-
})
|
|
1691
|
-
}),
|
|
1692
|
-
/* @__PURE__ */ p(w, {
|
|
1693
|
-
d: Re,
|
|
1694
|
-
size: "1.5rem"
|
|
1695
|
-
}),
|
|
1696
|
-
/* @__PURE__ */ p("div", {
|
|
1697
|
-
className: S(V.pulldown, { [V.active]: r }),
|
|
1698
|
-
children: /* @__PURE__ */ p("div", {
|
|
1699
|
-
className: V.collapse,
|
|
1700
|
-
children: n.options.map((e) => /* @__PURE__ */ m("div", {
|
|
1701
|
-
className: V.option,
|
|
1702
|
-
onClick: (t) => {
|
|
1703
|
-
t.stopPropagation(), g(e.id);
|
|
1704
|
-
},
|
|
1705
|
-
children: [/* @__PURE__ */ p(w, {
|
|
1706
|
-
d: pe,
|
|
1707
|
-
color: "#868e9c",
|
|
1708
|
-
size: "0.75em"
|
|
1709
|
-
}), e.children ? /* @__PURE__ */ p("div", { children: e.children }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", { children: e.label }), e.description && /* @__PURE__ */ p("span", {
|
|
1710
|
-
className: V.description,
|
|
1711
|
-
children: e.description
|
|
1712
|
-
})] })]
|
|
1713
|
-
}, e.id))
|
|
1714
|
-
})
|
|
1715
|
-
})
|
|
1716
|
-
]
|
|
1717
|
-
})
|
|
1718
|
-
})]
|
|
1719
|
-
});
|
|
1720
1747
|
}, H = {
|
|
1721
1748
|
switch: "_switch_8t362_1",
|
|
1722
1749
|
bar: "_bar_8t362_5",
|
|
@@ -1725,7 +1752,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1725
1752
|
circle: "_circle_8t362_30",
|
|
1726
1753
|
"circle-checked": "_circle-checked_8t362_45",
|
|
1727
1754
|
"circle-disabled": "_circle-disabled_8t362_49"
|
|
1728
|
-
},
|
|
1755
|
+
}, pn = ({ color: e = "#bfa056", size: t = "18px", disabled: n = !1, checked: r = !1, ...i }) => {
|
|
1729
1756
|
let { onChange: o } = i, s = a(() => {
|
|
1730
1757
|
!n && o && o(!r);
|
|
1731
1758
|
}, [
|
|
@@ -1776,28 +1803,28 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1776
1803
|
suffix: "_suffix_1y96m_159",
|
|
1777
1804
|
counter: "_counter_1y96m_172",
|
|
1778
1805
|
"counter-over": "_counter-over_1y96m_177"
|
|
1779
|
-
},
|
|
1780
|
-
text:
|
|
1781
|
-
pen:
|
|
1782
|
-
email:
|
|
1783
|
-
user:
|
|
1784
|
-
lock:
|
|
1785
|
-
key:
|
|
1786
|
-
earth:
|
|
1787
|
-
tag:
|
|
1788
|
-
archive:
|
|
1789
|
-
link:
|
|
1790
|
-
search:
|
|
1791
|
-
},
|
|
1806
|
+
}, mn = {
|
|
1807
|
+
text: Ve,
|
|
1808
|
+
pen: Fe,
|
|
1809
|
+
email: he,
|
|
1810
|
+
user: h,
|
|
1811
|
+
lock: ke,
|
|
1812
|
+
key: we,
|
|
1813
|
+
earth: me,
|
|
1814
|
+
tag: Be,
|
|
1815
|
+
archive: b,
|
|
1816
|
+
link: De,
|
|
1817
|
+
search: Me
|
|
1818
|
+
}, hn = ({ disabled: e = !1, loading: t = !1, isPassword: n = !1, required: r = !1, value: i = "", ...o }) => {
|
|
1792
1819
|
let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o, y = a(() => {
|
|
1793
1820
|
!t && !e && v && v("");
|
|
1794
1821
|
}, [
|
|
1795
1822
|
t,
|
|
1796
1823
|
e,
|
|
1797
1824
|
v
|
|
1798
|
-
]),
|
|
1825
|
+
]), b = a(() => {
|
|
1799
1826
|
!t && !e && _((e) => e === "text" ? "password" : "text");
|
|
1800
|
-
}, [t, e]),
|
|
1827
|
+
}, [t, e]), ee = a((e) => (t) => {
|
|
1801
1828
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
|
|
1802
1829
|
}, []);
|
|
1803
1830
|
return /* @__PURE__ */ m("div", {
|
|
@@ -1833,8 +1860,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1833
1860
|
/* @__PURE__ */ m("div", {
|
|
1834
1861
|
className: U.body,
|
|
1835
1862
|
children: [
|
|
1836
|
-
o.icon && /* @__PURE__ */ p(
|
|
1837
|
-
d:
|
|
1863
|
+
o.icon && /* @__PURE__ */ p(C, {
|
|
1864
|
+
d: mn[o.icon],
|
|
1838
1865
|
size: "1.5rem",
|
|
1839
1866
|
color: "gray"
|
|
1840
1867
|
}),
|
|
@@ -1861,12 +1888,12 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1861
1888
|
}),
|
|
1862
1889
|
/* @__PURE__ */ p("div", {
|
|
1863
1890
|
className: U.icon,
|
|
1864
|
-
onClick:
|
|
1865
|
-
onKeyDown: b
|
|
1891
|
+
onClick: b,
|
|
1892
|
+
onKeyDown: ee(b),
|
|
1866
1893
|
role: "button",
|
|
1867
1894
|
tabIndex: 0,
|
|
1868
|
-
children: /* @__PURE__ */ p(
|
|
1869
|
-
d: g === "text" ?
|
|
1895
|
+
children: /* @__PURE__ */ p(C, {
|
|
1896
|
+
d: g === "text" ? _e : ge,
|
|
1870
1897
|
size: "1.75em",
|
|
1871
1898
|
color: "gray"
|
|
1872
1899
|
})
|
|
@@ -1874,11 +1901,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1874
1901
|
/* @__PURE__ */ p("div", {
|
|
1875
1902
|
className: U.icon,
|
|
1876
1903
|
onClick: y,
|
|
1877
|
-
onKeyDown:
|
|
1904
|
+
onKeyDown: ee(y),
|
|
1878
1905
|
role: "button",
|
|
1879
1906
|
tabIndex: 0,
|
|
1880
|
-
children: /* @__PURE__ */ p(
|
|
1881
|
-
d:
|
|
1907
|
+
children: /* @__PURE__ */ p(C, {
|
|
1908
|
+
d: ne,
|
|
1882
1909
|
size: "1.75em",
|
|
1883
1910
|
color: "gray"
|
|
1884
1911
|
})
|
|
@@ -1893,45 +1920,45 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1893
1920
|
})
|
|
1894
1921
|
]
|
|
1895
1922
|
});
|
|
1896
|
-
},
|
|
1897
|
-
className: [
|
|
1923
|
+
}, gn = { validation: "_validation_wuw0j_1" }, _n = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
|
|
1924
|
+
className: [gn.validation, t.className].filter(Boolean).join(" "),
|
|
1898
1925
|
style: {
|
|
1899
1926
|
"--opacity": t.isValid ? 1 : .5,
|
|
1900
1927
|
...t.style
|
|
1901
1928
|
},
|
|
1902
|
-
children: [/* @__PURE__ */ p(
|
|
1903
|
-
d: t.isValid ?
|
|
1929
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1930
|
+
d: t.isValid ? oe : se,
|
|
1904
1931
|
color: t.isValid ? e : void 0
|
|
1905
1932
|
}), /* @__PURE__ */ p("span", {
|
|
1906
1933
|
style: { color: t.isValid ? e : void 0 },
|
|
1907
1934
|
children: t.text
|
|
1908
1935
|
})]
|
|
1909
|
-
}),
|
|
1936
|
+
}), vn = {
|
|
1910
1937
|
"elm-collapse": "_elm-collapse_j2kw5_1",
|
|
1911
1938
|
inner: "_inner_j2kw5_8",
|
|
1912
1939
|
open: "_open_j2kw5_12"
|
|
1913
|
-
},
|
|
1914
|
-
className:
|
|
1940
|
+
}, yn = (e) => /* @__PURE__ */ p("div", {
|
|
1941
|
+
className: x(vn["elm-collapse"], { [vn.open]: e.isOpen }),
|
|
1915
1942
|
style: e.style,
|
|
1916
1943
|
children: /* @__PURE__ */ p("div", {
|
|
1917
|
-
className:
|
|
1944
|
+
className: vn.inner,
|
|
1918
1945
|
children: e.children
|
|
1919
1946
|
})
|
|
1920
|
-
}),
|
|
1921
|
-
className: [
|
|
1947
|
+
}), bn = { column: "_column_12uje_1" }, xn = (e) => /* @__PURE__ */ p("div", {
|
|
1948
|
+
className: [bn.column, e.className].filter(Boolean).join(" "),
|
|
1922
1949
|
style: e.style,
|
|
1923
1950
|
children: e.children
|
|
1924
|
-
}),
|
|
1925
|
-
className: [
|
|
1951
|
+
}), Sn = { "column-list": "_column-list_rt1o3_1" }, Cn = (e) => /* @__PURE__ */ p("div", {
|
|
1952
|
+
className: [Sn["column-list"], e.className].filter(Boolean).join(" "),
|
|
1926
1953
|
style: e.style,
|
|
1927
1954
|
children: e.children
|
|
1928
|
-
}),
|
|
1955
|
+
}), wn = {
|
|
1929
1956
|
body: "_body_gd5gc_1",
|
|
1930
1957
|
button: "_button_gd5gc_5"
|
|
1931
|
-
},
|
|
1958
|
+
}, Tn = {
|
|
1932
1959
|
provider: "_provider_qbioz_1",
|
|
1933
1960
|
exit: "_exit_qbioz_23"
|
|
1934
|
-
},
|
|
1961
|
+
}, En = ({ closeOnClickOutside: e = !0, duration: t = 200, isOpen: n, setIsOpen: r, ...i }) => {
|
|
1935
1962
|
let [o, c] = d(!1);
|
|
1936
1963
|
s(() => {
|
|
1937
1964
|
if (n) {
|
|
@@ -1947,8 +1974,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1947
1974
|
}, [e, r]), u = a((e) => {
|
|
1948
1975
|
e.stopPropagation();
|
|
1949
1976
|
}, []);
|
|
1950
|
-
return !n && !o ? null :
|
|
1951
|
-
className:
|
|
1977
|
+
return !n && !o ? null : Je(/* @__PURE__ */ p("div", {
|
|
1978
|
+
className: x(Tn.provider, { [Tn.exit]: !n }),
|
|
1952
1979
|
style: { transitionDuration: `${t}ms` },
|
|
1953
1980
|
onClick: l,
|
|
1954
1981
|
children: /* @__PURE__ */ p("div", {
|
|
@@ -1958,7 +1985,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1958
1985
|
children: i.children
|
|
1959
1986
|
})
|
|
1960
1987
|
}), document.body);
|
|
1961
|
-
},
|
|
1988
|
+
}, Dn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
|
|
1962
1989
|
let [s, c] = d(!1), l = a(() => {
|
|
1963
1990
|
t && t(!1);
|
|
1964
1991
|
}, [t]), u = a(async () => {
|
|
@@ -1974,35 +2001,35 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1974
2001
|
i,
|
|
1975
2002
|
t
|
|
1976
2003
|
]);
|
|
1977
|
-
return /* @__PURE__ */ p(
|
|
2004
|
+
return /* @__PURE__ */ p(En, {
|
|
1978
2005
|
isOpen: o.value,
|
|
1979
2006
|
setIsOpen: t,
|
|
1980
2007
|
closeOnClickOutside: e,
|
|
1981
2008
|
className: o.className,
|
|
1982
2009
|
children: /* @__PURE__ */ m("div", { children: [
|
|
1983
|
-
/* @__PURE__ */ p(
|
|
2010
|
+
/* @__PURE__ */ p(A, {
|
|
1984
2011
|
level: 2,
|
|
1985
2012
|
disableFragmentIdentifier: !0,
|
|
1986
2013
|
children: o.title
|
|
1987
2014
|
}),
|
|
1988
2015
|
/* @__PURE__ */ p("div", {
|
|
1989
|
-
className:
|
|
2016
|
+
className: wn.body,
|
|
1990
2017
|
children: o.children
|
|
1991
2018
|
}),
|
|
1992
2019
|
/* @__PURE__ */ m("div", {
|
|
1993
|
-
className:
|
|
1994
|
-
children: [/* @__PURE__ */ m(
|
|
2020
|
+
className: wn.button,
|
|
2021
|
+
children: [/* @__PURE__ */ m(dn, {
|
|
1995
2022
|
block: !0,
|
|
1996
2023
|
onClick: l,
|
|
1997
2024
|
loading: s,
|
|
1998
|
-
children: [/* @__PURE__ */ p(
|
|
1999
|
-
}), /* @__PURE__ */ m(
|
|
2025
|
+
children: [/* @__PURE__ */ p(C, { d: te }), /* @__PURE__ */ p("span", { children: "Cancel" })]
|
|
2026
|
+
}), /* @__PURE__ */ m(dn, {
|
|
2000
2027
|
block: !0,
|
|
2001
2028
|
onClick: u,
|
|
2002
2029
|
primary: !0,
|
|
2003
2030
|
loading: s,
|
|
2004
|
-
children: [/* @__PURE__ */ p(
|
|
2005
|
-
d:
|
|
2031
|
+
children: [/* @__PURE__ */ p(C, {
|
|
2032
|
+
d: oe,
|
|
2006
2033
|
color: "currentColor"
|
|
2007
2034
|
}), /* @__PURE__ */ p("span", { children: "Confirm" })]
|
|
2008
2035
|
})]
|
|
@@ -2013,7 +2040,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2013
2040
|
window: "_window_l8snl_1",
|
|
2014
2041
|
header: "_header_l8snl_14",
|
|
2015
2042
|
dot: "_dot_l8snl_25"
|
|
2016
|
-
},
|
|
2043
|
+
}, On = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
|
|
2017
2044
|
className: [W.window, t.className].filter(Boolean).join(" "),
|
|
2018
2045
|
style: t.style,
|
|
2019
2046
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2039,7 +2066,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2039
2066
|
style: { minHeight: e },
|
|
2040
2067
|
children: t.children
|
|
2041
2068
|
})]
|
|
2042
|
-
}),
|
|
2069
|
+
}), kn = { parallax: "_parallax_1tovg_1" }, An = ({ className: e, ...t }) => {
|
|
2043
2070
|
let [n, r] = d(0);
|
|
2044
2071
|
return s(() => {
|
|
2045
2072
|
let e = null, t = () => {
|
|
@@ -2051,7 +2078,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2051
2078
|
window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
|
|
2052
2079
|
};
|
|
2053
2080
|
}, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2054
|
-
className: [
|
|
2081
|
+
className: [kn.parallax, e].filter(Boolean).join(" "),
|
|
2055
2082
|
style: {
|
|
2056
2083
|
backgroundImage: `url(${t.imageUrl1})`,
|
|
2057
2084
|
transform: `scale(1.2) translateY(${n / 400}%)`,
|
|
@@ -2059,22 +2086,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2059
2086
|
...t.style
|
|
2060
2087
|
}
|
|
2061
2088
|
}), /* @__PURE__ */ p("div", {
|
|
2062
|
-
className:
|
|
2089
|
+
className: kn.parallax,
|
|
2063
2090
|
style: {
|
|
2064
2091
|
backgroundImage: `url(${t.imageUrl2})`,
|
|
2065
2092
|
transform: `scale(1.2) translateY(${n / 900}%)`,
|
|
2066
2093
|
transformOrigin: "bottom"
|
|
2067
2094
|
}
|
|
2068
2095
|
})] });
|
|
2069
|
-
},
|
|
2096
|
+
}, jn = {
|
|
2070
2097
|
container: "_container_1mzm0_1",
|
|
2071
2098
|
title: "_title_1mzm0_16",
|
|
2072
2099
|
text: "_text_1mzm0_22"
|
|
2073
|
-
},
|
|
2100
|
+
}, Mn = {
|
|
2074
2101
|
original: "_original_3zasf_1",
|
|
2075
2102
|
tooltip: "_tooltip_3zasf_5",
|
|
2076
2103
|
"tooltip-enter": "_tooltip-enter_3zasf_17"
|
|
2077
|
-
},
|
|
2104
|
+
}, Nn = (e) => {
|
|
2078
2105
|
let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
|
|
2079
2106
|
let e = t.current;
|
|
2080
2107
|
if (!e) return;
|
|
@@ -2091,63 +2118,63 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2091
2118
|
n && c();
|
|
2092
2119
|
}, [n, c]), /* @__PURE__ */ m("span", {
|
|
2093
2120
|
ref: t,
|
|
2094
|
-
className: [
|
|
2121
|
+
className: [Mn.original, e.className].filter(Boolean).join(" "),
|
|
2095
2122
|
onMouseOver: () => r(!0),
|
|
2096
2123
|
onMouseLeave: () => r(!1),
|
|
2097
2124
|
style: e.style,
|
|
2098
2125
|
children: [e.original, n && /* @__PURE__ */ p("div", {
|
|
2099
|
-
className: `${
|
|
2126
|
+
className: `${Mn.tooltip} ${Mn["tooltip-enter"]}`,
|
|
2100
2127
|
style: i,
|
|
2101
2128
|
children: e.tooltip
|
|
2102
2129
|
})]
|
|
2103
2130
|
});
|
|
2104
|
-
},
|
|
2131
|
+
}, Pn = (e) => /* @__PURE__ */ p(Nn, {
|
|
2105
2132
|
original: e.children,
|
|
2106
2133
|
tooltip: /* @__PURE__ */ m("div", {
|
|
2107
|
-
className: [
|
|
2134
|
+
className: [jn.container, e.className].filter(Boolean).join(" "),
|
|
2108
2135
|
style: e.style,
|
|
2109
2136
|
children: [e.title && /* @__PURE__ */ p("div", {
|
|
2110
|
-
className:
|
|
2137
|
+
className: jn.title,
|
|
2111
2138
|
children: e.title
|
|
2112
2139
|
}), /* @__PURE__ */ p("div", {
|
|
2113
|
-
className:
|
|
2140
|
+
className: jn.text,
|
|
2114
2141
|
children: e.text
|
|
2115
2142
|
})]
|
|
2116
2143
|
})
|
|
2117
|
-
}),
|
|
2144
|
+
}), Fn = {
|
|
2118
2145
|
snackbar: "_snackbar_1f0go_1",
|
|
2119
2146
|
icon: "_icon_1f0go_19",
|
|
2120
2147
|
progress: "_progress_1f0go_45"
|
|
2121
|
-
},
|
|
2122
|
-
className: [
|
|
2148
|
+
}, In = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
|
|
2149
|
+
className: [Fn.snackbar, t.className].filter(Boolean).join(" "),
|
|
2123
2150
|
style: t.style,
|
|
2124
2151
|
children: [
|
|
2125
|
-
t.label == null ? t.children : /* @__PURE__ */ p(
|
|
2152
|
+
t.label == null ? t.children : /* @__PURE__ */ p(T, { children: t.label }),
|
|
2126
2153
|
/* @__PURE__ */ p("div", {
|
|
2127
|
-
className:
|
|
2154
|
+
className: Fn.icon,
|
|
2128
2155
|
onClick: t.close,
|
|
2129
|
-
children: /* @__PURE__ */ p(
|
|
2130
|
-
d:
|
|
2156
|
+
children: /* @__PURE__ */ p(C, {
|
|
2157
|
+
d: de,
|
|
2131
2158
|
size: "1em"
|
|
2132
2159
|
})
|
|
2133
2160
|
}),
|
|
2134
2161
|
/* @__PURE__ */ p("div", {
|
|
2135
|
-
className:
|
|
2162
|
+
className: Fn.progress,
|
|
2136
2163
|
style: { animationDuration: `${e}ms` }
|
|
2137
2164
|
})
|
|
2138
2165
|
]
|
|
2139
|
-
}),
|
|
2166
|
+
}), Ln = {
|
|
2140
2167
|
"snackbar-screen": "_snackbar-screen_up7j2_1",
|
|
2141
2168
|
"snackbar-container": "_snackbar-container_up7j2_14",
|
|
2142
2169
|
"snackbar-item": "_snackbar-item_up7j2_23"
|
|
2143
|
-
},
|
|
2144
|
-
className: [
|
|
2170
|
+
}, Rn = (e) => /* @__PURE__ */ p("div", {
|
|
2171
|
+
className: [Ln["snackbar-screen"], e.className].filter(Boolean).join(" "),
|
|
2145
2172
|
style: e.style,
|
|
2146
2173
|
children: /* @__PURE__ */ p("div", {
|
|
2147
|
-
className:
|
|
2174
|
+
className: Ln["snackbar-container"],
|
|
2148
2175
|
children: e.snackbars.map((e) => /* @__PURE__ */ p("div", {
|
|
2149
|
-
className:
|
|
2150
|
-
children: /* @__PURE__ */ p(
|
|
2176
|
+
className: Ln["snackbar-item"],
|
|
2177
|
+
children: /* @__PURE__ */ p(In, {
|
|
2151
2178
|
label: e.label,
|
|
2152
2179
|
timeout: e.timeout,
|
|
2153
2180
|
close: e.close,
|
|
@@ -2162,7 +2189,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2162
2189
|
active: "_active_ykoqx_40",
|
|
2163
2190
|
"tab-content-container": "_tab-content-container_ykoqx_51",
|
|
2164
2191
|
"tab-content": "_tab-content_ykoqx_51"
|
|
2165
|
-
},
|
|
2192
|
+
}, zn = (e) => {
|
|
2166
2193
|
let [t, n] = d(0);
|
|
2167
2194
|
return /* @__PURE__ */ m("div", {
|
|
2168
2195
|
className: [G["elm-tabs"], e.className].filter(Boolean).join(" "),
|
|
@@ -2193,8 +2220,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2193
2220
|
border: "_border_16f85_84",
|
|
2194
2221
|
content: "_content_16f85_92",
|
|
2195
2222
|
close: "_close_16f85_96"
|
|
2196
|
-
},
|
|
2197
|
-
let [t, n] =
|
|
2223
|
+
}, Bn = (e) => {
|
|
2224
|
+
let [t, n] = Ye({
|
|
2198
2225
|
prop: e.isOpen,
|
|
2199
2226
|
defaultProp: !1,
|
|
2200
2227
|
onChange: e.setIsOpen
|
|
@@ -2202,7 +2229,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2202
2229
|
e.preventDefault(), n(!t);
|
|
2203
2230
|
};
|
|
2204
2231
|
return /* @__PURE__ */ m("div", {
|
|
2205
|
-
className:
|
|
2232
|
+
className: x(K.toggle, e.className, { [K.open]: t }),
|
|
2206
2233
|
style: { ...e.style },
|
|
2207
2234
|
children: [
|
|
2208
2235
|
/* @__PURE__ */ m("div", {
|
|
@@ -2211,17 +2238,17 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2211
2238
|
children: [
|
|
2212
2239
|
/* @__PURE__ */ m("div", {
|
|
2213
2240
|
className: K["summary-left"],
|
|
2214
|
-
children: [/* @__PURE__ */ p(
|
|
2215
|
-
className:
|
|
2216
|
-
d:
|
|
2241
|
+
children: [/* @__PURE__ */ p(C, {
|
|
2242
|
+
className: x(K.chevron, { [K.open]: t }),
|
|
2243
|
+
d: ce,
|
|
2217
2244
|
color: "#59b57c",
|
|
2218
2245
|
size: "1rem"
|
|
2219
|
-
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(
|
|
2246
|
+
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(T, { children: e.summary }) })]
|
|
2220
2247
|
}),
|
|
2221
2248
|
/* @__PURE__ */ p("hr", { className: K.divider }),
|
|
2222
|
-
/* @__PURE__ */ p(
|
|
2223
|
-
className:
|
|
2224
|
-
d:
|
|
2249
|
+
/* @__PURE__ */ p(C, {
|
|
2250
|
+
className: x(K.cross, { [K.open]: t }),
|
|
2251
|
+
d: Ie,
|
|
2225
2252
|
size: "1rem",
|
|
2226
2253
|
color: t ? "#b36472" : "#59b57c"
|
|
2227
2254
|
})
|
|
@@ -2229,7 +2256,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2229
2256
|
}),
|
|
2230
2257
|
/* @__PURE__ */ p("div", { className: K.border }),
|
|
2231
2258
|
/* @__PURE__ */ p("div", {
|
|
2232
|
-
className:
|
|
2259
|
+
className: x(K.content, { [K.close]: !t }),
|
|
2233
2260
|
children: e.children
|
|
2234
2261
|
})
|
|
2235
2262
|
]
|
|
@@ -2239,7 +2266,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2239
2266
|
caption: "_caption_197ge_8",
|
|
2240
2267
|
"caption-inner": "_caption-inner_197ge_18",
|
|
2241
2268
|
spacing: "_spacing_197ge_25"
|
|
2242
|
-
},
|
|
2269
|
+
}, Vn = r(!1), Hn = r(!1), Un = ({ caption: e, hasRowHeader: t = !1, header: n, body: r, style: i, className: a }) => /* @__PURE__ */ p(Hn.Provider, {
|
|
2243
2270
|
value: t,
|
|
2244
2271
|
children: /* @__PURE__ */ m("table", {
|
|
2245
2272
|
className: [q.table, a].filter(Boolean).join(" "),
|
|
@@ -2256,10 +2283,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2256
2283
|
width: "1rem",
|
|
2257
2284
|
height: "1rem",
|
|
2258
2285
|
children: /* @__PURE__ */ p("path", {
|
|
2259
|
-
d:
|
|
2286
|
+
d: ze,
|
|
2260
2287
|
fill: "#6987b8"
|
|
2261
2288
|
})
|
|
2262
|
-
}), /* @__PURE__ */ p(
|
|
2289
|
+
}), /* @__PURE__ */ p(T, { children: e })]
|
|
2263
2290
|
}),
|
|
2264
2291
|
/* @__PURE__ */ p("span", { className: q.spacing })
|
|
2265
2292
|
]
|
|
@@ -2268,44 +2295,44 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2268
2295
|
r
|
|
2269
2296
|
]
|
|
2270
2297
|
})
|
|
2271
|
-
}),
|
|
2298
|
+
}), Wn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Vn.Provider, {
|
|
2272
2299
|
value: !1,
|
|
2273
2300
|
children: /* @__PURE__ */ p("tbody", {
|
|
2274
2301
|
className: n,
|
|
2275
2302
|
style: t,
|
|
2276
2303
|
children: e
|
|
2277
2304
|
})
|
|
2278
|
-
}),
|
|
2305
|
+
}), Gn = {
|
|
2279
2306
|
common: "_common_15vhm_1",
|
|
2280
2307
|
td: "_td_15vhm_26",
|
|
2281
2308
|
th: "_th_15vhm_34"
|
|
2282
|
-
},
|
|
2283
|
-
let a = o(
|
|
2309
|
+
}, Kn = ({ children: e, style: t, hasHeader: n = !1, text: r, className: i }) => {
|
|
2310
|
+
let a = o(Vn), s = n || a;
|
|
2284
2311
|
return /* @__PURE__ */ p(s ? "th" : "td", {
|
|
2285
2312
|
className: [
|
|
2286
|
-
|
|
2287
|
-
s ?
|
|
2313
|
+
Gn.common,
|
|
2314
|
+
s ? Gn.th : Gn.td,
|
|
2288
2315
|
i
|
|
2289
2316
|
].filter(Boolean).join(" "),
|
|
2290
2317
|
style: t,
|
|
2291
2318
|
children: r ?? e
|
|
2292
2319
|
});
|
|
2293
|
-
},
|
|
2320
|
+
}, qn = { thead: "_thead_184mb_1" }, Jn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Vn.Provider, {
|
|
2294
2321
|
value: !0,
|
|
2295
2322
|
children: /* @__PURE__ */ p("thead", {
|
|
2296
|
-
className: [
|
|
2323
|
+
className: [qn.thead, n].filter(Boolean).join(" "),
|
|
2297
2324
|
style: t,
|
|
2298
2325
|
children: e
|
|
2299
2326
|
})
|
|
2300
|
-
}),
|
|
2327
|
+
}), Yn = {
|
|
2301
2328
|
tr: "_tr_1l64j_1",
|
|
2302
2329
|
"has-row-header": "_has-row-header_1l64j_25"
|
|
2303
2330
|
}, J = ({ children: e, style: t, className: n }) => {
|
|
2304
|
-
let r = o(
|
|
2331
|
+
let r = o(Hn);
|
|
2305
2332
|
return /* @__PURE__ */ p("tr", {
|
|
2306
2333
|
className: [
|
|
2307
|
-
|
|
2308
|
-
r ?
|
|
2334
|
+
Yn.tr,
|
|
2335
|
+
r ? Yn["has-row-header"] : void 0,
|
|
2309
2336
|
n
|
|
2310
2337
|
].filter(Boolean).join(" "),
|
|
2311
2338
|
style: t,
|
|
@@ -2321,20 +2348,20 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2321
2348
|
code: "_code_189iv_81",
|
|
2322
2349
|
"code-body": "_code-body_189iv_89",
|
|
2323
2350
|
fallback: "_fallback_189iv_93"
|
|
2324
|
-
},
|
|
2325
|
-
function
|
|
2326
|
-
return
|
|
2351
|
+
}, Xn = { code: "_code_1nyfa_1" }, Zn = null;
|
|
2352
|
+
function Qn() {
|
|
2353
|
+
return Zn || (Zn = import("shiki").then(({ createHighlighter: e }) => e({
|
|
2327
2354
|
langs: /* @__PURE__ */ "abap.bash.c.clojure.coffeescript.cpp.csharp.css.dart.diff.docker.elixir.elm.erlang.fsharp.gherkin.glsl.go.graphql.groovy.haskell.html.java.javascript.json.julia.kotlin.latex.less.lisp.lua.makefile.markdown.matlab.mermaid.nix.objective-c.ocaml.pascal.perl.php.plaintext.powershell.prolog.protobuf.python.r.ruby.rust.sass.scala.scheme.scss.shell.sql.swift.toml.typescript.wasm.xml.yaml".split("."),
|
|
2328
2355
|
themes: ["vitesse-light", "vitesse-dark"]
|
|
2329
|
-
}))),
|
|
2356
|
+
}))), Zn;
|
|
2330
2357
|
}
|
|
2331
2358
|
//#endregion
|
|
2332
2359
|
//#region src/components/code/ElmShikiHighlighter.tsx
|
|
2333
|
-
var
|
|
2360
|
+
var $n = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i }) => {
|
|
2334
2361
|
let [a, o] = d(`<pre>${e}</pre>`);
|
|
2335
2362
|
return s(() => {
|
|
2336
2363
|
let r = !1;
|
|
2337
|
-
return
|
|
2364
|
+
return Qn().then((i) => {
|
|
2338
2365
|
if (!r) try {
|
|
2339
2366
|
let a = i.codeToHtml(e, {
|
|
2340
2367
|
lang: t,
|
|
@@ -2361,14 +2388,14 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2361
2388
|
t,
|
|
2362
2389
|
n
|
|
2363
2390
|
]), /* @__PURE__ */ p("div", {
|
|
2364
|
-
className: [
|
|
2391
|
+
className: [Xn.code, i].filter(Boolean).join(" "),
|
|
2365
2392
|
style: r,
|
|
2366
2393
|
children: /* @__PURE__ */ p("div", {
|
|
2367
2394
|
className: "shiki",
|
|
2368
2395
|
dangerouslySetInnerHTML: { __html: a }
|
|
2369
2396
|
})
|
|
2370
2397
|
});
|
|
2371
|
-
},
|
|
2398
|
+
}, er = ({ code: e, language: t = "txt", caption: n, style: r, className: i }) => {
|
|
2372
2399
|
let [o, c] = d(!1), [l, f] = d(!1), [h, g] = d(!1), _ = u(null), v = u(null);
|
|
2373
2400
|
s(() => {
|
|
2374
2401
|
let e = _.current;
|
|
@@ -2396,21 +2423,21 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2396
2423
|
className: Y.header,
|
|
2397
2424
|
children: [/* @__PURE__ */ m("div", {
|
|
2398
2425
|
className: Y.header__left,
|
|
2399
|
-
children: [/* @__PURE__ */ p(
|
|
2426
|
+
children: [/* @__PURE__ */ p(st, {
|
|
2400
2427
|
language: t,
|
|
2401
2428
|
size: 20
|
|
2402
2429
|
}), /* @__PURE__ */ p("span", {
|
|
2403
2430
|
className: Y.caption,
|
|
2404
|
-
children: /* @__PURE__ */ p(
|
|
2431
|
+
children: /* @__PURE__ */ p(T, { children: n ?? t })
|
|
2405
2432
|
})]
|
|
2406
2433
|
}), /* @__PURE__ */ p("div", {
|
|
2407
2434
|
className: Y.header__right,
|
|
2408
2435
|
children: /* @__PURE__ */ p("div", {
|
|
2409
2436
|
className: Y["copy-icon"],
|
|
2410
2437
|
onClick: y,
|
|
2411
|
-
children: /* @__PURE__ */ p(
|
|
2438
|
+
children: /* @__PURE__ */ p(C, {
|
|
2412
2439
|
size: "1.25em",
|
|
2413
|
-
d: l ?
|
|
2440
|
+
d: l ? le : ue,
|
|
2414
2441
|
useThemeColor: l
|
|
2415
2442
|
})
|
|
2416
2443
|
})
|
|
@@ -2420,7 +2447,7 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2420
2447
|
children: [/* @__PURE__ */ p("div", {
|
|
2421
2448
|
className: Y["code-body"],
|
|
2422
2449
|
style: { opacity: +!!o },
|
|
2423
|
-
children: /* @__PURE__ */ p(
|
|
2450
|
+
children: /* @__PURE__ */ p($n, {
|
|
2424
2451
|
code: e,
|
|
2425
2452
|
language: t,
|
|
2426
2453
|
onRendered: c
|
|
@@ -2428,11 +2455,11 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2428
2455
|
}), /* @__PURE__ */ p("div", {
|
|
2429
2456
|
className: Y.fallback,
|
|
2430
2457
|
style: { opacity: +!o },
|
|
2431
|
-
children: /* @__PURE__ */ p(
|
|
2458
|
+
children: /* @__PURE__ */ p(E, { size: "48px" })
|
|
2432
2459
|
})]
|
|
2433
2460
|
})]
|
|
2434
2461
|
});
|
|
2435
|
-
},
|
|
2462
|
+
}, tr = { katex: "_katex_1a1aj_1" }, nr = ({ expression: e, block: t = !1, style: n, className: r }) => {
|
|
2436
2463
|
let [i, a] = d();
|
|
2437
2464
|
s(() => {
|
|
2438
2465
|
import("katex").then(({ renderToString: n }) => {
|
|
@@ -2446,7 +2473,7 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2446
2473
|
}
|
|
2447
2474
|
}).catch(() => {});
|
|
2448
2475
|
}, [e, t]);
|
|
2449
|
-
let o = [
|
|
2476
|
+
let o = [tr.katex, r].filter(Boolean).join(" ");
|
|
2450
2477
|
return p(t ? "div" : "span", {
|
|
2451
2478
|
className: o,
|
|
2452
2479
|
style: n,
|
|
@@ -2455,8 +2482,8 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2455
2482
|
}, X = {
|
|
2456
2483
|
"color-bg": "_color-bg_yiibu_1",
|
|
2457
2484
|
text: "_text_yiibu_17"
|
|
2458
|
-
},
|
|
2459
|
-
let [r, i] = d(!1), o = u(null), s =
|
|
2485
|
+
}, rr = ({ color: e, style: t, className: n }) => {
|
|
2486
|
+
let [r, i] = d(!1), o = u(null), s = Ke(e), { hue: c, saturation: l, lightness: h } = Ge(e), g = qe(s), _ = `rgb(${s.red}, ${s.green}, ${s.blue})`, v = `hsl(${Math.floor(c)}, ${Math.floor(l * 100)}%, ${Math.floor(h * 100)}%)`, y = a((e) => {
|
|
2460
2487
|
navigator.clipboard.writeText(e).then(() => {
|
|
2461
2488
|
i(!0), o.current && clearTimeout(o.current), o.current = setTimeout(() => i(!1), 1500);
|
|
2462
2489
|
});
|
|
@@ -2467,45 +2494,45 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2467
2494
|
"--color": e,
|
|
2468
2495
|
...t
|
|
2469
2496
|
},
|
|
2470
|
-
children: /* @__PURE__ */ p(
|
|
2497
|
+
children: /* @__PURE__ */ p(Nn, {
|
|
2471
2498
|
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2472
2499
|
className: X["color-bg"],
|
|
2473
2500
|
style: { "--background-color": e },
|
|
2474
|
-
onClick: () =>
|
|
2475
|
-
children: r && /* @__PURE__ */ p(
|
|
2476
|
-
d:
|
|
2501
|
+
onClick: () => y(g),
|
|
2502
|
+
children: r && /* @__PURE__ */ p(C, {
|
|
2503
|
+
d: ae,
|
|
2477
2504
|
size: "1em",
|
|
2478
2505
|
color: "white"
|
|
2479
2506
|
})
|
|
2480
2507
|
}), /* @__PURE__ */ p("div", {
|
|
2481
2508
|
className: X.text,
|
|
2482
|
-
onClick: () =>
|
|
2509
|
+
onClick: () => y(g),
|
|
2483
2510
|
children: g
|
|
2484
2511
|
})] }),
|
|
2485
2512
|
tooltip: /* @__PURE__ */ m(f, { children: [
|
|
2486
2513
|
/* @__PURE__ */ p("div", {
|
|
2487
2514
|
className: X.text,
|
|
2488
|
-
onClick: () =>
|
|
2515
|
+
onClick: () => y(g),
|
|
2489
2516
|
children: g
|
|
2490
2517
|
}),
|
|
2491
2518
|
/* @__PURE__ */ p("div", {
|
|
2492
2519
|
className: X.text,
|
|
2493
|
-
onClick: () =>
|
|
2520
|
+
onClick: () => y(_),
|
|
2494
2521
|
children: _
|
|
2495
2522
|
}),
|
|
2496
2523
|
/* @__PURE__ */ p("div", {
|
|
2497
2524
|
className: X.text,
|
|
2498
|
-
onClick: () =>
|
|
2499
|
-
children:
|
|
2525
|
+
onClick: () => y(v),
|
|
2526
|
+
children: v
|
|
2500
2527
|
})
|
|
2501
2528
|
] })
|
|
2502
2529
|
})
|
|
2503
2530
|
});
|
|
2504
|
-
},
|
|
2531
|
+
}, ir = {
|
|
2505
2532
|
container: "_container_a7c06_1",
|
|
2506
2533
|
"row-container": "_row-container_a7c06_9",
|
|
2507
2534
|
"color-name": "_color-name_a7c06_17"
|
|
2508
|
-
},
|
|
2535
|
+
}, ar = [
|
|
2509
2536
|
-3,
|
|
2510
2537
|
-.25,
|
|
2511
2538
|
-.2,
|
|
@@ -2519,16 +2546,16 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2519
2546
|
.2,
|
|
2520
2547
|
.25,
|
|
2521
2548
|
.3
|
|
2522
|
-
],
|
|
2523
|
-
className: [
|
|
2549
|
+
], or = ({ colors: e, style: t, className: n }) => /* @__PURE__ */ p("div", {
|
|
2550
|
+
className: [ir.container, n].filter(Boolean).join(" "),
|
|
2524
2551
|
style: t,
|
|
2525
2552
|
children: e.map((e) => /* @__PURE__ */ m("div", {
|
|
2526
|
-
className:
|
|
2553
|
+
className: ir["row-container"],
|
|
2527
2554
|
children: [/* @__PURE__ */ p("div", {
|
|
2528
|
-
className:
|
|
2555
|
+
className: ir["color-name"],
|
|
2529
2556
|
style: { "--color": e.code },
|
|
2530
2557
|
children: e.name
|
|
2531
|
-
}),
|
|
2558
|
+
}), ar.map((t) => /* @__PURE__ */ p(rr, { color: He(t, e.code) }, t))]
|
|
2532
2559
|
}, e.name))
|
|
2533
2560
|
}), Z = {
|
|
2534
2561
|
palette: "_palette_1glfh_1",
|
|
@@ -2541,7 +2568,7 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2541
2568
|
"command-icon": "_command-icon_1glfh_103",
|
|
2542
2569
|
tag: "_tag_1glfh_107",
|
|
2543
2570
|
footer: "_footer_1glfh_118"
|
|
2544
|
-
},
|
|
2571
|
+
}, sr = {
|
|
2545
2572
|
brown: "#a17c5b",
|
|
2546
2573
|
crimson: "#c56565",
|
|
2547
2574
|
amber: "#d48b70",
|
|
@@ -2552,33 +2579,33 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2552
2579
|
purple: "#9771bd",
|
|
2553
2580
|
pink: "#c9699e"
|
|
2554
2581
|
};
|
|
2555
|
-
function
|
|
2582
|
+
function cr(e, t) {
|
|
2556
2583
|
if (!t.trim()) return [];
|
|
2557
2584
|
let n = t.toLowerCase();
|
|
2558
2585
|
return e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n) || e.keywords?.some((e) => e.toLowerCase().includes(n)));
|
|
2559
2586
|
}
|
|
2560
|
-
var
|
|
2587
|
+
var lr = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
2561
2588
|
let [i, o] = d(""), [c, l] = d([]), [f, h] = d(null), g = u(null);
|
|
2562
2589
|
s(() => {
|
|
2563
2590
|
g.current?.focus();
|
|
2564
2591
|
}, []);
|
|
2565
|
-
let
|
|
2592
|
+
let _ = a((t) => {
|
|
2566
2593
|
let n = t.target.value;
|
|
2567
2594
|
o(n);
|
|
2568
|
-
let r =
|
|
2595
|
+
let r = cr(e, n);
|
|
2569
2596
|
l(r), h(r.length > 0 ? 0 : null);
|
|
2570
|
-
}, [e]),
|
|
2597
|
+
}, [e]), v = a((e) => {
|
|
2571
2598
|
if (e === null) return;
|
|
2572
2599
|
let n = c[e];
|
|
2573
2600
|
n && (n.onInvoke?.(), t?.(n));
|
|
2574
2601
|
}, [c, t]);
|
|
2575
2602
|
return s(() => {
|
|
2576
2603
|
let e = (e) => {
|
|
2577
|
-
e.key === "ArrowDown" || e.key === "Tab" ? (e.preventDefault(), h((e) => e === null ? 0 : e < c.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), h((e) => e === null ? 0 : e > 0 ? e - 1 : 0)) : e.key === "Enter" && (e.preventDefault(),
|
|
2604
|
+
e.key === "ArrowDown" || e.key === "Tab" ? (e.preventDefault(), h((e) => e === null ? 0 : e < c.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), h((e) => e === null ? 0 : e > 0 ? e - 1 : 0)) : e.key === "Enter" && (e.preventDefault(), v(f));
|
|
2578
2605
|
};
|
|
2579
2606
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
2580
2607
|
}, [
|
|
2581
|
-
|
|
2608
|
+
v,
|
|
2582
2609
|
f,
|
|
2583
2610
|
c.length
|
|
2584
2611
|
]), /* @__PURE__ */ m("div", {
|
|
@@ -2591,11 +2618,11 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2591
2618
|
children: [
|
|
2592
2619
|
/* @__PURE__ */ m("header", {
|
|
2593
2620
|
className: Z.header,
|
|
2594
|
-
children: [/* @__PURE__ */ p(
|
|
2621
|
+
children: [/* @__PURE__ */ p(C, { d: fe }), /* @__PURE__ */ p("input", {
|
|
2595
2622
|
ref: g,
|
|
2596
2623
|
className: Z.input,
|
|
2597
2624
|
value: i,
|
|
2598
|
-
onChange:
|
|
2625
|
+
onChange: _,
|
|
2599
2626
|
type: "text",
|
|
2600
2627
|
inputMode: "text"
|
|
2601
2628
|
})]
|
|
@@ -2604,27 +2631,27 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2604
2631
|
className: Z.body,
|
|
2605
2632
|
children: c.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2606
2633
|
className: Z["empty-result"],
|
|
2607
|
-
children: /* @__PURE__ */ p(
|
|
2634
|
+
children: /* @__PURE__ */ p(T, { children: "search anything..." })
|
|
2608
2635
|
}) : c.map((e, t) => /* @__PURE__ */ m("button", {
|
|
2609
2636
|
className: `${Z.command} ${t === f ? Z["command-selected"] : ""}`,
|
|
2610
2637
|
onClick: () => {
|
|
2611
|
-
h(t),
|
|
2638
|
+
h(t), v(t);
|
|
2612
2639
|
},
|
|
2613
2640
|
children: [
|
|
2614
2641
|
e.icon ? /* @__PURE__ */ p("img", {
|
|
2615
2642
|
className: Z["command-icon"],
|
|
2616
2643
|
src: e.icon,
|
|
2617
2644
|
alt: e.label
|
|
2618
|
-
}) : /* @__PURE__ */ p(
|
|
2619
|
-
d:
|
|
2645
|
+
}) : /* @__PURE__ */ p(C, {
|
|
2646
|
+
d: fe,
|
|
2620
2647
|
size: "1rem"
|
|
2621
2648
|
}),
|
|
2622
2649
|
e.tag ? /* @__PURE__ */ p("div", {
|
|
2623
2650
|
className: Z.tag,
|
|
2624
|
-
style: { "--tag-color":
|
|
2651
|
+
style: { "--tag-color": We(-.3, sr[e.tag.color]) },
|
|
2625
2652
|
children: e.tag.name
|
|
2626
2653
|
}) : /* @__PURE__ */ p("div", { className: Z.tag }),
|
|
2627
|
-
/* @__PURE__ */ p(
|
|
2654
|
+
/* @__PURE__ */ p(T, {
|
|
2628
2655
|
style: {
|
|
2629
2656
|
whiteSpace: "nowrap",
|
|
2630
2657
|
overflow: "hidden",
|
|
@@ -2633,7 +2660,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2633
2660
|
},
|
|
2634
2661
|
children: e.label
|
|
2635
2662
|
}),
|
|
2636
|
-
/* @__PURE__ */ p(
|
|
2663
|
+
/* @__PURE__ */ p(T, {
|
|
2637
2664
|
style: {
|
|
2638
2665
|
opacity: .4,
|
|
2639
2666
|
whiteSpace: "nowrap",
|
|
@@ -2642,40 +2669,40 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2642
2669
|
},
|
|
2643
2670
|
children: e.description ?? "-"
|
|
2644
2671
|
}),
|
|
2645
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
2672
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(C, { d: Te }) })
|
|
2646
2673
|
]
|
|
2647
2674
|
}, e.id))
|
|
2648
2675
|
}),
|
|
2649
2676
|
/* @__PURE__ */ m("footer", {
|
|
2650
2677
|
className: Z.footer,
|
|
2651
|
-
children: [/* @__PURE__ */ p(
|
|
2678
|
+
children: [/* @__PURE__ */ p(T, {
|
|
2652
2679
|
kbd: !0,
|
|
2653
2680
|
children: "Esc"
|
|
2654
|
-
}), /* @__PURE__ */ p(
|
|
2681
|
+
}), /* @__PURE__ */ p(T, { children: "Close" })]
|
|
2655
2682
|
})
|
|
2656
2683
|
]
|
|
2657
2684
|
});
|
|
2658
|
-
},
|
|
2685
|
+
}, ur = {
|
|
2659
2686
|
"jarkup-body": "_jarkup-body_jsvhx_1",
|
|
2660
2687
|
"unsupported-block": "_unsupported-block_jsvhx_5"
|
|
2661
|
-
},
|
|
2662
|
-
className: [
|
|
2688
|
+
}, dr = ({ jsonComponents: e, style: t, className: n }) => /* @__PURE__ */ p("div", {
|
|
2689
|
+
className: [ur["jarkup-body"], n].filter(Boolean).join(" "),
|
|
2663
2690
|
style: t,
|
|
2664
2691
|
children: e.map((e, t) => /* @__PURE__ */ p("div", {
|
|
2665
|
-
className:
|
|
2692
|
+
className: ur["unsupported-block"],
|
|
2666
2693
|
children: /* @__PURE__ */ p("code", { children: JSON.stringify(e, null, 2) })
|
|
2667
2694
|
}, t))
|
|
2668
|
-
}),
|
|
2695
|
+
}), fr = {
|
|
2669
2696
|
"jarkup-body": "_jarkup-body_1rlbi_1",
|
|
2670
2697
|
"column-list": "_column-list_1rlbi_9",
|
|
2671
2698
|
column: "_column_1rlbi_9"
|
|
2672
|
-
},
|
|
2699
|
+
}, pr = i(() => import("./ElmMermaid-CUeT_XM9.js").then((e) => e.n).then((e) => ({ default: e.ElmMermaid }))), mr = (e) => e.map((e) => e.type === "Text" ? e.props.text : "").join(""), hr = {
|
|
2673
2700
|
Text: (e, t, n, r) => {
|
|
2674
2701
|
let i = e.id ?? n, a = e.props;
|
|
2675
|
-
return a.katex ? /* @__PURE__ */ p(
|
|
2702
|
+
return a.katex ? /* @__PURE__ */ p(nr, {
|
|
2676
2703
|
expression: a.text,
|
|
2677
2704
|
block: !1
|
|
2678
|
-
}, i) : /* @__PURE__ */ p(
|
|
2705
|
+
}, i) : /* @__PURE__ */ p(T, {
|
|
2679
2706
|
color: a.color,
|
|
2680
2707
|
backgroundColor: a.backgroundColor,
|
|
2681
2708
|
bold: a.bold,
|
|
@@ -2691,7 +2718,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2691
2718
|
},
|
|
2692
2719
|
Icon: (e, t, n, r) => {
|
|
2693
2720
|
let i = e.id ?? n;
|
|
2694
|
-
return /* @__PURE__ */ p(
|
|
2721
|
+
return /* @__PURE__ */ p(w, {
|
|
2695
2722
|
src: e.props.src,
|
|
2696
2723
|
alt: e.props.alt
|
|
2697
2724
|
}, i);
|
|
@@ -2702,16 +2729,16 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2702
2729
|
},
|
|
2703
2730
|
Heading: (e, t, n, r) => {
|
|
2704
2731
|
let i = e.id ?? n;
|
|
2705
|
-
return /* @__PURE__ */ p(
|
|
2732
|
+
return /* @__PURE__ */ p(A, {
|
|
2706
2733
|
level: e.props.level,
|
|
2707
|
-
id:
|
|
2734
|
+
id: Xe(mr(e.slots.default)),
|
|
2708
2735
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2709
2736
|
children: t(e.slots.default)
|
|
2710
2737
|
}, i);
|
|
2711
2738
|
},
|
|
2712
2739
|
Paragraph: (e, t, n, r) => {
|
|
2713
2740
|
let i = e.id ?? n;
|
|
2714
|
-
return /* @__PURE__ */ p(
|
|
2741
|
+
return /* @__PURE__ */ p(Dt, {
|
|
2715
2742
|
backgroundColor: e.props?.backgroundColor,
|
|
2716
2743
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2717
2744
|
children: t(e.slots.default)
|
|
@@ -2723,7 +2750,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2723
2750
|
},
|
|
2724
2751
|
List: (e, t, n, r) => {
|
|
2725
2752
|
let i = e.id ?? n;
|
|
2726
|
-
return /* @__PURE__ */ p(
|
|
2753
|
+
return /* @__PURE__ */ p(zt, {
|
|
2727
2754
|
listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
|
|
2728
2755
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2729
2756
|
children: t(e.slots.default)
|
|
@@ -2731,7 +2758,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2731
2758
|
},
|
|
2732
2759
|
BlockQuote: (e, t, n, r) => {
|
|
2733
2760
|
let i = e.id ?? n;
|
|
2734
|
-
return /* @__PURE__ */ p(
|
|
2761
|
+
return /* @__PURE__ */ p(Ot, {
|
|
2735
2762
|
cite: e.props?.cite,
|
|
2736
2763
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2737
2764
|
children: t(e.slots.default)
|
|
@@ -2739,7 +2766,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2739
2766
|
},
|
|
2740
2767
|
Callout: (e, t, n, r) => {
|
|
2741
2768
|
let i = e.id ?? n;
|
|
2742
|
-
return /* @__PURE__ */ p(
|
|
2769
|
+
return /* @__PURE__ */ p(jt, {
|
|
2743
2770
|
type: e.props?.type,
|
|
2744
2771
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2745
2772
|
children: t(e.slots.default)
|
|
@@ -2747,11 +2774,11 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2747
2774
|
},
|
|
2748
2775
|
Divider: (e, t, n, r) => {
|
|
2749
2776
|
let i = e.id ?? n;
|
|
2750
|
-
return /* @__PURE__ */ p(
|
|
2777
|
+
return /* @__PURE__ */ p(k, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
|
|
2751
2778
|
},
|
|
2752
2779
|
Toggle: (e, t, n, r) => {
|
|
2753
2780
|
let i = e.id ?? n;
|
|
2754
|
-
return /* @__PURE__ */ p(
|
|
2781
|
+
return /* @__PURE__ */ p(Bn, {
|
|
2755
2782
|
summaryContent: t(e.slots.summary),
|
|
2756
2783
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2757
2784
|
children: t(e.slots.default)
|
|
@@ -2759,7 +2786,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2759
2786
|
},
|
|
2760
2787
|
Bookmark: (e, t, n, r) => {
|
|
2761
2788
|
let i = e.id ?? n;
|
|
2762
|
-
return /* @__PURE__ */ p(
|
|
2789
|
+
return /* @__PURE__ */ p(Qt, {
|
|
2763
2790
|
url: e.props.url,
|
|
2764
2791
|
title: e.props.title,
|
|
2765
2792
|
description: e.props.description,
|
|
@@ -2769,7 +2796,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2769
2796
|
},
|
|
2770
2797
|
File: (e, t, n, r) => {
|
|
2771
2798
|
let i = e.id ?? n;
|
|
2772
|
-
return /* @__PURE__ */ p(
|
|
2799
|
+
return /* @__PURE__ */ p(Zt, {
|
|
2773
2800
|
src: e.props.src,
|
|
2774
2801
|
name: e.props.name,
|
|
2775
2802
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2777,7 +2804,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2777
2804
|
},
|
|
2778
2805
|
Image: (e, t, n, r) => {
|
|
2779
2806
|
let i = e.id ?? n;
|
|
2780
|
-
return /* @__PURE__ */ p(
|
|
2807
|
+
return /* @__PURE__ */ p(P, {
|
|
2781
2808
|
src: e.props.src,
|
|
2782
2809
|
alt: e.props.alt,
|
|
2783
2810
|
width: e.props.width,
|
|
@@ -2789,7 +2816,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2789
2816
|
},
|
|
2790
2817
|
CodeBlock: (e, t, n, r) => {
|
|
2791
2818
|
let i = e.id ?? n;
|
|
2792
|
-
return /* @__PURE__ */ p(
|
|
2819
|
+
return /* @__PURE__ */ p(er, {
|
|
2793
2820
|
code: e.props.code,
|
|
2794
2821
|
language: e.props.language,
|
|
2795
2822
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2797,7 +2824,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2797
2824
|
},
|
|
2798
2825
|
Katex: (e, t, n, r) => {
|
|
2799
2826
|
let i = e.id ?? n;
|
|
2800
|
-
return /* @__PURE__ */ p(
|
|
2827
|
+
return /* @__PURE__ */ p(nr, {
|
|
2801
2828
|
expression: e.props.expression,
|
|
2802
2829
|
block: !0,
|
|
2803
2830
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2806,8 +2833,8 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2806
2833
|
Mermaid: (e, t, r, i) => {
|
|
2807
2834
|
let a = e.id ?? r;
|
|
2808
2835
|
return /* @__PURE__ */ p(n, {
|
|
2809
|
-
fallback: /* @__PURE__ */ p(
|
|
2810
|
-
children: /* @__PURE__ */ p(
|
|
2836
|
+
fallback: /* @__PURE__ */ p(sn, {}),
|
|
2837
|
+
children: /* @__PURE__ */ p(pr, {
|
|
2811
2838
|
code: e.props.code,
|
|
2812
2839
|
style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2813
2840
|
})
|
|
@@ -2817,18 +2844,18 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2817
2844
|
Tabs: (e, t, n, r) => {
|
|
2818
2845
|
let i = e.id ?? n, a = [], o = [];
|
|
2819
2846
|
for (let n of e.slots.default) a.push(/* @__PURE__ */ p("span", { children: t(n.slots.labels) })), o.push(/* @__PURE__ */ p("div", { children: t(n.slots.contents) }));
|
|
2820
|
-
return /* @__PURE__ */ p(
|
|
2847
|
+
return /* @__PURE__ */ p(zn, {
|
|
2821
2848
|
tabLabels: a,
|
|
2822
2849
|
tabContents: o
|
|
2823
2850
|
}, i);
|
|
2824
2851
|
},
|
|
2825
2852
|
Table: (e, t, n, r) => {
|
|
2826
2853
|
let i = e.id ?? n;
|
|
2827
|
-
return /* @__PURE__ */ p(
|
|
2854
|
+
return /* @__PURE__ */ p(Un, {
|
|
2828
2855
|
caption: e.props?.caption,
|
|
2829
2856
|
hasRowHeader: e.props?.hasRowHeader,
|
|
2830
|
-
header: e.slots.header ? /* @__PURE__ */ p(
|
|
2831
|
-
body: /* @__PURE__ */ p(
|
|
2857
|
+
header: e.slots.header ? /* @__PURE__ */ p(Jn, { children: t(e.slots.header) }) : void 0,
|
|
2858
|
+
body: /* @__PURE__ */ p(Wn, { children: t(e.slots.body) }),
|
|
2832
2859
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2833
2860
|
}, i);
|
|
2834
2861
|
},
|
|
@@ -2838,12 +2865,12 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2838
2865
|
},
|
|
2839
2866
|
TableCell: (e, t, n, r) => {
|
|
2840
2867
|
let i = e.id ?? n;
|
|
2841
|
-
return /* @__PURE__ */ p(
|
|
2868
|
+
return /* @__PURE__ */ p(Kn, { children: t(e.slots.default) }, i);
|
|
2842
2869
|
},
|
|
2843
2870
|
ColumnList: (e, t, n, r) => {
|
|
2844
2871
|
let i = e.id ?? n;
|
|
2845
2872
|
return /* @__PURE__ */ p("div", {
|
|
2846
|
-
className:
|
|
2873
|
+
className: fr["column-list"],
|
|
2847
2874
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2848
2875
|
children: t(e.slots.default)
|
|
2849
2876
|
}, i);
|
|
@@ -2851,7 +2878,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2851
2878
|
Column: (e, t, n, r) => {
|
|
2852
2879
|
let i = e.id ?? n;
|
|
2853
2880
|
return /* @__PURE__ */ p("div", {
|
|
2854
|
-
className:
|
|
2881
|
+
className: fr.column,
|
|
2855
2882
|
style: {
|
|
2856
2883
|
"--width-ratio": e.props?.widthRatio ?? 1,
|
|
2857
2884
|
width: e.props?.widthRatio ? `${e.props.widthRatio * 100}%` : void 0,
|
|
@@ -2862,138 +2889,138 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2862
2889
|
},
|
|
2863
2890
|
Unsupported: (e, t, n, r) => {
|
|
2864
2891
|
let i = e.id ?? n;
|
|
2865
|
-
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(
|
|
2892
|
+
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(un, {
|
|
2866
2893
|
details: e.props?.details ?? `Unsupported component type: ${e.type}`,
|
|
2867
2894
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2868
2895
|
}, i);
|
|
2869
2896
|
}
|
|
2870
|
-
},
|
|
2897
|
+
}, gr = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r, className: i }) => {
|
|
2871
2898
|
let a = {
|
|
2872
|
-
...
|
|
2899
|
+
...hr,
|
|
2873
2900
|
...n
|
|
2874
2901
|
}, o = (e) => e.map((e, n) => {
|
|
2875
2902
|
let i = e.id ?? n, s = a[e.type];
|
|
2876
2903
|
return s ? s(e, o, n, {
|
|
2877
2904
|
skipUnsupportedComponentWarning: t,
|
|
2878
2905
|
style: r
|
|
2879
|
-
}) : t ? null : /* @__PURE__ */ p(
|
|
2906
|
+
}) : t ? null : /* @__PURE__ */ p(un, { details: `Unsupported component type: ${e.type}` }, i);
|
|
2880
2907
|
});
|
|
2881
2908
|
return /* @__PURE__ */ p("div", {
|
|
2882
|
-
className: [
|
|
2909
|
+
className: [fr["jarkup-body"], i].filter(Boolean).join(" "),
|
|
2883
2910
|
style: {
|
|
2884
2911
|
"--elmethis-margin-block-start": r?.["--elmethis-margin-block-start"] ?? "2.5rem",
|
|
2885
2912
|
...r
|
|
2886
2913
|
},
|
|
2887
2914
|
children: o(e)
|
|
2888
2915
|
});
|
|
2889
|
-
},
|
|
2916
|
+
}, _r = { "markdown-body": "_markdown-body_130yx_1" }, Q = (e) => e === 0 ? { "--elmethis-margin-block-start": "0" } : void 0, vr = {
|
|
2890
2917
|
blockquote: (e, t, n) => {
|
|
2891
2918
|
if (!e.tokens || e.tokens.length === 0) return null;
|
|
2892
2919
|
let r = e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e]);
|
|
2893
|
-
return /* @__PURE__ */ p(
|
|
2920
|
+
return /* @__PURE__ */ p(Ot, {
|
|
2894
2921
|
style: Q(n),
|
|
2895
2922
|
children: t(r)
|
|
2896
2923
|
}, n);
|
|
2897
2924
|
},
|
|
2898
2925
|
br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
|
|
2899
|
-
checkbox: (e, t, n) => /* @__PURE__ */ p(
|
|
2926
|
+
checkbox: (e, t, n) => /* @__PURE__ */ p(fn, {
|
|
2900
2927
|
label: e.raw,
|
|
2901
2928
|
checked: e.checked,
|
|
2902
2929
|
style: Q(n)
|
|
2903
2930
|
}, n),
|
|
2904
|
-
code: (e, t, n) => /* @__PURE__ */ p(
|
|
2931
|
+
code: (e, t, n) => /* @__PURE__ */ p(er, {
|
|
2905
2932
|
code: e.text.trim(),
|
|
2906
2933
|
language: e.lang,
|
|
2907
2934
|
style: Q(n)
|
|
2908
2935
|
}, n),
|
|
2909
|
-
codespan: (e, t, n) => /* @__PURE__ */ p(
|
|
2936
|
+
codespan: (e, t, n) => /* @__PURE__ */ p(T, {
|
|
2910
2937
|
code: !0,
|
|
2911
2938
|
children: e.text
|
|
2912
2939
|
}, n),
|
|
2913
2940
|
def: () => null,
|
|
2914
|
-
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2941
|
+
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2915
2942
|
strikethrough: !0,
|
|
2916
2943
|
children: t(e.tokens)
|
|
2917
|
-
}, n) : /* @__PURE__ */ p(
|
|
2944
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2918
2945
|
strikethrough: !0,
|
|
2919
2946
|
children: e.text
|
|
2920
2947
|
}, n),
|
|
2921
|
-
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2948
|
+
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2922
2949
|
italic: !0,
|
|
2923
2950
|
children: t(e.tokens)
|
|
2924
|
-
}, n) : /* @__PURE__ */ p(
|
|
2951
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2925
2952
|
italic: !0,
|
|
2926
2953
|
children: e.text
|
|
2927
2954
|
}, n),
|
|
2928
2955
|
escape: () => null,
|
|
2929
2956
|
heading: (e, t, n) => {
|
|
2930
2957
|
let r = e.depth;
|
|
2931
|
-
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2958
|
+
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(A, {
|
|
2932
2959
|
level: r,
|
|
2933
2960
|
style: Q(n),
|
|
2934
2961
|
children: t(e.tokens)
|
|
2935
|
-
}, n) : /* @__PURE__ */ p(
|
|
2962
|
+
}, n) : /* @__PURE__ */ p(A, {
|
|
2936
2963
|
level: r,
|
|
2937
2964
|
text: e.text,
|
|
2938
2965
|
style: Q(n)
|
|
2939
2966
|
}, n);
|
|
2940
2967
|
},
|
|
2941
|
-
hr: (e, t, n) => /* @__PURE__ */ p(
|
|
2968
|
+
hr: (e, t, n) => /* @__PURE__ */ p(k, { style: Q(n) }, n),
|
|
2942
2969
|
html: () => null,
|
|
2943
|
-
image: (e, t, n) => /* @__PURE__ */ p(
|
|
2970
|
+
image: (e, t, n) => /* @__PURE__ */ p(P, {
|
|
2944
2971
|
block: !0,
|
|
2945
2972
|
enableModal: !0,
|
|
2946
2973
|
src: e.href,
|
|
2947
2974
|
alt: e.text,
|
|
2948
2975
|
style: Q(n)
|
|
2949
2976
|
}, n),
|
|
2950
|
-
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2977
|
+
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2951
2978
|
href: e.href,
|
|
2952
2979
|
children: t(e.tokens)
|
|
2953
|
-
}, n) : /* @__PURE__ */ p(
|
|
2980
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2954
2981
|
href: e.href,
|
|
2955
2982
|
children: e.text
|
|
2956
2983
|
}, n),
|
|
2957
2984
|
list: (e, t, n) => {
|
|
2958
2985
|
let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
|
|
2959
|
-
return /* @__PURE__ */ p(
|
|
2986
|
+
return /* @__PURE__ */ p(zt, {
|
|
2960
2987
|
listStyle: e.ordered ? "ordered" : "unordered",
|
|
2961
2988
|
style: Q(n),
|
|
2962
2989
|
children: r
|
|
2963
2990
|
}, n);
|
|
2964
2991
|
},
|
|
2965
2992
|
list_item: (e, t, n) => /* @__PURE__ */ p("li", { children: e.tokens && e.tokens.length !== 0 ? t(e.tokens) : e.text }, n),
|
|
2966
|
-
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2993
|
+
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(Dt, {
|
|
2967
2994
|
style: Q(n),
|
|
2968
2995
|
children: t(e.tokens)
|
|
2969
2996
|
}, n) : null,
|
|
2970
2997
|
space: () => null,
|
|
2971
|
-
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2998
|
+
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2972
2999
|
bold: !0,
|
|
2973
3000
|
children: t(e.tokens)
|
|
2974
|
-
}, n) : /* @__PURE__ */ p(
|
|
3001
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2975
3002
|
bold: !0,
|
|
2976
3003
|
children: e.text
|
|
2977
3004
|
}, n),
|
|
2978
3005
|
table: (e, t, n) => {
|
|
2979
|
-
let r = (e) => e.map((e, n) => /* @__PURE__ */ p(
|
|
2980
|
-
return /* @__PURE__ */ p(
|
|
2981
|
-
header: /* @__PURE__ */ p(
|
|
2982
|
-
body: /* @__PURE__ */ p(
|
|
3006
|
+
let r = (e) => e.map((e, n) => /* @__PURE__ */ p(Kn, { children: t(e.tokens) }, n)), i = /* @__PURE__ */ p(J, { children: r(e.header) }), a = e.rows.map((e, t) => /* @__PURE__ */ p(J, { children: r(e) }, t));
|
|
3007
|
+
return /* @__PURE__ */ p(Un, {
|
|
3008
|
+
header: /* @__PURE__ */ p(Jn, { children: i }),
|
|
3009
|
+
body: /* @__PURE__ */ p(Wn, { children: a }),
|
|
2983
3010
|
style: Q(n)
|
|
2984
3011
|
}, n);
|
|
2985
3012
|
},
|
|
2986
|
-
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2987
|
-
},
|
|
3013
|
+
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, { children: t(e.tokens) }, n) : /* @__PURE__ */ p(T, { children: e.text }, n)
|
|
3014
|
+
}, yr = ({ markdown: e, style: t, className: n, renderFunctionMap: r }) => {
|
|
2988
3015
|
let i = {
|
|
2989
|
-
...
|
|
3016
|
+
...vr,
|
|
2990
3017
|
...r
|
|
2991
3018
|
}, a = (e) => e.map((e, t) => {
|
|
2992
3019
|
let n = i[e.type];
|
|
2993
3020
|
return n ? n(e, a, t) : null;
|
|
2994
|
-
}), o =
|
|
3021
|
+
}), o = Ze.setOptions({ gfm: !0 }).lexer(e);
|
|
2995
3022
|
return /* @__PURE__ */ p("div", {
|
|
2996
|
-
className: [
|
|
3023
|
+
className: [_r["markdown-body"], n].filter(Boolean).join(" "),
|
|
2997
3024
|
style: {
|
|
2998
3025
|
"--elmethis-margin-block-start": "2.5rem",
|
|
2999
3026
|
...t
|
|
@@ -3005,7 +3032,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3005
3032
|
typed: "_typed_sojtj_20",
|
|
3006
3033
|
current: "_current_sojtj_24",
|
|
3007
3034
|
incorrect: "_incorrect_sojtj_29"
|
|
3008
|
-
},
|
|
3035
|
+
}, br = ({ target: e = "Typing game", style: t, className: n }) => {
|
|
3009
3036
|
let [r, i] = d(() => {
|
|
3010
3037
|
let t = e.split("").map((e) => ({
|
|
3011
3038
|
char: e,
|
|
@@ -3058,10 +3085,10 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3058
3085
|
c > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", c] })
|
|
3059
3086
|
]
|
|
3060
3087
|
});
|
|
3061
|
-
},
|
|
3088
|
+
}, xr = ({ oEmbed: e, style: t, className: n }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
|
|
3062
3089
|
className: n,
|
|
3063
3090
|
style: t,
|
|
3064
|
-
children: /* @__PURE__ */ p(
|
|
3091
|
+
children: /* @__PURE__ */ p(P, {
|
|
3065
3092
|
src: e.url,
|
|
3066
3093
|
alt: e.title,
|
|
3067
3094
|
width: e.width,
|
|
@@ -3078,10 +3105,10 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3078
3105
|
}) : /* @__PURE__ */ p("div", {
|
|
3079
3106
|
className: n,
|
|
3080
3107
|
style: t,
|
|
3081
|
-
children: /* @__PURE__ */ p(
|
|
3108
|
+
children: /* @__PURE__ */ p(T, {
|
|
3082
3109
|
href: e.author_url ?? e.provider_url ?? "#",
|
|
3083
3110
|
children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
|
|
3084
3111
|
})
|
|
3085
3112
|
});
|
|
3086
3113
|
//#endregion
|
|
3087
|
-
export {
|
|
3114
|
+
export { vt as ElmArrowIcon, sn as ElmBlockFallback, Ot as ElmBlockQuote, Qt as ElmBookmark, bt as ElmBookmarkIcon, $t as ElmBreadcrumb, dn as ElmButton, jt as ElmCallout, fn as ElmCheckbox, er as ElmCodeBlock, yn as ElmCollapse, rr as ElmColorSample, or as ElmColorTable, xn as ElmColumn, Cn as ElmColumnList, lr as ElmCommandPalette, Dn as ElmConfirmModal, Ct as ElmCubeIcon, On as ElmDesktopWindow, k as ElmDivider, E as ElmDotLoadingIcon, Zt as ElmFile, Pt as ElmFragmentIdentifier, A as ElmHeading, P as ElmImage, w as ElmInlineIcon, T as ElmInlineText, gr as ElmJarkup, dr as ElmJsonComponentRenderer, nr as ElmKatex, st as ElmLanguageIcon, zt as ElmList, Tt as ElmLoginIcon, yr as ElmMarkdown, C as ElmMdiIcon, e as ElmMermaid, En as ElmModal, it as ElmModelSelect, Kt as ElmMultiProgress, xr as ElmOEmbed, en as ElmPageTop, Dt as ElmParagraph, An as ElmParallax, Wt as ElmProgress, on as ElmRectangleWave, et as ElmSelect, $n as ElmShikiHighlighter, Pn as ElmSimpleTooltip, In as ElmSnackbar, Rn as ElmSnackbarContainer, ln as ElmSpinner, ft as ElmSquareLoadingIcon, Yt as ElmStatusMessage, pn as ElmSwitch, Un as ElmTable, Wn as ElmTableBody, Kn as ElmTableCell, Jn as ElmTableHeader, nn as ElmTableOfContents, J as ElmTableRow, zn as ElmTabs, Ut as ElmTemplate, hn as ElmTextField, Bn as ElmToggle, _t as ElmToggleTheme, Nn as ElmTooltip, br as ElmTyping, Vt as ElmTypingAnimation, un as ElmUnsupportedBlock, _n as ElmValidation, ct as LANGUAGES };
|