@elmethis/react 0.3.11 → 0.3.13
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 +638 -607
- 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/ElmCheckbox.d.ts +1 -1
- package/lib-types/components/form/ElmCheckbox.d.ts.map +1 -1
- 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 qe } from "react-dom";
|
|
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";
|
|
8
7
|
import { useControllableState as Je } from "@radix-ui/react-use-controllable-state";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
8
|
+
import { createPortal as Ye } from "react-dom";
|
|
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,26 +1594,30 @@ 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
|
-
},
|
|
1489
|
-
let
|
|
1490
|
-
|
|
1597
|
+
}, fn = ({ loading: e = !1, disable: t = !1, ...n }) => {
|
|
1598
|
+
let [r, i] = Je({
|
|
1599
|
+
prop: n.checked,
|
|
1600
|
+
defaultProp: !1,
|
|
1601
|
+
onChange: n.onChange
|
|
1602
|
+
}), o = a(() => {
|
|
1603
|
+
!e && !t && i && i(!r);
|
|
1491
1604
|
}, [
|
|
1492
1605
|
e,
|
|
1493
1606
|
t,
|
|
1494
|
-
|
|
1607
|
+
r,
|
|
1495
1608
|
i
|
|
1496
1609
|
]), s = [
|
|
1497
|
-
|
|
1498
|
-
t ?
|
|
1499
|
-
|
|
1610
|
+
V.container,
|
|
1611
|
+
t ? V["container-disable"] : "",
|
|
1612
|
+
n.className
|
|
1500
1613
|
].filter(Boolean).join(" "), c = [
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
e ?
|
|
1614
|
+
V.rect,
|
|
1615
|
+
r ? V["rect-checked"] : "",
|
|
1616
|
+
e ? V["rect-loading"] : ""
|
|
1504
1617
|
].filter(Boolean).join(" ");
|
|
1505
1618
|
return /* @__PURE__ */ p("div", {
|
|
1506
1619
|
className: s,
|
|
1507
|
-
style:
|
|
1620
|
+
style: n.style,
|
|
1508
1621
|
onClick: o,
|
|
1509
1622
|
children: /* @__PURE__ */ m("div", {
|
|
1510
1623
|
style: {
|
|
@@ -1515,13 +1628,13 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1515
1628
|
children: [/* @__PURE__ */ m("svg", {
|
|
1516
1629
|
width: "24",
|
|
1517
1630
|
height: "24",
|
|
1518
|
-
className:
|
|
1631
|
+
className: V.checkbox,
|
|
1519
1632
|
children: [
|
|
1520
1633
|
/* @__PURE__ */ m("circle", {
|
|
1521
1634
|
cx: "0",
|
|
1522
1635
|
cy: "0",
|
|
1523
1636
|
r: "2",
|
|
1524
|
-
className:
|
|
1637
|
+
className: V.loading,
|
|
1525
1638
|
style: { opacity: +!!e },
|
|
1526
1639
|
children: [/* @__PURE__ */ p("animate", {
|
|
1527
1640
|
attributeName: "cx",
|
|
@@ -1543,7 +1656,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1543
1656
|
cx: "20",
|
|
1544
1657
|
cy: "20",
|
|
1545
1658
|
r: "2",
|
|
1546
|
-
className:
|
|
1659
|
+
className: V.loading,
|
|
1547
1660
|
style: { opacity: +!!e },
|
|
1548
1661
|
children: [/* @__PURE__ */ p("animate", {
|
|
1549
1662
|
attributeName: "cx",
|
|
@@ -1569,8 +1682,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1569
1682
|
className: c,
|
|
1570
1683
|
strokeWidth: "0.8"
|
|
1571
1684
|
}),
|
|
1572
|
-
|
|
1573
|
-
className:
|
|
1685
|
+
r && /* @__PURE__ */ p("polyline", {
|
|
1686
|
+
className: V["check-line"],
|
|
1574
1687
|
points: "5,12 10,17 19,8",
|
|
1575
1688
|
strokeWidth: "1.5",
|
|
1576
1689
|
fill: "transparent"
|
|
@@ -1632,91 +1745,9 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1632
1745
|
fill: "transparent"
|
|
1633
1746
|
})
|
|
1634
1747
|
]
|
|
1635
|
-
}), /* @__PURE__ */ p("span", { children:
|
|
1748
|
+
}), /* @__PURE__ */ p("span", { children: n.label })]
|
|
1636
1749
|
})
|
|
1637
1750
|
});
|
|
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
1751
|
}, H = {
|
|
1721
1752
|
switch: "_switch_8t362_1",
|
|
1722
1753
|
bar: "_bar_8t362_5",
|
|
@@ -1725,7 +1756,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1725
1756
|
circle: "_circle_8t362_30",
|
|
1726
1757
|
"circle-checked": "_circle-checked_8t362_45",
|
|
1727
1758
|
"circle-disabled": "_circle-disabled_8t362_49"
|
|
1728
|
-
},
|
|
1759
|
+
}, pn = ({ color: e = "#bfa056", size: t = "18px", disabled: n = !1, checked: r = !1, ...i }) => {
|
|
1729
1760
|
let { onChange: o } = i, s = a(() => {
|
|
1730
1761
|
!n && o && o(!r);
|
|
1731
1762
|
}, [
|
|
@@ -1776,28 +1807,28 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1776
1807
|
suffix: "_suffix_1y96m_159",
|
|
1777
1808
|
counter: "_counter_1y96m_172",
|
|
1778
1809
|
"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
|
-
},
|
|
1810
|
+
}, mn = {
|
|
1811
|
+
text: Ve,
|
|
1812
|
+
pen: Fe,
|
|
1813
|
+
email: he,
|
|
1814
|
+
user: h,
|
|
1815
|
+
lock: ke,
|
|
1816
|
+
key: we,
|
|
1817
|
+
earth: me,
|
|
1818
|
+
tag: Be,
|
|
1819
|
+
archive: b,
|
|
1820
|
+
link: De,
|
|
1821
|
+
search: Me
|
|
1822
|
+
}, hn = ({ disabled: e = !1, loading: t = !1, isPassword: n = !1, required: r = !1, value: i = "", ...o }) => {
|
|
1792
1823
|
let s = c(), l = u(null), [f, h] = d(!1), [g, _] = d(n ? "password" : "text"), { onChange: v } = o, y = a(() => {
|
|
1793
1824
|
!t && !e && v && v("");
|
|
1794
1825
|
}, [
|
|
1795
1826
|
t,
|
|
1796
1827
|
e,
|
|
1797
1828
|
v
|
|
1798
|
-
]),
|
|
1829
|
+
]), b = a(() => {
|
|
1799
1830
|
!t && !e && _((e) => e === "text" ? "password" : "text");
|
|
1800
|
-
}, [t, e]),
|
|
1831
|
+
}, [t, e]), ee = a((e) => (t) => {
|
|
1801
1832
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
|
|
1802
1833
|
}, []);
|
|
1803
1834
|
return /* @__PURE__ */ m("div", {
|
|
@@ -1833,8 +1864,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1833
1864
|
/* @__PURE__ */ m("div", {
|
|
1834
1865
|
className: U.body,
|
|
1835
1866
|
children: [
|
|
1836
|
-
o.icon && /* @__PURE__ */ p(
|
|
1837
|
-
d:
|
|
1867
|
+
o.icon && /* @__PURE__ */ p(C, {
|
|
1868
|
+
d: mn[o.icon],
|
|
1838
1869
|
size: "1.5rem",
|
|
1839
1870
|
color: "gray"
|
|
1840
1871
|
}),
|
|
@@ -1861,12 +1892,12 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1861
1892
|
}),
|
|
1862
1893
|
/* @__PURE__ */ p("div", {
|
|
1863
1894
|
className: U.icon,
|
|
1864
|
-
onClick:
|
|
1865
|
-
onKeyDown: b
|
|
1895
|
+
onClick: b,
|
|
1896
|
+
onKeyDown: ee(b),
|
|
1866
1897
|
role: "button",
|
|
1867
1898
|
tabIndex: 0,
|
|
1868
|
-
children: /* @__PURE__ */ p(
|
|
1869
|
-
d: g === "text" ?
|
|
1899
|
+
children: /* @__PURE__ */ p(C, {
|
|
1900
|
+
d: g === "text" ? _e : ge,
|
|
1870
1901
|
size: "1.75em",
|
|
1871
1902
|
color: "gray"
|
|
1872
1903
|
})
|
|
@@ -1874,11 +1905,11 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1874
1905
|
/* @__PURE__ */ p("div", {
|
|
1875
1906
|
className: U.icon,
|
|
1876
1907
|
onClick: y,
|
|
1877
|
-
onKeyDown:
|
|
1908
|
+
onKeyDown: ee(y),
|
|
1878
1909
|
role: "button",
|
|
1879
1910
|
tabIndex: 0,
|
|
1880
|
-
children: /* @__PURE__ */ p(
|
|
1881
|
-
d:
|
|
1911
|
+
children: /* @__PURE__ */ p(C, {
|
|
1912
|
+
d: ne,
|
|
1882
1913
|
size: "1.75em",
|
|
1883
1914
|
color: "gray"
|
|
1884
1915
|
})
|
|
@@ -1893,45 +1924,45 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1893
1924
|
})
|
|
1894
1925
|
]
|
|
1895
1926
|
});
|
|
1896
|
-
},
|
|
1897
|
-
className: [
|
|
1927
|
+
}, gn = { validation: "_validation_wuw0j_1" }, _n = ({ validColor: e = "#449763", ...t }) => /* @__PURE__ */ m("div", {
|
|
1928
|
+
className: [gn.validation, t.className].filter(Boolean).join(" "),
|
|
1898
1929
|
style: {
|
|
1899
1930
|
"--opacity": t.isValid ? 1 : .5,
|
|
1900
1931
|
...t.style
|
|
1901
1932
|
},
|
|
1902
|
-
children: [/* @__PURE__ */ p(
|
|
1903
|
-
d: t.isValid ?
|
|
1933
|
+
children: [/* @__PURE__ */ p(C, {
|
|
1934
|
+
d: t.isValid ? oe : se,
|
|
1904
1935
|
color: t.isValid ? e : void 0
|
|
1905
1936
|
}), /* @__PURE__ */ p("span", {
|
|
1906
1937
|
style: { color: t.isValid ? e : void 0 },
|
|
1907
1938
|
children: t.text
|
|
1908
1939
|
})]
|
|
1909
|
-
}),
|
|
1940
|
+
}), vn = {
|
|
1910
1941
|
"elm-collapse": "_elm-collapse_j2kw5_1",
|
|
1911
1942
|
inner: "_inner_j2kw5_8",
|
|
1912
1943
|
open: "_open_j2kw5_12"
|
|
1913
|
-
},
|
|
1914
|
-
className:
|
|
1944
|
+
}, yn = (e) => /* @__PURE__ */ p("div", {
|
|
1945
|
+
className: x(vn["elm-collapse"], { [vn.open]: e.isOpen }),
|
|
1915
1946
|
style: e.style,
|
|
1916
1947
|
children: /* @__PURE__ */ p("div", {
|
|
1917
|
-
className:
|
|
1948
|
+
className: vn.inner,
|
|
1918
1949
|
children: e.children
|
|
1919
1950
|
})
|
|
1920
|
-
}),
|
|
1921
|
-
className: [
|
|
1951
|
+
}), bn = { column: "_column_12uje_1" }, xn = (e) => /* @__PURE__ */ p("div", {
|
|
1952
|
+
className: [bn.column, e.className].filter(Boolean).join(" "),
|
|
1922
1953
|
style: e.style,
|
|
1923
1954
|
children: e.children
|
|
1924
|
-
}),
|
|
1925
|
-
className: [
|
|
1955
|
+
}), Sn = { "column-list": "_column-list_rt1o3_1" }, Cn = (e) => /* @__PURE__ */ p("div", {
|
|
1956
|
+
className: [Sn["column-list"], e.className].filter(Boolean).join(" "),
|
|
1926
1957
|
style: e.style,
|
|
1927
1958
|
children: e.children
|
|
1928
|
-
}),
|
|
1959
|
+
}), wn = {
|
|
1929
1960
|
body: "_body_gd5gc_1",
|
|
1930
1961
|
button: "_button_gd5gc_5"
|
|
1931
|
-
},
|
|
1962
|
+
}, Tn = {
|
|
1932
1963
|
provider: "_provider_qbioz_1",
|
|
1933
1964
|
exit: "_exit_qbioz_23"
|
|
1934
|
-
},
|
|
1965
|
+
}, En = ({ closeOnClickOutside: e = !0, duration: t = 200, isOpen: n, setIsOpen: r, ...i }) => {
|
|
1935
1966
|
let [o, c] = d(!1);
|
|
1936
1967
|
s(() => {
|
|
1937
1968
|
if (n) {
|
|
@@ -1947,8 +1978,8 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1947
1978
|
}, [e, r]), u = a((e) => {
|
|
1948
1979
|
e.stopPropagation();
|
|
1949
1980
|
}, []);
|
|
1950
|
-
return !n && !o ? null :
|
|
1951
|
-
className:
|
|
1981
|
+
return !n && !o ? null : Ye(/* @__PURE__ */ p("div", {
|
|
1982
|
+
className: x(Tn.provider, { [Tn.exit]: !n }),
|
|
1952
1983
|
style: { transitionDuration: `${t}ms` },
|
|
1953
1984
|
onClick: l,
|
|
1954
1985
|
children: /* @__PURE__ */ p("div", {
|
|
@@ -1958,7 +1989,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1958
1989
|
children: i.children
|
|
1959
1990
|
})
|
|
1960
1991
|
}), document.body);
|
|
1961
|
-
},
|
|
1992
|
+
}, Dn = ({ closeOnClickOutside: e = !0, onChange: t, onConfirm: n, onSuccess: r, onError: i, ...o }) => {
|
|
1962
1993
|
let [s, c] = d(!1), l = a(() => {
|
|
1963
1994
|
t && t(!1);
|
|
1964
1995
|
}, [t]), u = a(async () => {
|
|
@@ -1974,35 +2005,35 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
1974
2005
|
i,
|
|
1975
2006
|
t
|
|
1976
2007
|
]);
|
|
1977
|
-
return /* @__PURE__ */ p(
|
|
2008
|
+
return /* @__PURE__ */ p(En, {
|
|
1978
2009
|
isOpen: o.value,
|
|
1979
2010
|
setIsOpen: t,
|
|
1980
2011
|
closeOnClickOutside: e,
|
|
1981
2012
|
className: o.className,
|
|
1982
2013
|
children: /* @__PURE__ */ m("div", { children: [
|
|
1983
|
-
/* @__PURE__ */ p(
|
|
2014
|
+
/* @__PURE__ */ p(A, {
|
|
1984
2015
|
level: 2,
|
|
1985
2016
|
disableFragmentIdentifier: !0,
|
|
1986
2017
|
children: o.title
|
|
1987
2018
|
}),
|
|
1988
2019
|
/* @__PURE__ */ p("div", {
|
|
1989
|
-
className:
|
|
2020
|
+
className: wn.body,
|
|
1990
2021
|
children: o.children
|
|
1991
2022
|
}),
|
|
1992
2023
|
/* @__PURE__ */ m("div", {
|
|
1993
|
-
className:
|
|
1994
|
-
children: [/* @__PURE__ */ m(
|
|
2024
|
+
className: wn.button,
|
|
2025
|
+
children: [/* @__PURE__ */ m(dn, {
|
|
1995
2026
|
block: !0,
|
|
1996
2027
|
onClick: l,
|
|
1997
2028
|
loading: s,
|
|
1998
|
-
children: [/* @__PURE__ */ p(
|
|
1999
|
-
}), /* @__PURE__ */ m(
|
|
2029
|
+
children: [/* @__PURE__ */ p(C, { d: te }), /* @__PURE__ */ p("span", { children: "Cancel" })]
|
|
2030
|
+
}), /* @__PURE__ */ m(dn, {
|
|
2000
2031
|
block: !0,
|
|
2001
2032
|
onClick: u,
|
|
2002
2033
|
primary: !0,
|
|
2003
2034
|
loading: s,
|
|
2004
|
-
children: [/* @__PURE__ */ p(
|
|
2005
|
-
d:
|
|
2035
|
+
children: [/* @__PURE__ */ p(C, {
|
|
2036
|
+
d: oe,
|
|
2006
2037
|
color: "currentColor"
|
|
2007
2038
|
}), /* @__PURE__ */ p("span", { children: "Confirm" })]
|
|
2008
2039
|
})]
|
|
@@ -2013,7 +2044,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2013
2044
|
window: "_window_l8snl_1",
|
|
2014
2045
|
header: "_header_l8snl_14",
|
|
2015
2046
|
dot: "_dot_l8snl_25"
|
|
2016
|
-
},
|
|
2047
|
+
}, On = ({ minHeight: e = "6rem", ...t }) => /* @__PURE__ */ m("div", {
|
|
2017
2048
|
className: [W.window, t.className].filter(Boolean).join(" "),
|
|
2018
2049
|
style: t.style,
|
|
2019
2050
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -2039,7 +2070,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2039
2070
|
style: { minHeight: e },
|
|
2040
2071
|
children: t.children
|
|
2041
2072
|
})]
|
|
2042
|
-
}),
|
|
2073
|
+
}), kn = { parallax: "_parallax_1tovg_1" }, An = ({ className: e, ...t }) => {
|
|
2043
2074
|
let [n, r] = d(0);
|
|
2044
2075
|
return s(() => {
|
|
2045
2076
|
let e = null, t = () => {
|
|
@@ -2051,7 +2082,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2051
2082
|
window.removeEventListener("scroll", t), e != null && cancelAnimationFrame(e);
|
|
2052
2083
|
};
|
|
2053
2084
|
}, []), /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2054
|
-
className: [
|
|
2085
|
+
className: [kn.parallax, e].filter(Boolean).join(" "),
|
|
2055
2086
|
style: {
|
|
2056
2087
|
backgroundImage: `url(${t.imageUrl1})`,
|
|
2057
2088
|
transform: `scale(1.2) translateY(${n / 400}%)`,
|
|
@@ -2059,22 +2090,22 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2059
2090
|
...t.style
|
|
2060
2091
|
}
|
|
2061
2092
|
}), /* @__PURE__ */ p("div", {
|
|
2062
|
-
className:
|
|
2093
|
+
className: kn.parallax,
|
|
2063
2094
|
style: {
|
|
2064
2095
|
backgroundImage: `url(${t.imageUrl2})`,
|
|
2065
2096
|
transform: `scale(1.2) translateY(${n / 900}%)`,
|
|
2066
2097
|
transformOrigin: "bottom"
|
|
2067
2098
|
}
|
|
2068
2099
|
})] });
|
|
2069
|
-
},
|
|
2100
|
+
}, jn = {
|
|
2070
2101
|
container: "_container_1mzm0_1",
|
|
2071
2102
|
title: "_title_1mzm0_16",
|
|
2072
2103
|
text: "_text_1mzm0_22"
|
|
2073
|
-
},
|
|
2104
|
+
}, Mn = {
|
|
2074
2105
|
original: "_original_3zasf_1",
|
|
2075
2106
|
tooltip: "_tooltip_3zasf_5",
|
|
2076
2107
|
"tooltip-enter": "_tooltip-enter_3zasf_17"
|
|
2077
|
-
},
|
|
2108
|
+
}, Nn = (e) => {
|
|
2078
2109
|
let t = u(null), [n, r] = d(!1), [i, o] = d({}), c = a(() => {
|
|
2079
2110
|
let e = t.current;
|
|
2080
2111
|
if (!e) return;
|
|
@@ -2091,63 +2122,63 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2091
2122
|
n && c();
|
|
2092
2123
|
}, [n, c]), /* @__PURE__ */ m("span", {
|
|
2093
2124
|
ref: t,
|
|
2094
|
-
className: [
|
|
2125
|
+
className: [Mn.original, e.className].filter(Boolean).join(" "),
|
|
2095
2126
|
onMouseOver: () => r(!0),
|
|
2096
2127
|
onMouseLeave: () => r(!1),
|
|
2097
2128
|
style: e.style,
|
|
2098
2129
|
children: [e.original, n && /* @__PURE__ */ p("div", {
|
|
2099
|
-
className: `${
|
|
2130
|
+
className: `${Mn.tooltip} ${Mn["tooltip-enter"]}`,
|
|
2100
2131
|
style: i,
|
|
2101
2132
|
children: e.tooltip
|
|
2102
2133
|
})]
|
|
2103
2134
|
});
|
|
2104
|
-
},
|
|
2135
|
+
}, Pn = (e) => /* @__PURE__ */ p(Nn, {
|
|
2105
2136
|
original: e.children,
|
|
2106
2137
|
tooltip: /* @__PURE__ */ m("div", {
|
|
2107
|
-
className: [
|
|
2138
|
+
className: [jn.container, e.className].filter(Boolean).join(" "),
|
|
2108
2139
|
style: e.style,
|
|
2109
2140
|
children: [e.title && /* @__PURE__ */ p("div", {
|
|
2110
|
-
className:
|
|
2141
|
+
className: jn.title,
|
|
2111
2142
|
children: e.title
|
|
2112
2143
|
}), /* @__PURE__ */ p("div", {
|
|
2113
|
-
className:
|
|
2144
|
+
className: jn.text,
|
|
2114
2145
|
children: e.text
|
|
2115
2146
|
})]
|
|
2116
2147
|
})
|
|
2117
|
-
}),
|
|
2148
|
+
}), Fn = {
|
|
2118
2149
|
snackbar: "_snackbar_1f0go_1",
|
|
2119
2150
|
icon: "_icon_1f0go_19",
|
|
2120
2151
|
progress: "_progress_1f0go_45"
|
|
2121
|
-
},
|
|
2122
|
-
className: [
|
|
2152
|
+
}, In = ({ timeout: e = 5e3, ...t }) => /* @__PURE__ */ m("div", {
|
|
2153
|
+
className: [Fn.snackbar, t.className].filter(Boolean).join(" "),
|
|
2123
2154
|
style: t.style,
|
|
2124
2155
|
children: [
|
|
2125
|
-
t.label == null ? t.children : /* @__PURE__ */ p(
|
|
2156
|
+
t.label == null ? t.children : /* @__PURE__ */ p(T, { children: t.label }),
|
|
2126
2157
|
/* @__PURE__ */ p("div", {
|
|
2127
|
-
className:
|
|
2158
|
+
className: Fn.icon,
|
|
2128
2159
|
onClick: t.close,
|
|
2129
|
-
children: /* @__PURE__ */ p(
|
|
2130
|
-
d:
|
|
2160
|
+
children: /* @__PURE__ */ p(C, {
|
|
2161
|
+
d: de,
|
|
2131
2162
|
size: "1em"
|
|
2132
2163
|
})
|
|
2133
2164
|
}),
|
|
2134
2165
|
/* @__PURE__ */ p("div", {
|
|
2135
|
-
className:
|
|
2166
|
+
className: Fn.progress,
|
|
2136
2167
|
style: { animationDuration: `${e}ms` }
|
|
2137
2168
|
})
|
|
2138
2169
|
]
|
|
2139
|
-
}),
|
|
2170
|
+
}), Ln = {
|
|
2140
2171
|
"snackbar-screen": "_snackbar-screen_up7j2_1",
|
|
2141
2172
|
"snackbar-container": "_snackbar-container_up7j2_14",
|
|
2142
2173
|
"snackbar-item": "_snackbar-item_up7j2_23"
|
|
2143
|
-
},
|
|
2144
|
-
className: [
|
|
2174
|
+
}, Rn = (e) => /* @__PURE__ */ p("div", {
|
|
2175
|
+
className: [Ln["snackbar-screen"], e.className].filter(Boolean).join(" "),
|
|
2145
2176
|
style: e.style,
|
|
2146
2177
|
children: /* @__PURE__ */ p("div", {
|
|
2147
|
-
className:
|
|
2178
|
+
className: Ln["snackbar-container"],
|
|
2148
2179
|
children: e.snackbars.map((e) => /* @__PURE__ */ p("div", {
|
|
2149
|
-
className:
|
|
2150
|
-
children: /* @__PURE__ */ p(
|
|
2180
|
+
className: Ln["snackbar-item"],
|
|
2181
|
+
children: /* @__PURE__ */ p(In, {
|
|
2151
2182
|
label: e.label,
|
|
2152
2183
|
timeout: e.timeout,
|
|
2153
2184
|
close: e.close,
|
|
@@ -2162,7 +2193,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2162
2193
|
active: "_active_ykoqx_40",
|
|
2163
2194
|
"tab-content-container": "_tab-content-container_ykoqx_51",
|
|
2164
2195
|
"tab-content": "_tab-content_ykoqx_51"
|
|
2165
|
-
},
|
|
2196
|
+
}, zn = (e) => {
|
|
2166
2197
|
let [t, n] = d(0);
|
|
2167
2198
|
return /* @__PURE__ */ m("div", {
|
|
2168
2199
|
className: [G["elm-tabs"], e.className].filter(Boolean).join(" "),
|
|
@@ -2193,7 +2224,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2193
2224
|
border: "_border_16f85_84",
|
|
2194
2225
|
content: "_content_16f85_92",
|
|
2195
2226
|
close: "_close_16f85_96"
|
|
2196
|
-
},
|
|
2227
|
+
}, Bn = (e) => {
|
|
2197
2228
|
let [t, n] = Je({
|
|
2198
2229
|
prop: e.isOpen,
|
|
2199
2230
|
defaultProp: !1,
|
|
@@ -2202,7 +2233,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2202
2233
|
e.preventDefault(), n(!t);
|
|
2203
2234
|
};
|
|
2204
2235
|
return /* @__PURE__ */ m("div", {
|
|
2205
|
-
className:
|
|
2236
|
+
className: x(K.toggle, e.className, { [K.open]: t }),
|
|
2206
2237
|
style: { ...e.style },
|
|
2207
2238
|
children: [
|
|
2208
2239
|
/* @__PURE__ */ m("div", {
|
|
@@ -2211,17 +2242,17 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2211
2242
|
children: [
|
|
2212
2243
|
/* @__PURE__ */ m("div", {
|
|
2213
2244
|
className: K["summary-left"],
|
|
2214
|
-
children: [/* @__PURE__ */ p(
|
|
2215
|
-
className:
|
|
2216
|
-
d:
|
|
2245
|
+
children: [/* @__PURE__ */ p(C, {
|
|
2246
|
+
className: x(K.chevron, { [K.open]: t }),
|
|
2247
|
+
d: ce,
|
|
2217
2248
|
color: "#59b57c",
|
|
2218
2249
|
size: "1rem"
|
|
2219
|
-
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(
|
|
2250
|
+
}), /* @__PURE__ */ p("div", { children: e.summary == null ? e.summaryContent : /* @__PURE__ */ p(T, { children: e.summary }) })]
|
|
2220
2251
|
}),
|
|
2221
2252
|
/* @__PURE__ */ p("hr", { className: K.divider }),
|
|
2222
|
-
/* @__PURE__ */ p(
|
|
2223
|
-
className:
|
|
2224
|
-
d:
|
|
2253
|
+
/* @__PURE__ */ p(C, {
|
|
2254
|
+
className: x(K.cross, { [K.open]: t }),
|
|
2255
|
+
d: Ie,
|
|
2225
2256
|
size: "1rem",
|
|
2226
2257
|
color: t ? "#b36472" : "#59b57c"
|
|
2227
2258
|
})
|
|
@@ -2229,7 +2260,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2229
2260
|
}),
|
|
2230
2261
|
/* @__PURE__ */ p("div", { className: K.border }),
|
|
2231
2262
|
/* @__PURE__ */ p("div", {
|
|
2232
|
-
className:
|
|
2263
|
+
className: x(K.content, { [K.close]: !t }),
|
|
2233
2264
|
children: e.children
|
|
2234
2265
|
})
|
|
2235
2266
|
]
|
|
@@ -2239,7 +2270,7 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2239
2270
|
caption: "_caption_197ge_8",
|
|
2240
2271
|
"caption-inner": "_caption-inner_197ge_18",
|
|
2241
2272
|
spacing: "_spacing_197ge_25"
|
|
2242
|
-
},
|
|
2273
|
+
}, 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
2274
|
value: t,
|
|
2244
2275
|
children: /* @__PURE__ */ m("table", {
|
|
2245
2276
|
className: [q.table, a].filter(Boolean).join(" "),
|
|
@@ -2256,10 +2287,10 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2256
2287
|
width: "1rem",
|
|
2257
2288
|
height: "1rem",
|
|
2258
2289
|
children: /* @__PURE__ */ p("path", {
|
|
2259
|
-
d:
|
|
2290
|
+
d: ze,
|
|
2260
2291
|
fill: "#6987b8"
|
|
2261
2292
|
})
|
|
2262
|
-
}), /* @__PURE__ */ p(
|
|
2293
|
+
}), /* @__PURE__ */ p(T, { children: e })]
|
|
2263
2294
|
}),
|
|
2264
2295
|
/* @__PURE__ */ p("span", { className: q.spacing })
|
|
2265
2296
|
]
|
|
@@ -2268,44 +2299,44 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2268
2299
|
r
|
|
2269
2300
|
]
|
|
2270
2301
|
})
|
|
2271
|
-
}),
|
|
2302
|
+
}), Wn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Vn.Provider, {
|
|
2272
2303
|
value: !1,
|
|
2273
2304
|
children: /* @__PURE__ */ p("tbody", {
|
|
2274
2305
|
className: n,
|
|
2275
2306
|
style: t,
|
|
2276
2307
|
children: e
|
|
2277
2308
|
})
|
|
2278
|
-
}),
|
|
2309
|
+
}), Gn = {
|
|
2279
2310
|
common: "_common_15vhm_1",
|
|
2280
2311
|
td: "_td_15vhm_26",
|
|
2281
2312
|
th: "_th_15vhm_34"
|
|
2282
|
-
},
|
|
2283
|
-
let a = o(
|
|
2313
|
+
}, Kn = ({ children: e, style: t, hasHeader: n = !1, text: r, className: i }) => {
|
|
2314
|
+
let a = o(Vn), s = n || a;
|
|
2284
2315
|
return /* @__PURE__ */ p(s ? "th" : "td", {
|
|
2285
2316
|
className: [
|
|
2286
|
-
|
|
2287
|
-
s ?
|
|
2317
|
+
Gn.common,
|
|
2318
|
+
s ? Gn.th : Gn.td,
|
|
2288
2319
|
i
|
|
2289
2320
|
].filter(Boolean).join(" "),
|
|
2290
2321
|
style: t,
|
|
2291
2322
|
children: r ?? e
|
|
2292
2323
|
});
|
|
2293
|
-
},
|
|
2324
|
+
}, qn = { thead: "_thead_184mb_1" }, Jn = ({ children: e, style: t, className: n }) => /* @__PURE__ */ p(Vn.Provider, {
|
|
2294
2325
|
value: !0,
|
|
2295
2326
|
children: /* @__PURE__ */ p("thead", {
|
|
2296
|
-
className: [
|
|
2327
|
+
className: [qn.thead, n].filter(Boolean).join(" "),
|
|
2297
2328
|
style: t,
|
|
2298
2329
|
children: e
|
|
2299
2330
|
})
|
|
2300
|
-
}),
|
|
2331
|
+
}), Yn = {
|
|
2301
2332
|
tr: "_tr_1l64j_1",
|
|
2302
2333
|
"has-row-header": "_has-row-header_1l64j_25"
|
|
2303
2334
|
}, J = ({ children: e, style: t, className: n }) => {
|
|
2304
|
-
let r = o(
|
|
2335
|
+
let r = o(Hn);
|
|
2305
2336
|
return /* @__PURE__ */ p("tr", {
|
|
2306
2337
|
className: [
|
|
2307
|
-
|
|
2308
|
-
r ?
|
|
2338
|
+
Yn.tr,
|
|
2339
|
+
r ? Yn["has-row-header"] : void 0,
|
|
2309
2340
|
n
|
|
2310
2341
|
].filter(Boolean).join(" "),
|
|
2311
2342
|
style: t,
|
|
@@ -2321,20 +2352,20 @@ var qt = ({ name: e, src: t, filesize: n, style: r, className: i }) => {
|
|
|
2321
2352
|
code: "_code_189iv_81",
|
|
2322
2353
|
"code-body": "_code-body_189iv_89",
|
|
2323
2354
|
fallback: "_fallback_189iv_93"
|
|
2324
|
-
},
|
|
2325
|
-
function
|
|
2326
|
-
return
|
|
2355
|
+
}, Xn = { code: "_code_1nyfa_1" }, Zn = null;
|
|
2356
|
+
function Qn() {
|
|
2357
|
+
return Zn || (Zn = import("shiki").then(({ createHighlighter: e }) => e({
|
|
2327
2358
|
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
2359
|
themes: ["vitesse-light", "vitesse-dark"]
|
|
2329
|
-
}))),
|
|
2360
|
+
}))), Zn;
|
|
2330
2361
|
}
|
|
2331
2362
|
//#endregion
|
|
2332
2363
|
//#region src/components/code/ElmShikiHighlighter.tsx
|
|
2333
|
-
var
|
|
2364
|
+
var $n = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i }) => {
|
|
2334
2365
|
let [a, o] = d(`<pre>${e}</pre>`);
|
|
2335
2366
|
return s(() => {
|
|
2336
2367
|
let r = !1;
|
|
2337
|
-
return
|
|
2368
|
+
return Qn().then((i) => {
|
|
2338
2369
|
if (!r) try {
|
|
2339
2370
|
let a = i.codeToHtml(e, {
|
|
2340
2371
|
lang: t,
|
|
@@ -2361,14 +2392,14 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2361
2392
|
t,
|
|
2362
2393
|
n
|
|
2363
2394
|
]), /* @__PURE__ */ p("div", {
|
|
2364
|
-
className: [
|
|
2395
|
+
className: [Xn.code, i].filter(Boolean).join(" "),
|
|
2365
2396
|
style: r,
|
|
2366
2397
|
children: /* @__PURE__ */ p("div", {
|
|
2367
2398
|
className: "shiki",
|
|
2368
2399
|
dangerouslySetInnerHTML: { __html: a }
|
|
2369
2400
|
})
|
|
2370
2401
|
});
|
|
2371
|
-
},
|
|
2402
|
+
}, er = ({ code: e, language: t = "txt", caption: n, style: r, className: i }) => {
|
|
2372
2403
|
let [o, c] = d(!1), [l, f] = d(!1), [h, g] = d(!1), _ = u(null), v = u(null);
|
|
2373
2404
|
s(() => {
|
|
2374
2405
|
let e = _.current;
|
|
@@ -2396,21 +2427,21 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2396
2427
|
className: Y.header,
|
|
2397
2428
|
children: [/* @__PURE__ */ m("div", {
|
|
2398
2429
|
className: Y.header__left,
|
|
2399
|
-
children: [/* @__PURE__ */ p(
|
|
2430
|
+
children: [/* @__PURE__ */ p(st, {
|
|
2400
2431
|
language: t,
|
|
2401
2432
|
size: 20
|
|
2402
2433
|
}), /* @__PURE__ */ p("span", {
|
|
2403
2434
|
className: Y.caption,
|
|
2404
|
-
children: /* @__PURE__ */ p(
|
|
2435
|
+
children: /* @__PURE__ */ p(T, { children: n ?? t })
|
|
2405
2436
|
})]
|
|
2406
2437
|
}), /* @__PURE__ */ p("div", {
|
|
2407
2438
|
className: Y.header__right,
|
|
2408
2439
|
children: /* @__PURE__ */ p("div", {
|
|
2409
2440
|
className: Y["copy-icon"],
|
|
2410
2441
|
onClick: y,
|
|
2411
|
-
children: /* @__PURE__ */ p(
|
|
2442
|
+
children: /* @__PURE__ */ p(C, {
|
|
2412
2443
|
size: "1.25em",
|
|
2413
|
-
d: l ?
|
|
2444
|
+
d: l ? le : ue,
|
|
2414
2445
|
useThemeColor: l
|
|
2415
2446
|
})
|
|
2416
2447
|
})
|
|
@@ -2420,7 +2451,7 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2420
2451
|
children: [/* @__PURE__ */ p("div", {
|
|
2421
2452
|
className: Y["code-body"],
|
|
2422
2453
|
style: { opacity: +!!o },
|
|
2423
|
-
children: /* @__PURE__ */ p(
|
|
2454
|
+
children: /* @__PURE__ */ p($n, {
|
|
2424
2455
|
code: e,
|
|
2425
2456
|
language: t,
|
|
2426
2457
|
onRendered: c
|
|
@@ -2428,11 +2459,11 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2428
2459
|
}), /* @__PURE__ */ p("div", {
|
|
2429
2460
|
className: Y.fallback,
|
|
2430
2461
|
style: { opacity: +!o },
|
|
2431
|
-
children: /* @__PURE__ */ p(
|
|
2462
|
+
children: /* @__PURE__ */ p(E, { size: "48px" })
|
|
2432
2463
|
})]
|
|
2433
2464
|
})]
|
|
2434
2465
|
});
|
|
2435
|
-
},
|
|
2466
|
+
}, tr = { katex: "_katex_1a1aj_1" }, nr = ({ expression: e, block: t = !1, style: n, className: r }) => {
|
|
2436
2467
|
let [i, a] = d();
|
|
2437
2468
|
s(() => {
|
|
2438
2469
|
import("katex").then(({ renderToString: n }) => {
|
|
@@ -2446,7 +2477,7 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2446
2477
|
}
|
|
2447
2478
|
}).catch(() => {});
|
|
2448
2479
|
}, [e, t]);
|
|
2449
|
-
let o = [
|
|
2480
|
+
let o = [tr.katex, r].filter(Boolean).join(" ");
|
|
2450
2481
|
return p(t ? "div" : "span", {
|
|
2451
2482
|
className: o,
|
|
2452
2483
|
style: n,
|
|
@@ -2455,8 +2486,8 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2455
2486
|
}, X = {
|
|
2456
2487
|
"color-bg": "_color-bg_yiibu_1",
|
|
2457
2488
|
text: "_text_yiibu_17"
|
|
2458
|
-
},
|
|
2459
|
-
let [r, i] = d(!1), o = u(null), s =
|
|
2489
|
+
}, rr = ({ color: e, style: t, className: n }) => {
|
|
2490
|
+
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
2491
|
navigator.clipboard.writeText(e).then(() => {
|
|
2461
2492
|
i(!0), o.current && clearTimeout(o.current), o.current = setTimeout(() => i(!1), 1500);
|
|
2462
2493
|
});
|
|
@@ -2467,45 +2498,45 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2467
2498
|
"--color": e,
|
|
2468
2499
|
...t
|
|
2469
2500
|
},
|
|
2470
|
-
children: /* @__PURE__ */ p(
|
|
2501
|
+
children: /* @__PURE__ */ p(Nn, {
|
|
2471
2502
|
original: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
2472
2503
|
className: X["color-bg"],
|
|
2473
2504
|
style: { "--background-color": e },
|
|
2474
|
-
onClick: () =>
|
|
2475
|
-
children: r && /* @__PURE__ */ p(
|
|
2476
|
-
d:
|
|
2505
|
+
onClick: () => y(g),
|
|
2506
|
+
children: r && /* @__PURE__ */ p(C, {
|
|
2507
|
+
d: ae,
|
|
2477
2508
|
size: "1em",
|
|
2478
2509
|
color: "white"
|
|
2479
2510
|
})
|
|
2480
2511
|
}), /* @__PURE__ */ p("div", {
|
|
2481
2512
|
className: X.text,
|
|
2482
|
-
onClick: () =>
|
|
2513
|
+
onClick: () => y(g),
|
|
2483
2514
|
children: g
|
|
2484
2515
|
})] }),
|
|
2485
2516
|
tooltip: /* @__PURE__ */ m(f, { children: [
|
|
2486
2517
|
/* @__PURE__ */ p("div", {
|
|
2487
2518
|
className: X.text,
|
|
2488
|
-
onClick: () =>
|
|
2519
|
+
onClick: () => y(g),
|
|
2489
2520
|
children: g
|
|
2490
2521
|
}),
|
|
2491
2522
|
/* @__PURE__ */ p("div", {
|
|
2492
2523
|
className: X.text,
|
|
2493
|
-
onClick: () =>
|
|
2524
|
+
onClick: () => y(_),
|
|
2494
2525
|
children: _
|
|
2495
2526
|
}),
|
|
2496
2527
|
/* @__PURE__ */ p("div", {
|
|
2497
2528
|
className: X.text,
|
|
2498
|
-
onClick: () =>
|
|
2499
|
-
children:
|
|
2529
|
+
onClick: () => y(v),
|
|
2530
|
+
children: v
|
|
2500
2531
|
})
|
|
2501
2532
|
] })
|
|
2502
2533
|
})
|
|
2503
2534
|
});
|
|
2504
|
-
},
|
|
2535
|
+
}, ir = {
|
|
2505
2536
|
container: "_container_a7c06_1",
|
|
2506
2537
|
"row-container": "_row-container_a7c06_9",
|
|
2507
2538
|
"color-name": "_color-name_a7c06_17"
|
|
2508
|
-
},
|
|
2539
|
+
}, ar = [
|
|
2509
2540
|
-3,
|
|
2510
2541
|
-.25,
|
|
2511
2542
|
-.2,
|
|
@@ -2519,16 +2550,16 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2519
2550
|
.2,
|
|
2520
2551
|
.25,
|
|
2521
2552
|
.3
|
|
2522
|
-
],
|
|
2523
|
-
className: [
|
|
2553
|
+
], or = ({ colors: e, style: t, className: n }) => /* @__PURE__ */ p("div", {
|
|
2554
|
+
className: [ir.container, n].filter(Boolean).join(" "),
|
|
2524
2555
|
style: t,
|
|
2525
2556
|
children: e.map((e) => /* @__PURE__ */ m("div", {
|
|
2526
|
-
className:
|
|
2557
|
+
className: ir["row-container"],
|
|
2527
2558
|
children: [/* @__PURE__ */ p("div", {
|
|
2528
|
-
className:
|
|
2559
|
+
className: ir["color-name"],
|
|
2529
2560
|
style: { "--color": e.code },
|
|
2530
2561
|
children: e.name
|
|
2531
|
-
}),
|
|
2562
|
+
}), ar.map((t) => /* @__PURE__ */ p(rr, { color: He(t, e.code) }, t))]
|
|
2532
2563
|
}, e.name))
|
|
2533
2564
|
}), Z = {
|
|
2534
2565
|
palette: "_palette_1glfh_1",
|
|
@@ -2541,7 +2572,7 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2541
2572
|
"command-icon": "_command-icon_1glfh_103",
|
|
2542
2573
|
tag: "_tag_1glfh_107",
|
|
2543
2574
|
footer: "_footer_1glfh_118"
|
|
2544
|
-
},
|
|
2575
|
+
}, sr = {
|
|
2545
2576
|
brown: "#a17c5b",
|
|
2546
2577
|
crimson: "#c56565",
|
|
2547
2578
|
amber: "#d48b70",
|
|
@@ -2552,33 +2583,33 @@ var Xn = ({ code: e, language: t = "txt", onRendered: n, style: r, className: i
|
|
|
2552
2583
|
purple: "#9771bd",
|
|
2553
2584
|
pink: "#c9699e"
|
|
2554
2585
|
};
|
|
2555
|
-
function
|
|
2586
|
+
function cr(e, t) {
|
|
2556
2587
|
if (!t.trim()) return [];
|
|
2557
2588
|
let n = t.toLowerCase();
|
|
2558
2589
|
return e.filter((e) => e.label.toLowerCase().includes(n) || e.description?.toLowerCase().includes(n) || e.keywords?.some((e) => e.toLowerCase().includes(n)));
|
|
2559
2590
|
}
|
|
2560
|
-
var
|
|
2591
|
+
var lr = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
2561
2592
|
let [i, o] = d(""), [c, l] = d([]), [f, h] = d(null), g = u(null);
|
|
2562
2593
|
s(() => {
|
|
2563
2594
|
g.current?.focus();
|
|
2564
2595
|
}, []);
|
|
2565
|
-
let
|
|
2596
|
+
let _ = a((t) => {
|
|
2566
2597
|
let n = t.target.value;
|
|
2567
2598
|
o(n);
|
|
2568
|
-
let r =
|
|
2599
|
+
let r = cr(e, n);
|
|
2569
2600
|
l(r), h(r.length > 0 ? 0 : null);
|
|
2570
|
-
}, [e]),
|
|
2601
|
+
}, [e]), v = a((e) => {
|
|
2571
2602
|
if (e === null) return;
|
|
2572
2603
|
let n = c[e];
|
|
2573
2604
|
n && (n.onInvoke?.(), t?.(n));
|
|
2574
2605
|
}, [c, t]);
|
|
2575
2606
|
return s(() => {
|
|
2576
2607
|
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(),
|
|
2608
|
+
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
2609
|
};
|
|
2579
2610
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
2580
2611
|
}, [
|
|
2581
|
-
|
|
2612
|
+
v,
|
|
2582
2613
|
f,
|
|
2583
2614
|
c.length
|
|
2584
2615
|
]), /* @__PURE__ */ m("div", {
|
|
@@ -2591,11 +2622,11 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2591
2622
|
children: [
|
|
2592
2623
|
/* @__PURE__ */ m("header", {
|
|
2593
2624
|
className: Z.header,
|
|
2594
|
-
children: [/* @__PURE__ */ p(
|
|
2625
|
+
children: [/* @__PURE__ */ p(C, { d: fe }), /* @__PURE__ */ p("input", {
|
|
2595
2626
|
ref: g,
|
|
2596
2627
|
className: Z.input,
|
|
2597
2628
|
value: i,
|
|
2598
|
-
onChange:
|
|
2629
|
+
onChange: _,
|
|
2599
2630
|
type: "text",
|
|
2600
2631
|
inputMode: "text"
|
|
2601
2632
|
})]
|
|
@@ -2604,27 +2635,27 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2604
2635
|
className: Z.body,
|
|
2605
2636
|
children: c.length === 0 ? /* @__PURE__ */ p("div", {
|
|
2606
2637
|
className: Z["empty-result"],
|
|
2607
|
-
children: /* @__PURE__ */ p(
|
|
2638
|
+
children: /* @__PURE__ */ p(T, { children: "search anything..." })
|
|
2608
2639
|
}) : c.map((e, t) => /* @__PURE__ */ m("button", {
|
|
2609
2640
|
className: `${Z.command} ${t === f ? Z["command-selected"] : ""}`,
|
|
2610
2641
|
onClick: () => {
|
|
2611
|
-
h(t),
|
|
2642
|
+
h(t), v(t);
|
|
2612
2643
|
},
|
|
2613
2644
|
children: [
|
|
2614
2645
|
e.icon ? /* @__PURE__ */ p("img", {
|
|
2615
2646
|
className: Z["command-icon"],
|
|
2616
2647
|
src: e.icon,
|
|
2617
2648
|
alt: e.label
|
|
2618
|
-
}) : /* @__PURE__ */ p(
|
|
2619
|
-
d:
|
|
2649
|
+
}) : /* @__PURE__ */ p(C, {
|
|
2650
|
+
d: fe,
|
|
2620
2651
|
size: "1rem"
|
|
2621
2652
|
}),
|
|
2622
2653
|
e.tag ? /* @__PURE__ */ p("div", {
|
|
2623
2654
|
className: Z.tag,
|
|
2624
|
-
style: { "--tag-color":
|
|
2655
|
+
style: { "--tag-color": We(-.3, sr[e.tag.color]) },
|
|
2625
2656
|
children: e.tag.name
|
|
2626
2657
|
}) : /* @__PURE__ */ p("div", { className: Z.tag }),
|
|
2627
|
-
/* @__PURE__ */ p(
|
|
2658
|
+
/* @__PURE__ */ p(T, {
|
|
2628
2659
|
style: {
|
|
2629
2660
|
whiteSpace: "nowrap",
|
|
2630
2661
|
overflow: "hidden",
|
|
@@ -2633,7 +2664,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2633
2664
|
},
|
|
2634
2665
|
children: e.label
|
|
2635
2666
|
}),
|
|
2636
|
-
/* @__PURE__ */ p(
|
|
2667
|
+
/* @__PURE__ */ p(T, {
|
|
2637
2668
|
style: {
|
|
2638
2669
|
opacity: .4,
|
|
2639
2670
|
whiteSpace: "nowrap",
|
|
@@ -2642,40 +2673,40 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2642
2673
|
},
|
|
2643
2674
|
children: e.description ?? "-"
|
|
2644
2675
|
}),
|
|
2645
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
2676
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(C, { d: Te }) })
|
|
2646
2677
|
]
|
|
2647
2678
|
}, e.id))
|
|
2648
2679
|
}),
|
|
2649
2680
|
/* @__PURE__ */ m("footer", {
|
|
2650
2681
|
className: Z.footer,
|
|
2651
|
-
children: [/* @__PURE__ */ p(
|
|
2682
|
+
children: [/* @__PURE__ */ p(T, {
|
|
2652
2683
|
kbd: !0,
|
|
2653
2684
|
children: "Esc"
|
|
2654
|
-
}), /* @__PURE__ */ p(
|
|
2685
|
+
}), /* @__PURE__ */ p(T, { children: "Close" })]
|
|
2655
2686
|
})
|
|
2656
2687
|
]
|
|
2657
2688
|
});
|
|
2658
|
-
},
|
|
2689
|
+
}, ur = {
|
|
2659
2690
|
"jarkup-body": "_jarkup-body_jsvhx_1",
|
|
2660
2691
|
"unsupported-block": "_unsupported-block_jsvhx_5"
|
|
2661
|
-
},
|
|
2662
|
-
className: [
|
|
2692
|
+
}, dr = ({ jsonComponents: e, style: t, className: n }) => /* @__PURE__ */ p("div", {
|
|
2693
|
+
className: [ur["jarkup-body"], n].filter(Boolean).join(" "),
|
|
2663
2694
|
style: t,
|
|
2664
2695
|
children: e.map((e, t) => /* @__PURE__ */ p("div", {
|
|
2665
|
-
className:
|
|
2696
|
+
className: ur["unsupported-block"],
|
|
2666
2697
|
children: /* @__PURE__ */ p("code", { children: JSON.stringify(e, null, 2) })
|
|
2667
2698
|
}, t))
|
|
2668
|
-
}),
|
|
2699
|
+
}), fr = {
|
|
2669
2700
|
"jarkup-body": "_jarkup-body_1rlbi_1",
|
|
2670
2701
|
"column-list": "_column-list_1rlbi_9",
|
|
2671
2702
|
column: "_column_1rlbi_9"
|
|
2672
|
-
},
|
|
2703
|
+
}, 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
2704
|
Text: (e, t, n, r) => {
|
|
2674
2705
|
let i = e.id ?? n, a = e.props;
|
|
2675
|
-
return a.katex ? /* @__PURE__ */ p(
|
|
2706
|
+
return a.katex ? /* @__PURE__ */ p(nr, {
|
|
2676
2707
|
expression: a.text,
|
|
2677
2708
|
block: !1
|
|
2678
|
-
}, i) : /* @__PURE__ */ p(
|
|
2709
|
+
}, i) : /* @__PURE__ */ p(T, {
|
|
2679
2710
|
color: a.color,
|
|
2680
2711
|
backgroundColor: a.backgroundColor,
|
|
2681
2712
|
bold: a.bold,
|
|
@@ -2691,7 +2722,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2691
2722
|
},
|
|
2692
2723
|
Icon: (e, t, n, r) => {
|
|
2693
2724
|
let i = e.id ?? n;
|
|
2694
|
-
return /* @__PURE__ */ p(
|
|
2725
|
+
return /* @__PURE__ */ p(w, {
|
|
2695
2726
|
src: e.props.src,
|
|
2696
2727
|
alt: e.props.alt
|
|
2697
2728
|
}, i);
|
|
@@ -2702,16 +2733,16 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2702
2733
|
},
|
|
2703
2734
|
Heading: (e, t, n, r) => {
|
|
2704
2735
|
let i = e.id ?? n;
|
|
2705
|
-
return /* @__PURE__ */ p(
|
|
2736
|
+
return /* @__PURE__ */ p(A, {
|
|
2706
2737
|
level: e.props.level,
|
|
2707
|
-
id:
|
|
2738
|
+
id: Xe(mr(e.slots.default)),
|
|
2708
2739
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2709
2740
|
children: t(e.slots.default)
|
|
2710
2741
|
}, i);
|
|
2711
2742
|
},
|
|
2712
2743
|
Paragraph: (e, t, n, r) => {
|
|
2713
2744
|
let i = e.id ?? n;
|
|
2714
|
-
return /* @__PURE__ */ p(
|
|
2745
|
+
return /* @__PURE__ */ p(Dt, {
|
|
2715
2746
|
backgroundColor: e.props?.backgroundColor,
|
|
2716
2747
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2717
2748
|
children: t(e.slots.default)
|
|
@@ -2723,7 +2754,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2723
2754
|
},
|
|
2724
2755
|
List: (e, t, n, r) => {
|
|
2725
2756
|
let i = e.id ?? n;
|
|
2726
|
-
return /* @__PURE__ */ p(
|
|
2757
|
+
return /* @__PURE__ */ p(zt, {
|
|
2727
2758
|
listStyle: e.props?.listStyle === "unordered" ? "unordered" : "ordered",
|
|
2728
2759
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2729
2760
|
children: t(e.slots.default)
|
|
@@ -2731,7 +2762,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2731
2762
|
},
|
|
2732
2763
|
BlockQuote: (e, t, n, r) => {
|
|
2733
2764
|
let i = e.id ?? n;
|
|
2734
|
-
return /* @__PURE__ */ p(
|
|
2765
|
+
return /* @__PURE__ */ p(Ot, {
|
|
2735
2766
|
cite: e.props?.cite,
|
|
2736
2767
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2737
2768
|
children: t(e.slots.default)
|
|
@@ -2739,7 +2770,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2739
2770
|
},
|
|
2740
2771
|
Callout: (e, t, n, r) => {
|
|
2741
2772
|
let i = e.id ?? n;
|
|
2742
|
-
return /* @__PURE__ */ p(
|
|
2773
|
+
return /* @__PURE__ */ p(jt, {
|
|
2743
2774
|
type: e.props?.type,
|
|
2744
2775
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2745
2776
|
children: t(e.slots.default)
|
|
@@ -2747,11 +2778,11 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2747
2778
|
},
|
|
2748
2779
|
Divider: (e, t, n, r) => {
|
|
2749
2780
|
let i = e.id ?? n;
|
|
2750
|
-
return /* @__PURE__ */ p(
|
|
2781
|
+
return /* @__PURE__ */ p(k, { style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0 }, i);
|
|
2751
2782
|
},
|
|
2752
2783
|
Toggle: (e, t, n, r) => {
|
|
2753
2784
|
let i = e.id ?? n;
|
|
2754
|
-
return /* @__PURE__ */ p(
|
|
2785
|
+
return /* @__PURE__ */ p(Bn, {
|
|
2755
2786
|
summaryContent: t(e.slots.summary),
|
|
2756
2787
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2757
2788
|
children: t(e.slots.default)
|
|
@@ -2759,7 +2790,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2759
2790
|
},
|
|
2760
2791
|
Bookmark: (e, t, n, r) => {
|
|
2761
2792
|
let i = e.id ?? n;
|
|
2762
|
-
return /* @__PURE__ */ p(
|
|
2793
|
+
return /* @__PURE__ */ p(Qt, {
|
|
2763
2794
|
url: e.props.url,
|
|
2764
2795
|
title: e.props.title,
|
|
2765
2796
|
description: e.props.description,
|
|
@@ -2769,7 +2800,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2769
2800
|
},
|
|
2770
2801
|
File: (e, t, n, r) => {
|
|
2771
2802
|
let i = e.id ?? n;
|
|
2772
|
-
return /* @__PURE__ */ p(
|
|
2803
|
+
return /* @__PURE__ */ p(Zt, {
|
|
2773
2804
|
src: e.props.src,
|
|
2774
2805
|
name: e.props.name,
|
|
2775
2806
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2777,7 +2808,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2777
2808
|
},
|
|
2778
2809
|
Image: (e, t, n, r) => {
|
|
2779
2810
|
let i = e.id ?? n;
|
|
2780
|
-
return /* @__PURE__ */ p(
|
|
2811
|
+
return /* @__PURE__ */ p(P, {
|
|
2781
2812
|
src: e.props.src,
|
|
2782
2813
|
alt: e.props.alt,
|
|
2783
2814
|
width: e.props.width,
|
|
@@ -2789,7 +2820,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2789
2820
|
},
|
|
2790
2821
|
CodeBlock: (e, t, n, r) => {
|
|
2791
2822
|
let i = e.id ?? n;
|
|
2792
|
-
return /* @__PURE__ */ p(
|
|
2823
|
+
return /* @__PURE__ */ p(er, {
|
|
2793
2824
|
code: e.props.code,
|
|
2794
2825
|
language: e.props.language,
|
|
2795
2826
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2797,7 +2828,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2797
2828
|
},
|
|
2798
2829
|
Katex: (e, t, n, r) => {
|
|
2799
2830
|
let i = e.id ?? n;
|
|
2800
|
-
return /* @__PURE__ */ p(
|
|
2831
|
+
return /* @__PURE__ */ p(nr, {
|
|
2801
2832
|
expression: e.props.expression,
|
|
2802
2833
|
block: !0,
|
|
2803
2834
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
@@ -2806,8 +2837,8 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2806
2837
|
Mermaid: (e, t, r, i) => {
|
|
2807
2838
|
let a = e.id ?? r;
|
|
2808
2839
|
return /* @__PURE__ */ p(n, {
|
|
2809
|
-
fallback: /* @__PURE__ */ p(
|
|
2810
|
-
children: /* @__PURE__ */ p(
|
|
2840
|
+
fallback: /* @__PURE__ */ p(sn, {}),
|
|
2841
|
+
children: /* @__PURE__ */ p(pr, {
|
|
2811
2842
|
code: e.props.code,
|
|
2812
2843
|
style: r === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2813
2844
|
})
|
|
@@ -2817,18 +2848,18 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2817
2848
|
Tabs: (e, t, n, r) => {
|
|
2818
2849
|
let i = e.id ?? n, a = [], o = [];
|
|
2819
2850
|
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(
|
|
2851
|
+
return /* @__PURE__ */ p(zn, {
|
|
2821
2852
|
tabLabels: a,
|
|
2822
2853
|
tabContents: o
|
|
2823
2854
|
}, i);
|
|
2824
2855
|
},
|
|
2825
2856
|
Table: (e, t, n, r) => {
|
|
2826
2857
|
let i = e.id ?? n;
|
|
2827
|
-
return /* @__PURE__ */ p(
|
|
2858
|
+
return /* @__PURE__ */ p(Un, {
|
|
2828
2859
|
caption: e.props?.caption,
|
|
2829
2860
|
hasRowHeader: e.props?.hasRowHeader,
|
|
2830
|
-
header: e.slots.header ? /* @__PURE__ */ p(
|
|
2831
|
-
body: /* @__PURE__ */ p(
|
|
2861
|
+
header: e.slots.header ? /* @__PURE__ */ p(Jn, { children: t(e.slots.header) }) : void 0,
|
|
2862
|
+
body: /* @__PURE__ */ p(Wn, { children: t(e.slots.body) }),
|
|
2832
2863
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2833
2864
|
}, i);
|
|
2834
2865
|
},
|
|
@@ -2838,12 +2869,12 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2838
2869
|
},
|
|
2839
2870
|
TableCell: (e, t, n, r) => {
|
|
2840
2871
|
let i = e.id ?? n;
|
|
2841
|
-
return /* @__PURE__ */ p(
|
|
2872
|
+
return /* @__PURE__ */ p(Kn, { children: t(e.slots.default) }, i);
|
|
2842
2873
|
},
|
|
2843
2874
|
ColumnList: (e, t, n, r) => {
|
|
2844
2875
|
let i = e.id ?? n;
|
|
2845
2876
|
return /* @__PURE__ */ p("div", {
|
|
2846
|
-
className:
|
|
2877
|
+
className: fr["column-list"],
|
|
2847
2878
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0,
|
|
2848
2879
|
children: t(e.slots.default)
|
|
2849
2880
|
}, i);
|
|
@@ -2851,7 +2882,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2851
2882
|
Column: (e, t, n, r) => {
|
|
2852
2883
|
let i = e.id ?? n;
|
|
2853
2884
|
return /* @__PURE__ */ p("div", {
|
|
2854
|
-
className:
|
|
2885
|
+
className: fr.column,
|
|
2855
2886
|
style: {
|
|
2856
2887
|
"--width-ratio": e.props?.widthRatio ?? 1,
|
|
2857
2888
|
width: e.props?.widthRatio ? `${e.props.widthRatio * 100}%` : void 0,
|
|
@@ -2862,138 +2893,138 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
2862
2893
|
},
|
|
2863
2894
|
Unsupported: (e, t, n, r) => {
|
|
2864
2895
|
let i = e.id ?? n;
|
|
2865
|
-
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(
|
|
2896
|
+
return r?.skipUnsupportedComponentWarning ? null : /* @__PURE__ */ p(un, {
|
|
2866
2897
|
details: e.props?.details ?? `Unsupported component type: ${e.type}`,
|
|
2867
2898
|
style: n === 0 ? { "--elmethis-margin-block-start": "0" } : void 0
|
|
2868
2899
|
}, i);
|
|
2869
2900
|
}
|
|
2870
|
-
},
|
|
2901
|
+
}, gr = ({ jsonComponents: e, skipUnsupportedComponentWarning: t = !1, renderFunctionMap: n, style: r, className: i }) => {
|
|
2871
2902
|
let a = {
|
|
2872
|
-
...
|
|
2903
|
+
...hr,
|
|
2873
2904
|
...n
|
|
2874
2905
|
}, o = (e) => e.map((e, n) => {
|
|
2875
2906
|
let i = e.id ?? n, s = a[e.type];
|
|
2876
2907
|
return s ? s(e, o, n, {
|
|
2877
2908
|
skipUnsupportedComponentWarning: t,
|
|
2878
2909
|
style: r
|
|
2879
|
-
}) : t ? null : /* @__PURE__ */ p(
|
|
2910
|
+
}) : t ? null : /* @__PURE__ */ p(un, { details: `Unsupported component type: ${e.type}` }, i);
|
|
2880
2911
|
});
|
|
2881
2912
|
return /* @__PURE__ */ p("div", {
|
|
2882
|
-
className: [
|
|
2913
|
+
className: [fr["jarkup-body"], i].filter(Boolean).join(" "),
|
|
2883
2914
|
style: {
|
|
2884
2915
|
"--elmethis-margin-block-start": r?.["--elmethis-margin-block-start"] ?? "2.5rem",
|
|
2885
2916
|
...r
|
|
2886
2917
|
},
|
|
2887
2918
|
children: o(e)
|
|
2888
2919
|
});
|
|
2889
|
-
},
|
|
2920
|
+
}, _r = { "markdown-body": "_markdown-body_130yx_1" }, Q = (e) => e === 0 ? { "--elmethis-margin-block-start": "0" } : void 0, vr = {
|
|
2890
2921
|
blockquote: (e, t, n) => {
|
|
2891
2922
|
if (!e.tokens || e.tokens.length === 0) return null;
|
|
2892
2923
|
let r = e.tokens.flatMap((e) => e.type === "paragraph" && e.tokens ? e.tokens : [e]);
|
|
2893
|
-
return /* @__PURE__ */ p(
|
|
2924
|
+
return /* @__PURE__ */ p(Ot, {
|
|
2894
2925
|
style: Q(n),
|
|
2895
2926
|
children: t(r)
|
|
2896
2927
|
}, n);
|
|
2897
2928
|
},
|
|
2898
2929
|
br: (e, t, n) => /* @__PURE__ */ p("br", {}, n),
|
|
2899
|
-
checkbox: (e, t, n) => /* @__PURE__ */ p(
|
|
2930
|
+
checkbox: (e, t, n) => /* @__PURE__ */ p(fn, {
|
|
2900
2931
|
label: e.raw,
|
|
2901
2932
|
checked: e.checked,
|
|
2902
2933
|
style: Q(n)
|
|
2903
2934
|
}, n),
|
|
2904
|
-
code: (e, t, n) => /* @__PURE__ */ p(
|
|
2935
|
+
code: (e, t, n) => /* @__PURE__ */ p(er, {
|
|
2905
2936
|
code: e.text.trim(),
|
|
2906
2937
|
language: e.lang,
|
|
2907
2938
|
style: Q(n)
|
|
2908
2939
|
}, n),
|
|
2909
|
-
codespan: (e, t, n) => /* @__PURE__ */ p(
|
|
2940
|
+
codespan: (e, t, n) => /* @__PURE__ */ p(T, {
|
|
2910
2941
|
code: !0,
|
|
2911
2942
|
children: e.text
|
|
2912
2943
|
}, n),
|
|
2913
2944
|
def: () => null,
|
|
2914
|
-
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2945
|
+
del: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2915
2946
|
strikethrough: !0,
|
|
2916
2947
|
children: t(e.tokens)
|
|
2917
|
-
}, n) : /* @__PURE__ */ p(
|
|
2948
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2918
2949
|
strikethrough: !0,
|
|
2919
2950
|
children: e.text
|
|
2920
2951
|
}, n),
|
|
2921
|
-
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2952
|
+
em: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2922
2953
|
italic: !0,
|
|
2923
2954
|
children: t(e.tokens)
|
|
2924
|
-
}, n) : /* @__PURE__ */ p(
|
|
2955
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2925
2956
|
italic: !0,
|
|
2926
2957
|
children: e.text
|
|
2927
2958
|
}, n),
|
|
2928
2959
|
escape: () => null,
|
|
2929
2960
|
heading: (e, t, n) => {
|
|
2930
2961
|
let r = e.depth;
|
|
2931
|
-
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2962
|
+
return e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(A, {
|
|
2932
2963
|
level: r,
|
|
2933
2964
|
style: Q(n),
|
|
2934
2965
|
children: t(e.tokens)
|
|
2935
|
-
}, n) : /* @__PURE__ */ p(
|
|
2966
|
+
}, n) : /* @__PURE__ */ p(A, {
|
|
2936
2967
|
level: r,
|
|
2937
2968
|
text: e.text,
|
|
2938
2969
|
style: Q(n)
|
|
2939
2970
|
}, n);
|
|
2940
2971
|
},
|
|
2941
|
-
hr: (e, t, n) => /* @__PURE__ */ p(
|
|
2972
|
+
hr: (e, t, n) => /* @__PURE__ */ p(k, { style: Q(n) }, n),
|
|
2942
2973
|
html: () => null,
|
|
2943
|
-
image: (e, t, n) => /* @__PURE__ */ p(
|
|
2974
|
+
image: (e, t, n) => /* @__PURE__ */ p(P, {
|
|
2944
2975
|
block: !0,
|
|
2945
2976
|
enableModal: !0,
|
|
2946
2977
|
src: e.href,
|
|
2947
2978
|
alt: e.text,
|
|
2948
2979
|
style: Q(n)
|
|
2949
2980
|
}, n),
|
|
2950
|
-
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2981
|
+
link: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2951
2982
|
href: e.href,
|
|
2952
2983
|
children: t(e.tokens)
|
|
2953
|
-
}, n) : /* @__PURE__ */ p(
|
|
2984
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2954
2985
|
href: e.href,
|
|
2955
2986
|
children: e.text
|
|
2956
2987
|
}, n),
|
|
2957
2988
|
list: (e, t, n) => {
|
|
2958
2989
|
let r = e.items.map((e, n) => /* @__PURE__ */ p("li", { children: t(e.tokens) }, n));
|
|
2959
|
-
return /* @__PURE__ */ p(
|
|
2990
|
+
return /* @__PURE__ */ p(zt, {
|
|
2960
2991
|
listStyle: e.ordered ? "ordered" : "unordered",
|
|
2961
2992
|
style: Q(n),
|
|
2962
2993
|
children: r
|
|
2963
2994
|
}, n);
|
|
2964
2995
|
},
|
|
2965
2996
|
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(
|
|
2997
|
+
paragraph: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(Dt, {
|
|
2967
2998
|
style: Q(n),
|
|
2968
2999
|
children: t(e.tokens)
|
|
2969
3000
|
}, n) : null,
|
|
2970
3001
|
space: () => null,
|
|
2971
|
-
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
3002
|
+
strong: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(T, {
|
|
2972
3003
|
bold: !0,
|
|
2973
3004
|
children: t(e.tokens)
|
|
2974
|
-
}, n) : /* @__PURE__ */ p(
|
|
3005
|
+
}, n) : /* @__PURE__ */ p(T, {
|
|
2975
3006
|
bold: !0,
|
|
2976
3007
|
children: e.text
|
|
2977
3008
|
}, n),
|
|
2978
3009
|
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(
|
|
3010
|
+
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));
|
|
3011
|
+
return /* @__PURE__ */ p(Un, {
|
|
3012
|
+
header: /* @__PURE__ */ p(Jn, { children: i }),
|
|
3013
|
+
body: /* @__PURE__ */ p(Wn, { children: a }),
|
|
2983
3014
|
style: Q(n)
|
|
2984
3015
|
}, n);
|
|
2985
3016
|
},
|
|
2986
|
-
text: (e, t, n) => e.tokens && e.tokens.length !== 0 ? /* @__PURE__ */ p(
|
|
2987
|
-
},
|
|
3017
|
+
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)
|
|
3018
|
+
}, yr = ({ markdown: e, style: t, className: n, renderFunctionMap: r }) => {
|
|
2988
3019
|
let i = {
|
|
2989
|
-
...
|
|
3020
|
+
...vr,
|
|
2990
3021
|
...r
|
|
2991
3022
|
}, a = (e) => e.map((e, t) => {
|
|
2992
3023
|
let n = i[e.type];
|
|
2993
3024
|
return n ? n(e, a, t) : null;
|
|
2994
|
-
}), o =
|
|
3025
|
+
}), o = Ze.setOptions({ gfm: !0 }).lexer(e);
|
|
2995
3026
|
return /* @__PURE__ */ p("div", {
|
|
2996
|
-
className: [
|
|
3027
|
+
className: [_r["markdown-body"], n].filter(Boolean).join(" "),
|
|
2997
3028
|
style: {
|
|
2998
3029
|
"--elmethis-margin-block-start": "2.5rem",
|
|
2999
3030
|
...t
|
|
@@ -3005,7 +3036,7 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3005
3036
|
typed: "_typed_sojtj_20",
|
|
3006
3037
|
current: "_current_sojtj_24",
|
|
3007
3038
|
incorrect: "_incorrect_sojtj_29"
|
|
3008
|
-
},
|
|
3039
|
+
}, br = ({ target: e = "Typing game", style: t, className: n }) => {
|
|
3009
3040
|
let [r, i] = d(() => {
|
|
3010
3041
|
let t = e.split("").map((e) => ({
|
|
3011
3042
|
char: e,
|
|
@@ -3058,10 +3089,10 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3058
3089
|
c > 0 && /* @__PURE__ */ m("div", { children: ["Mistakes: ", c] })
|
|
3059
3090
|
]
|
|
3060
3091
|
});
|
|
3061
|
-
},
|
|
3092
|
+
}, xr = ({ oEmbed: e, style: t, className: n }) => e.type === "photo" ? /* @__PURE__ */ p("div", {
|
|
3062
3093
|
className: n,
|
|
3063
3094
|
style: t,
|
|
3064
|
-
children: /* @__PURE__ */ p(
|
|
3095
|
+
children: /* @__PURE__ */ p(P, {
|
|
3065
3096
|
src: e.url,
|
|
3066
3097
|
alt: e.title,
|
|
3067
3098
|
width: e.width,
|
|
@@ -3078,10 +3109,10 @@ var or = ({ commands: e, onCommandInvoked: t, style: n, className: r }) => {
|
|
|
3078
3109
|
}) : /* @__PURE__ */ p("div", {
|
|
3079
3110
|
className: n,
|
|
3080
3111
|
style: t,
|
|
3081
|
-
children: /* @__PURE__ */ p(
|
|
3112
|
+
children: /* @__PURE__ */ p(T, {
|
|
3082
3113
|
href: e.author_url ?? e.provider_url ?? "#",
|
|
3083
3114
|
children: e.title ?? e.author_name ?? e.provider_name ?? "Link"
|
|
3084
3115
|
})
|
|
3085
3116
|
});
|
|
3086
3117
|
//#endregion
|
|
3087
|
-
export {
|
|
3118
|
+
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 };
|