@arach/arc-iso 0.7.0 → 0.9.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.
@@ -1,89 +1,95 @@
1
- import jr, { useId as Qe, useMemo as Fr, useState as Le, useEffect as Lr } from "react";
2
- const Rn = 30 * (Math.PI / 180), Rr = Math.cos(Rn), Ir = Math.sin(Rn);
3
- function E(e, n, r = 0) {
1
+ import Yr, { useId as nn, forwardRef as Rn, createElement as Ke, useMemo as Br, useState as Le, useEffect as Hr } from "react";
2
+ const Pn = 30 * (Math.PI / 180), Wr = Math.cos(Pn), Ur = Math.sin(Pn);
3
+ function w(e, n, r = 0) {
4
4
  return {
5
- screenX: (e - n) * Rr,
6
- screenY: -(e + n) * Ir - r
5
+ screenX: (e - n) * Wr,
6
+ screenY: -(e + n) * Ur - r
7
7
  // Negated so +X,+Y go UP on screen
8
8
  };
9
9
  }
10
- function he(e, n, r, t = 0, i = 0, l = 0) {
10
+ function zr(e = "x") {
11
+ let n = 1, r = 0, i = 0, t = -1;
12
+ e === "y" ? (n = 0, r = 1, i = 1, t = 0) : e === "x-" ? (n = -1, r = 0, i = 0, t = 1) : e === "y-" && (n = 0, r = -1, i = -1, t = 0);
13
+ const l = w(n, r, 0), o = w(i, t, 0);
14
+ return `${l.screenX},${l.screenY},${o.screenX},${o.screenY},0,0`;
15
+ }
16
+ function xe(e, n, r, i = 0, t = 0, l = 0) {
11
17
  const o = {
12
18
  // Bottom face
13
- frontBottom: E(e, 0, 0),
14
- rightBottom: E(e, n, 0),
15
- backBottom: E(0, n, 0),
16
- leftBottom: E(0, 0, 0),
19
+ frontBottom: w(e, 0, 0),
20
+ rightBottom: w(e, n, 0),
21
+ backBottom: w(0, n, 0),
22
+ leftBottom: w(0, 0, 0),
17
23
  // Top face
18
- frontTop: E(e, 0, r),
19
- rightTop: E(e, n, r),
20
- backTop: E(0, n, r),
21
- leftTop: E(0, 0, r)
22
- }, a = (w) => ({
23
- x: w.screenX + t,
24
- y: w.screenY + i
24
+ frontTop: w(e, 0, r),
25
+ rightTop: w(e, n, r),
26
+ backTop: w(0, n, r),
27
+ leftTop: w(0, 0, r)
28
+ }, a = (C) => ({
29
+ x: C.screenX + i,
30
+ y: C.screenY + t
25
31
  }), c = Object.fromEntries(
26
- Object.entries(o).map(([w, j]) => [w, a(j)])
27
- ), s = (w, j, I, $) => {
28
- if ($ <= 0) {
29
- const J = E(0, 0, I), q = E(w, 0, I), T = E(w, j, I), W = E(0, j, I);
30
- return `M ${J.screenX + t},${J.screenY + i} L ${q.screenX + t},${q.screenY + i} L ${T.screenX + t},${T.screenY + i} L ${W.screenX + t},${W.screenY + i} Z`;
31
- }
32
- const B = Math.min(w, j) / 2, N = Math.min($, B), R = 8, M = [], ne = (J, q, T, W) => {
33
- for (let Q = 0; Q <= R; Q++) {
34
- const O = T + (W - T) * (Q / R), S = J + N * Math.cos(O), h = q + N * Math.sin(O), k = E(S, h, I);
35
- M.push(`${k.screenX + t},${k.screenY + i}`);
32
+ Object.entries(o).map(([C, N]) => [C, a(N)])
33
+ ), f = (C, N, I, B) => {
34
+ if (B <= 0) {
35
+ const re = w(0, 0, I), K = w(C, 0, I), H = w(C, N, I), T = w(0, N, I);
36
+ return `M ${re.screenX + i},${re.screenY + t} L ${K.screenX + i},${K.screenY + t} L ${H.screenX + i},${H.screenY + t} L ${T.screenX + i},${T.screenY + t} Z`;
37
+ }
38
+ const j = Math.min(C, N) / 2, R = Math.min(B, j), ee = 8, L = [], D = (re, K, H, T) => {
39
+ for (let U = 0; U <= ee; U++) {
40
+ const oe = H + (T - H) * (U / ee), M = re + R * Math.cos(oe), s = K + R * Math.sin(oe), A = w(M, s, I);
41
+ L.push(`${A.screenX + i},${A.screenY + t}`);
36
42
  }
37
43
  };
38
- return ne(N, N, Math.PI, Math.PI * 1.5), ne(w - N, N, Math.PI * 1.5, Math.PI * 2), ne(w - N, j - N, 0, Math.PI * 0.5), ne(N, j - N, Math.PI * 0.5, Math.PI), `M ${M[0]} L ${M.slice(1).join(" L ")} Z`;
39
- }, u = (w) => `M ${w.map((j) => `${j.x},${j.y}`).join(" L ")} Z`, x = (w, j, I, $, B, N) => {
40
- const M = [];
41
- for (let T = 0; T < 6; T++) {
42
- const W = B + (N - B) * (T / 6), Q = B + (N - B) * ((T + 1) / 6), O = (W + Q) / 2, S = Math.cos(O), h = Math.sin(O), F = S * -0.577 + h * -0.577 + 0 * 0.577, ce = 0.3 + Math.max(0, F + 0.4) * 0.5, se = E(w + I * Math.cos(W), j + I * Math.sin(W), 0), P = E(w + I * Math.cos(Q), j + I * Math.sin(Q), 0), ie = E(w + I * Math.cos(W), j + I * Math.sin(W), $), le = E(w + I * Math.cos(Q), j + I * Math.sin(Q), $), ke = `M ${se.screenX + t},${se.screenY + i} L ${P.screenX + t},${P.screenY + i} L ${le.screenX + t},${le.screenY + i} L ${ie.screenX + t},${ie.screenY + i} Z`;
43
- M.push({ path: ke, intensity: ce });
44
- }
45
- return M;
46
- }, p = Math.min(l, Math.min(e, n) / 2), f = s(e, n, r, p);
47
- let m, y, A, v, b, D;
44
+ return D(R, R, Math.PI, Math.PI * 1.5), D(C - R, R, Math.PI * 1.5, Math.PI * 2), D(C - R, N - R, 0, Math.PI * 0.5), D(R, N - R, Math.PI * 0.5, Math.PI), `M ${L[0]} L ${L.slice(1).join(" L ")} Z`;
45
+ }, u = (C) => `M ${C.map((N) => `${N.x},${N.y}`).join(" L ")} Z`, d = (C, N, I, B, j, R) => {
46
+ const L = [];
47
+ for (let H = 0; H < 6; H++) {
48
+ const T = j + (R - j) * (H / 6), U = j + (R - j) * ((H + 1) / 6), oe = (T + U) / 2, M = Math.cos(oe), s = Math.sin(oe), O = M * -0.577 + s * -0.577 + 0 * 0.577, ae = 0.3 + Math.max(0, O + 0.4) * 0.5, se = w(C + I * Math.cos(T), N + I * Math.sin(T), 0), P = w(C + I * Math.cos(U), N + I * Math.sin(U), 0), te = w(C + I * Math.cos(T), N + I * Math.sin(T), B), fe = w(C + I * Math.cos(U), N + I * Math.sin(U), B), ye = `M ${se.screenX + i},${se.screenY + t} L ${P.screenX + i},${P.screenY + t} L ${fe.screenX + i},${fe.screenY + t} L ${te.screenX + i},${te.screenY + t} Z`;
49
+ L.push({ path: ye, intensity: ae });
50
+ }
51
+ return L;
52
+ }, p = Math.min(l, Math.min(e, n) / 2), x = f(e, n, r, p);
53
+ let m, y, v, k, b, Y;
48
54
  if (p > 0) {
49
- const w = [
50
- { x: E(0, p, 0).screenX + t, y: E(0, p, 0).screenY + i },
51
- { x: E(0, n - p, 0).screenX + t, y: E(0, n - p, 0).screenY + i },
52
- { x: E(0, n - p, r).screenX + t, y: E(0, n - p, r).screenY + i },
53
- { x: E(0, p, r).screenX + t, y: E(0, p, r).screenY + i }
55
+ const C = [
56
+ { x: w(0, p, 0).screenX + i, y: w(0, p, 0).screenY + t },
57
+ { x: w(0, n - p, 0).screenX + i, y: w(0, n - p, 0).screenY + t },
58
+ { x: w(0, n - p, r).screenX + i, y: w(0, n - p, r).screenY + t },
59
+ { x: w(0, p, r).screenX + i, y: w(0, p, r).screenY + t }
54
60
  ];
55
- m = u(w);
56
- const j = [
57
- { x: E(p, 0, 0).screenX + t, y: E(p, 0, 0).screenY + i },
58
- { x: E(e - p, 0, 0).screenX + t, y: E(e - p, 0, 0).screenY + i },
59
- { x: E(e - p, 0, r).screenX + t, y: E(e - p, 0, r).screenY + i },
60
- { x: E(p, 0, r).screenX + t, y: E(p, 0, r).screenY + i }
61
+ m = u(C);
62
+ const N = [
63
+ { x: w(p, 0, 0).screenX + i, y: w(p, 0, 0).screenY + t },
64
+ { x: w(e - p, 0, 0).screenX + i, y: w(e - p, 0, 0).screenY + t },
65
+ { x: w(e - p, 0, r).screenX + i, y: w(e - p, 0, r).screenY + t },
66
+ { x: w(p, 0, r).screenX + i, y: w(p, 0, r).screenY + t }
61
67
  ];
62
- y = u(j), A = x(p, p, p, r, Math.PI, Math.PI * 1.5), v = x(e - p, p, p, r, Math.PI * 1.5, Math.PI * 2), b = x(p, n - p, p, r, Math.PI * 0.5, Math.PI), D = x(e - p, n - p, p, r, 0, Math.PI * 0.5);
68
+ y = u(N), v = d(p, p, p, r, Math.PI, Math.PI * 1.5), k = d(e - p, p, p, r, Math.PI * 1.5, Math.PI * 2), b = d(p, n - p, p, r, Math.PI * 0.5, Math.PI), Y = d(e - p, n - p, p, r, 0, Math.PI * 0.5);
63
69
  } else {
64
- const w = [c.leftBottom, c.backBottom, c.backTop, c.leftTop], j = [c.leftBottom, c.frontBottom, c.frontTop, c.leftTop];
65
- m = u(w), y = u(j), A = [], v = [], b = [], D = [];
70
+ const C = [c.leftBottom, c.backBottom, c.backTop, c.leftTop], N = [c.leftBottom, c.frontBottom, c.frontTop, c.leftTop];
71
+ m = u(C), y = u(N), v = [], k = [], b = [], Y = [];
66
72
  }
67
- const L = `M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;
73
+ const E = `M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;
68
74
  return {
69
- top: f,
75
+ top: x,
70
76
  left: m,
71
77
  right: y,
72
- cornerFrontLeft: A,
73
- cornerFrontRight: v,
78
+ cornerFrontLeft: v,
79
+ cornerFrontRight: k,
74
80
  cornerBackLeft: b,
75
- cornerBackRight: D,
76
- outline: L
81
+ cornerBackRight: Y,
82
+ outline: E
77
83
  };
78
84
  }
79
- function Mr(e, n = 60, r = 50) {
85
+ function qr(e, n = 60, r = 50) {
80
86
  return {
81
87
  top: `hsl(${e}, ${n}%, ${Math.min(r + 15, 95)}%)`,
82
88
  right: `hsl(${e}, ${n}%, ${r}%)`,
83
89
  left: `hsl(${e}, ${n}%, ${Math.max(r - 15, 15)}%)`
84
90
  };
85
91
  }
86
- const un = {
92
+ const hn = {
87
93
  violet: { hue: 270, saturation: 60, lightness: 55 },
88
94
  blue: { hue: 220, saturation: 70, lightness: 50 },
89
95
  cyan: { hue: 190, saturation: 80, lightness: 45 },
@@ -93,271 +99,283 @@ const un = {
93
99
  slate: { hue: 220, saturation: 15, lightness: 50 },
94
100
  zinc: { hue: 240, saturation: 5, lightness: 50 }
95
101
  };
96
- function Po(e) {
97
- const n = un[e] || un.slate;
98
- return Mr(n.hue, n.saturation, n.lightness);
99
- }
100
- var Re = { exports: {} }, Se = {};
101
- var pn;
102
- function Nr() {
103
- if (pn) return Se;
104
- pn = 1;
102
+ function Ya(e) {
103
+ const n = hn[e] || hn.slate;
104
+ return qr(n.hue, n.saturation, n.lightness);
105
+ }
106
+ var Fe = { exports: {} }, Ce = {};
107
+ var dn;
108
+ function Xr() {
109
+ if (dn) return Ce;
110
+ dn = 1;
105
111
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
106
- function r(t, i, l) {
112
+ function r(i, t, l) {
107
113
  var o = null;
108
- if (l !== void 0 && (o = "" + l), i.key !== void 0 && (o = "" + i.key), "key" in i) {
114
+ if (l !== void 0 && (o = "" + l), t.key !== void 0 && (o = "" + t.key), "key" in t) {
109
115
  l = {};
110
- for (var a in i)
111
- a !== "key" && (l[a] = i[a]);
112
- } else l = i;
113
- return i = l.ref, {
116
+ for (var a in t)
117
+ a !== "key" && (l[a] = t[a]);
118
+ } else l = t;
119
+ return t = l.ref, {
114
120
  $$typeof: e,
115
- type: t,
121
+ type: i,
116
122
  key: o,
117
- ref: i !== void 0 ? i : null,
123
+ ref: t !== void 0 ? t : null,
118
124
  props: l
119
125
  };
120
126
  }
121
- return Se.Fragment = n, Se.jsx = r, Se.jsxs = r, Se;
122
- }
123
- var Ee = {};
124
- var dn;
125
- function Pr() {
126
- return dn || (dn = 1, process.env.NODE_ENV !== "production" && (function() {
127
- function e(h) {
128
- if (h == null) return null;
129
- if (typeof h == "function")
130
- return h.$$typeof === R ? null : h.displayName || h.name || null;
131
- if (typeof h == "string") return h;
132
- switch (h) {
133
- case A:
127
+ return Ce.Fragment = n, Ce.jsx = r, Ce.jsxs = r, Ce;
128
+ }
129
+ var $e = {};
130
+ var xn;
131
+ function Gr() {
132
+ return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
133
+ function e(s) {
134
+ if (s == null) return null;
135
+ if (typeof s == "function")
136
+ return s.$$typeof === ee ? null : s.displayName || s.name || null;
137
+ if (typeof s == "string") return s;
138
+ switch (s) {
139
+ case v:
134
140
  return "Fragment";
135
141
  case b:
136
142
  return "Profiler";
137
- case v:
143
+ case k:
138
144
  return "StrictMode";
139
- case j:
145
+ case N:
140
146
  return "Suspense";
141
147
  case I:
142
148
  return "SuspenseList";
143
- case N:
149
+ case R:
144
150
  return "Activity";
145
151
  }
146
- if (typeof h == "object")
147
- switch (typeof h.tag == "number" && console.error(
152
+ if (typeof s == "object")
153
+ switch (typeof s.tag == "number" && console.error(
148
154
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
149
- ), h.$$typeof) {
155
+ ), s.$$typeof) {
150
156
  case y:
151
157
  return "Portal";
152
- case L:
153
- return h.displayName || "Context";
154
- case D:
155
- return (h._context.displayName || "Context") + ".Consumer";
156
- case w:
157
- var k = h.render;
158
- return h = h.displayName, h || (h = k.displayName || k.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
159
- case $:
160
- return k = h.displayName || null, k !== null ? k : e(h.type) || "Memo";
158
+ case E:
159
+ return s.displayName || "Context";
160
+ case Y:
161
+ return (s._context.displayName || "Context") + ".Consumer";
162
+ case C:
163
+ var A = s.render;
164
+ return s = s.displayName, s || (s = A.displayName || A.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
161
165
  case B:
162
- k = h._payload, h = h._init;
166
+ return A = s.displayName || null, A !== null ? A : e(s.type) || "Memo";
167
+ case j:
168
+ A = s._payload, s = s._init;
163
169
  try {
164
- return e(h(k));
170
+ return e(s(A));
165
171
  } catch {
166
172
  }
167
173
  }
168
174
  return null;
169
175
  }
170
- function n(h) {
171
- return "" + h;
176
+ function n(s) {
177
+ return "" + s;
172
178
  }
173
- function r(h) {
179
+ function r(s) {
174
180
  try {
175
- n(h);
176
- var k = !1;
181
+ n(s);
182
+ var A = !1;
177
183
  } catch {
178
- k = !0;
184
+ A = !0;
179
185
  }
180
- if (k) {
181
- k = console;
182
- var F = k.error, Y = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
183
- return F.call(
184
- k,
186
+ if (A) {
187
+ A = console;
188
+ var O = A.error, F = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
189
+ return O.call(
190
+ A,
185
191
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
186
- Y
187
- ), n(h);
192
+ F
193
+ ), n(s);
188
194
  }
189
195
  }
190
- function t(h) {
191
- if (h === A) return "<>";
192
- if (typeof h == "object" && h !== null && h.$$typeof === B)
196
+ function i(s) {
197
+ if (s === v) return "<>";
198
+ if (typeof s == "object" && s !== null && s.$$typeof === j)
193
199
  return "<...>";
194
200
  try {
195
- var k = e(h);
196
- return k ? "<" + k + ">" : "<...>";
201
+ var A = e(s);
202
+ return A ? "<" + A + ">" : "<...>";
197
203
  } catch {
198
204
  return "<...>";
199
205
  }
200
206
  }
201
- function i() {
202
- var h = M.A;
203
- return h === null ? null : h.getOwner();
207
+ function t() {
208
+ var s = L.A;
209
+ return s === null ? null : s.getOwner();
204
210
  }
205
211
  function l() {
206
212
  return Error("react-stack-top-frame");
207
213
  }
208
- function o(h) {
209
- if (ne.call(h, "key")) {
210
- var k = Object.getOwnPropertyDescriptor(h, "key").get;
211
- if (k && k.isReactWarning) return !1;
214
+ function o(s) {
215
+ if (D.call(s, "key")) {
216
+ var A = Object.getOwnPropertyDescriptor(s, "key").get;
217
+ if (A && A.isReactWarning) return !1;
212
218
  }
213
- return h.key !== void 0;
219
+ return s.key !== void 0;
214
220
  }
215
- function a(h, k) {
216
- function F() {
217
- T || (T = !0, console.error(
221
+ function a(s, A) {
222
+ function O() {
223
+ H || (H = !0, console.error(
218
224
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
219
- k
225
+ A
220
226
  ));
221
227
  }
222
- F.isReactWarning = !0, Object.defineProperty(h, "key", {
223
- get: F,
228
+ O.isReactWarning = !0, Object.defineProperty(s, "key", {
229
+ get: O,
224
230
  configurable: !0
225
231
  });
226
232
  }
227
233
  function c() {
228
- var h = e(this.type);
229
- return W[h] || (W[h] = !0, console.error(
234
+ var s = e(this.type);
235
+ return T[s] || (T[s] = !0, console.error(
230
236
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
231
- )), h = this.props.ref, h !== void 0 ? h : null;
237
+ )), s = this.props.ref, s !== void 0 ? s : null;
232
238
  }
233
- function s(h, k, F, Y, ce, se) {
234
- var P = F.ref;
235
- return h = {
239
+ function f(s, A, O, F, ae, se) {
240
+ var P = O.ref;
241
+ return s = {
236
242
  $$typeof: m,
237
- type: h,
238
- key: k,
239
- props: F,
240
- _owner: Y
241
- }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(h, "ref", {
243
+ type: s,
244
+ key: A,
245
+ props: O,
246
+ _owner: F
247
+ }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(s, "ref", {
242
248
  enumerable: !1,
243
249
  get: c
244
- }) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
250
+ }) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
245
251
  configurable: !1,
246
252
  enumerable: !1,
247
253
  writable: !0,
248
254
  value: 0
249
- }), Object.defineProperty(h, "_debugInfo", {
255
+ }), Object.defineProperty(s, "_debugInfo", {
250
256
  configurable: !1,
251
257
  enumerable: !1,
252
258
  writable: !0,
253
259
  value: null
254
- }), Object.defineProperty(h, "_debugStack", {
260
+ }), Object.defineProperty(s, "_debugStack", {
255
261
  configurable: !1,
256
262
  enumerable: !1,
257
263
  writable: !0,
258
- value: ce
259
- }), Object.defineProperty(h, "_debugTask", {
264
+ value: ae
265
+ }), Object.defineProperty(s, "_debugTask", {
260
266
  configurable: !1,
261
267
  enumerable: !1,
262
268
  writable: !0,
263
269
  value: se
264
- }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
270
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
265
271
  }
266
- function u(h, k, F, Y, ce, se) {
267
- var P = k.children;
272
+ function u(s, A, O, F, ae, se) {
273
+ var P = A.children;
268
274
  if (P !== void 0)
269
- if (Y)
270
- if (J(P)) {
271
- for (Y = 0; Y < P.length; Y++)
272
- x(P[Y]);
275
+ if (F)
276
+ if (re(P)) {
277
+ for (F = 0; F < P.length; F++)
278
+ d(P[F]);
273
279
  Object.freeze && Object.freeze(P);
274
280
  } else
275
281
  console.error(
276
282
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
277
283
  );
278
- else x(P);
279
- if (ne.call(k, "key")) {
280
- P = e(h);
281
- var ie = Object.keys(k).filter(function(ke) {
282
- return ke !== "key";
284
+ else d(P);
285
+ if (D.call(A, "key")) {
286
+ P = e(s);
287
+ var te = Object.keys(A).filter(function(ye) {
288
+ return ye !== "key";
283
289
  });
284
- Y = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", S[P + Y] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
290
+ F = 0 < te.length ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}", M[P + F] || (te = 0 < te.length ? "{" + te.join(": ..., ") + ": ...}" : "{}", console.error(
285
291
  `A props object containing a "key" prop is being spread into JSX:
286
292
  let props = %s;
287
293
  <%s {...props} />
288
294
  React keys must be passed directly to JSX without using spread:
289
295
  let props = %s;
290
296
  <%s key={someKey} {...props} />`,
291
- Y,
297
+ F,
292
298
  P,
293
- ie,
299
+ te,
294
300
  P
295
- ), S[P + Y] = !0);
301
+ ), M[P + F] = !0);
296
302
  }
297
- if (P = null, F !== void 0 && (r(F), P = "" + F), o(k) && (r(k.key), P = "" + k.key), "key" in k) {
298
- F = {};
299
- for (var le in k)
300
- le !== "key" && (F[le] = k[le]);
301
- } else F = k;
303
+ if (P = null, O !== void 0 && (r(O), P = "" + O), o(A) && (r(A.key), P = "" + A.key), "key" in A) {
304
+ O = {};
305
+ for (var fe in A)
306
+ fe !== "key" && (O[fe] = A[fe]);
307
+ } else O = A;
302
308
  return P && a(
303
- F,
304
- typeof h == "function" ? h.displayName || h.name || "Unknown" : h
305
- ), s(
306
- h,
309
+ O,
310
+ typeof s == "function" ? s.displayName || s.name || "Unknown" : s
311
+ ), f(
312
+ s,
307
313
  P,
308
- F,
309
- i(),
310
- ce,
314
+ O,
315
+ t(),
316
+ ae,
311
317
  se
312
318
  );
313
319
  }
314
- function x(h) {
315
- p(h) ? h._store && (h._store.validated = 1) : typeof h == "object" && h !== null && h.$$typeof === B && (h._payload.status === "fulfilled" ? p(h._payload.value) && h._payload.value._store && (h._payload.value._store.validated = 1) : h._store && (h._store.validated = 1));
320
+ function d(s) {
321
+ p(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === j && (s._payload.status === "fulfilled" ? p(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
316
322
  }
317
- function p(h) {
318
- return typeof h == "object" && h !== null && h.$$typeof === m;
323
+ function p(s) {
324
+ return typeof s == "object" && s !== null && s.$$typeof === m;
319
325
  }
320
- var f = jr, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), y = /* @__PURE__ */ Symbol.for("react.portal"), A = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), D = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.activity"), R = /* @__PURE__ */ Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, J = Array.isArray, q = console.createTask ? console.createTask : function() {
326
+ var x = Yr, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), y = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), Y = /* @__PURE__ */ Symbol.for("react.consumer"), E = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.activity"), ee = /* @__PURE__ */ Symbol.for("react.client.reference"), L = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, re = Array.isArray, K = console.createTask ? console.createTask : function() {
321
327
  return null;
322
328
  };
323
- f = {
324
- react_stack_bottom_frame: function(h) {
325
- return h();
329
+ x = {
330
+ react_stack_bottom_frame: function(s) {
331
+ return s();
326
332
  }
327
333
  };
328
- var T, W = {}, Q = f.react_stack_bottom_frame.bind(
329
- f,
334
+ var H, T = {}, U = x.react_stack_bottom_frame.bind(
335
+ x,
330
336
  l
331
- )(), O = q(t(l)), S = {};
332
- Ee.Fragment = A, Ee.jsx = function(h, k, F) {
333
- var Y = 1e4 > M.recentlyCreatedOwnerStacks++;
337
+ )(), oe = K(i(l)), M = {};
338
+ $e.Fragment = v, $e.jsx = function(s, A, O) {
339
+ var F = 1e4 > L.recentlyCreatedOwnerStacks++;
334
340
  return u(
335
- h,
336
- k,
337
- F,
341
+ s,
342
+ A,
343
+ O,
338
344
  !1,
339
- Y ? Error("react-stack-top-frame") : Q,
340
- Y ? q(t(h)) : O
345
+ F ? Error("react-stack-top-frame") : U,
346
+ F ? K(i(s)) : oe
341
347
  );
342
- }, Ee.jsxs = function(h, k, F) {
343
- var Y = 1e4 > M.recentlyCreatedOwnerStacks++;
348
+ }, $e.jsxs = function(s, A, O) {
349
+ var F = 1e4 > L.recentlyCreatedOwnerStacks++;
344
350
  return u(
345
- h,
346
- k,
347
- F,
351
+ s,
352
+ A,
353
+ O,
348
354
  !0,
349
- Y ? Error("react-stack-top-frame") : Q,
350
- Y ? q(t(h)) : O
355
+ F ? Error("react-stack-top-frame") : U,
356
+ F ? K(i(s)) : oe
351
357
  );
352
358
  };
353
- })()), Ee;
354
- }
355
- var hn;
356
- function Dr() {
357
- return hn || (hn = 1, process.env.NODE_ENV === "production" ? Re.exports = Nr() : Re.exports = Pr()), Re.exports;
358
- }
359
- var d = Dr();
360
- const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace', Br = 0.78, g = (e) => Math.round(e * Br * 10) / 10, In = {
359
+ })()), $e;
360
+ }
361
+ var mn;
362
+ function Kr() {
363
+ return mn || (mn = 1, process.env.NODE_ENV === "production" ? Fe.exports = Xr() : Fe.exports = Gr()), Fe.exports;
364
+ }
365
+ var h = Kr();
366
+ const Dn = {
367
+ rose: { top: "#c58a70", side: "#a86c55", front: "#b57860" },
368
+ slate: { top: "#9aaab6", side: "#718693", front: "#8196a2" },
369
+ cyan: { top: "#679c99", side: "#467f7d", front: "#568e8a" },
370
+ emerald: { top: "#a2b08b", side: "#7d9168", front: "#8e9f78" },
371
+ blue: { top: "#829eae", side: "#5b798b", front: "#6b8999" },
372
+ violet: { top: "#a698ac", side: "#807187", front: "#918297" },
373
+ amber: { top: "#c6ac71", side: "#a08950", front: "#b09a61" }
374
+ }, Yn = Array.from({ length: 180 }, (e, n) => ({
375
+ x: (n * 73.37 + 11.7) % 64,
376
+ y: (n * n * 13.19 + 5.3) % 64,
377
+ r: n % 3 === 0 ? 0.48 : 0.28
378
+ })), Vr = ["solid", "blueprint", "cyanotype"], rn = '"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace', Zr = 0.78, g = (e) => Math.round(e * Zr * 10) / 10, Bn = {
361
379
  id: "solid",
362
380
  name: "Solid",
363
381
  description: "Shaded isometric boxes",
@@ -373,9 +391,9 @@ const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Ple
373
391
  },
374
392
  face: { top: "transparent", right: "transparent", left: "transparent" },
375
393
  hatchOpacity: { top: 0, right: 0, left: 0 },
376
- font: en,
394
+ font: rn,
377
395
  strokeWidth: 0.5
378
- }, Wr = {
396
+ }, Jr = {
379
397
  id: "blueprint",
380
398
  name: "Blueprint",
381
399
  description: "Sepia engineering plate on parchment",
@@ -390,10 +408,10 @@ const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Ple
390
408
  accent: "#a8412a"
391
409
  },
392
410
  face: { top: "#f4ebd7", right: "#e6dabb", left: "#d6c6a2" },
393
- hatchOpacity: { top: 0.3, right: 0.55, left: 0.85 },
394
- font: en,
411
+ hatchOpacity: { top: 0.48, right: 0.68, left: 0.92 },
412
+ font: rn,
395
413
  strokeWidth: 1
396
- }, Hr = {
414
+ }, Qr = {
397
415
  id: "cyanotype",
398
416
  name: "Cyanotype",
399
417
  description: "White linework on classic blueprint blue",
@@ -408,19 +426,19 @@ const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Ple
408
426
  accent: "#ffc857"
409
427
  },
410
428
  face: { top: "#1b4675", right: "#153a61", left: "#0f2b49" },
411
- hatchOpacity: { top: 0.28, right: 0.5, left: 0.78 },
412
- font: en,
429
+ hatchOpacity: { top: 0.46, right: 0.64, left: 0.88 },
430
+ font: rn,
413
431
  strokeWidth: 1
414
- }, Mn = { solid: In, blueprint: Wr, cyanotype: Hr };
415
- function Ur(e) {
416
- return Mn[e] || In;
432
+ }, Hn = { solid: Bn, blueprint: Jr, cyanotype: Qr };
433
+ function et(e) {
434
+ return Hn[e] || Bn;
417
435
  }
418
- const Xr = Yr.filter((e) => Mn[e].technical);
419
- Xr[0];
420
- const Gr = {
436
+ const nt = Vr.filter((e) => Hn[e].technical);
437
+ nt[0];
438
+ const rt = {
421
439
  violet: "cross",
422
440
  blue: "lines",
423
- sky: "lines",
441
+ sky: "dashes",
424
442
  cyan: "dashes",
425
443
  emerald: "dots",
426
444
  amber: "dense",
@@ -429,10 +447,10 @@ const Gr = {
429
447
  zinc: "plain",
430
448
  slate: "plain"
431
449
  };
432
- function Nn(e) {
433
- return Gr[e || "zinc"] || "lines";
450
+ function Wn(e) {
451
+ return rt[e || "zinc"] || "lines";
434
452
  }
435
- const zr = {
453
+ const tt = {
436
454
  plain: "PLAIN",
437
455
  lines: "HATCH-A",
438
456
  cross: "HATCH-X",
@@ -440,182 +458,182 @@ const zr = {
440
458
  dots: "STIPPLE",
441
459
  dashes: "BROKEN"
442
460
  };
443
- function xn(e, n, r, t = 0, i = 0) {
444
- const l = (v, b, D) => {
445
- const L = E(v, b, D);
446
- return { x: L.screenX + t, y: L.screenY + i };
447
- }, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0), s = l(0, n, 0), u = l(0, 0, r), x = l(e, 0, r), p = l(e, n, r), f = l(0, n, r), m = (v) => `M ${v.map((b) => `${b.x},${b.y}`).join(" L ")} Z`, y = (v, b) => `M ${v.x},${v.y} L ${b.x},${b.y}`, A = [o, a, c, s, u, x, p, f];
461
+ function yn(e, n, r, i = 0, t = 0) {
462
+ const l = (k, b, Y) => {
463
+ const E = w(k, b, Y);
464
+ return { x: E.screenX + i, y: E.screenY + t };
465
+ }, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0), f = l(0, n, 0), u = l(0, 0, r), d = l(e, 0, r), p = l(e, n, r), x = l(0, n, r), m = (k) => `M ${k.map((b) => `${b.x},${b.y}`).join(" L ")} Z`, y = (k, b) => `M ${k.x},${k.y} L ${b.x},${b.y}`, v = [o, a, c, f, u, d, p, x];
448
466
  return {
449
- top: m([u, x, p, f]),
450
- right: m([o, a, x, u]),
451
- left: m([o, s, f, u]),
467
+ top: m([u, d, p, x]),
468
+ right: m([o, a, d, u]),
469
+ left: m([o, f, x, u]),
452
470
  visible: [
453
471
  // silhouette
454
- m([o, a, x, p, f, s]),
472
+ m([o, a, d, p, x, f]),
455
473
  // interior creases radiating from the near top corner
474
+ y(u, d),
456
475
  y(u, x),
457
- y(u, f),
458
476
  y(u, o)
459
477
  ].join(" "),
460
- hidden: [y(c, a), y(c, s), y(c, p)].join(" "),
478
+ hidden: [y(c, a), y(c, f), y(c, p)].join(" "),
461
479
  topCenter: { x: (u.x + p.x) / 2, y: (u.y + p.y) / 2 },
462
480
  topApex: { x: p.x, y: p.y },
463
- minX: Math.min(...A.map((v) => v.x)),
464
- minY: Math.min(...A.map((v) => v.y)),
465
- maxX: Math.max(...A.map((v) => v.x)),
466
- maxY: Math.max(...A.map((v) => v.y))
481
+ minX: Math.min(...v.map((k) => k.x)),
482
+ minY: Math.min(...v.map((k) => k.y)),
483
+ maxX: Math.max(...v.map((k) => k.x)),
484
+ maxY: Math.max(...v.map((k) => k.y))
467
485
  };
468
486
  }
469
- function Pe(e) {
487
+ function De(e) {
470
488
  return String(e).padStart(2, "0");
471
489
  }
472
- const qr = {
490
+ const it = {
473
491
  top: ["n30", "p30"],
474
492
  right: ["n30", "v"],
475
493
  left: ["p30", "v"]
476
- }, Kr = { n30: -30, p30: 30, v: 90 }, Vr = [
494
+ }, ot = { n30: -30, p30: 30, v: 90 }, lt = [
477
495
  { key: "line", spacing: 6.2, strokeWidth: 0.55 },
478
496
  { key: "dense", spacing: 3.1, strokeWidth: 0.45 },
479
497
  { key: "dash", spacing: 6.2, strokeWidth: 0.55, dash: "2.6 2.6" }
480
- ], we = 22;
481
- function Pn(e, n, r) {
482
- const [t, i] = qr[r];
498
+ ], Se = 22;
499
+ function Un(e, n, r) {
500
+ const [i, t] = it[r];
483
501
  switch (n) {
484
502
  case "plain":
485
503
  return [];
486
504
  case "lines":
487
- return [`${e}-line-${t}`];
505
+ return [`${e}-line-${i}`];
488
506
  case "cross":
489
- return [`${e}-line-${t}`, `${e}-line-${i}`];
507
+ return [`${e}-line-${i}`, `${e}-line-${t}`];
490
508
  case "dense":
491
- return [`${e}-dense-${t}`];
509
+ return [`${e}-dense-${i}`];
492
510
  case "dashes":
493
- return [`${e}-dash-${t}`];
511
+ return [`${e}-dash-${i}`];
494
512
  case "dots":
495
513
  return [`${e}-dot`];
496
514
  default:
497
- return [`${e}-line-${t}`];
515
+ return [`${e}-line-${i}`];
498
516
  }
499
517
  }
500
- const Dn = (e) => `${e}-paper`, Yn = (e) => `${e}-grain`, Zr = (e, n = "line") => `${e}-arrow-${n}`, Jr = (e) => [`${e}-grid-n30`, `${e}-grid-p30`];
501
- function nn({
518
+ const zn = (e) => `${e}-paper`, qn = (e) => `${e}-grain`, at = (e, n = "line") => `${e}-arrow-${n}`, ct = (e) => [`${e}-grid-n30`, `${e}-grid-p30`];
519
+ function tn({
502
520
  uid: e,
503
521
  style: n,
504
522
  /** Extra transform applied to the graph-paper grid, so it can be pinned to
505
523
  * panned/zoomed content while the paper itself fills the viewport. */
506
524
  gridTransform: r = ""
507
525
  }) {
508
- return /* @__PURE__ */ d.jsxs("defs", { children: [
509
- Vr.flatMap(
510
- (t) => Object.entries(Kr).map(([i, l]) => /* @__PURE__ */ d.jsx(
526
+ return /* @__PURE__ */ h.jsxs("defs", { children: [
527
+ lt.flatMap(
528
+ (i) => Object.entries(ot).map(([t, l]) => /* @__PURE__ */ h.jsx(
511
529
  "pattern",
512
530
  {
513
- id: `${e}-${t.key}-${i}`,
514
- width: t.spacing,
515
- height: t.spacing,
531
+ id: `${e}-${i.key}-${t}`,
532
+ width: i.spacing,
533
+ height: i.spacing,
516
534
  patternUnits: "userSpaceOnUse",
517
535
  patternTransform: `rotate(${l})`,
518
- children: /* @__PURE__ */ d.jsx(
536
+ children: /* @__PURE__ */ h.jsx(
519
537
  "line",
520
538
  {
521
539
  x1: -1,
522
- y1: t.spacing / 2,
523
- x2: t.spacing + 1,
524
- y2: t.spacing / 2,
540
+ y1: i.spacing / 2,
541
+ x2: i.spacing + 1,
542
+ y2: i.spacing / 2,
525
543
  stroke: n.ink.hatch,
526
- strokeWidth: t.strokeWidth,
527
- strokeDasharray: t.dash
544
+ strokeWidth: i.strokeWidth,
545
+ strokeDasharray: i.dash
528
546
  }
529
547
  )
530
548
  },
531
- `${t.key}-${i}`
549
+ `${i.key}-${t}`
532
550
  ))
533
551
  ),
534
- /* @__PURE__ */ d.jsx("pattern", { id: `${e}-dot`, width: 4.5, height: 4.5, patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ d.jsx("circle", { cx: 2.25, cy: 2.25, r: 0.55, fill: n.ink.hatch }) }),
552
+ /* @__PURE__ */ h.jsx("pattern", { id: `${e}-dot`, width: 4.5, height: 4.5, patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ h.jsx("circle", { cx: 2.25, cy: 2.25, r: 0.55, fill: n.ink.hatch }) }),
535
553
  [
536
554
  { id: `${e}-grid-n30`, angle: -30 },
537
555
  { id: `${e}-grid-p30`, angle: 30 }
538
- ].map(({ id: t, angle: i }) => /* @__PURE__ */ d.jsx(
556
+ ].map(({ id: i, angle: t }) => /* @__PURE__ */ h.jsx(
539
557
  "pattern",
540
558
  {
541
- id: t,
542
- width: we,
543
- height: we,
559
+ id: i,
560
+ width: Se,
561
+ height: Se,
544
562
  patternUnits: "userSpaceOnUse",
545
- patternTransform: `${r} rotate(${i})`.trim(),
546
- children: /* @__PURE__ */ d.jsx(
563
+ patternTransform: `${r} rotate(${t})`.trim(),
564
+ children: /* @__PURE__ */ h.jsx(
547
565
  "line",
548
566
  {
549
567
  x1: -1,
550
- y1: we / 2,
551
- x2: we + 1,
552
- y2: we / 2,
568
+ y1: Se / 2,
569
+ x2: Se + 1,
570
+ y2: Se / 2,
553
571
  stroke: n.paper.grid,
554
572
  strokeWidth: 0.5
555
573
  }
556
574
  )
557
575
  },
558
- t
576
+ i
559
577
  )),
560
- /* @__PURE__ */ d.jsxs("linearGradient", { id: Dn(e), x1: "0", y1: "0", x2: "0.35", y2: "1", children: [
561
- /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: n.paper.from }),
562
- /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: n.paper.to })
578
+ /* @__PURE__ */ h.jsxs("linearGradient", { id: zn(e), x1: "0", y1: "0", x2: "0.35", y2: "1", children: [
579
+ /* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: n.paper.from }),
580
+ /* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: n.paper.to })
563
581
  ] }),
564
- /* @__PURE__ */ d.jsxs("filter", { id: Yn(e), x: "0%", y: "0%", width: "100%", height: "100%", children: [
565
- /* @__PURE__ */ d.jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.85", numOctaves: 3, stitchTiles: "stitch" }),
566
- /* @__PURE__ */ d.jsx("feColorMatrix", { type: "saturate", values: "0" })
582
+ /* @__PURE__ */ h.jsxs("filter", { id: qn(e), x: "0%", y: "0%", width: "100%", height: "100%", children: [
583
+ /* @__PURE__ */ h.jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.85", numOctaves: 3, stitchTiles: "stitch" }),
584
+ /* @__PURE__ */ h.jsx("feColorMatrix", { type: "saturate", values: "0" })
567
585
  ] }),
568
- ["line", "accent"].map((t) => /* @__PURE__ */ d.jsx(
586
+ ["line", "accent"].map((i) => /* @__PURE__ */ h.jsx(
569
587
  "marker",
570
588
  {
571
- id: Zr(e, t),
589
+ id: at(e, i),
572
590
  markerWidth: "10",
573
591
  markerHeight: "10",
574
592
  refX: "8",
575
593
  refY: "4",
576
594
  orient: "auto",
577
595
  markerUnits: "userSpaceOnUse",
578
- children: /* @__PURE__ */ d.jsx(
596
+ children: /* @__PURE__ */ h.jsx(
579
597
  "path",
580
598
  {
581
599
  d: "M 1 1 L 8 4 L 1 7",
582
600
  fill: "none",
583
- stroke: t === "accent" ? n.ink.accent : n.ink.line,
601
+ stroke: i === "accent" ? n.ink.accent : n.ink.line,
584
602
  strokeWidth: 1,
585
603
  strokeLinecap: "round",
586
604
  strokeLinejoin: "round"
587
605
  }
588
606
  )
589
607
  },
590
- t
608
+ i
591
609
  ))
592
610
  ] });
593
611
  }
594
- function Qr({
612
+ function st({
595
613
  style: e,
596
614
  rect: n,
597
615
  pan: r,
598
- zoom: t = 1,
599
- className: i = "absolute inset-0 w-full h-full pointer-events-none"
616
+ zoom: i = 1,
617
+ className: t = "absolute inset-0 w-full h-full pointer-events-none"
600
618
  }) {
601
- const l = Qe().replace(/:/g, ""), o = r ? `translate(${r.x} ${r.y}) scale(${t})` : t !== 1 ? `scale(${t})` : "", a = n ? { x: n.x, y: n.y, width: n.width, height: n.height } : { x: 0, y: 0, width: "100%", height: "100%" };
602
- return /* @__PURE__ */ d.jsxs("svg", { className: i, "aria-hidden": "true", children: [
603
- /* @__PURE__ */ d.jsx(nn, { uid: l, style: e, gridTransform: o }),
604
- /* @__PURE__ */ d.jsx("rect", { ...a, fill: `url(#${Dn(l)})` }),
605
- Jr(l).map((c) => /* @__PURE__ */ d.jsx("rect", { ...a, fill: `url(#${c})`, opacity: 0.6 }, c)),
606
- e.paper.grain > 0 && /* @__PURE__ */ d.jsx("rect", { ...a, filter: `url(#${Yn(l)})`, opacity: e.paper.grain })
619
+ const l = nn().replace(/:/g, ""), o = r ? `translate(${r.x} ${r.y}) scale(${i})` : i !== 1 ? `scale(${i})` : "", a = n ? { x: n.x, y: n.y, width: n.width, height: n.height } : { x: 0, y: 0, width: "100%", height: "100%" };
620
+ return /* @__PURE__ */ h.jsxs("svg", { className: t, "aria-hidden": "true", children: [
621
+ /* @__PURE__ */ h.jsx(tn, { uid: l, style: e, gridTransform: o }),
622
+ /* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${zn(l)})` }),
623
+ ct(l).map((c) => /* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${c})`, opacity: 0.6 }, c)),
624
+ e.paper.grain > 0 && /* @__PURE__ */ h.jsx("rect", { ...a, filter: `url(#${qn(l)})`, opacity: e.paper.grain })
607
625
  ] });
608
626
  }
609
- const Ie = g(10), ei = 9, mn = (e, n) => e.length > n ? `${e.slice(0, n - 1)}…` : e;
610
- function ni({
627
+ const Ie = g(10), ft = 9, gn = (e, n) => e.length > n ? `${e.slice(0, n - 1)}…` : e;
628
+ function ut({
611
629
  style: e,
612
630
  plate: n,
613
631
  rows: r,
614
- title: t,
615
- tally: i,
632
+ title: i,
633
+ tally: t,
616
634
  className: l = "absolute inset-0 w-full h-full pointer-events-none"
617
635
  }) {
618
- const o = Qe().replace(/:/g, ""), a = r.slice(0, ei), c = r.length - a.length, s = {
636
+ const o = nn().replace(/:/g, ""), a = r.slice(0, ft), c = r.length - a.length, f = {
619
637
  x: n.minX + Ie,
620
638
  y: n.minY + Ie,
621
639
  width: n.maxX - n.minX - Ie * 2,
@@ -623,10 +641,10 @@ function ni({
623
641
  }, u = {
624
642
  fontFamily: e.font,
625
643
  letterSpacing: "0.08em"
626
- }, x = g(236), p = g(13), f = g(16), m = f + Math.max(a.length, 1) * p + (c > 0 ? p : 0), y = s.x + g(14), A = s.y + g(14), v = g(264), b = g(74), D = g(126), L = s.x + s.width - v - g(14), w = s.y + s.height - b - g(14);
627
- return /* @__PURE__ */ d.jsxs("svg", { className: l, style: { overflow: "visible" }, "aria-hidden": "true", children: [
628
- /* @__PURE__ */ d.jsx(nn, { uid: o, style: e }),
629
- /* @__PURE__ */ d.jsx(
644
+ }, d = g(236), p = g(13), x = g(16), m = x + Math.max(a.length, 1) * p + (c > 0 ? p : 0), y = f.x + g(14), v = f.y + g(14), k = g(264), b = g(74), Y = g(126), E = f.x + f.width - k - g(14), C = f.y + f.height - b - g(14);
645
+ return /* @__PURE__ */ h.jsxs("svg", { className: l, style: { overflow: "visible" }, "aria-hidden": "true", children: [
646
+ /* @__PURE__ */ h.jsx(tn, { uid: o, style: e }),
647
+ /* @__PURE__ */ h.jsx(
630
648
  "rect",
631
649
  {
632
650
  x: n.minX,
@@ -638,13 +656,13 @@ function ni({
638
656
  strokeWidth: 1.4
639
657
  }
640
658
  ),
641
- /* @__PURE__ */ d.jsx(
659
+ /* @__PURE__ */ h.jsx(
642
660
  "rect",
643
661
  {
644
- x: s.x,
645
- y: s.y,
646
- width: s.width,
647
- height: s.height,
662
+ x: f.x,
663
+ y: f.y,
664
+ width: f.width,
665
+ height: f.height,
648
666
  fill: "none",
649
667
  stroke: e.paper.edge,
650
668
  strokeWidth: 0.6,
@@ -652,27 +670,27 @@ function ni({
652
670
  }
653
671
  ),
654
672
  [
655
- [s.x, s.y, 1, 1],
656
- [s.x + s.width, s.y, -1, 1],
657
- [s.x, s.y + s.height, 1, -1],
658
- [s.x + s.width, s.y + s.height, -1, -1]
659
- ].map(([j, I, $, B], N) => /* @__PURE__ */ d.jsx(
673
+ [f.x, f.y, 1, 1],
674
+ [f.x + f.width, f.y, -1, 1],
675
+ [f.x, f.y + f.height, 1, -1],
676
+ [f.x + f.width, f.y + f.height, -1, -1]
677
+ ].map(([N, I, B, j], R) => /* @__PURE__ */ h.jsx(
660
678
  "path",
661
679
  {
662
- d: `M ${j + $ * g(16)} ${I} L ${j} ${I} L ${j} ${I + B * g(16)}`,
680
+ d: `M ${N + B * g(16)} ${I} L ${N} ${I} L ${N} ${I + j * g(16)}`,
663
681
  fill: "none",
664
682
  stroke: e.ink.line,
665
683
  strokeWidth: 1.2
666
684
  },
667
- N
685
+ R
668
686
  )),
669
- a.length > 0 && /* @__PURE__ */ d.jsxs("g", { children: [
670
- /* @__PURE__ */ d.jsx(
687
+ a.length > 0 && /* @__PURE__ */ h.jsxs("g", { children: [
688
+ /* @__PURE__ */ h.jsx(
671
689
  "rect",
672
690
  {
673
691
  x: y,
674
- y: A,
675
- width: x,
692
+ y: v,
693
+ width: d,
676
694
  height: m,
677
695
  fill: e.paper.from,
678
696
  fillOpacity: 0.55,
@@ -680,42 +698,42 @@ function ni({
680
698
  strokeWidth: 0.8
681
699
  }
682
700
  ),
683
- /* @__PURE__ */ d.jsx(
701
+ /* @__PURE__ */ h.jsx(
684
702
  "line",
685
703
  {
686
704
  x1: y,
687
- y1: A + f,
688
- x2: y + x,
689
- y2: A + f,
705
+ y1: v + x,
706
+ x2: y + d,
707
+ y2: v + x,
690
708
  stroke: e.ink.line,
691
709
  strokeWidth: 0.8
692
710
  }
693
711
  ),
694
- /* @__PURE__ */ d.jsx("text", { x: y + g(8), y: A + g(11), fill: e.ink.text, fontSize: g(8), fontWeight: 600, style: u, children: "COMPONENT INDEX" }),
695
- /* @__PURE__ */ d.jsxs(
712
+ /* @__PURE__ */ h.jsx("text", { x: y + g(8), y: v + g(11), fill: e.ink.text, fontSize: g(8), fontWeight: 600, style: u, children: "COMPONENT INDEX" }),
713
+ /* @__PURE__ */ h.jsxs(
696
714
  "text",
697
715
  {
698
- x: y + x - g(8),
699
- y: A + g(11),
716
+ x: y + d - g(8),
717
+ y: v + g(11),
700
718
  textAnchor: "end",
701
719
  fill: e.ink.muted,
702
720
  fontSize: g(8),
703
721
  style: u,
704
722
  children: [
705
- Pe(r.length),
723
+ De(r.length),
706
724
  " ITEMS"
707
725
  ]
708
726
  }
709
727
  ),
710
- a.map((j, I) => {
711
- const $ = A + f + I * p, B = Nn(j.color), N = Pn(o, B, "top");
712
- return /* @__PURE__ */ d.jsxs("g", { children: [
713
- /* @__PURE__ */ d.jsx("text", { x: y + g(8), y: $ + g(9.5), fill: e.ink.muted, fontSize: g(7.5), style: u, children: Pe(j.n) }),
714
- /* @__PURE__ */ d.jsx(
728
+ a.map((N, I) => {
729
+ const B = v + x + I * p, j = Wn(N.color), R = Un(o, j, "top");
730
+ return /* @__PURE__ */ h.jsxs("g", { children: [
731
+ /* @__PURE__ */ h.jsx("text", { x: y + g(8), y: B + g(9.5), fill: e.ink.muted, fontSize: g(7.5), style: u, children: De(N.n) }),
732
+ /* @__PURE__ */ h.jsx(
715
733
  "rect",
716
734
  {
717
735
  x: y + g(28),
718
- y: $ + g(3),
736
+ y: B + g(3),
719
737
  width: g(14),
720
738
  height: g(7),
721
739
  fill: e.face.right,
@@ -723,38 +741,38 @@ function ni({
723
741
  strokeWidth: 0.4
724
742
  }
725
743
  ),
726
- N.map((R) => /* @__PURE__ */ d.jsx(
744
+ R.map((ee) => /* @__PURE__ */ h.jsx(
727
745
  "rect",
728
746
  {
729
747
  x: y + g(28),
730
- y: $ + g(3),
748
+ y: B + g(3),
731
749
  width: g(14),
732
750
  height: g(7),
733
- fill: `url(#${R})`,
751
+ fill: `url(#${ee})`,
734
752
  opacity: 0.85
735
753
  },
736
- R
754
+ ee
737
755
  )),
738
- /* @__PURE__ */ d.jsx("text", { x: y + g(50), y: $ + g(9.5), fill: e.ink.text, fontSize: g(7.5), style: u, children: mn((j.name || "").toUpperCase(), 18) }),
739
- /* @__PURE__ */ d.jsx(
756
+ /* @__PURE__ */ h.jsx("text", { x: y + g(50), y: B + g(9.5), fill: e.ink.text, fontSize: g(7.5), style: u, children: gn((N.name || "").toUpperCase(), 18) }),
757
+ /* @__PURE__ */ h.jsx(
740
758
  "text",
741
759
  {
742
- x: y + x - g(8),
743
- y: $ + g(9.5),
760
+ x: y + d - g(8),
761
+ y: B + g(9.5),
744
762
  textAnchor: "end",
745
763
  fill: e.ink.muted,
746
764
  fontSize: g(7),
747
765
  style: u,
748
- children: zr[B]
766
+ children: tt[j]
749
767
  }
750
768
  )
751
- ] }, j.n);
769
+ ] }, N.n);
752
770
  }),
753
- c > 0 && /* @__PURE__ */ d.jsx(
771
+ c > 0 && /* @__PURE__ */ h.jsx(
754
772
  "text",
755
773
  {
756
774
  x: y + g(8),
757
- y: A + f + a.length * p + g(9.5),
775
+ y: v + x + a.length * p + g(9.5),
758
776
  fill: e.ink.muted,
759
777
  fontSize: g(7.5),
760
778
  style: u,
@@ -762,13 +780,13 @@ function ni({
762
780
  }
763
781
  )
764
782
  ] }),
765
- /* @__PURE__ */ d.jsxs("g", { children: [
766
- /* @__PURE__ */ d.jsx(
783
+ /* @__PURE__ */ h.jsxs("g", { children: [
784
+ /* @__PURE__ */ h.jsx(
767
785
  "rect",
768
786
  {
769
- x: L,
770
- y: w,
771
- width: v,
787
+ x: E,
788
+ y: C,
789
+ width: k,
772
790
  height: b,
773
791
  fill: e.paper.from,
774
792
  fillOpacity: 0.55,
@@ -776,39 +794,493 @@ function ni({
776
794
  strokeWidth: 0.8
777
795
  }
778
796
  ),
779
- /* @__PURE__ */ d.jsx("line", { x1: L, y1: w + g(30), x2: L + v, y2: w + g(30), stroke: e.ink.line, strokeWidth: 0.8 }),
780
- /* @__PURE__ */ d.jsx("line", { x1: L, y1: w + g(52), x2: L + v, y2: w + g(52), stroke: e.ink.line, strokeWidth: 0.5 }),
781
- /* @__PURE__ */ d.jsx("line", { x1: L + D, y1: w + g(30), x2: L + D, y2: w + b, stroke: e.ink.line, strokeWidth: 0.5 }),
782
- /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: w + g(12), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "DRAWING TITLE" }),
783
- /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: w + g(24), fill: e.ink.text, fontSize: g(10), fontWeight: 600, style: u, children: mn((t || "UNTITLED ASSEMBLY").toUpperCase(), 26) }),
784
- /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: w + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "PROJECTION" }),
785
- /* @__PURE__ */ d.jsx("text", { x: L + D - g(9), y: w + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "ISOMETRIC 30°" }),
786
- /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: w + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SCALE" }),
787
- /* @__PURE__ */ d.jsx("text", { x: L + D - g(9), y: w + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1:1" }),
788
- /* @__PURE__ */ d.jsx("text", { x: L + D + g(9), y: w + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "QTY" }),
789
- /* @__PURE__ */ d.jsx("text", { x: L + v - g(9), y: w + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: i || `${Pe(r.length)} CMP` }),
790
- /* @__PURE__ */ d.jsx("text", { x: L + D + g(9), y: w + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SHEET" }),
791
- /* @__PURE__ */ d.jsx("text", { x: L + v - g(9), y: w + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1 OF 1" })
797
+ /* @__PURE__ */ h.jsx("line", { x1: E, y1: C + g(30), x2: E + k, y2: C + g(30), stroke: e.ink.line, strokeWidth: 0.8 }),
798
+ /* @__PURE__ */ h.jsx("line", { x1: E, y1: C + g(52), x2: E + k, y2: C + g(52), stroke: e.ink.line, strokeWidth: 0.5 }),
799
+ /* @__PURE__ */ h.jsx("line", { x1: E + Y, y1: C + g(30), x2: E + Y, y2: C + b, stroke: e.ink.line, strokeWidth: 0.5 }),
800
+ /* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(12), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "DRAWING TITLE" }),
801
+ /* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(24), fill: e.ink.text, fontSize: g(10), fontWeight: 600, style: u, children: gn((i || "UNTITLED ASSEMBLY").toUpperCase(), 26) }),
802
+ /* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "PROJECTION" }),
803
+ /* @__PURE__ */ h.jsx("text", { x: E + Y - g(9), y: C + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "ISOMETRIC 30°" }),
804
+ /* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SCALE" }),
805
+ /* @__PURE__ */ h.jsx("text", { x: E + Y - g(9), y: C + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1:1" }),
806
+ /* @__PURE__ */ h.jsx("text", { x: E + Y + g(9), y: C + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "QTY" }),
807
+ /* @__PURE__ */ h.jsx("text", { x: E + k - g(9), y: C + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: t || `${De(r.length)} CMP` }),
808
+ /* @__PURE__ */ h.jsx("text", { x: E + Y + g(9), y: C + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SHEET" }),
809
+ /* @__PURE__ */ h.jsx("text", { x: E + k - g(9), y: C + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1 OF 1" })
792
810
  ] })
793
811
  ] });
794
812
  }
795
- function ri({
813
+ const pt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ht = (e) => e.replace(
814
+ /^([A-Z])|[\s-_]+(\w)/g,
815
+ (n, r, i) => i ? i.toUpperCase() : r.toLowerCase()
816
+ ), kn = (e) => {
817
+ const n = ht(e);
818
+ return n.charAt(0).toUpperCase() + n.slice(1);
819
+ }, Xn = (...e) => e.filter((n, r, i) => !!n && n.trim() !== "" && i.indexOf(n) === r).join(" ").trim(), dt = (e) => {
820
+ for (const n in e)
821
+ if (n.startsWith("aria-") || n === "role" || n === "title")
822
+ return !0;
823
+ };
824
+ var xt = {
825
+ xmlns: "http://www.w3.org/2000/svg",
826
+ width: 24,
827
+ height: 24,
828
+ viewBox: "0 0 24 24",
829
+ fill: "none",
830
+ stroke: "currentColor",
831
+ strokeWidth: 2,
832
+ strokeLinecap: "round",
833
+ strokeLinejoin: "round"
834
+ };
835
+ const mt = Rn(
836
+ ({
837
+ color: e = "currentColor",
838
+ size: n = 24,
839
+ strokeWidth: r = 2,
840
+ absoluteStrokeWidth: i,
841
+ className: t = "",
842
+ children: l,
843
+ iconNode: o,
844
+ ...a
845
+ }, c) => Ke(
846
+ "svg",
847
+ {
848
+ ref: c,
849
+ ...xt,
850
+ width: n,
851
+ height: n,
852
+ stroke: e,
853
+ strokeWidth: i ? Number(r) * 24 / Number(n) : r,
854
+ className: Xn("lucide", t),
855
+ ...!l && !dt(a) && { "aria-hidden": "true" },
856
+ ...a
857
+ },
858
+ [
859
+ ...o.map(([f, u]) => Ke(f, u)),
860
+ ...Array.isArray(l) ? l : [l]
861
+ ]
862
+ )
863
+ );
864
+ const $ = (e, n) => {
865
+ const r = Rn(
866
+ ({ className: i, ...t }, l) => Ke(mt, {
867
+ ref: l,
868
+ iconNode: n,
869
+ className: Xn(
870
+ `lucide-${pt(kn(e))}`,
871
+ `lucide-${e}`,
872
+ i
873
+ ),
874
+ ...t
875
+ })
876
+ );
877
+ return r.displayName = kn(e), r;
878
+ };
879
+ const yt = [
880
+ [
881
+ "path",
882
+ {
883
+ d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
884
+ key: "169zse"
885
+ }
886
+ ]
887
+ ], gt = $("activity", yt);
888
+ const kt = [
889
+ ["path", { d: "M12 5v14", key: "s699le" }],
890
+ ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
891
+ ], vt = $("arrow-down", kt);
892
+ const bt = [
893
+ ["path", { d: "M5 12h14", key: "1ays0h" }],
894
+ ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
895
+ ], At = $("arrow-right", bt);
896
+ const _t = [
897
+ ["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
898
+ [
899
+ "path",
900
+ {
901
+ d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
902
+ key: "11g9vi"
903
+ }
904
+ ]
905
+ ], wt = $("bell", _t);
906
+ const Ct = [
907
+ [
908
+ "path",
909
+ {
910
+ d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
911
+ key: "hh9hay"
912
+ }
913
+ ],
914
+ ["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
915
+ ["path", { d: "M12 22V12", key: "d0xqtd" }]
916
+ ], Gn = $("box", Ct);
917
+ const $t = [
918
+ [
919
+ "path",
920
+ {
921
+ d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
922
+ key: "18u6gg"
923
+ }
924
+ ],
925
+ ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
926
+ ], St = $("camera", $t);
927
+ const Et = [
928
+ ["path", { d: "M5 21v-6", key: "1hz6c0" }],
929
+ ["path", { d: "M12 21V9", key: "uvy0l4" }],
930
+ ["path", { d: "M19 21V3", key: "11j9sm" }]
931
+ ], Tt = $("chart-no-axes-column-increasing", Et);
932
+ const Mt = [
933
+ [
934
+ "path",
935
+ {
936
+ d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
937
+ key: "pzmjnu"
938
+ }
939
+ ],
940
+ ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
941
+ ], jt = $("chart-pie", Mt);
942
+ const Ot = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Nt = $("circle", Ot);
943
+ const Lt = [
944
+ ["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z", key: "p7xjir" }]
945
+ ], Ft = $("cloud", Lt);
946
+ const It = [
947
+ ["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
948
+ ["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
949
+ ], Rt = $("code", It);
950
+ const Pt = [
951
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
952
+ ["path", { d: "M12 2v2", key: "tus03m" }],
953
+ ["path", { d: "M17 20v2", key: "1rnc9c" }],
954
+ ["path", { d: "M17 2v2", key: "11trls" }],
955
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
956
+ ["path", { d: "M2 17h2", key: "7oei6x" }],
957
+ ["path", { d: "M2 7h2", key: "asdhe0" }],
958
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
959
+ ["path", { d: "M20 17h2", key: "1fpfkl" }],
960
+ ["path", { d: "M20 7h2", key: "1o8tra" }],
961
+ ["path", { d: "M7 20v2", key: "4gnj0m" }],
962
+ ["path", { d: "M7 2v2", key: "1i4yhu" }],
963
+ ["rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }],
964
+ ["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
965
+ ], Dt = $("cpu", Pt);
966
+ const Yt = [
967
+ ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
968
+ ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
969
+ ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
970
+ ], Bt = $("database", Yt);
971
+ const Ht = [
972
+ ["path", { d: "M12 15V3", key: "m9g1x1" }],
973
+ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
974
+ ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
975
+ ], Wt = $("download", Ht);
976
+ const Ut = [
977
+ [
978
+ "path",
979
+ {
980
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
981
+ key: "1oefj6"
982
+ }
983
+ ],
984
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
985
+ ["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
986
+ ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
987
+ ], zt = $("file-code", Ut);
988
+ const qt = [
989
+ [
990
+ "path",
991
+ {
992
+ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
993
+ key: "1kt360"
994
+ }
995
+ ]
996
+ ], Xt = $("folder", qt);
997
+ const Gt = [
998
+ [
999
+ "path",
1000
+ {
1001
+ d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
1002
+ key: "sc7q7i"
1003
+ }
1004
+ ]
1005
+ ], Kt = $("funnel", Gt);
1006
+ const Vt = [
1007
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1008
+ ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
1009
+ ["path", { d: "M2 12h20", key: "9i4pu4" }]
1010
+ ], Zt = $("globe", Vt);
1011
+ const Jt = [
1012
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
1013
+ ["path", { d: "M3 9h18", key: "1pudct" }],
1014
+ ["path", { d: "M3 15h18", key: "5xshup" }],
1015
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
1016
+ ["path", { d: "M15 3v18", key: "14nvp0" }]
1017
+ ], Qt = $("grid-3x3", Jt);
1018
+ const ei = [
1019
+ ["line", { x1: "22", x2: "2", y1: "12", y2: "12", key: "1y58io" }],
1020
+ [
1021
+ "path",
1022
+ {
1023
+ d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
1024
+ key: "oot6mr"
1025
+ }
1026
+ ],
1027
+ ["line", { x1: "6", x2: "6.01", y1: "16", y2: "16", key: "sgf278" }],
1028
+ ["line", { x1: "10", x2: "10.01", y1: "16", y2: "16", key: "1l4acy" }]
1029
+ ], ni = $("hard-drive", ei);
1030
+ const ri = [
1031
+ [
1032
+ "path",
1033
+ {
1034
+ d: "M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",
1035
+ key: "1xhozi"
1036
+ }
1037
+ ]
1038
+ ], ti = $("headphones", ri);
1039
+ const ii = [
1040
+ ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
1041
+ ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
1042
+ ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
1043
+ ], oi = $("key", ii);
1044
+ const li = [
1045
+ [
1046
+ "path",
1047
+ {
1048
+ d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",
1049
+ key: "zw3jo"
1050
+ }
1051
+ ],
1052
+ [
1053
+ "path",
1054
+ {
1055
+ d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",
1056
+ key: "1wduqc"
1057
+ }
1058
+ ],
1059
+ [
1060
+ "path",
1061
+ {
1062
+ d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",
1063
+ key: "kqbvx6"
1064
+ }
1065
+ ]
1066
+ ], ai = $("layers", li);
1067
+ const ci = [
1068
+ ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
1069
+ ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
1070
+ ], si = $("lock", ci);
1071
+ const fi = [
1072
+ ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
1073
+ ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
1074
+ ], ui = $("mail", fi);
1075
+ const pi = [
1076
+ [
1077
+ "path",
1078
+ {
1079
+ d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
1080
+ key: "18887p"
1081
+ }
1082
+ ]
1083
+ ], hi = $("message-square", pi);
1084
+ const di = [
1085
+ ["path", { d: "M12 19v3", key: "npa21l" }],
1086
+ ["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
1087
+ ["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
1088
+ ], xi = $("mic", di);
1089
+ const mi = [
1090
+ ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
1091
+ ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
1092
+ ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
1093
+ ], yi = $("monitor", mi);
1094
+ const gi = [
1095
+ [
1096
+ "path",
1097
+ {
1098
+ d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
1099
+ key: "1a0edw"
1100
+ }
1101
+ ],
1102
+ ["path", { d: "M12 22V12", key: "d0xqtd" }],
1103
+ ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
1104
+ ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
1105
+ ], ki = $("package", gi);
1106
+ const vi = [
1107
+ ["rect", { x: "14", y: "3", width: "5", height: "18", rx: "1", key: "kaeet6" }],
1108
+ ["rect", { x: "5", y: "3", width: "5", height: "18", rx: "1", key: "1wsw3u" }]
1109
+ ], bi = $("pause", vi);
1110
+ const Ai = [
1111
+ [
1112
+ "path",
1113
+ {
1114
+ d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
1115
+ key: "10ikf1"
1116
+ }
1117
+ ]
1118
+ ], _i = $("play", Ai);
1119
+ const wi = [
1120
+ ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
1121
+ ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
1122
+ ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
1123
+ ["path", { d: "M8 16H3v5", key: "1cv678" }]
1124
+ ], Ci = $("refresh-cw", wi);
1125
+ const $i = [
1126
+ ["path", { d: "m17 2 4 4-4 4", key: "nntrym" }],
1127
+ ["path", { d: "M3 11v-1a4 4 0 0 1 4-4h14", key: "84bu3i" }],
1128
+ ["path", { d: "m7 22-4-4 4-4", key: "1wqhfi" }],
1129
+ ["path", { d: "M21 13v1a4 4 0 0 1-4 4H3", key: "1rx37r" }]
1130
+ ], Si = $("repeat", $i);
1131
+ const Ei = [
1132
+ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
1133
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
1134
+ ], Ti = $("search", Ei);
1135
+ const Mi = [
1136
+ ["rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", key: "ngkwjq" }],
1137
+ ["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", key: "iecqi9" }],
1138
+ ["line", { x1: "6", x2: "6.01", y1: "6", y2: "6", key: "16zg32" }],
1139
+ ["line", { x1: "6", x2: "6.01", y1: "18", y2: "18", key: "nzw8ys" }]
1140
+ ], ji = $("server", Mi);
1141
+ const Oi = [
1142
+ [
1143
+ "path",
1144
+ {
1145
+ d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
1146
+ key: "1i5ecw"
1147
+ }
1148
+ ],
1149
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
1150
+ ], Ni = $("settings", Oi);
1151
+ const Li = [
1152
+ [
1153
+ "path",
1154
+ {
1155
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
1156
+ key: "oel41y"
1157
+ }
1158
+ ]
1159
+ ], Fi = $("shield", Li);
1160
+ const Ii = [
1161
+ ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
1162
+ ["path", { d: "M12 18h.01", key: "mhygvu" }]
1163
+ ], Ri = $("smartphone", Ii);
1164
+ const Pi = [
1165
+ ["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
1166
+ ["path", { d: "M12 6h.01", key: "1vi96p" }],
1167
+ ["circle", { cx: "12", cy: "14", r: "4", key: "1jruaj" }],
1168
+ ["path", { d: "M12 14h.01", key: "1etili" }]
1169
+ ], Di = $("speaker", Pi);
1170
+ const Yi = [
1171
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
1172
+ ], Bi = $("square", Yi);
1173
+ const Hi = [
1174
+ ["path", { d: "M12 19h8", key: "baeox8" }],
1175
+ ["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
1176
+ ], Wi = $("terminal", Hi);
1177
+ const Ui = [
1178
+ ["path", { d: "M12 3v12", key: "1x0j5s" }],
1179
+ ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
1180
+ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
1181
+ ], zi = $("upload", Ui);
1182
+ const qi = [
1183
+ ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
1184
+ ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
1185
+ ], Xi = $("user", qi);
1186
+ const Gi = [
1187
+ ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
1188
+ ["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
1189
+ ["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
1190
+ ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
1191
+ ], Ki = $("users", Gi);
1192
+ const Vi = [
1193
+ ["path", { d: "M12 10v2.2l1.6 1", key: "n3r21l" }],
1194
+ [
1195
+ "path",
1196
+ { d: "m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05", key: "18k57s" }
1197
+ ],
1198
+ ["path", { d: "m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05", key: "16ny36" }],
1199
+ ["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }]
1200
+ ], Zi = $("watch", Vi);
1201
+ const Ji = [
1202
+ ["path", { d: "M12 20h.01", key: "zekei9" }],
1203
+ ["path", { d: "M2 8.82a15 15 0 0 1 20 0", key: "dnpr2z" }],
1204
+ ["path", { d: "M5 12.859a10 10 0 0 1 14 0", key: "1x1e6c" }],
1205
+ ["path", { d: "M8.5 16.429a5 5 0 0 1 7 0", key: "1bycff" }]
1206
+ ], Qi = $("wifi", Ji);
1207
+ const eo = [
1208
+ [
1209
+ "path",
1210
+ {
1211
+ d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
1212
+ key: "1xq2db"
1213
+ }
1214
+ ]
1215
+ ], no = $("zap", eo), ro = {
1216
+ Monitor: yi,
1217
+ Server: ji,
1218
+ Smartphone: Ri,
1219
+ Watch: Zi,
1220
+ Cloud: Ft,
1221
+ Cpu: Dt,
1222
+ Database: Bt,
1223
+ HardDrive: ni,
1224
+ Wifi: Qi,
1225
+ Globe: Zt,
1226
+ User: Xi,
1227
+ Users: Ki,
1228
+ Lock: si,
1229
+ Key: oi,
1230
+ Shield: Fi,
1231
+ Mic: xi,
1232
+ Camera: St,
1233
+ Speaker: Di,
1234
+ Headphones: ti,
1235
+ Code: Rt,
1236
+ Terminal: Wi,
1237
+ FileCode: zt,
1238
+ Folder: Xt,
1239
+ Zap: no,
1240
+ Activity: gt,
1241
+ BarChart: Tt,
1242
+ PieChart: jt,
1243
+ ArrowRight: At,
1244
+ ArrowDown: vt,
1245
+ RefreshCw: Ci,
1246
+ Repeat: Si,
1247
+ Box: Gn,
1248
+ Package: ki,
1249
+ Layers: ai,
1250
+ Grid: Qt,
1251
+ Settings: Ni,
1252
+ Bell: wt,
1253
+ Mail: ui,
1254
+ MessageSquare: hi,
1255
+ Search: Ti,
1256
+ Filter: Kt,
1257
+ Download: Wt,
1258
+ Upload: zi,
1259
+ Play: _i,
1260
+ Pause: bi,
1261
+ Square: Bi,
1262
+ Circle: Nt
1263
+ };
1264
+ function to(e) {
1265
+ return ro[e] || Gn;
1266
+ }
1267
+ function io({
796
1268
  uid: e,
797
1269
  style: n,
798
1270
  box: r,
799
- color: t,
800
- tag: i,
1271
+ color: i,
1272
+ tag: t,
801
1273
  selected: l = !1,
802
1274
  opacity: o,
803
1275
  onClick: a,
804
1276
  onPointerDown: c
805
1277
  }) {
806
- const s = Nn(t), u = l ? n.ink.accent : n.ink.line, x = l ? n.ink.accent : n.ink.text, p = [
1278
+ const f = Wn(i), u = l ? n.ink.accent : n.ink.line, d = l ? n.ink.accent : n.ink.text, p = [
807
1279
  { face: "left", path: r.left },
808
1280
  { face: "right", path: r.right },
809
1281
  { face: "top", path: r.top }
810
1282
  ];
811
- return /* @__PURE__ */ d.jsxs(
1283
+ return /* @__PURE__ */ h.jsxs(
812
1284
  "g",
813
1285
  {
814
1286
  className: a || c ? "cursor-pointer" : void 0,
@@ -816,11 +1288,11 @@ function ri({
816
1288
  onClick: a,
817
1289
  onPointerDown: c,
818
1290
  children: [
819
- p.map(({ face: f, path: m }) => /* @__PURE__ */ d.jsxs("g", { children: [
820
- /* @__PURE__ */ d.jsx("path", { d: m, fill: n.face[f] }),
821
- Pn(e, s, f).map((y) => /* @__PURE__ */ d.jsx("path", { d: m, fill: `url(#${y})`, opacity: n.hatchOpacity[f] }, y))
822
- ] }, f)),
823
- /* @__PURE__ */ d.jsx(
1291
+ p.map(({ face: x, path: m }) => /* @__PURE__ */ h.jsxs("g", { children: [
1292
+ /* @__PURE__ */ h.jsx("path", { d: m, fill: n.face[x] }),
1293
+ Un(e, f, x).map((y) => /* @__PURE__ */ h.jsx("path", { d: m, fill: `url(#${y})`, opacity: n.hatchOpacity[x] }, y))
1294
+ ] }, x)),
1295
+ /* @__PURE__ */ h.jsx(
824
1296
  "path",
825
1297
  {
826
1298
  d: r.hidden,
@@ -831,7 +1303,7 @@ function ri({
831
1303
  opacity: 0.85
832
1304
  }
833
1305
  ),
834
- /* @__PURE__ */ d.jsx(
1306
+ /* @__PURE__ */ h.jsx(
835
1307
  "path",
836
1308
  {
837
1309
  d: r.visible,
@@ -842,64 +1314,66 @@ function ri({
842
1314
  strokeLinecap: "round"
843
1315
  }
844
1316
  ),
845
- i != null && /* @__PURE__ */ d.jsx(
1317
+ t != null && /* @__PURE__ */ h.jsx(
846
1318
  "text",
847
1319
  {
848
1320
  x: r.topCenter.x,
849
1321
  y: r.topCenter.y + g(3),
850
1322
  textAnchor: "middle",
851
- fill: x,
1323
+ fill: d,
852
1324
  fontSize: g(8),
853
1325
  fontWeight: 600,
854
1326
  fontFamily: n.font,
855
1327
  style: { letterSpacing: "0.1em" },
856
1328
  pointerEvents: "none",
857
- children: Pe(i)
1329
+ children: De(t)
858
1330
  }
859
1331
  )
860
1332
  ]
861
1333
  }
862
1334
  );
863
1335
  }
864
- function ii({
1336
+ function oo({
865
1337
  style: e,
866
1338
  box: n,
867
1339
  name: r,
868
- subtitle: t,
869
- selected: i = !1,
870
- opacity: l
1340
+ subtitle: i,
1341
+ icon: t,
1342
+ selected: l = !1,
1343
+ opacity: o
871
1344
  }) {
872
- const o = i ? e.ink.accent : e.ink.line, a = i ? e.ink.accent : e.ink.text, c = (r || "").toUpperCase(), s = (t || "").toUpperCase(), u = n.minY - g(11), x = u - g(4), p = s ? u - g(15) : u - g(4), f = Math.max(c.length * g(5.6), s.length * g(4.4), g(24));
873
- return /* @__PURE__ */ d.jsxs("g", { pointerEvents: "none", opacity: l, children: [
874
- /* @__PURE__ */ d.jsx(
1345
+ const a = l ? e.ink.accent : e.ink.line, c = l ? e.ink.accent : e.ink.text, f = t ? to(t) : null, u = (r || "").toUpperCase(), d = (i || "").toUpperCase(), p = n.minY - g(11), x = p - g(4), m = d ? p - g(15) : p - g(4), y = g(9), v = g(3), k = f ? y + v : 0, b = Math.max(u.length * g(5.6) + k, d.length * g(4.4), g(24)), Y = n.topCenter.x + k / 2, E = Y - u.length * g(5.6) / 2 - v - y, C = m - y + g(1);
1346
+ return /* @__PURE__ */ h.jsxs("g", { pointerEvents: "none", opacity: o, children: [
1347
+ /* @__PURE__ */ h.jsx(
875
1348
  "line",
876
1349
  {
877
1350
  x1: n.topCenter.x,
878
1351
  y1: n.topCenter.y - g(6),
879
1352
  x2: n.topCenter.x,
880
- y2: u,
881
- stroke: o,
1353
+ y2: p,
1354
+ stroke: a,
882
1355
  strokeWidth: e.strokeWidth * 0.6
883
1356
  }
884
1357
  ),
885
- /* @__PURE__ */ d.jsx(
1358
+ /* @__PURE__ */ h.jsx(
886
1359
  "line",
887
1360
  {
888
- x1: n.topCenter.x - f / 2,
889
- y1: u,
890
- x2: n.topCenter.x + f / 2,
891
- y2: u,
892
- stroke: o,
1361
+ x1: n.topCenter.x - b / 2,
1362
+ y1: p,
1363
+ x2: n.topCenter.x + b / 2,
1364
+ y2: p,
1365
+ stroke: a,
893
1366
  strokeWidth: e.strokeWidth * 0.6
894
1367
  }
895
1368
  ),
896
- /* @__PURE__ */ d.jsx(
1369
+ f && /* @__PURE__ */ h.jsx("g", { transform: `translate(${E}, ${C})`, color: c, children: /* @__PURE__ */ h.jsx(f, { width: y, height: y, strokeWidth: 1.75 }) }),
1370
+ /* @__PURE__ */ h.jsx(
897
1371
  "text",
898
1372
  {
899
- x: n.topCenter.x,
900
- y: p,
1373
+ x: Y,
1374
+ y: m,
901
1375
  textAnchor: "middle",
902
- fill: a,
1376
+ fill: c,
903
1377
  fontSize: g(9.5),
904
1378
  fontWeight: 600,
905
1379
  fontFamily: e.font,
@@ -908,10 +1382,10 @@ function ii({
908
1382
  paintOrder: "stroke",
909
1383
  strokeLinejoin: "round",
910
1384
  style: { letterSpacing: "0.12em" },
911
- children: c
1385
+ children: u
912
1386
  }
913
1387
  ),
914
- s && /* @__PURE__ */ d.jsx(
1388
+ d && /* @__PURE__ */ h.jsx(
915
1389
  "text",
916
1390
  {
917
1391
  x: n.topCenter.x,
@@ -925,12 +1399,12 @@ function ii({
925
1399
  paintOrder: "stroke",
926
1400
  strokeLinejoin: "round",
927
1401
  style: { letterSpacing: "0.1em" },
928
- children: s
1402
+ children: d
929
1403
  }
930
1404
  )
931
1405
  ] });
932
1406
  }
933
- const Bn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ti = {
1407
+ const Kn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', lo = {
934
1408
  blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
935
1409
  violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
936
1410
  cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
@@ -938,7 +1412,7 @@ const Bn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ti =
938
1412
  amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
939
1413
  rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
940
1414
  slate: { top: "#475569", side: "#334155", front: "#1e293b" }
941
- }, oi = {
1415
+ }, ao = {
942
1416
  blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
943
1417
  violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
944
1418
  cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
@@ -947,47 +1421,47 @@ const Bn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ti =
947
1421
  rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
948
1422
  slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
949
1423
  };
950
- function Me(e, n, r) {
951
- const t = (s) => {
952
- const u = s.replace("#", "");
1424
+ function Re(e, n, r) {
1425
+ const i = (f) => {
1426
+ const u = f.replace("#", "");
953
1427
  return {
954
1428
  r: parseInt(u.substring(0, 2), 16),
955
1429
  g: parseInt(u.substring(2, 4), 16),
956
1430
  b: parseInt(u.substring(4, 6), 16)
957
1431
  };
958
- }, i = t(e), l = t(n), o = Math.round(i.r + (l.r - i.r) * r), a = Math.round(i.g + (l.g - i.g) * r), c = Math.round(i.b + (l.b - i.b) * r);
1432
+ }, t = i(e), l = i(n), o = Math.round(t.r + (l.r - t.r) * r), a = Math.round(t.g + (l.g - t.g) * r), c = Math.round(t.b + (l.b - t.b) * r);
959
1433
  return `rgb(${o},${a},${c})`;
960
1434
  }
961
- function li({ x: e, y: n, z: r, children: t, fontSize: i = 8, color: l = "#1e293b", shadow: o }) {
962
- const a = E(e, n, r);
963
- return /* @__PURE__ */ d.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: o, children: /* @__PURE__ */ d.jsx("g", { transform: "matrix(0.866, -0.5, 0.866, 0.5, 0, 0)", children: /* @__PURE__ */ d.jsx(
1435
+ function co({ x: e, y: n, z: r, children: i, fontSize: t = 8, color: l = "#1e293b", shadow: o }) {
1436
+ const a = w(e, n, r);
1437
+ return /* @__PURE__ */ h.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: o, children: /* @__PURE__ */ h.jsx("g", { transform: `matrix(${zr()})`, children: /* @__PURE__ */ h.jsx(
964
1438
  "text",
965
1439
  {
966
1440
  x: 0,
967
1441
  y: 0,
968
1442
  textAnchor: "middle",
969
1443
  fill: l,
970
- fontSize: i,
1444
+ fontSize: t,
971
1445
  fontWeight: 600,
972
- fontFamily: Bn,
1446
+ fontFamily: Kn,
973
1447
  style: { textTransform: "uppercase", letterSpacing: "0.06em" },
974
- children: t
1448
+ children: i
975
1449
  }
976
1450
  ) }) });
977
1451
  }
978
- function ai({ width: e, depth: n, elevation: r, color: t, opacity: i, borderColor: l, theme: o, isGround: a }) {
979
- const s = he(e, n, a ? 8 : 2, 0, 0), u = E(0, 0, r);
980
- return /* @__PURE__ */ d.jsxs("g", { transform: `translate(${u.screenX}, ${u.screenY})`, children: [
981
- a && /* @__PURE__ */ d.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ d.jsx("path", { d: s.top, fill: "#000" }) }),
982
- /* @__PURE__ */ d.jsx("path", { d: s.top, fill: t, opacity: i }),
983
- a && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
984
- /* @__PURE__ */ d.jsx("path", { d: s.left, fill: o === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
985
- /* @__PURE__ */ d.jsx("path", { d: s.right, fill: o === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
1452
+ function so({ width: e, depth: n, elevation: r, color: i, opacity: t, borderColor: l, theme: o, isGround: a }) {
1453
+ const f = xe(e, n, a ? 8 : 2, 0, 0), u = w(0, 0, r);
1454
+ return /* @__PURE__ */ h.jsxs("g", { transform: `translate(${u.screenX}, ${u.screenY})`, children: [
1455
+ a && /* @__PURE__ */ h.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ h.jsx("path", { d: f.top, fill: "#000" }) }),
1456
+ /* @__PURE__ */ h.jsx("path", { d: f.top, fill: i, opacity: t }),
1457
+ a && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1458
+ /* @__PURE__ */ h.jsx("path", { d: f.left, fill: o === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
1459
+ /* @__PURE__ */ h.jsx("path", { d: f.right, fill: o === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
986
1460
  ] }),
987
- /* @__PURE__ */ d.jsx(
1461
+ /* @__PURE__ */ h.jsx(
988
1462
  "path",
989
1463
  {
990
- d: s.top,
1464
+ d: f.top,
991
1465
  fill: "none",
992
1466
  stroke: l || (o === "dark" ? "#475569" : "#94a3b8"),
993
1467
  strokeWidth: a ? 1.5 : 0.75,
@@ -996,37 +1470,38 @@ function ai({ width: e, depth: n, elevation: r, color: t, opacity: i, borderColo
996
1470
  )
997
1471
  ] });
998
1472
  }
999
- function Do({ config: e, options: n = {}, className: r, style: t, onNodeClick: i, onLayerClick: l }) {
1000
- const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover: s = !0 } = n, { theme: u, canvas: x, origin: p, tiers: f, floorSize: m, nodes: y, cornerRadius: A = 0 } = e, v = Ur(e.style), b = v.technical, D = Qe().replace(/:/g, ""), L = u === "dark" ? ti : oi, w = b ? v.paper.to : u === "dark" ? "#0f172a" : "#fafafa", j = b ? v.ink.text : u === "dark" ? "#e2e8f0" : "#1e293b", I = b ? v.ink.muted : u === "dark" ? "#64748b" : "#94a3b8", $ = Fr(() => {
1001
- const O = y.map((h, k) => ({ node: h, i: k })).sort((h, k) => h.node.tier - k.node.tier || h.node.y - k.node.y || h.node.x - k.node.x), S = /* @__PURE__ */ new Map();
1002
- return O.forEach(({ i: h }, k) => S.set(h, k + 1)), S;
1003
- }, [y]), B = { minX: 16, minY: 16, maxX: x.width - 16, maxY: x.height - 16 }, [N, R] = Le(/* @__PURE__ */ new Set());
1004
- Lr(() => {
1005
- a ? (R(/* @__PURE__ */ new Set()), f.forEach((O, S) => {
1473
+ function Ba({ config: e, options: n = {}, className: r, style: i, onNodeClick: t, onLayerClick: l }) {
1474
+ const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover: f = !0 } = n, { theme: u, canvas: d, origin: p, tiers: x, floorSize: m, nodes: y, cornerRadius: v = 0 } = e, k = et(e.style), b = k.technical, Y = nn().replace(/:/g, ""), E = !b && e.material === "retro-print", C = E ? Dn : u === "dark" ? lo : ao, N = b ? k.paper.to : E ? u === "dark" ? "#202624" : "#f4efe6" : u === "dark" ? "#0f172a" : "#fafafa", I = b ? k.ink.text : E ? "#202a29" : u === "dark" ? "#e2e8f0" : "#1e293b", B = b ? k.ink.muted : E ? u === "dark" ? "#c5c4b7" : "#505b56" : u === "dark" ? "#64748b" : "#94a3b8", j = Br(() => {
1475
+ const M = y.map((A, O) => ({ node: A, i: O })).sort((A, O) => A.node.tier - O.node.tier || A.node.y - O.node.y || A.node.x - O.node.x), s = /* @__PURE__ */ new Map();
1476
+ return M.forEach(({ i: A }, O) => s.set(A, O + 1)), s;
1477
+ }, [y]), R = { minX: 16, minY: 16, maxX: d.width - 16, maxY: d.height - 16 }, [ee, L] = Le(/* @__PURE__ */ new Set());
1478
+ Hr(() => {
1479
+ a ? (L(/* @__PURE__ */ new Set()), x.forEach((M, s) => {
1006
1480
  setTimeout(() => {
1007
- R((h) => /* @__PURE__ */ new Set([...h, S]));
1008
- }, S * 150 + 100);
1009
- })) : R(new Set(f.map((O, S) => S)));
1010
- }, [e.id, a, f.length]);
1011
- const [M, ne] = Le(null), [J, q] = Le(null), [T, W] = Le(null), Q = [...y].sort((O, S) => {
1012
- const h = f[O.tier]?.elevation || 0, k = f[S.tier]?.elevation || 0;
1013
- if (h !== k) return h - k;
1014
- const F = O.x + O.width + (O.y + O.depth);
1015
- return S.x + S.width + (S.y + S.depth) - F;
1481
+ L((A) => /* @__PURE__ */ new Set([...A, s]));
1482
+ }, s * 150 + 100);
1483
+ })) : L(new Set(x.map((M, s) => s)));
1484
+ }, [e.id, a, x.length]);
1485
+ const [D, re] = Le(null), [K, H] = Le(null), [T, U] = Le(null), oe = [...y].sort((M, s) => {
1486
+ const A = x[M.tier]?.elevation || 0, O = x[s.tier]?.elevation || 0;
1487
+ if (A !== O) return A - O;
1488
+ const F = M.x + M.width + (M.y + M.depth);
1489
+ return s.x + s.width + (s.y + s.depth) - F;
1016
1490
  });
1017
- return /* @__PURE__ */ d.jsx("div", { className: r, style: { display: "inline-block", ...t }, children: /* @__PURE__ */ d.jsxs(
1491
+ return /* @__PURE__ */ h.jsx("div", { className: r, style: { display: "inline-block", ...i }, children: /* @__PURE__ */ h.jsxs(
1018
1492
  "svg",
1019
1493
  {
1020
- width: x.width,
1021
- height: x.height,
1022
- style: { backgroundColor: w },
1494
+ width: d.width,
1495
+ height: d.height,
1496
+ style: { backgroundColor: N },
1023
1497
  onClick: () => {
1024
- o && (W(null), q(null));
1498
+ o && (U(null), H(null));
1025
1499
  },
1026
1500
  children: [
1027
- /* @__PURE__ */ d.jsxs("defs", { children: [
1028
- /* @__PURE__ */ d.jsx("pattern", { id: `grid-${e.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ d.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: u === "dark" ? "#1e293b" : "#e2e8f0" }) }),
1029
- /* @__PURE__ */ d.jsx("filter", { id: `glow-${e.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ d.jsx(
1501
+ /* @__PURE__ */ h.jsxs("defs", { children: [
1502
+ E && /* @__PURE__ */ h.jsx("pattern", { id: `print-${e.id}`, width: "64", height: "64", patternUnits: "userSpaceOnUse", children: Yn.map((M, s) => /* @__PURE__ */ h.jsx("circle", { cx: M.x, cy: M.y, r: M.r, fill: "#26362e", opacity: 0.32 }, s)) }),
1503
+ /* @__PURE__ */ h.jsx("pattern", { id: `grid-${e.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ h.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: u === "dark" ? "#1e293b" : "#e2e8f0" }) }),
1504
+ /* @__PURE__ */ h.jsx("filter", { id: `glow-${e.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ h.jsx(
1030
1505
  "feDropShadow",
1031
1506
  {
1032
1507
  dx: "0",
@@ -1036,229 +1511,229 @@ function Do({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
1036
1511
  floodOpacity: "0.3"
1037
1512
  }
1038
1513
  ) }),
1039
- /* @__PURE__ */ d.jsxs("radialGradient", { id: `bg-${e.id}`, cx: "48%", cy: "34%", r: "82%", children: [
1040
- /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: u === "dark" ? "#16203a" : "#ffffff" }),
1041
- /* @__PURE__ */ d.jsx("stop", { offset: "55%", stopColor: u === "dark" ? "#0e1526" : "#f2f5f9" }),
1042
- /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: u === "dark" ? "#080d18" : "#e7ecf2" })
1514
+ /* @__PURE__ */ h.jsxs("radialGradient", { id: `bg-${e.id}`, cx: "48%", cy: "34%", r: "82%", children: [
1515
+ /* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: u === "dark" ? "#16203a" : "#ffffff" }),
1516
+ /* @__PURE__ */ h.jsx("stop", { offset: "55%", stopColor: u === "dark" ? "#0e1526" : "#f2f5f9" }),
1517
+ /* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: u === "dark" ? "#080d18" : "#e7ecf2" })
1043
1518
  ] }),
1044
- /* @__PURE__ */ d.jsx("filter", { id: `contact-${e.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ d.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
1045
- /* @__PURE__ */ d.jsxs("linearGradient", { id: `sheen-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1046
- /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.18" }),
1047
- /* @__PURE__ */ d.jsx("stop", { offset: "55%", stopColor: "#ffffff", stopOpacity: "0.04" }),
1048
- /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: "#ffffff", stopOpacity: "0" })
1519
+ /* @__PURE__ */ h.jsx("filter", { id: `contact-${e.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ h.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
1520
+ /* @__PURE__ */ h.jsxs("linearGradient", { id: `sheen-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1521
+ /* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.18" }),
1522
+ /* @__PURE__ */ h.jsx("stop", { offset: "55%", stopColor: "#ffffff", stopOpacity: "0.04" }),
1523
+ /* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: "#ffffff", stopOpacity: "0" })
1049
1524
  ] }),
1050
- /* @__PURE__ */ d.jsxs("linearGradient", { id: `shade-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1051
- /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: "#000000", stopOpacity: "0" }),
1052
- /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: "#000000", stopOpacity: "0.24" })
1525
+ /* @__PURE__ */ h.jsxs("linearGradient", { id: `shade-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1526
+ /* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: "#000000", stopOpacity: "0" }),
1527
+ /* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: "#000000", stopOpacity: "0.24" })
1053
1528
  ] }),
1054
- /* @__PURE__ */ d.jsx("filter", { id: `label-${e.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ d.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
1529
+ /* @__PURE__ */ h.jsx("filter", { id: `label-${e.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ h.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
1055
1530
  ] }),
1056
- b ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
1057
- /* @__PURE__ */ d.jsx(nn, { uid: D, style: v }),
1058
- /* @__PURE__ */ d.jsx(
1059
- Qr,
1531
+ b ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1532
+ /* @__PURE__ */ h.jsx(tn, { uid: Y, style: k }),
1533
+ /* @__PURE__ */ h.jsx(
1534
+ st,
1060
1535
  {
1061
- style: v,
1062
- rect: { x: 0, y: 0, width: x.width, height: x.height },
1536
+ style: k,
1537
+ rect: { x: 0, y: 0, width: d.width, height: d.height },
1063
1538
  className: ""
1064
1539
  }
1065
1540
  )
1066
- ] }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
1067
- /* @__PURE__ */ d.jsx("rect", { width: "100%", height: "100%", fill: `url(#bg-${e.id})` }),
1068
- /* @__PURE__ */ d.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${e.id})`, opacity: "0.5" })
1541
+ ] }) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1542
+ /* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: E ? N : `url(#bg-${e.id})` }),
1543
+ /* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${e.id})`, opacity: "0.5" })
1069
1544
  ] }),
1070
- /* @__PURE__ */ d.jsx("g", { transform: `translate(${p.x}, ${p.y})`, children: f.map((O, S) => {
1071
- const h = Q.filter((_) => _.tier === S), k = N.has(S), F = o && (J === S || J === null && T === null && M === S), Y = o && (J !== null || M !== null || T !== null), ce = T?.tier === S, se = Y && !F && !ce, P = k ? 0 : 60, ie = k ? 1 : 0, le = F && s ? { x: 10, y: -34 } : { x: 0, y: 0 }, ke = F ? 1.03 : 1, Fe = E(m.width / 2, m.depth / 2, O.elevation), sn = O.offset || { x: 0, y: 0 };
1072
- return /* @__PURE__ */ d.jsxs(
1545
+ /* @__PURE__ */ h.jsx("g", { transform: `translate(${p.x}, ${p.y})`, children: x.map((M, s) => {
1546
+ const A = oe.filter((S) => S.tier === s), O = ee.has(s), F = o && (K === s || K === null && T === null && D === s), ae = o && (K !== null || D !== null || T !== null), se = T?.tier === s, P = ae && !F && !se, te = O ? 0 : 60, fe = O ? 1 : 0, ye = F && f ? { x: 10, y: -34 } : { x: 0, y: 0 }, Pr = F ? 1.03 : 1, Ne = w(m.width / 2, m.depth / 2, M.elevation), un = M.offset || { x: 0, y: 0 };
1547
+ return /* @__PURE__ */ h.jsxs(
1073
1548
  "g",
1074
1549
  {
1075
- "data-tier": S,
1076
- onMouseEnter: () => o && ne(S),
1077
- onMouseLeave: () => o && ne(null),
1078
- onClick: (_) => {
1079
- o && (_.stopPropagation(), W(null), q((X) => X === S ? null : S), l?.(S));
1550
+ "data-tier": s,
1551
+ onMouseEnter: () => o && re(s),
1552
+ onMouseLeave: () => o && re(null),
1553
+ onClick: (S) => {
1554
+ o && (S.stopPropagation(), U(null), H((q) => q === s ? null : s), l?.(s));
1080
1555
  },
1081
1556
  style: {
1082
- transform: `translate(${sn.x + le.x}px, ${sn.y + le.y}px) translate(${Fe.screenX}px, ${Fe.screenY + P}px) scale(${ke}) translate(${-Fe.screenX}px, ${-Fe.screenY}px)`,
1557
+ transform: `translate(${un.x + ye.x}px, ${un.y + ye.y}px) translate(${Ne.screenX}px, ${Ne.screenY + te}px) scale(${Pr}) translate(${-Ne.screenX}px, ${-Ne.screenY}px)`,
1083
1558
  transition: "transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",
1084
- opacity: ie * (se ? 0.35 : 1),
1559
+ opacity: fe * (P ? 0.35 : 1),
1085
1560
  filter: F ? `url(#glow-${e.id})` : "none",
1086
1561
  cursor: o ? "pointer" : "default"
1087
1562
  },
1088
1563
  children: [
1089
- b ? /* @__PURE__ */ d.jsx(
1090
- ci,
1564
+ b ? /* @__PURE__ */ h.jsx(
1565
+ fo,
1091
1566
  {
1092
1567
  width: m.width,
1093
1568
  depth: m.depth,
1094
- elevation: S === 0 ? -2 : O.elevation,
1095
- ink: S === 0 ? v.ink.line : v.ink.hidden,
1096
- isGround: S === 0
1569
+ elevation: s === 0 ? -2 : M.elevation,
1570
+ ink: s === 0 ? k.ink.line : k.ink.hidden,
1571
+ isGround: s === 0
1097
1572
  }
1098
- ) : /* @__PURE__ */ d.jsx(
1099
- ai,
1573
+ ) : /* @__PURE__ */ h.jsx(
1574
+ so,
1100
1575
  {
1101
1576
  width: m.width,
1102
1577
  depth: m.depth,
1103
- elevation: S === 0 ? -2 : O.elevation,
1104
- color: O.floorColor || (u === "dark" ? "#0f172a" : "#f8fafc"),
1105
- opacity: O.floorOpacity || (S === 0 ? 0.95 : 0.5),
1106
- borderColor: O.borderColor,
1578
+ elevation: s === 0 ? -2 : M.elevation,
1579
+ color: M.floorColor || (u === "dark" ? "#0f172a" : "#f8fafc"),
1580
+ opacity: M.floorOpacity || (s === 0 ? 0.95 : 0.5),
1581
+ borderColor: M.borderColor,
1107
1582
  theme: u,
1108
- isGround: S === 0
1583
+ isGround: s === 0
1109
1584
  }
1110
1585
  ),
1111
- b && h.map((_, X) => {
1112
- const me = O.elevation + 5, fe = E(_.x, _.y, me), V = xn(_.width, _.depth, _.height, fe.screenX, fe.screenY), G = T?.tier === S && T?.index === X, de = o && T !== null && !G;
1113
- return /* @__PURE__ */ d.jsx(
1114
- ri,
1586
+ b && A.map((S, q) => {
1587
+ const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = yn(S.width, S.depth, S.height, ue.screenX, ue.screenY), X = T?.tier === s && T?.index === q, de = o && T !== null && !X;
1588
+ return /* @__PURE__ */ h.jsx(
1589
+ io,
1115
1590
  {
1116
- uid: D,
1117
- style: v,
1118
- box: V,
1119
- color: _.color,
1120
- tag: $.get(y.indexOf(_)),
1121
- selected: G,
1122
- opacity: (_.opacity ?? 1) * (de ? 0.3 : 1),
1591
+ uid: Y,
1592
+ style: k,
1593
+ box: Z,
1594
+ color: S.color,
1595
+ tag: j.get(y.indexOf(S)),
1596
+ selected: X,
1597
+ opacity: (S.opacity ?? 1) * (de ? 0.3 : 1),
1123
1598
  onClick: o ? () => {
1124
- if (q(null), W((Ce) => Ce && Ce.tier === S && Ce.index === X ? null : { tier: S, index: X }), i?.(_, { tier: S, index: X }), _.link)
1599
+ if (H(null), U((we) => we && we.tier === s && we.index === q ? null : { tier: s, index: q }), t?.(S, { tier: s, index: q }), S.link)
1125
1600
  try {
1126
- window.open(_.link, "_blank");
1601
+ window.open(S.link, "_blank");
1127
1602
  } catch {
1128
1603
  }
1129
1604
  } : void 0
1130
1605
  },
1131
- `tech-${X}`
1606
+ `tech-${q}`
1132
1607
  );
1133
1608
  }),
1134
- b && c && h.map((_, X) => {
1135
- const me = O.elevation + 5, fe = E(_.x, _.y, me), V = xn(_.width, _.depth, _.height, fe.screenX, fe.screenY), G = T?.tier === S && T?.index === X, de = o && T !== null && !G;
1136
- return /* @__PURE__ */ d.jsx(
1137
- ii,
1609
+ b && c && A.map((S, q) => {
1610
+ const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = yn(S.width, S.depth, S.height, ue.screenX, ue.screenY), X = T?.tier === s && T?.index === q, de = o && T !== null && !X;
1611
+ return /* @__PURE__ */ h.jsx(
1612
+ oo,
1138
1613
  {
1139
- style: v,
1140
- box: V,
1141
- name: _.label,
1142
- selected: G,
1614
+ style: k,
1615
+ box: Z,
1616
+ name: S.label,
1617
+ selected: X,
1143
1618
  opacity: de ? 0.3 : 1
1144
1619
  },
1145
- `tech-label-${X}`
1620
+ `tech-label-${q}`
1146
1621
  );
1147
1622
  }),
1148
- !b && h.map((_, X) => {
1149
- const me = O.elevation + 5, fe = E(_.x, _.y, me), V = he(_.width, _.depth, _.height, fe.screenX, fe.screenY, A), G = L[_.color] || L.slate, de = T?.tier === S && T?.index === X, Ce = o && T !== null && !de, fn = E(_.x - 3, _.y - 3, O.elevation), Or = he(_.width + 6, _.depth + 6, 0, fn.screenX, fn.screenY, A).top;
1150
- return /* @__PURE__ */ d.jsxs(
1623
+ !b && A.map((S, q) => {
1624
+ const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = xe(S.width, S.depth, S.height, ue.screenX, ue.screenY, v), X = C[S.color] || C.slate, de = T?.tier === s && T?.index === q, we = o && T !== null && !de, pn = w(S.x - 3, S.y - 3, M.elevation), Dr = xe(S.width + 6, S.depth + 6, 0, pn.screenX, pn.screenY, v).top;
1625
+ return /* @__PURE__ */ h.jsxs(
1151
1626
  "g",
1152
1627
  {
1153
- "data-node": `${S}-${X}`,
1154
- opacity: (_.opacity ?? 1) * (Ce ? 0.3 : 1),
1155
- onClick: o ? (re) => {
1156
- if (re.stopPropagation(), q(null), W((te) => te && te.tier === S && te.index === X ? null : { tier: S, index: X }), i?.(_, { tier: S, index: X }), _.link)
1628
+ "data-node": `${s}-${q}`,
1629
+ opacity: (S.opacity ?? 1) * (we ? 0.3 : 1),
1630
+ onClick: o ? (ne) => {
1631
+ if (ne.stopPropagation(), H(null), U((ie) => ie && ie.tier === s && ie.index === q ? null : { tier: s, index: q }), t?.(S, { tier: s, index: q }), S.link)
1157
1632
  try {
1158
- window.open(_.link, "_blank");
1633
+ window.open(S.link, "_blank");
1159
1634
  } catch {
1160
1635
  }
1161
1636
  } : void 0,
1162
1637
  style: { cursor: o ? "pointer" : "default", transition: "opacity 0.3s ease-out" },
1163
1638
  children: [
1164
- /* @__PURE__ */ d.jsx("path", { d: Or, fill: "#000000", opacity: 0.3, filter: `url(#contact-${e.id})` }),
1165
- V.cornerBackRight?.map((re, te) => /* @__PURE__ */ d.jsx(
1639
+ /* @__PURE__ */ h.jsx("path", { d: Dr, fill: "#000000", opacity: 0.3, filter: `url(#contact-${e.id})` }),
1640
+ Z.cornerBackRight?.map((ne, ie) => /* @__PURE__ */ h.jsx(
1166
1641
  "path",
1167
1642
  {
1168
- d: re.path,
1169
- fill: Me(G.front, G.side, re.intensity)
1643
+ d: ne.path,
1644
+ fill: Re(X.front, X.side, ne.intensity)
1170
1645
  },
1171
- `cbr-${te}`
1646
+ `cbr-${ie}`
1172
1647
  )),
1173
- V.cornerBackLeft?.map((re, te) => /* @__PURE__ */ d.jsx(
1648
+ Z.cornerBackLeft?.map((ne, ie) => /* @__PURE__ */ h.jsx(
1174
1649
  "path",
1175
1650
  {
1176
- d: re.path,
1177
- fill: Me(G.side, G.front, re.intensity)
1651
+ d: ne.path,
1652
+ fill: Re(X.side, X.front, ne.intensity)
1178
1653
  },
1179
- `cbl-${te}`
1654
+ `cbl-${ie}`
1180
1655
  )),
1181
- /* @__PURE__ */ d.jsx("path", { d: V.left, fill: G.side }),
1182
- /* @__PURE__ */ d.jsx("path", { d: V.left, fill: `url(#shade-${e.id})` }),
1183
- /* @__PURE__ */ d.jsx("path", { d: V.right, fill: G.front }),
1184
- /* @__PURE__ */ d.jsx("path", { d: V.right, fill: `url(#shade-${e.id})` }),
1185
- V.cornerFrontRight?.map((re, te) => /* @__PURE__ */ d.jsx(
1656
+ /* @__PURE__ */ h.jsx("path", { d: Z.left, fill: X.side }),
1657
+ /* @__PURE__ */ h.jsx("path", { d: Z.left, fill: `url(#${E ? "print" : "shade"}-${e.id})` }),
1658
+ /* @__PURE__ */ h.jsx("path", { d: Z.right, fill: X.front }),
1659
+ /* @__PURE__ */ h.jsx("path", { d: Z.right, fill: `url(#${E ? "print" : "shade"}-${e.id})` }),
1660
+ Z.cornerFrontRight?.map((ne, ie) => /* @__PURE__ */ h.jsx(
1186
1661
  "path",
1187
1662
  {
1188
- d: re.path,
1189
- fill: Me(G.front, G.side, re.intensity)
1663
+ d: ne.path,
1664
+ fill: Re(X.front, X.side, ne.intensity)
1190
1665
  },
1191
- `cfr-${te}`
1666
+ `cfr-${ie}`
1192
1667
  )),
1193
- V.cornerFrontLeft?.map((re, te) => /* @__PURE__ */ d.jsx(
1668
+ Z.cornerFrontLeft?.map((ne, ie) => /* @__PURE__ */ h.jsx(
1194
1669
  "path",
1195
1670
  {
1196
- d: re.path,
1197
- fill: Me(G.front, G.side, re.intensity)
1671
+ d: ne.path,
1672
+ fill: Re(X.front, X.side, ne.intensity)
1198
1673
  },
1199
- `cfl-${te}`
1674
+ `cfl-${ie}`
1200
1675
  )),
1201
- /* @__PURE__ */ d.jsx("path", { d: V.top, fill: G.top }),
1202
- /* @__PURE__ */ d.jsx("path", { d: V.top, fill: `url(#sheen-${e.id})` }),
1203
- /* @__PURE__ */ d.jsx(
1676
+ /* @__PURE__ */ h.jsx("path", { d: Z.top, fill: X.top }),
1677
+ /* @__PURE__ */ h.jsx("path", { d: Z.top, fill: `url(#${E ? "print" : "sheen"}-${e.id})` }),
1678
+ /* @__PURE__ */ h.jsx(
1204
1679
  "path",
1205
1680
  {
1206
- d: V.top,
1681
+ d: Z.top,
1207
1682
  fill: "none",
1208
1683
  stroke: de ? "#ffffff" : "rgba(255,255,255,0.28)",
1209
1684
  strokeWidth: de ? 1.4 : 0.75,
1210
1685
  strokeLinejoin: "round"
1211
1686
  }
1212
1687
  ),
1213
- c && _.label && /* @__PURE__ */ d.jsx(
1214
- li,
1688
+ c && S.label && /* @__PURE__ */ h.jsx(
1689
+ co,
1215
1690
  {
1216
- x: _.x + _.width / 2,
1217
- y: _.y + _.depth / 2,
1218
- z: me + _.height + 2,
1219
- fontSize: _.width > 70 ? 9 : 8,
1220
- color: j,
1221
- shadow: `url(#label-${e.id})`,
1222
- children: _.label
1691
+ x: S.x + S.width / 2,
1692
+ y: S.y + S.depth / 2,
1693
+ z: ge + S.height + 2,
1694
+ fontSize: S.width > 70 ? 9 : 8,
1695
+ color: I,
1696
+ shadow: E ? void 0 : `url(#label-${e.id})`,
1697
+ children: S.label
1223
1698
  }
1224
1699
  )
1225
1700
  ]
1226
1701
  },
1227
- X
1702
+ q
1228
1703
  );
1229
1704
  }),
1230
- c && /* @__PURE__ */ d.jsx(
1705
+ c && /* @__PURE__ */ h.jsx(
1231
1706
  "text",
1232
1707
  {
1233
- x: E(-25, m.depth / 2, O.elevation + 15).screenX - 35,
1234
- y: E(-25, m.depth / 2, O.elevation + 15).screenY,
1235
- fill: I,
1708
+ x: w(-25, m.depth / 2, M.elevation + 15).screenX - 35,
1709
+ y: w(-25, m.depth / 2, M.elevation + 15).screenY,
1710
+ fill: B,
1236
1711
  fontSize: 9,
1237
1712
  fontWeight: 500,
1238
- fontFamily: Bn,
1713
+ fontFamily: Kn,
1239
1714
  opacity: b ? 0.9 : 0.6,
1240
1715
  style: { letterSpacing: "0.05em", textTransform: b ? "uppercase" : "none" },
1241
- children: O.name
1716
+ children: M.name
1242
1717
  }
1243
1718
  )
1244
1719
  ]
1245
1720
  },
1246
- S
1721
+ s
1247
1722
  );
1248
1723
  }) }),
1249
- b && /* @__PURE__ */ d.jsx(
1250
- ni,
1724
+ b && /* @__PURE__ */ h.jsx(
1725
+ ut,
1251
1726
  {
1252
- style: v,
1253
- plate: B,
1254
- rows: y.map((O, S) => ({
1255
- n: $.get(S) || S + 1,
1256
- name: O.label,
1257
- subtitle: f[O.tier]?.name,
1258
- color: O.color
1259
- })).sort((O, S) => O.n - S.n),
1727
+ style: k,
1728
+ plate: R,
1729
+ rows: y.map((M, s) => ({
1730
+ n: j.get(s) || s + 1,
1731
+ name: M.label,
1732
+ subtitle: x[M.tier]?.name,
1733
+ color: M.color
1734
+ })).sort((M, s) => M.n - s.n),
1260
1735
  title: e.title,
1261
- tally: `${String(y.length).padStart(2, "0")} CMP / ${String(f.length).padStart(2, "0")} TIER`,
1736
+ tally: `${String(y.length).padStart(2, "0")} CMP / ${String(x.length).padStart(2, "0")} TIER`,
1262
1737
  className: ""
1263
1738
  }
1264
1739
  )
@@ -1266,21 +1741,21 @@ function Do({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
1266
1741
  }
1267
1742
  ) });
1268
1743
  }
1269
- function ci({ width: e, depth: n, elevation: r, ink: t, isGround: i }) {
1270
- const l = E(0, 0, r), o = he(e, n, 0, l.screenX, l.screenY).top;
1271
- return /* @__PURE__ */ d.jsx(
1744
+ function fo({ width: e, depth: n, elevation: r, ink: i, isGround: t }) {
1745
+ const l = w(0, 0, r), o = xe(e, n, 0, l.screenX, l.screenY).top;
1746
+ return /* @__PURE__ */ h.jsx(
1272
1747
  "path",
1273
1748
  {
1274
1749
  d: o,
1275
1750
  fill: "none",
1276
- stroke: t,
1277
- strokeWidth: i ? 1 : 0.7,
1278
- strokeDasharray: i ? void 0 : "5 4",
1279
- opacity: i ? 0.9 : 0.7
1751
+ stroke: i,
1752
+ strokeWidth: t ? 1 : 0.7,
1753
+ strokeDasharray: t ? void 0 : "5 4",
1754
+ opacity: t ? 0.9 : 0.7
1280
1755
  }
1281
1756
  );
1282
1757
  }
1283
- const gn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', si = {
1758
+ const vn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', uo = {
1284
1759
  blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
1285
1760
  violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
1286
1761
  cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
@@ -1288,7 +1763,7 @@ const gn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', si =
1288
1763
  amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
1289
1764
  rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
1290
1765
  slate: { top: "#475569", side: "#334155", front: "#1e293b" }
1291
- }, fi = {
1766
+ }, po = {
1292
1767
  blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
1293
1768
  violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
1294
1769
  cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
@@ -1297,24 +1772,24 @@ const gn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', si =
1297
1772
  rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
1298
1773
  slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
1299
1774
  };
1300
- function Ne(e, n, r) {
1301
- const t = (s) => {
1302
- const u = s.replace("#", "");
1775
+ function Pe(e, n, r) {
1776
+ const i = (f) => {
1777
+ const u = f.replace("#", "");
1303
1778
  return {
1304
1779
  r: parseInt(u.substring(0, 2), 16),
1305
1780
  g: parseInt(u.substring(2, 4), 16),
1306
1781
  b: parseInt(u.substring(4, 6), 16)
1307
1782
  };
1308
- }, i = t(e), l = t(n), o = Math.round(i.r + (l.r - i.r) * r), a = Math.round(i.g + (l.g - i.g) * r), c = Math.round(i.b + (l.b - i.b) * r);
1783
+ }, t = i(e), l = i(n), o = Math.round(t.r + (l.r - t.r) * r), a = Math.round(t.g + (l.g - t.g) * r), c = Math.round(t.b + (l.b - t.b) * r);
1309
1784
  return `rgb(${o},${a},${c})`;
1310
1785
  }
1311
- function ui(e) {
1312
- const { theme: n, canvas: r, origin: t, tiers: i, floorSize: l, nodes: o, cornerRadius: a = 0 } = e, c = n === "dark" ? si : fi, s = n === "dark" ? "#0f172a" : "#fafafa", u = n === "dark" ? "#e2e8f0" : "#1e293b", x = n === "dark" ? "#64748b" : "#94a3b8", p = [...o].sort((m, y) => {
1313
- const A = i[m.tier]?.elevation || 0, v = i[y.tier]?.elevation || 0;
1314
- return A !== v ? A - v : y.x + y.width + (y.y + y.depth) - (m.x + m.width + (m.y + m.depth));
1786
+ function ho(e) {
1787
+ const { theme: n, canvas: r, origin: i, tiers: t, floorSize: l, nodes: o, cornerRadius: a = 0 } = e, c = e.material === "retro-print", f = c ? Dn : n === "dark" ? uo : po, u = c ? n === "dark" ? "#202624" : "#f4efe6" : n === "dark" ? "#0f172a" : "#fafafa", d = c ? "#202a29" : n === "dark" ? "#e2e8f0" : "#1e293b", p = c ? n === "dark" ? "#c5c4b7" : "#505b56" : n === "dark" ? "#64748b" : "#94a3b8", x = [...o].sort((y, v) => {
1788
+ const k = t[y.tier]?.elevation || 0, b = t[v.tier]?.elevation || 0;
1789
+ return k !== b ? k - b : v.x + v.width + (v.y + v.depth) - (y.x + y.width + (y.y + y.depth));
1315
1790
  });
1316
- let f = `<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${s}">`;
1317
- f += `<defs>
1791
+ let m = `<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${u}">`;
1792
+ m += `<defs>${c ? `<pattern id="print" width="64" height="64" patternUnits="userSpaceOnUse">${Yn.map((y) => `<circle cx="${y.x}" cy="${y.y}" r="${y.r}" fill="#26362e" opacity="0.32"/>`).join("")}</pattern>` : ""}
1318
1793
  <pattern id="grid" width="24" height="24" patternUnits="userSpaceOnUse">
1319
1794
  <circle cx="12" cy="12" r="0.5" fill="${n === "dark" ? "#1e293b" : "#e2e8f0"}"/>
1320
1795
  </pattern>
@@ -1327,131 +1802,131 @@ function ui(e) {
1327
1802
  <linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.18"/><stop offset="55%" stop-color="#ffffff" stop-opacity="0.04"/><stop offset="100%" stop-color="#ffffff" stop-opacity="0"/></linearGradient>
1328
1803
  <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#000000" stop-opacity="0"/><stop offset="100%" stop-color="#000000" stop-opacity="0.24"/></linearGradient>
1329
1804
  <filter id="labelshadow" x="-40%" y="-40%" width="180%" height="180%"><feDropShadow dx="0" dy="0.5" stdDeviation="0.7" flood-color="#000000" flood-opacity="0.7"/></filter>
1330
- </defs>`, f += '<rect width="100%" height="100%" fill="url(#bg)"/>', f += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', f += `<g transform="translate(${t.x},${t.y})">`;
1331
- for (let m = 0; m < i.length; m++) {
1332
- const y = i[m], A = p.filter(($) => $.tier === m), v = y.offset || { x: 0, y: 0 };
1333
- f += `<g transform="translate(${v.x},${v.y})">`;
1334
- const b = m === 0 ? 8 : 2, D = he(l.width, l.depth, b, 0, 0), L = E(0, 0, m === 0 ? -2 : y.elevation), w = y.floorColor || (n === "dark" ? "#0f172a" : "#f8fafc"), j = y.floorOpacity || (m === 0 ? 0.95 : 0.5);
1335
- f += `<g transform="translate(${L.screenX},${L.screenY})">`, m === 0 && (f += `<g transform="translate(4,4)" opacity="0.2"><path d="${D.top}" fill="#000"/></g>`), f += `<path d="${D.top}" fill="${w}" opacity="${j}"/>`, m === 0 && (f += `<path d="${D.left}" fill="${n === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, f += `<path d="${D.right}" fill="${n === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), f += `<path d="${D.top}" fill="none" stroke="${y.borderColor || (n === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${m === 0 ? 1.5 : 0.75}" opacity="${m === 0 ? 1 : 0.6}"/>`, f += "</g>";
1336
- for (const $ of A) {
1337
- const B = y.elevation + 5, N = E($.x, $.y, B), R = he($.width, $.depth, $.height, N.screenX, N.screenY, a), M = c[$.color] || c.slate, ne = $.opacity ?? 1;
1338
- f += `<g opacity="${ne}">`;
1339
- const J = E($.x - 3, $.y - 3, y.elevation), q = he($.width + 6, $.depth + 6, 0, J.screenX, J.screenY, a).top;
1340
- if (f += `<path d="${q}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, R.cornerBackRight)
1341
- for (const T of R.cornerBackRight)
1342
- f += `<path d="${T.path}" fill="${Ne(M.front, M.side, T.intensity)}"/>`;
1343
- if (R.cornerBackLeft)
1344
- for (const T of R.cornerBackLeft)
1345
- f += `<path d="${T.path}" fill="${Ne(M.side, M.front, T.intensity)}"/>`;
1346
- if (f += `<path d="${R.left}" fill="${M.side}"/>`, f += `<path d="${R.left}" fill="url(#shade)"/>`, f += `<path d="${R.right}" fill="${M.front}"/>`, f += `<path d="${R.right}" fill="url(#shade)"/>`, R.cornerFrontRight)
1347
- for (const T of R.cornerFrontRight)
1348
- f += `<path d="${T.path}" fill="${Ne(M.front, M.side, T.intensity)}"/>`;
1349
- if (R.cornerFrontLeft)
1350
- for (const T of R.cornerFrontLeft)
1351
- f += `<path d="${T.path}" fill="${Ne(M.front, M.side, T.intensity)}"/>`;
1352
- if (f += `<path d="${R.top}" fill="${M.top}"/>`, f += `<path d="${R.top}" fill="url(#sheen)"/>`, f += `<path d="${R.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, $.label) {
1353
- const T = E($.x + $.width / 2, $.y + $.depth / 2, B + $.height + 2), W = $.width > 70 ? 9 : 8;
1354
- f += `<g transform="translate(${T.screenX},${T.screenY})" filter="url(#labelshadow)">`, f += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', f += `<text x="0" y="0" text-anchor="middle" fill="${u}" font-size="${W}" font-weight="600" font-family='${gn}' style="text-transform:uppercase;letter-spacing:0.06em">${$.label}</text>`, f += "</g></g>";
1805
+ </defs>`, m += `<rect width="100%" height="100%" fill="${c ? u : "url(#bg)"}"/>`, m += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', m += `<g transform="translate(${i.x},${i.y})">`;
1806
+ for (let y = 0; y < t.length; y++) {
1807
+ const v = t[y], k = x.filter((j) => j.tier === y), b = v.offset || { x: 0, y: 0 };
1808
+ m += `<g transform="translate(${b.x},${b.y})">`;
1809
+ const Y = y === 0 ? 8 : 2, E = xe(l.width, l.depth, Y, 0, 0), C = w(0, 0, y === 0 ? -2 : v.elevation), N = v.floorColor || (n === "dark" ? "#0f172a" : "#f8fafc"), I = v.floorOpacity || (y === 0 ? 0.95 : 0.5);
1810
+ m += `<g transform="translate(${C.screenX},${C.screenY})">`, y === 0 && (m += `<g transform="translate(4,4)" opacity="0.2"><path d="${E.top}" fill="#000"/></g>`), m += `<path d="${E.top}" fill="${N}" opacity="${I}"/>`, y === 0 && (m += `<path d="${E.left}" fill="${n === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, m += `<path d="${E.right}" fill="${n === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), m += `<path d="${E.top}" fill="none" stroke="${v.borderColor || (n === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${y === 0 ? 1.5 : 0.75}" opacity="${y === 0 ? 1 : 0.6}"/>`, m += "</g>";
1811
+ for (const j of k) {
1812
+ const R = v.elevation + 5, ee = w(j.x, j.y, R), L = xe(j.width, j.depth, j.height, ee.screenX, ee.screenY, a), D = f[j.color] || f.slate, re = j.opacity ?? 1;
1813
+ m += `<g opacity="${re}">`;
1814
+ const K = w(j.x - 3, j.y - 3, v.elevation), H = xe(j.width + 6, j.depth + 6, 0, K.screenX, K.screenY, a).top;
1815
+ if (m += `<path d="${H}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, L.cornerBackRight)
1816
+ for (const T of L.cornerBackRight)
1817
+ m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
1818
+ if (L.cornerBackLeft)
1819
+ for (const T of L.cornerBackLeft)
1820
+ m += `<path d="${T.path}" fill="${Pe(D.side, D.front, T.intensity)}"/>`;
1821
+ if (m += `<path d="${L.left}" fill="${D.side}"/>`, m += `<path d="${L.left}" fill="url(#${c ? "print" : "shade"})"/>`, m += `<path d="${L.right}" fill="${D.front}"/>`, m += `<path d="${L.right}" fill="url(#${c ? "print" : "shade"})"/>`, L.cornerFrontRight)
1822
+ for (const T of L.cornerFrontRight)
1823
+ m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
1824
+ if (L.cornerFrontLeft)
1825
+ for (const T of L.cornerFrontLeft)
1826
+ m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
1827
+ if (m += `<path d="${L.top}" fill="${D.top}"/>`, m += `<path d="${L.top}" fill="url(#${c ? "print" : "sheen"})"/>`, m += `<path d="${L.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, j.label) {
1828
+ const T = w(j.x + j.width / 2, j.y + j.depth / 2, R + j.height + 2), U = j.width > 70 ? 9 : 8;
1829
+ m += `<g transform="translate(${T.screenX},${T.screenY})" filter="${c ? "none" : "url(#labelshadow)"}">`, m += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', m += `<text x="0" y="0" text-anchor="middle" fill="${d}" font-size="${U}" font-weight="600" font-family='${vn}' style="text-transform:uppercase;letter-spacing:0.06em">${j.label}</text>`, m += "</g></g>";
1355
1830
  }
1356
- f += "</g>";
1831
+ m += "</g>";
1357
1832
  }
1358
- const I = E(-25, l.depth / 2, y.elevation + 15);
1359
- f += `<text x="${I.screenX - 35}" y="${I.screenY}" fill="${x}" font-size="9" font-weight="500" font-family='${gn}' opacity="0.6" style="letter-spacing:0.05em">${y.name}</text>`, f += "</g>";
1833
+ const B = w(-25, l.depth / 2, v.elevation + 15);
1834
+ m += `<text x="${B.screenX - 35}" y="${B.screenY}" fill="${p}" font-size="9" font-weight="500" font-family='${vn}' opacity="0.6" style="letter-spacing:0.05em">${v.name}</text>`, m += "</g>";
1360
1835
  }
1361
- return f += "</g></svg>", f;
1836
+ return m += "</g></svg>", m;
1362
1837
  }
1363
- function Yo(e, n) {
1364
- e.innerHTML = ui(n);
1838
+ function Ha(e, n) {
1839
+ e.innerHTML = ho(n);
1365
1840
  }
1366
- function Wn(e) {
1841
+ function Vn(e) {
1367
1842
  return typeof e > "u" || e === null;
1368
1843
  }
1369
- function pi(e) {
1844
+ function xo(e) {
1370
1845
  return typeof e == "object" && e !== null;
1371
1846
  }
1372
- function di(e) {
1373
- return Array.isArray(e) ? e : Wn(e) ? [] : [e];
1847
+ function mo(e) {
1848
+ return Array.isArray(e) ? e : Vn(e) ? [] : [e];
1374
1849
  }
1375
- function hi(e, n) {
1376
- var r, t, i, l;
1850
+ function yo(e, n) {
1851
+ var r, i, t, l;
1377
1852
  if (n)
1378
- for (l = Object.keys(n), r = 0, t = l.length; r < t; r += 1)
1379
- i = l[r], e[i] = n[i];
1853
+ for (l = Object.keys(n), r = 0, i = l.length; r < i; r += 1)
1854
+ t = l[r], e[t] = n[t];
1380
1855
  return e;
1381
1856
  }
1382
- function xi(e, n) {
1383
- var r = "", t;
1384
- for (t = 0; t < n; t += 1)
1857
+ function go(e, n) {
1858
+ var r = "", i;
1859
+ for (i = 0; i < n; i += 1)
1385
1860
  r += e;
1386
1861
  return r;
1387
1862
  }
1388
- function mi(e) {
1863
+ function ko(e) {
1389
1864
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1390
1865
  }
1391
- var gi = Wn, yi = pi, vi = di, bi = xi, Ai = mi, ki = hi, U = {
1392
- isNothing: gi,
1393
- isObject: yi,
1394
- toArray: vi,
1395
- repeat: bi,
1396
- isNegativeZero: Ai,
1397
- extend: ki
1866
+ var vo = Vn, bo = xo, Ao = mo, _o = go, wo = ko, Co = yo, z = {
1867
+ isNothing: vo,
1868
+ isObject: bo,
1869
+ toArray: Ao,
1870
+ repeat: _o,
1871
+ isNegativeZero: wo,
1872
+ extend: Co
1398
1873
  };
1399
- function Hn(e, n) {
1400
- var r = "", t = e.reason || "(unknown reason)";
1874
+ function Zn(e, n) {
1875
+ var r = "", i = e.reason || "(unknown reason)";
1401
1876
  return e.mark ? (e.mark.name && (r += 'in "' + e.mark.name + '" '), r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (r += `
1402
1877
 
1403
- ` + e.mark.snippet), t + " " + r) : t;
1878
+ ` + e.mark.snippet), i + " " + r) : i;
1404
1879
  }
1405
1880
  function Te(e, n) {
1406
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Hn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1881
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Zn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1407
1882
  }
1408
1883
  Te.prototype = Object.create(Error.prototype);
1409
1884
  Te.prototype.constructor = Te;
1410
1885
  Te.prototype.toString = function(n) {
1411
- return this.name + ": " + Hn(this, n);
1886
+ return this.name + ": " + Zn(this, n);
1412
1887
  };
1413
- var Z = Te;
1414
- function Xe(e, n, r, t, i) {
1415
- var l = "", o = "", a = Math.floor(i / 2) - 1;
1416
- return t - n > a && (l = " ... ", n = t - a + l.length), r - t > a && (o = " ...", r = t + a - o.length), {
1888
+ var J = Te;
1889
+ function qe(e, n, r, i, t) {
1890
+ var l = "", o = "", a = Math.floor(t / 2) - 1;
1891
+ return i - n > a && (l = " ... ", n = i - a + l.length), r - i > a && (o = " ...", r = i + a - o.length), {
1417
1892
  str: l + e.slice(n, r).replace(/\t/g, "→") + o,
1418
- pos: t - n + l.length
1893
+ pos: i - n + l.length
1419
1894
  // relative position
1420
1895
  };
1421
1896
  }
1422
- function Ge(e, n) {
1423
- return U.repeat(" ", n - e.length) + e;
1897
+ function Xe(e, n) {
1898
+ return z.repeat(" ", n - e.length) + e;
1424
1899
  }
1425
- function Ci(e, n) {
1900
+ function $o(e, n) {
1426
1901
  if (n = Object.create(n || null), !e.buffer) return null;
1427
1902
  n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
1428
- for (var r = /\r?\n|\r|\0/g, t = [0], i = [], l, o = -1; l = r.exec(e.buffer); )
1429
- i.push(l.index), t.push(l.index + l[0].length), e.position <= l.index && o < 0 && (o = t.length - 2);
1430
- o < 0 && (o = t.length - 1);
1431
- var a = "", c, s, u = Math.min(e.line + n.linesAfter, i.length).toString().length, x = n.maxLength - (n.indent + u + 3);
1903
+ for (var r = /\r?\n|\r|\0/g, i = [0], t = [], l, o = -1; l = r.exec(e.buffer); )
1904
+ t.push(l.index), i.push(l.index + l[0].length), e.position <= l.index && o < 0 && (o = i.length - 2);
1905
+ o < 0 && (o = i.length - 1);
1906
+ var a = "", c, f, u = Math.min(e.line + n.linesAfter, t.length).toString().length, d = n.maxLength - (n.indent + u + 3);
1432
1907
  for (c = 1; c <= n.linesBefore && !(o - c < 0); c++)
1433
- s = Xe(
1908
+ f = qe(
1434
1909
  e.buffer,
1435
- t[o - c],
1436
1910
  i[o - c],
1437
- e.position - (t[o] - t[o - c]),
1438
- x
1439
- ), a = U.repeat(" ", n.indent) + Ge((e.line - c + 1).toString(), u) + " | " + s.str + `
1911
+ t[o - c],
1912
+ e.position - (i[o] - i[o - c]),
1913
+ d
1914
+ ), a = z.repeat(" ", n.indent) + Xe((e.line - c + 1).toString(), u) + " | " + f.str + `
1440
1915
  ` + a;
1441
- for (s = Xe(e.buffer, t[o], i[o], e.position, x), a += U.repeat(" ", n.indent) + Ge((e.line + 1).toString(), u) + " | " + s.str + `
1442
- `, a += U.repeat("-", n.indent + u + 3 + s.pos) + `^
1443
- `, c = 1; c <= n.linesAfter && !(o + c >= i.length); c++)
1444
- s = Xe(
1916
+ for (f = qe(e.buffer, i[o], t[o], e.position, d), a += z.repeat(" ", n.indent) + Xe((e.line + 1).toString(), u) + " | " + f.str + `
1917
+ `, a += z.repeat("-", n.indent + u + 3 + f.pos) + `^
1918
+ `, c = 1; c <= n.linesAfter && !(o + c >= t.length); c++)
1919
+ f = qe(
1445
1920
  e.buffer,
1446
- t[o + c],
1447
1921
  i[o + c],
1448
- e.position - (t[o] - t[o + c]),
1449
- x
1450
- ), a += U.repeat(" ", n.indent) + Ge((e.line + c + 1).toString(), u) + " | " + s.str + `
1922
+ t[o + c],
1923
+ e.position - (i[o] - i[o + c]),
1924
+ d
1925
+ ), a += z.repeat(" ", n.indent) + Xe((e.line + c + 1).toString(), u) + " | " + f.str + `
1451
1926
  `;
1452
1927
  return a.replace(/\n$/, "");
1453
1928
  }
1454
- var Si = Ci, Ei = [
1929
+ var So = $o, Eo = [
1455
1930
  "kind",
1456
1931
  "multi",
1457
1932
  "resolve",
@@ -1462,41 +1937,41 @@ var Si = Ci, Ei = [
1462
1937
  "representName",
1463
1938
  "defaultStyle",
1464
1939
  "styleAliases"
1465
- ], wi = [
1940
+ ], To = [
1466
1941
  "scalar",
1467
1942
  "sequence",
1468
1943
  "mapping"
1469
1944
  ];
1470
- function _i(e) {
1945
+ function Mo(e) {
1471
1946
  var n = {};
1472
1947
  return e !== null && Object.keys(e).forEach(function(r) {
1473
- e[r].forEach(function(t) {
1474
- n[String(t)] = r;
1948
+ e[r].forEach(function(i) {
1949
+ n[String(i)] = r;
1475
1950
  });
1476
1951
  }), n;
1477
1952
  }
1478
- function Ti(e, n) {
1953
+ function jo(e, n) {
1479
1954
  if (n = n || {}, Object.keys(n).forEach(function(r) {
1480
- if (Ei.indexOf(r) === -1)
1481
- throw new Z('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
1955
+ if (Eo.indexOf(r) === -1)
1956
+ throw new J('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
1482
1957
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1483
1958
  return !0;
1484
1959
  }, this.construct = n.construct || function(r) {
1485
1960
  return r;
1486
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = _i(n.styleAliases || null), wi.indexOf(this.kind) === -1)
1487
- throw new Z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1961
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Mo(n.styleAliases || null), To.indexOf(this.kind) === -1)
1962
+ throw new J('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1488
1963
  }
1489
- var z = Ti;
1490
- function yn(e, n) {
1964
+ var G = jo;
1965
+ function bn(e, n) {
1491
1966
  var r = [];
1492
- return e[n].forEach(function(t) {
1493
- var i = r.length;
1967
+ return e[n].forEach(function(i) {
1968
+ var t = r.length;
1494
1969
  r.forEach(function(l, o) {
1495
- l.tag === t.tag && l.kind === t.kind && l.multi === t.multi && (i = o);
1496
- }), r[i] = t;
1970
+ l.tag === i.tag && l.kind === i.kind && l.multi === i.multi && (t = o);
1971
+ }), r[t] = i;
1497
1972
  }), r;
1498
1973
  }
1499
- function $i() {
1974
+ function Oo() {
1500
1975
  var e = {
1501
1976
  scalar: {},
1502
1977
  sequence: {},
@@ -1509,78 +1984,78 @@ function $i() {
1509
1984
  fallback: []
1510
1985
  }
1511
1986
  }, n, r;
1512
- function t(i) {
1513
- i.multi ? (e.multi[i.kind].push(i), e.multi.fallback.push(i)) : e[i.kind][i.tag] = e.fallback[i.tag] = i;
1987
+ function i(t) {
1988
+ t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
1514
1989
  }
1515
1990
  for (n = 0, r = arguments.length; n < r; n += 1)
1516
- arguments[n].forEach(t);
1991
+ arguments[n].forEach(i);
1517
1992
  return e;
1518
1993
  }
1519
- function qe(e) {
1994
+ function Ve(e) {
1520
1995
  return this.extend(e);
1521
1996
  }
1522
- qe.prototype.extend = function(n) {
1523
- var r = [], t = [];
1524
- if (n instanceof z)
1525
- t.push(n);
1997
+ Ve.prototype.extend = function(n) {
1998
+ var r = [], i = [];
1999
+ if (n instanceof G)
2000
+ i.push(n);
1526
2001
  else if (Array.isArray(n))
1527
- t = t.concat(n);
2002
+ i = i.concat(n);
1528
2003
  else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
1529
- n.implicit && (r = r.concat(n.implicit)), n.explicit && (t = t.concat(n.explicit));
2004
+ n.implicit && (r = r.concat(n.implicit)), n.explicit && (i = i.concat(n.explicit));
1530
2005
  else
1531
- throw new Z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
2006
+ throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1532
2007
  r.forEach(function(l) {
1533
- if (!(l instanceof z))
1534
- throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
2008
+ if (!(l instanceof G))
2009
+ throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1535
2010
  if (l.loadKind && l.loadKind !== "scalar")
1536
- throw new Z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
2011
+ throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1537
2012
  if (l.multi)
1538
- throw new Z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1539
- }), t.forEach(function(l) {
1540
- if (!(l instanceof z))
1541
- throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
2013
+ throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
2014
+ }), i.forEach(function(l) {
2015
+ if (!(l instanceof G))
2016
+ throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1542
2017
  });
1543
- var i = Object.create(qe.prototype);
1544
- return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(t), i.compiledImplicit = yn(i, "implicit"), i.compiledExplicit = yn(i, "explicit"), i.compiledTypeMap = $i(i.compiledImplicit, i.compiledExplicit), i;
2018
+ var t = Object.create(Ve.prototype);
2019
+ return t.implicit = (this.implicit || []).concat(r), t.explicit = (this.explicit || []).concat(i), t.compiledImplicit = bn(t, "implicit"), t.compiledExplicit = bn(t, "explicit"), t.compiledTypeMap = Oo(t.compiledImplicit, t.compiledExplicit), t;
1545
2020
  };
1546
- var Un = qe, Xn = new z("tag:yaml.org,2002:str", {
2021
+ var Jn = Ve, Qn = new G("tag:yaml.org,2002:str", {
1547
2022
  kind: "scalar",
1548
2023
  construct: function(e) {
1549
2024
  return e !== null ? e : "";
1550
2025
  }
1551
- }), Gn = new z("tag:yaml.org,2002:seq", {
2026
+ }), er = new G("tag:yaml.org,2002:seq", {
1552
2027
  kind: "sequence",
1553
2028
  construct: function(e) {
1554
2029
  return e !== null ? e : [];
1555
2030
  }
1556
- }), zn = new z("tag:yaml.org,2002:map", {
2031
+ }), nr = new G("tag:yaml.org,2002:map", {
1557
2032
  kind: "mapping",
1558
2033
  construct: function(e) {
1559
2034
  return e !== null ? e : {};
1560
2035
  }
1561
- }), qn = new Un({
2036
+ }), rr = new Jn({
1562
2037
  explicit: [
1563
- Xn,
1564
- Gn,
1565
- zn
2038
+ Qn,
2039
+ er,
2040
+ nr
1566
2041
  ]
1567
2042
  });
1568
- function Oi(e) {
2043
+ function No(e) {
1569
2044
  if (e === null) return !0;
1570
2045
  var n = e.length;
1571
2046
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1572
2047
  }
1573
- function ji() {
2048
+ function Lo() {
1574
2049
  return null;
1575
2050
  }
1576
- function Fi(e) {
2051
+ function Fo(e) {
1577
2052
  return e === null;
1578
2053
  }
1579
- var Kn = new z("tag:yaml.org,2002:null", {
2054
+ var tr = new G("tag:yaml.org,2002:null", {
1580
2055
  kind: "scalar",
1581
- resolve: Oi,
1582
- construct: ji,
1583
- predicate: Fi,
2056
+ resolve: No,
2057
+ construct: Lo,
2058
+ predicate: Fo,
1584
2059
  represent: {
1585
2060
  canonical: function() {
1586
2061
  return "~";
@@ -1600,22 +2075,22 @@ var Kn = new z("tag:yaml.org,2002:null", {
1600
2075
  },
1601
2076
  defaultStyle: "lowercase"
1602
2077
  });
1603
- function Li(e) {
2078
+ function Io(e) {
1604
2079
  if (e === null) return !1;
1605
2080
  var n = e.length;
1606
2081
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1607
2082
  }
1608
- function Ri(e) {
2083
+ function Ro(e) {
1609
2084
  return e === "true" || e === "True" || e === "TRUE";
1610
2085
  }
1611
- function Ii(e) {
2086
+ function Po(e) {
1612
2087
  return Object.prototype.toString.call(e) === "[object Boolean]";
1613
2088
  }
1614
- var Vn = new z("tag:yaml.org,2002:bool", {
2089
+ var ir = new G("tag:yaml.org,2002:bool", {
1615
2090
  kind: "scalar",
1616
- resolve: Li,
1617
- construct: Ri,
1618
- predicate: Ii,
2091
+ resolve: Io,
2092
+ construct: Ro,
2093
+ predicate: Po,
1619
2094
  represent: {
1620
2095
  lowercase: function(e) {
1621
2096
  return e ? "true" : "false";
@@ -1629,73 +2104,73 @@ var Vn = new z("tag:yaml.org,2002:bool", {
1629
2104
  },
1630
2105
  defaultStyle: "lowercase"
1631
2106
  });
1632
- function Mi(e) {
2107
+ function Do(e) {
1633
2108
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1634
2109
  }
1635
- function Ni(e) {
2110
+ function Yo(e) {
1636
2111
  return 48 <= e && e <= 55;
1637
2112
  }
1638
- function Pi(e) {
2113
+ function Bo(e) {
1639
2114
  return 48 <= e && e <= 57;
1640
2115
  }
1641
- function Di(e) {
2116
+ function Ho(e) {
1642
2117
  if (e === null) return !1;
1643
- var n = e.length, r = 0, t = !1, i;
2118
+ var n = e.length, r = 0, i = !1, t;
1644
2119
  if (!n) return !1;
1645
- if (i = e[r], (i === "-" || i === "+") && (i = e[++r]), i === "0") {
2120
+ if (t = e[r], (t === "-" || t === "+") && (t = e[++r]), t === "0") {
1646
2121
  if (r + 1 === n) return !0;
1647
- if (i = e[++r], i === "b") {
2122
+ if (t = e[++r], t === "b") {
1648
2123
  for (r++; r < n; r++)
1649
- if (i = e[r], i !== "_") {
1650
- if (i !== "0" && i !== "1") return !1;
1651
- t = !0;
2124
+ if (t = e[r], t !== "_") {
2125
+ if (t !== "0" && t !== "1") return !1;
2126
+ i = !0;
1652
2127
  }
1653
- return t && i !== "_";
2128
+ return i && t !== "_";
1654
2129
  }
1655
- if (i === "x") {
2130
+ if (t === "x") {
1656
2131
  for (r++; r < n; r++)
1657
- if (i = e[r], i !== "_") {
1658
- if (!Mi(e.charCodeAt(r))) return !1;
1659
- t = !0;
2132
+ if (t = e[r], t !== "_") {
2133
+ if (!Do(e.charCodeAt(r))) return !1;
2134
+ i = !0;
1660
2135
  }
1661
- return t && i !== "_";
2136
+ return i && t !== "_";
1662
2137
  }
1663
- if (i === "o") {
2138
+ if (t === "o") {
1664
2139
  for (r++; r < n; r++)
1665
- if (i = e[r], i !== "_") {
1666
- if (!Ni(e.charCodeAt(r))) return !1;
1667
- t = !0;
2140
+ if (t = e[r], t !== "_") {
2141
+ if (!Yo(e.charCodeAt(r))) return !1;
2142
+ i = !0;
1668
2143
  }
1669
- return t && i !== "_";
2144
+ return i && t !== "_";
1670
2145
  }
1671
2146
  }
1672
- if (i === "_") return !1;
2147
+ if (t === "_") return !1;
1673
2148
  for (; r < n; r++)
1674
- if (i = e[r], i !== "_") {
1675
- if (!Pi(e.charCodeAt(r)))
2149
+ if (t = e[r], t !== "_") {
2150
+ if (!Bo(e.charCodeAt(r)))
1676
2151
  return !1;
1677
- t = !0;
2152
+ i = !0;
1678
2153
  }
1679
- return !(!t || i === "_");
2154
+ return !(!i || t === "_");
1680
2155
  }
1681
- function Yi(e) {
1682
- var n = e, r = 1, t;
1683
- if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), t = n[0], (t === "-" || t === "+") && (t === "-" && (r = -1), n = n.slice(1), t = n[0]), n === "0") return 0;
1684
- if (t === "0") {
2156
+ function Wo(e) {
2157
+ var n = e, r = 1, i;
2158
+ if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), i = n[0], (i === "-" || i === "+") && (i === "-" && (r = -1), n = n.slice(1), i = n[0]), n === "0") return 0;
2159
+ if (i === "0") {
1685
2160
  if (n[1] === "b") return r * parseInt(n.slice(2), 2);
1686
2161
  if (n[1] === "x") return r * parseInt(n.slice(2), 16);
1687
2162
  if (n[1] === "o") return r * parseInt(n.slice(2), 8);
1688
2163
  }
1689
2164
  return r * parseInt(n, 10);
1690
2165
  }
1691
- function Bi(e) {
1692
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !U.isNegativeZero(e);
2166
+ function Uo(e) {
2167
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !z.isNegativeZero(e);
1693
2168
  }
1694
- var Zn = new z("tag:yaml.org,2002:int", {
2169
+ var or = new G("tag:yaml.org,2002:int", {
1695
2170
  kind: "scalar",
1696
- resolve: Di,
1697
- construct: Yi,
1698
- predicate: Bi,
2171
+ resolve: Ho,
2172
+ construct: Wo,
2173
+ predicate: Uo,
1699
2174
  represent: {
1700
2175
  binary: function(e) {
1701
2176
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1718,21 +2193,21 @@ var Zn = new z("tag:yaml.org,2002:int", {
1718
2193
  decimal: [10, "dec"],
1719
2194
  hexadecimal: [16, "hex"]
1720
2195
  }
1721
- }), Wi = new RegExp(
2196
+ }), zo = new RegExp(
1722
2197
  // 2.5e4, 2.5 and integers
1723
2198
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1724
2199
  );
1725
- function Hi(e) {
1726
- return !(e === null || !Wi.test(e) || // Quick hack to not allow integers end with `_`
2200
+ function qo(e) {
2201
+ return !(e === null || !zo.test(e) || // Quick hack to not allow integers end with `_`
1727
2202
  // Probably should update regexp & check speed
1728
2203
  e[e.length - 1] === "_");
1729
2204
  }
1730
- function Ui(e) {
2205
+ function Xo(e) {
1731
2206
  var n, r;
1732
2207
  return n = e.replace(/_/g, "").toLowerCase(), r = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : r * parseFloat(n, 10);
1733
2208
  }
1734
- var Xi = /^[-+]?[0-9]+e/;
1735
- function Gi(e, n) {
2209
+ var Go = /^[-+]?[0-9]+e/;
2210
+ function Ko(e, n) {
1736
2211
  var r;
1737
2212
  if (isNaN(e))
1738
2213
  switch (n) {
@@ -1761,104 +2236,104 @@ function Gi(e, n) {
1761
2236
  case "camelcase":
1762
2237
  return "-.Inf";
1763
2238
  }
1764
- else if (U.isNegativeZero(e))
2239
+ else if (z.isNegativeZero(e))
1765
2240
  return "-0.0";
1766
- return r = e.toString(10), Xi.test(r) ? r.replace("e", ".e") : r;
2241
+ return r = e.toString(10), Go.test(r) ? r.replace("e", ".e") : r;
1767
2242
  }
1768
- function zi(e) {
1769
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || U.isNegativeZero(e));
2243
+ function Vo(e) {
2244
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || z.isNegativeZero(e));
1770
2245
  }
1771
- var Jn = new z("tag:yaml.org,2002:float", {
2246
+ var lr = new G("tag:yaml.org,2002:float", {
1772
2247
  kind: "scalar",
1773
- resolve: Hi,
1774
- construct: Ui,
1775
- predicate: zi,
1776
- represent: Gi,
2248
+ resolve: qo,
2249
+ construct: Xo,
2250
+ predicate: Vo,
2251
+ represent: Ko,
1777
2252
  defaultStyle: "lowercase"
1778
- }), Qn = qn.extend({
2253
+ }), ar = rr.extend({
1779
2254
  implicit: [
1780
- Kn,
1781
- Vn,
1782
- Zn,
1783
- Jn
2255
+ tr,
2256
+ ir,
2257
+ or,
2258
+ lr
1784
2259
  ]
1785
- }), er = Qn, nr = new RegExp(
2260
+ }), cr = ar, sr = new RegExp(
1786
2261
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1787
- ), rr = new RegExp(
2262
+ ), fr = new RegExp(
1788
2263
  "^([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]))?))?$"
1789
2264
  );
1790
- function qi(e) {
1791
- return e === null ? !1 : nr.exec(e) !== null || rr.exec(e) !== null;
1792
- }
1793
- function Ki(e) {
1794
- var n, r, t, i, l, o, a, c = 0, s = null, u, x, p;
1795
- if (n = nr.exec(e), n === null && (n = rr.exec(e)), n === null) throw new Error("Date resolve error");
1796
- if (r = +n[1], t = +n[2] - 1, i = +n[3], !n[4])
1797
- return new Date(Date.UTC(r, t, i));
2265
+ function Zo(e) {
2266
+ return e === null ? !1 : sr.exec(e) !== null || fr.exec(e) !== null;
2267
+ }
2268
+ function Jo(e) {
2269
+ var n, r, i, t, l, o, a, c = 0, f = null, u, d, p;
2270
+ if (n = sr.exec(e), n === null && (n = fr.exec(e)), n === null) throw new Error("Date resolve error");
2271
+ if (r = +n[1], i = +n[2] - 1, t = +n[3], !n[4])
2272
+ return new Date(Date.UTC(r, i, t));
1798
2273
  if (l = +n[4], o = +n[5], a = +n[6], n[7]) {
1799
2274
  for (c = n[7].slice(0, 3); c.length < 3; )
1800
2275
  c += "0";
1801
2276
  c = +c;
1802
2277
  }
1803
- return n[9] && (u = +n[10], x = +(n[11] || 0), s = (u * 60 + x) * 6e4, n[9] === "-" && (s = -s)), p = new Date(Date.UTC(r, t, i, l, o, a, c)), s && p.setTime(p.getTime() - s), p;
2278
+ return n[9] && (u = +n[10], d = +(n[11] || 0), f = (u * 60 + d) * 6e4, n[9] === "-" && (f = -f)), p = new Date(Date.UTC(r, i, t, l, o, a, c)), f && p.setTime(p.getTime() - f), p;
1804
2279
  }
1805
- function Vi(e) {
2280
+ function Qo(e) {
1806
2281
  return e.toISOString();
1807
2282
  }
1808
- var ir = new z("tag:yaml.org,2002:timestamp", {
2283
+ var ur = new G("tag:yaml.org,2002:timestamp", {
1809
2284
  kind: "scalar",
1810
- resolve: qi,
1811
- construct: Ki,
2285
+ resolve: Zo,
2286
+ construct: Jo,
1812
2287
  instanceOf: Date,
1813
- represent: Vi
2288
+ represent: Qo
1814
2289
  });
1815
- function Zi(e) {
2290
+ function el(e) {
1816
2291
  return e === "<<" || e === null;
1817
2292
  }
1818
- var tr = new z("tag:yaml.org,2002:merge", {
2293
+ var pr = new G("tag:yaml.org,2002:merge", {
1819
2294
  kind: "scalar",
1820
- resolve: Zi
1821
- }), rn = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2295
+ resolve: el
2296
+ }), on = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1822
2297
  \r`;
1823
- function Ji(e) {
2298
+ function nl(e) {
1824
2299
  if (e === null) return !1;
1825
- var n, r, t = 0, i = e.length, l = rn;
1826
- for (r = 0; r < i; r++)
2300
+ var n, r, i = 0, t = e.length, l = on;
2301
+ for (r = 0; r < t; r++)
1827
2302
  if (n = l.indexOf(e.charAt(r)), !(n > 64)) {
1828
2303
  if (n < 0) return !1;
1829
- t += 6;
2304
+ i += 6;
1830
2305
  }
1831
- return t % 8 === 0;
2306
+ return i % 8 === 0;
1832
2307
  }
1833
- function Qi(e) {
1834
- var n, r, t = e.replace(/[\r\n=]/g, ""), i = t.length, l = rn, o = 0, a = [];
1835
- for (n = 0; n < i; n++)
1836
- n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(t.charAt(n));
1837
- return r = i % 4 * 6, r === 0 ? (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)) : r === 18 ? (a.push(o >> 10 & 255), a.push(o >> 2 & 255)) : r === 12 && a.push(o >> 4 & 255), new Uint8Array(a);
2308
+ function rl(e) {
2309
+ var n, r, i = e.replace(/[\r\n=]/g, ""), t = i.length, l = on, o = 0, a = [];
2310
+ for (n = 0; n < t; n++)
2311
+ n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(i.charAt(n));
2312
+ return r = t % 4 * 6, r === 0 ? (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)) : r === 18 ? (a.push(o >> 10 & 255), a.push(o >> 2 & 255)) : r === 12 && a.push(o >> 4 & 255), new Uint8Array(a);
1838
2313
  }
1839
- function et(e) {
1840
- var n = "", r = 0, t, i, l = e.length, o = rn;
1841
- for (t = 0; t < l; t++)
1842
- t % 3 === 0 && t && (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]), r = (r << 8) + e[t];
1843
- return i = l % 3, i === 0 ? (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]) : i === 2 ? (n += o[r >> 10 & 63], n += o[r >> 4 & 63], n += o[r << 2 & 63], n += o[64]) : i === 1 && (n += o[r >> 2 & 63], n += o[r << 4 & 63], n += o[64], n += o[64]), n;
2314
+ function tl(e) {
2315
+ var n = "", r = 0, i, t, l = e.length, o = on;
2316
+ for (i = 0; i < l; i++)
2317
+ i % 3 === 0 && i && (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]), r = (r << 8) + e[i];
2318
+ return t = l % 3, t === 0 ? (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]) : t === 2 ? (n += o[r >> 10 & 63], n += o[r >> 4 & 63], n += o[r << 2 & 63], n += o[64]) : t === 1 && (n += o[r >> 2 & 63], n += o[r << 4 & 63], n += o[64], n += o[64]), n;
1844
2319
  }
1845
- function nt(e) {
2320
+ function il(e) {
1846
2321
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1847
2322
  }
1848
- var or = new z("tag:yaml.org,2002:binary", {
2323
+ var hr = new G("tag:yaml.org,2002:binary", {
1849
2324
  kind: "scalar",
1850
- resolve: Ji,
1851
- construct: Qi,
1852
- predicate: nt,
1853
- represent: et
1854
- }), rt = Object.prototype.hasOwnProperty, it = Object.prototype.toString;
1855
- function tt(e) {
2325
+ resolve: nl,
2326
+ construct: rl,
2327
+ predicate: il,
2328
+ represent: tl
2329
+ }), ol = Object.prototype.hasOwnProperty, ll = Object.prototype.toString;
2330
+ function al(e) {
1856
2331
  if (e === null) return !0;
1857
- var n = [], r, t, i, l, o, a = e;
1858
- for (r = 0, t = a.length; r < t; r += 1) {
1859
- if (i = a[r], o = !1, it.call(i) !== "[object Object]") return !1;
1860
- for (l in i)
1861
- if (rt.call(i, l))
2332
+ var n = [], r, i, t, l, o, a = e;
2333
+ for (r = 0, i = a.length; r < i; r += 1) {
2334
+ if (t = a[r], o = !1, ll.call(t) !== "[object Object]") return !1;
2335
+ for (l in t)
2336
+ if (ol.call(t, l))
1862
2337
  if (!o) o = !0;
1863
2338
  else return !1;
1864
2339
  if (!o) return !1;
@@ -1867,98 +2342,98 @@ function tt(e) {
1867
2342
  }
1868
2343
  return !0;
1869
2344
  }
1870
- function ot(e) {
2345
+ function cl(e) {
1871
2346
  return e !== null ? e : [];
1872
2347
  }
1873
- var lr = new z("tag:yaml.org,2002:omap", {
2348
+ var dr = new G("tag:yaml.org,2002:omap", {
1874
2349
  kind: "sequence",
1875
- resolve: tt,
1876
- construct: ot
1877
- }), lt = Object.prototype.toString;
1878
- function at(e) {
2350
+ resolve: al,
2351
+ construct: cl
2352
+ }), sl = Object.prototype.toString;
2353
+ function fl(e) {
1879
2354
  if (e === null) return !0;
1880
- var n, r, t, i, l, o = e;
2355
+ var n, r, i, t, l, o = e;
1881
2356
  for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1) {
1882
- if (t = o[n], lt.call(t) !== "[object Object]" || (i = Object.keys(t), i.length !== 1)) return !1;
1883
- l[n] = [i[0], t[i[0]]];
2357
+ if (i = o[n], sl.call(i) !== "[object Object]" || (t = Object.keys(i), t.length !== 1)) return !1;
2358
+ l[n] = [t[0], i[t[0]]];
1884
2359
  }
1885
2360
  return !0;
1886
2361
  }
1887
- function ct(e) {
2362
+ function ul(e) {
1888
2363
  if (e === null) return [];
1889
- var n, r, t, i, l, o = e;
2364
+ var n, r, i, t, l, o = e;
1890
2365
  for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1)
1891
- t = o[n], i = Object.keys(t), l[n] = [i[0], t[i[0]]];
2366
+ i = o[n], t = Object.keys(i), l[n] = [t[0], i[t[0]]];
1892
2367
  return l;
1893
2368
  }
1894
- var ar = new z("tag:yaml.org,2002:pairs", {
2369
+ var xr = new G("tag:yaml.org,2002:pairs", {
1895
2370
  kind: "sequence",
1896
- resolve: at,
1897
- construct: ct
1898
- }), st = Object.prototype.hasOwnProperty;
1899
- function ft(e) {
2371
+ resolve: fl,
2372
+ construct: ul
2373
+ }), pl = Object.prototype.hasOwnProperty;
2374
+ function hl(e) {
1900
2375
  if (e === null) return !0;
1901
2376
  var n, r = e;
1902
2377
  for (n in r)
1903
- if (st.call(r, n) && r[n] !== null)
2378
+ if (pl.call(r, n) && r[n] !== null)
1904
2379
  return !1;
1905
2380
  return !0;
1906
2381
  }
1907
- function ut(e) {
2382
+ function dl(e) {
1908
2383
  return e !== null ? e : {};
1909
2384
  }
1910
- var cr = new z("tag:yaml.org,2002:set", {
2385
+ var mr = new G("tag:yaml.org,2002:set", {
1911
2386
  kind: "mapping",
1912
- resolve: ft,
1913
- construct: ut
1914
- }), tn = er.extend({
2387
+ resolve: hl,
2388
+ construct: dl
2389
+ }), ln = cr.extend({
1915
2390
  implicit: [
1916
- ir,
1917
- tr
2391
+ ur,
2392
+ pr
1918
2393
  ],
1919
2394
  explicit: [
1920
- or,
1921
- lr,
1922
- ar,
1923
- cr
2395
+ hr,
2396
+ dr,
2397
+ xr,
2398
+ mr
1924
2399
  ]
1925
- }), pe = Object.prototype.hasOwnProperty, De = 1, sr = 2, fr = 3, Ye = 4, ze = 1, pt = 2, vn = 3, dt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ht = /[\x85\u2028\u2029]/, xt = /[,\[\]\{\}]/, ur = /^(?:!|!!|![a-z\-]+!)$/i, pr = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1926
- function bn(e) {
2400
+ }), he = Object.prototype.hasOwnProperty, Ye = 1, yr = 2, gr = 3, Be = 4, Ge = 1, xl = 2, An = 3, ml = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, yl = /[\x85\u2028\u2029]/, gl = /[,\[\]\{\}]/, kr = /^(?:!|!!|![a-z\-]+!)$/i, vr = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
2401
+ function _n(e) {
1927
2402
  return Object.prototype.toString.call(e);
1928
2403
  }
1929
- function oe(e) {
2404
+ function le(e) {
1930
2405
  return e === 10 || e === 13;
1931
2406
  }
1932
- function xe(e) {
2407
+ function me(e) {
1933
2408
  return e === 9 || e === 32;
1934
2409
  }
1935
- function ee(e) {
2410
+ function Q(e) {
1936
2411
  return e === 9 || e === 32 || e === 10 || e === 13;
1937
2412
  }
1938
- function ve(e) {
2413
+ function be(e) {
1939
2414
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1940
2415
  }
1941
- function mt(e) {
2416
+ function kl(e) {
1942
2417
  var n;
1943
2418
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1944
2419
  }
1945
- function gt(e) {
2420
+ function vl(e) {
1946
2421
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1947
2422
  }
1948
- function yt(e) {
2423
+ function bl(e) {
1949
2424
  return 48 <= e && e <= 57 ? e - 48 : -1;
1950
2425
  }
1951
- function An(e) {
2426
+ function wn(e) {
1952
2427
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1953
2428
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1954
2429
  }
1955
- function vt(e) {
2430
+ function Al(e) {
1956
2431
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1957
2432
  (e - 65536 >> 10) + 55296,
1958
2433
  (e - 65536 & 1023) + 56320
1959
2434
  );
1960
2435
  }
1961
- function dr(e, n, r) {
2436
+ function br(e, n, r) {
1962
2437
  n === "__proto__" ? Object.defineProperty(e, n, {
1963
2438
  configurable: !0,
1964
2439
  enumerable: !0,
@@ -1966,13 +2441,13 @@ function dr(e, n, r) {
1966
2441
  value: r
1967
2442
  }) : e[n] = r;
1968
2443
  }
1969
- var hr = new Array(256), xr = new Array(256);
1970
- for (var ge = 0; ge < 256; ge++)
1971
- hr[ge] = An(ge) ? 1 : 0, xr[ge] = An(ge);
1972
- function bt(e, n) {
1973
- this.input = e, this.filename = n.filename || null, this.schema = n.schema || tn, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
2444
+ var Ar = new Array(256), _r = new Array(256);
2445
+ for (var ke = 0; ke < 256; ke++)
2446
+ Ar[ke] = wn(ke) ? 1 : 0, _r[ke] = wn(ke);
2447
+ function _l(e, n) {
2448
+ this.input = e, this.filename = n.filename || null, this.schema = n.schema || ln, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
1974
2449
  }
1975
- function mr(e, n) {
2450
+ function wr(e, n) {
1976
2451
  var r = {
1977
2452
  name: e.filename,
1978
2453
  buffer: e.input.slice(0, -1),
@@ -1981,395 +2456,395 @@ function mr(e, n) {
1981
2456
  line: e.line,
1982
2457
  column: e.position - e.lineStart
1983
2458
  };
1984
- return r.snippet = Si(r), new Z(n, r);
2459
+ return r.snippet = So(r), new J(n, r);
1985
2460
  }
1986
- function C(e, n) {
1987
- throw mr(e, n);
2461
+ function _(e, n) {
2462
+ throw wr(e, n);
1988
2463
  }
1989
- function Be(e, n) {
1990
- e.onWarning && e.onWarning.call(null, mr(e, n));
2464
+ function He(e, n) {
2465
+ e.onWarning && e.onWarning.call(null, wr(e, n));
1991
2466
  }
1992
- var kn = {
1993
- YAML: function(n, r, t) {
1994
- var i, l, o;
1995
- n.version !== null && C(n, "duplication of %YAML directive"), t.length !== 1 && C(n, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), i === null && C(n, "ill-formed argument of the YAML directive"), l = parseInt(i[1], 10), o = parseInt(i[2], 10), l !== 1 && C(n, "unacceptable YAML version of the document"), n.version = t[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Be(n, "unsupported YAML version of the document");
2467
+ var Cn = {
2468
+ YAML: function(n, r, i) {
2469
+ var t, l, o;
2470
+ n.version !== null && _(n, "duplication of %YAML directive"), i.length !== 1 && _(n, "YAML directive accepts exactly one argument"), t = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), t === null && _(n, "ill-formed argument of the YAML directive"), l = parseInt(t[1], 10), o = parseInt(t[2], 10), l !== 1 && _(n, "unacceptable YAML version of the document"), n.version = i[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(n, "unsupported YAML version of the document");
1996
2471
  },
1997
- TAG: function(n, r, t) {
1998
- var i, l;
1999
- t.length !== 2 && C(n, "TAG directive accepts exactly two arguments"), i = t[0], l = t[1], ur.test(i) || C(n, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(n.tagMap, i) && C(n, 'there is a previously declared suffix for "' + i + '" tag handle'), pr.test(l) || C(n, "ill-formed tag prefix (second argument) of the TAG directive");
2472
+ TAG: function(n, r, i) {
2473
+ var t, l;
2474
+ i.length !== 2 && _(n, "TAG directive accepts exactly two arguments"), t = i[0], l = i[1], kr.test(t) || _(n, "ill-formed tag handle (first argument) of the TAG directive"), he.call(n.tagMap, t) && _(n, 'there is a previously declared suffix for "' + t + '" tag handle'), vr.test(l) || _(n, "ill-formed tag prefix (second argument) of the TAG directive");
2000
2475
  try {
2001
2476
  l = decodeURIComponent(l);
2002
2477
  } catch {
2003
- C(n, "tag prefix is malformed: " + l);
2478
+ _(n, "tag prefix is malformed: " + l);
2004
2479
  }
2005
- n.tagMap[i] = l;
2480
+ n.tagMap[t] = l;
2006
2481
  }
2007
2482
  };
2008
- function ue(e, n, r, t) {
2009
- var i, l, o, a;
2483
+ function pe(e, n, r, i) {
2484
+ var t, l, o, a;
2010
2485
  if (n < r) {
2011
- if (a = e.input.slice(n, r), t)
2012
- for (i = 0, l = a.length; i < l; i += 1)
2013
- o = a.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || C(e, "expected valid JSON character");
2014
- else dt.test(a) && C(e, "the stream contains non-printable characters");
2486
+ if (a = e.input.slice(n, r), i)
2487
+ for (t = 0, l = a.length; t < l; t += 1)
2488
+ o = a.charCodeAt(t), o === 9 || 32 <= o && o <= 1114111 || _(e, "expected valid JSON character");
2489
+ else ml.test(a) && _(e, "the stream contains non-printable characters");
2015
2490
  e.result += a;
2016
2491
  }
2017
2492
  }
2018
- function Cn(e, n, r, t) {
2019
- var i, l, o, a;
2020
- for (U.isObject(r) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), o = 0, a = i.length; o < a; o += 1)
2021
- l = i[o], pe.call(n, l) || (dr(n, l, r[l]), t[l] = !0);
2022
- }
2023
- function be(e, n, r, t, i, l, o, a, c) {
2024
- var s, u;
2025
- if (Array.isArray(i))
2026
- for (i = Array.prototype.slice.call(i), s = 0, u = i.length; s < u; s += 1)
2027
- Array.isArray(i[s]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && bn(i[s]) === "[object Object]" && (i[s] = "[object Object]");
2028
- if (typeof i == "object" && bn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), n === null && (n = {}), t === "tag:yaml.org,2002:merge")
2493
+ function $n(e, n, r, i) {
2494
+ var t, l, o, a;
2495
+ for (z.isObject(r) || _(e, "cannot merge mappings; the provided source object is unacceptable"), t = Object.keys(r), o = 0, a = t.length; o < a; o += 1)
2496
+ l = t[o], he.call(n, l) || (br(n, l, r[l]), i[l] = !0);
2497
+ }
2498
+ function Ae(e, n, r, i, t, l, o, a, c) {
2499
+ var f, u;
2500
+ if (Array.isArray(t))
2501
+ for (t = Array.prototype.slice.call(t), f = 0, u = t.length; f < u; f += 1)
2502
+ Array.isArray(t[f]) && _(e, "nested arrays are not supported inside keys"), typeof t == "object" && _n(t[f]) === "[object Object]" && (t[f] = "[object Object]");
2503
+ if (typeof t == "object" && _n(t) === "[object Object]" && (t = "[object Object]"), t = String(t), n === null && (n = {}), i === "tag:yaml.org,2002:merge")
2029
2504
  if (Array.isArray(l))
2030
- for (s = 0, u = l.length; s < u; s += 1)
2031
- Cn(e, n, l[s], r);
2505
+ for (f = 0, u = l.length; f < u; f += 1)
2506
+ $n(e, n, l[f], r);
2032
2507
  else
2033
- Cn(e, n, l, r);
2508
+ $n(e, n, l, r);
2034
2509
  else
2035
- !e.json && !pe.call(r, i) && pe.call(n, i) && (e.line = o || e.line, e.lineStart = a || e.lineStart, e.position = c || e.position, C(e, "duplicated mapping key")), dr(n, i, l), delete r[i];
2510
+ !e.json && !he.call(r, t) && he.call(n, t) && (e.line = o || e.line, e.lineStart = a || e.lineStart, e.position = c || e.position, _(e, "duplicated mapping key")), br(n, t, l), delete r[t];
2036
2511
  return n;
2037
2512
  }
2038
- function on(e) {
2513
+ function an(e) {
2039
2514
  var n;
2040
- n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2515
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2041
2516
  }
2042
- function H(e, n, r) {
2043
- for (var t = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
2044
- for (; xe(i); )
2045
- i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
2046
- if (n && i === 35)
2517
+ function W(e, n, r) {
2518
+ for (var i = 0, t = e.input.charCodeAt(e.position); t !== 0; ) {
2519
+ for (; me(t); )
2520
+ t === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), t = e.input.charCodeAt(++e.position);
2521
+ if (n && t === 35)
2047
2522
  do
2048
- i = e.input.charCodeAt(++e.position);
2049
- while (i !== 10 && i !== 13 && i !== 0);
2050
- if (oe(i))
2051
- for (on(e), i = e.input.charCodeAt(e.position), t++, e.lineIndent = 0; i === 32; )
2052
- e.lineIndent++, i = e.input.charCodeAt(++e.position);
2523
+ t = e.input.charCodeAt(++e.position);
2524
+ while (t !== 10 && t !== 13 && t !== 0);
2525
+ if (le(t))
2526
+ for (an(e), t = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; t === 32; )
2527
+ e.lineIndent++, t = e.input.charCodeAt(++e.position);
2053
2528
  else
2054
2529
  break;
2055
2530
  }
2056
- return r !== -1 && t !== 0 && e.lineIndent < r && Be(e, "deficient indentation"), t;
2531
+ return r !== -1 && i !== 0 && e.lineIndent < r && He(e, "deficient indentation"), i;
2057
2532
  }
2058
- function Ue(e) {
2533
+ function ze(e) {
2059
2534
  var n = e.position, r;
2060
- return r = e.input.charCodeAt(n), !!((r === 45 || r === 46) && r === e.input.charCodeAt(n + 1) && r === e.input.charCodeAt(n + 2) && (n += 3, r = e.input.charCodeAt(n), r === 0 || ee(r)));
2535
+ return r = e.input.charCodeAt(n), !!((r === 45 || r === 46) && r === e.input.charCodeAt(n + 1) && r === e.input.charCodeAt(n + 2) && (n += 3, r = e.input.charCodeAt(n), r === 0 || Q(r)));
2061
2536
  }
2062
- function ln(e, n) {
2063
- n === 1 ? e.result += " " : n > 1 && (e.result += U.repeat(`
2537
+ function cn(e, n) {
2538
+ n === 1 ? e.result += " " : n > 1 && (e.result += z.repeat(`
2064
2539
  `, n - 1));
2065
2540
  }
2066
- function At(e, n, r) {
2067
- var t, i, l, o, a, c, s, u, x = e.kind, p = e.result, f;
2068
- if (f = e.input.charCodeAt(e.position), ee(f) || ve(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ee(i) || r && ve(i)))
2541
+ function wl(e, n, r) {
2542
+ var i, t, l, o, a, c, f, u, d = e.kind, p = e.result, x;
2543
+ if (x = e.input.charCodeAt(e.position), Q(x) || be(x) || x === 35 || x === 38 || x === 42 || x === 33 || x === 124 || x === 62 || x === 39 || x === 34 || x === 37 || x === 64 || x === 96 || (x === 63 || x === 45) && (t = e.input.charCodeAt(e.position + 1), Q(t) || r && be(t)))
2069
2544
  return !1;
2070
- for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1; f !== 0; ) {
2071
- if (f === 58) {
2072
- if (i = e.input.charCodeAt(e.position + 1), ee(i) || r && ve(i))
2545
+ for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1; x !== 0; ) {
2546
+ if (x === 58) {
2547
+ if (t = e.input.charCodeAt(e.position + 1), Q(t) || r && be(t))
2073
2548
  break;
2074
- } else if (f === 35) {
2075
- if (t = e.input.charCodeAt(e.position - 1), ee(t))
2549
+ } else if (x === 35) {
2550
+ if (i = e.input.charCodeAt(e.position - 1), Q(i))
2076
2551
  break;
2077
2552
  } else {
2078
- if (e.position === e.lineStart && Ue(e) || r && ve(f))
2553
+ if (e.position === e.lineStart && ze(e) || r && be(x))
2079
2554
  break;
2080
- if (oe(f))
2081
- if (c = e.line, s = e.lineStart, u = e.lineIndent, H(e, !1, -1), e.lineIndent >= n) {
2082
- a = !0, f = e.input.charCodeAt(e.position);
2555
+ if (le(x))
2556
+ if (c = e.line, f = e.lineStart, u = e.lineIndent, W(e, !1, -1), e.lineIndent >= n) {
2557
+ a = !0, x = e.input.charCodeAt(e.position);
2083
2558
  continue;
2084
2559
  } else {
2085
- e.position = o, e.line = c, e.lineStart = s, e.lineIndent = u;
2560
+ e.position = o, e.line = c, e.lineStart = f, e.lineIndent = u;
2086
2561
  break;
2087
2562
  }
2088
2563
  }
2089
- a && (ue(e, l, o, !1), ln(e, e.line - c), l = o = e.position, a = !1), xe(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
2564
+ a && (pe(e, l, o, !1), cn(e, e.line - c), l = o = e.position, a = !1), me(x) || (o = e.position + 1), x = e.input.charCodeAt(++e.position);
2090
2565
  }
2091
- return ue(e, l, o, !1), e.result ? !0 : (e.kind = x, e.result = p, !1);
2566
+ return pe(e, l, o, !1), e.result ? !0 : (e.kind = d, e.result = p, !1);
2092
2567
  }
2093
- function kt(e, n) {
2094
- var r, t, i;
2568
+ function Cl(e, n) {
2569
+ var r, i, t;
2095
2570
  if (r = e.input.charCodeAt(e.position), r !== 39)
2096
2571
  return !1;
2097
- for (e.kind = "scalar", e.result = "", e.position++, t = i = e.position; (r = e.input.charCodeAt(e.position)) !== 0; )
2572
+ for (e.kind = "scalar", e.result = "", e.position++, i = t = e.position; (r = e.input.charCodeAt(e.position)) !== 0; )
2098
2573
  if (r === 39)
2099
- if (ue(e, t, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39)
2100
- t = e.position, e.position++, i = e.position;
2574
+ if (pe(e, i, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39)
2575
+ i = e.position, e.position++, t = e.position;
2101
2576
  else
2102
2577
  return !0;
2103
- else oe(r) ? (ue(e, t, i, !0), ln(e, H(e, !1, n)), t = i = e.position) : e.position === e.lineStart && Ue(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2104
- C(e, "unexpected end of the stream within a single quoted scalar");
2578
+ else le(r) ? (pe(e, i, t, !0), cn(e, W(e, !1, n)), i = t = e.position) : e.position === e.lineStart && ze(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, t = e.position);
2579
+ _(e, "unexpected end of the stream within a single quoted scalar");
2105
2580
  }
2106
- function Ct(e, n) {
2107
- var r, t, i, l, o, a;
2581
+ function $l(e, n) {
2582
+ var r, i, t, l, o, a;
2108
2583
  if (a = e.input.charCodeAt(e.position), a !== 34)
2109
2584
  return !1;
2110
- for (e.kind = "scalar", e.result = "", e.position++, r = t = e.position; (a = e.input.charCodeAt(e.position)) !== 0; ) {
2585
+ for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (a = e.input.charCodeAt(e.position)) !== 0; ) {
2111
2586
  if (a === 34)
2112
- return ue(e, r, e.position, !0), e.position++, !0;
2587
+ return pe(e, r, e.position, !0), e.position++, !0;
2113
2588
  if (a === 92) {
2114
- if (ue(e, r, e.position, !0), a = e.input.charCodeAt(++e.position), oe(a))
2115
- H(e, !1, n);
2116
- else if (a < 256 && hr[a])
2117
- e.result += xr[a], e.position++;
2118
- else if ((o = gt(a)) > 0) {
2119
- for (i = o, l = 0; i > 0; i--)
2120
- a = e.input.charCodeAt(++e.position), (o = mt(a)) >= 0 ? l = (l << 4) + o : C(e, "expected hexadecimal character");
2121
- e.result += vt(l), e.position++;
2589
+ if (pe(e, r, e.position, !0), a = e.input.charCodeAt(++e.position), le(a))
2590
+ W(e, !1, n);
2591
+ else if (a < 256 && Ar[a])
2592
+ e.result += _r[a], e.position++;
2593
+ else if ((o = vl(a)) > 0) {
2594
+ for (t = o, l = 0; t > 0; t--)
2595
+ a = e.input.charCodeAt(++e.position), (o = kl(a)) >= 0 ? l = (l << 4) + o : _(e, "expected hexadecimal character");
2596
+ e.result += Al(l), e.position++;
2122
2597
  } else
2123
- C(e, "unknown escape sequence");
2124
- r = t = e.position;
2125
- } else oe(a) ? (ue(e, r, t, !0), ln(e, H(e, !1, n)), r = t = e.position) : e.position === e.lineStart && Ue(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, t = e.position);
2598
+ _(e, "unknown escape sequence");
2599
+ r = i = e.position;
2600
+ } else le(a) ? (pe(e, r, i, !0), cn(e, W(e, !1, n)), r = i = e.position) : e.position === e.lineStart && ze(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
2126
2601
  }
2127
- C(e, "unexpected end of the stream within a double quoted scalar");
2602
+ _(e, "unexpected end of the stream within a double quoted scalar");
2128
2603
  }
2129
- function St(e, n) {
2130
- var r = !0, t, i, l, o = e.tag, a, c = e.anchor, s, u, x, p, f, m = /* @__PURE__ */ Object.create(null), y, A, v, b;
2604
+ function Sl(e, n) {
2605
+ var r = !0, i, t, l, o = e.tag, a, c = e.anchor, f, u, d, p, x, m = /* @__PURE__ */ Object.create(null), y, v, k, b;
2131
2606
  if (b = e.input.charCodeAt(e.position), b === 91)
2132
- u = 93, f = !1, a = [];
2607
+ u = 93, x = !1, a = [];
2133
2608
  else if (b === 123)
2134
- u = 125, f = !0, a = {};
2609
+ u = 125, x = !0, a = {};
2135
2610
  else
2136
2611
  return !1;
2137
2612
  for (e.anchor !== null && (e.anchorMap[e.anchor] = a), b = e.input.charCodeAt(++e.position); b !== 0; ) {
2138
- if (H(e, !0, n), b = e.input.charCodeAt(e.position), b === u)
2139
- return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = a, !0;
2140
- r ? b === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), A = y = v = null, x = p = !1, b === 63 && (s = e.input.charCodeAt(e.position + 1), ee(s) && (x = p = !0, e.position++, H(e, !0, n))), t = e.line, i = e.lineStart, l = e.position, Ae(e, n, De, !1, !0), A = e.tag, y = e.result, H(e, !0, n), b = e.input.charCodeAt(e.position), (p || e.line === t) && b === 58 && (x = !0, b = e.input.charCodeAt(++e.position), H(e, !0, n), Ae(e, n, De, !1, !0), v = e.result), f ? be(e, a, m, A, y, v, t, i, l) : x ? a.push(be(e, null, m, A, y, v, t, i, l)) : a.push(y), H(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1;
2613
+ if (W(e, !0, n), b = e.input.charCodeAt(e.position), b === u)
2614
+ return e.position++, e.tag = o, e.anchor = c, e.kind = x ? "mapping" : "sequence", e.result = a, !0;
2615
+ r ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), v = y = k = null, d = p = !1, b === 63 && (f = e.input.charCodeAt(e.position + 1), Q(f) && (d = p = !0, e.position++, W(e, !0, n))), i = e.line, t = e.lineStart, l = e.position, _e(e, n, Ye, !1, !0), v = e.tag, y = e.result, W(e, !0, n), b = e.input.charCodeAt(e.position), (p || e.line === i) && b === 58 && (d = !0, b = e.input.charCodeAt(++e.position), W(e, !0, n), _e(e, n, Ye, !1, !0), k = e.result), x ? Ae(e, a, m, v, y, k, i, t, l) : d ? a.push(Ae(e, null, m, v, y, k, i, t, l)) : a.push(y), W(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1;
2141
2616
  }
2142
- C(e, "unexpected end of the stream within a flow collection");
2143
- }
2144
- function Et(e, n) {
2145
- var r, t, i = ze, l = !1, o = !1, a = n, c = 0, s = !1, u, x;
2146
- if (x = e.input.charCodeAt(e.position), x === 124)
2147
- t = !1;
2148
- else if (x === 62)
2149
- t = !0;
2617
+ _(e, "unexpected end of the stream within a flow collection");
2618
+ }
2619
+ function El(e, n) {
2620
+ var r, i, t = Ge, l = !1, o = !1, a = n, c = 0, f = !1, u, d;
2621
+ if (d = e.input.charCodeAt(e.position), d === 124)
2622
+ i = !1;
2623
+ else if (d === 62)
2624
+ i = !0;
2150
2625
  else
2151
2626
  return !1;
2152
- for (e.kind = "scalar", e.result = ""; x !== 0; )
2153
- if (x = e.input.charCodeAt(++e.position), x === 43 || x === 45)
2154
- ze === i ? i = x === 43 ? vn : pt : C(e, "repeat of a chomping mode identifier");
2155
- else if ((u = yt(x)) >= 0)
2156
- u === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (a = n + u - 1, o = !0);
2627
+ for (e.kind = "scalar", e.result = ""; d !== 0; )
2628
+ if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
2629
+ Ge === t ? t = d === 43 ? An : xl : _(e, "repeat of a chomping mode identifier");
2630
+ else if ((u = bl(d)) >= 0)
2631
+ u === 0 ? _(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? _(e, "repeat of an indentation width identifier") : (a = n + u - 1, o = !0);
2157
2632
  else
2158
2633
  break;
2159
- if (xe(x)) {
2634
+ if (me(d)) {
2160
2635
  do
2161
- x = e.input.charCodeAt(++e.position);
2162
- while (xe(x));
2163
- if (x === 35)
2636
+ d = e.input.charCodeAt(++e.position);
2637
+ while (me(d));
2638
+ if (d === 35)
2164
2639
  do
2165
- x = e.input.charCodeAt(++e.position);
2166
- while (!oe(x) && x !== 0);
2640
+ d = e.input.charCodeAt(++e.position);
2641
+ while (!le(d) && d !== 0);
2167
2642
  }
2168
- for (; x !== 0; ) {
2169
- for (on(e), e.lineIndent = 0, x = e.input.charCodeAt(e.position); (!o || e.lineIndent < a) && x === 32; )
2170
- e.lineIndent++, x = e.input.charCodeAt(++e.position);
2171
- if (!o && e.lineIndent > a && (a = e.lineIndent), oe(x)) {
2643
+ for (; d !== 0; ) {
2644
+ for (an(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < a) && d === 32; )
2645
+ e.lineIndent++, d = e.input.charCodeAt(++e.position);
2646
+ if (!o && e.lineIndent > a && (a = e.lineIndent), le(d)) {
2172
2647
  c++;
2173
2648
  continue;
2174
2649
  }
2175
2650
  if (e.lineIndent < a) {
2176
- i === vn ? e.result += U.repeat(`
2177
- `, l ? 1 + c : c) : i === ze && l && (e.result += `
2651
+ t === An ? e.result += z.repeat(`
2652
+ `, l ? 1 + c : c) : t === Ge && l && (e.result += `
2178
2653
  `);
2179
2654
  break;
2180
2655
  }
2181
- for (t ? xe(x) ? (s = !0, e.result += U.repeat(`
2182
- `, l ? 1 + c : c)) : s ? (s = !1, e.result += U.repeat(`
2183
- `, c + 1)) : c === 0 ? l && (e.result += " ") : e.result += U.repeat(`
2184
- `, c) : e.result += U.repeat(`
2185
- `, l ? 1 + c : c), l = !0, o = !0, c = 0, r = e.position; !oe(x) && x !== 0; )
2186
- x = e.input.charCodeAt(++e.position);
2187
- ue(e, r, e.position, !1);
2656
+ for (i ? me(d) ? (f = !0, e.result += z.repeat(`
2657
+ `, l ? 1 + c : c)) : f ? (f = !1, e.result += z.repeat(`
2658
+ `, c + 1)) : c === 0 ? l && (e.result += " ") : e.result += z.repeat(`
2659
+ `, c) : e.result += z.repeat(`
2660
+ `, l ? 1 + c : c), l = !0, o = !0, c = 0, r = e.position; !le(d) && d !== 0; )
2661
+ d = e.input.charCodeAt(++e.position);
2662
+ pe(e, r, e.position, !1);
2188
2663
  }
2189
2664
  return !0;
2190
2665
  }
2191
2666
  function Sn(e, n) {
2192
- var r, t = e.tag, i = e.anchor, l = [], o, a = !1, c;
2667
+ var r, i = e.tag, t = e.anchor, l = [], o, a = !1, c;
2193
2668
  if (e.firstTabInLine !== -1) return !1;
2194
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !ee(o)))); ) {
2195
- if (a = !0, e.position++, H(e, !0, -1) && e.lineIndent <= n) {
2669
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !Q(o)))); ) {
2670
+ if (a = !0, e.position++, W(e, !0, -1) && e.lineIndent <= n) {
2196
2671
  l.push(null), c = e.input.charCodeAt(e.position);
2197
2672
  continue;
2198
2673
  }
2199
- if (r = e.line, Ae(e, n, fr, !1, !0), l.push(e.result), H(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > n) && c !== 0)
2200
- C(e, "bad indentation of a sequence entry");
2674
+ if (r = e.line, _e(e, n, gr, !1, !0), l.push(e.result), W(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > n) && c !== 0)
2675
+ _(e, "bad indentation of a sequence entry");
2201
2676
  else if (e.lineIndent < n)
2202
2677
  break;
2203
2678
  }
2204
- return a ? (e.tag = t, e.anchor = i, e.kind = "sequence", e.result = l, !0) : !1;
2679
+ return a ? (e.tag = i, e.anchor = t, e.kind = "sequence", e.result = l, !0) : !1;
2205
2680
  }
2206
- function wt(e, n, r) {
2207
- var t, i, l, o, a, c, s = e.tag, u = e.anchor, x = {}, p = /* @__PURE__ */ Object.create(null), f = null, m = null, y = null, A = !1, v = !1, b;
2681
+ function Tl(e, n, r) {
2682
+ var i, t, l, o, a, c, f = e.tag, u = e.anchor, d = {}, p = /* @__PURE__ */ Object.create(null), x = null, m = null, y = null, v = !1, k = !1, b;
2208
2683
  if (e.firstTabInLine !== -1) return !1;
2209
- for (e.anchor !== null && (e.anchorMap[e.anchor] = x), b = e.input.charCodeAt(e.position); b !== 0; ) {
2210
- if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), t = e.input.charCodeAt(e.position + 1), l = e.line, (b === 63 || b === 58) && ee(t))
2211
- b === 63 ? (A && (be(e, x, p, f, m, null, o, a, c), f = m = y = null), v = !0, A = !0, i = !0) : A ? (A = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = t;
2684
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = d), b = e.input.charCodeAt(e.position); b !== 0; ) {
2685
+ if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), l = e.line, (b === 63 || b === 58) && Q(i))
2686
+ b === 63 ? (v && (Ae(e, d, p, x, m, null, o, a, c), x = m = y = null), k = !0, v = !0, t = !0) : v ? (v = !1, t = !0) : _(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = i;
2212
2687
  else {
2213
- if (o = e.line, a = e.lineStart, c = e.position, !Ae(e, r, sr, !1, !0))
2688
+ if (o = e.line, a = e.lineStart, c = e.position, !_e(e, r, yr, !1, !0))
2214
2689
  break;
2215
2690
  if (e.line === l) {
2216
- for (b = e.input.charCodeAt(e.position); xe(b); )
2691
+ for (b = e.input.charCodeAt(e.position); me(b); )
2217
2692
  b = e.input.charCodeAt(++e.position);
2218
2693
  if (b === 58)
2219
- b = e.input.charCodeAt(++e.position), ee(b) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (be(e, x, p, f, m, null, o, a, c), f = m = y = null), v = !0, A = !1, i = !1, f = e.tag, m = e.result;
2220
- else if (v)
2221
- C(e, "can not read an implicit mapping pair; a colon is missed");
2694
+ b = e.input.charCodeAt(++e.position), Q(b) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Ae(e, d, p, x, m, null, o, a, c), x = m = y = null), k = !0, v = !1, t = !1, x = e.tag, m = e.result;
2695
+ else if (k)
2696
+ _(e, "can not read an implicit mapping pair; a colon is missed");
2222
2697
  else
2223
- return e.tag = s, e.anchor = u, !0;
2224
- } else if (v)
2225
- C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2698
+ return e.tag = f, e.anchor = u, !0;
2699
+ } else if (k)
2700
+ _(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2226
2701
  else
2227
- return e.tag = s, e.anchor = u, !0;
2702
+ return e.tag = f, e.anchor = u, !0;
2228
2703
  }
2229
- if ((e.line === l || e.lineIndent > n) && (A && (o = e.line, a = e.lineStart, c = e.position), Ae(e, n, Ye, !0, i) && (A ? m = e.result : y = e.result), A || (be(e, x, p, f, m, y, o, a, c), f = m = y = null), H(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > n) && b !== 0)
2230
- C(e, "bad indentation of a mapping entry");
2704
+ if ((e.line === l || e.lineIndent > n) && (v && (o = e.line, a = e.lineStart, c = e.position), _e(e, n, Be, !0, t) && (v ? m = e.result : y = e.result), v || (Ae(e, d, p, x, m, y, o, a, c), x = m = y = null), W(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > n) && b !== 0)
2705
+ _(e, "bad indentation of a mapping entry");
2231
2706
  else if (e.lineIndent < n)
2232
2707
  break;
2233
2708
  }
2234
- return A && be(e, x, p, f, m, null, o, a, c), v && (e.tag = s, e.anchor = u, e.kind = "mapping", e.result = x), v;
2709
+ return v && Ae(e, d, p, x, m, null, o, a, c), k && (e.tag = f, e.anchor = u, e.kind = "mapping", e.result = d), k;
2235
2710
  }
2236
- function _t(e) {
2237
- var n, r = !1, t = !1, i, l, o;
2711
+ function Ml(e) {
2712
+ var n, r = !1, i = !1, t, l, o;
2238
2713
  if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
2239
- if (e.tag !== null && C(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (r = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (t = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", n = e.position, r) {
2714
+ if (e.tag !== null && _(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (r = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (i = !0, t = "!!", o = e.input.charCodeAt(++e.position)) : t = "!", n = e.position, r) {
2240
2715
  do
2241
2716
  o = e.input.charCodeAt(++e.position);
2242
2717
  while (o !== 0 && o !== 62);
2243
- e.position < e.length ? (l = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : C(e, "unexpected end of the stream within a verbatim tag");
2718
+ e.position < e.length ? (l = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : _(e, "unexpected end of the stream within a verbatim tag");
2244
2719
  } else {
2245
- for (; o !== 0 && !ee(o); )
2246
- o === 33 && (t ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(n - 1, e.position + 1), ur.test(i) || C(e, "named tag handle cannot contain such characters"), t = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
2247
- l = e.input.slice(n, e.position), xt.test(l) && C(e, "tag suffix cannot contain flow indicator characters");
2720
+ for (; o !== 0 && !Q(o); )
2721
+ o === 33 && (i ? _(e, "tag suffix cannot contain exclamation marks") : (t = e.input.slice(n - 1, e.position + 1), kr.test(t) || _(e, "named tag handle cannot contain such characters"), i = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
2722
+ l = e.input.slice(n, e.position), gl.test(l) && _(e, "tag suffix cannot contain flow indicator characters");
2248
2723
  }
2249
- l && !pr.test(l) && C(e, "tag name cannot contain such characters: " + l);
2724
+ l && !vr.test(l) && _(e, "tag name cannot contain such characters: " + l);
2250
2725
  try {
2251
2726
  l = decodeURIComponent(l);
2252
2727
  } catch {
2253
- C(e, "tag name is malformed: " + l);
2728
+ _(e, "tag name is malformed: " + l);
2254
2729
  }
2255
- return r ? e.tag = l : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + l : i === "!" ? e.tag = "!" + l : i === "!!" ? e.tag = "tag:yaml.org,2002:" + l : C(e, 'undeclared tag handle "' + i + '"'), !0;
2730
+ return r ? e.tag = l : he.call(e.tagMap, t) ? e.tag = e.tagMap[t] + l : t === "!" ? e.tag = "!" + l : t === "!!" ? e.tag = "tag:yaml.org,2002:" + l : _(e, 'undeclared tag handle "' + t + '"'), !0;
2256
2731
  }
2257
- function Tt(e) {
2732
+ function jl(e) {
2258
2733
  var n, r;
2259
2734
  if (r = e.input.charCodeAt(e.position), r !== 38) return !1;
2260
- for (e.anchor !== null && C(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ee(r) && !ve(r); )
2735
+ for (e.anchor !== null && _(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !Q(r) && !be(r); )
2261
2736
  r = e.input.charCodeAt(++e.position);
2262
- return e.position === n && C(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2263
- }
2264
- function $t(e) {
2265
- var n, r, t;
2266
- if (t = e.input.charCodeAt(e.position), t !== 42) return !1;
2267
- for (t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ee(t) && !ve(t); )
2268
- t = e.input.charCodeAt(++e.position);
2269
- return e.position === n && C(e, "name of an alias node must contain at least one character"), r = e.input.slice(n, e.position), pe.call(e.anchorMap, r) || C(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], H(e, !0, -1), !0;
2270
- }
2271
- function Ae(e, n, r, t, i) {
2272
- var l, o, a, c = 1, s = !1, u = !1, x, p, f, m, y, A;
2273
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a = Ye === r || fr === r, t && H(e, !0, -1) && (s = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1)
2274
- for (; _t(e) || Tt(e); )
2275
- H(e, !0, -1) ? (s = !0, a = l, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : a = !1;
2276
- if (a && (a = s || i), (c === 1 || Ye === r) && (De === r || sr === r ? y = n : y = n + 1, A = e.position - e.lineStart, c === 1 ? a && (Sn(e, A) || wt(e, A, y)) || St(e, y) ? u = !0 : (o && Et(e, y) || kt(e, y) || Ct(e, y) ? u = !0 : $t(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : At(e, y, De === r) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = a && Sn(e, A))), e.tag === null)
2737
+ return e.position === n && _(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2738
+ }
2739
+ function Ol(e) {
2740
+ var n, r, i;
2741
+ if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2742
+ for (i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !Q(i) && !be(i); )
2743
+ i = e.input.charCodeAt(++e.position);
2744
+ return e.position === n && _(e, "name of an alias node must contain at least one character"), r = e.input.slice(n, e.position), he.call(e.anchorMap, r) || _(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], W(e, !0, -1), !0;
2745
+ }
2746
+ function _e(e, n, r, i, t) {
2747
+ var l, o, a, c = 1, f = !1, u = !1, d, p, x, m, y, v;
2748
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a = Be === r || gr === r, i && W(e, !0, -1) && (f = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1)
2749
+ for (; Ml(e) || jl(e); )
2750
+ W(e, !0, -1) ? (f = !0, a = l, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : a = !1;
2751
+ if (a && (a = f || t), (c === 1 || Be === r) && (Ye === r || yr === r ? y = n : y = n + 1, v = e.position - e.lineStart, c === 1 ? a && (Sn(e, v) || Tl(e, v, y)) || Sl(e, y) ? u = !0 : (o && El(e, y) || Cl(e, y) || $l(e, y) ? u = !0 : Ol(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : wl(e, y, Ye === r) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = a && Sn(e, v))), e.tag === null)
2277
2752
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2278
2753
  else if (e.tag === "?") {
2279
- for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), x = 0, p = e.implicitTypes.length; x < p; x += 1)
2280
- if (m = e.implicitTypes[x], m.resolve(e.result)) {
2754
+ for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, p = e.implicitTypes.length; d < p; d += 1)
2755
+ if (m = e.implicitTypes[d], m.resolve(e.result)) {
2281
2756
  e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2282
2757
  break;
2283
2758
  }
2284
2759
  } else if (e.tag !== "!") {
2285
- if (pe.call(e.typeMap[e.kind || "fallback"], e.tag))
2760
+ if (he.call(e.typeMap[e.kind || "fallback"], e.tag))
2286
2761
  m = e.typeMap[e.kind || "fallback"][e.tag];
2287
2762
  else
2288
- for (m = null, f = e.typeMap.multi[e.kind || "fallback"], x = 0, p = f.length; x < p; x += 1)
2289
- if (e.tag.slice(0, f[x].tag.length) === f[x].tag) {
2290
- m = f[x];
2763
+ for (m = null, x = e.typeMap.multi[e.kind || "fallback"], d = 0, p = x.length; d < p; d += 1)
2764
+ if (e.tag.slice(0, x[d].tag.length) === x[d].tag) {
2765
+ m = x[d];
2291
2766
  break;
2292
2767
  }
2293
- m || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && C(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)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2768
+ m || _(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && _(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)) : _(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2294
2769
  }
2295
2770
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
2296
2771
  }
2297
- function Ot(e) {
2298
- var n = e.position, r, t, i, l = !1, o;
2299
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (H(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2300
- for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !ee(o); )
2772
+ function Nl(e) {
2773
+ var n = e.position, r, i, t, l = !1, o;
2774
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2775
+ for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !Q(o); )
2301
2776
  o = e.input.charCodeAt(++e.position);
2302
- for (t = e.input.slice(r, e.position), i = [], t.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
2303
- for (; xe(o); )
2777
+ for (i = e.input.slice(r, e.position), t = [], i.length < 1 && _(e, "directive name must not be less than one character in length"); o !== 0; ) {
2778
+ for (; me(o); )
2304
2779
  o = e.input.charCodeAt(++e.position);
2305
2780
  if (o === 35) {
2306
2781
  do
2307
2782
  o = e.input.charCodeAt(++e.position);
2308
- while (o !== 0 && !oe(o));
2783
+ while (o !== 0 && !le(o));
2309
2784
  break;
2310
2785
  }
2311
- if (oe(o)) break;
2312
- for (r = e.position; o !== 0 && !ee(o); )
2786
+ if (le(o)) break;
2787
+ for (r = e.position; o !== 0 && !Q(o); )
2313
2788
  o = e.input.charCodeAt(++e.position);
2314
- i.push(e.input.slice(r, e.position));
2789
+ t.push(e.input.slice(r, e.position));
2315
2790
  }
2316
- o !== 0 && on(e), pe.call(kn, t) ? kn[t](e, t, i) : Be(e, 'unknown document directive "' + t + '"');
2791
+ o !== 0 && an(e), he.call(Cn, i) ? Cn[i](e, i, t) : He(e, 'unknown document directive "' + i + '"');
2317
2792
  }
2318
- if (H(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, H(e, !0, -1)) : l && C(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, Ye, !1, !0), H(e, !0, -1), e.checkLineBreaks && ht.test(e.input.slice(n, e.position)) && Be(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ue(e)) {
2319
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, H(e, !0, -1));
2793
+ if (W(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, W(e, !0, -1)) : l && _(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, Be, !1, !0), W(e, !0, -1), e.checkLineBreaks && yl.test(e.input.slice(n, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ze(e)) {
2794
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
2320
2795
  return;
2321
2796
  }
2322
2797
  if (e.position < e.length - 1)
2323
- C(e, "end of the stream or a document separator is expected");
2798
+ _(e, "end of the stream or a document separator is expected");
2324
2799
  else
2325
2800
  return;
2326
2801
  }
2327
- function gr(e, n) {
2802
+ function Cr(e, n) {
2328
2803
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2329
2804
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2330
- var r = new bt(e, n), t = e.indexOf("\0");
2331
- for (t !== -1 && (r.position = t, C(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; )
2805
+ var r = new _l(e, n), i = e.indexOf("\0");
2806
+ for (i !== -1 && (r.position = i, _(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; )
2332
2807
  r.lineIndent += 1, r.position += 1;
2333
2808
  for (; r.position < r.length - 1; )
2334
- Ot(r);
2809
+ Nl(r);
2335
2810
  return r.documents;
2336
2811
  }
2337
- function jt(e, n, r) {
2812
+ function Ll(e, n, r) {
2338
2813
  n !== null && typeof n == "object" && typeof r > "u" && (r = n, n = null);
2339
- var t = gr(e, r);
2814
+ var i = Cr(e, r);
2340
2815
  if (typeof n != "function")
2341
- return t;
2342
- for (var i = 0, l = t.length; i < l; i += 1)
2343
- n(t[i]);
2816
+ return i;
2817
+ for (var t = 0, l = i.length; t < l; t += 1)
2818
+ n(i[t]);
2344
2819
  }
2345
- function Ft(e, n) {
2346
- var r = gr(e, n);
2820
+ function Fl(e, n) {
2821
+ var r = Cr(e, n);
2347
2822
  if (r.length !== 0) {
2348
2823
  if (r.length === 1)
2349
2824
  return r[0];
2350
- throw new Z("expected a single document in the stream, but found more");
2825
+ throw new J("expected a single document in the stream, but found more");
2351
2826
  }
2352
2827
  }
2353
- var Lt = jt, Rt = Ft, yr = {
2354
- loadAll: Lt,
2355
- load: Rt
2356
- }, vr = Object.prototype.toString, br = Object.prototype.hasOwnProperty, an = 65279, It = 9, $e = 10, Mt = 13, Nt = 32, Pt = 33, Dt = 34, Ke = 35, Yt = 37, Bt = 38, Wt = 39, Ht = 42, Ar = 44, Ut = 45, We = 58, Xt = 61, Gt = 62, zt = 63, qt = 64, kr = 91, Cr = 93, Kt = 96, Sr = 123, Vt = 124, Er = 125, K = {};
2357
- K[0] = "\\0";
2358
- K[7] = "\\a";
2359
- K[8] = "\\b";
2360
- K[9] = "\\t";
2361
- K[10] = "\\n";
2362
- K[11] = "\\v";
2363
- K[12] = "\\f";
2364
- K[13] = "\\r";
2365
- K[27] = "\\e";
2366
- K[34] = '\\"';
2367
- K[92] = "\\\\";
2368
- K[133] = "\\N";
2369
- K[160] = "\\_";
2370
- K[8232] = "\\L";
2371
- K[8233] = "\\P";
2372
- var Zt = [
2828
+ var Il = Ll, Rl = Fl, $r = {
2829
+ loadAll: Il,
2830
+ load: Rl
2831
+ }, Sr = Object.prototype.toString, Er = Object.prototype.hasOwnProperty, sn = 65279, Pl = 9, Me = 10, Dl = 13, Yl = 32, Bl = 33, Hl = 34, Ze = 35, Wl = 37, Ul = 38, zl = 39, ql = 42, Tr = 44, Xl = 45, We = 58, Gl = 61, Kl = 62, Vl = 63, Zl = 64, Mr = 91, jr = 93, Jl = 96, Or = 123, Ql = 124, Nr = 125, V = {};
2832
+ V[0] = "\\0";
2833
+ V[7] = "\\a";
2834
+ V[8] = "\\b";
2835
+ V[9] = "\\t";
2836
+ V[10] = "\\n";
2837
+ V[11] = "\\v";
2838
+ V[12] = "\\f";
2839
+ V[13] = "\\r";
2840
+ V[27] = "\\e";
2841
+ V[34] = '\\"';
2842
+ V[92] = "\\\\";
2843
+ V[133] = "\\N";
2844
+ V[160] = "\\_";
2845
+ V[8232] = "\\L";
2846
+ V[8233] = "\\P";
2847
+ var ea = [
2373
2848
  "y",
2374
2849
  "Y",
2375
2850
  "yes",
@@ -2386,315 +2861,315 @@ var Zt = [
2386
2861
  "off",
2387
2862
  "Off",
2388
2863
  "OFF"
2389
- ], Jt = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2390
- function Qt(e, n) {
2391
- var r, t, i, l, o, a, c;
2864
+ ], na = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2865
+ function ra(e, n) {
2866
+ var r, i, t, l, o, a, c;
2392
2867
  if (n === null) return {};
2393
- for (r = {}, t = Object.keys(n), i = 0, l = t.length; i < l; i += 1)
2394
- o = t[i], a = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && br.call(c.styleAliases, a) && (a = c.styleAliases[a]), r[o] = a;
2868
+ for (r = {}, i = Object.keys(n), t = 0, l = i.length; t < l; t += 1)
2869
+ o = i[t], a = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Er.call(c.styleAliases, a) && (a = c.styleAliases[a]), r[o] = a;
2395
2870
  return r;
2396
2871
  }
2397
- function eo(e) {
2398
- var n, r, t;
2872
+ function ta(e) {
2873
+ var n, r, i;
2399
2874
  if (n = e.toString(16).toUpperCase(), e <= 255)
2400
- r = "x", t = 2;
2875
+ r = "x", i = 2;
2401
2876
  else if (e <= 65535)
2402
- r = "u", t = 4;
2877
+ r = "u", i = 4;
2403
2878
  else if (e <= 4294967295)
2404
- r = "U", t = 8;
2879
+ r = "U", i = 8;
2405
2880
  else
2406
- throw new Z("code point within a string may not be greater than 0xFFFFFFFF");
2407
- return "\\" + r + U.repeat("0", t - n.length) + n;
2881
+ throw new J("code point within a string may not be greater than 0xFFFFFFFF");
2882
+ return "\\" + r + z.repeat("0", i - n.length) + n;
2408
2883
  }
2409
- var no = 1, Oe = 2;
2410
- function ro(e) {
2411
- this.schema = e.schema || tn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = U.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Qt(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 === '"' ? Oe : no, 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;
2884
+ var ia = 1, je = 2;
2885
+ function oa(e) {
2886
+ this.schema = e.schema || ln, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ra(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 === '"' ? je : ia, 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;
2412
2887
  }
2413
2888
  function En(e, n) {
2414
- for (var r = U.repeat(" ", n), t = 0, i = -1, l = "", o, a = e.length; t < a; )
2415
- i = e.indexOf(`
2416
- `, t), i === -1 ? (o = e.slice(t), t = a) : (o = e.slice(t, i + 1), t = i + 1), o.length && o !== `
2889
+ for (var r = z.repeat(" ", n), i = 0, t = -1, l = "", o, a = e.length; i < a; )
2890
+ t = e.indexOf(`
2891
+ `, i), t === -1 ? (o = e.slice(i), i = a) : (o = e.slice(i, t + 1), i = t + 1), o.length && o !== `
2417
2892
  ` && (l += r), l += o;
2418
2893
  return l;
2419
2894
  }
2420
- function Ve(e, n) {
2895
+ function Je(e, n) {
2421
2896
  return `
2422
- ` + U.repeat(" ", e.indent * n);
2897
+ ` + z.repeat(" ", e.indent * n);
2423
2898
  }
2424
- function io(e, n) {
2425
- var r, t, i;
2426
- for (r = 0, t = e.implicitTypes.length; r < t; r += 1)
2427
- if (i = e.implicitTypes[r], i.resolve(n))
2899
+ function la(e, n) {
2900
+ var r, i, t;
2901
+ for (r = 0, i = e.implicitTypes.length; r < i; r += 1)
2902
+ if (t = e.implicitTypes[r], t.resolve(n))
2428
2903
  return !0;
2429
2904
  return !1;
2430
2905
  }
2431
- function He(e) {
2432
- return e === Nt || e === It;
2906
+ function Ue(e) {
2907
+ return e === Yl || e === Pl;
2433
2908
  }
2434
- function je(e) {
2435
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== an || 65536 <= e && e <= 1114111;
2909
+ function Oe(e) {
2910
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== sn || 65536 <= e && e <= 1114111;
2436
2911
  }
2437
- function wn(e) {
2438
- return je(e) && e !== an && e !== Mt && e !== $e;
2912
+ function Tn(e) {
2913
+ return Oe(e) && e !== sn && e !== Dl && e !== Me;
2439
2914
  }
2440
- function _n(e, n, r) {
2441
- var t = wn(e), i = t && !He(e);
2915
+ function Mn(e, n, r) {
2916
+ var i = Tn(e), t = i && !Ue(e);
2442
2917
  return (
2443
2918
  // ns-plain-safe
2444
2919
  (r ? (
2445
2920
  // c = flow-in
2446
- t
2447
- ) : t && e !== Ar && e !== kr && e !== Cr && e !== Sr && e !== Er) && e !== Ke && !(n === We && !i) || wn(n) && !He(n) && e === Ke || n === We && i
2921
+ i
2922
+ ) : i && e !== Tr && e !== Mr && e !== jr && e !== Or && e !== Nr) && e !== Ze && !(n === We && !t) || Tn(n) && !Ue(n) && e === Ze || n === We && t
2448
2923
  );
2449
2924
  }
2450
- function to(e) {
2451
- return je(e) && e !== an && !He(e) && e !== Ut && e !== zt && e !== We && e !== Ar && e !== kr && e !== Cr && e !== Sr && e !== Er && e !== Ke && e !== Bt && e !== Ht && e !== Pt && e !== Vt && e !== Xt && e !== Gt && e !== Wt && e !== Dt && e !== Yt && e !== qt && e !== Kt;
2925
+ function aa(e) {
2926
+ return Oe(e) && e !== sn && !Ue(e) && e !== Xl && e !== Vl && e !== We && e !== Tr && e !== Mr && e !== jr && e !== Or && e !== Nr && e !== Ze && e !== Ul && e !== ql && e !== Bl && e !== Ql && e !== Gl && e !== Kl && e !== zl && e !== Hl && e !== Wl && e !== Zl && e !== Jl;
2452
2927
  }
2453
- function oo(e) {
2454
- return !He(e) && e !== We;
2928
+ function ca(e) {
2929
+ return !Ue(e) && e !== We;
2455
2930
  }
2456
- function _e(e, n) {
2457
- var r = e.charCodeAt(n), t;
2458
- return r >= 55296 && r <= 56319 && n + 1 < e.length && (t = e.charCodeAt(n + 1), t >= 56320 && t <= 57343) ? (r - 55296) * 1024 + t - 56320 + 65536 : r;
2931
+ function Ee(e, n) {
2932
+ var r = e.charCodeAt(n), i;
2933
+ return r >= 55296 && r <= 56319 && n + 1 < e.length && (i = e.charCodeAt(n + 1), i >= 56320 && i <= 57343) ? (r - 55296) * 1024 + i - 56320 + 65536 : r;
2459
2934
  }
2460
- function wr(e) {
2935
+ function Lr(e) {
2461
2936
  var n = /^\n* /;
2462
2937
  return n.test(e);
2463
2938
  }
2464
- var _r = 1, Ze = 2, Tr = 3, $r = 4, ye = 5;
2465
- function lo(e, n, r, t, i, l, o, a) {
2466
- var c, s = 0, u = null, x = !1, p = !1, f = t !== -1, m = -1, y = to(_e(e, 0)) && oo(_e(e, e.length - 1));
2939
+ var Fr = 1, Qe = 2, Ir = 3, Rr = 4, ve = 5;
2940
+ function sa(e, n, r, i, t, l, o, a) {
2941
+ var c, f = 0, u = null, d = !1, p = !1, x = i !== -1, m = -1, y = aa(Ee(e, 0)) && ca(Ee(e, e.length - 1));
2467
2942
  if (n || o)
2468
- for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
2469
- if (s = _e(e, c), !je(s))
2470
- return ye;
2471
- y = y && _n(s, u, a), u = s;
2943
+ for (c = 0; c < e.length; f >= 65536 ? c += 2 : c++) {
2944
+ if (f = Ee(e, c), !Oe(f))
2945
+ return ve;
2946
+ y = y && Mn(f, u, a), u = f;
2472
2947
  }
2473
2948
  else {
2474
- for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
2475
- if (s = _e(e, c), s === $e)
2476
- x = !0, f && (p = p || // Foldable line = too long, and not more-indented.
2477
- c - m - 1 > t && e[m + 1] !== " ", m = c);
2478
- else if (!je(s))
2479
- return ye;
2480
- y = y && _n(s, u, a), u = s;
2481
- }
2482
- p = p || f && c - m - 1 > t && e[m + 1] !== " ";
2949
+ for (c = 0; c < e.length; f >= 65536 ? c += 2 : c++) {
2950
+ if (f = Ee(e, c), f === Me)
2951
+ d = !0, x && (p = p || // Foldable line = too long, and not more-indented.
2952
+ c - m - 1 > i && e[m + 1] !== " ", m = c);
2953
+ else if (!Oe(f))
2954
+ return ve;
2955
+ y = y && Mn(f, u, a), u = f;
2956
+ }
2957
+ p = p || x && c - m - 1 > i && e[m + 1] !== " ";
2483
2958
  }
2484
- return !x && !p ? y && !o && !i(e) ? _r : l === Oe ? ye : Ze : r > 9 && wr(e) ? ye : o ? l === Oe ? ye : Ze : p ? $r : Tr;
2959
+ return !d && !p ? y && !o && !t(e) ? Fr : l === je ? ve : Qe : r > 9 && Lr(e) ? ve : o ? l === je ? ve : Qe : p ? Rr : Ir;
2485
2960
  }
2486
- function ao(e, n, r, t, i) {
2961
+ function fa(e, n, r, i, t) {
2487
2962
  e.dump = (function() {
2488
2963
  if (n.length === 0)
2489
- return e.quotingType === Oe ? '""' : "''";
2490
- if (!e.noCompatMode && (Zt.indexOf(n) !== -1 || Jt.test(n)))
2491
- return e.quotingType === Oe ? '"' + n + '"' : "'" + n + "'";
2492
- var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a = t || e.flowLevel > -1 && r >= e.flowLevel;
2493
- function c(s) {
2494
- return io(e, s);
2495
- }
2496
- switch (lo(
2964
+ return e.quotingType === je ? '""' : "''";
2965
+ if (!e.noCompatMode && (ea.indexOf(n) !== -1 || na.test(n)))
2966
+ return e.quotingType === je ? '"' + n + '"' : "'" + n + "'";
2967
+ var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a = i || e.flowLevel > -1 && r >= e.flowLevel;
2968
+ function c(f) {
2969
+ return la(e, f);
2970
+ }
2971
+ switch (sa(
2497
2972
  n,
2498
2973
  a,
2499
2974
  e.indent,
2500
2975
  o,
2501
2976
  c,
2502
2977
  e.quotingType,
2503
- e.forceQuotes && !t,
2504
- i
2978
+ e.forceQuotes && !i,
2979
+ t
2505
2980
  )) {
2506
- case _r:
2981
+ case Fr:
2507
2982
  return n;
2508
- case Ze:
2983
+ case Qe:
2509
2984
  return "'" + n.replace(/'/g, "''") + "'";
2510
- case Tr:
2511
- return "|" + Tn(n, e.indent) + $n(En(n, l));
2512
- case $r:
2513
- return ">" + Tn(n, e.indent) + $n(En(co(n, o), l));
2514
- case ye:
2515
- return '"' + so(n) + '"';
2985
+ case Ir:
2986
+ return "|" + jn(n, e.indent) + On(En(n, l));
2987
+ case Rr:
2988
+ return ">" + jn(n, e.indent) + On(En(ua(n, o), l));
2989
+ case ve:
2990
+ return '"' + pa(n) + '"';
2516
2991
  default:
2517
- throw new Z("impossible error: invalid scalar style");
2992
+ throw new J("impossible error: invalid scalar style");
2518
2993
  }
2519
2994
  })();
2520
2995
  }
2521
- function Tn(e, n) {
2522
- var r = wr(e) ? String(n) : "", t = e[e.length - 1] === `
2523
- `, i = t && (e[e.length - 2] === `
2996
+ function jn(e, n) {
2997
+ var r = Lr(e) ? String(n) : "", i = e[e.length - 1] === `
2998
+ `, t = i && (e[e.length - 2] === `
2524
2999
  ` || e === `
2525
- `), l = i ? "+" : t ? "" : "-";
3000
+ `), l = t ? "+" : i ? "" : "-";
2526
3001
  return r + l + `
2527
3002
  `;
2528
3003
  }
2529
- function $n(e) {
3004
+ function On(e) {
2530
3005
  return e[e.length - 1] === `
2531
3006
  ` ? e.slice(0, -1) : e;
2532
3007
  }
2533
- function co(e, n) {
2534
- for (var r = /(\n+)([^\n]*)/g, t = (function() {
2535
- var s = e.indexOf(`
3008
+ function ua(e, n) {
3009
+ for (var r = /(\n+)([^\n]*)/g, i = (function() {
3010
+ var f = e.indexOf(`
2536
3011
  `);
2537
- return s = s !== -1 ? s : e.length, r.lastIndex = s, On(e.slice(0, s), n);
2538
- })(), i = e[0] === `
3012
+ return f = f !== -1 ? f : e.length, r.lastIndex = f, Nn(e.slice(0, f), n);
3013
+ })(), t = e[0] === `
2539
3014
  ` || e[0] === " ", l, o; o = r.exec(e); ) {
2540
3015
  var a = o[1], c = o[2];
2541
- l = c[0] === " ", t += a + (!i && !l && c !== "" ? `
2542
- ` : "") + On(c, n), i = l;
3016
+ l = c[0] === " ", i += a + (!t && !l && c !== "" ? `
3017
+ ` : "") + Nn(c, n), t = l;
2543
3018
  }
2544
- return t;
3019
+ return i;
2545
3020
  }
2546
- function On(e, n) {
3021
+ function Nn(e, n) {
2547
3022
  if (e === "" || e[0] === " ") return e;
2548
- for (var r = / [^ ]/g, t, i = 0, l, o = 0, a = 0, c = ""; t = r.exec(e); )
2549
- a = t.index, a - i > n && (l = o > i ? o : a, c += `
2550
- ` + e.slice(i, l), i = l + 1), o = a;
3023
+ for (var r = / [^ ]/g, i, t = 0, l, o = 0, a = 0, c = ""; i = r.exec(e); )
3024
+ a = i.index, a - t > n && (l = o > t ? o : a, c += `
3025
+ ` + e.slice(t, l), t = l + 1), o = a;
2551
3026
  return c += `
2552
- `, e.length - i > n && o > i ? c += e.slice(i, o) + `
2553
- ` + e.slice(o + 1) : c += e.slice(i), c.slice(1);
3027
+ `, e.length - t > n && o > t ? c += e.slice(t, o) + `
3028
+ ` + e.slice(o + 1) : c += e.slice(t), c.slice(1);
2554
3029
  }
2555
- function so(e) {
2556
- for (var n = "", r = 0, t, i = 0; i < e.length; r >= 65536 ? i += 2 : i++)
2557
- r = _e(e, i), t = K[r], !t && je(r) ? (n += e[i], r >= 65536 && (n += e[i + 1])) : n += t || eo(r);
3030
+ function pa(e) {
3031
+ for (var n = "", r = 0, i, t = 0; t < e.length; r >= 65536 ? t += 2 : t++)
3032
+ r = Ee(e, t), i = V[r], !i && Oe(r) ? (n += e[t], r >= 65536 && (n += e[t + 1])) : n += i || ta(r);
2558
3033
  return n;
2559
3034
  }
2560
- function fo(e, n, r) {
2561
- var t = "", i = e.tag, l, o, a;
3035
+ function ha(e, n, r) {
3036
+ var i = "", t = e.tag, l, o, a;
2562
3037
  for (l = 0, o = r.length; l < o; l += 1)
2563
- a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (ae(e, n, a, !1, !1) || typeof a > "u" && ae(e, n, null, !1, !1)) && (t !== "" && (t += "," + (e.condenseFlow ? "" : " ")), t += e.dump);
2564
- e.tag = i, e.dump = "[" + t + "]";
3038
+ a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (ce(e, n, a, !1, !1) || typeof a > "u" && ce(e, n, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
3039
+ e.tag = t, e.dump = "[" + i + "]";
2565
3040
  }
2566
- function jn(e, n, r, t) {
2567
- var i = "", l = e.tag, o, a, c;
3041
+ function Ln(e, n, r, i) {
3042
+ var t = "", l = e.tag, o, a, c;
2568
3043
  for (o = 0, a = r.length; o < a; o += 1)
2569
- c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (ae(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && ae(e, n + 1, null, !0, !0, !1, !0)) && ((!t || i !== "") && (i += Ve(e, n)), e.dump && $e === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2570
- e.tag = l, e.dump = i || "[]";
3044
+ c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (ce(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && ce(e, n + 1, null, !0, !0, !1, !0)) && ((!i || t !== "") && (t += Je(e, n)), e.dump && Me === e.dump.charCodeAt(0) ? t += "-" : t += "- ", t += e.dump);
3045
+ e.tag = l, e.dump = t || "[]";
2571
3046
  }
2572
- function uo(e, n, r) {
2573
- var t = "", i = e.tag, l = Object.keys(r), o, a, c, s, u;
3047
+ function da(e, n, r) {
3048
+ var i = "", t = e.tag, l = Object.keys(r), o, a, c, f, u;
2574
3049
  for (o = 0, a = l.length; o < a; o += 1)
2575
- u = "", t !== "" && (u += ", "), e.condenseFlow && (u += '"'), c = l[o], s = r[c], e.replacer && (s = e.replacer.call(r, c, s)), ae(e, n, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ae(e, n, s, !1, !1) && (u += e.dump, t += u));
2576
- e.tag = i, e.dump = "{" + t + "}";
3050
+ u = "", i !== "" && (u += ", "), e.condenseFlow && (u += '"'), c = l[o], f = r[c], e.replacer && (f = e.replacer.call(r, c, f)), ce(e, n, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ce(e, n, f, !1, !1) && (u += e.dump, i += u));
3051
+ e.tag = t, e.dump = "{" + i + "}";
2577
3052
  }
2578
- function po(e, n, r, t) {
2579
- var i = "", l = e.tag, o = Object.keys(r), a, c, s, u, x, p;
3053
+ function xa(e, n, r, i) {
3054
+ var t = "", l = e.tag, o = Object.keys(r), a, c, f, u, d, p;
2580
3055
  if (e.sortKeys === !0)
2581
3056
  o.sort();
2582
3057
  else if (typeof e.sortKeys == "function")
2583
3058
  o.sort(e.sortKeys);
2584
3059
  else if (e.sortKeys)
2585
- throw new Z("sortKeys must be a boolean or a function");
3060
+ throw new J("sortKeys must be a boolean or a function");
2586
3061
  for (a = 0, c = o.length; a < c; a += 1)
2587
- p = "", (!t || i !== "") && (p += Ve(e, n)), s = o[a], u = r[s], e.replacer && (u = e.replacer.call(r, s, u)), ae(e, n + 1, s, !0, !0, !0) && (x = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, x && (e.dump && $e === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, x && (p += Ve(e, n)), ae(e, n + 1, u, !0, x) && (e.dump && $e === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, i += p));
2588
- e.tag = l, e.dump = i || "{}";
3062
+ p = "", (!i || t !== "") && (p += Je(e, n)), f = o[a], u = r[f], e.replacer && (u = e.replacer.call(r, f, u)), ce(e, n + 1, f, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Me === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, d && (p += Je(e, n)), ce(e, n + 1, u, !0, d) && (e.dump && Me === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, t += p));
3063
+ e.tag = l, e.dump = t || "{}";
2589
3064
  }
2590
3065
  function Fn(e, n, r) {
2591
- var t, i, l, o, a, c;
2592
- for (i = r ? e.explicitTypes : e.implicitTypes, l = 0, o = i.length; l < o; l += 1)
2593
- if (a = i[l], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof n == "object" && n instanceof a.instanceOf) && (!a.predicate || a.predicate(n))) {
3066
+ var i, t, l, o, a, c;
3067
+ for (t = r ? e.explicitTypes : e.implicitTypes, l = 0, o = t.length; l < o; l += 1)
3068
+ if (a = t[l], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof n == "object" && n instanceof a.instanceOf) && (!a.predicate || a.predicate(n))) {
2594
3069
  if (r ? a.multi && a.representName ? e.tag = a.representName(n) : e.tag = a.tag : e.tag = "?", a.represent) {
2595
- if (c = e.styleMap[a.tag] || a.defaultStyle, vr.call(a.represent) === "[object Function]")
2596
- t = a.represent(n, c);
2597
- else if (br.call(a.represent, c))
2598
- t = a.represent[c](n, c);
3070
+ if (c = e.styleMap[a.tag] || a.defaultStyle, Sr.call(a.represent) === "[object Function]")
3071
+ i = a.represent(n, c);
3072
+ else if (Er.call(a.represent, c))
3073
+ i = a.represent[c](n, c);
2599
3074
  else
2600
- throw new Z("!<" + a.tag + '> tag resolver accepts not "' + c + '" style');
2601
- e.dump = t;
3075
+ throw new J("!<" + a.tag + '> tag resolver accepts not "' + c + '" style');
3076
+ e.dump = i;
2602
3077
  }
2603
3078
  return !0;
2604
3079
  }
2605
3080
  return !1;
2606
3081
  }
2607
- function ae(e, n, r, t, i, l, o) {
3082
+ function ce(e, n, r, i, t, l, o) {
2608
3083
  e.tag = null, e.dump = r, Fn(e, r, !1) || Fn(e, r, !0);
2609
- var a = vr.call(e.dump), c = t, s;
2610
- t && (t = e.flowLevel < 0 || e.flowLevel > n);
2611
- var u = a === "[object Object]" || a === "[object Array]", x, p;
2612
- if (u && (x = e.duplicates.indexOf(r), p = x !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (i = !1), p && e.usedDuplicates[x])
2613
- e.dump = "*ref_" + x;
3084
+ var a = Sr.call(e.dump), c = i, f;
3085
+ i && (i = e.flowLevel < 0 || e.flowLevel > n);
3086
+ var u = a === "[object Object]" || a === "[object Array]", d, p;
3087
+ if (u && (d = e.duplicates.indexOf(r), p = d !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (t = !1), p && e.usedDuplicates[d])
3088
+ e.dump = "*ref_" + d;
2614
3089
  else {
2615
- if (u && p && !e.usedDuplicates[x] && (e.usedDuplicates[x] = !0), a === "[object Object]")
2616
- t && Object.keys(e.dump).length !== 0 ? (po(e, n, e.dump, i), p && (e.dump = "&ref_" + x + e.dump)) : (uo(e, n, e.dump), p && (e.dump = "&ref_" + x + " " + e.dump));
3090
+ if (u && p && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), a === "[object Object]")
3091
+ i && Object.keys(e.dump).length !== 0 ? (xa(e, n, e.dump, t), p && (e.dump = "&ref_" + d + e.dump)) : (da(e, n, e.dump), p && (e.dump = "&ref_" + d + " " + e.dump));
2617
3092
  else if (a === "[object Array]")
2618
- t && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? jn(e, n - 1, e.dump, i) : jn(e, n, e.dump, i), p && (e.dump = "&ref_" + x + e.dump)) : (fo(e, n, e.dump), p && (e.dump = "&ref_" + x + " " + e.dump));
3093
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ln(e, n - 1, e.dump, t) : Ln(e, n, e.dump, t), p && (e.dump = "&ref_" + d + e.dump)) : (ha(e, n, e.dump), p && (e.dump = "&ref_" + d + " " + e.dump));
2619
3094
  else if (a === "[object String]")
2620
- e.tag !== "?" && ao(e, e.dump, n, l, c);
3095
+ e.tag !== "?" && fa(e, e.dump, n, l, c);
2621
3096
  else {
2622
3097
  if (a === "[object Undefined]")
2623
3098
  return !1;
2624
3099
  if (e.skipInvalid) return !1;
2625
- throw new Z("unacceptable kind of an object to dump " + a);
3100
+ throw new J("unacceptable kind of an object to dump " + a);
2626
3101
  }
2627
- e.tag !== null && e.tag !== "?" && (s = encodeURI(
3102
+ e.tag !== null && e.tag !== "?" && (f = encodeURI(
2628
3103
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
2629
- ).replace(/!/g, "%21"), e.tag[0] === "!" ? s = "!" + s : s.slice(0, 18) === "tag:yaml.org,2002:" ? s = "!!" + s.slice(18) : s = "!<" + s + ">", e.dump = s + " " + e.dump);
3104
+ ).replace(/!/g, "%21"), e.tag[0] === "!" ? f = "!" + f : f.slice(0, 18) === "tag:yaml.org,2002:" ? f = "!!" + f.slice(18) : f = "!<" + f + ">", e.dump = f + " " + e.dump);
2630
3105
  }
2631
3106
  return !0;
2632
3107
  }
2633
- function ho(e, n) {
2634
- var r = [], t = [], i, l;
2635
- for (Je(e, r, t), i = 0, l = t.length; i < l; i += 1)
2636
- n.duplicates.push(r[t[i]]);
3108
+ function ma(e, n) {
3109
+ var r = [], i = [], t, l;
3110
+ for (en(e, r, i), t = 0, l = i.length; t < l; t += 1)
3111
+ n.duplicates.push(r[i[t]]);
2637
3112
  n.usedDuplicates = new Array(l);
2638
3113
  }
2639
- function Je(e, n, r) {
2640
- var t, i, l;
3114
+ function en(e, n, r) {
3115
+ var i, t, l;
2641
3116
  if (e !== null && typeof e == "object")
2642
- if (i = n.indexOf(e), i !== -1)
2643
- r.indexOf(i) === -1 && r.push(i);
3117
+ if (t = n.indexOf(e), t !== -1)
3118
+ r.indexOf(t) === -1 && r.push(t);
2644
3119
  else if (n.push(e), Array.isArray(e))
2645
- for (i = 0, l = e.length; i < l; i += 1)
2646
- Je(e[i], n, r);
3120
+ for (t = 0, l = e.length; t < l; t += 1)
3121
+ en(e[t], n, r);
2647
3122
  else
2648
- for (t = Object.keys(e), i = 0, l = t.length; i < l; i += 1)
2649
- Je(e[t[i]], n, r);
3123
+ for (i = Object.keys(e), t = 0, l = i.length; t < l; t += 1)
3124
+ en(e[i[t]], n, r);
2650
3125
  }
2651
- function xo(e, n) {
3126
+ function ya(e, n) {
2652
3127
  n = n || {};
2653
- var r = new ro(n);
2654
- r.noRefs || ho(e, r);
2655
- var t = e;
2656
- return r.replacer && (t = r.replacer.call({ "": t }, "", t)), ae(r, 0, t, !0, !0) ? r.dump + `
3128
+ var r = new oa(n);
3129
+ r.noRefs || ma(e, r);
3130
+ var i = e;
3131
+ return r.replacer && (i = r.replacer.call({ "": i }, "", i)), ce(r, 0, i, !0, !0) ? r.dump + `
2657
3132
  ` : "";
2658
3133
  }
2659
- var mo = xo, go = {
2660
- dump: mo
3134
+ var ga = ya, ka = {
3135
+ dump: ga
2661
3136
  };
2662
- function cn(e, n) {
3137
+ function fn(e, n) {
2663
3138
  return function() {
2664
3139
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2665
3140
  };
2666
3141
  }
2667
- var yo = z, vo = Un, bo = qn, Ao = Qn, ko = er, Co = tn, So = yr.load, Eo = yr.loadAll, wo = go.dump, _o = Z, To = {
2668
- binary: or,
2669
- float: Jn,
2670
- map: zn,
2671
- null: Kn,
2672
- pairs: ar,
2673
- set: cr,
2674
- timestamp: ir,
2675
- bool: Vn,
2676
- int: Zn,
2677
- merge: tr,
2678
- omap: lr,
2679
- seq: Gn,
2680
- str: Xn
2681
- }, $o = cn("safeLoad", "load"), Oo = cn("safeLoadAll", "loadAll"), jo = cn("safeDump", "dump"), Fo = {
2682
- Type: yo,
2683
- Schema: vo,
2684
- FAILSAFE_SCHEMA: bo,
2685
- JSON_SCHEMA: Ao,
2686
- CORE_SCHEMA: ko,
2687
- DEFAULT_SCHEMA: Co,
2688
- load: So,
2689
- loadAll: Eo,
2690
- dump: wo,
2691
- YAMLException: _o,
2692
- types: To,
2693
- safeLoad: $o,
2694
- safeLoadAll: Oo,
2695
- safeDump: jo
3142
+ var va = G, ba = Jn, Aa = rr, _a = ar, wa = cr, Ca = ln, $a = $r.load, Sa = $r.loadAll, Ea = ka.dump, Ta = J, Ma = {
3143
+ binary: hr,
3144
+ float: lr,
3145
+ map: nr,
3146
+ null: tr,
3147
+ pairs: xr,
3148
+ set: mr,
3149
+ timestamp: ur,
3150
+ bool: ir,
3151
+ int: or,
3152
+ merge: pr,
3153
+ omap: dr,
3154
+ seq: er,
3155
+ str: Qn
3156
+ }, ja = fn("safeLoad", "load"), Oa = fn("safeLoadAll", "loadAll"), Na = fn("safeDump", "dump"), La = {
3157
+ Type: va,
3158
+ Schema: ba,
3159
+ FAILSAFE_SCHEMA: Aa,
3160
+ JSON_SCHEMA: _a,
3161
+ CORE_SCHEMA: wa,
3162
+ DEFAULT_SCHEMA: Ca,
3163
+ load: $a,
3164
+ loadAll: Sa,
3165
+ dump: Ea,
3166
+ YAMLException: Ta,
3167
+ types: Ma,
3168
+ safeLoad: ja,
3169
+ safeLoadAll: Oa,
3170
+ safeDump: Na
2696
3171
  };
2697
- function Lo(e) {
3172
+ function Fa(e) {
2698
3173
  const n = e.match(/^(\d+)x(\d+)x(\d+)$/);
2699
3174
  return n ? {
2700
3175
  width: parseInt(n[1], 10),
@@ -2702,44 +3177,44 @@ function Lo(e) {
2702
3177
  height: parseInt(n[3], 10)
2703
3178
  } : null;
2704
3179
  }
2705
- function Ln(e) {
3180
+ function In(e) {
2706
3181
  const n = e.match(/^(\d+)x(\d+)$/);
2707
3182
  return n ? {
2708
3183
  width: parseInt(n[1], 10),
2709
3184
  height: parseInt(n[2], 10)
2710
3185
  } : null;
2711
3186
  }
2712
- function Ro(e) {
3187
+ function Ia(e) {
2713
3188
  const n = e.match(/^(-?\d+),(-?\d+)$/);
2714
3189
  return n ? {
2715
3190
  x: parseInt(n[1], 10),
2716
3191
  y: parseInt(n[2], 10)
2717
3192
  } : null;
2718
3193
  }
2719
- function Io(e) {
3194
+ function Ra(e) {
2720
3195
  const n = e.match(/^(.+?)\s*@\s*(\d+)$/);
2721
3196
  return n ? {
2722
3197
  name: n[1].trim(),
2723
3198
  elevation: parseInt(n[2], 10)
2724
3199
  } : null;
2725
3200
  }
2726
- function Mo(e, n, r) {
2727
- const t = {}, i = e.match(/\{([^}]+)\}\s*$/);
2728
- if (i) {
2729
- const f = i[1].split(/\s+/);
2730
- for (const m of f) {
2731
- const [y, A] = m.split("=");
2732
- if (y && A) {
2733
- const v = parseFloat(A);
2734
- t[y] = isNaN(v) ? A : v;
3201
+ function Pa(e, n, r) {
3202
+ const i = {}, t = e.match(/\{([^}]+)\}\s*$/);
3203
+ if (t) {
3204
+ const x = t[1].split(/\s+/);
3205
+ for (const m of x) {
3206
+ const [y, v] = m.split("=");
3207
+ if (y && v) {
3208
+ const k = parseFloat(v);
3209
+ i[y] = isNaN(k) ? v : k;
2735
3210
  }
2736
3211
  }
2737
3212
  e = e.replace(/\{[^}]+\}\s*$/, "").trim();
2738
3213
  }
2739
3214
  const l = e.trim().split(/\s+/);
2740
3215
  if (l.length < 4) return null;
2741
- const o = l[0], a = l[1], c = l[2], s = l[3], u = Ro(c), x = Lo(s);
2742
- if (!u || !x) return null;
3216
+ const o = l[0], a = l[1], c = l[2], f = l[3], u = Ia(c), d = Fa(f);
3217
+ if (!u || !d) return null;
2743
3218
  const p = r[a] || a;
2744
3219
  return {
2745
3220
  tier: n,
@@ -2747,105 +3222,105 @@ function Mo(e, n, r) {
2747
3222
  color: p,
2748
3223
  x: u.x,
2749
3224
  y: u.y,
2750
- width: x.width,
2751
- depth: x.depth,
2752
- height: x.height,
2753
- ...t
3225
+ width: d.width,
3226
+ depth: d.depth,
3227
+ height: d.height,
3228
+ ...i
2754
3229
  };
2755
3230
  }
2756
- function Bo(e) {
2757
- const n = Fo.load(e);
3231
+ function Wa(e) {
3232
+ const n = La.load(e);
2758
3233
  let r = { width: 1100, height: 700 };
2759
3234
  if (typeof n.canvas == "string") {
2760
- const p = Ln(n.canvas);
3235
+ const p = In(n.canvas);
2761
3236
  p && (r = p);
2762
3237
  } else n.canvas && typeof n.canvas == "object" && (r = n.canvas);
2763
- let t = { width: 400, depth: 280 };
3238
+ let i = { width: 400, depth: 280 };
2764
3239
  if (typeof n.floor == "string") {
2765
- const p = Ln(n.floor);
2766
- p && (t = { width: p.width, depth: p.height });
2767
- } else n.floor && typeof n.floor == "object" && (t = n.floor);
2768
- let i = { x: r.width / 2, y: r.height - 80 };
2769
- n.origin && typeof n.origin == "object" && (i = n.origin);
3240
+ const p = In(n.floor);
3241
+ p && (i = { width: p.width, depth: p.height });
3242
+ } else n.floor && typeof n.floor == "object" && (i = n.floor);
3243
+ let t = { x: r.width / 2, y: r.height - 80 };
3244
+ n.origin && typeof n.origin == "object" && (t = n.origin);
2770
3245
  const l = {};
2771
3246
  if (n.colors && typeof n.colors == "object")
2772
- for (const [p, f] of Object.entries(n.colors))
2773
- l[p] = f;
3247
+ for (const [p, x] of Object.entries(n.colors))
3248
+ l[p] = x;
2774
3249
  const o = [], a = {
2775
3250
  dark: ["#0f172a", "#1e293b", "#334155", "#475569"],
2776
3251
  light: ["#f1f5f9", "#e0f2fe", "#dbeafe", "#ede9fe"]
2777
3252
  }, c = {
2778
3253
  dark: ["#334155", "#475569", "#64748b", "#94a3b8"],
2779
3254
  light: ["#94a3b8", "#7dd3fc", "#93c5fd", "#c4b5fd"]
2780
- }, s = n.theme || "dark";
2781
- Array.isArray(n.tiers) && n.tiers.forEach((p, f) => {
3255
+ }, f = n.theme || "dark";
3256
+ Array.isArray(n.tiers) && n.tiers.forEach((p, x) => {
2782
3257
  if (typeof p == "string") {
2783
- const m = Io(p);
3258
+ const m = Ra(p);
2784
3259
  m && o.push({
2785
3260
  name: m.name,
2786
3261
  elevation: m.elevation,
2787
- floorColor: a[s][f] || a[s][0],
2788
- floorOpacity: f === 0 ? 0.95 : 0.7 - f * 0.1,
2789
- borderColor: c[s][f] || c[s][0]
3262
+ floorColor: a[f][x] || a[f][0],
3263
+ floorOpacity: x === 0 ? 0.95 : 0.7 - x * 0.1,
3264
+ borderColor: c[f][x] || c[f][0]
2790
3265
  });
2791
3266
  } else if (p && typeof p == "object") {
2792
3267
  const m = p;
2793
3268
  o.push({
2794
- name: m.name || `Tier ${f}`,
2795
- elevation: m.elevation || f * 150,
2796
- floorColor: m.floorColor || a[s][f],
2797
- floorOpacity: m.floorOpacity ?? (f === 0 ? 0.95 : 0.7 - f * 0.1),
2798
- borderColor: m.borderColor || c[s][f]
3269
+ name: m.name || `Tier ${x}`,
3270
+ elevation: m.elevation || x * 150,
3271
+ floorColor: m.floorColor || a[f][x],
3272
+ floorOpacity: m.floorOpacity ?? (x === 0 ? 0.95 : 0.7 - x * 0.1),
3273
+ borderColor: m.borderColor || c[f][x]
2799
3274
  });
2800
3275
  }
2801
3276
  });
2802
3277
  const u = [];
2803
3278
  if (n.nodes && typeof n.nodes == "object" && !Array.isArray(n.nodes)) {
2804
3279
  const p = n.nodes;
2805
- for (const [f, m] of Object.entries(p)) {
2806
- const y = parseInt(f, 10);
3280
+ for (const [x, m] of Object.entries(p)) {
3281
+ const y = parseInt(x, 10);
2807
3282
  if (!(isNaN(y) || !Array.isArray(m))) {
2808
- for (const A of m)
2809
- if (typeof A == "string") {
2810
- const v = Mo(A, y, l);
2811
- v && u.push(v);
2812
- } else if (A && typeof A == "object") {
2813
- const v = A;
3283
+ for (const v of m)
3284
+ if (typeof v == "string") {
3285
+ const k = Pa(v, y, l);
3286
+ k && u.push(k);
3287
+ } else if (v && typeof v == "object") {
3288
+ const k = v;
2814
3289
  u.push({
2815
3290
  tier: y,
2816
- label: v.label || "",
2817
- color: l[v.color] || v.color || "slate",
2818
- x: v.x || 0,
2819
- y: v.y || 0,
2820
- width: v.width || 100,
2821
- depth: v.depth || 80,
2822
- height: v.height || 40,
2823
- opacity: v.opacity,
2824
- blur: v.blur,
2825
- translucent: v.translucent
3291
+ label: k.label || "",
3292
+ color: l[k.color] || k.color || "slate",
3293
+ x: k.x || 0,
3294
+ y: k.y || 0,
3295
+ width: k.width || 100,
3296
+ depth: k.depth || 80,
3297
+ height: k.height || 40,
3298
+ opacity: k.opacity,
3299
+ blur: k.blur,
3300
+ translucent: k.translucent
2826
3301
  });
2827
3302
  }
2828
3303
  }
2829
3304
  }
2830
3305
  }
2831
- const x = [];
3306
+ const d = [];
2832
3307
  if (Array.isArray(n.pillars)) {
2833
3308
  for (const p of n.pillars)
2834
3309
  if (typeof p == "string") {
2835
- const f = p.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);
2836
- f && x.push({
2837
- x: parseInt(f[1], 10),
2838
- y: parseInt(f[2], 10),
2839
- fromTier: parseInt(f[3], 10),
2840
- toTier: parseInt(f[4], 10)
3310
+ const x = p.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);
3311
+ x && d.push({
3312
+ x: parseInt(x[1], 10),
3313
+ y: parseInt(x[2], 10),
3314
+ fromTier: parseInt(x[3], 10),
3315
+ toTier: parseInt(x[4], 10)
2841
3316
  });
2842
3317
  } else if (p && typeof p == "object") {
2843
- const f = p;
2844
- x.push({
2845
- x: f.x || 0,
2846
- y: f.y || 0,
2847
- fromTier: f.fromTier || 0,
2848
- toTier: f.toTier || 1
3318
+ const x = p;
3319
+ d.push({
3320
+ x: x.x || 0,
3321
+ y: x.y || 0,
3322
+ fromTier: x.fromTier || 0,
3323
+ toTier: x.toTier || 1
2849
3324
  });
2850
3325
  }
2851
3326
  }
@@ -2853,51 +3328,51 @@ function Bo(e) {
2853
3328
  title: n.title || "Untitled",
2854
3329
  style: n.style || void 0,
2855
3330
  description: n.description || "",
2856
- theme: s,
3331
+ theme: f,
2857
3332
  canvas: r,
2858
- origin: i,
3333
+ origin: t,
2859
3334
  cornerRadius: n.corner ?? n.cornerRadius ?? 14,
2860
3335
  tiers: o,
2861
- floorSize: t,
3336
+ floorSize: i,
2862
3337
  nodes: u,
2863
- pillars: x.length > 0 ? x : void 0
3338
+ pillars: d.length > 0 ? d : void 0
2864
3339
  };
2865
3340
  }
2866
- function Wo(e) {
3341
+ function Ua(e) {
2867
3342
  const n = [];
2868
3343
  n.push(`title: ${e.title}`), e.description && n.push(`description: ${e.description}`), n.push(`theme: ${e.theme}`), e.style && e.style !== "solid" && n.push(`style: ${e.style}`), n.push(`canvas: ${e.canvas.width}x${e.canvas.height}`), n.push(`floor: ${e.floorSize.width}x${e.floorSize.depth}`), e.cornerRadius && n.push(`corner: ${e.cornerRadius}`), n.push("");
2869
3344
  const r = {};
2870
- e.nodes.forEach((i) => {
2871
- r[i.color] = (r[i.color] || 0) + 1;
3345
+ e.nodes.forEach((t) => {
3346
+ r[t.color] = (r[t.color] || 0) + 1;
2872
3347
  });
2873
- const t = Object.entries(r).filter(([, i]) => i >= 2).map(([i]) => i);
2874
- return t.length > 0 && (n.push("colors:"), t.forEach((i) => {
2875
- const l = i.slice(0, 3);
2876
- n.push(` ${l}: &${l} ${i}`);
2877
- }), n.push("")), n.push("tiers:"), e.tiers.forEach((i) => {
2878
- n.push(` - ${i.name} @ ${i.elevation}`);
2879
- }), n.push(""), n.push("nodes:"), e.tiers.forEach((i, l) => {
3348
+ const i = Object.entries(r).filter(([, t]) => t >= 2).map(([t]) => t);
3349
+ return i.length > 0 && (n.push("colors:"), i.forEach((t) => {
3350
+ const l = t.slice(0, 3);
3351
+ n.push(` ${l}: &${l} ${t}`);
3352
+ }), n.push("")), n.push("tiers:"), e.tiers.forEach((t) => {
3353
+ n.push(` - ${t.name} @ ${t.elevation}`);
3354
+ }), n.push(""), n.push("nodes:"), e.tiers.forEach((t, l) => {
2880
3355
  const o = e.nodes.filter((a) => a.tier === l);
2881
- o.length !== 0 && (n.push(` ${l}: # ${i.name}`), o.forEach((a) => {
3356
+ o.length !== 0 && (n.push(` ${l}: # ${t.name}`), o.forEach((a) => {
2882
3357
  let c = a.color;
2883
- t.includes(a.color) && (c = `*${a.color.slice(0, 3)}`);
2884
- const s = [];
2885
- a.opacity !== void 0 && s.push(`opacity=${a.opacity}`), a.blur !== void 0 && s.push(`blur=${a.blur}`), a.translucent && s.push("translucent=true");
2886
- const u = s.length > 0 ? ` { ${s.join(" ")} }` : "", x = `${a.width}x${a.depth}x${a.height}`, p = `${a.x},${a.y}`, f = a.label.padEnd(12), m = c.padEnd(8);
2887
- n.push(` - ${f} ${m} ${p.padEnd(8)} ${x}${u}`);
3358
+ i.includes(a.color) && (c = `*${a.color.slice(0, 3)}`);
3359
+ const f = [];
3360
+ a.opacity !== void 0 && f.push(`opacity=${a.opacity}`), a.blur !== void 0 && f.push(`blur=${a.blur}`), a.translucent && f.push("translucent=true");
3361
+ const u = f.length > 0 ? ` { ${f.join(" ")} }` : "", d = `${a.width}x${a.depth}x${a.height}`, p = `${a.x},${a.y}`, x = a.label.padEnd(12), m = c.padEnd(8);
3362
+ n.push(` - ${x} ${m} ${p.padEnd(8)} ${d}${u}`);
2888
3363
  }));
2889
- }), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((i) => {
2890
- n.push(` - ${i.x},${i.y} ${i.fromTier}->${i.toTier}`);
3364
+ }), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((t) => {
3365
+ n.push(` - ${t.x},${t.y} ${t.fromTier}->${t.toTier}`);
2891
3366
  })), n.join(`
2892
3367
  `);
2893
3368
  }
2894
3369
  export {
2895
- Do as ArcDiagram,
2896
- Wo as configToYaml,
2897
- Po as getColorShading,
2898
- he as isoBox,
2899
- E as isoToScreen,
2900
- Bo as parseYamlConfig,
2901
- Yo as renderToElement,
2902
- ui as renderToString
3370
+ Ba as ArcDiagram,
3371
+ Ua as configToYaml,
3372
+ Ya as getColorShading,
3373
+ xe as isoBox,
3374
+ w as isoToScreen,
3375
+ Wa as parseYamlConfig,
3376
+ Ha as renderToElement,
3377
+ ho as renderToString
2903
3378
  };