jaml-ui 0.30.0 → 0.32.1
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/README.md +193 -61
- package/assets/fonts/README.md +14 -0
- package/assets/fonts/m6x11.ttf +0 -0
- package/assets/fonts/m6x11plus.ttf +0 -0
- package/dist/.gitkeep +0 -0
- package/dist/assets/{searchPoolWorker-C4xj1WA_.js → searchPoolWorker-6mF4VfgO.js} +5 -5
- package/dist/assets/searchPoolWorker-6mF4VfgO.js.map +1 -0
- package/dist/assets.d.ts +1 -1
- package/dist/chunks/{assets-D80i9sMq.js → assets-Bb6wV80_.js} +3 -3
- package/dist/chunks/assets-Bb6wV80_.js.map +1 -0
- package/dist/chunks/jamlSeeds-3ILzc_rj.js +66 -0
- package/dist/chunks/jamlSeeds-3ILzc_rj.js.map +1 -0
- package/dist/chunks/{runtime-C-It0krH.js → runtime-Bklr4A-D.js} +2 -2
- package/dist/chunks/{runtime-C-It0krH.js.map → runtime-Bklr4A-D.js.map} +1 -1
- package/dist/chunks/{searchPoolWorker-hVVM49SD.js → searchPoolWorker-Dqhc9lfv.js} +2 -2
- package/dist/chunks/searchPoolWorker-Dqhc9lfv.js.map +1 -0
- package/dist/chunks/{spriteMapper-C4_5G1Z6.js → spriteMapper-CajFGgUU.js} +2 -2
- package/dist/chunks/spriteMapper-CajFGgUU.js.map +1 -0
- package/dist/chunks/tokens-Qrhlekc4.js.map +1 -1
- package/dist/chunks/{ui-D_9HO9OO.js → ui-UqEG1EZ9.js} +1670 -1191
- package/dist/chunks/ui-UqEG1EZ9.js.map +1 -0
- package/dist/components/CardFan.d.ts +0 -9
- package/dist/components/JamlAestheticSelector.d.ts +3 -3
- package/dist/components/JamlIde.d.ts +1 -4
- package/dist/components/JamlSeedSpinner.d.ts +3 -1
- package/dist/components/Jamlyzer.d.ts +5 -8
- package/dist/components/MotelyHello.d.ts +5 -0
- package/dist/components/StandardCard.d.ts +14 -0
- package/dist/components/cardEnums.d.ts +48 -0
- package/dist/components/jamlMap/JokerPicker.d.ts +2 -1
- package/dist/components/jamlMap/MysterySlot.d.ts +2 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +7 -7
- package/dist/core.js.map +1 -1
- package/dist/hooks/useAnalyzer.d.ts +1 -1
- package/dist/hooks/useSearchPool.d.ts +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +3319 -3278
- package/dist/index.js.map +1 -1
- package/dist/lib/data/constants.d.ts +3 -3
- package/dist/lib/jaml/jamlData.d.ts +1 -0
- package/dist/lib/jaml/jamlSchema.d.ts +10 -60
- package/dist/lib/jaml/jamlSeeds.d.ts +7 -0
- package/dist/lib/types.d.ts +3 -2
- package/dist/motely.d.ts +1 -2
- package/dist/motely.js +380 -428
- package/dist/motely.js.map +1 -1
- package/dist/r3f.js +16 -16
- package/dist/r3f.js.map +1 -1
- package/dist/ui/JimboBadge.d.ts +1 -1
- package/dist/ui/{footer.d.ts → JimboBalatroFooter.d.ts} +4 -2
- package/dist/ui/JimboButton.d.ts +62 -0
- package/dist/ui/JimboCopyButton.d.ts +27 -0
- package/dist/ui/JimboDeckAndStakeSelectorModal.d.ts +30 -0
- package/dist/ui/JimboDualChip.d.ts +17 -0
- package/dist/ui/JimboIconButton.d.ts +8 -3
- package/dist/ui/JimboInlineEdit.d.ts +16 -0
- package/dist/ui/JimboListItem.d.ts +11 -0
- package/dist/ui/JimboPanelSplitter.d.ts +8 -0
- package/dist/ui/JimboSeedCopyChip.d.ts +16 -0
- package/dist/ui/JimboSelect.d.ts +15 -3
- package/dist/ui/JimboSlider.d.ts +11 -0
- package/dist/ui/JimboSpinner.d.ts +18 -0
- package/dist/ui/JimboStepper.d.ts +22 -0
- package/dist/ui/JimboToggleList.d.ts +2 -1
- package/dist/ui/JimboValueBadge.d.ts +19 -0
- package/dist/ui/codeBlock.d.ts +4 -0
- package/dist/ui/hooks.d.ts +30 -3
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/jimboApp.d.ts +2 -2
- package/dist/ui/jimboBackground.d.ts +12 -5
- package/dist/ui/jimboCopyRow.d.ts +2 -2
- package/dist/ui/jimboInset.d.ts +3 -3
- package/dist/ui/jimboLayout.d.ts +25 -0
- package/dist/ui/jimboLink.d.ts +12 -0
- package/dist/ui/jimboTabs.d.ts +6 -6
- package/dist/ui/jimboText.d.ts +2 -3
- package/dist/ui/jimboTooltip.d.ts +10 -1
- package/dist/ui/panel.d.ts +1 -13
- package/dist/ui.d.ts +16 -4
- package/dist/ui.js +3 -3
- package/fonts.css +20 -5
- package/package.json +14 -14
- package/assets/fonts/m6x11plusplus.otf +0 -0
- package/dist/assets/searchPoolWorker-C4xj1WA_.js.map +0 -1
- package/dist/chunks/Layer-Ckd_T6Fw.js +0 -17
- package/dist/chunks/Layer-Ckd_T6Fw.js.map +0 -1
- package/dist/chunks/assets-D80i9sMq.js.map +0 -1
- package/dist/chunks/searchPoolWorker-hVVM49SD.js.map +0 -1
- package/dist/chunks/spriteMapper-C4_5G1Z6.js.map +0 -1
- package/dist/chunks/ui-D_9HO9OO.js.map +0 -1
- package/dist/components/CardList.d.ts +0 -8
- package/dist/components/Standardcard.d.ts +0 -18
- package/dist/config.d.ts +0 -10
- package/dist/fonts/m6x11plus.otf +0 -0
- package/dist/hooks/useMotelyRuntime.d.ts +0 -11
- package/dist/providers/MotelyProvider.d.ts +0 -11
- package/dist/ui/JimboFloating.d.ts +0 -8
- package/dist/ui/PanelSplitter.d.ts +0 -8
- package/jaml.schema.json +0 -1219
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { n as e, t } from "./tokens-Qrhlekc4.js";
|
|
2
|
-
import { n } from "./assets-
|
|
3
|
-
import { n as r, p as i, r as a, t as o } from "./spriteMapper-
|
|
2
|
+
import { n } from "./assets-Bb6wV80_.js";
|
|
3
|
+
import { n as r, p as i, r as a, t as o } from "./spriteMapper-CajFGgUU.js";
|
|
4
4
|
import s, { createContext as c, createElement as l, forwardRef as u, memo as d, useCallback as f, useContext as p, useEffect as m, useLayoutEffect as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
5
5
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { Canvas as S, useFrame as C } from "@react-three/fiber";
|
|
7
|
+
import { animated as w, useSpring as ee } from "@react-spring/three";
|
|
8
|
+
import { RoundedBox as T, Text as E } from "@react-three/drei";
|
|
9
|
+
import * as D from "three";
|
|
10
|
+
import { FiCheck as O, FiCopy as k } from "react-icons/fi";
|
|
11
|
+
import { createPortal as te } from "react-dom";
|
|
7
12
|
//#region src/ui/hooks.ts
|
|
8
|
-
function
|
|
13
|
+
function A(e) {
|
|
9
14
|
return new Promise((t) => {
|
|
10
15
|
let n = new window.Image();
|
|
11
16
|
n.addEventListener("load", () => t(n)), n.addEventListener("error", () => t(null)), n.src = e;
|
|
12
17
|
});
|
|
13
18
|
}
|
|
14
|
-
function
|
|
19
|
+
function j(e, t, n, r, i) {
|
|
15
20
|
if (!n || !r || !r?.pos) return 0;
|
|
16
21
|
let a = n.width / r.columns, o = n.height / r.rows, s = e.style;
|
|
17
22
|
if (r.order === 0 && (e.width = a, e.height = o, s.width = `${a}px`, s.height = `${o}px`), s.imageRendering = "pixelated", t.imageSmoothingEnabled = !0, t.save(), r.animated && i) {
|
|
@@ -20,7 +25,7 @@ function te(e, t, n, r, i) {
|
|
|
20
25
|
}
|
|
21
26
|
return t.drawImage(n, r.pos.x * a, r.pos.y * o, a, o, 0, 0, e.width, e.height), t.restore(), a / o;
|
|
22
27
|
}
|
|
23
|
-
function
|
|
28
|
+
function ne(e) {
|
|
24
29
|
let n = _(null);
|
|
25
30
|
return m(() => {
|
|
26
31
|
if (!e || !n.current) return;
|
|
@@ -33,27 +38,69 @@ function C(e) {
|
|
|
33
38
|
};
|
|
34
39
|
}, [e]), n;
|
|
35
40
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
var M = {
|
|
42
|
+
primary: [
|
|
43
|
+
1,
|
|
44
|
+
.2,
|
|
45
|
+
.2
|
|
46
|
+
],
|
|
47
|
+
secondary: [
|
|
48
|
+
0,
|
|
49
|
+
.5,
|
|
50
|
+
1
|
|
51
|
+
],
|
|
52
|
+
dark: [
|
|
53
|
+
.05,
|
|
54
|
+
.08,
|
|
55
|
+
.1
|
|
56
|
+
],
|
|
57
|
+
speed: 1,
|
|
58
|
+
spinRotation: -2,
|
|
59
|
+
spinAmount: .35,
|
|
60
|
+
pixelFilter: 740 * .33,
|
|
61
|
+
contrast: 4.5,
|
|
62
|
+
lighting: .5,
|
|
63
|
+
transitionMs: 800
|
|
64
|
+
};
|
|
65
|
+
function N(e, t) {
|
|
66
|
+
if (!e) return t;
|
|
67
|
+
if (Array.isArray(e)) return [
|
|
68
|
+
e[0],
|
|
69
|
+
e[1],
|
|
70
|
+
e[2]
|
|
71
|
+
];
|
|
72
|
+
let n = e.trim().replace(/^#/, "");
|
|
73
|
+
if (n.length === 3 && (n = n.split("").map((e) => e + e).join("")), n.length !== 6) return t;
|
|
74
|
+
let r = parseInt(n, 16);
|
|
75
|
+
return Number.isNaN(r) ? t : [
|
|
76
|
+
(r >> 16 & 255) / 255,
|
|
77
|
+
(r >> 8 & 255) / 255,
|
|
78
|
+
(r & 255) / 255
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
function re(e = {}) {
|
|
82
|
+
let t = _(null), n = _(e);
|
|
83
|
+
return h(() => {
|
|
84
|
+
n.current = e;
|
|
85
|
+
}), m(() => {
|
|
86
|
+
let e = t.current;
|
|
87
|
+
if (!e) return;
|
|
88
|
+
let r = e.getContext("webgl");
|
|
89
|
+
if (!r) return;
|
|
90
|
+
let i = (e, t) => {
|
|
91
|
+
let n = r.createShader(e);
|
|
92
|
+
return n ? (r.shaderSource(n, t), r.compileShader(n), r.getShaderParameter(n, r.COMPILE_STATUS) ? n : (console.error("[JimboBackground] shader compile error:", r.getShaderInfoLog(n)), r.deleteShader(n), null)) : null;
|
|
93
|
+
}, a = i(r.VERTEX_SHADER, "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "), o = i(r.FRAGMENT_SHADER, "\n precision mediump float;\n\n uniform float u_time;\n uniform vec2 u_resolution;\n uniform vec3 u_color1;\n uniform vec3 u_color2;\n uniform vec3 u_color3;\n uniform float u_spinRotation;\n uniform float u_spinSpeed;\n uniform float u_spinAmount;\n uniform float u_pixelFilter;\n uniform float u_contrast;\n uniform float u_lighting;\n\n void main() {\n vec2 screenSize = u_resolution;\n float pixel_size = length(screenSize.xy) / max(1.0, u_pixelFilter);\n vec2 uv = (floor(gl_FragCoord.xy*(1.0/pixel_size))*pixel_size - 0.5*screenSize.xy)/length(screenSize.xy);\n float uv_len = length(uv);\n\n float speed = (u_spinRotation * 0.2) + 302.2;\n float new_pixel_angle = atan(uv.y, uv.x) + speed - 20.0*(u_spinAmount*uv_len + (1.0 - u_spinAmount));\n\n vec2 mid = (screenSize.xy/length(screenSize.xy))/2.0;\n uv = (vec2((uv_len * cos(new_pixel_angle) + mid.x), (uv_len * sin(new_pixel_angle) + mid.y)) - mid);\n\n uv *= 30.0;\n speed = u_time * u_spinSpeed;\n vec2 uv2 = vec2(uv.x, uv.y);\n\n for(int i=0; i < 5; i++) {\n uv2 += sin(max(uv.x, uv.y)) + uv;\n uv += 0.5*vec2(cos(5.1123314 + 0.353*uv2.y + speed*0.131121), sin(uv2.x - 0.113*speed));\n uv -= 1.0*cos(uv.x + uv.y) - 1.0*sin(uv.x*0.711 - uv.y);\n }\n\n float contrast_mod = (0.25*u_contrast + 0.5*u_spinAmount + 1.2);\n float paint_res = min(2.0, max(0.0, length(uv)*(0.035)*contrast_mod));\n float c1p = max(0.0, 1.0 - contrast_mod*abs(1.0 - paint_res));\n float c2p = max(0.0, 1.0 - contrast_mod*abs(paint_res));\n float c3p = 1.0 - min(1.0, c1p + c2p);\n float light = (u_lighting - 0.2)*max(c1p*5.0 - 4.0, 0.0) + u_lighting*max(c2p*5.0 - 4.0, 0.0);\n\n vec3 base = (0.3/u_contrast)*u_color1 + (1.0 - 0.3/u_contrast)*(u_color1*c1p + u_color2*c2p + c3p*u_color3) + vec3(light);\n gl_FragColor = vec4(base, 1.0);\n }\n ");
|
|
94
|
+
if (!a || !o) return;
|
|
95
|
+
let s = r.createProgram();
|
|
96
|
+
if (!s) return;
|
|
97
|
+
if (r.attachShader(s, a), r.attachShader(s, o), r.linkProgram(s), !r.getProgramParameter(s, r.LINK_STATUS)) {
|
|
98
|
+
console.error("[JimboBackground] program link error:", r.getProgramInfoLog(s));
|
|
52
99
|
return;
|
|
53
100
|
}
|
|
54
|
-
|
|
55
|
-
let
|
|
56
|
-
|
|
101
|
+
r.useProgram(s);
|
|
102
|
+
let c = r.createBuffer();
|
|
103
|
+
r.bindBuffer(r.ARRAY_BUFFER, c), r.bufferData(r.ARRAY_BUFFER, new Float32Array([
|
|
57
104
|
-1,
|
|
58
105
|
-1,
|
|
59
106
|
1,
|
|
@@ -66,21 +113,42 @@ function ne() {
|
|
|
66
113
|
-1,
|
|
67
114
|
1,
|
|
68
115
|
1
|
|
69
|
-
]),
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
116
|
+
]), r.STATIC_DRAW);
|
|
117
|
+
let l = r.getAttribLocation(s, "position");
|
|
118
|
+
r.enableVertexAttribArray(l), r.vertexAttribPointer(l, 2, r.FLOAT, !1, 0, 0);
|
|
119
|
+
let u = r.getUniformLocation(s, "u_time"), d = r.getUniformLocation(s, "u_resolution"), f = r.getUniformLocation(s, "u_color1"), p = r.getUniformLocation(s, "u_color2"), m = r.getUniformLocation(s, "u_color3"), h = r.getUniformLocation(s, "u_spinRotation"), g = r.getUniformLocation(s, "u_spinSpeed"), _ = r.getUniformLocation(s, "u_spinAmount"), v = r.getUniformLocation(s, "u_pixelFilter"), y = r.getUniformLocation(s, "u_contrast"), b = r.getUniformLocation(s, "u_lighting"), x = (e) => ({
|
|
120
|
+
spinRotation: e.spinRotation ?? M.spinRotation,
|
|
121
|
+
spinSpeed: 4.5 * (e.speed ?? M.speed),
|
|
122
|
+
spinAmount: e.spinAmount ?? M.spinAmount,
|
|
123
|
+
pixelFilter: e.pixelFilter ?? M.pixelFilter,
|
|
124
|
+
contrast: e.contrast ?? M.contrast,
|
|
125
|
+
lighting: e.lighting ?? M.lighting
|
|
126
|
+
}), S = n.current, C = [
|
|
127
|
+
N(S.primary, M.primary),
|
|
128
|
+
N(S.secondary, M.secondary),
|
|
129
|
+
N(S.dark, M.dark)
|
|
130
|
+
], w = x(S), ee = performance.now(), T = ee, E = 0, D = () => {
|
|
131
|
+
let t = performance.now(), i = Math.max(0, t - T);
|
|
132
|
+
T = t;
|
|
133
|
+
let a = n.current, o = [
|
|
134
|
+
N(a.primary, M.primary),
|
|
135
|
+
N(a.secondary, M.secondary),
|
|
136
|
+
N(a.dark, M.dark)
|
|
137
|
+
], s = x(a), c = Math.max(1, a.transitionMs ?? M.transitionMs), l = 1 - Math.exp(-i / c);
|
|
138
|
+
for (let e = 0; e < 3; e++) for (let t = 0; t < 3; t++) C[e][t] += (o[e][t] - C[e][t]) * l;
|
|
139
|
+
let S = (e) => {
|
|
140
|
+
w[e] += (s[e] - w[e]) * l;
|
|
141
|
+
};
|
|
142
|
+
S("spinRotation"), S("spinSpeed"), S("spinAmount"), S("pixelFilter"), S("contrast"), S("lighting");
|
|
143
|
+
let O = e.clientWidth, k = e.clientHeight;
|
|
144
|
+
(e.width !== O || e.height !== k) && (e.width = O, e.height = k, r.viewport(0, 0, r.drawingBufferWidth, r.drawingBufferHeight)), r.uniform1f(u, (t - ee) / 1e3), r.uniform2f(d, e.width, e.height), r.uniform3f(f, C[0][0], C[0][1], C[0][2]), r.uniform3f(p, C[1][0], C[1][1], C[1][2]), r.uniform3f(m, C[2][0], C[2][1], C[2][2]), r.uniform1f(h, w.spinRotation), r.uniform1f(g, w.spinSpeed), r.uniform1f(_, w.spinAmount), r.uniform1f(v, w.pixelFilter), r.uniform1f(y, w.contrast), r.uniform1f(b, w.lighting), r.drawArrays(r.TRIANGLES, 0, 6), E = requestAnimationFrame(D);
|
|
77
145
|
};
|
|
78
|
-
return
|
|
79
|
-
cancelAnimationFrame(
|
|
146
|
+
return E = requestAnimationFrame(D), () => {
|
|
147
|
+
cancelAnimationFrame(E), r.deleteProgram(s), r.deleteShader(a), r.deleteShader(o), r.deleteBuffer(c);
|
|
80
148
|
};
|
|
81
|
-
}, []),
|
|
149
|
+
}, []), t;
|
|
82
150
|
}
|
|
83
|
-
function
|
|
151
|
+
function ie({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r = !1 }) {
|
|
84
152
|
let [i, a] = v(!1), [o, s] = v(null), c = _(null), l = _(null), u = _(null), d = f(() => {
|
|
85
153
|
r || (u.current && clearTimeout(u.current), u.current = setTimeout(() => a(!0), n));
|
|
86
154
|
}, [r, n]), p = f(() => {
|
|
@@ -123,7 +191,7 @@ function w({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r
|
|
|
123
191
|
}, [e])
|
|
124
192
|
};
|
|
125
193
|
}
|
|
126
|
-
function
|
|
194
|
+
function ae({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
127
195
|
let r = _(null), a = _(null), o = _(/* @__PURE__ */ new Map()), [s, c] = v(3 / 4), [, l] = v(0), u = _(null), d = _({
|
|
128
196
|
rx: 0,
|
|
129
197
|
ry: 0,
|
|
@@ -136,7 +204,7 @@ function T({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
136
204
|
m(() => {
|
|
137
205
|
let e = !1, t = o.current;
|
|
138
206
|
return (async () => {
|
|
139
|
-
let n = Array.from(new Set(Object.values(i).map((e) => e.src))), r = await Promise.all(n.map((e) =>
|
|
207
|
+
let n = Array.from(new Set(Object.values(i).map((e) => e.src))), r = await Promise.all(n.map((e) => A(e)));
|
|
140
208
|
e || (r.forEach((e, r) => {
|
|
141
209
|
e && t.set(n[r], e);
|
|
142
210
|
}), l((e) => e + 1));
|
|
@@ -152,14 +220,14 @@ function T({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
152
220
|
i.clearRect(0, 0, n.width, n.height), [...e].sort((e, t) => e.order - t.order).forEach((e) => {
|
|
153
221
|
let t = o.current.get(e.source);
|
|
154
222
|
if (t) {
|
|
155
|
-
let a =
|
|
223
|
+
let a = j(n, i, t, e, h ? r : void 0);
|
|
156
224
|
e.order === 0 && c(a);
|
|
157
225
|
return;
|
|
158
226
|
}
|
|
159
|
-
|
|
227
|
+
A(e.source).then((t) => {
|
|
160
228
|
if (!(a || !t)) {
|
|
161
229
|
if (o.current.set(e.source, t), !h) {
|
|
162
|
-
let r =
|
|
230
|
+
let r = j(n, i, t, e);
|
|
163
231
|
e.order === 0 && c(r);
|
|
164
232
|
}
|
|
165
233
|
l((e) => e + 1);
|
|
@@ -232,7 +300,7 @@ function T({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
232
300
|
}
|
|
233
301
|
};
|
|
234
302
|
}
|
|
235
|
-
function
|
|
303
|
+
function oe(e, t, n) {
|
|
236
304
|
let [r, i] = v(null), [a, o] = v(null), [s, c] = v(null), l = f((e, t, n) => {
|
|
237
305
|
let r = "touches" in e ? e.touches[0] : e, i = e.currentTarget.getBoundingClientRect();
|
|
238
306
|
o({
|
|
@@ -301,7 +369,7 @@ function E(e, t, n) {
|
|
|
301
369
|
}
|
|
302
370
|
//#endregion
|
|
303
371
|
//#region src/ui/sprites.tsx
|
|
304
|
-
function
|
|
372
|
+
function se({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
|
|
305
373
|
let l = a(e), u = t ?? l?.type ?? "Jokers", d = o[u], f = r(u), p = l?.pos ?? f.pos, m = i;
|
|
306
374
|
[
|
|
307
375
|
"Jokers",
|
|
@@ -327,7 +395,7 @@ function D({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
|
|
|
327
395
|
...c
|
|
328
396
|
} });
|
|
329
397
|
}
|
|
330
|
-
var
|
|
398
|
+
var ce = [
|
|
331
399
|
"White",
|
|
332
400
|
"Red",
|
|
333
401
|
"Green",
|
|
@@ -337,8 +405,8 @@ var O = [
|
|
|
337
405
|
"Orange",
|
|
338
406
|
"Gold"
|
|
339
407
|
];
|
|
340
|
-
function
|
|
341
|
-
let a =
|
|
408
|
+
function le({ stake: e, width: t = 29, height: r, style: i }) {
|
|
409
|
+
let a = ce.indexOf(e.replace(" Stake", "")), o = a >= 0 ? a : 0, s = o % 5, c = Math.floor(o / 5), l = r ?? t, u = t * 5, d = l * 2;
|
|
342
410
|
return /* @__PURE__ */ b("div", { style: {
|
|
343
411
|
width: t,
|
|
344
412
|
height: l,
|
|
@@ -351,33 +419,49 @@ function k({ stake: e, width: t = 29, height: r, style: i }) {
|
|
|
351
419
|
...i
|
|
352
420
|
} });
|
|
353
421
|
}
|
|
354
|
-
var
|
|
355
|
-
Red:
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
422
|
+
var ue = {
|
|
423
|
+
Red: {
|
|
424
|
+
x: 0,
|
|
425
|
+
y: 0
|
|
426
|
+
},
|
|
427
|
+
Blue: {
|
|
428
|
+
x: 0,
|
|
429
|
+
y: 2
|
|
430
|
+
},
|
|
431
|
+
Yellow: {
|
|
432
|
+
x: 1,
|
|
433
|
+
y: 2
|
|
434
|
+
},
|
|
435
|
+
Green: {
|
|
436
|
+
x: 2,
|
|
437
|
+
y: 2
|
|
438
|
+
},
|
|
439
|
+
Black: {
|
|
440
|
+
x: 3,
|
|
441
|
+
y: 2
|
|
442
|
+
},
|
|
443
|
+
Magic: {
|
|
444
|
+
x: 4,
|
|
445
|
+
y: 2
|
|
446
|
+
}
|
|
363
447
|
};
|
|
364
|
-
function
|
|
365
|
-
let
|
|
448
|
+
function de({ deck: e, width: t = 71, height: r, style: a }) {
|
|
449
|
+
let o = ue[e.replace(" Deck", "")] ?? ue.Red, s = r ?? t * 95 / 71, c = i.enhancers;
|
|
366
450
|
return /* @__PURE__ */ b("div", { style: {
|
|
367
451
|
width: t,
|
|
368
|
-
height:
|
|
452
|
+
height: s,
|
|
369
453
|
flexShrink: 0,
|
|
370
|
-
backgroundImage: `url(${n(
|
|
371
|
-
backgroundSize: `${
|
|
372
|
-
backgroundPosition:
|
|
454
|
+
backgroundImage: `url(${n(c.asset)})`,
|
|
455
|
+
backgroundSize: `${t * c.columns}px ${s * c.rows}px`,
|
|
456
|
+
backgroundPosition: `${-o.x * t}px ${-o.y * s}px`,
|
|
373
457
|
backgroundRepeat: "no-repeat",
|
|
374
458
|
imageRendering: "pixelated",
|
|
375
|
-
...
|
|
459
|
+
...a
|
|
376
460
|
} });
|
|
377
461
|
}
|
|
378
462
|
//#endregion
|
|
379
463
|
//#region src/ui/jimboText.tsx
|
|
380
|
-
function
|
|
464
|
+
function P({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1, letterSpacing: i, as: a = "span", className: o = "", style: s, children: c, ...l }) {
|
|
381
465
|
let u = `j-text--${t}`, d = `j-text--${e}`, f = n ? "" : "j-text--no-shadow", p = r ? "j-text--dance-container" : "", m = {};
|
|
382
466
|
i != null && (m.letterSpacing = i), s && Object.assign(m, s);
|
|
383
467
|
let h = c;
|
|
@@ -393,9 +477,245 @@ function j({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1,
|
|
|
393
477
|
});
|
|
394
478
|
}
|
|
395
479
|
//#endregion
|
|
480
|
+
//#region src/ui/JimboTextInput.tsx
|
|
481
|
+
var fe = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
|
|
482
|
+
return /* @__PURE__ */ b("input", {
|
|
483
|
+
ref: i,
|
|
484
|
+
className: `j-text-input ${e}`.trim(),
|
|
485
|
+
"aria-invalid": n ?? t,
|
|
486
|
+
"data-invalid": t,
|
|
487
|
+
...r
|
|
488
|
+
});
|
|
489
|
+
}), pe = {
|
|
490
|
+
orange: "#ff9800",
|
|
491
|
+
red: "#fe5148",
|
|
492
|
+
blue: "#0093ff",
|
|
493
|
+
green: "#429f79",
|
|
494
|
+
grey: "#a8bcbf",
|
|
495
|
+
tarot: "#9e74ce",
|
|
496
|
+
planet: "#00a7ca",
|
|
497
|
+
spectral: "#2e76fd"
|
|
498
|
+
}, me = {
|
|
499
|
+
orange: "#a05b00",
|
|
500
|
+
red: "#a02721",
|
|
501
|
+
blue: "#0057a1",
|
|
502
|
+
green: "#215f46",
|
|
503
|
+
grey: "#404c4e",
|
|
504
|
+
tarot: "#5e437e",
|
|
505
|
+
planet: "#00657c",
|
|
506
|
+
spectral: "#14449e"
|
|
507
|
+
}, F = {
|
|
508
|
+
MAX_TILT_X: .18,
|
|
509
|
+
MAX_TILT_Y: .22,
|
|
510
|
+
MAX_SHIFT: .02,
|
|
511
|
+
TWIST_Z: .05,
|
|
512
|
+
LERP_IN: 22,
|
|
513
|
+
LERP_OUT: 12
|
|
514
|
+
}, he = {
|
|
515
|
+
xs: {
|
|
516
|
+
w: 1.4,
|
|
517
|
+
h: .42,
|
|
518
|
+
depth: .12,
|
|
519
|
+
fontSize: .22
|
|
520
|
+
},
|
|
521
|
+
sm: {
|
|
522
|
+
w: 1.8,
|
|
523
|
+
h: .52,
|
|
524
|
+
depth: .14,
|
|
525
|
+
fontSize: .26
|
|
526
|
+
},
|
|
527
|
+
md: {
|
|
528
|
+
w: 2.4,
|
|
529
|
+
h: .66,
|
|
530
|
+
depth: .16,
|
|
531
|
+
fontSize: .3
|
|
532
|
+
},
|
|
533
|
+
lg: {
|
|
534
|
+
w: 3,
|
|
535
|
+
h: .82,
|
|
536
|
+
depth: .18,
|
|
537
|
+
fontSize: .36
|
|
538
|
+
}
|
|
539
|
+
}, I = d(function({ tone: e = "orange", size: t = "md", disabled: n = !1, fullWidth: r = !1, onClick: i, children: a, canvasWidth: o, canvasHeight: s, style: c, className: l = "" }) {
|
|
540
|
+
let u = he[t], d = r ? void 0 : o ?? Math.round(u.w * 60 + 40), f = s ?? Math.round(u.h * 60 + 40);
|
|
541
|
+
return /* @__PURE__ */ b("div", {
|
|
542
|
+
className: l,
|
|
543
|
+
style: {
|
|
544
|
+
...r ? {
|
|
545
|
+
width: "100%",
|
|
546
|
+
height: f
|
|
547
|
+
} : {
|
|
548
|
+
width: d,
|
|
549
|
+
height: f
|
|
550
|
+
},
|
|
551
|
+
...c
|
|
552
|
+
},
|
|
553
|
+
children: /* @__PURE__ */ x(S, {
|
|
554
|
+
orthographic: !0,
|
|
555
|
+
camera: {
|
|
556
|
+
position: [
|
|
557
|
+
0,
|
|
558
|
+
0,
|
|
559
|
+
5
|
|
560
|
+
],
|
|
561
|
+
zoom: 60
|
|
562
|
+
},
|
|
563
|
+
gl: {
|
|
564
|
+
alpha: !0,
|
|
565
|
+
antialias: !0
|
|
566
|
+
},
|
|
567
|
+
dpr: [1, 2],
|
|
568
|
+
children: [
|
|
569
|
+
/* @__PURE__ */ b("ambientLight", { intensity: .9 }),
|
|
570
|
+
/* @__PURE__ */ b("directionalLight", {
|
|
571
|
+
position: [
|
|
572
|
+
2,
|
|
573
|
+
3,
|
|
574
|
+
4
|
|
575
|
+
],
|
|
576
|
+
intensity: .7
|
|
577
|
+
}),
|
|
578
|
+
/* @__PURE__ */ b(ge, {
|
|
579
|
+
tone: e,
|
|
580
|
+
size: t,
|
|
581
|
+
disabled: n,
|
|
582
|
+
onClick: i,
|
|
583
|
+
children: typeof a == "string" ? a : String(a ?? "")
|
|
584
|
+
})
|
|
585
|
+
]
|
|
586
|
+
})
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
function ge({ tone: e, size: t, disabled: r, onClick: i, children: a }) {
|
|
590
|
+
let o = _(null), s = _({
|
|
591
|
+
rx: 0,
|
|
592
|
+
ry: 0,
|
|
593
|
+
rz: 0,
|
|
594
|
+
ox: 0,
|
|
595
|
+
oy: 0
|
|
596
|
+
}), [c, l] = v(!1), [u, d] = v(!1), f = he[t], p = g(() => new D.Color(r ? "#5a6669" : pe[e]), [e, r]), m = g(() => new D.Color(r ? "#2a3033" : me[e]), [e, r]), { posY: h, scale: y } = ee({
|
|
597
|
+
posY: u ? -.04 : c ? .06 : 0,
|
|
598
|
+
scale: u ? .96 : c ? 1.05 : 1,
|
|
599
|
+
config: {
|
|
600
|
+
tension: 380,
|
|
601
|
+
friction: 18
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
C((e, t) => {
|
|
605
|
+
let n = o.current;
|
|
606
|
+
if (!n) return;
|
|
607
|
+
let r = s.current, i = e.clock.elapsedTime, a = c ? 0 : Math.sin(i * .9) * .006, l = c ? 0 : Math.sin(i * .73 + 1.3) * .012, u = c ? 0 : Math.cos(i * .61 + .5) * .01, d = c ? F.LERP_IN : F.LERP_OUT, f = 1 - Math.exp(-d * t);
|
|
608
|
+
n.rotation.x = D.MathUtils.lerp(n.rotation.x, r.rx + l, f), n.rotation.y = D.MathUtils.lerp(n.rotation.y, r.ry + u, f), n.rotation.z = D.MathUtils.lerp(n.rotation.z, r.rz, f), n.position.x = D.MathUtils.lerp(n.position.x, r.ox, f), n.position.y = D.MathUtils.lerp(n.position.y, r.oy + a, f);
|
|
609
|
+
});
|
|
610
|
+
let S = (e) => {
|
|
611
|
+
e.stopPropagation();
|
|
612
|
+
let t = e.uv;
|
|
613
|
+
if (!t) return;
|
|
614
|
+
let n = D.MathUtils.clamp((t.x - .5) * 2, -1, 1), r = D.MathUtils.clamp((t.y - .5) * 2, -1, 1);
|
|
615
|
+
s.current.ry = -n * F.MAX_TILT_Y, s.current.rx = r * F.MAX_TILT_X, s.current.rz = -n * r * F.TWIST_Z, s.current.ox = n * F.MAX_SHIFT, s.current.oy = -r * F.MAX_SHIFT * .65;
|
|
616
|
+
}, O = () => {
|
|
617
|
+
s.current = {
|
|
618
|
+
rx: 0,
|
|
619
|
+
ry: 0,
|
|
620
|
+
rz: 0,
|
|
621
|
+
ox: 0,
|
|
622
|
+
oy: 0
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
return /* @__PURE__ */ x(w.group, {
|
|
626
|
+
"position-y": h,
|
|
627
|
+
scale: y,
|
|
628
|
+
children: [/* @__PURE__ */ x("mesh", {
|
|
629
|
+
visible: !1,
|
|
630
|
+
onClick: (e) => {
|
|
631
|
+
e.stopPropagation(), r || i?.();
|
|
632
|
+
},
|
|
633
|
+
onPointerDown: (e) => {
|
|
634
|
+
e.stopPropagation(), r || d(!0);
|
|
635
|
+
},
|
|
636
|
+
onPointerUp: (e) => {
|
|
637
|
+
e.stopPropagation(), d(!1);
|
|
638
|
+
},
|
|
639
|
+
onPointerMove: S,
|
|
640
|
+
onPointerEnter: (e) => {
|
|
641
|
+
e.stopPropagation(), l(!0), r || (document.body.style.cursor = "pointer");
|
|
642
|
+
},
|
|
643
|
+
onPointerLeave: (e) => {
|
|
644
|
+
e.stopPropagation(), l(!1), d(!1), O(), document.body.style.cursor = "auto";
|
|
645
|
+
},
|
|
646
|
+
children: [/* @__PURE__ */ b("boxGeometry", { args: [
|
|
647
|
+
f.w,
|
|
648
|
+
f.h,
|
|
649
|
+
f.depth * 2
|
|
650
|
+
] }), /* @__PURE__ */ b("meshBasicMaterial", {})]
|
|
651
|
+
}), /* @__PURE__ */ x("group", {
|
|
652
|
+
ref: o,
|
|
653
|
+
children: [
|
|
654
|
+
/* @__PURE__ */ b(T, {
|
|
655
|
+
args: [
|
|
656
|
+
f.w,
|
|
657
|
+
f.h,
|
|
658
|
+
f.depth * .4
|
|
659
|
+
],
|
|
660
|
+
radius: .12,
|
|
661
|
+
smoothness: 4,
|
|
662
|
+
position: [
|
|
663
|
+
0,
|
|
664
|
+
-.08,
|
|
665
|
+
-f.depth * .3
|
|
666
|
+
],
|
|
667
|
+
children: /* @__PURE__ */ b("meshStandardMaterial", {
|
|
668
|
+
color: m,
|
|
669
|
+
roughness: .9,
|
|
670
|
+
metalness: 0
|
|
671
|
+
})
|
|
672
|
+
}),
|
|
673
|
+
/* @__PURE__ */ b(T, {
|
|
674
|
+
args: [
|
|
675
|
+
f.w,
|
|
676
|
+
f.h,
|
|
677
|
+
f.depth
|
|
678
|
+
],
|
|
679
|
+
radius: .12,
|
|
680
|
+
smoothness: 4,
|
|
681
|
+
children: /* @__PURE__ */ b("meshStandardMaterial", {
|
|
682
|
+
color: p,
|
|
683
|
+
roughness: .7,
|
|
684
|
+
metalness: .05
|
|
685
|
+
})
|
|
686
|
+
}),
|
|
687
|
+
/* @__PURE__ */ b(E, {
|
|
688
|
+
position: [
|
|
689
|
+
0,
|
|
690
|
+
0,
|
|
691
|
+
f.depth / 2 + .001
|
|
692
|
+
],
|
|
693
|
+
fontSize: f.fontSize,
|
|
694
|
+
font: n("font"),
|
|
695
|
+
color: "#ffffff",
|
|
696
|
+
anchorX: "center",
|
|
697
|
+
anchorY: "middle",
|
|
698
|
+
maxWidth: f.w * .9,
|
|
699
|
+
textAlign: "center",
|
|
700
|
+
children: a
|
|
701
|
+
})
|
|
702
|
+
]
|
|
703
|
+
})]
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
function _e({ onClick: e, size: t = "sm" }) {
|
|
707
|
+
return /* @__PURE__ */ b(I, {
|
|
708
|
+
tone: "orange",
|
|
709
|
+
size: t,
|
|
710
|
+
fullWidth: !0,
|
|
711
|
+
onClick: e,
|
|
712
|
+
children: "Back"
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
//#endregion
|
|
396
716
|
//#region src/ui/panel.tsx
|
|
397
|
-
var
|
|
398
|
-
ref:
|
|
717
|
+
var ve = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ x("div", {
|
|
718
|
+
ref: ne(n),
|
|
399
719
|
className: `j-panel ${t}`,
|
|
400
720
|
style: a,
|
|
401
721
|
...o,
|
|
@@ -404,126 +724,137 @@ var ie = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack:
|
|
|
404
724
|
children: e
|
|
405
725
|
}), r && !i && /* @__PURE__ */ b("div", {
|
|
406
726
|
className: "j-panel__back",
|
|
407
|
-
children: /* @__PURE__ */ b(
|
|
727
|
+
children: /* @__PURE__ */ b(_e, { onClick: r })
|
|
408
728
|
})]
|
|
409
729
|
}));
|
|
410
|
-
|
|
411
|
-
var
|
|
730
|
+
ve.displayName = "JimboPanel";
|
|
731
|
+
var ye = d(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ b("div", {
|
|
412
732
|
className: `j-inner-panel ${t}`,
|
|
413
733
|
style: n,
|
|
414
734
|
...r,
|
|
415
735
|
children: e
|
|
416
736
|
}));
|
|
417
|
-
|
|
418
|
-
function
|
|
419
|
-
let l = t === "xs" ? "xs" : t === "sm" ? "sm" : t === "lg" ? "lg" : "md";
|
|
420
|
-
return /* @__PURE__ */ b("button", {
|
|
421
|
-
type: "button",
|
|
422
|
-
className: `j-btn j-btn--${e} j-btn--${t} ${n ? "j-btn--full" : ""} ${r ? "j-btn--disabled" : ""} ${o}`,
|
|
423
|
-
disabled: r,
|
|
424
|
-
onClick: i,
|
|
425
|
-
style: a,
|
|
426
|
-
...c,
|
|
427
|
-
children: /* @__PURE__ */ b("div", {
|
|
428
|
-
className: "j-btn__face",
|
|
429
|
-
children: /* @__PURE__ */ b(j, {
|
|
430
|
-
size: l,
|
|
431
|
-
children: s
|
|
432
|
-
})
|
|
433
|
-
})
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
function oe({ onClick: e }) {
|
|
437
|
-
return /* @__PURE__ */ b("div", {
|
|
438
|
-
className: "j-back-btn-wrap j-flex j-justify-center j-w-full",
|
|
439
|
-
children: /* @__PURE__ */ b(M, {
|
|
440
|
-
tone: "orange",
|
|
441
|
-
size: "sm",
|
|
442
|
-
fullWidth: !0,
|
|
443
|
-
onClick: e,
|
|
444
|
-
className: "j-back-btn",
|
|
445
|
-
children: "Back"
|
|
446
|
-
})
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
function se({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
|
|
737
|
+
ye.displayName = "JimboInnerPanel";
|
|
738
|
+
function be({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
|
|
450
739
|
return t ? /* @__PURE__ */ b("div", {
|
|
451
740
|
className: "j-modal-overlay",
|
|
452
|
-
children: /* @__PURE__ */ x(
|
|
741
|
+
children: /* @__PURE__ */ x(ve, {
|
|
453
742
|
onBack: a ? n : void 0,
|
|
454
743
|
className: `j-modal ${i ?? ""}`,
|
|
455
|
-
children: [r && /* @__PURE__ */ b(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
744
|
+
children: [r && /* @__PURE__ */ b("div", {
|
|
745
|
+
className: "j-modal__title-wrap",
|
|
746
|
+
"aria-hidden": !1,
|
|
747
|
+
children: /* @__PURE__ */ b(P, {
|
|
748
|
+
as: "h2",
|
|
749
|
+
size: "lg",
|
|
750
|
+
className: "j-modal__title",
|
|
751
|
+
children: r
|
|
752
|
+
})
|
|
460
753
|
}), e]
|
|
461
754
|
})
|
|
462
755
|
}) : null;
|
|
463
756
|
}
|
|
464
757
|
//#endregion
|
|
465
758
|
//#region src/ui/jimboTabs.tsx
|
|
466
|
-
function
|
|
759
|
+
function xe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
|
|
467
760
|
return /* @__PURE__ */ b("div", {
|
|
468
761
|
className: `j-tabs ${r}`,
|
|
469
762
|
style: i,
|
|
470
|
-
children: e.map((e) => /* @__PURE__ */ b(le, {
|
|
471
|
-
label: e.label,
|
|
472
|
-
active: t === e.id,
|
|
473
|
-
onClick: () => n(e.id)
|
|
474
|
-
}, e.id))
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
function le({ label: e, active: t, onClick: n }) {
|
|
478
|
-
return /* @__PURE__ */ x("div", {
|
|
479
|
-
className: "j-tab",
|
|
480
|
-
"data-active": t,
|
|
481
|
-
children: [/* @__PURE__ */ b("div", {
|
|
482
|
-
className: "j-tab__indicator",
|
|
483
|
-
"data-active": t,
|
|
484
|
-
"aria-hidden": !0,
|
|
485
|
-
children: /* @__PURE__ */ b("svg", {
|
|
486
|
-
width: 14,
|
|
487
|
-
height: 10,
|
|
488
|
-
viewBox: "0 0 14 10",
|
|
489
|
-
children: /* @__PURE__ */ b("polygon", { points: "7,10 0,0 14,0" })
|
|
490
|
-
})
|
|
491
|
-
}), /* @__PURE__ */ b("button", {
|
|
492
|
-
type: "button",
|
|
493
|
-
className: "j-tab__btn",
|
|
494
|
-
"data-active": t,
|
|
495
|
-
onClick: n,
|
|
496
|
-
children: /* @__PURE__ */ b(j, {
|
|
497
|
-
size: "sm",
|
|
498
|
-
tone: "default",
|
|
499
|
-
children: e
|
|
500
|
-
})
|
|
501
|
-
})]
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
function ue({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
|
|
505
|
-
return /* @__PURE__ */ b("div", {
|
|
506
|
-
className: `j-vtabs ${r}`,
|
|
507
|
-
style: i,
|
|
508
763
|
children: e.map((e) => {
|
|
509
764
|
let r = t === e.id;
|
|
510
|
-
return /* @__PURE__ */
|
|
511
|
-
|
|
512
|
-
className: "j-vtab",
|
|
765
|
+
return /* @__PURE__ */ x("div", {
|
|
766
|
+
className: "j-tab",
|
|
513
767
|
"data-active": r,
|
|
514
|
-
|
|
515
|
-
|
|
768
|
+
children: [/* @__PURE__ */ b("div", {
|
|
769
|
+
className: "j-tab__indicator",
|
|
770
|
+
"data-active": r,
|
|
771
|
+
"aria-hidden": !0,
|
|
772
|
+
children: /* @__PURE__ */ b("svg", {
|
|
773
|
+
width: 14,
|
|
774
|
+
height: 10,
|
|
775
|
+
viewBox: "0 0 14 10",
|
|
776
|
+
children: /* @__PURE__ */ b("polygon", { points: "7,10 0,0 14,0" })
|
|
777
|
+
})
|
|
778
|
+
}), /* @__PURE__ */ b(I, {
|
|
779
|
+
tone: "red",
|
|
516
780
|
size: "sm",
|
|
517
|
-
|
|
781
|
+
onClick: () => n(e.id),
|
|
518
782
|
children: e.label
|
|
519
|
-
})
|
|
783
|
+
})]
|
|
520
784
|
}, e.id);
|
|
521
785
|
})
|
|
522
786
|
});
|
|
523
787
|
}
|
|
524
788
|
//#endregion
|
|
789
|
+
//#region src/ui/JimboIconButton.tsx
|
|
790
|
+
var L = e, Se = {
|
|
791
|
+
xs: 22,
|
|
792
|
+
sm: 26,
|
|
793
|
+
md: 30
|
|
794
|
+
}, Ce = {
|
|
795
|
+
default: {
|
|
796
|
+
rest: L.DARKEST,
|
|
797
|
+
hover: L.DARK_GREY,
|
|
798
|
+
border: L.PANEL_EDGE
|
|
799
|
+
},
|
|
800
|
+
destructive: {
|
|
801
|
+
rest: L.RED,
|
|
802
|
+
hover: L.ORANGE,
|
|
803
|
+
border: L.BLACK
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
function we({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label": i, disabled: a = !1, size: o = "md", tone: s = "default", children: c }) {
|
|
807
|
+
let [l, u] = v(!1), d = Se[o], f = Ce[s], p = s === "destructive" ? 2 : 1, m = s === "destructive" ? `inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 ${L.BLACK}` : void 0;
|
|
808
|
+
return /* @__PURE__ */ b("button", {
|
|
809
|
+
"aria-label": i ?? r,
|
|
810
|
+
disabled: a,
|
|
811
|
+
onClick: (t) => !a && e?.(t),
|
|
812
|
+
onMouseDown: t,
|
|
813
|
+
onTouchStart: n,
|
|
814
|
+
onMouseEnter: () => u(!0),
|
|
815
|
+
onMouseLeave: () => u(!1),
|
|
816
|
+
style: {
|
|
817
|
+
width: d,
|
|
818
|
+
height: d,
|
|
819
|
+
display: "inline-flex",
|
|
820
|
+
alignItems: "center",
|
|
821
|
+
justifyContent: "center",
|
|
822
|
+
background: l && !a ? f.hover : f.rest,
|
|
823
|
+
color: L.WHITE,
|
|
824
|
+
border: `${p}px solid ${f.border}`,
|
|
825
|
+
borderRadius: 4,
|
|
826
|
+
boxShadow: m,
|
|
827
|
+
cursor: a ? "not-allowed" : "pointer",
|
|
828
|
+
opacity: a ? .55 : 1,
|
|
829
|
+
padding: 0,
|
|
830
|
+
fontSize: 14,
|
|
831
|
+
lineHeight: 1,
|
|
832
|
+
transition: "background 80ms ease"
|
|
833
|
+
},
|
|
834
|
+
title: r,
|
|
835
|
+
type: "button",
|
|
836
|
+
children: c
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region src/ui/JimboInlineEdit.tsx
|
|
841
|
+
var Te = s.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1, className: r = "", ...i }, a) {
|
|
842
|
+
return /* @__PURE__ */ b("input", {
|
|
843
|
+
ref: a,
|
|
844
|
+
type: "text",
|
|
845
|
+
className: [
|
|
846
|
+
"j-inline-edit",
|
|
847
|
+
`j-inline-edit--${e}`,
|
|
848
|
+
`j-inline-edit--${t}`,
|
|
849
|
+
n ? "j-inline-edit--dim" : null,
|
|
850
|
+
r || null
|
|
851
|
+
].filter(Boolean).join(" "),
|
|
852
|
+
...i
|
|
853
|
+
});
|
|
854
|
+
});
|
|
855
|
+
//#endregion
|
|
525
856
|
//#region src/ui/JimboBadge.tsx
|
|
526
|
-
function
|
|
857
|
+
function Ee({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
|
|
527
858
|
return /* @__PURE__ */ b("span", {
|
|
528
859
|
className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
|
|
529
860
|
...i,
|
|
@@ -532,12 +863,12 @@ function de({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i
|
|
|
532
863
|
}
|
|
533
864
|
//#endregion
|
|
534
865
|
//#region src/ui/jimboFlankNav.tsx
|
|
535
|
-
function
|
|
866
|
+
function De({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
|
|
536
867
|
return /* @__PURE__ */ x("div", {
|
|
537
868
|
className: `j-flank ${s}`,
|
|
538
869
|
style: c,
|
|
539
870
|
children: [
|
|
540
|
-
/* @__PURE__ */ b(
|
|
871
|
+
/* @__PURE__ */ b(Oe, {
|
|
541
872
|
direction: "left",
|
|
542
873
|
onClick: e,
|
|
543
874
|
disabled: !n,
|
|
@@ -547,7 +878,7 @@ function fe({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
|
|
|
547
878
|
className: "j-flank__content",
|
|
548
879
|
children: o
|
|
549
880
|
}),
|
|
550
|
-
/* @__PURE__ */ b(
|
|
881
|
+
/* @__PURE__ */ b(Oe, {
|
|
551
882
|
direction: "right",
|
|
552
883
|
onClick: t,
|
|
553
884
|
disabled: !r,
|
|
@@ -556,7 +887,7 @@ function fe({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
|
|
|
556
887
|
]
|
|
557
888
|
});
|
|
558
889
|
}
|
|
559
|
-
function
|
|
890
|
+
function Oe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
560
891
|
let [i, a] = s.useState(!1);
|
|
561
892
|
return /* @__PURE__ */ b("button", {
|
|
562
893
|
type: "button",
|
|
@@ -571,10 +902,10 @@ function pe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
|
571
902
|
onMouseLeave: () => a(!1),
|
|
572
903
|
onTouchStart: () => !n && a(!0),
|
|
573
904
|
onTouchEnd: () => a(!1),
|
|
574
|
-
children: /* @__PURE__ */ b(
|
|
905
|
+
children: /* @__PURE__ */ b(ke, { direction: e })
|
|
575
906
|
});
|
|
576
907
|
}
|
|
577
|
-
function
|
|
908
|
+
function ke({ direction: e }) {
|
|
578
909
|
return /* @__PURE__ */ b("svg", {
|
|
579
910
|
width: 28,
|
|
580
911
|
height: 28,
|
|
@@ -589,39 +920,84 @@ function me({ direction: e }) {
|
|
|
589
920
|
});
|
|
590
921
|
}
|
|
591
922
|
//#endregion
|
|
592
|
-
//#region src/ui/
|
|
593
|
-
function
|
|
594
|
-
let
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
923
|
+
//#region src/ui/JimboSeedCopyChip.tsx
|
|
924
|
+
function Ae({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLabel: r = "Copied!", copiedDurationMs: i = 2e3, onCopy: a, className: o = "", style: s }) {
|
|
925
|
+
let [c, l] = v(!1), u = e.trim(), d = !n && u.length > 0;
|
|
926
|
+
return /* @__PURE__ */ x("button", {
|
|
927
|
+
type: "button",
|
|
928
|
+
className: ["j-seed-copy", o].filter(Boolean).join(" "),
|
|
929
|
+
style: s,
|
|
930
|
+
onClick: async () => {
|
|
931
|
+
if (d) {
|
|
932
|
+
try {
|
|
933
|
+
typeof navigator < "u" && navigator.clipboard?.writeText && await navigator.clipboard.writeText(u);
|
|
934
|
+
} catch {}
|
|
935
|
+
l(!0), a?.(u), window.setTimeout(() => l(!1), i);
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
disabled: !d,
|
|
939
|
+
"data-copied": c,
|
|
940
|
+
"aria-label": d ? `Copy seed ${u}` : "Seed unavailable",
|
|
941
|
+
children: [/* @__PURE__ */ b("span", {
|
|
942
|
+
className: "j-seed-copy__icon",
|
|
943
|
+
"aria-hidden": !0,
|
|
944
|
+
children: b(c ? O : k, { size: 18 })
|
|
945
|
+
}), /* @__PURE__ */ b("span", {
|
|
946
|
+
className: "j-seed-copy__text",
|
|
947
|
+
children: c ? r : u || t
|
|
948
|
+
})]
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region src/ui/jimboApp.tsx
|
|
953
|
+
function je({ children: e, fluid: t, className: n = "", ...r }) {
|
|
954
|
+
return /* @__PURE__ */ b("div", {
|
|
955
|
+
className: `j-app${t ? " j-app--fluid" : ""} ${n}`.trim(),
|
|
956
|
+
...r,
|
|
957
|
+
children: e
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
function Me({ children: e, className: t = "", ...n }) {
|
|
961
|
+
return /* @__PURE__ */ b("div", {
|
|
962
|
+
className: `j-app__scroll ${t}`,
|
|
963
|
+
...n,
|
|
964
|
+
children: e
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
function Ne({ children: e, className: t = "", ...n }) {
|
|
968
|
+
return /* @__PURE__ */ b("div", {
|
|
969
|
+
className: `j-app__footer ${t}`,
|
|
970
|
+
...n,
|
|
971
|
+
children: e
|
|
601
972
|
});
|
|
602
973
|
}
|
|
603
974
|
//#endregion
|
|
604
975
|
//#region src/ui/JimboToggleList.tsx
|
|
605
|
-
function
|
|
606
|
-
return /* @__PURE__ */ b(
|
|
607
|
-
className:
|
|
976
|
+
function Pe({ items: e, onToggle: t, title: n, variant: r = "row" }) {
|
|
977
|
+
return /* @__PURE__ */ b(ve, { children: /* @__PURE__ */ x("div", {
|
|
978
|
+
className: `j-toggle-list j-toggle-list--${r}`,
|
|
608
979
|
children: [n && /* @__PURE__ */ b("div", {
|
|
609
980
|
className: "j-toggle-list__title",
|
|
610
981
|
children: n
|
|
611
982
|
}), e.map((e) => /* @__PURE__ */ x("button", {
|
|
612
983
|
type: "button",
|
|
613
984
|
className: "j-toggle-item",
|
|
985
|
+
"data-variant": r,
|
|
986
|
+
"aria-pressed": e.on,
|
|
614
987
|
onClick: () => t(e.id),
|
|
615
|
-
children: [/* @__PURE__ */ b("
|
|
988
|
+
children: [/* @__PURE__ */ b("span", {
|
|
989
|
+
className: "j-toggle-item__label",
|
|
990
|
+
children: e.label
|
|
991
|
+
}), /* @__PURE__ */ b("span", {
|
|
616
992
|
className: "j-toggle-check",
|
|
617
993
|
"data-on": e.on
|
|
618
|
-
})
|
|
994
|
+
})]
|
|
619
995
|
}, e.id))]
|
|
620
996
|
}) });
|
|
621
997
|
}
|
|
622
998
|
//#endregion
|
|
623
999
|
//#region src/ui/jimboFilterBar.tsx
|
|
624
|
-
function
|
|
1000
|
+
function Fe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
|
|
625
1001
|
return /* @__PURE__ */ x("div", {
|
|
626
1002
|
className: `j-filter-bar ${c}`,
|
|
627
1003
|
style: l,
|
|
@@ -629,7 +1005,7 @@ function _e({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
629
1005
|
className: "j-filter-bar__field",
|
|
630
1006
|
children: [/* @__PURE__ */ b("div", {
|
|
631
1007
|
className: "j-filter-bar__pill",
|
|
632
|
-
children: /* @__PURE__ */ b(
|
|
1008
|
+
children: /* @__PURE__ */ b(P, {
|
|
633
1009
|
size: "xs",
|
|
634
1010
|
children: r
|
|
635
1011
|
})
|
|
@@ -637,7 +1013,7 @@ function _e({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
637
1013
|
className: "j-relative",
|
|
638
1014
|
children: [/* @__PURE__ */ b("div", {
|
|
639
1015
|
className: "j-filter-bar__search-icon",
|
|
640
|
-
children: /* @__PURE__ */ b(
|
|
1016
|
+
children: /* @__PURE__ */ b(Ie, {})
|
|
641
1017
|
}), /* @__PURE__ */ b("input", {
|
|
642
1018
|
type: "text",
|
|
643
1019
|
value: e ?? "",
|
|
@@ -650,7 +1026,7 @@ function _e({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
650
1026
|
className: "j-filter-bar__field",
|
|
651
1027
|
children: [/* @__PURE__ */ b("div", {
|
|
652
1028
|
className: "j-filter-bar__pill",
|
|
653
|
-
children: /* @__PURE__ */ b(
|
|
1029
|
+
children: /* @__PURE__ */ b(P, {
|
|
654
1030
|
size: "xs",
|
|
655
1031
|
children: o
|
|
656
1032
|
})
|
|
@@ -666,13 +1042,13 @@ function _e({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
666
1042
|
}, e.value))
|
|
667
1043
|
}), /* @__PURE__ */ b("div", {
|
|
668
1044
|
className: "j-filter-bar__sort-icon",
|
|
669
|
-
children: /* @__PURE__ */ b(
|
|
1045
|
+
children: /* @__PURE__ */ b(Le, {})
|
|
670
1046
|
})]
|
|
671
1047
|
})]
|
|
672
1048
|
}) : null]
|
|
673
1049
|
});
|
|
674
1050
|
}
|
|
675
|
-
function
|
|
1051
|
+
function Ie() {
|
|
676
1052
|
return /* @__PURE__ */ x("svg", {
|
|
677
1053
|
width: 24,
|
|
678
1054
|
height: 24,
|
|
@@ -695,7 +1071,7 @@ function ve() {
|
|
|
695
1071
|
})]
|
|
696
1072
|
});
|
|
697
1073
|
}
|
|
698
|
-
function
|
|
1074
|
+
function Le() {
|
|
699
1075
|
return /* @__PURE__ */ x("svg", {
|
|
700
1076
|
width: 20,
|
|
701
1077
|
height: 20,
|
|
@@ -715,8 +1091,22 @@ function ye() {
|
|
|
715
1091
|
});
|
|
716
1092
|
}
|
|
717
1093
|
//#endregion
|
|
718
|
-
//#region src/ui/
|
|
719
|
-
function
|
|
1094
|
+
//#region src/ui/jimboLink.tsx
|
|
1095
|
+
function Re({ external: e = !0, className: t = "", children: n, ...r }) {
|
|
1096
|
+
let i = e ? {
|
|
1097
|
+
target: "_blank",
|
|
1098
|
+
rel: "noopener noreferrer"
|
|
1099
|
+
} : {};
|
|
1100
|
+
return /* @__PURE__ */ b("a", {
|
|
1101
|
+
className: `j-link ${t}`.trim(),
|
|
1102
|
+
...i,
|
|
1103
|
+
...r,
|
|
1104
|
+
children: n
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region src/ui/JimboBalatroFooter.tsx
|
|
1109
|
+
function ze({ hidden: e = !1, className: t = "", children: n }) {
|
|
720
1110
|
return e ? null : /* @__PURE__ */ b("div", {
|
|
721
1111
|
className: ["j-footer", t].filter(Boolean).join(" "),
|
|
722
1112
|
children: /* @__PURE__ */ b("div", {
|
|
@@ -732,11 +1122,8 @@ function be({ hidden: e = !1, className: t = "", children: n }) {
|
|
|
732
1122
|
className: "j-footer__chunk j-footer__chunk--credit",
|
|
733
1123
|
children: [
|
|
734
1124
|
"Made for the ",
|
|
735
|
-
/* @__PURE__ */ b(
|
|
736
|
-
className: "j-footer__link",
|
|
1125
|
+
/* @__PURE__ */ b(Re, {
|
|
737
1126
|
href: "https://playbalatro.com",
|
|
738
|
-
target: "_blank",
|
|
739
|
-
rel: "noopener noreferrer",
|
|
740
1127
|
children: "Balatro"
|
|
741
1128
|
}),
|
|
742
1129
|
" community"
|
|
@@ -753,9 +1140,9 @@ function be({ hidden: e = !1, className: t = "", children: n }) {
|
|
|
753
1140
|
}
|
|
754
1141
|
//#endregion
|
|
755
1142
|
//#region src/ui/jimboBackground.tsx
|
|
756
|
-
function
|
|
1143
|
+
function Be({ hideFooter: e = !1, ...t }) {
|
|
757
1144
|
return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("canvas", {
|
|
758
|
-
ref:
|
|
1145
|
+
ref: re(t),
|
|
759
1146
|
"aria-hidden": !0,
|
|
760
1147
|
style: {
|
|
761
1148
|
position: "fixed",
|
|
@@ -765,104 +1152,99 @@ function xe() {
|
|
|
765
1152
|
zIndex: -10,
|
|
766
1153
|
pointerEvents: "none"
|
|
767
1154
|
}
|
|
768
|
-
}), /* @__PURE__ */ b(
|
|
1155
|
+
}), !e && /* @__PURE__ */ b(ze, {})] });
|
|
769
1156
|
}
|
|
770
1157
|
//#endregion
|
|
771
1158
|
//#region src/ui/jimboTooltip.tsx
|
|
772
|
-
function
|
|
1159
|
+
function Ve(e, t) {
|
|
773
1160
|
typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
|
|
774
1161
|
}
|
|
775
|
-
function
|
|
776
|
-
let { visible:
|
|
777
|
-
mode:
|
|
778
|
-
placement:
|
|
779
|
-
delay:
|
|
780
|
-
disabled:
|
|
781
|
-
}),
|
|
782
|
-
|
|
783
|
-
}, [
|
|
784
|
-
return /* @__PURE__ */ x(y, { children: [s.cloneElement(
|
|
785
|
-
ref:
|
|
1162
|
+
function He({ content: e, badge: t, variant: n = "dark", children: r, mode: i = "snap", placement: a = "auto", delay: o = 80, maxWidth: c = 280, disabled: l = !1 }) {
|
|
1163
|
+
let { visible: u, pos: d, targetRef: p, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } = ie({
|
|
1164
|
+
mode: i,
|
|
1165
|
+
placement: a,
|
|
1166
|
+
delay: o,
|
|
1167
|
+
disabled: l
|
|
1168
|
+
}), v = s.Children.only(r), S = v.ref, C = f((e) => {
|
|
1169
|
+
p.current = e, Ve(S, e);
|
|
1170
|
+
}, [S, p]);
|
|
1171
|
+
return /* @__PURE__ */ x(y, { children: [s.cloneElement(v, {
|
|
1172
|
+
ref: C,
|
|
786
1173
|
onMouseEnter: (e) => {
|
|
787
|
-
|
|
1174
|
+
h(), v.props.onMouseEnter?.(e);
|
|
788
1175
|
},
|
|
789
1176
|
onMouseLeave: (e) => {
|
|
790
|
-
|
|
1177
|
+
g(), v.props.onMouseLeave?.(e);
|
|
791
1178
|
},
|
|
792
1179
|
onFocus: (e) => {
|
|
793
|
-
|
|
1180
|
+
h(), v.props.onFocus?.(e);
|
|
794
1181
|
},
|
|
795
1182
|
onBlur: (e) => {
|
|
796
|
-
|
|
1183
|
+
g(), v.props.onBlur?.(e);
|
|
797
1184
|
},
|
|
798
1185
|
onMouseMove: (e) => {
|
|
799
|
-
|
|
1186
|
+
_(e), v.props.onMouseMove?.(e);
|
|
800
1187
|
}
|
|
801
|
-
}),
|
|
802
|
-
ref:
|
|
1188
|
+
}), u ? /* @__PURE__ */ x("div", {
|
|
1189
|
+
ref: m,
|
|
803
1190
|
role: "tooltip",
|
|
804
|
-
className:
|
|
1191
|
+
className: `j-tooltip j-tooltip--${n}`,
|
|
805
1192
|
style: {
|
|
806
|
-
left:
|
|
807
|
-
top:
|
|
808
|
-
maxWidth:
|
|
809
|
-
opacity: +!!
|
|
1193
|
+
left: d?.left ?? -9999,
|
|
1194
|
+
top: d?.top ?? -9999,
|
|
1195
|
+
maxWidth: c,
|
|
1196
|
+
opacity: +!!d
|
|
810
1197
|
},
|
|
811
|
-
children:
|
|
1198
|
+
children: [/* @__PURE__ */ b("div", {
|
|
1199
|
+
className: "j-tooltip__body",
|
|
1200
|
+
children: e
|
|
1201
|
+
}), t && /* @__PURE__ */ b("div", {
|
|
1202
|
+
className: `j-tooltip__badge j-bg--${t.tone}`,
|
|
1203
|
+
children: t.label
|
|
1204
|
+
})]
|
|
812
1205
|
}) : null] });
|
|
813
1206
|
}
|
|
814
1207
|
//#endregion
|
|
1208
|
+
//#region src/ui/JimboCopyButton.tsx
|
|
1209
|
+
function Ue({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r = "blue", size: i = "sm", copiedDurationMs: a = 1500, onCopy: o, className: s }) {
|
|
1210
|
+
let [c, l] = v(!1);
|
|
1211
|
+
function u() {
|
|
1212
|
+
navigator.clipboard.writeText(e).then(() => {
|
|
1213
|
+
l(!0), o?.(), window.setTimeout(() => l(!1), a);
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
return /* @__PURE__ */ b(I, {
|
|
1217
|
+
tone: r,
|
|
1218
|
+
size: i,
|
|
1219
|
+
onClick: u,
|
|
1220
|
+
className: s,
|
|
1221
|
+
children: c ? n : t
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
//#endregion
|
|
815
1225
|
//#region src/ui/codeBlock.tsx
|
|
816
|
-
function
|
|
817
|
-
let
|
|
1226
|
+
function We({ code: e, language: t, filename: n, className: r = "" }) {
|
|
1227
|
+
let i = n?.toLowerCase().endsWith(".jaml") ? "JAML" : t?.toLowerCase() === "yaml" ? void 0 : t;
|
|
818
1228
|
return /* @__PURE__ */ x("div", {
|
|
819
1229
|
className: `j-code-block ${r}`,
|
|
820
1230
|
children: [/* @__PURE__ */ x("div", {
|
|
821
1231
|
className: "j-code-block__header",
|
|
822
1232
|
children: [/* @__PURE__ */ x("div", {
|
|
823
1233
|
className: "j-code-block__meta",
|
|
824
|
-
children: [n && /* @__PURE__ */ b(
|
|
1234
|
+
children: [n && /* @__PURE__ */ b(P, {
|
|
1235
|
+
size: "xs",
|
|
1236
|
+
tone: "grey",
|
|
825
1237
|
className: "j-code-block__filename",
|
|
826
1238
|
children: n
|
|
827
|
-
}),
|
|
1239
|
+
}), i && /* @__PURE__ */ b("span", {
|
|
828
1240
|
className: "j-code-block__lang",
|
|
829
|
-
children:
|
|
1241
|
+
children: /* @__PURE__ */ b(P, {
|
|
1242
|
+
size: "micro",
|
|
1243
|
+
tone: "blue",
|
|
1244
|
+
children: i
|
|
1245
|
+
})
|
|
830
1246
|
})]
|
|
831
|
-
}), /* @__PURE__ */ b(
|
|
832
|
-
onClick: () => {
|
|
833
|
-
navigator.clipboard.writeText(e), a(!0), setTimeout(() => a(!1), 2e3);
|
|
834
|
-
},
|
|
835
|
-
title: "Copy",
|
|
836
|
-
className: "j-code-block__copy",
|
|
837
|
-
"data-copied": i,
|
|
838
|
-
children: i ? /* @__PURE__ */ b("svg", {
|
|
839
|
-
width: "14",
|
|
840
|
-
height: "14",
|
|
841
|
-
viewBox: "0 0 24 24",
|
|
842
|
-
fill: "none",
|
|
843
|
-
stroke: "currentColor",
|
|
844
|
-
strokeWidth: "2.5",
|
|
845
|
-
strokeLinecap: "round",
|
|
846
|
-
strokeLinejoin: "round",
|
|
847
|
-
children: /* @__PURE__ */ b("polyline", { points: "20 6 9 17 4 12" })
|
|
848
|
-
}) : /* @__PURE__ */ x("svg", {
|
|
849
|
-
width: "14",
|
|
850
|
-
height: "14",
|
|
851
|
-
viewBox: "0 0 24 24",
|
|
852
|
-
fill: "none",
|
|
853
|
-
stroke: "currentColor",
|
|
854
|
-
strokeWidth: "2",
|
|
855
|
-
strokeLinecap: "round",
|
|
856
|
-
strokeLinejoin: "round",
|
|
857
|
-
children: [/* @__PURE__ */ b("rect", {
|
|
858
|
-
x: "9",
|
|
859
|
-
y: "9",
|
|
860
|
-
width: "13",
|
|
861
|
-
height: "13",
|
|
862
|
-
rx: "2"
|
|
863
|
-
}), /* @__PURE__ */ b("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })]
|
|
864
|
-
})
|
|
865
|
-
})]
|
|
1247
|
+
}), /* @__PURE__ */ b(Ue, { value: e })]
|
|
866
1248
|
}), /* @__PURE__ */ b("pre", {
|
|
867
1249
|
className: "j-code-block__pre",
|
|
868
1250
|
children: /* @__PURE__ */ b("code", { children: e })
|
|
@@ -870,31 +1252,8 @@ function we({ code: e, language: t, filename: n, className: r = "" }) {
|
|
|
870
1252
|
});
|
|
871
1253
|
}
|
|
872
1254
|
//#endregion
|
|
873
|
-
//#region src/ui/jimboApp.tsx
|
|
874
|
-
function Te({ children: e, fluid: t, className: n = "", ...r }) {
|
|
875
|
-
return /* @__PURE__ */ b("div", {
|
|
876
|
-
className: `j-app${t ? " j-app--fluid" : ""} ${n}`.trim(),
|
|
877
|
-
...r,
|
|
878
|
-
children: e
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
function Ee({ children: e, className: t = "", ...n }) {
|
|
882
|
-
return /* @__PURE__ */ b("div", {
|
|
883
|
-
className: `j-app__scroll ${t}`,
|
|
884
|
-
...n,
|
|
885
|
-
children: e
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
function De({ children: e, className: t = "", ...n }) {
|
|
889
|
-
return /* @__PURE__ */ b("div", {
|
|
890
|
-
className: `j-app__footer ${t}`,
|
|
891
|
-
...n,
|
|
892
|
-
children: e
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
//#endregion
|
|
896
1255
|
//#region src/ui/jimboSectionHeader.tsx
|
|
897
|
-
function
|
|
1256
|
+
function Ge({ label: e, tone: t = "blue", className: n = "" }) {
|
|
898
1257
|
return /* @__PURE__ */ x("div", {
|
|
899
1258
|
className: `j-section-header ${n}`,
|
|
900
1259
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -905,7 +1264,7 @@ function Oe({ label: e, tone: t = "blue", className: n = "" }) {
|
|
|
905
1264
|
}
|
|
906
1265
|
//#endregion
|
|
907
1266
|
//#region src/ui/jimboInfoCard.tsx
|
|
908
|
-
function
|
|
1267
|
+
function Ke({ tone: e, children: t, className: n = "", ...r }) {
|
|
909
1268
|
return /* @__PURE__ */ b("div", {
|
|
910
1269
|
className: `j-info-card ${e ? `j-border--${e}` : ""} ${n}`,
|
|
911
1270
|
style: e ? { borderColor: void 0 } : void 0,
|
|
@@ -913,25 +1272,25 @@ function ke({ tone: e, children: t, className: n = "", ...r }) {
|
|
|
913
1272
|
children: t
|
|
914
1273
|
});
|
|
915
1274
|
}
|
|
916
|
-
function
|
|
1275
|
+
function qe({ children: e, className: t = "" }) {
|
|
917
1276
|
return /* @__PURE__ */ b("div", {
|
|
918
1277
|
className: `j-info-card__body ${t}`,
|
|
919
1278
|
children: e
|
|
920
1279
|
});
|
|
921
1280
|
}
|
|
922
|
-
function
|
|
1281
|
+
function Je({ children: e, className: t = "" }) {
|
|
923
1282
|
return /* @__PURE__ */ b("div", {
|
|
924
1283
|
className: `j-info-card__title ${t}`,
|
|
925
1284
|
children: e
|
|
926
1285
|
});
|
|
927
1286
|
}
|
|
928
|
-
function
|
|
1287
|
+
function Ye({ children: e, className: t = "" }) {
|
|
929
1288
|
return /* @__PURE__ */ b("div", {
|
|
930
1289
|
className: `j-info-card__sub ${t}`,
|
|
931
1290
|
children: e
|
|
932
1291
|
});
|
|
933
1292
|
}
|
|
934
|
-
function
|
|
1293
|
+
function Xe({ children: e, className: t = "" }) {
|
|
935
1294
|
return /* @__PURE__ */ b("div", {
|
|
936
1295
|
className: `j-info-card__aside ${t}`,
|
|
937
1296
|
children: e
|
|
@@ -939,263 +1298,380 @@ function Ne({ children: e, className: t = "" }) {
|
|
|
939
1298
|
}
|
|
940
1299
|
//#endregion
|
|
941
1300
|
//#region src/ui/showcase.tsx
|
|
942
|
-
function
|
|
943
|
-
return /* @__PURE__ */ x(
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1301
|
+
function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n = [], recentFinds: r = [], mcpInfo: i, onNewSearch: a, onBrowseFilters: o, onFilterClick: s }) {
|
|
1302
|
+
return /* @__PURE__ */ x(je, { children: [/* @__PURE__ */ x("div", {
|
|
1303
|
+
style: {
|
|
1304
|
+
padding: "12px 12px 8px",
|
|
1305
|
+
display: "flex",
|
|
1306
|
+
flexDirection: "column",
|
|
1307
|
+
gap: 6
|
|
1308
|
+
},
|
|
1309
|
+
children: [
|
|
1310
|
+
/* @__PURE__ */ x("div", {
|
|
1311
|
+
className: "j-text-center",
|
|
1312
|
+
children: [/* @__PURE__ */ b(P, {
|
|
1313
|
+
size: "display",
|
|
1314
|
+
tone: "gold",
|
|
1315
|
+
children: e
|
|
1316
|
+
}), /* @__PURE__ */ b(P, {
|
|
1317
|
+
size: "micro",
|
|
1318
|
+
tone: "grey",
|
|
1319
|
+
style: { letterSpacing: 1 },
|
|
1320
|
+
children: t
|
|
1321
|
+
})]
|
|
1322
|
+
}),
|
|
1323
|
+
i && /* @__PURE__ */ x("div", {
|
|
1324
|
+
className: "j-flex j-justify-between",
|
|
1325
|
+
style: {
|
|
1326
|
+
padding: "3px 8px",
|
|
1327
|
+
background: "var(--j-surface-inset)",
|
|
1328
|
+
borderRadius: 4,
|
|
1329
|
+
border: "1px solid var(--j-panel-edge)"
|
|
1330
|
+
},
|
|
1331
|
+
children: [/* @__PURE__ */ b(P, {
|
|
1332
|
+
size: "micro",
|
|
1333
|
+
tone: "purple",
|
|
1334
|
+
children: i.engine
|
|
1335
|
+
}), /* @__PURE__ */ b(P, {
|
|
1336
|
+
size: "micro",
|
|
1337
|
+
tone: "white",
|
|
1338
|
+
children: i.features
|
|
1339
|
+
})]
|
|
1340
|
+
}),
|
|
1341
|
+
n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ge, {
|
|
1342
|
+
label: "Filters",
|
|
1343
|
+
tone: "blue"
|
|
1344
|
+
}), /* @__PURE__ */ b("div", {
|
|
1345
|
+
className: "j-flex-col",
|
|
1346
|
+
style: { gap: 4 },
|
|
1347
|
+
children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(Ke, {
|
|
1348
|
+
tone: e.tone,
|
|
1349
|
+
onClick: () => s?.(e, t),
|
|
1350
|
+
style: { cursor: s ? "pointer" : void 0 },
|
|
1351
|
+
children: [
|
|
1352
|
+
/* @__PURE__ */ b("div", {
|
|
1353
|
+
className: "j-flex j-gap-xs",
|
|
1354
|
+
children: e.sample.slice(0, 2).map((e, t) => /* @__PURE__ */ b("div", {
|
|
1355
|
+
style: {
|
|
1356
|
+
width: 22,
|
|
1357
|
+
height: 28,
|
|
1358
|
+
display: "flex",
|
|
1359
|
+
alignItems: "center",
|
|
1360
|
+
justifyContent: "center"
|
|
1361
|
+
},
|
|
1362
|
+
children: /* @__PURE__ */ b(se, {
|
|
1363
|
+
name: e,
|
|
1364
|
+
width: 20
|
|
1365
|
+
})
|
|
1366
|
+
}, t))
|
|
1367
|
+
}),
|
|
1368
|
+
/* @__PURE__ */ x(qe, { children: [/* @__PURE__ */ b(Je, { children: e.name }), /* @__PURE__ */ x(Ye, { children: ["by ", e.author] })] }),
|
|
1369
|
+
/* @__PURE__ */ b(Xe, { children: /* @__PURE__ */ b(P, {
|
|
1370
|
+
size: "xs",
|
|
1371
|
+
tone: e.tone === "gold" ? "gold" : e.tone,
|
|
1372
|
+
children: e.hits
|
|
1373
|
+
}) })
|
|
1374
|
+
]
|
|
1375
|
+
}, t))
|
|
1376
|
+
})] }),
|
|
1377
|
+
r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ge, {
|
|
1378
|
+
label: "Recent",
|
|
1379
|
+
tone: "green"
|
|
1380
|
+
}), /* @__PURE__ */ b("div", {
|
|
1381
|
+
style: {
|
|
1382
|
+
background: "var(--j-surface-inset)",
|
|
1383
|
+
borderRadius: "var(--j-radius-md)",
|
|
1384
|
+
padding: "6px 8px",
|
|
1385
|
+
lineHeight: 1.5
|
|
1386
|
+
},
|
|
1387
|
+
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ x("div", {
|
|
1388
|
+
className: "j-flex j-gap-sm",
|
|
967
1389
|
style: {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
border: "1px solid var(--j-panel-edge)"
|
|
1390
|
+
background: t % 2 == 1 ? "var(--j-surface-inset-alt)" : "transparent",
|
|
1391
|
+
borderRadius: "var(--j-radius-sm)",
|
|
1392
|
+
padding: "1px 4px"
|
|
972
1393
|
},
|
|
973
|
-
children: [
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
width: 20
|
|
1007
|
-
})
|
|
1008
|
-
}, t))
|
|
1009
|
-
}),
|
|
1010
|
-
/* @__PURE__ */ x(Ae, { children: [/* @__PURE__ */ b(je, { children: e.name }), /* @__PURE__ */ x(Me, { children: ["by ", e.author] })] }),
|
|
1011
|
-
/* @__PURE__ */ b(Ne, { children: /* @__PURE__ */ b(j, {
|
|
1012
|
-
size: "xs",
|
|
1013
|
-
tone: e.tone === "gold" ? "gold" : e.tone,
|
|
1014
|
-
children: e.hits
|
|
1015
|
-
}) })
|
|
1016
|
-
]
|
|
1017
|
-
}, t))
|
|
1018
|
-
})] }),
|
|
1019
|
-
r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Oe, {
|
|
1020
|
-
label: "Recent",
|
|
1021
|
-
tone: "green"
|
|
1022
|
-
}), /* @__PURE__ */ b("div", {
|
|
1023
|
-
style: { lineHeight: 1.5 },
|
|
1024
|
-
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ x("div", {
|
|
1025
|
-
className: "j-flex j-gap-sm",
|
|
1026
|
-
children: [
|
|
1027
|
-
/* @__PURE__ */ b(j, {
|
|
1028
|
-
size: "micro",
|
|
1029
|
-
tone: "gold",
|
|
1030
|
-
children: e.seed
|
|
1031
|
-
}),
|
|
1032
|
-
/* @__PURE__ */ b(j, {
|
|
1033
|
-
size: "micro",
|
|
1034
|
-
tone: "grey",
|
|
1035
|
-
children: e.filterName
|
|
1036
|
-
}),
|
|
1037
|
-
e.score > 0 && /* @__PURE__ */ x(j, {
|
|
1038
|
-
size: "micro",
|
|
1039
|
-
tone: "green",
|
|
1040
|
-
children: ["+", e.score]
|
|
1041
|
-
})
|
|
1042
|
-
]
|
|
1043
|
-
}, t))
|
|
1044
|
-
})] })
|
|
1045
|
-
]
|
|
1046
|
-
}),
|
|
1047
|
-
/* @__PURE__ */ x(De, { children: [/* @__PURE__ */ b(M, {
|
|
1048
|
-
tone: "green",
|
|
1049
|
-
fullWidth: !0,
|
|
1050
|
-
size: "lg",
|
|
1051
|
-
onClick: a,
|
|
1052
|
-
children: "New Search"
|
|
1053
|
-
}), /* @__PURE__ */ b(M, {
|
|
1054
|
-
tone: "blue",
|
|
1055
|
-
fullWidth: !0,
|
|
1056
|
-
size: "lg",
|
|
1057
|
-
onClick: o,
|
|
1058
|
-
children: "Browse Filters"
|
|
1059
|
-
})] }),
|
|
1060
|
-
/* @__PURE__ */ b(be, {})
|
|
1061
|
-
] });
|
|
1394
|
+
children: [
|
|
1395
|
+
/* @__PURE__ */ b(P, {
|
|
1396
|
+
size: "micro",
|
|
1397
|
+
tone: "gold",
|
|
1398
|
+
children: e.seed
|
|
1399
|
+
}),
|
|
1400
|
+
/* @__PURE__ */ b(P, {
|
|
1401
|
+
size: "micro",
|
|
1402
|
+
tone: "grey",
|
|
1403
|
+
children: e.filterName
|
|
1404
|
+
}),
|
|
1405
|
+
e.score > 0 && /* @__PURE__ */ x(P, {
|
|
1406
|
+
size: "micro",
|
|
1407
|
+
tone: "green",
|
|
1408
|
+
children: ["+", e.score]
|
|
1409
|
+
})
|
|
1410
|
+
]
|
|
1411
|
+
}, t))
|
|
1412
|
+
})] })
|
|
1413
|
+
]
|
|
1414
|
+
}), /* @__PURE__ */ x(Ne, { children: [/* @__PURE__ */ b(I, {
|
|
1415
|
+
tone: "red",
|
|
1416
|
+
fullWidth: !0,
|
|
1417
|
+
size: "lg",
|
|
1418
|
+
onClick: a,
|
|
1419
|
+
children: "New Search"
|
|
1420
|
+
}), /* @__PURE__ */ b(I, {
|
|
1421
|
+
tone: "blue",
|
|
1422
|
+
fullWidth: !0,
|
|
1423
|
+
size: "lg",
|
|
1424
|
+
onClick: o,
|
|
1425
|
+
children: "Browse Filters"
|
|
1426
|
+
})] })] });
|
|
1062
1427
|
}
|
|
1063
1428
|
//#endregion
|
|
1064
1429
|
//#region src/ui/jimboCopyRow.tsx
|
|
1065
|
-
function
|
|
1066
|
-
let [n, r] = v(!1);
|
|
1067
|
-
function i() {
|
|
1068
|
-
navigator.clipboard.writeText(e).then(() => {
|
|
1069
|
-
r(!0), setTimeout(() => r(!1), 1500);
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1430
|
+
function Qe({ value: e, label: t }) {
|
|
1072
1431
|
return /* @__PURE__ */ x("div", {
|
|
1073
1432
|
className: "j-copy-row",
|
|
1074
|
-
children: [t
|
|
1433
|
+
children: [t ? /* @__PURE__ */ b(P, {
|
|
1075
1434
|
size: "xs",
|
|
1076
1435
|
tone: "grey",
|
|
1077
1436
|
className: "j-copy-row__label",
|
|
1078
1437
|
children: t
|
|
1079
|
-
}), /* @__PURE__ */
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1438
|
+
}) : null, /* @__PURE__ */ b(Ae, { value: e })]
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
//#endregion
|
|
1442
|
+
//#region src/ui/jimboWordmark.tsx
|
|
1443
|
+
function $e({ title: e, subtitle: t, className: n = "" }) {
|
|
1444
|
+
return /* @__PURE__ */ x("div", {
|
|
1445
|
+
className: `j-wordmark ${n}`,
|
|
1446
|
+
children: [/* @__PURE__ */ b("div", {
|
|
1447
|
+
className: "j-wordmark__title",
|
|
1448
|
+
children: e
|
|
1449
|
+
}), t && /* @__PURE__ */ b("div", {
|
|
1450
|
+
className: "j-wordmark__sub",
|
|
1451
|
+
children: t
|
|
1452
|
+
})]
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
//#endregion
|
|
1456
|
+
//#region src/ui/jimboStatGrid.tsx
|
|
1457
|
+
function et({ items: e, className: t = "", ...n }) {
|
|
1458
|
+
return /* @__PURE__ */ b("div", {
|
|
1459
|
+
className: `j-stat-grid ${t}`,
|
|
1460
|
+
...n,
|
|
1461
|
+
children: e.map((e) => /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("div", {
|
|
1462
|
+
className: "j-stat-grid__value",
|
|
1463
|
+
children: e.value
|
|
1464
|
+
}), /* @__PURE__ */ b("div", {
|
|
1465
|
+
className: "j-stat-grid__label",
|
|
1466
|
+
children: e.label
|
|
1467
|
+
})] }, e.label))
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
//#endregion
|
|
1471
|
+
//#region src/ui/jimboLayout.tsx
|
|
1472
|
+
function tt({ gap: e, align: t, justify: n, className: r = "", ...i }) {
|
|
1473
|
+
return /* @__PURE__ */ b("div", {
|
|
1474
|
+
className: [
|
|
1475
|
+
"j-stack",
|
|
1476
|
+
e && `j-stack--gap-${e}`,
|
|
1477
|
+
t && `j-stack--align-${t}`,
|
|
1478
|
+
n && `j-stack--justify-${n}`,
|
|
1479
|
+
r
|
|
1480
|
+
].filter(Boolean).join(" "),
|
|
1481
|
+
...i
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
function nt({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...a }) {
|
|
1485
|
+
return /* @__PURE__ */ b("div", {
|
|
1486
|
+
className: [
|
|
1487
|
+
"j-row",
|
|
1488
|
+
e && `j-row--gap-${e}`,
|
|
1489
|
+
t && `j-row--align-${t}`,
|
|
1490
|
+
n && `j-row--justify-${n}`,
|
|
1491
|
+
r && "j-row--wrap",
|
|
1492
|
+
i
|
|
1493
|
+
].filter(Boolean).join(" "),
|
|
1494
|
+
...a
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
//#endregion
|
|
1498
|
+
//#region src/ui/jimboInset.tsx
|
|
1499
|
+
function rt({ children: e, className: t = "", ...n }) {
|
|
1500
|
+
return /* @__PURE__ */ b("div", {
|
|
1501
|
+
className: `j-inset ${t}`.trim(),
|
|
1502
|
+
...n,
|
|
1503
|
+
children: e
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
//#endregion
|
|
1507
|
+
//#region src/ui/JimboPanelSpinner.tsx
|
|
1508
|
+
function it({ label: e, title: t, description: n, media: r, meta: i, className: a = "", style: o, onPrev: s, onNext: c, prevDisabled: l = !1, nextDisabled: u = !1 }) {
|
|
1509
|
+
return /* @__PURE__ */ x("div", {
|
|
1510
|
+
className: `j-panel-spinner ${a}`.trim(),
|
|
1511
|
+
style: o,
|
|
1512
|
+
children: [e ? /* @__PURE__ */ b("div", {
|
|
1513
|
+
className: "j-panel-spinner__label",
|
|
1514
|
+
children: /* @__PURE__ */ b(P, {
|
|
1515
|
+
size: "xs",
|
|
1516
|
+
tone: "grey",
|
|
1517
|
+
children: e
|
|
1518
|
+
})
|
|
1519
|
+
}) : null, /* @__PURE__ */ x("div", {
|
|
1520
|
+
className: "j-panel-spinner__row",
|
|
1521
|
+
children: [
|
|
1522
|
+
/* @__PURE__ */ b(I, {
|
|
1523
|
+
tone: "red",
|
|
1524
|
+
size: "lg",
|
|
1525
|
+
className: "j-panel-spinner__arrow j-panel-spinner__arrow--left",
|
|
1526
|
+
onClick: s,
|
|
1527
|
+
disabled: l,
|
|
1528
|
+
"aria-label": "Previous",
|
|
1529
|
+
children: "<"
|
|
1530
|
+
}),
|
|
1531
|
+
/* @__PURE__ */ x("div", {
|
|
1532
|
+
className: "j-panel-spinner__panel",
|
|
1533
|
+
children: [
|
|
1534
|
+
r ? /* @__PURE__ */ b("div", {
|
|
1535
|
+
className: "j-panel-spinner__media",
|
|
1536
|
+
children: r
|
|
1537
|
+
}) : null,
|
|
1538
|
+
/* @__PURE__ */ b("div", {
|
|
1539
|
+
className: "j-panel-spinner__title",
|
|
1540
|
+
children: /* @__PURE__ */ b(P, {
|
|
1541
|
+
size: "md",
|
|
1542
|
+
tone: "white",
|
|
1543
|
+
children: t
|
|
1544
|
+
})
|
|
1545
|
+
}),
|
|
1546
|
+
i ? /* @__PURE__ */ b("div", {
|
|
1547
|
+
className: "j-panel-spinner__meta",
|
|
1548
|
+
children: i
|
|
1549
|
+
}) : null,
|
|
1550
|
+
n ? /* @__PURE__ */ b("div", {
|
|
1551
|
+
className: "j-panel-spinner__description",
|
|
1552
|
+
children: /* @__PURE__ */ b(P, {
|
|
1553
|
+
size: "micro",
|
|
1554
|
+
tone: "grey",
|
|
1555
|
+
children: n
|
|
1556
|
+
})
|
|
1557
|
+
}) : null
|
|
1558
|
+
]
|
|
1559
|
+
}),
|
|
1560
|
+
/* @__PURE__ */ b(I, {
|
|
1561
|
+
tone: "red",
|
|
1562
|
+
size: "lg",
|
|
1563
|
+
className: "j-panel-spinner__arrow j-panel-spinner__arrow--right",
|
|
1564
|
+
onClick: c,
|
|
1565
|
+
disabled: u,
|
|
1566
|
+
"aria-label": "Next",
|
|
1567
|
+
children: ">"
|
|
1086
1568
|
})
|
|
1087
|
-
|
|
1088
|
-
type: "button",
|
|
1089
|
-
className: "j-copy-row__btn",
|
|
1090
|
-
"data-copied": n,
|
|
1091
|
-
onClick: i,
|
|
1092
|
-
children: n ? "Copied" : "Copy"
|
|
1093
|
-
})]
|
|
1094
|
-
})]
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
//#endregion
|
|
1098
|
-
//#region src/ui/jimboWordmark.tsx
|
|
1099
|
-
function Ie({ title: e, subtitle: t, className: n = "" }) {
|
|
1100
|
-
return /* @__PURE__ */ x("div", {
|
|
1101
|
-
className: `j-wordmark ${n}`,
|
|
1102
|
-
children: [/* @__PURE__ */ b("div", {
|
|
1103
|
-
className: "j-wordmark__title",
|
|
1104
|
-
children: e
|
|
1105
|
-
}), t && /* @__PURE__ */ b("div", {
|
|
1106
|
-
className: "j-wordmark__sub",
|
|
1107
|
-
children: t
|
|
1569
|
+
]
|
|
1108
1570
|
})]
|
|
1109
1571
|
});
|
|
1110
1572
|
}
|
|
1111
1573
|
//#endregion
|
|
1112
|
-
//#region src/ui/
|
|
1113
|
-
function
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
...n,
|
|
1117
|
-
children: e.map((e) => /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("div", {
|
|
1118
|
-
className: "j-stat-grid__value",
|
|
1119
|
-
children: e.value
|
|
1120
|
-
}), /* @__PURE__ */ b("div", {
|
|
1121
|
-
className: "j-stat-grid__label",
|
|
1122
|
-
children: e.label
|
|
1123
|
-
})] }, e.label))
|
|
1124
|
-
});
|
|
1574
|
+
//#region src/ui/JimboDeckAndStakeSelectorModal.tsx
|
|
1575
|
+
function at(e, t, n) {
|
|
1576
|
+
let r = e.indexOf(t);
|
|
1577
|
+
return r < 0 ? e[0] ?? t : e[(r + n + e.length) % e.length] ?? t;
|
|
1125
1578
|
}
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1579
|
+
function ot({ open: e, onClose: t, decks: n, stakes: r, deck: i, stake: a, onDeckChange: o, onStakeChange: s, title: c = "Search seeds for", deckDescription: l, stakeDescription: u }) {
|
|
1580
|
+
return /* @__PURE__ */ b(be, {
|
|
1581
|
+
open: e,
|
|
1582
|
+
onClose: t,
|
|
1583
|
+
title: c,
|
|
1584
|
+
children: /* @__PURE__ */ x(tt, {
|
|
1585
|
+
gap: "md",
|
|
1586
|
+
align: "stretch",
|
|
1587
|
+
children: [/* @__PURE__ */ b(it, {
|
|
1588
|
+
label: "Deck",
|
|
1589
|
+
title: `${i} Deck`,
|
|
1590
|
+
description: l ? l(i) : " ",
|
|
1591
|
+
media: /* @__PURE__ */ b(de, {
|
|
1592
|
+
deck: i,
|
|
1593
|
+
width: 64
|
|
1594
|
+
}),
|
|
1595
|
+
onPrev: () => o(at(n, i, -1)),
|
|
1596
|
+
onNext: () => o(at(n, i, 1))
|
|
1597
|
+
}), /* @__PURE__ */ b(it, {
|
|
1598
|
+
label: "Stake",
|
|
1599
|
+
title: `${a} Stake`,
|
|
1600
|
+
description: u ? u(a) : " ",
|
|
1601
|
+
media: /* @__PURE__ */ b(le, {
|
|
1602
|
+
stake: a,
|
|
1603
|
+
width: 48
|
|
1604
|
+
}),
|
|
1605
|
+
onPrev: () => s(at(r, a, -1)),
|
|
1606
|
+
onNext: () => s(at(r, a, 1))
|
|
1607
|
+
})]
|
|
1608
|
+
})
|
|
1133
1609
|
});
|
|
1134
1610
|
}
|
|
1135
1611
|
//#endregion
|
|
1136
1612
|
//#region node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
|
|
1137
|
-
function
|
|
1613
|
+
function st(e) {
|
|
1138
1614
|
return e == null;
|
|
1139
1615
|
}
|
|
1140
|
-
function
|
|
1616
|
+
function ct(e) {
|
|
1141
1617
|
return typeof e == "object" && !!e;
|
|
1142
1618
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return Array.isArray(e) ? e :
|
|
1619
|
+
function lt(e) {
|
|
1620
|
+
return Array.isArray(e) ? e : st(e) ? [] : [e];
|
|
1145
1621
|
}
|
|
1146
|
-
function
|
|
1622
|
+
function ut(e, t) {
|
|
1147
1623
|
var n, r, i, a;
|
|
1148
1624
|
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
1149
1625
|
return e;
|
|
1150
1626
|
}
|
|
1151
|
-
function
|
|
1627
|
+
function dt(e, t) {
|
|
1152
1628
|
var n = "", r;
|
|
1153
1629
|
for (r = 0; r < t; r += 1) n += e;
|
|
1154
1630
|
return n;
|
|
1155
1631
|
}
|
|
1156
|
-
function
|
|
1632
|
+
function ft(e) {
|
|
1157
1633
|
return e === 0 && 1 / e == -Infinity;
|
|
1158
1634
|
}
|
|
1159
|
-
var
|
|
1160
|
-
isNothing:
|
|
1161
|
-
isObject:
|
|
1162
|
-
toArray:
|
|
1163
|
-
repeat:
|
|
1164
|
-
isNegativeZero:
|
|
1165
|
-
extend:
|
|
1635
|
+
var R = {
|
|
1636
|
+
isNothing: st,
|
|
1637
|
+
isObject: ct,
|
|
1638
|
+
toArray: lt,
|
|
1639
|
+
repeat: dt,
|
|
1640
|
+
isNegativeZero: ft,
|
|
1641
|
+
extend: ut
|
|
1166
1642
|
};
|
|
1167
|
-
function
|
|
1643
|
+
function pt(e, t) {
|
|
1168
1644
|
var n = "", r = e.reason || "(unknown reason)";
|
|
1169
1645
|
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
1170
1646
|
}
|
|
1171
|
-
function
|
|
1172
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1647
|
+
function mt(e, t) {
|
|
1648
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = pt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
1173
1649
|
}
|
|
1174
|
-
|
|
1175
|
-
return this.name + ": " +
|
|
1650
|
+
mt.prototype = Object.create(Error.prototype), mt.prototype.constructor = mt, mt.prototype.toString = function(e) {
|
|
1651
|
+
return this.name + ": " + pt(this, e);
|
|
1176
1652
|
};
|
|
1177
|
-
var
|
|
1178
|
-
function
|
|
1653
|
+
var z = mt;
|
|
1654
|
+
function ht(e, t, n, r, i) {
|
|
1179
1655
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
1180
1656
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
1181
1657
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
1182
1658
|
pos: r - t + a.length
|
|
1183
1659
|
};
|
|
1184
1660
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1661
|
+
function gt(e, t) {
|
|
1662
|
+
return R.repeat(" ", t - e.length) + e;
|
|
1187
1663
|
}
|
|
1188
|
-
function
|
|
1664
|
+
function _t(e, t) {
|
|
1189
1665
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1190
1666
|
t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
1191
1667
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
|
|
1192
1668
|
o < 0 && (o = r.length - 1);
|
|
1193
1669
|
var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
|
|
1194
|
-
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l =
|
|
1195
|
-
for (l =
|
|
1670
|
+
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = ht(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = R.repeat(" ", t.indent) + gt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
|
|
1671
|
+
for (l = ht(e.buffer, r[o], i[o], e.position, d), s += R.repeat(" ", t.indent) + gt((e.line + 1).toString(), u) + " | " + l.str + "\n", s += R.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = ht(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += R.repeat(" ", t.indent) + gt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
|
|
1196
1672
|
return s.replace(/\n$/, "");
|
|
1197
1673
|
}
|
|
1198
|
-
var
|
|
1674
|
+
var vt = _t, yt = [
|
|
1199
1675
|
"kind",
|
|
1200
1676
|
"multi",
|
|
1201
1677
|
"resolve",
|
|
@@ -1206,12 +1682,12 @@ var Ye = Je, Xe = [
|
|
|
1206
1682
|
"representName",
|
|
1207
1683
|
"defaultStyle",
|
|
1208
1684
|
"styleAliases"
|
|
1209
|
-
],
|
|
1685
|
+
], bt = [
|
|
1210
1686
|
"scalar",
|
|
1211
1687
|
"sequence",
|
|
1212
1688
|
"mapping"
|
|
1213
1689
|
];
|
|
1214
|
-
function
|
|
1690
|
+
function xt(e) {
|
|
1215
1691
|
var t = {};
|
|
1216
1692
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1217
1693
|
e[n].forEach(function(e) {
|
|
@@ -1219,17 +1695,17 @@ function Qe(e) {
|
|
|
1219
1695
|
});
|
|
1220
1696
|
}), t;
|
|
1221
1697
|
}
|
|
1222
|
-
function
|
|
1698
|
+
function St(e, t) {
|
|
1223
1699
|
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
1224
|
-
if (
|
|
1700
|
+
if (yt.indexOf(t) === -1) throw new z("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
1225
1701
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1226
1702
|
return !0;
|
|
1227
1703
|
}, this.construct = t.construct || function(e) {
|
|
1228
1704
|
return e;
|
|
1229
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1705
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = xt(t.styleAliases || null), bt.indexOf(this.kind) === -1) throw new z("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
1230
1706
|
}
|
|
1231
|
-
var
|
|
1232
|
-
function
|
|
1707
|
+
var B = St;
|
|
1708
|
+
function Ct(e, t) {
|
|
1233
1709
|
var n = [];
|
|
1234
1710
|
return e[t].forEach(function(e) {
|
|
1235
1711
|
var t = n.length;
|
|
@@ -1238,7 +1714,7 @@ function et(e, t) {
|
|
|
1238
1714
|
}), n[t] = e;
|
|
1239
1715
|
}), n;
|
|
1240
1716
|
}
|
|
1241
|
-
function
|
|
1717
|
+
function wt() {
|
|
1242
1718
|
var e = {
|
|
1243
1719
|
scalar: {},
|
|
1244
1720
|
sequence: {},
|
|
@@ -1257,61 +1733,61 @@ function tt() {
|
|
|
1257
1733
|
for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
1258
1734
|
return e;
|
|
1259
1735
|
}
|
|
1260
|
-
function
|
|
1736
|
+
function Tt(e) {
|
|
1261
1737
|
return this.extend(e);
|
|
1262
1738
|
}
|
|
1263
|
-
|
|
1739
|
+
Tt.prototype.extend = function(e) {
|
|
1264
1740
|
var t = [], n = [];
|
|
1265
|
-
if (e instanceof
|
|
1741
|
+
if (e instanceof B) n.push(e);
|
|
1266
1742
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
1267
1743
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
1268
|
-
else throw new
|
|
1744
|
+
else throw new z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1269
1745
|
t.forEach(function(e) {
|
|
1270
|
-
if (!(e instanceof
|
|
1271
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new
|
|
1272
|
-
if (e.multi) throw new
|
|
1746
|
+
if (!(e instanceof B)) throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1747
|
+
if (e.loadKind && e.loadKind !== "scalar") throw new z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1748
|
+
if (e.multi) throw new z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1273
1749
|
}), n.forEach(function(e) {
|
|
1274
|
-
if (!(e instanceof
|
|
1750
|
+
if (!(e instanceof B)) throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1275
1751
|
});
|
|
1276
|
-
var r = Object.create(
|
|
1277
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
1752
|
+
var r = Object.create(Tt.prototype);
|
|
1753
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Ct(r, "implicit"), r.compiledExplicit = Ct(r, "explicit"), r.compiledTypeMap = wt(r.compiledImplicit, r.compiledExplicit), r;
|
|
1278
1754
|
};
|
|
1279
|
-
var
|
|
1755
|
+
var Et = Tt, Dt = new B("tag:yaml.org,2002:str", {
|
|
1280
1756
|
kind: "scalar",
|
|
1281
1757
|
construct: function(e) {
|
|
1282
1758
|
return e === null ? "" : e;
|
|
1283
1759
|
}
|
|
1284
|
-
}),
|
|
1760
|
+
}), Ot = new B("tag:yaml.org,2002:seq", {
|
|
1285
1761
|
kind: "sequence",
|
|
1286
1762
|
construct: function(e) {
|
|
1287
1763
|
return e === null ? [] : e;
|
|
1288
1764
|
}
|
|
1289
|
-
}),
|
|
1765
|
+
}), kt = new B("tag:yaml.org,2002:map", {
|
|
1290
1766
|
kind: "mapping",
|
|
1291
1767
|
construct: function(e) {
|
|
1292
1768
|
return e === null ? {} : e;
|
|
1293
1769
|
}
|
|
1294
|
-
}),
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1770
|
+
}), At = new Et({ explicit: [
|
|
1771
|
+
Dt,
|
|
1772
|
+
Ot,
|
|
1773
|
+
kt
|
|
1298
1774
|
] });
|
|
1299
|
-
function
|
|
1775
|
+
function jt(e) {
|
|
1300
1776
|
if (e === null) return !0;
|
|
1301
1777
|
var t = e.length;
|
|
1302
1778
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1303
1779
|
}
|
|
1304
|
-
function
|
|
1780
|
+
function Mt() {
|
|
1305
1781
|
return null;
|
|
1306
1782
|
}
|
|
1307
|
-
function
|
|
1783
|
+
function Nt(e) {
|
|
1308
1784
|
return e === null;
|
|
1309
1785
|
}
|
|
1310
|
-
var
|
|
1786
|
+
var Pt = new B("tag:yaml.org,2002:null", {
|
|
1311
1787
|
kind: "scalar",
|
|
1312
|
-
resolve:
|
|
1313
|
-
construct:
|
|
1314
|
-
predicate:
|
|
1788
|
+
resolve: jt,
|
|
1789
|
+
construct: Mt,
|
|
1790
|
+
predicate: Nt,
|
|
1315
1791
|
represent: {
|
|
1316
1792
|
canonical: function() {
|
|
1317
1793
|
return "~";
|
|
@@ -1331,22 +1807,22 @@ var dt = new I("tag:yaml.org,2002:null", {
|
|
|
1331
1807
|
},
|
|
1332
1808
|
defaultStyle: "lowercase"
|
|
1333
1809
|
});
|
|
1334
|
-
function
|
|
1810
|
+
function Ft(e) {
|
|
1335
1811
|
if (e === null) return !1;
|
|
1336
1812
|
var t = e.length;
|
|
1337
1813
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1338
1814
|
}
|
|
1339
|
-
function
|
|
1815
|
+
function It(e) {
|
|
1340
1816
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1341
1817
|
}
|
|
1342
|
-
function
|
|
1818
|
+
function Lt(e) {
|
|
1343
1819
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1344
1820
|
}
|
|
1345
|
-
var
|
|
1821
|
+
var Rt = new B("tag:yaml.org,2002:bool", {
|
|
1346
1822
|
kind: "scalar",
|
|
1347
|
-
resolve:
|
|
1348
|
-
construct:
|
|
1349
|
-
predicate:
|
|
1823
|
+
resolve: Ft,
|
|
1824
|
+
construct: It,
|
|
1825
|
+
predicate: Lt,
|
|
1350
1826
|
represent: {
|
|
1351
1827
|
lowercase: function(e) {
|
|
1352
1828
|
return e ? "true" : "false";
|
|
@@ -1360,16 +1836,16 @@ var ht = new I("tag:yaml.org,2002:bool", {
|
|
|
1360
1836
|
},
|
|
1361
1837
|
defaultStyle: "lowercase"
|
|
1362
1838
|
});
|
|
1363
|
-
function
|
|
1839
|
+
function zt(e) {
|
|
1364
1840
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1365
1841
|
}
|
|
1366
|
-
function
|
|
1842
|
+
function Bt(e) {
|
|
1367
1843
|
return 48 <= e && e <= 55;
|
|
1368
1844
|
}
|
|
1369
|
-
function
|
|
1845
|
+
function Vt(e) {
|
|
1370
1846
|
return 48 <= e && e <= 57;
|
|
1371
1847
|
}
|
|
1372
|
-
function
|
|
1848
|
+
function Ht(e) {
|
|
1373
1849
|
if (e === null) return !1;
|
|
1374
1850
|
var t = e.length, n = 0, r = !1, i;
|
|
1375
1851
|
if (!t) return !1;
|
|
@@ -1384,14 +1860,14 @@ function yt(e) {
|
|
|
1384
1860
|
}
|
|
1385
1861
|
if (i === "x") {
|
|
1386
1862
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
1387
|
-
if (!
|
|
1863
|
+
if (!zt(e.charCodeAt(n))) return !1;
|
|
1388
1864
|
r = !0;
|
|
1389
1865
|
}
|
|
1390
1866
|
return r && i !== "_";
|
|
1391
1867
|
}
|
|
1392
1868
|
if (i === "o") {
|
|
1393
1869
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
1394
|
-
if (!
|
|
1870
|
+
if (!Bt(e.charCodeAt(n))) return !1;
|
|
1395
1871
|
r = !0;
|
|
1396
1872
|
}
|
|
1397
1873
|
return r && i !== "_";
|
|
@@ -1399,12 +1875,12 @@ function yt(e) {
|
|
|
1399
1875
|
}
|
|
1400
1876
|
if (i === "_") return !1;
|
|
1401
1877
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
1402
|
-
if (!
|
|
1878
|
+
if (!Vt(e.charCodeAt(n))) return !1;
|
|
1403
1879
|
r = !0;
|
|
1404
1880
|
}
|
|
1405
1881
|
return !(!r || i === "_");
|
|
1406
1882
|
}
|
|
1407
|
-
function
|
|
1883
|
+
function Ut(e) {
|
|
1408
1884
|
var t = e, n = 1, r;
|
|
1409
1885
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
1410
1886
|
if (r === "0") {
|
|
@@ -1414,14 +1890,14 @@ function bt(e) {
|
|
|
1414
1890
|
}
|
|
1415
1891
|
return n * parseInt(t, 10);
|
|
1416
1892
|
}
|
|
1417
|
-
function
|
|
1418
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !
|
|
1893
|
+
function Wt(e) {
|
|
1894
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !R.isNegativeZero(e);
|
|
1419
1895
|
}
|
|
1420
|
-
var
|
|
1896
|
+
var Gt = new B("tag:yaml.org,2002:int", {
|
|
1421
1897
|
kind: "scalar",
|
|
1422
|
-
resolve:
|
|
1423
|
-
construct:
|
|
1424
|
-
predicate:
|
|
1898
|
+
resolve: Ht,
|
|
1899
|
+
construct: Ut,
|
|
1900
|
+
predicate: Wt,
|
|
1425
1901
|
represent: {
|
|
1426
1902
|
binary: function(e) {
|
|
1427
1903
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1443,16 +1919,16 @@ var St = new I("tag:yaml.org,2002:int", {
|
|
|
1443
1919
|
decimal: [10, "dec"],
|
|
1444
1920
|
hexadecimal: [16, "hex"]
|
|
1445
1921
|
}
|
|
1446
|
-
}),
|
|
1447
|
-
function
|
|
1448
|
-
return !(e === null || !
|
|
1922
|
+
}), Kt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1923
|
+
function qt(e) {
|
|
1924
|
+
return !(e === null || !Kt.test(e) || e[e.length - 1] === "_");
|
|
1449
1925
|
}
|
|
1450
|
-
function
|
|
1926
|
+
function Jt(e) {
|
|
1451
1927
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
1452
1928
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1453
1929
|
}
|
|
1454
|
-
var
|
|
1455
|
-
function
|
|
1930
|
+
var Yt = /^[-+]?[0-9]+e/;
|
|
1931
|
+
function Xt(e, t) {
|
|
1456
1932
|
var n;
|
|
1457
1933
|
if (isNaN(e)) switch (t) {
|
|
1458
1934
|
case "lowercase": return ".nan";
|
|
@@ -1469,31 +1945,31 @@ function Dt(e, t) {
|
|
|
1469
1945
|
case "uppercase": return "-.INF";
|
|
1470
1946
|
case "camelcase": return "-.Inf";
|
|
1471
1947
|
}
|
|
1472
|
-
else if (
|
|
1473
|
-
return n = e.toString(10),
|
|
1948
|
+
else if (R.isNegativeZero(e)) return "-0.0";
|
|
1949
|
+
return n = e.toString(10), Yt.test(n) ? n.replace("e", ".e") : n;
|
|
1474
1950
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 ||
|
|
1951
|
+
function Zt(e) {
|
|
1952
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || R.isNegativeZero(e));
|
|
1477
1953
|
}
|
|
1478
|
-
var
|
|
1954
|
+
var Qt = new B("tag:yaml.org,2002:float", {
|
|
1479
1955
|
kind: "scalar",
|
|
1480
|
-
resolve:
|
|
1481
|
-
construct:
|
|
1482
|
-
predicate:
|
|
1483
|
-
represent:
|
|
1956
|
+
resolve: qt,
|
|
1957
|
+
construct: Jt,
|
|
1958
|
+
predicate: Zt,
|
|
1959
|
+
represent: Xt,
|
|
1484
1960
|
defaultStyle: "lowercase"
|
|
1485
|
-
}),
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
] }),
|
|
1491
|
-
function
|
|
1492
|
-
return e === null ? !1 :
|
|
1961
|
+
}), $t = At.extend({ implicit: [
|
|
1962
|
+
Pt,
|
|
1963
|
+
Rt,
|
|
1964
|
+
Gt,
|
|
1965
|
+
Qt
|
|
1966
|
+
] }), en = $t, tn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), nn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
1967
|
+
function rn(e) {
|
|
1968
|
+
return e === null ? !1 : tn.exec(e) !== null || nn.exec(e) !== null;
|
|
1493
1969
|
}
|
|
1494
|
-
function
|
|
1970
|
+
function an(e) {
|
|
1495
1971
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
1496
|
-
if (t =
|
|
1972
|
+
if (t = tn.exec(e), t === null && (t = nn.exec(e)), t === null) throw Error("Date resolve error");
|
|
1497
1973
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
1498
1974
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
1499
1975
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -1501,58 +1977,58 @@ function Ft(e) {
|
|
|
1501
1977
|
}
|
|
1502
1978
|
return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
|
|
1503
1979
|
}
|
|
1504
|
-
function
|
|
1980
|
+
function on(e) {
|
|
1505
1981
|
return e.toISOString();
|
|
1506
1982
|
}
|
|
1507
|
-
var
|
|
1983
|
+
var sn = new B("tag:yaml.org,2002:timestamp", {
|
|
1508
1984
|
kind: "scalar",
|
|
1509
|
-
resolve:
|
|
1510
|
-
construct:
|
|
1985
|
+
resolve: rn,
|
|
1986
|
+
construct: an,
|
|
1511
1987
|
instanceOf: Date,
|
|
1512
|
-
represent:
|
|
1988
|
+
represent: on
|
|
1513
1989
|
});
|
|
1514
|
-
function
|
|
1990
|
+
function cn(e) {
|
|
1515
1991
|
return e === "<<" || e === null;
|
|
1516
1992
|
}
|
|
1517
|
-
var
|
|
1993
|
+
var ln = new B("tag:yaml.org,2002:merge", {
|
|
1518
1994
|
kind: "scalar",
|
|
1519
|
-
resolve:
|
|
1520
|
-
}),
|
|
1521
|
-
function
|
|
1995
|
+
resolve: cn
|
|
1996
|
+
}), un = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
1997
|
+
function dn(e) {
|
|
1522
1998
|
if (e === null) return !1;
|
|
1523
|
-
var t, n, r = 0, i = e.length, a =
|
|
1999
|
+
var t, n, r = 0, i = e.length, a = un;
|
|
1524
2000
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1525
2001
|
if (t < 0) return !1;
|
|
1526
2002
|
r += 6;
|
|
1527
2003
|
}
|
|
1528
2004
|
return r % 8 == 0;
|
|
1529
2005
|
}
|
|
1530
|
-
function
|
|
1531
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
2006
|
+
function fn(e) {
|
|
2007
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = un, o = 0, s = [];
|
|
1532
2008
|
for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
1533
2009
|
return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
1534
2010
|
}
|
|
1535
|
-
function
|
|
1536
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
2011
|
+
function pn(e) {
|
|
2012
|
+
var t = "", n = 0, r, i, a = e.length, o = un;
|
|
1537
2013
|
for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
1538
2014
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
1539
2015
|
}
|
|
1540
|
-
function
|
|
2016
|
+
function mn(e) {
|
|
1541
2017
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1542
2018
|
}
|
|
1543
|
-
var
|
|
2019
|
+
var hn = new B("tag:yaml.org,2002:binary", {
|
|
1544
2020
|
kind: "scalar",
|
|
1545
|
-
resolve:
|
|
1546
|
-
construct:
|
|
1547
|
-
predicate:
|
|
1548
|
-
represent:
|
|
1549
|
-
}),
|
|
1550
|
-
function
|
|
2021
|
+
resolve: dn,
|
|
2022
|
+
construct: fn,
|
|
2023
|
+
predicate: mn,
|
|
2024
|
+
represent: pn
|
|
2025
|
+
}), gn = Object.prototype.hasOwnProperty, _n = Object.prototype.toString;
|
|
2026
|
+
function vn(e) {
|
|
1551
2027
|
if (e === null) return !0;
|
|
1552
2028
|
var t = [], n, r, i, a, o, s = e;
|
|
1553
2029
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
1554
|
-
if (i = s[n], o = !1,
|
|
1555
|
-
for (a in i) if (
|
|
2030
|
+
if (i = s[n], o = !1, _n.call(i) !== "[object Object]") return !1;
|
|
2031
|
+
for (a in i) if (gn.call(i, a)) if (!o) o = !0;
|
|
1556
2032
|
else return !1;
|
|
1557
2033
|
if (!o) return !1;
|
|
1558
2034
|
if (t.indexOf(a) === -1) t.push(a);
|
|
@@ -1560,88 +2036,88 @@ function Jt(e) {
|
|
|
1560
2036
|
}
|
|
1561
2037
|
return !0;
|
|
1562
2038
|
}
|
|
1563
|
-
function
|
|
2039
|
+
function yn(e) {
|
|
1564
2040
|
return e === null ? [] : e;
|
|
1565
2041
|
}
|
|
1566
|
-
var
|
|
2042
|
+
var bn = new B("tag:yaml.org,2002:omap", {
|
|
1567
2043
|
kind: "sequence",
|
|
1568
|
-
resolve:
|
|
1569
|
-
construct:
|
|
1570
|
-
}),
|
|
1571
|
-
function
|
|
2044
|
+
resolve: vn,
|
|
2045
|
+
construct: yn
|
|
2046
|
+
}), xn = Object.prototype.toString;
|
|
2047
|
+
function Sn(e) {
|
|
1572
2048
|
if (e === null) return !0;
|
|
1573
2049
|
var t, n, r, i, a, o = e;
|
|
1574
2050
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
1575
|
-
if (r = o[t],
|
|
2051
|
+
if (r = o[t], xn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
1576
2052
|
a[t] = [i[0], r[i[0]]];
|
|
1577
2053
|
}
|
|
1578
2054
|
return !0;
|
|
1579
2055
|
}
|
|
1580
|
-
function
|
|
2056
|
+
function Cn(e) {
|
|
1581
2057
|
if (e === null) return [];
|
|
1582
2058
|
var t, n, r, i, a, o = e;
|
|
1583
2059
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
1584
2060
|
return a;
|
|
1585
2061
|
}
|
|
1586
|
-
var
|
|
2062
|
+
var wn = new B("tag:yaml.org,2002:pairs", {
|
|
1587
2063
|
kind: "sequence",
|
|
1588
|
-
resolve:
|
|
1589
|
-
construct:
|
|
1590
|
-
}),
|
|
1591
|
-
function
|
|
2064
|
+
resolve: Sn,
|
|
2065
|
+
construct: Cn
|
|
2066
|
+
}), Tn = Object.prototype.hasOwnProperty;
|
|
2067
|
+
function En(e) {
|
|
1592
2068
|
if (e === null) return !0;
|
|
1593
2069
|
var t, n = e;
|
|
1594
|
-
for (t in n) if (
|
|
2070
|
+
for (t in n) if (Tn.call(n, t) && n[t] !== null) return !1;
|
|
1595
2071
|
return !0;
|
|
1596
2072
|
}
|
|
1597
|
-
function
|
|
2073
|
+
function Dn(e) {
|
|
1598
2074
|
return e === null ? {} : e;
|
|
1599
2075
|
}
|
|
1600
|
-
var
|
|
2076
|
+
var On = new B("tag:yaml.org,2002:set", {
|
|
1601
2077
|
kind: "mapping",
|
|
1602
|
-
resolve:
|
|
1603
|
-
construct:
|
|
1604
|
-
}),
|
|
1605
|
-
implicit: [
|
|
2078
|
+
resolve: En,
|
|
2079
|
+
construct: Dn
|
|
2080
|
+
}), kn = en.extend({
|
|
2081
|
+
implicit: [sn, ln],
|
|
1606
2082
|
explicit: [
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
2083
|
+
hn,
|
|
2084
|
+
bn,
|
|
2085
|
+
wn,
|
|
2086
|
+
On
|
|
1611
2087
|
]
|
|
1612
|
-
}),
|
|
1613
|
-
function
|
|
2088
|
+
}), V = Object.prototype.hasOwnProperty, An = 1, jn = 2, Mn = 3, Nn = 4, Pn = 1, Fn = 2, In = 3, Ln = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Rn = /[\x85\u2028\u2029]/, zn = /[,\[\]\{\}]/, Bn = /^(?:!|!!|![a-z\-]+!)$/i, Vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
2089
|
+
function Hn(e) {
|
|
1614
2090
|
return Object.prototype.toString.call(e);
|
|
1615
2091
|
}
|
|
1616
|
-
function
|
|
2092
|
+
function H(e) {
|
|
1617
2093
|
return e === 10 || e === 13;
|
|
1618
2094
|
}
|
|
1619
|
-
function
|
|
2095
|
+
function U(e) {
|
|
1620
2096
|
return e === 9 || e === 32;
|
|
1621
2097
|
}
|
|
1622
|
-
function
|
|
2098
|
+
function W(e) {
|
|
1623
2099
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1624
2100
|
}
|
|
1625
|
-
function
|
|
2101
|
+
function G(e) {
|
|
1626
2102
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1627
2103
|
}
|
|
1628
|
-
function
|
|
2104
|
+
function Un(e) {
|
|
1629
2105
|
var t;
|
|
1630
2106
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1631
2107
|
}
|
|
1632
|
-
function
|
|
2108
|
+
function Wn(e) {
|
|
1633
2109
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1634
2110
|
}
|
|
1635
|
-
function
|
|
2111
|
+
function Gn(e) {
|
|
1636
2112
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1637
2113
|
}
|
|
1638
|
-
function
|
|
2114
|
+
function Kn(e) {
|
|
1639
2115
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1640
2116
|
}
|
|
1641
|
-
function
|
|
2117
|
+
function qn(e) {
|
|
1642
2118
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1643
2119
|
}
|
|
1644
|
-
function
|
|
2120
|
+
function Jn(e, t, n) {
|
|
1645
2121
|
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
1646
2122
|
configurable: !0,
|
|
1647
2123
|
enumerable: !0,
|
|
@@ -1649,11 +2125,11 @@ function Tn(e, t, n) {
|
|
|
1649
2125
|
value: n
|
|
1650
2126
|
}) : e[t] = n;
|
|
1651
2127
|
}
|
|
1652
|
-
for (var
|
|
1653
|
-
function
|
|
1654
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
2128
|
+
for (var Yn = Array(256), Xn = Array(256), K = 0; K < 256; K++) Yn[K] = +!!Kn(K), Xn[K] = Kn(K);
|
|
2129
|
+
function Zn(e, t) {
|
|
2130
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || kn, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1655
2131
|
}
|
|
1656
|
-
function
|
|
2132
|
+
function Qn(e, t) {
|
|
1657
2133
|
var n = {
|
|
1658
2134
|
name: e.filename,
|
|
1659
2135
|
buffer: e.input.slice(0, -1),
|
|
@@ -1661,292 +2137,292 @@ function kn(e, t) {
|
|
|
1661
2137
|
line: e.line,
|
|
1662
2138
|
column: e.position - e.lineStart
|
|
1663
2139
|
};
|
|
1664
|
-
return n.snippet =
|
|
2140
|
+
return n.snippet = vt(n), new z(t, n);
|
|
1665
2141
|
}
|
|
1666
|
-
function
|
|
1667
|
-
throw
|
|
2142
|
+
function q(e, t) {
|
|
2143
|
+
throw Qn(e, t);
|
|
1668
2144
|
}
|
|
1669
|
-
function
|
|
1670
|
-
e.onWarning && e.onWarning.call(null,
|
|
2145
|
+
function $n(e, t) {
|
|
2146
|
+
e.onWarning && e.onWarning.call(null, Qn(e, t));
|
|
1671
2147
|
}
|
|
1672
|
-
var
|
|
2148
|
+
var er = {
|
|
1673
2149
|
YAML: function(e, t, n) {
|
|
1674
2150
|
var r, i, a;
|
|
1675
|
-
e.version !== null &&
|
|
2151
|
+
e.version !== null && q(e, "duplication of %YAML directive"), n.length !== 1 && q(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && q(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && q(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && $n(e, "unsupported YAML version of the document");
|
|
1676
2152
|
},
|
|
1677
2153
|
TAG: function(e, t, n) {
|
|
1678
2154
|
var r, i;
|
|
1679
|
-
n.length !== 2 &&
|
|
2155
|
+
n.length !== 2 && q(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Bn.test(r) || q(e, "ill-formed tag handle (first argument) of the TAG directive"), V.call(e.tagMap, r) && q(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Vn.test(i) || q(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1680
2156
|
try {
|
|
1681
2157
|
i = decodeURIComponent(i);
|
|
1682
2158
|
} catch {
|
|
1683
|
-
|
|
2159
|
+
q(e, "tag prefix is malformed: " + i);
|
|
1684
2160
|
}
|
|
1685
2161
|
e.tagMap[r] = i;
|
|
1686
2162
|
}
|
|
1687
2163
|
};
|
|
1688
|
-
function
|
|
2164
|
+
function J(e, t, n, r) {
|
|
1689
2165
|
var i, a, o, s;
|
|
1690
2166
|
if (t < n) {
|
|
1691
|
-
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1692
|
-
else
|
|
2167
|
+
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || q(e, "expected valid JSON character");
|
|
2168
|
+
else Ln.test(s) && q(e, "the stream contains non-printable characters");
|
|
1693
2169
|
e.result += s;
|
|
1694
2170
|
}
|
|
1695
2171
|
}
|
|
1696
|
-
function
|
|
2172
|
+
function tr(e, t, n, r) {
|
|
1697
2173
|
var i, a, o, s;
|
|
1698
|
-
for (
|
|
2174
|
+
for (R.isObject(n) || q(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], V.call(t, a) || (Jn(t, a, n[a]), r[a] = !0);
|
|
1699
2175
|
}
|
|
1700
|
-
function
|
|
2176
|
+
function nr(e, t, n, r, i, a, o, s, c) {
|
|
1701
2177
|
var l, u;
|
|
1702
|
-
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) &&
|
|
1703
|
-
if (typeof i == "object" &&
|
|
1704
|
-
else
|
|
1705
|
-
else !e.json && !
|
|
2178
|
+
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && q(e, "nested arrays are not supported inside keys"), typeof i == "object" && Hn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
2179
|
+
if (typeof i == "object" && Hn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) tr(e, t, a[l], n);
|
|
2180
|
+
else tr(e, t, a, n);
|
|
2181
|
+
else !e.json && !V.call(n, i) && V.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, q(e, "duplicated mapping key")), Jn(t, i, a), delete n[i];
|
|
1706
2182
|
return t;
|
|
1707
2183
|
}
|
|
1708
|
-
function
|
|
2184
|
+
function rr(e) {
|
|
1709
2185
|
var t = e.input.charCodeAt(e.position);
|
|
1710
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
2186
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : q(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1711
2187
|
}
|
|
1712
|
-
function
|
|
2188
|
+
function Y(e, t, n) {
|
|
1713
2189
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
1714
|
-
for (;
|
|
2190
|
+
for (; U(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1715
2191
|
if (t && i === 35) do
|
|
1716
2192
|
i = e.input.charCodeAt(++e.position);
|
|
1717
2193
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1718
|
-
if (
|
|
2194
|
+
if (H(i)) for (rr(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1719
2195
|
else break;
|
|
1720
2196
|
}
|
|
1721
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
2197
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && $n(e, "deficient indentation"), r;
|
|
1722
2198
|
}
|
|
1723
|
-
function
|
|
2199
|
+
function ir(e) {
|
|
1724
2200
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
1725
|
-
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 ||
|
|
2201
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || W(n)));
|
|
1726
2202
|
}
|
|
1727
|
-
function
|
|
1728
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
2203
|
+
function ar(e, t) {
|
|
2204
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += R.repeat("\n", t - 1));
|
|
1729
2205
|
}
|
|
1730
|
-
function
|
|
2206
|
+
function or(e, t, n) {
|
|
1731
2207
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
1732
|
-
if (
|
|
2208
|
+
if (W(p) || G(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), W(i) || n && G(i))) return !1;
|
|
1733
2209
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
1734
2210
|
if (p === 58) {
|
|
1735
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
2211
|
+
if (i = e.input.charCodeAt(e.position + 1), W(i) || n && G(i)) break;
|
|
1736
2212
|
} else if (p === 35) {
|
|
1737
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
1738
|
-
} else if (e.position === e.lineStart &&
|
|
1739
|
-
else if (
|
|
2213
|
+
if (r = e.input.charCodeAt(e.position - 1), W(r)) break;
|
|
2214
|
+
} else if (e.position === e.lineStart && ir(e) || n && G(p)) break;
|
|
2215
|
+
else if (H(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, Y(e, !1, -1), e.lineIndent >= t) {
|
|
1740
2216
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
1741
2217
|
continue;
|
|
1742
2218
|
} else {
|
|
1743
2219
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
1744
2220
|
break;
|
|
1745
2221
|
}
|
|
1746
|
-
s &&= (
|
|
2222
|
+
s &&= (J(e, a, o, !1), ar(e, e.line - c), a = o = e.position, !1), U(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1747
2223
|
}
|
|
1748
|
-
return
|
|
2224
|
+
return J(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
1749
2225
|
}
|
|
1750
|
-
function
|
|
2226
|
+
function sr(e, t) {
|
|
1751
2227
|
var n = e.input.charCodeAt(e.position), r, i;
|
|
1752
2228
|
if (n !== 39) return !1;
|
|
1753
|
-
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (
|
|
2229
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (J(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
1754
2230
|
else return !0;
|
|
1755
|
-
else
|
|
1756
|
-
|
|
2231
|
+
else H(n) ? (J(e, r, i, !0), ar(e, Y(e, !1, t)), r = i = e.position) : e.position === e.lineStart && ir(e) ? q(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
2232
|
+
q(e, "unexpected end of the stream within a single quoted scalar");
|
|
1757
2233
|
}
|
|
1758
|
-
function
|
|
2234
|
+
function cr(e, t) {
|
|
1759
2235
|
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
1760
2236
|
if (s !== 34) return !1;
|
|
1761
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return
|
|
2237
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return J(e, n, e.position, !0), e.position++, !0;
|
|
1762
2238
|
else if (s === 92) {
|
|
1763
|
-
if (
|
|
1764
|
-
else if (s < 256 &&
|
|
1765
|
-
else if ((o =
|
|
1766
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o =
|
|
1767
|
-
e.result +=
|
|
1768
|
-
} else
|
|
2239
|
+
if (J(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), H(s)) Y(e, !1, t);
|
|
2240
|
+
else if (s < 256 && Yn[s]) e.result += Xn[s], e.position++;
|
|
2241
|
+
else if ((o = Wn(s)) > 0) {
|
|
2242
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Un(s)) >= 0 ? a = (a << 4) + o : q(e, "expected hexadecimal character");
|
|
2243
|
+
e.result += qn(a), e.position++;
|
|
2244
|
+
} else q(e, "unknown escape sequence");
|
|
1769
2245
|
n = r = e.position;
|
|
1770
|
-
} else
|
|
1771
|
-
|
|
2246
|
+
} else H(s) ? (J(e, n, r, !0), ar(e, Y(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ir(e) ? q(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
2247
|
+
q(e, "unexpected end of the stream within a double quoted scalar");
|
|
1772
2248
|
}
|
|
1773
|
-
function
|
|
2249
|
+
function lr(e, t) {
|
|
1774
2250
|
var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
1775
2251
|
if (v === 91) u = 93, p = !1, s = [];
|
|
1776
2252
|
else if (v === 123) u = 125, p = !0, s = {};
|
|
1777
2253
|
else return !1;
|
|
1778
2254
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
1779
|
-
if (
|
|
1780
|
-
n ? v === 44 &&
|
|
2255
|
+
if (Y(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
2256
|
+
n ? v === 44 && q(e, "expected the node content, but found ','") : q(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), W(l) && (d = f = !0, e.position++, Y(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, gr(e, t, An, !1, !0), g = e.tag, h = e.result, Y(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Y(e, !0, t), gr(e, t, An, !1, !0), _ = e.result), p ? nr(e, s, m, g, h, _, r, i, a) : d ? s.push(nr(e, null, m, g, h, _, r, i, a)) : s.push(h), Y(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1781
2257
|
}
|
|
1782
|
-
|
|
2258
|
+
q(e, "unexpected end of the stream within a flow collection");
|
|
1783
2259
|
}
|
|
1784
|
-
function
|
|
1785
|
-
var n, r, i =
|
|
2260
|
+
function ur(e, t) {
|
|
2261
|
+
var n, r, i = Pn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
1786
2262
|
if (d === 124) r = !1;
|
|
1787
2263
|
else if (d === 62) r = !0;
|
|
1788
2264
|
else return !1;
|
|
1789
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
1790
|
-
else if ((u =
|
|
2265
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Pn === i ? i = d === 43 ? In : Fn : q(e, "repeat of a chomping mode identifier");
|
|
2266
|
+
else if ((u = Gn(d)) >= 0) u === 0 ? q(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? q(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
|
|
1791
2267
|
else break;
|
|
1792
|
-
if (
|
|
2268
|
+
if (U(d)) {
|
|
1793
2269
|
do
|
|
1794
2270
|
d = e.input.charCodeAt(++e.position);
|
|
1795
|
-
while (
|
|
2271
|
+
while (U(d));
|
|
1796
2272
|
if (d === 35) do
|
|
1797
2273
|
d = e.input.charCodeAt(++e.position);
|
|
1798
|
-
while (!
|
|
2274
|
+
while (!H(d) && d !== 0);
|
|
1799
2275
|
}
|
|
1800
2276
|
for (; d !== 0;) {
|
|
1801
|
-
for (
|
|
1802
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent),
|
|
2277
|
+
for (rr(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
2278
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), H(d)) {
|
|
1803
2279
|
c++;
|
|
1804
2280
|
continue;
|
|
1805
2281
|
}
|
|
1806
2282
|
if (e.lineIndent < s) {
|
|
1807
|
-
i ===
|
|
2283
|
+
i === In ? e.result += R.repeat("\n", a ? 1 + c : c) : i === Pn && a && (e.result += "\n");
|
|
1808
2284
|
break;
|
|
1809
2285
|
}
|
|
1810
|
-
for (r ?
|
|
1811
|
-
|
|
2286
|
+
for (r ? U(d) ? (l = !0, e.result += R.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += R.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += R.repeat("\n", c) : e.result += R.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !H(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
2287
|
+
J(e, n, e.position, !1);
|
|
1812
2288
|
}
|
|
1813
2289
|
return !0;
|
|
1814
2290
|
}
|
|
1815
|
-
function
|
|
2291
|
+
function dr(e, t) {
|
|
1816
2292
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
1817
2293
|
if (e.firstTabInLine !== -1) return !1;
|
|
1818
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1819
|
-
if (s = !0, e.position++,
|
|
2294
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, q(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !W(o))));) {
|
|
2295
|
+
if (s = !0, e.position++, Y(e, !0, -1) && e.lineIndent <= t) {
|
|
1820
2296
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
1821
2297
|
continue;
|
|
1822
2298
|
}
|
|
1823
|
-
if (n = e.line,
|
|
2299
|
+
if (n = e.line, gr(e, t, Mn, !1, !0), a.push(e.result), Y(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) q(e, "bad indentation of a sequence entry");
|
|
1824
2300
|
else if (e.lineIndent < t) break;
|
|
1825
2301
|
}
|
|
1826
2302
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1827
2303
|
}
|
|
1828
|
-
function
|
|
2304
|
+
function fr(e, t, n) {
|
|
1829
2305
|
var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
|
|
1830
2306
|
if (e.firstTabInLine !== -1) return !1;
|
|
1831
2307
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
1832
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2308
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, q(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && W(r)) v === 63 ? (g && (nr(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : q(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
|
|
1833
2309
|
else {
|
|
1834
|
-
if (o = e.line, s = e.lineStart, c = e.position, !
|
|
2310
|
+
if (o = e.line, s = e.lineStart, c = e.position, !gr(e, n, jn, !1, !0)) break;
|
|
1835
2311
|
if (e.line === a) {
|
|
1836
|
-
for (v = e.input.charCodeAt(e.position);
|
|
1837
|
-
if (v === 58) v = e.input.charCodeAt(++e.position),
|
|
1838
|
-
else if (_)
|
|
2312
|
+
for (v = e.input.charCodeAt(e.position); U(v);) v = e.input.charCodeAt(++e.position);
|
|
2313
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), W(v) || q(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (nr(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
2314
|
+
else if (_) q(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1839
2315
|
else return e.tag = l, e.anchor = u, !0;
|
|
1840
|
-
} else if (_)
|
|
2316
|
+
} else if (_) q(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1841
2317
|
else return e.tag = l, e.anchor = u, !0;
|
|
1842
2318
|
}
|
|
1843
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position),
|
|
2319
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), gr(e, t, Nn, !0, i) && (g ? m = e.result : h = e.result), g || (nr(e, d, f, p, m, h, o, s, c), p = m = h = null), Y(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) q(e, "bad indentation of a mapping entry");
|
|
1844
2320
|
else if (e.lineIndent < t) break;
|
|
1845
2321
|
}
|
|
1846
|
-
return g &&
|
|
2322
|
+
return g && nr(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
1847
2323
|
}
|
|
1848
|
-
function
|
|
2324
|
+
function pr(e) {
|
|
1849
2325
|
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
1850
2326
|
if (o !== 33) return !1;
|
|
1851
|
-
if (e.tag !== null &&
|
|
2327
|
+
if (e.tag !== null && q(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
1852
2328
|
do
|
|
1853
2329
|
o = e.input.charCodeAt(++e.position);
|
|
1854
2330
|
while (o !== 0 && o !== 62);
|
|
1855
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
2331
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : q(e, "unexpected end of the stream within a verbatim tag");
|
|
1856
2332
|
} else {
|
|
1857
|
-
for (; o !== 0 && !
|
|
1858
|
-
a = e.input.slice(t, e.position),
|
|
2333
|
+
for (; o !== 0 && !W(o);) o === 33 && (r ? q(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Bn.test(i) || q(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2334
|
+
a = e.input.slice(t, e.position), zn.test(a) && q(e, "tag suffix cannot contain flow indicator characters");
|
|
1859
2335
|
}
|
|
1860
|
-
a && !
|
|
2336
|
+
a && !Vn.test(a) && q(e, "tag name cannot contain such characters: " + a);
|
|
1861
2337
|
try {
|
|
1862
2338
|
a = decodeURIComponent(a);
|
|
1863
2339
|
} catch {
|
|
1864
|
-
|
|
2340
|
+
q(e, "tag name is malformed: " + a);
|
|
1865
2341
|
}
|
|
1866
|
-
return n ? e.tag = a :
|
|
2342
|
+
return n ? e.tag = a : V.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : q(e, "undeclared tag handle \"" + i + "\""), !0;
|
|
1867
2343
|
}
|
|
1868
|
-
function
|
|
2344
|
+
function mr(e) {
|
|
1869
2345
|
var t, n = e.input.charCodeAt(e.position);
|
|
1870
2346
|
if (n !== 38) return !1;
|
|
1871
|
-
for (e.anchor !== null &&
|
|
1872
|
-
return e.position === t &&
|
|
2347
|
+
for (e.anchor !== null && q(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !W(n) && !G(n);) n = e.input.charCodeAt(++e.position);
|
|
2348
|
+
return e.position === t && q(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1873
2349
|
}
|
|
1874
|
-
function
|
|
2350
|
+
function hr(e) {
|
|
1875
2351
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
1876
2352
|
if (r !== 42) return !1;
|
|
1877
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
1878
|
-
return e.position === t &&
|
|
2353
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !W(r) && !G(r);) r = e.input.charCodeAt(++e.position);
|
|
2354
|
+
return e.position === t && q(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), V.call(e.anchorMap, n) || q(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Y(e, !0, -1), !0;
|
|
1879
2355
|
}
|
|
1880
|
-
function
|
|
2356
|
+
function gr(e, t, n, r, i) {
|
|
1881
2357
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
1882
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
1883
|
-
if (s &&= l || i, (c === 1 ||
|
|
2358
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Nn === n || Mn === n, r && Y(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; pr(e) || mr(e);) Y(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
2359
|
+
if (s &&= l || i, (c === 1 || Nn === n) && (h = An === n || jn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (dr(e, g) || fr(e, g, h)) || lr(e, h) ? u = !0 : (o && ur(e, h) || sr(e, h) || cr(e, h) ? u = !0 : hr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && q(e, "alias node should not have any properties")) : or(e, h, An === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && dr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1884
2360
|
else if (e.tag === "?") {
|
|
1885
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2361
|
+
for (e.result !== null && e.kind !== "scalar" && q(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
1886
2362
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1887
2363
|
break;
|
|
1888
2364
|
}
|
|
1889
2365
|
} else if (e.tag !== "!") {
|
|
1890
|
-
if (
|
|
2366
|
+
if (V.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1891
2367
|
else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
|
|
1892
2368
|
m = p[d];
|
|
1893
2369
|
break;
|
|
1894
2370
|
}
|
|
1895
|
-
m ||
|
|
2371
|
+
m || q(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && q(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : q(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1896
2372
|
}
|
|
1897
2373
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
1898
2374
|
}
|
|
1899
|
-
function
|
|
2375
|
+
function _r(e) {
|
|
1900
2376
|
var t = e.position, n, r, i, a = !1, o;
|
|
1901
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1902
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
1903
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
1904
|
-
for (;
|
|
2377
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (Y(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
2378
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
|
|
2379
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && q(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
2380
|
+
for (; U(o);) o = e.input.charCodeAt(++e.position);
|
|
1905
2381
|
if (o === 35) {
|
|
1906
2382
|
do
|
|
1907
2383
|
o = e.input.charCodeAt(++e.position);
|
|
1908
|
-
while (o !== 0 && !
|
|
2384
|
+
while (o !== 0 && !H(o));
|
|
1909
2385
|
break;
|
|
1910
2386
|
}
|
|
1911
|
-
if (
|
|
1912
|
-
for (n = e.position; o !== 0 && !
|
|
2387
|
+
if (H(o)) break;
|
|
2388
|
+
for (n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
|
|
1913
2389
|
i.push(e.input.slice(n, e.position));
|
|
1914
2390
|
}
|
|
1915
|
-
o !== 0 &&
|
|
2391
|
+
o !== 0 && rr(e), V.call(er, r) ? er[r](e, r, i) : $n(e, "unknown document directive \"" + r + "\"");
|
|
1916
2392
|
}
|
|
1917
|
-
if (
|
|
1918
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2393
|
+
if (Y(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Y(e, !0, -1)) : a && q(e, "directives end mark is expected"), gr(e, e.lineIndent - 1, Nn, !1, !0), Y(e, !0, -1), e.checkLineBreaks && Rn.test(e.input.slice(t, e.position)) && $n(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ir(e)) {
|
|
2394
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Y(e, !0, -1));
|
|
1919
2395
|
return;
|
|
1920
2396
|
}
|
|
1921
|
-
if (e.position < e.length - 1)
|
|
2397
|
+
if (e.position < e.length - 1) q(e, "end of the stream or a document separator is expected");
|
|
1922
2398
|
else return;
|
|
1923
2399
|
}
|
|
1924
|
-
function
|
|
2400
|
+
function vr(e, t) {
|
|
1925
2401
|
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1926
|
-
var n = new
|
|
1927
|
-
for (r !== -1 && (n.position = r,
|
|
1928
|
-
for (; n.position < n.length - 1;)
|
|
2402
|
+
var n = new Zn(e, t), r = e.indexOf("\0");
|
|
2403
|
+
for (r !== -1 && (n.position = r, q(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
2404
|
+
for (; n.position < n.length - 1;) _r(n);
|
|
1929
2405
|
return n.documents;
|
|
1930
2406
|
}
|
|
1931
|
-
function
|
|
2407
|
+
function yr(e, t, n) {
|
|
1932
2408
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
1933
|
-
var r =
|
|
2409
|
+
var r = vr(e, n);
|
|
1934
2410
|
if (typeof t != "function") return r;
|
|
1935
2411
|
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
1936
2412
|
}
|
|
1937
|
-
function
|
|
1938
|
-
var n =
|
|
2413
|
+
function br(e, t) {
|
|
2414
|
+
var n = vr(e, t);
|
|
1939
2415
|
if (n.length !== 0) {
|
|
1940
2416
|
if (n.length === 1) return n[0];
|
|
1941
|
-
throw new
|
|
2417
|
+
throw new z("expected a single document in the stream, but found more");
|
|
1942
2418
|
}
|
|
1943
2419
|
}
|
|
1944
|
-
var
|
|
1945
|
-
loadAll:
|
|
1946
|
-
load:
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1949
|
-
var
|
|
2420
|
+
var xr = {
|
|
2421
|
+
loadAll: yr,
|
|
2422
|
+
load: br
|
|
2423
|
+
}, Sr = Object.prototype.toString, Cr = Object.prototype.hasOwnProperty, wr = 65279, Tr = 9, Er = 10, Dr = 13, Or = 32, kr = 33, Ar = 34, jr = 35, Mr = 37, Nr = 38, Pr = 39, Fr = 42, Ir = 44, Lr = 45, Rr = 58, zr = 61, Br = 62, Vr = 63, Hr = 64, Ur = 91, Wr = 93, Gr = 96, Kr = 123, qr = 124, Jr = 125, X = {};
|
|
2424
|
+
X[0] = "\\0", X[7] = "\\a", X[8] = "\\b", X[9] = "\\t", X[10] = "\\n", X[11] = "\\v", X[12] = "\\f", X[13] = "\\r", X[27] = "\\e", X[34] = "\\\"", X[92] = "\\\\", X[133] = "\\N", X[160] = "\\_", X[8232] = "\\L", X[8233] = "\\P";
|
|
2425
|
+
var Yr = [
|
|
1950
2426
|
"y",
|
|
1951
2427
|
"Y",
|
|
1952
2428
|
"yes",
|
|
@@ -1963,236 +2439,236 @@ var Cr = [
|
|
|
1963
2439
|
"off",
|
|
1964
2440
|
"Off",
|
|
1965
2441
|
"OFF"
|
|
1966
|
-
],
|
|
1967
|
-
function
|
|
2442
|
+
], Xr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2443
|
+
function Zr(e, t) {
|
|
1968
2444
|
var n, r, i, a, o, s, c;
|
|
1969
2445
|
if (t === null) return {};
|
|
1970
|
-
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c &&
|
|
2446
|
+
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Cr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
1971
2447
|
return n;
|
|
1972
2448
|
}
|
|
1973
|
-
function
|
|
2449
|
+
function Qr(e) {
|
|
1974
2450
|
var t = e.toString(16).toUpperCase(), n, r;
|
|
1975
2451
|
if (e <= 255) n = "x", r = 2;
|
|
1976
2452
|
else if (e <= 65535) n = "u", r = 4;
|
|
1977
2453
|
else if (e <= 4294967295) n = "U", r = 8;
|
|
1978
|
-
else throw new
|
|
1979
|
-
return "\\" + n +
|
|
2454
|
+
else throw new z("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2455
|
+
return "\\" + n + R.repeat("0", r - t.length) + t;
|
|
1980
2456
|
}
|
|
1981
|
-
var
|
|
1982
|
-
function
|
|
1983
|
-
this.schema = e.schema ||
|
|
2457
|
+
var $r = 1, ei = 2;
|
|
2458
|
+
function ti(e) {
|
|
2459
|
+
this.schema = e.schema || kn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = R.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Zr(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? ei : $r, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1984
2460
|
}
|
|
1985
|
-
function
|
|
1986
|
-
for (var n =
|
|
2461
|
+
function ni(e, t) {
|
|
2462
|
+
for (var n = R.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
|
|
1987
2463
|
return a;
|
|
1988
2464
|
}
|
|
1989
|
-
function
|
|
1990
|
-
return "\n" +
|
|
2465
|
+
function ri(e, t) {
|
|
2466
|
+
return "\n" + R.repeat(" ", e.indent * t);
|
|
1991
2467
|
}
|
|
1992
|
-
function
|
|
2468
|
+
function ii(e, t) {
|
|
1993
2469
|
var n, r, i;
|
|
1994
2470
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
1995
2471
|
return !1;
|
|
1996
2472
|
}
|
|
1997
|
-
function
|
|
1998
|
-
return e ===
|
|
2473
|
+
function ai(e) {
|
|
2474
|
+
return e === Or || e === Tr;
|
|
1999
2475
|
}
|
|
2000
|
-
function
|
|
2001
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2476
|
+
function oi(e) {
|
|
2477
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== wr || 65536 <= e && e <= 1114111;
|
|
2002
2478
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return
|
|
2479
|
+
function si(e) {
|
|
2480
|
+
return oi(e) && e !== wr && e !== Dr && e !== Er;
|
|
2005
2481
|
}
|
|
2006
|
-
function
|
|
2007
|
-
var r =
|
|
2008
|
-
return (n ? r : r && e !==
|
|
2482
|
+
function ci(e, t, n) {
|
|
2483
|
+
var r = si(e), i = r && !ai(e);
|
|
2484
|
+
return (n ? r : r && e !== Ir && e !== Ur && e !== Wr && e !== Kr && e !== Jr) && e !== jr && !(t === Rr && !i) || si(t) && !ai(t) && e === jr || t === Rr && i;
|
|
2009
2485
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2486
|
+
function li(e) {
|
|
2487
|
+
return oi(e) && e !== wr && !ai(e) && e !== Lr && e !== Vr && e !== Rr && e !== Ir && e !== Ur && e !== Wr && e !== Kr && e !== Jr && e !== jr && e !== Nr && e !== Fr && e !== kr && e !== qr && e !== zr && e !== Br && e !== Pr && e !== Ar && e !== Mr && e !== Hr && e !== Gr;
|
|
2012
2488
|
}
|
|
2013
|
-
function
|
|
2014
|
-
return !
|
|
2489
|
+
function ui(e) {
|
|
2490
|
+
return !ai(e) && e !== Rr;
|
|
2015
2491
|
}
|
|
2016
|
-
function
|
|
2492
|
+
function di(e, t) {
|
|
2017
2493
|
var n = e.charCodeAt(t), r;
|
|
2018
2494
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
2019
2495
|
}
|
|
2020
|
-
function
|
|
2496
|
+
function fi(e) {
|
|
2021
2497
|
return /^\n* /.test(e);
|
|
2022
2498
|
}
|
|
2023
|
-
var
|
|
2024
|
-
function
|
|
2025
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h =
|
|
2499
|
+
var pi = 1, mi = 2, hi = 3, gi = 4, Z = 5;
|
|
2500
|
+
function _i(e, t, n, r, i, a, o, s) {
|
|
2501
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = li(di(e, 0)) && ui(di(e, e.length - 1));
|
|
2026
2502
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
2027
|
-
if (l =
|
|
2028
|
-
h &&=
|
|
2503
|
+
if (l = di(e, c), !oi(l)) return Z;
|
|
2504
|
+
h &&= ci(l, u, s), u = l;
|
|
2029
2505
|
}
|
|
2030
2506
|
else {
|
|
2031
2507
|
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
2032
|
-
if (l =
|
|
2033
|
-
else if (!
|
|
2034
|
-
h &&=
|
|
2508
|
+
if (l = di(e, c), l === Er) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
2509
|
+
else if (!oi(l)) return Z;
|
|
2510
|
+
h &&= ci(l, u, s), u = l;
|
|
2035
2511
|
}
|
|
2036
2512
|
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
2037
2513
|
}
|
|
2038
|
-
return !d && !f ? h && !o && !i(e) ?
|
|
2514
|
+
return !d && !f ? h && !o && !i(e) ? pi : a === ei ? Z : mi : n > 9 && fi(e) ? Z : o ? a === ei ? Z : mi : f ? gi : hi;
|
|
2039
2515
|
}
|
|
2040
|
-
function
|
|
2516
|
+
function vi(e, t, n, r, i) {
|
|
2041
2517
|
e.dump = function() {
|
|
2042
|
-
if (t.length === 0) return e.quotingType ===
|
|
2043
|
-
if (!e.noCompatMode && (
|
|
2518
|
+
if (t.length === 0) return e.quotingType === ei ? "\"\"" : "''";
|
|
2519
|
+
if (!e.noCompatMode && (Yr.indexOf(t) !== -1 || Xr.test(t))) return e.quotingType === ei ? "\"" + t + "\"" : "'" + t + "'";
|
|
2044
2520
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2045
2521
|
function c(t) {
|
|
2046
|
-
return
|
|
2522
|
+
return ii(e, t);
|
|
2047
2523
|
}
|
|
2048
|
-
switch (
|
|
2049
|
-
case
|
|
2050
|
-
case
|
|
2051
|
-
case
|
|
2052
|
-
case
|
|
2053
|
-
case
|
|
2054
|
-
default: throw new
|
|
2524
|
+
switch (_i(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
|
|
2525
|
+
case pi: return t;
|
|
2526
|
+
case mi: return "'" + t.replace(/'/g, "''") + "'";
|
|
2527
|
+
case hi: return "|" + yi(t, e.indent) + bi(ni(t, a));
|
|
2528
|
+
case gi: return ">" + yi(t, e.indent) + bi(ni(xi(t, o), a));
|
|
2529
|
+
case Z: return "\"" + Ci(t) + "\"";
|
|
2530
|
+
default: throw new z("impossible error: invalid scalar style");
|
|
2055
2531
|
}
|
|
2056
2532
|
}();
|
|
2057
2533
|
}
|
|
2058
|
-
function
|
|
2059
|
-
var n =
|
|
2534
|
+
function yi(e, t) {
|
|
2535
|
+
var n = fi(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
2060
2536
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
2061
2537
|
}
|
|
2062
|
-
function
|
|
2538
|
+
function bi(e) {
|
|
2063
2539
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
2064
2540
|
}
|
|
2065
|
-
function
|
|
2541
|
+
function xi(e, t) {
|
|
2066
2542
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2067
2543
|
var r = e.indexOf("\n");
|
|
2068
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r,
|
|
2544
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, Si(e.slice(0, r), t);
|
|
2069
2545
|
}(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
2070
2546
|
var s = o[1], c = o[2];
|
|
2071
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") +
|
|
2547
|
+
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Si(c, t), i = a;
|
|
2072
2548
|
}
|
|
2073
2549
|
return r;
|
|
2074
2550
|
}
|
|
2075
|
-
function
|
|
2551
|
+
function Si(e, t) {
|
|
2076
2552
|
if (e === "" || e[0] === " ") return e;
|
|
2077
2553
|
for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
2078
2554
|
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
2079
2555
|
}
|
|
2080
|
-
function
|
|
2081
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n =
|
|
2556
|
+
function Ci(e) {
|
|
2557
|
+
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = di(e, i), r = X[n], !r && oi(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Qr(n);
|
|
2082
2558
|
return t;
|
|
2083
2559
|
}
|
|
2084
|
-
function
|
|
2560
|
+
function wi(e, t, n) {
|
|
2085
2561
|
var r = "", i = e.tag, a, o, s;
|
|
2086
|
-
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (
|
|
2562
|
+
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Q(e, t, s, !1, !1) || s === void 0 && Q(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2087
2563
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2088
2564
|
}
|
|
2089
|
-
function
|
|
2565
|
+
function Ti(e, t, n, r) {
|
|
2090
2566
|
var i = "", a = e.tag, o, s, c;
|
|
2091
|
-
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (
|
|
2567
|
+
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ri(e, t)), e.dump && Er === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2092
2568
|
e.tag = a, e.dump = i || "[]";
|
|
2093
2569
|
}
|
|
2094
|
-
function
|
|
2570
|
+
function Ei(e, t, n) {
|
|
2095
2571
|
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
2096
|
-
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)),
|
|
2572
|
+
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Q(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Q(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
2097
2573
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2098
2574
|
}
|
|
2099
|
-
function
|
|
2575
|
+
function Di(e, t, n, r) {
|
|
2100
2576
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
2101
2577
|
if (e.sortKeys === !0) o.sort();
|
|
2102
2578
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
2103
|
-
else if (e.sortKeys) throw new
|
|
2104
|
-
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f +=
|
|
2579
|
+
else if (e.sortKeys) throw new z("sortKeys must be a boolean or a function");
|
|
2580
|
+
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ri(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Q(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Er === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ri(e, t)), Q(e, t + 1, u, !0, d) && (e.dump && Er === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
|
|
2105
2581
|
e.tag = a, e.dump = i || "{}";
|
|
2106
2582
|
}
|
|
2107
|
-
function
|
|
2583
|
+
function Oi(e, t, n) {
|
|
2108
2584
|
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
2109
2585
|
for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
2110
2586
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2111
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle,
|
|
2112
|
-
else if (
|
|
2113
|
-
else throw new
|
|
2587
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, Sr.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
2588
|
+
else if (Cr.call(s.represent, c)) r = s.represent[c](t, c);
|
|
2589
|
+
else throw new z("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
2114
2590
|
e.dump = r;
|
|
2115
2591
|
}
|
|
2116
2592
|
return !0;
|
|
2117
2593
|
}
|
|
2118
2594
|
return !1;
|
|
2119
2595
|
}
|
|
2120
|
-
function
|
|
2121
|
-
e.tag = null, e.dump = n,
|
|
2122
|
-
var s =
|
|
2596
|
+
function Q(e, t, n, r, i, a, o) {
|
|
2597
|
+
e.tag = null, e.dump = n, Oi(e, n, !1) || Oi(e, n, !0);
|
|
2598
|
+
var s = Sr.call(e.dump), c = r, l;
|
|
2123
2599
|
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
2124
2600
|
var u = s === "[object Object]" || s === "[object Array]", d, f;
|
|
2125
2601
|
if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
|
|
2126
2602
|
else {
|
|
2127
|
-
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (
|
|
2128
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
2129
|
-
else if (s === "[object String]") e.tag !== "?" &&
|
|
2603
|
+
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Di(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Ei(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2604
|
+
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Ti(e, t - 1, e.dump, i) : Ti(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (wi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2605
|
+
else if (s === "[object String]") e.tag !== "?" && vi(e, e.dump, t, a, c);
|
|
2130
2606
|
else if (s === "[object Undefined]") return !1;
|
|
2131
2607
|
else {
|
|
2132
2608
|
if (e.skipInvalid) return !1;
|
|
2133
|
-
throw new
|
|
2609
|
+
throw new z("unacceptable kind of an object to dump " + s);
|
|
2134
2610
|
}
|
|
2135
2611
|
e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
|
|
2136
2612
|
}
|
|
2137
2613
|
return !0;
|
|
2138
2614
|
}
|
|
2139
|
-
function
|
|
2615
|
+
function ki(e, t) {
|
|
2140
2616
|
var n = [], r = [], i, a;
|
|
2141
|
-
for (
|
|
2617
|
+
for (Ai(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
2142
2618
|
t.usedDuplicates = Array(a);
|
|
2143
2619
|
}
|
|
2144
|
-
function
|
|
2620
|
+
function Ai(e, t, n) {
|
|
2145
2621
|
var r, i, a;
|
|
2146
2622
|
if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
2147
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1)
|
|
2148
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2623
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Ai(e[i], t, n);
|
|
2624
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Ai(e[r[i]], t, n);
|
|
2149
2625
|
}
|
|
2150
|
-
function
|
|
2626
|
+
function ji(e, t) {
|
|
2151
2627
|
t ||= {};
|
|
2152
|
-
var n = new
|
|
2153
|
-
n.noRefs ||
|
|
2628
|
+
var n = new ti(t);
|
|
2629
|
+
n.noRefs || ki(e, n);
|
|
2154
2630
|
var r = e;
|
|
2155
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2631
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Q(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
2156
2632
|
}
|
|
2157
|
-
var
|
|
2158
|
-
function
|
|
2633
|
+
var Mi = { dump: ji };
|
|
2634
|
+
function Ni(e, t) {
|
|
2159
2635
|
return function() {
|
|
2160
2636
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2161
2637
|
};
|
|
2162
2638
|
}
|
|
2163
|
-
var
|
|
2164
|
-
Type:
|
|
2165
|
-
Schema:
|
|
2166
|
-
FAILSAFE_SCHEMA:
|
|
2167
|
-
JSON_SCHEMA:
|
|
2168
|
-
CORE_SCHEMA:
|
|
2169
|
-
DEFAULT_SCHEMA:
|
|
2170
|
-
load:
|
|
2171
|
-
loadAll:
|
|
2172
|
-
dump:
|
|
2173
|
-
YAMLException:
|
|
2639
|
+
var Pi = {
|
|
2640
|
+
Type: B,
|
|
2641
|
+
Schema: Et,
|
|
2642
|
+
FAILSAFE_SCHEMA: At,
|
|
2643
|
+
JSON_SCHEMA: $t,
|
|
2644
|
+
CORE_SCHEMA: en,
|
|
2645
|
+
DEFAULT_SCHEMA: kn,
|
|
2646
|
+
load: xr.load,
|
|
2647
|
+
loadAll: xr.loadAll,
|
|
2648
|
+
dump: Mi.dump,
|
|
2649
|
+
YAMLException: z,
|
|
2174
2650
|
types: {
|
|
2175
|
-
binary:
|
|
2176
|
-
float:
|
|
2177
|
-
map:
|
|
2178
|
-
null:
|
|
2179
|
-
pairs:
|
|
2180
|
-
set:
|
|
2181
|
-
timestamp:
|
|
2182
|
-
bool:
|
|
2183
|
-
int:
|
|
2184
|
-
merge:
|
|
2185
|
-
omap:
|
|
2186
|
-
seq:
|
|
2187
|
-
str:
|
|
2651
|
+
binary: hn,
|
|
2652
|
+
float: Qt,
|
|
2653
|
+
map: kt,
|
|
2654
|
+
null: Pt,
|
|
2655
|
+
pairs: wn,
|
|
2656
|
+
set: On,
|
|
2657
|
+
timestamp: sn,
|
|
2658
|
+
bool: Rt,
|
|
2659
|
+
int: Gt,
|
|
2660
|
+
merge: ln,
|
|
2661
|
+
omap: bn,
|
|
2662
|
+
seq: Ot,
|
|
2663
|
+
str: Dt
|
|
2188
2664
|
},
|
|
2189
|
-
safeLoad:
|
|
2190
|
-
safeLoadAll:
|
|
2191
|
-
safeDump:
|
|
2192
|
-
},
|
|
2193
|
-
let t =
|
|
2665
|
+
safeLoad: Ni("safeLoad", "load"),
|
|
2666
|
+
safeLoadAll: Ni("safeLoadAll", "loadAll"),
|
|
2667
|
+
safeDump: Ni("safeDump", "dump")
|
|
2668
|
+
}, Fi = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Ii = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Li = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Ri = (e) => {
|
|
2669
|
+
let t = Li(e);
|
|
2194
2670
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2195
|
-
},
|
|
2671
|
+
}, zi = {
|
|
2196
2672
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2197
2673
|
width: 24,
|
|
2198
2674
|
height: 24,
|
|
@@ -2202,135 +2678,58 @@ var ci = {
|
|
|
2202
2678
|
strokeWidth: 2,
|
|
2203
2679
|
strokeLinecap: "round",
|
|
2204
2680
|
strokeLinejoin: "round"
|
|
2205
|
-
},
|
|
2681
|
+
}, Bi = (e) => {
|
|
2206
2682
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
2207
2683
|
return !1;
|
|
2208
|
-
},
|
|
2209
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
2684
|
+
}, Vi = c({}), Hi = () => p(Vi), Ui = u(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
|
|
2685
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Hi() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
2210
2686
|
return l("svg", {
|
|
2211
2687
|
ref: c,
|
|
2212
|
-
...
|
|
2213
|
-
width: t ?? u ??
|
|
2214
|
-
height: t ?? u ??
|
|
2688
|
+
...zi,
|
|
2689
|
+
width: t ?? u ?? zi.width,
|
|
2690
|
+
height: t ?? u ?? zi.height,
|
|
2215
2691
|
stroke: e ?? p,
|
|
2216
2692
|
strokeWidth: h,
|
|
2217
|
-
className:
|
|
2218
|
-
...!a && !
|
|
2693
|
+
className: Fi("lucide", m, i),
|
|
2694
|
+
...!a && !Bi(s) && { "aria-hidden": "true" },
|
|
2219
2695
|
...s
|
|
2220
2696
|
}, [...o.map(([e, t]) => l(e, t)), ...Array.isArray(a) ? a : [a]]);
|
|
2221
|
-
}),
|
|
2222
|
-
let n = u(({ className: n, ...r }, i) => l(
|
|
2697
|
+
}), Wi = (e, t) => {
|
|
2698
|
+
let n = u(({ className: n, ...r }, i) => l(Ui, {
|
|
2223
2699
|
ref: i,
|
|
2224
2700
|
iconNode: t,
|
|
2225
|
-
className:
|
|
2701
|
+
className: Fi(`lucide-${Ii(Ri(e))}`, `lucide-${e}`, n),
|
|
2226
2702
|
...r
|
|
2227
2703
|
}));
|
|
2228
|
-
return n.displayName =
|
|
2229
|
-
},
|
|
2704
|
+
return n.displayName = Ri(e), n;
|
|
2705
|
+
}, Gi = Wi("check", [["path", {
|
|
2230
2706
|
d: "M20 6 9 17l-5-5",
|
|
2231
2707
|
key: "1gmf2c"
|
|
2232
|
-
}]]),
|
|
2708
|
+
}]]), Ki = Wi("minus", [["path", {
|
|
2233
2709
|
d: "M5 12h14",
|
|
2234
2710
|
key: "1ays0h"
|
|
2235
|
-
}]]),
|
|
2711
|
+
}]]), qi = Wi("plus", [["path", {
|
|
2236
2712
|
d: "M5 12h14",
|
|
2237
2713
|
key: "1ays0h"
|
|
2238
2714
|
}], ["path", {
|
|
2239
2715
|
d: "M12 5v14",
|
|
2240
2716
|
key: "s699le"
|
|
2241
|
-
}]]),
|
|
2242
|
-
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
2243
|
-
$id: "https://seedfinder.app/jaml.schema.json",
|
|
2244
|
-
title: "JAML — Jimbo's Ante Markup Language",
|
|
2245
|
-
description: "Declarative filter language for Balatro seed searches. A JAML document specifies the criteria a seed must satisfy; the Motely engine compiles and runs it.",
|
|
2246
|
-
version: "17.4.5",
|
|
2247
|
-
type: "object",
|
|
2248
|
-
additionalProperties: !1,
|
|
2249
|
-
properties: {
|
|
2250
|
-
id: { type: "string" },
|
|
2251
|
-
name: { type: "string" },
|
|
2252
|
-
author: { type: "string" },
|
|
2253
|
-
dateCreated: { type: "string" },
|
|
2254
|
-
description: { type: "string" },
|
|
2255
|
-
deck: { $ref: "#/$defs/MotelyDeck" },
|
|
2256
|
-
stake: { $ref: "#/$defs/MotelyStake" },
|
|
2257
|
-
defaults: { $ref: "#/$defs/JamlDefaults" },
|
|
2258
|
-
must: {
|
|
2259
|
-
type: "array",
|
|
2260
|
-
items: { $ref: "#/$defs/JamlClauseUnion" }
|
|
2261
|
-
},
|
|
2262
|
-
should: {
|
|
2263
|
-
type: "array",
|
|
2264
|
-
items: { $ref: "#/$defs/JamlClauseUnion" }
|
|
2265
|
-
},
|
|
2266
|
-
mustNot: {
|
|
2267
|
-
type: "array",
|
|
2268
|
-
items: { $ref: "#/$defs/JamlClauseUnion" }
|
|
2269
|
-
},
|
|
2270
|
-
hashtags: {
|
|
2271
|
-
type: "array",
|
|
2272
|
-
items: { type: "string" }
|
|
2273
|
-
},
|
|
2274
|
-
seeds: {
|
|
2275
|
-
type: "array",
|
|
2276
|
-
items: { type: "string" }
|
|
2277
|
-
}
|
|
2278
|
-
},
|
|
2279
|
-
$defs: /* @__PURE__ */ JSON.parse("{\"JamlDefaults\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"antes\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"score\":{\"type\":\"integer\"}}},\"JamlClauseUnion\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"joker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJoker\"}]},\"jokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJoker\"}},\"commonJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerCommon\"}]},\"commonJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerCommon\"}},\"uncommonJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerUncommon\"}]},\"uncommonJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerUncommon\"}},\"rareJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerRare\"}]},\"rareJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerRare\"}},\"legendaryJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerLegendary\"}]},\"legendaryJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerLegendary\"}},\"voucher\":{\"$ref\":\"#/$defs/MotelyVoucher\"},\"vouchers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyVoucher\"}},\"tarotCard\":{\"$ref\":\"#/$defs/MotelyTarotCard\"},\"tarotCards\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyTarotCard\"}},\"spectralCard\":{\"$ref\":\"#/$defs/MotelySpectralCard\"},\"spectralCards\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelySpectralCard\"}},\"planetCard\":{\"$ref\":\"#/$defs/MotelyPlanetCard\"},\"boss\":{\"$ref\":\"#/$defs/MotelyBossBlind\"},\"tag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"smallBlindTag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"bigBlindTag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"standardCard\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/$defs/StandardCardConfig\"}]},\"standardCards\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/$defs/StandardCardConfig\"}]}},\"erraticRank\":{\"type\":\"string\"},\"erraticSuit\":{\"type\":\"string\"},\"erraticCard\":{\"type\":\"string\"},\"startingDraw\":{\"type\":\"string\"},\"event\":{\"$ref\":\"#/$defs/MotelyEventType\"},\"luckyMoney\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"luckyMult\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"misprintMult\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wheelOfFortune\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"cavendishExtinct\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"grosMichelExtinct\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"spaceLevelup\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"businessPayout\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"bloodstoneTrigger\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"parkingPayout\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"glassDestroy\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wheelStaysFlipped\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"antes\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"score\":{\"type\":\"integer\"},\"min\":{\"type\":\"integer\"},\"max\":{\"type\":\"integer\"},\"label\":{\"type\":\"string\"},\"edition\":{\"$ref\":\"#/$defs/MotelyItemEdition\"},\"stickers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerSticker\"}},\"seal\":{\"$ref\":\"#/$defs/MotelyItemSeal\"},\"enhancement\":{\"$ref\":\"#/$defs/MotelyItemEnhancement\"},\"rank\":{\"type\":\"string\"},\"suit\":{\"type\":\"string\"},\"rolls\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"soulEditionRolls\":{\"type\":\"integer\"},\"soulCardOnly\":{\"type\":\"boolean\"},\"and\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"or\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"clauses\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"mode\":{\"type\":\"string\"},\"judgement\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wraith\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"minShopItem\":{\"type\":\"integer\"},\"maxShopItem\":{\"type\":\"integer\"},\"sources\":{\"$ref\":\"#/$defs/JamlSources\"}}},\"MotelyJoker\":{\"type\":\"string\",\"enum\":[\"Joker\",\"GreedyJoker\",\"LustyJoker\",\"WrathfulJoker\",\"GluttonousJoker\",\"JollyJoker\",\"ZanyJoker\",\"MadJoker\",\"CrazyJoker\",\"DrollJoker\",\"SlyJoker\",\"WilyJoker\",\"CleverJoker\",\"DeviousJoker\",\"CraftyJoker\",\"HalfJoker\",\"CreditCard\",\"Banner\",\"MysticSummit\",\"EightBall\",\"Misprint\",\"RaisedFist\",\"ChaostheClown\",\"ScaryFace\",\"AbstractJoker\",\"DelayedGratification\",\"GrosMichel\",\"EvenSteven\",\"OddTodd\",\"Scholar\",\"BusinessCard\",\"Supernova\",\"RideTheBus\",\"Egg\",\"Runner\",\"IceCream\",\"Splash\",\"BlueJoker\",\"FacelessJoker\",\"GreenJoker\",\"Superposition\",\"ToDoList\",\"Cavendish\",\"RedCard\",\"SquareJoker\",\"RiffRaff\",\"Photograph\",\"ReservedParking\",\"MailInRebate\",\"Hallucination\",\"FortuneTeller\",\"Juggler\",\"Drunkard\",\"GoldenJoker\",\"Popcorn\",\"WalkieTalkie\",\"SmileyFace\",\"GoldenTicket\",\"Swashbuckler\",\"HangingChad\",\"ShootTheMoon\",\"JokerStencil\",\"FourFingers\",\"Mime\",\"CeremonialDagger\",\"MarbleJoker\",\"LoyaltyCard\",\"Dusk\",\"Fibonacci\",\"SteelJoker\",\"Hack\",\"Pareidolia\",\"SpaceJoker\",\"Burglar\",\"Blackboard\",\"SixthSense\",\"Constellation\",\"Hiker\",\"CardSharp\",\"Madness\",\"Seance\",\"Vampire\",\"Shortcut\",\"Hologram\",\"Cloud9\",\"Rocket\",\"MidasMask\",\"Luchador\",\"GiftCard\",\"TurtleBean\",\"Erosion\",\"ToTheMoon\",\"StoneJoker\",\"LuckyCat\",\"Bull\",\"DietCola\",\"TradingCard\",\"FlashCard\",\"SpareTrousers\",\"Ramen\",\"Seltzer\",\"Castle\",\"MrBones\",\"Acrobat\",\"SockAndBuskin\",\"Troubadour\",\"Certificate\",\"SmearedJoker\",\"Throwback\",\"RoughGem\",\"Bloodstone\",\"Arrowhead\",\"OnyxAgate\",\"GlassJoker\",\"Showman\",\"FlowerPot\",\"MerryAndy\",\"OopsAll6s\",\"TheIdol\",\"SeeingDouble\",\"Matador\",\"Satellite\",\"Cartomancer\",\"Astronomer\",\"Bootstraps\",\"DNA\",\"Vagabond\",\"Baron\",\"Obelisk\",\"BaseballCard\",\"AncientJoker\",\"Campfire\",\"Blueprint\",\"WeeJoker\",\"HitTheRoad\",\"TheDuo\",\"TheTrio\",\"TheFamily\",\"TheOrder\",\"TheTribe\",\"Stuntman\",\"InvisibleJoker\",\"Brainstorm\",\"DriversLicense\",\"BurntJoker\",\"Canio\",\"Triboulet\",\"Yorick\",\"Chicot\",\"Perkeo\"]},\"MotelyJokerCommon\":{\"type\":\"string\",\"enum\":[\"Joker\",\"GreedyJoker\",\"LustyJoker\",\"WrathfulJoker\",\"GluttonousJoker\",\"JollyJoker\",\"ZanyJoker\",\"MadJoker\",\"CrazyJoker\",\"DrollJoker\",\"SlyJoker\",\"WilyJoker\",\"CleverJoker\",\"DeviousJoker\",\"CraftyJoker\",\"HalfJoker\",\"CreditCard\",\"Banner\",\"MysticSummit\",\"EightBall\",\"Misprint\",\"RaisedFist\",\"ChaostheClown\",\"ScaryFace\",\"AbstractJoker\",\"DelayedGratification\",\"GrosMichel\",\"EvenSteven\",\"OddTodd\",\"Scholar\",\"BusinessCard\",\"Supernova\",\"RideTheBus\",\"Egg\",\"Runner\",\"IceCream\",\"Splash\",\"BlueJoker\",\"FacelessJoker\",\"GreenJoker\",\"Superposition\",\"ToDoList\",\"Cavendish\",\"RedCard\",\"SquareJoker\",\"RiffRaff\",\"Photograph\",\"ReservedParking\",\"MailInRebate\",\"Hallucination\",\"FortuneTeller\",\"Juggler\",\"Drunkard\",\"GoldenJoker\",\"Popcorn\",\"WalkieTalkie\",\"SmileyFace\",\"GoldenTicket\",\"Swashbuckler\",\"HangingChad\",\"ShootTheMoon\"]},\"MotelyJokerUncommon\":{\"type\":\"string\",\"enum\":[\"JokerStencil\",\"FourFingers\",\"Mime\",\"CeremonialDagger\",\"MarbleJoker\",\"LoyaltyCard\",\"Dusk\",\"Fibonacci\",\"SteelJoker\",\"Hack\",\"Pareidolia\",\"SpaceJoker\",\"Burglar\",\"Blackboard\",\"SixthSense\",\"Constellation\",\"Hiker\",\"CardSharp\",\"Madness\",\"Seance\",\"Vampire\",\"Shortcut\",\"Hologram\",\"Cloud9\",\"Rocket\",\"MidasMask\",\"Luchador\",\"GiftCard\",\"TurtleBean\",\"Erosion\",\"ToTheMoon\",\"StoneJoker\",\"LuckyCat\",\"Bull\",\"DietCola\",\"TradingCard\",\"FlashCard\",\"SpareTrousers\",\"Ramen\",\"Seltzer\",\"Castle\",\"MrBones\",\"Acrobat\",\"SockAndBuskin\",\"Troubadour\",\"Certificate\",\"SmearedJoker\",\"Throwback\",\"RoughGem\",\"Bloodstone\",\"Arrowhead\",\"OnyxAgate\",\"GlassJoker\",\"Showman\",\"FlowerPot\",\"MerryAndy\",\"OopsAll6s\",\"TheIdol\",\"SeeingDouble\",\"Matador\",\"Satellite\",\"Cartomancer\",\"Astronomer\",\"Bootstraps\"]},\"MotelyJokerRare\":{\"type\":\"string\",\"enum\":[\"DNA\",\"Vagabond\",\"Baron\",\"Obelisk\",\"BaseballCard\",\"AncientJoker\",\"Campfire\",\"Blueprint\",\"WeeJoker\",\"HitTheRoad\",\"TheDuo\",\"TheTrio\",\"TheFamily\",\"TheOrder\",\"TheTribe\",\"Stuntman\",\"InvisibleJoker\",\"Brainstorm\",\"DriversLicense\",\"BurntJoker\"]},\"MotelyJokerLegendary\":{\"type\":\"string\",\"enum\":[\"Canio\",\"Triboulet\",\"Yorick\",\"Chicot\",\"Perkeo\"]},\"MotelyVoucher\":{\"type\":\"string\",\"enum\":[\"Overstock\",\"OverstockPlus\",\"ClearanceSale\",\"Liquidation\",\"Hone\",\"GlowUp\",\"RerollSurplus\",\"RerollGlut\",\"CrystalBall\",\"OmenGlobe\",\"Telescope\",\"Observatory\",\"Grabber\",\"NachoTong\",\"Wasteful\",\"Recyclomancy\",\"TarotMerchant\",\"TarotTycoon\",\"PlanetMerchant\",\"PlanetTycoon\",\"SeedMoney\",\"MoneyTree\",\"Blank\",\"Antimatter\",\"MagicTrick\",\"Illusion\",\"Hieroglyph\",\"Petroglyph\",\"DirectorsCut\",\"Retcon\",\"PaintBrush\",\"Palette\"]},\"MotelyTarotCard\":{\"type\":\"string\",\"enum\":[\"TheFool\",\"TheMagician\",\"TheHighPriestess\",\"TheEmpress\",\"TheEmperor\",\"TheHierophant\",\"TheLovers\",\"TheChariot\",\"Justice\",\"TheHermit\",\"TheWheelOfFortune\",\"Strength\",\"TheHangedMan\",\"Death\",\"Temperance\",\"TheDevil\",\"TheTower\",\"TheStar\",\"TheMoon\",\"TheSun\",\"Judgement\",\"TheWorld\"]},\"MotelySpectralCard\":{\"type\":\"string\",\"enum\":[\"Familiar\",\"Grim\",\"Incantation\",\"Talisman\",\"Aura\",\"Wraith\",\"Sigil\",\"Ouija\",\"Ectoplasm\",\"Immolate\",\"Ankh\",\"DejaVu\",\"Hex\",\"Trance\",\"Medium\",\"Cryptid\",\"TheSoul\",\"BlackHole\"]},\"MotelyPlanetCard\":{\"type\":\"string\",\"enum\":[\"Mercury\",\"Venus\",\"Earth\",\"Mars\",\"Jupiter\",\"Saturn\",\"Uranus\",\"Neptune\",\"Pluto\",\"PlanetX\",\"Ceres\",\"Eris\"]},\"MotelyBossBlind\":{\"type\":\"string\",\"enum\":[\"TheClub\",\"TheGoad\",\"TheHead\",\"TheHook\",\"TheManacle\",\"ThePillar\",\"ThePsychic\",\"TheWindow\",\"TheArm\",\"TheFish\",\"TheFlint\",\"TheHouse\",\"TheMark\",\"TheMouth\",\"TheNeedle\",\"TheWall\",\"TheWater\",\"TheWheel\",\"TheEye\",\"TheTooth\",\"ThePlant\",\"TheSerpent\",\"TheOx\",\"AmberAcorn\",\"CeruleanBell\",\"CrimsonHeart\",\"VerdantLeaf\",\"VioletVessel\"]},\"MotelyTag\":{\"type\":\"string\",\"enum\":[\"UncommonTag\",\"RareTag\",\"NegativeTag\",\"FoilTag\",\"HolographicTag\",\"PolychromeTag\",\"InvestmentTag\",\"VoucherTag\",\"BossTag\",\"StandardTag\",\"CharmTag\",\"MeteorTag\",\"BuffoonTag\",\"HandyTag\",\"GarbageTag\",\"EtherealTag\",\"CouponTag\",\"DoubleTag\",\"JuggleTag\",\"D6Tag\",\"TopupTag\",\"SpeedTag\",\"OrbitalTag\",\"EconomyTag\"]},\"StandardCardConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"rank\":{\"type\":\"string\"},\"suit\":{\"type\":\"string\"},\"seal\":{\"$ref\":\"#/$defs/MotelyItemSeal\"},\"enhancement\":{\"$ref\":\"#/$defs/MotelyItemEnhancement\"},\"edition\":{\"$ref\":\"#/$defs/MotelyItemEdition\"},\"sources\":{\"$ref\":\"#/$defs/JamlSources\"}}},\"MotelyItemSeal\":{\"type\":\"string\",\"enum\":[\"None\",\"Gold\",\"Red\",\"Blue\",\"Purple\"]},\"MotelyItemEnhancement\":{\"type\":\"string\",\"enum\":[\"None\",\"Bonus\",\"Mult\",\"Wild\",\"Glass\",\"Steel\",\"Stone\",\"Gold\",\"Lucky\"]},\"MotelyItemEdition\":{\"type\":\"string\",\"enum\":[\"None\",\"Foil\",\"Holographic\",\"Polychrome\",\"Negative\"]},\"JamlSources\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"minShopItem\":{\"type\":\"integer\"},\"maxShopItem\":{\"type\":\"integer\"},\"tags\":{\"type\":\"boolean\"},\"requireMega\":{\"type\":\"boolean\"},\"charmTag\":{\"type\":\"boolean\"},\"etherealTag\":{\"type\":\"boolean\"},\"judgement\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wraith\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"soulCard\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"arcanaPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"spectralPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"riffRaff\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"purpleSealOrEightBall\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"emperor\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"sixthSense\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"seance\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"certificate\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"incantation\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"familiar\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"grim\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"deckDraw\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"commonShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"allShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}}}},\"MotelyEventType\":{\"type\":\"string\",\"enum\":[\"LuckyMoney\",\"LuckyMult\",\"MisprintMult\",\"WheelOfFortune\",\"CavendishExtinct\",\"GrosMichelExtinct\",\"SpaceLevelup\",\"BusinessPayout\",\"BloodstoneTrigger\",\"ParkingPayout\",\"GlassDestroy\",\"WheelStaysFlipped\"]},\"MotelyJokerSticker\":{\"type\":\"string\",\"enum\":[\"None\",\"Eternal\",\"Perishable\",\"Rental\"]},\"MotelyDeck\":{\"type\":\"string\",\"enum\":[\"Red\",\"Blue\",\"Yellow\",\"Green\",\"Black\",\"Magic\",\"Nebula\",\"Ghost\",\"Abandoned\",\"Checkered\",\"Zodiac\",\"Painted\",\"Anaglyph\",\"Plasma\",\"Erratic\"]},\"MotelyStake\":{\"type\":\"string\",\"enum\":[\"White\",\"Red\",\"Green\",\"Black\",\"Blue\",\"Purple\",\"Orange\",\"Gold\"]}}")
|
|
2280
|
-
}, Ci = Si.definitions?.clause?.properties ?? {};
|
|
2281
|
-
Si.version;
|
|
2282
|
-
var wi = [
|
|
2283
|
-
"id",
|
|
2284
|
-
"name",
|
|
2285
|
-
"description",
|
|
2286
|
-
"author",
|
|
2287
|
-
"dateCreated",
|
|
2288
|
-
"deck",
|
|
2289
|
-
"stake",
|
|
2290
|
-
"seeds",
|
|
2291
|
-
"hashtags",
|
|
2292
|
-
"aesthetics",
|
|
2293
|
-
"defaults"
|
|
2294
|
-
], Ti = [
|
|
2295
|
-
"must",
|
|
2296
|
-
"should",
|
|
2297
|
-
"mustNot"
|
|
2298
|
-
], Ei = Ci.type?.enum ?? [], Di = Object.keys(Ci), Oi = (() => {
|
|
2299
|
-
let e = Ci.sources?.properties;
|
|
2300
|
-
return e ? Object.keys(e) : ["shopItems", "boosterPacks"];
|
|
2301
|
-
})();
|
|
2302
|
-
function Q(e) {
|
|
2303
|
-
let t = Si.properties?.[e];
|
|
2304
|
-
if (t?.enum) return t.enum;
|
|
2305
|
-
if (t?.items?.enum) return t.items.enum;
|
|
2306
|
-
let n = Ci[e];
|
|
2307
|
-
return n?.enum ? n.enum : n?.items?.enum ? n.items.enum : null;
|
|
2308
|
-
}
|
|
2309
|
-
Q("deck"), Q("stake"), Q("edition"), Q("seal"), Q("enhancement"), Q("rank"), Q("suit"), Q("stickers"), [
|
|
2310
|
-
...Ti,
|
|
2311
|
-
...wi,
|
|
2312
|
-
...Ei,
|
|
2313
|
-
...Di,
|
|
2314
|
-
...Oi
|
|
2315
|
-
];
|
|
2316
|
-
//#endregion
|
|
2317
|
-
//#region src/lib/jaml/jamlData.ts
|
|
2318
|
-
var ki = [...Ei], Ai = [
|
|
2717
|
+
}]]), Ji = [.../* @__PURE__ */ "joker.jokers.commonJoker.commonJokers.uncommonJoker.uncommonJokers.rareJoker.rareJokers.legendaryJoker.legendaryJokers.voucher.vouchers.tarotCard.tarotCards.spectralCard.spectralCards.planetCard.boss.tag.smallBlindTag.bigBlindTag.standardCard.standardCards.erraticRank.erraticSuit.erraticCard.startingDraw.event.luckyMoney.luckyMult.misprintMult.wheelOfFortune.cavendishExtinct.grosMichelExtinct.spaceLevelup.businessPayout.bloodstoneTrigger.parkingPayout.glassDestroy.wheelStaysFlipped.and.or.clauses".split(".")], Yi = [
|
|
2319
2718
|
"antes",
|
|
2320
2719
|
"tags",
|
|
2321
2720
|
"labels"
|
|
2322
|
-
],
|
|
2721
|
+
], Xi = [
|
|
2323
2722
|
"must",
|
|
2324
2723
|
"should",
|
|
2325
2724
|
"mustNot",
|
|
2326
2725
|
"any",
|
|
2327
2726
|
"Any",
|
|
2328
|
-
...
|
|
2329
|
-
...
|
|
2330
|
-
],
|
|
2727
|
+
...Ji,
|
|
2728
|
+
...Yi
|
|
2729
|
+
], Zi = class {
|
|
2331
2730
|
static getCompletions(e) {
|
|
2332
2731
|
let t = e.toLowerCase();
|
|
2333
|
-
return
|
|
2732
|
+
return Xi.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
|
|
2334
2733
|
text: e,
|
|
2335
2734
|
displayText: e,
|
|
2336
2735
|
type: "keyword"
|
|
@@ -2348,14 +2747,14 @@ var ki = [...Ei], Ai = [
|
|
|
2348
2747
|
gold: "#efb82d",
|
|
2349
2748
|
editorBg: "#0f1416",
|
|
2350
2749
|
editorBgAlt: "#1c2629"
|
|
2351
|
-
},
|
|
2750
|
+
}, Qi = "# My JAML Filter\nname: My Filter\ndeck: Red\nstake: White\n\nmust:\n - joker: Blueprint\n edition: Negative\n antes: [1, 2, 3]\n\nshould:\n - soulJoker: Any\n score: 5\n", $i = [
|
|
2352
2751
|
"name",
|
|
2353
2752
|
"author",
|
|
2354
2753
|
"description",
|
|
2355
2754
|
"deck",
|
|
2356
2755
|
"stake",
|
|
2357
2756
|
"label"
|
|
2358
|
-
],
|
|
2757
|
+
], ea = [
|
|
2359
2758
|
"joker",
|
|
2360
2759
|
"soulJoker",
|
|
2361
2760
|
"voucher",
|
|
@@ -2367,7 +2766,7 @@ var ki = [...Ei], Ai = [
|
|
|
2367
2766
|
"boss",
|
|
2368
2767
|
"event"
|
|
2369
2768
|
];
|
|
2370
|
-
function
|
|
2769
|
+
function ta({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
|
|
2371
2770
|
return e.length === 0 ? /* @__PURE__ */ b("div", {
|
|
2372
2771
|
className: "p-2 text-xs text-white/40 italic",
|
|
2373
2772
|
children: "No suggestions..."
|
|
@@ -2391,7 +2790,7 @@ function Ii({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
|
|
|
2391
2790
|
})
|
|
2392
2791
|
});
|
|
2393
2792
|
}
|
|
2394
|
-
function
|
|
2793
|
+
function na({ values: e, onToggle: t, color: n }) {
|
|
2395
2794
|
let [r, i] = v(!1), a = new Set(e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)));
|
|
2396
2795
|
return r ? /* @__PURE__ */ x("div", {
|
|
2397
2796
|
className: "flex flex-row items-center",
|
|
@@ -2414,7 +2813,7 @@ function Li({ values: e, onToggle: t, color: n }) {
|
|
|
2414
2813
|
}), /* @__PURE__ */ b("div", {
|
|
2415
2814
|
onClick: () => i(!1),
|
|
2416
2815
|
className: "jaml-block jaml-antes-confirm",
|
|
2417
|
-
children: /* @__PURE__ */ b(
|
|
2816
|
+
children: /* @__PURE__ */ b(Gi, {
|
|
2418
2817
|
size: 16,
|
|
2419
2818
|
strokeWidth: 3
|
|
2420
2819
|
})
|
|
@@ -2438,7 +2837,7 @@ function Li({ values: e, onToggle: t, color: n }) {
|
|
|
2438
2837
|
})()
|
|
2439
2838
|
});
|
|
2440
2839
|
}
|
|
2441
|
-
function
|
|
2840
|
+
function ra(e, t) {
|
|
2442
2841
|
let [n, r] = v(null);
|
|
2443
2842
|
return m(() => {
|
|
2444
2843
|
if (!t || !e.current) {
|
|
@@ -2459,7 +2858,7 @@ function Ri(e, t) {
|
|
|
2459
2858
|
};
|
|
2460
2859
|
}, [t, e]), n;
|
|
2461
2860
|
}
|
|
2462
|
-
function
|
|
2861
|
+
function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
2463
2862
|
let [r, i] = v([]), [a, o] = v(null), [s, c] = v(null), [l, u] = v(null), d = _(null), p = f((e) => {
|
|
2464
2863
|
let t = e.split("\n"), n;
|
|
2465
2864
|
return t.map((e, t) => {
|
|
@@ -2468,9 +2867,9 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2468
2867
|
let e = i.indexOf(":"), t = i.slice(o ? 2 : 0, e).trim(), n = i.slice(e + 1).trim();
|
|
2469
2868
|
s = t, c = n || void 0, c && c.startsWith("[") && c.endsWith("]") && (l = !0, u = c.slice(1, -1).split(",").map((e) => e.trim()).filter((e) => e));
|
|
2470
2869
|
}
|
|
2471
|
-
r === 0 && !o && (n = void 0), o && s &&
|
|
2870
|
+
r === 0 && !o && (n = void 0), o && s && ea.includes(s) && (n = s);
|
|
2472
2871
|
let d = "complete", f = !1;
|
|
2473
|
-
return s && (
|
|
2872
|
+
return s && ($i.includes(s) ? d = "metadata" : ea.includes(s) ? d = c ? "complete" : "required-incomplete" : !c && s !== "must" && s !== "should" && s !== "mustNot" && (d = "optional-incomplete"), c && c.startsWith("~") && c.endsWith("~") && (f = !0, d = "invalid")), {
|
|
2474
2873
|
id: `line-${t}`,
|
|
2475
2874
|
raw: e,
|
|
2476
2875
|
indent: r,
|
|
@@ -2489,7 +2888,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2489
2888
|
}, []), m = f((e) => e.map((e) => e.raw).join("\n"), []), [h, y] = v(e);
|
|
2490
2889
|
if (e !== h) {
|
|
2491
2890
|
y(e);
|
|
2492
|
-
let t = e ||
|
|
2891
|
+
let t = e || Qi;
|
|
2493
2892
|
(r.length === 0 || m(r) !== t) && i(p(t));
|
|
2494
2893
|
}
|
|
2495
2894
|
let S = f((e, n, a) => {
|
|
@@ -2509,7 +2908,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2509
2908
|
i(o);
|
|
2510
2909
|
let s = m(o);
|
|
2511
2910
|
if (t) try {
|
|
2512
|
-
t(s,
|
|
2911
|
+
t(s, Pi.load(s), !0);
|
|
2513
2912
|
} catch {
|
|
2514
2913
|
t(s, null, !1);
|
|
2515
2914
|
}
|
|
@@ -2517,7 +2916,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2517
2916
|
r,
|
|
2518
2917
|
m,
|
|
2519
2918
|
t
|
|
2520
|
-
]),
|
|
2919
|
+
]), C = f((e, n, a) => {
|
|
2521
2920
|
let o = r.map((t) => {
|
|
2522
2921
|
if (t.id !== e || !t.arrayValues) return t;
|
|
2523
2922
|
let r = [...t.arrayValues];
|
|
@@ -2533,7 +2932,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2533
2932
|
i(o);
|
|
2534
2933
|
let s = m(o);
|
|
2535
2934
|
if (t) try {
|
|
2536
|
-
t(s,
|
|
2935
|
+
t(s, Pi.load(s), !0);
|
|
2537
2936
|
} catch {
|
|
2538
2937
|
t(s, null, !1);
|
|
2539
2938
|
}
|
|
@@ -2541,7 +2940,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2541
2940
|
r,
|
|
2542
2941
|
m,
|
|
2543
2942
|
t
|
|
2544
|
-
]),
|
|
2943
|
+
]), w = f((e, n) => {
|
|
2545
2944
|
let a = r.map((t) => {
|
|
2546
2945
|
if (t.id !== e) return t;
|
|
2547
2946
|
let r = [...t.arrayValues || [], n], i = `[${r.join(", ")}]`, a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
|
|
@@ -2556,7 +2955,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2556
2955
|
i(a);
|
|
2557
2956
|
let o = m(a);
|
|
2558
2957
|
if (t) try {
|
|
2559
|
-
t(o,
|
|
2958
|
+
t(o, Pi.load(o), !0);
|
|
2560
2959
|
} catch {
|
|
2561
2960
|
t(o, null, !1);
|
|
2562
2961
|
}
|
|
@@ -2564,7 +2963,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2564
2963
|
r,
|
|
2565
2964
|
m,
|
|
2566
2965
|
t
|
|
2567
|
-
]),
|
|
2966
|
+
]), ee = f((e, n) => {
|
|
2568
2967
|
let a = r.map((t) => {
|
|
2569
2968
|
if (t.id !== e || !t.arrayValues) return t;
|
|
2570
2969
|
let r = t.arrayValues.filter((e, t) => t !== n), i = r.length > 0 ? `[${r.join(", ")}]` : "", a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
|
|
@@ -2579,7 +2978,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2579
2978
|
i(a);
|
|
2580
2979
|
let o = m(a);
|
|
2581
2980
|
if (t) try {
|
|
2582
|
-
t(o,
|
|
2981
|
+
t(o, Pi.load(o), !0);
|
|
2583
2982
|
} catch {
|
|
2584
2983
|
t(o, null, !1);
|
|
2585
2984
|
}
|
|
@@ -2587,7 +2986,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2587
2986
|
r,
|
|
2588
2987
|
m,
|
|
2589
2988
|
t
|
|
2590
|
-
]),
|
|
2989
|
+
]), T = f((e) => {
|
|
2591
2990
|
let n = r.filter((t) => t.id !== e).map((e, t) => ({
|
|
2592
2991
|
...e,
|
|
2593
2992
|
lineNumber: t,
|
|
@@ -2596,7 +2995,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2596
2995
|
i(n);
|
|
2597
2996
|
let a = m(n);
|
|
2598
2997
|
if (t) try {
|
|
2599
|
-
t(a,
|
|
2998
|
+
t(a, Pi.load(a), !0);
|
|
2600
2999
|
} catch {
|
|
2601
3000
|
t(a, null, !1);
|
|
2602
3001
|
}
|
|
@@ -2604,7 +3003,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2604
3003
|
r,
|
|
2605
3004
|
m,
|
|
2606
3005
|
t
|
|
2607
|
-
]),
|
|
3006
|
+
]), E = g(() => {
|
|
2608
3007
|
let e = {};
|
|
2609
3008
|
for (let t of r) t.key && (e[t.indent] = Math.min(Math.max(e[t.indent] || 0, t.key.length), 12));
|
|
2610
3009
|
return e;
|
|
@@ -2615,9 +3014,9 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2615
3014
|
tabIndex: 0,
|
|
2616
3015
|
children: [/* @__PURE__ */ b("div", {
|
|
2617
3016
|
className: "flex flex-col gap-0.5",
|
|
2618
|
-
children: r.map((e) => /* @__PURE__ */ b(
|
|
3017
|
+
children: r.map((e) => /* @__PURE__ */ b(aa, {
|
|
2619
3018
|
line: e,
|
|
2620
|
-
keyWidth:
|
|
3019
|
+
keyWidth: E[e.indent] || 8,
|
|
2621
3020
|
isEditing: a === e.id,
|
|
2622
3021
|
editingPart: a === e.id ? s : null,
|
|
2623
3022
|
editingArrayIndex: a === e.id ? l : null,
|
|
@@ -2628,10 +3027,10 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2628
3027
|
o(null), c(null), u(null);
|
|
2629
3028
|
},
|
|
2630
3029
|
onChange: (t, n) => S(e.id, t, n),
|
|
2631
|
-
onArrayItemChange: (t, n) =>
|
|
2632
|
-
onArrayItemAdd: (t) =>
|
|
2633
|
-
onArrayItemRemove: (t) =>
|
|
2634
|
-
onDelete: () =>
|
|
3030
|
+
onArrayItemChange: (t, n) => C(e.id, t, n),
|
|
3031
|
+
onArrayItemAdd: (t) => w(e.id, t),
|
|
3032
|
+
onArrayItemRemove: (t) => ee(e.id, t),
|
|
3033
|
+
onDelete: () => T(e.id)
|
|
2635
3034
|
}, e.id))
|
|
2636
3035
|
}), /* @__PURE__ */ x("div", {
|
|
2637
3036
|
className: "mt-4 p-2 bg-black/40 rounded border border-white/5 flex flex-wrap gap-4 text-[12px] text-white/50 font-mono",
|
|
@@ -2660,28 +3059,28 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2660
3059
|
})]
|
|
2661
3060
|
});
|
|
2662
3061
|
}
|
|
2663
|
-
function
|
|
2664
|
-
let [f, p] = v(0), [h, y] = v(""), [
|
|
3062
|
+
function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
|
|
3063
|
+
let [f, p] = v(0), [h, y] = v(""), [S, C] = v(""), [w, ee] = v({
|
|
2665
3064
|
isEditing: n,
|
|
2666
3065
|
editingPart: r,
|
|
2667
3066
|
editingArrayIndex: i,
|
|
2668
3067
|
lineRaw: e.raw
|
|
2669
3068
|
});
|
|
2670
|
-
(n !==
|
|
3069
|
+
(n !== w.isEditing || r !== w.editingPart || i !== w.editingArrayIndex || e.raw !== w.lineRaw) && (ee({
|
|
2671
3070
|
isEditing: n,
|
|
2672
3071
|
editingPart: r,
|
|
2673
3072
|
editingArrayIndex: i,
|
|
2674
3073
|
lineRaw: e.raw
|
|
2675
3074
|
}), n && y(r === "key" ? e.key || "" : r === "value" ? (e.value || "").replace(/^~|~$/g, "") : r === "arrayItem" && i !== null && e.arrayValues?.[i] || ""));
|
|
2676
|
-
let
|
|
3075
|
+
let T = g(() => !n || !r ? "" : r === "value" && e.key ? `${e.key}: ${h}` : r === "key" ? h : e.raw, [
|
|
2677
3076
|
n,
|
|
2678
3077
|
r,
|
|
2679
3078
|
h,
|
|
2680
3079
|
e.raw,
|
|
2681
3080
|
e.key
|
|
2682
|
-
]),
|
|
2683
|
-
|
|
2684
|
-
let
|
|
3081
|
+
]), E = g(() => T ? Zi.getCompletions(T).slice(0, 10) : [], [T]);
|
|
3082
|
+
T !== S && (C(T), p(0));
|
|
3083
|
+
let D = _(null), O = _(null), k = ra(O, n && E.length > 0), A = () => {
|
|
2685
3084
|
switch (e.validationState) {
|
|
2686
3085
|
case "required-incomplete": return $.red;
|
|
2687
3086
|
case "optional-incomplete": return $.blue;
|
|
@@ -2690,7 +3089,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2690
3089
|
case "metadata": return $.purple;
|
|
2691
3090
|
default: return "#888";
|
|
2692
3091
|
}
|
|
2693
|
-
},
|
|
3092
|
+
}, j = () => {
|
|
2694
3093
|
switch (e.validationState) {
|
|
2695
3094
|
case "required-incomplete": return $.red;
|
|
2696
3095
|
case "optional-incomplete": return $.blue;
|
|
@@ -2701,14 +3100,14 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2701
3100
|
}
|
|
2702
3101
|
};
|
|
2703
3102
|
m(() => {
|
|
2704
|
-
n &&
|
|
3103
|
+
n && D.current && D.current.focus();
|
|
2705
3104
|
}, [n]);
|
|
2706
|
-
let
|
|
3105
|
+
let ne = (t) => {
|
|
2707
3106
|
if (t.key === "Enter") {
|
|
2708
3107
|
t.preventDefault();
|
|
2709
|
-
let n =
|
|
3108
|
+
let n = E.length > 0 && f >= 0 ? E[f].text : h;
|
|
2710
3109
|
r === "key" ? s("key", n) : r === "value" ? s("value", n) : r === "arrayItem" && (i >= (e.arrayValues?.length || 0) ? l(n) : c(i, n)), o();
|
|
2711
|
-
} else t.key === "ArrowDown" ? (t.preventDefault(), p(Math.min(f + 1,
|
|
3110
|
+
} else t.key === "ArrowDown" ? (t.preventDefault(), p(Math.min(f + 1, E.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), p(Math.max(f - 1, 0))) : t.key === "Escape" ? o() : t.key === "Backspace" && h === "" && r === "arrayItem" && (u(i), o());
|
|
2712
3111
|
};
|
|
2713
3112
|
if (e.isComment) return /* @__PURE__ */ b("div", {
|
|
2714
3113
|
className: "pl-8 text-stone-400 italic text-xs py-0.5",
|
|
@@ -2720,10 +3119,10 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2720
3119
|
style: { "--jaml-color": e.key === "must" ? $.red : $.blue },
|
|
2721
3120
|
children: e.raw
|
|
2722
3121
|
});
|
|
2723
|
-
let
|
|
2724
|
-
"--popover-top": `${
|
|
2725
|
-
"--popover-left": `${
|
|
2726
|
-
"--popover-transform":
|
|
3122
|
+
let M = " ".repeat(e.indent), N = e.isArrayItem ? "- " : "", re = k ? {
|
|
3123
|
+
"--popover-top": `${k.top}px`,
|
|
3124
|
+
"--popover-left": `${k.left}px`,
|
|
3125
|
+
"--popover-transform": k.position === "top" ? "translateY(-100%)" : "none"
|
|
2727
3126
|
} : {};
|
|
2728
3127
|
return /* @__PURE__ */ x("div", {
|
|
2729
3128
|
className: "relative flex items-center py-0.5 group",
|
|
@@ -2733,43 +3132,43 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2733
3132
|
onClick: (e) => {
|
|
2734
3133
|
e.stopPropagation(), d();
|
|
2735
3134
|
},
|
|
2736
|
-
children: /* @__PURE__ */ b(
|
|
3135
|
+
children: /* @__PURE__ */ b(Ki, {
|
|
2737
3136
|
size: 12,
|
|
2738
3137
|
className: "text-orange-500 hover:bg-orange-100 rounded"
|
|
2739
3138
|
})
|
|
2740
3139
|
}),
|
|
2741
3140
|
/* @__PURE__ */ x("span", {
|
|
2742
3141
|
className: "whitespace-pre text-stone-400",
|
|
2743
|
-
children: [
|
|
3142
|
+
children: [M, N]
|
|
2744
3143
|
}),
|
|
2745
3144
|
e.key && /* @__PURE__ */ x("div", {
|
|
2746
3145
|
className: "relative",
|
|
2747
3146
|
children: [/* @__PURE__ */ b("div", {
|
|
2748
|
-
ref: r === "key" ?
|
|
3147
|
+
ref: r === "key" ? O : null,
|
|
2749
3148
|
onClick: (e) => {
|
|
2750
3149
|
e.stopPropagation(), a("key");
|
|
2751
3150
|
},
|
|
2752
3151
|
className: "jaml-block jaml-block--start",
|
|
2753
3152
|
style: {
|
|
2754
3153
|
"--jaml-min-w": `${t}ch`,
|
|
2755
|
-
"--jaml-color": n && r === "key" ?
|
|
2756
|
-
"--jaml-bg": n && r === "key" ? `${
|
|
3154
|
+
"--jaml-color": n && r === "key" ? j() : A(),
|
|
3155
|
+
"--jaml-bg": n && r === "key" ? `${j()}15` : "transparent"
|
|
2757
3156
|
},
|
|
2758
3157
|
children: n && r === "key" ? /* @__PURE__ */ b("input", {
|
|
2759
|
-
ref:
|
|
3158
|
+
ref: D,
|
|
2760
3159
|
title: "Edit key",
|
|
2761
3160
|
value: h,
|
|
2762
3161
|
onChange: (e) => y(e.target.value),
|
|
2763
|
-
onKeyDown:
|
|
3162
|
+
onKeyDown: ne,
|
|
2764
3163
|
onBlur: () => setTimeout(o, 200),
|
|
2765
3164
|
className: "jaml-inline-input",
|
|
2766
|
-
style: { "--jaml-color":
|
|
3165
|
+
style: { "--jaml-color": j() }
|
|
2767
3166
|
}) : e.key
|
|
2768
|
-
}), n && r === "key" &&
|
|
3167
|
+
}), n && r === "key" && E.length > 0 && k && te(/* @__PURE__ */ b("div", {
|
|
2769
3168
|
className: "jaml-suggestion-popover",
|
|
2770
|
-
style:
|
|
2771
|
-
children: /* @__PURE__ */ b(
|
|
2772
|
-
suggestions:
|
|
3169
|
+
style: re,
|
|
3170
|
+
children: /* @__PURE__ */ b(ta, {
|
|
3171
|
+
suggestions: E,
|
|
2773
3172
|
selectedIndex: f,
|
|
2774
3173
|
onHover: p,
|
|
2775
3174
|
onSelect: (e) => {
|
|
@@ -2782,13 +3181,13 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2782
3181
|
className: "text-stone-400 mr-1",
|
|
2783
3182
|
children: ":"
|
|
2784
3183
|
}),
|
|
2785
|
-
e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(
|
|
3184
|
+
e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(na, {
|
|
2786
3185
|
values: e.arrayValues,
|
|
2787
3186
|
onToggle: (t) => {
|
|
2788
3187
|
let n = e.arrayValues.indexOf(t);
|
|
2789
3188
|
n >= 0 ? u(n) : l(t);
|
|
2790
3189
|
},
|
|
2791
|
-
color:
|
|
3190
|
+
color: j()
|
|
2792
3191
|
}) : /* @__PURE__ */ x("div", {
|
|
2793
3192
|
className: "flex gap-0.5 items-center",
|
|
2794
3193
|
children: [e.arrayValues.map((e, t) => /* @__PURE__ */ b("div", {
|
|
@@ -2798,16 +3197,16 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2798
3197
|
className: "jaml-block",
|
|
2799
3198
|
style: {
|
|
2800
3199
|
"--jaml-min-w": "24px",
|
|
2801
|
-
"--jaml-bg": `${
|
|
2802
|
-
"--jaml-border": `1px solid ${
|
|
2803
|
-
"--jaml-color":
|
|
3200
|
+
"--jaml-bg": `${A()}15`,
|
|
3201
|
+
"--jaml-border": `1px solid ${A()}40`,
|
|
3202
|
+
"--jaml-color": A()
|
|
2804
3203
|
},
|
|
2805
3204
|
children: n && r === "arrayItem" && i === t ? /* @__PURE__ */ b("input", {
|
|
2806
|
-
ref:
|
|
3205
|
+
ref: D,
|
|
2807
3206
|
title: "Edit array item",
|
|
2808
3207
|
value: h,
|
|
2809
3208
|
onChange: (e) => y(e.target.value),
|
|
2810
|
-
onKeyDown:
|
|
3209
|
+
onKeyDown: ne,
|
|
2811
3210
|
onBlur: () => setTimeout(o, 200),
|
|
2812
3211
|
className: "bg-transparent w-[3ch] text-center outline-none"
|
|
2813
3212
|
}) : e
|
|
@@ -2822,41 +3221,41 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2822
3221
|
"--jaml-border": `1px solid ${$.green}40`,
|
|
2823
3222
|
"--jaml-color": $.green
|
|
2824
3223
|
},
|
|
2825
|
-
children: /* @__PURE__ */ b(
|
|
3224
|
+
children: /* @__PURE__ */ b(qi, { size: 12 })
|
|
2826
3225
|
})]
|
|
2827
3226
|
}) : /* @__PURE__ */ x("div", {
|
|
2828
3227
|
className: "relative",
|
|
2829
3228
|
children: [/* @__PURE__ */ b("div", {
|
|
2830
|
-
ref: r === "value" ?
|
|
3229
|
+
ref: r === "value" ? O : null,
|
|
2831
3230
|
onClick: (e) => {
|
|
2832
3231
|
e.stopPropagation(), a("value");
|
|
2833
3232
|
},
|
|
2834
3233
|
className: "jaml-block",
|
|
2835
3234
|
style: {
|
|
2836
3235
|
"--jaml-min-w": e.value ? void 0 : "60px",
|
|
2837
|
-
"--jaml-color": e.isInvalidValue ? $.red : e.value ?
|
|
2838
|
-
"--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${
|
|
2839
|
-
"--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${
|
|
3236
|
+
"--jaml-color": e.isInvalidValue ? $.red : e.value ? A() : $.red,
|
|
3237
|
+
"--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${A()}10` : `${$.red}08`,
|
|
3238
|
+
"--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${A()}40` : `${$.red}40`}`,
|
|
2840
3239
|
"--jaml-text-decoration": e.isInvalidValue ? "line-through" : "none"
|
|
2841
3240
|
},
|
|
2842
3241
|
children: n && r === "value" ? /* @__PURE__ */ b("input", {
|
|
2843
|
-
ref:
|
|
3242
|
+
ref: D,
|
|
2844
3243
|
title: "Edit value",
|
|
2845
3244
|
value: h,
|
|
2846
3245
|
onChange: (e) => y(e.target.value),
|
|
2847
|
-
onKeyDown:
|
|
3246
|
+
onKeyDown: ne,
|
|
2848
3247
|
onBlur: () => setTimeout(o, 200),
|
|
2849
3248
|
className: "jaml-inline-input jaml-inline-input--sized",
|
|
2850
3249
|
style: {
|
|
2851
|
-
"--jaml-color":
|
|
3250
|
+
"--jaml-color": A(),
|
|
2852
3251
|
"--jaml-input-w": `${Math.max(h.length, 4)}ch`
|
|
2853
3252
|
}
|
|
2854
3253
|
}) : e.isInvalidValue ? e.value?.replace(/~/g, "") : e.value || "???"
|
|
2855
|
-
}), n && r === "value" &&
|
|
3254
|
+
}), n && r === "value" && E.length > 0 && k && te(/* @__PURE__ */ b("div", {
|
|
2856
3255
|
className: "jaml-suggestion-popover",
|
|
2857
|
-
style:
|
|
2858
|
-
children: /* @__PURE__ */ b(
|
|
2859
|
-
suggestions:
|
|
3256
|
+
style: re,
|
|
3257
|
+
children: /* @__PURE__ */ b(ta, {
|
|
3258
|
+
suggestions: E,
|
|
2860
3259
|
selectedIndex: f,
|
|
2861
3260
|
onHover: p,
|
|
2862
3261
|
onSelect: (e) => {
|
|
@@ -2869,52 +3268,8 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2869
3268
|
});
|
|
2870
3269
|
}
|
|
2871
3270
|
//#endregion
|
|
2872
|
-
//#region src/ui/JimboIconButton.tsx
|
|
2873
|
-
var Vi = e;
|
|
2874
|
-
function Hi({ onClick: e, title: t, "aria-label": n, disabled: r = !1, size: i = "md", children: a }) {
|
|
2875
|
-
let [o, s] = v(!1), c = i === "sm" ? 26 : 30;
|
|
2876
|
-
return /* @__PURE__ */ b("button", {
|
|
2877
|
-
"aria-label": n ?? t,
|
|
2878
|
-
disabled: r,
|
|
2879
|
-
onClick: () => !r && e?.(),
|
|
2880
|
-
onMouseEnter: () => s(!0),
|
|
2881
|
-
onMouseLeave: () => s(!1),
|
|
2882
|
-
style: {
|
|
2883
|
-
width: c,
|
|
2884
|
-
height: c,
|
|
2885
|
-
display: "inline-flex",
|
|
2886
|
-
alignItems: "center",
|
|
2887
|
-
justifyContent: "center",
|
|
2888
|
-
background: o && !r ? Vi.DARK_GREY : Vi.DARKEST,
|
|
2889
|
-
color: Vi.WHITE,
|
|
2890
|
-
border: `1px solid ${Vi.PANEL_EDGE}`,
|
|
2891
|
-
borderRadius: 4,
|
|
2892
|
-
cursor: r ? "not-allowed" : "pointer",
|
|
2893
|
-
opacity: r ? .55 : 1,
|
|
2894
|
-
padding: 0,
|
|
2895
|
-
fontSize: 14,
|
|
2896
|
-
lineHeight: 1,
|
|
2897
|
-
transition: "background 80ms ease"
|
|
2898
|
-
},
|
|
2899
|
-
title: t,
|
|
2900
|
-
type: "button",
|
|
2901
|
-
children: a
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
//#endregion
|
|
2905
|
-
//#region src/ui/JimboTextInput.tsx
|
|
2906
|
-
var Ui = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
|
|
2907
|
-
return /* @__PURE__ */ b("input", {
|
|
2908
|
-
ref: i,
|
|
2909
|
-
className: `j-text-input ${e}`.trim(),
|
|
2910
|
-
"aria-invalid": n ?? t,
|
|
2911
|
-
"data-invalid": t,
|
|
2912
|
-
...r
|
|
2913
|
-
});
|
|
2914
|
-
});
|
|
2915
|
-
//#endregion
|
|
2916
3271
|
//#region src/ui/JimboInputModal.tsx
|
|
2917
|
-
function
|
|
3272
|
+
function oa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
|
|
2918
3273
|
let [u, d] = v(i), [f, p] = v(null), h = _(null), [g, y] = v(e);
|
|
2919
3274
|
e !== g && (y(e), e && (d(i), p(null))), m(() => {
|
|
2920
3275
|
if (e) {
|
|
@@ -2930,18 +3285,18 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
2930
3285
|
}
|
|
2931
3286
|
c(u);
|
|
2932
3287
|
}
|
|
2933
|
-
return /* @__PURE__ */ x(
|
|
3288
|
+
return /* @__PURE__ */ x(be, {
|
|
2934
3289
|
onClose: l,
|
|
2935
3290
|
open: e,
|
|
2936
3291
|
title: t,
|
|
2937
3292
|
children: [
|
|
2938
|
-
n && /* @__PURE__ */ b(
|
|
3293
|
+
n && /* @__PURE__ */ b(P, {
|
|
2939
3294
|
size: "sm",
|
|
2940
3295
|
className: "j-input-modal__message",
|
|
2941
3296
|
tone: "grey",
|
|
2942
3297
|
children: n
|
|
2943
3298
|
}),
|
|
2944
|
-
/* @__PURE__ */ b(
|
|
3299
|
+
/* @__PURE__ */ b(fe, {
|
|
2945
3300
|
invalid: !!f,
|
|
2946
3301
|
onChange: (e) => {
|
|
2947
3302
|
d(e.target.value), f && p(null);
|
|
@@ -2954,7 +3309,7 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
2954
3309
|
type: "text",
|
|
2955
3310
|
value: u
|
|
2956
3311
|
}),
|
|
2957
|
-
f && /* @__PURE__ */ b(
|
|
3312
|
+
f && /* @__PURE__ */ b(P, {
|
|
2958
3313
|
size: "sm",
|
|
2959
3314
|
className: "j-input-modal__error",
|
|
2960
3315
|
tone: "red",
|
|
@@ -2962,12 +3317,12 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
2962
3317
|
}),
|
|
2963
3318
|
/* @__PURE__ */ x("div", {
|
|
2964
3319
|
className: "j-input-modal__actions",
|
|
2965
|
-
children: [/* @__PURE__ */ b(
|
|
3320
|
+
children: [/* @__PURE__ */ b(I, {
|
|
2966
3321
|
onClick: l,
|
|
2967
3322
|
size: "sm",
|
|
2968
3323
|
tone: "red",
|
|
2969
3324
|
children: o
|
|
2970
|
-
}), /* @__PURE__ */ b(
|
|
3325
|
+
}), /* @__PURE__ */ b(I, {
|
|
2971
3326
|
onClick: S,
|
|
2972
3327
|
size: "sm",
|
|
2973
3328
|
tone: "blue",
|
|
@@ -2978,66 +3333,54 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
2978
3333
|
});
|
|
2979
3334
|
}
|
|
2980
3335
|
//#endregion
|
|
2981
|
-
//#region src/ui/
|
|
2982
|
-
|
|
3336
|
+
//#region src/ui/JimboListItem.tsx
|
|
3337
|
+
var sa = s.forwardRef(function({ active: e = !1, className: t = "", children: n, ...r }, i) {
|
|
3338
|
+
return /* @__PURE__ */ b("button", {
|
|
3339
|
+
ref: i,
|
|
3340
|
+
type: "button",
|
|
3341
|
+
className: `j-list-item ${t}`.trim(),
|
|
3342
|
+
"data-active": e,
|
|
3343
|
+
...r,
|
|
3344
|
+
children: n
|
|
3345
|
+
});
|
|
3346
|
+
});
|
|
3347
|
+
//#endregion
|
|
3348
|
+
//#region src/ui/JimboSpinner.tsx
|
|
3349
|
+
function ca({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext: a = !0, className: o = "" }) {
|
|
2983
3350
|
return /* @__PURE__ */ x("div", {
|
|
2984
|
-
className: `j-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
children: e
|
|
3351
|
+
className: `j-spinner-wrap ${o}`,
|
|
3352
|
+
children: [t && /* @__PURE__ */ b("div", {
|
|
3353
|
+
className: "j-spinner__label",
|
|
3354
|
+
children: /* @__PURE__ */ b(P, {
|
|
3355
|
+
size: "sm",
|
|
3356
|
+
tone: "white",
|
|
3357
|
+
children: t
|
|
2992
3358
|
})
|
|
2993
|
-
})
|
|
2994
|
-
className: "j-
|
|
3359
|
+
}), /* @__PURE__ */ x("div", {
|
|
3360
|
+
className: "j-spinner",
|
|
2995
3361
|
children: [
|
|
2996
|
-
/* @__PURE__ */ b(
|
|
3362
|
+
/* @__PURE__ */ b(I, {
|
|
2997
3363
|
tone: "red",
|
|
2998
|
-
size: "
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
"aria-label": "Previous",
|
|
3364
|
+
size: "sm",
|
|
3365
|
+
onClick: n,
|
|
3366
|
+
disabled: !i,
|
|
3367
|
+
"aria-label": `Previous ${t ?? "value"}`,
|
|
3003
3368
|
children: "<"
|
|
3004
3369
|
}),
|
|
3005
|
-
/* @__PURE__ */
|
|
3006
|
-
className: "j-
|
|
3007
|
-
children:
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
/* @__PURE__ */ b("div", {
|
|
3013
|
-
className: "j-panel-spinner__title",
|
|
3014
|
-
children: /* @__PURE__ */ b(j, {
|
|
3015
|
-
size: "md",
|
|
3016
|
-
tone: "white",
|
|
3017
|
-
children: t
|
|
3018
|
-
})
|
|
3019
|
-
}),
|
|
3020
|
-
i ? /* @__PURE__ */ b("div", {
|
|
3021
|
-
className: "j-panel-spinner__meta",
|
|
3022
|
-
children: i
|
|
3023
|
-
}) : null,
|
|
3024
|
-
n ? /* @__PURE__ */ b("div", {
|
|
3025
|
-
className: "j-panel-spinner__description",
|
|
3026
|
-
children: /* @__PURE__ */ b(j, {
|
|
3027
|
-
size: "micro",
|
|
3028
|
-
tone: "grey",
|
|
3029
|
-
children: n
|
|
3030
|
-
})
|
|
3031
|
-
}) : null
|
|
3032
|
-
]
|
|
3370
|
+
/* @__PURE__ */ b("div", {
|
|
3371
|
+
className: "j-spinner__value",
|
|
3372
|
+
children: /* @__PURE__ */ b(P, {
|
|
3373
|
+
size: "sm",
|
|
3374
|
+
tone: "white",
|
|
3375
|
+
children: e
|
|
3376
|
+
})
|
|
3033
3377
|
}),
|
|
3034
|
-
/* @__PURE__ */ b(
|
|
3378
|
+
/* @__PURE__ */ b(I, {
|
|
3035
3379
|
tone: "red",
|
|
3036
|
-
size: "
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
"aria-label": "Next",
|
|
3380
|
+
size: "sm",
|
|
3381
|
+
onClick: r,
|
|
3382
|
+
disabled: !a,
|
|
3383
|
+
"aria-label": `Next ${t ?? "value"}`,
|
|
3041
3384
|
children: ">"
|
|
3042
3385
|
})
|
|
3043
3386
|
]
|
|
@@ -3046,49 +3389,185 @@ function Gi({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
3046
3389
|
}
|
|
3047
3390
|
//#endregion
|
|
3048
3391
|
//#region src/ui/JimboSelect.tsx
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
children:
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3392
|
+
function la({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "aria-label": a, style: o }) {
|
|
3393
|
+
let s = (t.length === 0 ? [] : typeof t[0] == "string" ? t.map((e) => ({ value: e })) : t).filter((e) => !e.disabled), c = Math.max(0, s.findIndex((t) => t.value === e)), l = s[c] ?? s[0];
|
|
3394
|
+
if (!l) return null;
|
|
3395
|
+
function u(e) {
|
|
3396
|
+
r || s.length === 0 || n(s[(c + e + s.length) % s.length].value);
|
|
3397
|
+
}
|
|
3398
|
+
return /* @__PURE__ */ b("div", {
|
|
3399
|
+
style: o,
|
|
3400
|
+
"aria-label": a,
|
|
3401
|
+
children: /* @__PURE__ */ b(ca, {
|
|
3402
|
+
label: i,
|
|
3403
|
+
value: l.label ?? l.value,
|
|
3404
|
+
onPrev: () => u(-1),
|
|
3405
|
+
onNext: () => u(1),
|
|
3406
|
+
canPrev: !r && s.length > 1,
|
|
3407
|
+
canNext: !r && s.length > 1
|
|
3408
|
+
})
|
|
3409
|
+
});
|
|
3410
|
+
}
|
|
3411
|
+
//#endregion
|
|
3412
|
+
//#region src/ui/JimboStepper.tsx
|
|
3413
|
+
function ua({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicator", className: i = "", style: a }) {
|
|
3414
|
+
if (e <= 1) return null;
|
|
3415
|
+
let o = !!n;
|
|
3416
|
+
return /* @__PURE__ */ b("div", {
|
|
3417
|
+
className: `j-stepper ${i}`,
|
|
3418
|
+
role: "tablist",
|
|
3419
|
+
"aria-label": r,
|
|
3420
|
+
style: a,
|
|
3421
|
+
children: Array.from({ length: e }).map((r, i) => {
|
|
3422
|
+
let a = i === t, s = /* @__PURE__ */ b("span", {
|
|
3423
|
+
className: "j-stepper__dot",
|
|
3424
|
+
"data-active": a,
|
|
3425
|
+
"aria-hidden": !0
|
|
3426
|
+
});
|
|
3427
|
+
return o ? /* @__PURE__ */ b("button", {
|
|
3428
|
+
type: "button",
|
|
3429
|
+
className: "j-stepper__hit",
|
|
3430
|
+
role: "tab",
|
|
3431
|
+
"aria-selected": a,
|
|
3432
|
+
"aria-label": `Page ${i + 1} of ${e}`,
|
|
3433
|
+
onClick: () => n?.(i),
|
|
3434
|
+
children: s
|
|
3435
|
+
}, i) : /* @__PURE__ */ b("span", {
|
|
3436
|
+
role: "tab",
|
|
3437
|
+
"aria-selected": a,
|
|
3438
|
+
children: s
|
|
3439
|
+
}, i);
|
|
3440
|
+
})
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
//#endregion
|
|
3444
|
+
//#region src/ui/JimboValueBadge.tsx
|
|
3445
|
+
function da({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit: a, readOnly: o = !1, className: s = "", style: c }) {
|
|
3446
|
+
let [l, u] = v(!1), [d, f] = v(String(e)), p = _(null);
|
|
3447
|
+
m(() => {
|
|
3448
|
+
l && (p.current?.focus(), p.current?.select());
|
|
3449
|
+
}, [l]);
|
|
3450
|
+
function h() {
|
|
3451
|
+
f(String(e)), u(!0);
|
|
3452
|
+
}
|
|
3453
|
+
function g() {
|
|
3454
|
+
let e = Number(d);
|
|
3455
|
+
if (Number.isFinite(e)) {
|
|
3456
|
+
let a = Math.min(r, Math.max(n, e)), o = i > 0 ? Math.round(a / i) * i : a;
|
|
3457
|
+
t?.(o);
|
|
3458
|
+
}
|
|
3459
|
+
u(!1);
|
|
3460
|
+
}
|
|
3461
|
+
function y() {
|
|
3462
|
+
f(String(e)), u(!1);
|
|
3463
|
+
}
|
|
3464
|
+
let x = !o && !!t, S = a ? `${Math.round(e)}${a}` : String(Math.round(e));
|
|
3465
|
+
return l ? /* @__PURE__ */ b("div", {
|
|
3466
|
+
className: `j-value-badge j-value-badge--editing ${s}`,
|
|
3467
|
+
style: c,
|
|
3468
|
+
children: /* @__PURE__ */ b("input", {
|
|
3469
|
+
ref: p,
|
|
3470
|
+
className: "j-value-badge__input",
|
|
3471
|
+
type: "number",
|
|
3472
|
+
min: n,
|
|
3473
|
+
max: r,
|
|
3474
|
+
step: i,
|
|
3475
|
+
value: d,
|
|
3476
|
+
onChange: (e) => f(e.currentTarget.value),
|
|
3477
|
+
onBlur: g,
|
|
3478
|
+
onKeyDown: (e) => {
|
|
3479
|
+
e.key === "Enter" ? g() : e.key === "Escape" && y();
|
|
3480
|
+
}
|
|
3481
|
+
})
|
|
3482
|
+
}) : /* @__PURE__ */ b("button", {
|
|
3483
|
+
type: "button",
|
|
3484
|
+
className: `j-value-badge ${x ? "" : "j-value-badge--static"} ${s}`,
|
|
3485
|
+
style: c,
|
|
3486
|
+
onClick: x ? h : void 0,
|
|
3487
|
+
disabled: !x,
|
|
3488
|
+
tabIndex: x ? 0 : -1,
|
|
3489
|
+
children: /* @__PURE__ */ b(P, {
|
|
3490
|
+
size: "xs",
|
|
3491
|
+
tone: "white",
|
|
3492
|
+
children: S
|
|
3493
|
+
})
|
|
3494
|
+
});
|
|
3495
|
+
}
|
|
3496
|
+
//#endregion
|
|
3497
|
+
//#region src/ui/JimboSlider.tsx
|
|
3498
|
+
function fa({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChange: a, className: o = "", id: c }) {
|
|
3499
|
+
let l = n === t ? 0 : (e - t) / (n - t) * 100, u = s.useId(), d = c ?? u;
|
|
3500
|
+
return /* @__PURE__ */ x("div", {
|
|
3501
|
+
className: `j-slider-wrap ${o}`,
|
|
3502
|
+
children: [i && /* @__PURE__ */ b("label", {
|
|
3503
|
+
htmlFor: d,
|
|
3504
|
+
className: "j-slider__label",
|
|
3505
|
+
children: /* @__PURE__ */ b(P, {
|
|
3506
|
+
size: "sm",
|
|
3507
|
+
tone: "white",
|
|
3508
|
+
children: i
|
|
3509
|
+
})
|
|
3510
|
+
}), /* @__PURE__ */ x("div", {
|
|
3511
|
+
className: "j-slider",
|
|
3512
|
+
children: [
|
|
3513
|
+
/* @__PURE__ */ b("div", {
|
|
3514
|
+
className: "j-slider__track",
|
|
3515
|
+
"aria-hidden": !0,
|
|
3516
|
+
children: /* @__PURE__ */ b("div", {
|
|
3517
|
+
className: "j-slider__fill",
|
|
3518
|
+
style: { width: `${l}%` }
|
|
3519
|
+
})
|
|
3520
|
+
}),
|
|
3521
|
+
/* @__PURE__ */ b("input", {
|
|
3522
|
+
id: d,
|
|
3523
|
+
type: "range",
|
|
3524
|
+
className: "j-slider__input",
|
|
3525
|
+
min: t,
|
|
3526
|
+
max: n,
|
|
3527
|
+
step: r,
|
|
3528
|
+
value: e,
|
|
3529
|
+
onChange: (e) => a?.(Number(e.currentTarget.value))
|
|
3530
|
+
}),
|
|
3531
|
+
/* @__PURE__ */ b("div", {
|
|
3532
|
+
className: "j-slider__thumb",
|
|
3533
|
+
style: { left: `${l}%` },
|
|
3534
|
+
children: /* @__PURE__ */ b(da, {
|
|
3535
|
+
value: e,
|
|
3536
|
+
min: t,
|
|
3537
|
+
max: n,
|
|
3538
|
+
step: r,
|
|
3539
|
+
onChange: a
|
|
3540
|
+
})
|
|
3541
|
+
})
|
|
3542
|
+
]
|
|
3543
|
+
})]
|
|
3544
|
+
});
|
|
3545
|
+
}
|
|
3546
|
+
//#endregion
|
|
3547
|
+
//#region src/ui/JimboDualChip.tsx
|
|
3548
|
+
function pa({ left: e, right: t, className: n = "" }) {
|
|
3549
|
+
return /* @__PURE__ */ x("div", {
|
|
3550
|
+
className: `j-dual-chip ${n}`,
|
|
3551
|
+
children: [/* @__PURE__ */ b("div", {
|
|
3552
|
+
className: `j-dual-chip__half j-dual-chip__half--left j-dual-chip__half--${e.tone}`,
|
|
3553
|
+
children: /* @__PURE__ */ b(P, {
|
|
3554
|
+
size: "md",
|
|
3555
|
+
tone: e.tone === "gold" ? "default" : "white",
|
|
3556
|
+
children: e.value
|
|
3557
|
+
})
|
|
3558
|
+
}), /* @__PURE__ */ b("div", {
|
|
3559
|
+
className: `j-dual-chip__half j-dual-chip__half--${t.tone}`,
|
|
3560
|
+
children: /* @__PURE__ */ b(P, {
|
|
3561
|
+
size: "md",
|
|
3562
|
+
tone: t.tone === "gold" ? "default" : "white",
|
|
3563
|
+
children: t.value
|
|
3564
|
+
})
|
|
3565
|
+
})]
|
|
3087
3566
|
});
|
|
3088
3567
|
}
|
|
3089
3568
|
//#endregion
|
|
3090
|
-
//#region src/ui/
|
|
3091
|
-
function
|
|
3569
|
+
//#region src/ui/JimboPanelSplitter.tsx
|
|
3570
|
+
function ma({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className: r = "", "aria-label": i }) {
|
|
3092
3571
|
let a = _(!1), o = _(0), s = _(t);
|
|
3093
3572
|
h(() => {
|
|
3094
3573
|
s.current = t;
|
|
@@ -3122,6 +3601,6 @@ function Ji({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className:
|
|
|
3122
3601
|
});
|
|
3123
3602
|
}
|
|
3124
3603
|
//#endregion
|
|
3125
|
-
export {
|
|
3604
|
+
export { ae as $, ze as A, Te as B, Ye as C, Ue as D, We as E, Ne as F, ve as G, xe as H, Me as I, fe as J, _e as K, Ae as L, Fe as M, Pe as N, He as O, je as P, le as Q, De as R, qe as S, Ge as T, ye as U, we as V, be as W, de as X, P as Y, se as Z, $e as _, ua as a, Ke as b, sa as c, ot as d, oe as et, it as f, et as g, tt as h, da as i, Re as j, Be as k, oa as l, nt as m, pa as n, la as o, rt as p, I as q, fa as r, ca as s, ma as t, ia as u, Qe as v, Je as w, Xe as x, Ze as y, Ee as z };
|
|
3126
3605
|
|
|
3127
|
-
//# sourceMappingURL=ui-
|
|
3606
|
+
//# sourceMappingURL=ui-UqEG1EZ9.js.map
|