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