@camstack/addon-pipeline-orchestrator 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/_stub.js CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as L, a as rt, b as C0 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-Cg6QsnjR.mjs";
1
+ import { _ as Y, a as rt, b as C0 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-Cg6QsnjR.mjs";
2
2
  import { _ as Y1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-DoWbefqS.mjs";
3
- import { _ as Xh, a as X1, b as q1, c as vs, d as _s, e as j1, f as Ho, g as Co, h as V1, i as Ss, j as Bo, k as Z1, l as K1, m as $l, n as ts, o as es, p as x0, q as E0, r as T0, s as A0, t as M0, u as N0, v as Q1, w as k1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-Ue-jHwF0.mjs";
4
- import { a as R0, b as fa, c as Ve, d as me, e as Fa, R as ee, f as P1, g as J1, h as F1, i as W1, j as I1, k as Uo, l as ga, m as le } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs-B848Fc_m.mjs";
5
- import { _ as $1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-UNj4rttw.mjs";
6
- import { r as t2, a as e2 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-B-q1guKT.mjs";
3
+ import { _ as Xh, a as X1, b as q1, c as vs, d as _s, e as j1, f as Ho, g as Co, h as V1, i as Ss, j as Bo, k as Z1, l as K1, m as $l, n as ts, o as es, p as x0, q as E0, r as T0, s as A0, t as M0, u as N0, v as Q1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-XtEtGou1.mjs";
4
+ import { a as R0, b as fa, c as Pe, d as ye, e as Fa, R as ee, f as k1, g as P1, h as J1, i as F1, j as W1, k as Uo, l as ga, m as le } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs-B848Fc_m.mjs";
5
+ import { _ as I1 } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-UNj4rttw.mjs";
6
+ import{r as f,a as t2}from"./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-B-q1guKT.mjs";
7
7
  import { s as fs } from "./index-CWkKuNLr.mjs";
8
8
  /**
9
9
  * @license lucide-react v0.511.0 - ISC
@@ -11,13 +11,13 @@ import { s as fs } from "./index-CWkKuNLr.mjs";
11
11
  * This source code is licensed under the ISC license.
12
12
  * See the LICENSE file in the root directory of this source tree.
13
13
  */
14
- const n2 = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a2 = (o) => o.replace(
14
+ const e2 = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n2 = (o) => o.replace(
15
15
  /^([A-Z])|[\s-_]+(\w)/g,
16
16
  (e, a, l) => l ? l.toUpperCase() : a.toLowerCase()
17
17
  ), qh = (o) => {
18
- const e = a2(o);
18
+ const e = n2(o);
19
19
  return e.charAt(0).toUpperCase() + e.slice(1);
20
- }, D0 = (...o) => o.filter((e, a, l) => !!e && e.trim() !== "" && l.indexOf(e) === a).join(" ").trim(), i2 = (o) => {
20
+ }, D0 = (...o) => o.filter((e, a, l) => !!e && e.trim() !== "" && l.indexOf(e) === a).join(" ").trim(), a2 = (o) => {
21
21
  for (const e in o)
22
22
  if (e.startsWith("aria-") || e === "role" || e === "title")
23
23
  return !0;
@@ -28,7 +28,7 @@ const n2 = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a2 = (
28
28
  * This source code is licensed under the ISC license.
29
29
  * See the LICENSE file in the root directory of this source tree.
30
30
  */
31
- var l2 = {
31
+ var i2 = {
32
32
  xmlns: "http://www.w3.org/2000/svg",
33
33
  width: 24,
34
34
  height: 24,
@@ -45,7 +45,7 @@ var l2 = {
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
47
  */
48
- const s2 = R0(
48
+ const l2 = R0(
49
49
  ({
50
50
  color: o = "currentColor",
51
51
  size: e = 24,
@@ -59,13 +59,13 @@ const s2 = R0(
59
59
  "svg",
60
60
  {
61
61
  ref: g,
62
- ...l2,
62
+ ...i2,
63
63
  width: e,
64
64
  height: e,
65
65
  stroke: o,
66
66
  strokeWidth: l ? Number(a) * 24 / Number(e) : a,
67
67
  className: D0("lucide", s),
68
- ...!u && !i2(d) && { "aria-hidden": "true" },
68
+ ...!u && !a2(d) && { "aria-hidden": "true" },
69
69
  ...d
70
70
  },
71
71
  [
@@ -80,13 +80,13 @@ const s2 = R0(
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const Ze = (o, e) => {
83
+ const Je = (o, e) => {
84
84
  const a = R0(
85
- ({ className: l, ...s }, u) => fa(s2, {
85
+ ({ className: l, ...s }, u) => fa(l2, {
86
86
  ref: u,
87
87
  iconNode: e,
88
88
  className: D0(
89
- `lucide-${n2(qh(o))}`,
89
+ `lucide-${e2(qh(o))}`,
90
90
  `lucide-${o}`,
91
91
  l
92
92
  ),
@@ -101,7 +101,7 @@ const Ze = (o, e) => {
101
101
  * This source code is licensed under the ISC license.
102
102
  * See the LICENSE file in the root directory of this source tree.
103
103
  */
104
- const r2 = [
104
+ const s2 = [
105
105
  [
106
106
  "path",
107
107
  {
@@ -109,21 +109,21 @@ const r2 = [
109
109
  key: "169zse"
110
110
  }
111
111
  ]
112
- ], o2 = Ze("activity", r2);
112
+ ], r2 = Je("activity", s2);
113
113
  /**
114
114
  * @license lucide-react v0.511.0 - ISC
115
115
  *
116
116
  * This source code is licensed under the ISC license.
117
117
  * See the LICENSE file in the root directory of this source tree.
118
118
  */
119
- const u2 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], c2 = Ze("check", u2);
119
+ const o2 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], u2 = Je("check", o2);
120
120
  /**
121
121
  * @license lucide-react v0.511.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
125
  */
126
- const h2 = [
126
+ const c2 = [
127
127
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
128
128
  ["path", { d: "M12 2v2", key: "tus03m" }],
129
129
  ["path", { d: "M17 20v2", key: "1rnc9c" }],
@@ -138,14 +138,14 @@ const h2 = [
138
138
  ["path", { d: "M7 2v2", key: "1i4yhu" }],
139
139
  ["rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }],
140
140
  ["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
141
- ], d2 = Ze("cpu", h2);
141
+ ], h2 = Je("cpu", c2);
142
142
  /**
143
143
  * @license lucide-react v0.511.0 - ISC
144
144
  *
145
145
  * This source code is licensed under the ISC license.
146
146
  * See the LICENSE file in the root directory of this source tree.
147
147
  */
148
- const f2 = [
148
+ const d2 = [
149
149
  [
150
150
  "path",
151
151
  {
@@ -154,37 +154,24 @@ const f2 = [
154
154
  }
155
155
  ],
156
156
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
157
- ], g2 = Ze("eye", f2);
157
+ ], f2 = Je("eye", d2);
158
158
  /**
159
159
  * @license lucide-react v0.511.0 - ISC
160
160
  *
161
161
  * This source code is licensed under the ISC license.
162
162
  * See the LICENSE file in the root directory of this source tree.
163
163
  */
164
- const m2 = [
164
+ const g2 = [
165
165
  ["path", { d: "m12 14 4-4", key: "9kzdfg" }],
166
166
  ["path", { d: "M3.34 19a10 10 0 1 1 17.32 0", key: "19p75a" }]
167
- ], p2 = Ze("gauge", m2);
167
+ ], m2 = Je("gauge", g2);
168
168
  /**
169
169
  * @license lucide-react v0.511.0 - ISC
170
170
  *
171
171
  * This source code is licensed under the ISC license.
172
172
  * See the LICENSE file in the root directory of this source tree.
173
173
  */
174
- const y2 = [
175
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
176
- ["path", { d: "M3 9h18", key: "1pudct" }],
177
- ["path", { d: "M3 15h18", key: "5xshup" }],
178
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
179
- ["path", { d: "M15 3v18", key: "14nvp0" }]
180
- ], v2 = Ze("grid-3x3", y2);
181
- /**
182
- * @license lucide-react v0.511.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */
187
- const _2 = [
174
+ const p2 = [
188
175
  [
189
176
  "path",
190
177
  {
@@ -192,31 +179,31 @@ const _2 = [
192
179
  key: "yt0hxn"
193
180
  }
194
181
  ]
195
- ], S2 = Ze("hexagon", _2);
182
+ ], y2 = Je("hexagon", p2);
196
183
  /**
197
184
  * @license lucide-react v0.511.0 - ISC
198
185
  *
199
186
  * This source code is licensed under the ISC license.
200
187
  * See the LICENSE file in the root directory of this source tree.
201
188
  */
202
- const b2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], C2 = Ze("minus", b2);
189
+ const v2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], _2 = Je("minus", v2);
203
190
  /**
204
191
  * @license lucide-react v0.511.0 - ISC
205
192
  *
206
193
  * This source code is licensed under the ISC license.
207
194
  * See the LICENSE file in the root directory of this source tree.
208
195
  */
209
- const x2 = [
196
+ const S2 = [
210
197
  ["path", { d: "M5 12h14", key: "1ays0h" }],
211
198
  ["path", { d: "M12 5v14", key: "s699le" }]
212
- ], E2 = Ze("plus", x2);
199
+ ], b2 = Je("plus", S2);
213
200
  /**
214
201
  * @license lucide-react v0.511.0 - ISC
215
202
  *
216
203
  * This source code is licensed under the ISC license.
217
204
  * See the LICENSE file in the root directory of this source tree.
218
205
  */
219
- const T2 = [
206
+ const C2 = [
220
207
  [
221
208
  "path",
222
209
  {
@@ -226,34 +213,34 @@ const T2 = [
226
213
  ],
227
214
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
228
215
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
229
- ], A2 = Ze("save", T2);
216
+ ], x2 = Je("save", C2);
230
217
  /**
231
218
  * @license lucide-react v0.511.0 - ISC
232
219
  *
233
220
  * This source code is licensed under the ISC license.
234
221
  * See the LICENSE file in the root directory of this source tree.
235
222
  */
236
- const M2 = [
223
+ const E2 = [
237
224
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
238
225
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
239
226
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
240
227
  ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
241
228
  ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
242
- ], Lo = Ze("trash-2", M2);
229
+ ], Lo = Je("trash-2", E2);
243
230
  /**
244
231
  * @license lucide-react v0.511.0 - ISC
245
232
  *
246
233
  * This source code is licensed under the ISC license.
247
234
  * See the LICENSE file in the root directory of this source tree.
248
235
  */
249
- const N2 = [
236
+ const T2 = [
250
237
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
251
238
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
252
- ], O0 = Ze("x", N2);
253
- function R2(o) {
254
- return o.deviceId === void 0 ? /* @__PURE__ */ L("div", { className: "rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-xs text-warning", children: "PipelineQuickStats requires a deviceId" }) : /* @__PURE__ */ L(D2, { deviceId: o.deviceId });
239
+ ], O0 = Je("x", T2);
240
+ function A2(o) {
241
+ return o.deviceId === void 0 ? /* @__PURE__ */ Y("div", { className: "rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-xs text-warning", children: "PipelineQuickStats requires a deviceId" }) : /* @__PURE__ */ Y(M2, { deviceId: o.deviceId });
255
242
  }
256
- function D2({ deviceId: o }) {
243
+ function M2({ deviceId: o }) {
257
244
  Xh(
258
245
  ["pipelineOrchestrator", "getPipelineAssignment"],
259
246
  ["pipeline.camera-assigned", "pipeline.camera-unassigned", "pipeline.camera-updated"]
@@ -277,39 +264,39 @@ function D2({ deviceId: o }) {
277
264
  refetchInterval: 5e3,
278
265
  retry: !1
279
266
  }), m = u?.phase ?? null, p = u?.detectionMode ?? null, _ = Number(u?.actualFps ?? 0), v = Number(u?.configuredFps ?? 0), b = Number(u?.avgInferenceTimeMs ?? 0), S = Number(u?.queueDepth ?? 0), R = Number(u?.droppedFrames ?? 0), T = j1(m ?? "watching"), A = g?.length ?? 0;
280
- return /* @__PURE__ */ L("div", { className: "@container", style: { containerType: "inline-size" }, children: /* @__PURE__ */ rt("div", { className: "grid grid-cols-1 @[360px]:grid-cols-2 @[720px]:grid-cols-4 gap-3", children: [
281
- /* @__PURE__ */ L(
267
+ return /* @__PURE__ */ Y("div", { className: "@container", style: { containerType: "inline-size" }, children: /* @__PURE__ */ rt("div", { className: "grid grid-cols-1 @[360px]:grid-cols-2 @[720px]:grid-cols-4 gap-3", children: [
268
+ /* @__PURE__ */ Y(
282
269
  ns,
283
270
  {
284
- icon: o2,
271
+ icon: r2,
285
272
  label: "Phase",
286
273
  value: T.label,
287
274
  color: T.textColor,
288
275
  subtext: p ?? void 0
289
276
  }
290
277
  ),
291
- /* @__PURE__ */ L(
278
+ /* @__PURE__ */ Y(
292
279
  ns,
293
280
  {
294
- icon: p2,
281
+ icon: m2,
295
282
  label: "Detection FPS",
296
283
  value: `${_.toFixed(1)}`,
297
284
  subtext: v > 0 ? `target: ${v}` : void 0
298
285
  }
299
286
  ),
300
- /* @__PURE__ */ L(
287
+ /* @__PURE__ */ Y(
301
288
  ns,
302
289
  {
303
- icon: d2,
290
+ icon: h2,
304
291
  label: "Inference",
305
292
  value: `${b.toFixed(1)} ms`,
306
293
  subtext: S > 0 ? `queue: ${S}` : void 0
307
294
  }
308
295
  ),
309
- /* @__PURE__ */ L(
296
+ /* @__PURE__ */ Y(
310
297
  ns,
311
298
  {
312
- icon: g2,
299
+ icon: f2,
313
300
  label: "Active Tracks",
314
301
  value: String(A),
315
302
  subtext: R > 0 ? `dropped: ${R}` : void 0
@@ -320,8 +307,8 @@ function D2({ deviceId: o }) {
320
307
  function ns({ icon: o, label: e, value: a, subtext: l, color: s }) {
321
308
  return /* @__PURE__ */ rt("div", { className: "rounded-lg border border-border bg-surface p-3 min-w-0", children: [
322
309
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-1.5 mb-1 min-w-0", children: [
323
- /* @__PURE__ */ L(o, { className: "h-3.5 w-3.5 text-foreground-subtle flex-shrink-0" }),
324
- /* @__PURE__ */ L(
310
+ /* @__PURE__ */ Y(o, { className: "h-3.5 w-3.5 text-foreground-subtle flex-shrink-0" }),
311
+ /* @__PURE__ */ Y(
325
312
  "span",
326
313
  {
327
314
  className: "text-[10px] text-foreground-subtle uppercase tracking-wider truncate",
@@ -330,7 +317,7 @@ function ns({ icon: o, label: e, value: a, subtext: l, color: s }) {
330
317
  }
331
318
  )
332
319
  ] }),
333
- /* @__PURE__ */ L(
320
+ /* @__PURE__ */ Y(
334
321
  "p",
335
322
  {
336
323
  className: `text-lg font-semibold leading-tight truncate ${s ?? "text-foreground"}`,
@@ -338,17 +325,17 @@ function ns({ icon: o, label: e, value: a, subtext: l, color: s }) {
338
325
  children: a
339
326
  }
340
327
  ),
341
- l && /* @__PURE__ */ L("p", { className: "text-[10px] text-foreground-subtle mt-0.5 truncate", title: l, children: l })
328
+ l && /* @__PURE__ */ Y("p", { className: "text-[10px] text-foreground-subtle mt-0.5 truncate", title: l, children: l })
342
329
  ] });
343
330
  }
344
- const O2 = {
331
+ const N2 = {
345
332
  polygon: "Polygon",
346
333
  tripwire: "Tripwire"
347
- }, z2 = {
334
+ }, R2 = {
348
335
  polygon: "bg-info/10 text-info",
349
336
  tripwire: "bg-warning/10 text-warning"
350
337
  };
351
- function G2({
338
+ function D2({
352
339
  zones: o,
353
340
  selectedZoneId: e,
354
341
  drawingKind: a,
@@ -358,7 +345,7 @@ function G2({
358
345
  onCancelDraw: c
359
346
  }) {
360
347
  return /* @__PURE__ */ rt("div", { className: "flex flex-col gap-2", children: [
361
- /* @__PURE__ */ L("div", { className: "flex items-center gap-1", children: a ? /* @__PURE__ */ rt(
348
+ /* @__PURE__ */ Y("div", { className: "flex items-center gap-1", children: a ? /* @__PURE__ */ rt(
362
349
  "button",
363
350
  {
364
351
  type: "button",
@@ -366,12 +353,12 @@ function G2({
366
353
  className: "inline-flex items-center justify-center gap-1 rounded border border-amber-500/30 bg-amber-500/10 text-amber-400 hover:bg-amber-500/20 transition-colors h-8 px-3 text-[11px] font-medium",
367
354
  title: "Cancel drawing",
368
355
  children: [
369
- /* @__PURE__ */ L(O0, { className: "h-3.5 w-3.5" }),
370
- /* @__PURE__ */ L("span", { children: "Cancel" })
356
+ /* @__PURE__ */ Y(O0, { className: "h-3.5 w-3.5" }),
357
+ /* @__PURE__ */ Y("span", { children: "Cancel" })
371
358
  ]
372
359
  }
373
360
  ) : /* @__PURE__ */ rt(C0, { children: [
374
- /* @__PURE__ */ L(
361
+ /* @__PURE__ */ Y(
375
362
  "button",
376
363
  {
377
364
  type: "button",
@@ -379,10 +366,10 @@ function G2({
379
366
  className: "inline-flex items-center justify-center rounded border border-border bg-surface text-foreground-subtle hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors h-8 w-8",
380
367
  title: "Add polygon zone",
381
368
  "aria-label": "Add polygon zone",
382
- children: /* @__PURE__ */ L(S2, { className: "h-4 w-4" })
369
+ children: /* @__PURE__ */ Y(y2, { className: "h-4 w-4" })
383
370
  }
384
371
  ),
385
- /* @__PURE__ */ L(
372
+ /* @__PURE__ */ Y(
386
373
  "button",
387
374
  {
388
375
  type: "button",
@@ -390,11 +377,11 @@ function G2({
390
377
  className: "inline-flex items-center justify-center rounded border border-border bg-surface text-foreground-subtle hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors h-8 w-8",
391
378
  title: "Add tripwire",
392
379
  "aria-label": "Add tripwire",
393
- children: /* @__PURE__ */ L(C2, { className: "h-5 w-5 stroke-[2.5]" })
380
+ children: /* @__PURE__ */ Y(_2, { className: "h-5 w-5 stroke-[2.5]" })
394
381
  }
395
382
  )
396
383
  ] }) }),
397
- o.length === 0 ? /* @__PURE__ */ L("p", { className: "text-center text-[10px] text-foreground-subtle py-3 leading-tight", children: 'No zones yet — pick "Zone" or "Tripwire" to draw.' }) : /* @__PURE__ */ L("div", { className: "flex flex-col gap-1", children: o.map((d) => {
384
+ o.length === 0 ? /* @__PURE__ */ Y("p", { className: "text-center text-[10px] text-foreground-subtle py-3 leading-tight", children: 'No zones yet — pick "Zone" or "Tripwire" to draw.' }) : /* @__PURE__ */ Y("div", { className: "flex flex-col gap-1", children: o.map((d) => {
398
385
  const g = d.id === e;
399
386
  return /* @__PURE__ */ rt(
400
387
  "div",
@@ -405,22 +392,22 @@ function G2({
405
392
  ].join(" "),
406
393
  onClick: () => l(g ? null : d.id),
407
394
  children: [
408
- /* @__PURE__ */ L(
395
+ /* @__PURE__ */ Y(
409
396
  "div",
410
397
  {
411
398
  className: "h-2.5 w-2.5 rounded-sm flex-shrink-0",
412
399
  style: { backgroundColor: d.color }
413
400
  }
414
401
  ),
415
- /* @__PURE__ */ L("span", { className: "flex-1 truncate text-[11px] font-medium text-foreground", children: d.name }),
416
- /* @__PURE__ */ L(
402
+ /* @__PURE__ */ Y("span", { className: "flex-1 truncate text-[11px] font-medium text-foreground", children: d.name }),
403
+ /* @__PURE__ */ Y(
417
404
  "span",
418
405
  {
419
- className: `inline-flex items-center rounded-full px-1.5 py-0.5 text-[9px] font-medium flex-shrink-0 ${z2[d.kind]}`,
420
- children: O2[d.kind]
406
+ className: `inline-flex items-center rounded-full px-1.5 py-0.5 text-[9px] font-medium flex-shrink-0 ${R2[d.kind]}`,
407
+ children: N2[d.kind]
421
408
  }
422
409
  ),
423
- /* @__PURE__ */ L(
410
+ /* @__PURE__ */ Y(
424
411
  "button",
425
412
  {
426
413
  type: "button",
@@ -429,7 +416,7 @@ function G2({
429
416
  onClick: (m) => {
430
417
  m.stopPropagation(), s(d.id);
431
418
  },
432
- children: /* @__PURE__ */ L(Lo, { className: "h-3 w-3" })
419
+ children: /* @__PURE__ */ Y(Lo, { className: "h-3 w-3" })
433
420
  }
434
421
  )
435
422
  ]
@@ -439,7 +426,7 @@ function G2({
439
426
  }) })
440
427
  ] });
441
428
  }
442
- const H2 = [
429
+ const O2 = [
443
430
  "#3b82f6",
444
431
  // blue
445
432
  "#10b981",
@@ -457,14 +444,14 @@ const H2 = [
457
444
  "#ec4899"
458
445
  // pink
459
446
  ];
460
- function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
447
+ function z2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
461
448
  const s = Ho(), u = (d) => s?.updateDraft({ name: d }), c = (d) => s?.updateDraft({ color: d });
462
449
  return /* @__PURE__ */ rt("div", { className: "flex flex-col gap-2", children: [
463
450
  /* @__PURE__ */ rt("div", { className: "flex items-center justify-between", children: [
464
- /* @__PURE__ */ L("h3", { className: "text-[10px] font-semibold text-foreground-subtle uppercase tracking-wider", children: "Editing" }),
465
- /* @__PURE__ */ L("span", { className: "inline-flex items-center rounded-full px-1.5 py-0.5 text-[9px] font-medium bg-surface border border-border text-foreground-subtle", children: o.kind === "tripwire" ? "Tripwire" : "Polygon" })
451
+ /* @__PURE__ */ Y("h3", { className: "text-[10px] font-semibold text-foreground-subtle uppercase tracking-wider", children: "Editing" }),
452
+ /* @__PURE__ */ Y("span", { className: "inline-flex items-center rounded-full px-1.5 py-0.5 text-[9px] font-medium bg-surface border border-border text-foreground-subtle", children: o.kind === "tripwire" ? "Tripwire" : "Polygon" })
466
453
  ] }),
467
- /* @__PURE__ */ L(
454
+ /* @__PURE__ */ Y(
468
455
  "input",
469
456
  {
470
457
  type: "text",
@@ -478,7 +465,7 @@ function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
478
465
  placeholder: "Zone name"
479
466
  }
480
467
  ),
481
- /* @__PURE__ */ L("div", { className: "flex flex-wrap gap-1", children: H2.map((d) => /* @__PURE__ */ L(
468
+ /* @__PURE__ */ Y("div", { className: "flex flex-wrap gap-1", children: O2.map((d) => /* @__PURE__ */ Y(
482
469
  "button",
483
470
  {
484
471
  type: "button",
@@ -493,7 +480,7 @@ function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
493
480
  d
494
481
  )) }),
495
482
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-1.5", children: [
496
- /* @__PURE__ */ L(
483
+ /* @__PURE__ */ Y(
497
484
  "input",
498
485
  {
499
486
  type: "color",
@@ -502,7 +489,7 @@ function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
502
489
  onChange: (d) => c(d.target.value)
503
490
  }
504
491
  ),
505
- /* @__PURE__ */ L(
492
+ /* @__PURE__ */ Y(
506
493
  "input",
507
494
  {
508
495
  type: "text",
@@ -526,7 +513,7 @@ function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
526
513
  className: "inline-flex items-center justify-center gap-1 rounded border border-primary/40 bg-primary/10 text-primary hover:bg-primary/20 transition-colors h-7 flex-1 text-[11px] font-medium",
527
514
  title: "Save changes (Enter)",
528
515
  children: [
529
- /* @__PURE__ */ L(c2, { className: "h-3 w-3" }),
516
+ /* @__PURE__ */ Y(u2, { className: "h-3 w-3" }),
530
517
  "Save"
531
518
  ]
532
519
  }
@@ -539,7 +526,7 @@ function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
539
526
  className: "inline-flex items-center justify-center gap-1 rounded border border-border bg-surface text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors h-7 px-3 text-[11px] font-medium",
540
527
  title: "Discard changes (Esc)",
541
528
  children: [
542
- /* @__PURE__ */ L(O0, { className: "h-3 w-3" }),
529
+ /* @__PURE__ */ Y(O0, { className: "h-3 w-3" }),
543
530
  "Discard"
544
531
  ]
545
532
  }
@@ -552,17 +539,17 @@ function B2({ zone: o, onSave: e, onDiscard: a, onDelete: l }) {
552
539
  onClick: l,
553
540
  className: `${V1} w-full`,
554
541
  children: [
555
- /* @__PURE__ */ L(Lo, { className: "h-3 w-3" }),
542
+ /* @__PURE__ */ Y(Lo, { className: "h-3 w-3" }),
556
543
  "Delete"
557
544
  ]
558
545
  }
559
546
  )
560
547
  ] });
561
548
  }
562
- const U2 = $1.map(
549
+ const G2 = I1.map(
563
550
  (o) => ({ id: o.id, label: o.name })
564
551
  );
565
- function L2(o) {
552
+ function H2(o) {
566
553
  return {
567
554
  id: o.id,
568
555
  name: o.name ?? "",
@@ -572,7 +559,7 @@ function L2(o) {
572
559
  enabled: o.enabled !== !1
573
560
  };
574
561
  }
575
- function w2(o) {
562
+ function B2(o) {
576
563
  const e = {
577
564
  id: o.id,
578
565
  zoneIds: o.zoneIds,
@@ -582,12 +569,12 @@ function w2(o) {
582
569
  return o.name && (e.name = o.name), o.classFilter.length > 0 && (e.classFilter = o.classFilter), e;
583
570
  }
584
571
  function jh({ dev: o, stage: e, zones: a, title: l }) {
585
- const s = Ss(o?.state.zoneRules), u = Ve(
572
+ const s = Ss(o?.state.zoneRules), u = Pe(
586
573
  () => s?.[e] ?? [],
587
574
  [s, e]
588
- ), [c, d] = me([]), [g, m] = me(!1), [p, _] = me(!1), [v, b] = me(null);
575
+ ), [c, d] = ye([]), [g, m] = ye(!1), [p, _] = ye(!1), [v, b] = ye(null);
589
576
  Fa(() => {
590
- g || d(u.map(L2));
577
+ g || d(u.map(H2));
591
578
  }, [u, g]);
592
579
  const S = () => {
593
580
  d((U) => [
@@ -605,16 +592,16 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
605
592
  d(
606
593
  (k) => k.map((X, P) => {
607
594
  if (P !== U) return X;
608
- const w = X.classFilter.includes(B) ? X.classFilter.filter((j) => j !== B) : [...X.classFilter, B];
609
- return { ...X, classFilter: w };
595
+ const L = X.classFilter.includes(B) ? X.classFilter.filter((j) => j !== B) : [...X.classFilter, B];
596
+ return { ...X, classFilter: L };
610
597
  })
611
598
  ), m(!0);
612
599
  }, T = (U, B) => {
613
600
  d(
614
601
  (k) => k.map((X, P) => {
615
602
  if (P !== U) return X;
616
- const w = X.zoneIds.includes(B) ? X.zoneIds.filter((j) => j !== B) : [...X.zoneIds, B];
617
- return { ...X, zoneIds: w };
603
+ const L = X.zoneIds.includes(B) ? X.zoneIds.filter((j) => j !== B) : [...X.zoneIds, B];
604
+ return { ...X, zoneIds: L };
618
605
  })
619
606
  ), m(!0);
620
607
  }, A = (U) => {
@@ -625,7 +612,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
625
612
  if (o?.zoneRules) {
626
613
  _(!0), b(null);
627
614
  try {
628
- await o.zoneRules.setRules({ stage: e, rules: c.map(w2) }), m(!1);
615
+ await o.zoneRules.setRules({ stage: e, rules: c.map(B2) }), m(!1);
629
616
  } catch (U) {
630
617
  b(U instanceof Error ? U.message : String(U));
631
618
  } finally {
@@ -635,7 +622,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
635
622
  }, H = g && !!o?.zoneRules && !p;
636
623
  return /* @__PURE__ */ rt("div", { className: "rounded-md border border-border bg-surface/40 p-2.5", children: [
637
624
  /* @__PURE__ */ rt("div", { className: "flex items-center justify-between mb-2 gap-2", children: [
638
- /* @__PURE__ */ L("h3", { className: `${Bo} truncate`, children: l ?? `${e === "motion" ? "Motion" : "Detection"} Rules` }),
625
+ /* @__PURE__ */ Y("h3", { className: `${Bo} truncate`, children: l ?? `${e === "motion" ? "Motion" : "Detection"} Rules` }),
639
626
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
640
627
  /* @__PURE__ */ rt(
641
628
  "button",
@@ -646,7 +633,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
646
633
  className: Z1,
647
634
  title: "Add rule",
648
635
  children: [
649
- /* @__PURE__ */ L(E2, { className: "h-2.5 w-2.5" }),
636
+ /* @__PURE__ */ Y(b2, { className: "h-2.5 w-2.5" }),
650
637
  " Add"
651
638
  ]
652
639
  }
@@ -661,20 +648,20 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
661
648
  disabled: !H,
662
649
  className: K1,
663
650
  children: [
664
- /* @__PURE__ */ L(A2, { className: "h-2.5 w-2.5" }),
651
+ /* @__PURE__ */ Y(x2, { className: "h-2.5 w-2.5" }),
665
652
  p ? "…" : "Save"
666
653
  ]
667
654
  }
668
655
  )
669
656
  ] })
670
657
  ] }),
671
- c.length === 0 ? /* @__PURE__ */ L("p", { className: "text-[10px] text-foreground-subtle italic px-1 py-1.5 leading-tight", children: a.length === 0 ? "Define a zone first — rules reference zone ids." : "No rules — every detection at this stage passes through." }) : /* @__PURE__ */ L("div", { className: "flex flex-col gap-1.5", children: c.map((U, B) => /* @__PURE__ */ rt(
658
+ c.length === 0 ? /* @__PURE__ */ Y("p", { className: "text-[10px] text-foreground-subtle italic px-1 py-1.5 leading-tight", children: a.length === 0 ? "Define a zone first — rules reference zone ids." : "No rules — every detection at this stage passes through." }) : /* @__PURE__ */ Y("div", { className: "flex flex-col gap-1.5", children: c.map((U, B) => /* @__PURE__ */ rt(
672
659
  "div",
673
660
  {
674
661
  className: "rounded border border-border/50 bg-background/40 px-2 py-1.5 flex flex-col gap-1.5 overflow-hidden",
675
662
  children: [
676
663
  /* @__PURE__ */ rt("div", { className: "grid grid-cols-[auto_1fr_auto] items-center gap-1.5", children: [
677
- /* @__PURE__ */ L(
664
+ /* @__PURE__ */ Y(
678
665
  "button",
679
666
  {
680
667
  type: "button",
@@ -687,7 +674,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
687
674
  "inline-flex items-center justify-center h-5 w-9 rounded-full border transition-colors flex-shrink-0",
688
675
  U.enabled ? "border-primary/50 bg-primary/20 text-primary" : "border-border bg-surface text-foreground-subtle"
689
676
  ].join(" "),
690
- children: /* @__PURE__ */ L(
677
+ children: /* @__PURE__ */ Y(
691
678
  "span",
692
679
  {
693
680
  className: [
@@ -698,7 +685,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
698
685
  )
699
686
  }
700
687
  ),
701
- /* @__PURE__ */ L(
688
+ /* @__PURE__ */ Y(
702
689
  "input",
703
690
  {
704
691
  className: `${Co} min-w-0`,
@@ -707,7 +694,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
707
694
  onChange: (k) => E(B, { name: k.target.value })
708
695
  }
709
696
  ),
710
- /* @__PURE__ */ L(
697
+ /* @__PURE__ */ Y(
711
698
  "button",
712
699
  {
713
700
  type: "button",
@@ -715,13 +702,13 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
715
702
  "aria-label": "Remove rule",
716
703
  onClick: () => A(B),
717
704
  className: "flex items-center justify-center h-6 w-6 rounded text-foreground-subtle hover:text-danger hover:bg-danger/10 transition-colors flex-shrink-0",
718
- children: /* @__PURE__ */ L(Lo, { className: "h-3.5 w-3.5" })
705
+ children: /* @__PURE__ */ Y(Lo, { className: "h-3.5 w-3.5" })
719
706
  }
720
707
  )
721
708
  ] }),
722
709
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-1.5 flex-wrap", children: [
723
- /* @__PURE__ */ L("span", { className: "text-[9px] uppercase tracking-wider text-foreground-subtle w-12 sm:w-14 flex-shrink-0", children: "Mode" }),
724
- /* @__PURE__ */ L(
710
+ /* @__PURE__ */ Y("span", { className: "text-[9px] uppercase tracking-wider text-foreground-subtle w-12 sm:w-14 flex-shrink-0", children: "Mode" }),
711
+ /* @__PURE__ */ Y(
725
712
  "button",
726
713
  {
727
714
  type: "button",
@@ -730,7 +717,7 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
730
717
  children: "Include"
731
718
  }
732
719
  ),
733
- /* @__PURE__ */ L(
720
+ /* @__PURE__ */ Y(
734
721
  "button",
735
722
  {
736
723
  type: "button",
@@ -741,8 +728,8 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
741
728
  )
742
729
  ] }),
743
730
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-1.5 flex-wrap", children: [
744
- /* @__PURE__ */ L("span", { className: "text-[9px] uppercase tracking-wider text-foreground-subtle w-12 sm:w-14 flex-shrink-0", children: "Zones" }),
745
- a.length === 0 ? /* @__PURE__ */ L("span", { className: "text-[10px] text-foreground-subtle italic", children: "none" }) : a.map((k) => {
731
+ /* @__PURE__ */ Y("span", { className: "text-[9px] uppercase tracking-wider text-foreground-subtle w-12 sm:w-14 flex-shrink-0", children: "Zones" }),
732
+ a.length === 0 ? /* @__PURE__ */ Y("span", { className: "text-[10px] text-foreground-subtle italic", children: "none" }) : a.map((k) => {
746
733
  const X = U.zoneIds.includes(k.id);
747
734
  return /* @__PURE__ */ rt(
748
735
  "button",
@@ -751,14 +738,14 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
751
738
  onClick: () => T(B, k.id),
752
739
  className: `${$l} ${X ? ts : es}`,
753
740
  children: [
754
- /* @__PURE__ */ L(
741
+ /* @__PURE__ */ Y(
755
742
  "span",
756
743
  {
757
744
  className: "h-2 w-2 rounded-sm",
758
745
  style: { backgroundColor: k.color || "#3b82f6" }
759
746
  }
760
747
  ),
761
- /* @__PURE__ */ L("span", { className: "truncate max-w-[7rem]", children: k.name || k.id })
748
+ /* @__PURE__ */ Y("span", { className: "truncate max-w-[7rem]", children: k.name || k.id })
762
749
  ]
763
750
  },
764
751
  k.id
@@ -766,10 +753,10 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
766
753
  })
767
754
  ] }),
768
755
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-1.5 flex-wrap", children: [
769
- /* @__PURE__ */ L("span", { className: "text-[9px] uppercase tracking-wider text-foreground-subtle w-12 sm:w-14 flex-shrink-0", children: "Class" }),
770
- U2.map((k) => {
756
+ /* @__PURE__ */ Y("span", { className: "text-[9px] uppercase tracking-wider text-foreground-subtle w-12 sm:w-14 flex-shrink-0", children: "Class" }),
757
+ G2.map((k) => {
771
758
  const X = U.classFilter.includes(k.id);
772
- return /* @__PURE__ */ L(
759
+ return /* @__PURE__ */ Y(
773
760
  "button",
774
761
  {
775
762
  type: "button",
@@ -780,28 +767,28 @@ function jh({ dev: o, stage: e, zones: a, title: l }) {
780
767
  k.id
781
768
  );
782
769
  }),
783
- U.classFilter.length === 0 && /* @__PURE__ */ L("span", { className: "text-[10px] text-foreground-subtle italic ml-1", children: "any" })
770
+ U.classFilter.length === 0 && /* @__PURE__ */ Y("span", { className: "text-[10px] text-foreground-subtle italic ml-1", children: "any" })
784
771
  ] })
785
772
  ]
786
773
  },
787
774
  U.id
788
775
  )) }),
789
- v && /* @__PURE__ */ L("p", { className: "mt-2 text-[10px] text-danger", children: v })
776
+ v && /* @__PURE__ */ Y("p", { className: "mt-2 text-[10px] text-danger", children: v })
790
777
  ] });
791
778
  }
792
- const Y2 = Math.PI / 180;
793
- function X2() {
779
+ const U2 = Math.PI / 180;
780
+ function L2() {
794
781
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
795
782
  }
796
783
  const da = typeof global < "u" ? global : typeof window < "u" ? window : typeof WorkerGlobalScope < "u" ? self : {}, J = {
797
784
  _global: da,
798
785
  version: "10.3.0",
799
- isBrowser: X2(),
786
+ isBrowser: L2(),
800
787
  isUnminified: /param/.test(function(o) {
801
788
  }.toString()),
802
789
  dblClickWindow: 400,
803
790
  getAngle(o) {
804
- return J.angleDeg ? o * Y2 : o;
791
+ return J.angleDeg ? o * U2 : o;
805
792
  },
806
793
  enableTrace: !1,
807
794
  pointerEventsEnabled: !0,
@@ -843,7 +830,7 @@ const da = typeof global < "u" ? global : typeof window < "u" ? window : typeof
843
830
  J[o.prototype.getClassName()] = o;
844
831
  };
845
832
  J._injectGlobal(J);
846
- const q2 = `Konva.js unsupported environment.
833
+ const w2 = `Konva.js unsupported environment.
847
834
 
848
835
  Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
849
836
 
@@ -858,7 +845,7 @@ bash: npm install skia-canvas
858
845
  js: import "konva/skia-backend";
859
846
  `, Vh = () => {
860
847
  if (typeof document > "u")
861
- throw new Error(q2);
848
+ throw new Error(w2);
862
849
  };
863
850
  class Ge {
864
851
  constructor(e = [1, 0, 0, 1, 0, 0]) {
@@ -931,7 +918,7 @@ class Ge {
931
918
  return g.rotation = M._getRotation(g.rotation), g;
932
919
  }
933
920
  }
934
- const j2 = "[object Array]", V2 = "[object Number]", Z2 = "[object String]", K2 = "[object Boolean]", Q2 = Math.PI / 180, k2 = 180 / Math.PI, Gi = "#", P2 = "", J2 = "0", F2 = "Konva warning: ", Zh = "Konva error: ", W2 = "rgb(", ro = {
921
+ const Y2 = "[object Array]", X2 = "[object Number]", q2 = "[object String]", j2 = "[object Boolean]", V2 = Math.PI / 180, Z2 = 180 / Math.PI, Gi = "#", K2 = "", Q2 = "0", k2 = "Konva warning: ", Zh = "Konva error: ", P2 = "rgb(", ro = {
935
922
  aliceblue: [240, 248, 255],
936
923
  antiquewhite: [250, 235, 215],
937
924
  aqua: [0, 255, 255],
@@ -1081,9 +1068,9 @@ const j2 = "[object Array]", V2 = "[object Number]", Z2 = "[object String]", K2
1081
1068
  whitesmoke: [245, 245, 245],
1082
1069
  yellow: [255, 255, 0],
1083
1070
  yellowgreen: [154, 205, 5]
1084
- }, I2 = /rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;
1071
+ }, J2 = /rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;
1085
1072
  let as = [], Hi = null;
1086
- const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || function(o) {
1073
+ const F2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || function(o) {
1087
1074
  setTimeout(o, 16);
1088
1075
  }, M = {
1089
1076
  _isElement(o) {
@@ -1096,16 +1083,16 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1096
1083
  return !!o && o.constructor === Object;
1097
1084
  },
1098
1085
  _isArray(o) {
1099
- return Object.prototype.toString.call(o) === j2;
1086
+ return Object.prototype.toString.call(o) === Y2;
1100
1087
  },
1101
1088
  _isNumber(o) {
1102
- return Object.prototype.toString.call(o) === V2 && !isNaN(o) && isFinite(o);
1089
+ return Object.prototype.toString.call(o) === X2 && !isNaN(o) && isFinite(o);
1103
1090
  },
1104
1091
  _isString(o) {
1105
- return Object.prototype.toString.call(o) === Z2;
1092
+ return Object.prototype.toString.call(o) === q2;
1106
1093
  },
1107
1094
  _isBoolean(o) {
1108
- return Object.prototype.toString.call(o) === K2;
1095
+ return Object.prototype.toString.call(o) === j2;
1109
1096
  },
1110
1097
  isObject(o) {
1111
1098
  return o instanceof Object;
@@ -1120,7 +1107,7 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1120
1107
  return o === 0 || o > 0 ? 1 : -1;
1121
1108
  },
1122
1109
  requestAnimFrame(o) {
1123
- as.push(o), as.length === 1 && $2(function() {
1110
+ as.push(o), as.length === 1 && F2(function() {
1124
1111
  const e = as;
1125
1112
  as = [], e.forEach(function(a) {
1126
1113
  a();
@@ -1155,7 +1142,7 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1155
1142
  return ((1 << 24) + (o << 16) + (e << 8) + a).toString(16).slice(1);
1156
1143
  },
1157
1144
  _hexToRgb(o) {
1158
- o = o.replace(Gi, P2);
1145
+ o = o.replace(Gi, K2);
1159
1146
  const e = parseInt(o, 16);
1160
1147
  return {
1161
1148
  r: e >> 16 & 255,
@@ -1166,7 +1153,7 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1166
1153
  getRandomColor() {
1167
1154
  let o = (Math.random() * 16777215 << 0).toString(16);
1168
1155
  for (; o.length < 6; )
1169
- o = J2 + o;
1156
+ o = Q2 + o;
1170
1157
  return Gi + o;
1171
1158
  },
1172
1159
  isCanvasFarblingActive() {
@@ -1206,7 +1193,7 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1206
1193
  r: e[0],
1207
1194
  g: e[1],
1208
1195
  b: e[2]
1209
- }) : o[0] === Gi ? this._hexToRgb(o.substring(1)) : o.substr(0, 4) === W2 ? (e = I2.exec(o.replace(/ /g, "")), {
1196
+ }) : o[0] === Gi ? this._hexToRgb(o.substring(1)) : o.substr(0, 4) === P2 ? (e = J2.exec(o.replace(/ /g, "")), {
1210
1197
  r: parseInt(e[1], 10),
1211
1198
  g: parseInt(e[2], 10),
1212
1199
  b: parseInt(e[3], 10)
@@ -1324,10 +1311,10 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1324
1311
  return o.slice(0);
1325
1312
  },
1326
1313
  degToRad(o) {
1327
- return o * Q2;
1314
+ return o * V2;
1328
1315
  },
1329
1316
  radToDeg(o) {
1330
- return o * k2;
1317
+ return o * Z2;
1331
1318
  },
1332
1319
  _degToRad(o) {
1333
1320
  return M.warn("Util._degToRad is removed. Please use public Util.degToRad instead."), M.degToRad(o);
@@ -1348,7 +1335,7 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1348
1335
  console.error(Zh + o);
1349
1336
  },
1350
1337
  warn(o) {
1351
- J.showWarnings && console.warn(F2 + o);
1338
+ J.showWarnings && console.warn(k2 + o);
1352
1339
  },
1353
1340
  each(o, e) {
1354
1341
  for (const a in o)
@@ -1454,7 +1441,7 @@ const $2 = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
1454
1441
  }
1455
1442
  }
1456
1443
  };
1457
- function t3(o) {
1444
+ function W2(o) {
1458
1445
  const e = [], a = o.length, l = M;
1459
1446
  for (let s = 0; s < a; s++) {
1460
1447
  let u = o[s];
@@ -1462,7 +1449,7 @@ function t3(o) {
1462
1449
  }
1463
1450
  return e;
1464
1451
  }
1465
- const Kh = ",", e3 = "(", n3 = ")", a3 = "([", i3 = "])", l3 = ";", s3 = "()", r3 = "=", Qh = [
1452
+ const Kh = ",", I2 = "(", $2 = ")", t5 = "([", e5 = "])", n5 = ";", a5 = "()", i5 = "=", Qh = [
1466
1453
  "arc",
1467
1454
  "arcTo",
1468
1455
  "beginPath",
@@ -1495,7 +1482,7 @@ const Kh = ",", e3 = "(", n3 = ")", a3 = "([", i3 = "])", l3 = ";", s3 = "()", r
1495
1482
  "strokeText",
1496
1483
  "transform",
1497
1484
  "translate"
1498
- ], o3 = [
1485
+ ], l5 = [
1499
1486
  "fillStyle",
1500
1487
  "strokeStyle",
1501
1488
  "shadowColor",
@@ -1516,7 +1503,7 @@ const Kh = ",", e3 = "(", n3 = ")", a3 = "([", i3 = "])", l3 = ";", s3 = "()", r
1516
1503
  "globalCompositeOperation",
1517
1504
  "imageSmoothingEnabled",
1518
1505
  "filter"
1519
- ], u3 = 100;
1506
+ ], s5 = 100;
1520
1507
  let is = null;
1521
1508
  function kh() {
1522
1509
  if (is !== null)
@@ -1548,7 +1535,7 @@ class bs {
1548
1535
  getTrace(e, a) {
1549
1536
  let l = this.traceArr, s = l.length, u = "", c, d, g, m;
1550
1537
  for (c = 0; c < s; c++)
1551
- d = l[c], g = d.method, g ? (m = d.args, u += g, e ? u += s3 : M._isArray(m[0]) ? u += a3 + m.join(Kh) + i3 : (a && (m = m.map((p) => typeof p == "number" ? Math.floor(p) : p)), u += e3 + m.join(Kh) + n3)) : (u += d.property, e || (u += r3 + d.val)), u += l3;
1538
+ d = l[c], g = d.method, g ? (m = d.args, u += g, e ? u += a5 : M._isArray(m[0]) ? u += t5 + m.join(Kh) + e5 : (a && (m = m.map((p) => typeof p == "number" ? Math.floor(p) : p)), u += I2 + m.join(Kh) + $2)) : (u += d.property, e || (u += i5 + d.val)), u += n5;
1552
1539
  return u;
1553
1540
  }
1554
1541
  clearTrace() {
@@ -1556,7 +1543,7 @@ class bs {
1556
1543
  }
1557
1544
  _trace(e) {
1558
1545
  let a = this.traceArr, l;
1559
- a.push(e), l = a.length, l >= u3 && a.shift();
1546
+ a.push(e), l = a.length, l >= s5 && a.shift();
1560
1547
  }
1561
1548
  reset() {
1562
1549
  const e = this.getCanvas().getPixelRatio();
@@ -1709,7 +1696,7 @@ class bs {
1709
1696
  const c = function(d) {
1710
1697
  let g = e[d], m;
1711
1698
  e[d] = function() {
1712
- return u = t3(Array.prototype.slice.call(arguments, 0)), m = g.apply(e, arguments), e._trace({
1699
+ return u = W2(Array.prototype.slice.call(arguments, 0)), m = g.apply(e, arguments), e._trace({
1713
1700
  method: d,
1714
1701
  args: u
1715
1702
  }), m;
@@ -1732,7 +1719,7 @@ class bs {
1732
1719
  !a || a === "source-over" || this.setAttr("globalCompositeOperation", a);
1733
1720
  }
1734
1721
  }
1735
- o3.forEach(function(o) {
1722
+ l5.forEach(function(o) {
1736
1723
  Object.defineProperty(bs.prototype, o, {
1737
1724
  get() {
1738
1725
  return this._context[o];
@@ -1742,7 +1729,7 @@ o3.forEach(function(o) {
1742
1729
  }
1743
1730
  });
1744
1731
  });
1745
- class c3 extends bs {
1732
+ class r5 extends bs {
1746
1733
  constructor(e, { willReadFrequently: a = !1 } = {}) {
1747
1734
  super(e), this._context = e._canvas.getContext("2d", {
1748
1735
  willReadFrequently: a
@@ -1814,7 +1801,7 @@ class c3 extends bs {
1814
1801
  this.setAttr("shadowColor", u), this.setAttr("shadowBlur", c * Math.min(Math.abs(p), Math.abs(_))), this.setAttr("shadowOffsetX", d.x * p), this.setAttr("shadowOffsetY", d.y * _);
1815
1802
  }
1816
1803
  }
1817
- class h3 extends bs {
1804
+ class o5 extends bs {
1818
1805
  constructor(e) {
1819
1806
  super(e), this._context = e._canvas.getContext("2d", {
1820
1807
  willReadFrequently: !0
@@ -1841,7 +1828,7 @@ class h3 extends bs {
1841
1828
  }
1842
1829
  }
1843
1830
  let ls;
1844
- function d3() {
1831
+ function u5() {
1845
1832
  if (ls)
1846
1833
  return ls;
1847
1834
  const o = M.createCanvasElement(), e = o.getContext("2d");
@@ -1853,7 +1840,7 @@ function d3() {
1853
1840
  class wo {
1854
1841
  constructor(e) {
1855
1842
  this.pixelRatio = 1, this.width = 0, this.height = 0, this.isCache = !1;
1856
- const l = (e || {}).pixelRatio || J.pixelRatio || d3();
1843
+ const l = (e || {}).pixelRatio || J.pixelRatio || u5();
1857
1844
  this.pixelRatio = l, this._canvas = M.createCanvasElement(), this._canvas.style.padding = "0", this._canvas.style.margin = "0", this._canvas.style.border = "0", this._canvas.style.background = "transparent", this._canvas.style.position = "absolute", this._canvas.style.top = "0", this._canvas.style.left = "0";
1858
1845
  }
1859
1846
  getContext() {
@@ -1899,14 +1886,14 @@ class wo {
1899
1886
  }
1900
1887
  class Yn extends wo {
1901
1888
  constructor(e = { width: 0, height: 0, willReadFrequently: !1 }) {
1902
- super(e), this.context = new c3(this, {
1889
+ super(e), this.context = new r5(this, {
1903
1890
  willReadFrequently: e.willReadFrequently
1904
1891
  }), this.setSize(e.width, e.height);
1905
1892
  }
1906
1893
  }
1907
1894
  class Yo extends wo {
1908
1895
  constructor(e = { width: 0, height: 0 }) {
1909
- super(e), this.hitCanvas = !0, this.context = new h3(this), this.setSize(e.width, e.height);
1896
+ super(e), this.hitCanvas = !0, this.context = new o5(this), this.setSize(e.width, e.height);
1910
1897
  }
1911
1898
  }
1912
1899
  const St = {
@@ -2008,7 +1995,7 @@ function G0() {
2008
1995
  return a || l || M.warn(Xn(o) + ' is a not valid value for "' + e + '" attribute. The value should be a string or a native gradient.'), o;
2009
1996
  };
2010
1997
  }
2011
- function f3() {
1998
+ function c5() {
2012
1999
  if (J.isUnminified)
2013
2000
  return function(o, e) {
2014
2001
  const a = Int8Array ? Object.getPrototypeOf(Int8Array) : null;
@@ -2023,7 +2010,7 @@ function Fe() {
2023
2010
  return o === !0 || o === !1 || M.warn(Xn(o) + ' is a not valid value for "' + e + '" attribute. The value should be a boolean.'), o;
2024
2011
  };
2025
2012
  }
2026
- function g3(o) {
2013
+ function h5(o) {
2027
2014
  if (J.isUnminified)
2028
2015
  return function(e, a) {
2029
2016
  return e == null || M.isObject(e) || M.warn(Xn(e) + ' is a not valid value for "' + a + '" attribute. The value should be an object with properties ' + o), e;
@@ -2060,7 +2047,7 @@ const Bi = "get", Ui = "set", C = {
2060
2047
  }
2061
2048
  return p;
2062
2049
  };
2063
- const m = g3(a);
2050
+ const m = h5(a);
2064
2051
  o.prototype[g] = function(p) {
2065
2052
  const _ = this.attrs[e];
2066
2053
  l && (p = l.call(this, p, e)), m && m.call(this, p, e);
@@ -2101,7 +2088,7 @@ const Bi = "get", Ui = "set", C = {
2101
2088
  this._filterUpToDate = !1;
2102
2089
  }
2103
2090
  };
2104
- function m3(o) {
2091
+ function d5(o) {
2105
2092
  const e = /(\w+)\(([^)]+)\)/g;
2106
2093
  let a;
2107
2094
  for (; (a = e.exec(o)) !== null; ) {
@@ -2155,7 +2142,7 @@ function m3(o) {
2155
2142
  return () => {
2156
2143
  };
2157
2144
  }
2158
- const gs = "absoluteOpacity", Ph = "allEventListeners", pn = "absoluteTransform", Jh = "absoluteScale", ca = "canvas", p3 = "Change", y3 = "children", v3 = "konva", xo = "listening", _3 = "mouseenter", S3 = "mouseleave", b3 = "pointerenter", C3 = "pointerleave", x3 = "touchenter", E3 = "touchleave", Fh = "set", Wh = "Shape", ms = " ", Ih = "stage", Ln = "transform", T3 = "Stage", Eo = "visible", A3 = [
2145
+ const gs = "absoluteOpacity", Ph = "allEventListeners", pn = "absoluteTransform", Jh = "absoluteScale", ca = "canvas", f5 = "Change", g5 = "children", m5 = "konva", xo = "listening", p5 = "mouseenter", y5 = "mouseleave", v5 = "pointerenter", _5 = "pointerleave", S5 = "touchenter", b5 = "touchleave", Fh = "set", Wh = "Shape", ms = " ", Ih = "stage", Ln = "transform", C5 = "Stage", Eo = "visible", x5 = [
2159
2146
  "xChange.konva",
2160
2147
  "yChange.konva",
2161
2148
  "scaleXChange.konva",
@@ -2167,10 +2154,10 @@ const gs = "absoluteOpacity", Ph = "allEventListeners", pn = "absoluteTransform"
2167
2154
  "offsetYChange.konva",
2168
2155
  "transformsEnabledChange.konva"
2169
2156
  ].join(ms);
2170
- let M3 = 1;
2157
+ let E5 = 1;
2171
2158
  class Q {
2172
2159
  constructor(e) {
2173
- this._id = M3++, this.eventListeners = {}, this.attrs = {}, this.index = 0, this._allEventListeners = null, this.parent = null, this._cache = /* @__PURE__ */ new Map(), this._attachedDepsListeners = /* @__PURE__ */ new Map(), this._lastPos = null, this._batchingTransformChange = !1, this._needClearTransformCache = !1, this._filterUpToDate = !1, this._isUnderCache = !1, this._dragEventId = null, this._shouldFireChangeEvents = !1, this.setAttrs(e), this._shouldFireChangeEvents = !0;
2160
+ this._id = E5++, this.eventListeners = {}, this.attrs = {}, this.index = 0, this._allEventListeners = null, this.parent = null, this._cache = /* @__PURE__ */ new Map(), this._attachedDepsListeners = /* @__PURE__ */ new Map(), this._lastPos = null, this._batchingTransformChange = !1, this._needClearTransformCache = !1, this._filterUpToDate = !1, this._isUnderCache = !1, this._dragEventId = null, this._shouldFireChangeEvents = !1, this.setAttrs(e), this._shouldFireChangeEvents = !0;
2174
2161
  }
2175
2162
  hasChildren() {
2176
2163
  return !1;
@@ -2299,7 +2286,7 @@ class Q {
2299
2286
  }
2300
2287
  try {
2301
2288
  for (c = e.length, u.clear(), u.drawImage(l._canvas, 0, 0, l.getWidth() / _, l.getHeight() / _), d = u.getImageData(0, 0, s.getWidth(), s.getHeight()), g = 0; g < c; g++)
2302
- m = e[g], typeof m == "string" && (m = m3(m)), m.call(this, d), u.putImageData(d, 0, 0);
2289
+ m = e[g], typeof m == "string" && (m = d5(m)), m.call(this, d), u.putImageData(d, 0, 0);
2303
2290
  } catch (v) {
2304
2291
  M.error("Unable to apply filter. " + v.message + " This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.");
2305
2292
  }
@@ -2388,7 +2375,7 @@ class Q {
2388
2375
  if (!e)
2389
2376
  return this;
2390
2377
  for (a in e)
2391
- a !== y3 && (l = Fh + M._capitalize(a), M._isFunction(this[l]) ? this[l](e[a]) : this._setAttr(a, e[a]));
2378
+ a !== g5 && (l = Fh + M._capitalize(a), M._isFunction(this[l]) ? this[l](e[a]) : this._setAttr(a, e[a]));
2392
2379
  }), this;
2393
2380
  }
2394
2381
  isListening() {
@@ -2437,7 +2424,7 @@ class Q {
2437
2424
  s.length > 0 && s[0].getDepth() <= e && g(s);
2438
2425
  }
2439
2426
  const m = this.getStage();
2440
- return a.nodeType !== T3 && m && g(m.getChildren()), l;
2427
+ return a.nodeType !== C5 && m && g(m.getChildren()), l;
2441
2428
  }
2442
2429
  getDepth() {
2443
2430
  let e = 0, a = this.parent;
@@ -2684,7 +2671,7 @@ class Q {
2684
2671
  const g = new this.constructor(a);
2685
2672
  for (l in this.eventListeners)
2686
2673
  for (s = this.eventListeners[l], u = s.length, c = 0; c < u; c++)
2687
- d = s[c], d.name.indexOf(v3) < 0 && (g.eventListeners[l] || (g.eventListeners[l] = []), g.eventListeners[l].push(d));
2674
+ d = s[c], d.name.indexOf(m5) < 0 && (g.eventListeners[l] || (g.eventListeners[l] = []), g.eventListeners[l].push(d));
2688
2675
  return g;
2689
2676
  }
2690
2677
  _toKonvaCanvas(e) {
@@ -2762,7 +2749,7 @@ class Q {
2762
2749
  }
2763
2750
  }
2764
2751
  _fireChangeEvent(e, a, l) {
2765
- this._fire(e + p3, {
2752
+ this._fire(e + f5, {
2766
2753
  oldVal: a,
2767
2754
  newVal: l
2768
2755
  });
@@ -2805,12 +2792,12 @@ class Q {
2805
2792
  _fireAndBubble(e, a, l) {
2806
2793
  a && this.nodeType === Wh && (a.target = this);
2807
2794
  const s = [
2808
- _3,
2809
- S3,
2810
- b3,
2811
- C3,
2812
- x3,
2813
- E3
2795
+ p5,
2796
+ y5,
2797
+ v5,
2798
+ _5,
2799
+ S5,
2800
+ b5
2814
2801
  ];
2815
2802
  if (!(s.indexOf(e) !== -1 && (l && (this === l || this.isAncestorOf && this.isAncestorOf(l)) || this.nodeType === "Stage" && !l))) {
2816
2803
  this._fire(e, a);
@@ -2959,7 +2946,7 @@ Q.protoListenerMap = /* @__PURE__ */ new Map();
2959
2946
  Q.prototype.nodeType = "Node";
2960
2947
  Q.prototype._attrsAffectingSize = [];
2961
2948
  Q.prototype.eventListeners = {};
2962
- Q.prototype.on(A3, function() {
2949
+ Q.prototype.on(x5, function() {
2963
2950
  if (this._batchingTransformChange) {
2964
2951
  this._needClearTransformCache = !0;
2965
2952
  return;
@@ -3234,7 +3221,7 @@ function Qi(o, e) {
3234
3221
  const l = a.getStage();
3235
3222
  l && l.content, Fi.delete(o), H0 && a._fire("lostpointercapture", qo(new PointerEvent("lostpointercapture")));
3236
3223
  }
3237
- const N3 = "Stage", R3 = "string", $h = "px", D3 = "mouseout", L0 = "mouseleave", w0 = "mouseover", Y0 = "mouseenter", X0 = "mousemove", q0 = "mousedown", j0 = "mouseup", qi = "pointermove", ji = "pointerdown", Wa = "pointerup", Vi = "pointercancel", O3 = "lostpointercapture", ss = "pointerout", Zi = "pointerleave", rs = "pointerover", os = "pointerenter", To = "contextmenu", V0 = "touchstart", Z0 = "touchend", K0 = "touchmove", Q0 = "touchcancel", Ao = "wheel", z3 = 5, G3 = [
3224
+ const T5 = "Stage", A5 = "string", $h = "px", M5 = "mouseout", L0 = "mouseleave", w0 = "mouseover", Y0 = "mouseenter", X0 = "mousemove", q0 = "mousedown", j0 = "mouseup", qi = "pointermove", ji = "pointerdown", Wa = "pointerup", Vi = "pointercancel", N5 = "lostpointercapture", ss = "pointerout", Zi = "pointerleave", rs = "pointerover", os = "pointerenter", To = "contextmenu", V0 = "touchstart", Z0 = "touchend", K0 = "touchmove", Q0 = "touchcancel", Ao = "wheel", R5 = 5, D5 = [
3238
3225
  [Y0, "_pointerenter"],
3239
3226
  [q0, "_pointerdown"],
3240
3227
  [X0, "_pointermove"],
@@ -3252,10 +3239,10 @@ const N3 = "Stage", R3 = "string", $h = "px", D3 = "mouseout", L0 = "mouseleave"
3252
3239
  [Wa, "_pointerup"],
3253
3240
  [Vi, "_pointercancel"],
3254
3241
  [Zi, "_pointerleave"],
3255
- [O3, "_lostpointercapture"]
3242
+ [N5, "_lostpointercapture"]
3256
3243
  ], uo = {
3257
3244
  mouse: {
3258
- [ss]: D3,
3245
+ [ss]: M5,
3259
3246
  [Zi]: L0,
3260
3247
  [rs]: w0,
3261
3248
  [os]: Y0,
@@ -3302,7 +3289,7 @@ const N3 = "Stage", R3 = "string", $h = "px", D3 = "mouseout", L0 = "mouseleave"
3302
3289
  function t0(o = {}) {
3303
3290
  return (o.clipFunc || o.clipWidth || o.clipHeight) && M.warn("Stage does not support clipping. Please use clip for Layers or Groups."), o;
3304
3291
  }
3305
- const H3 = "Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);", ki = [];
3292
+ const O5 = "Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);", ki = [];
3306
3293
  let xs = class extends He {
3307
3294
  constructor(e) {
3308
3295
  super(t0(e)), this._pointerPositions = [], this._changedPointerPositions = [], this._buildDOM(), this._bindContentEvents(), ki.push(this), this.on("widthChange.konva heightChange.konva", this._resizeDOM), this.on("visibleChange.konva", this._checkVisibility), this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva", () => {
@@ -3320,7 +3307,7 @@ let xs = class extends He {
3320
3307
  this.content.style.display = e;
3321
3308
  }
3322
3309
  setContainer(e) {
3323
- if (typeof e === R3) {
3310
+ if (typeof e === A5) {
3324
3311
  let a;
3325
3312
  if (e.charAt(0) === ".") {
3326
3313
  const l = e.slice(1);
@@ -3356,7 +3343,7 @@ let xs = class extends He {
3356
3343
  return e ? {
3357
3344
  x: e.x,
3358
3345
  y: e.y
3359
- } : (M.warn(H3), null);
3346
+ } : (M.warn(O5), null);
3360
3347
  }
3361
3348
  _getPointerById(e) {
3362
3349
  return this._pointerPositions.find((a) => a.id === e);
@@ -3409,7 +3396,7 @@ let xs = class extends He {
3409
3396
  }
3410
3397
  super.add(e);
3411
3398
  const l = this.children.length;
3412
- return l > z3 && M.warn("The stage has " + l + " layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."), e.setSize({ width: this.width(), height: this.height() }), e.draw(), J.isBrowser && this.content.appendChild(e.canvas._canvas), this;
3399
+ return l > R5 && M.warn("The stage has " + l + " layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."), e.setSize({ width: this.width(), height: this.height() }), e.draw(), J.isBrowser && this.content.appendChild(e.canvas._canvas), this;
3413
3400
  }
3414
3401
  getParent() {
3415
3402
  return null;
@@ -3430,7 +3417,7 @@ let xs = class extends He {
3430
3417
  return this.children;
3431
3418
  }
3432
3419
  _bindContentEvents() {
3433
- J.isBrowser && G3.forEach(([e, a]) => {
3420
+ J.isBrowser && D5.forEach(([e, a]) => {
3434
3421
  this.content.addEventListener(e, (l) => {
3435
3422
  this[a](l);
3436
3423
  }, { passive: !1 });
@@ -3668,7 +3655,7 @@ let xs = class extends He {
3668
3655
  }), this;
3669
3656
  }
3670
3657
  };
3671
- xs.prototype.nodeType = N3;
3658
+ xs.prototype.nodeType = T5;
3672
3659
  Xt(xs);
3673
3660
  C.addGetterSetter(xs, "container");
3674
3661
  J.isBrowser && document.addEventListener("visibilitychange", () => {
@@ -3682,33 +3669,33 @@ function co() {
3682
3669
  return us || (us = M.createCanvasElement().getContext("2d"), us);
3683
3670
  }
3684
3671
  const Pi = {};
3685
- function B3(o) {
3672
+ function z5(o) {
3686
3673
  const e = this.attrs.fillRule;
3687
3674
  e ? o.fill(e) : o.fill();
3688
3675
  }
3689
- function U3(o) {
3676
+ function G5(o) {
3690
3677
  o.stroke();
3691
3678
  }
3692
- function L3(o) {
3679
+ function H5(o) {
3693
3680
  const e = this.attrs.fillRule;
3694
3681
  e ? o.fill(e) : o.fill();
3695
3682
  }
3696
- function w3(o) {
3683
+ function B5(o) {
3697
3684
  o.stroke();
3698
3685
  }
3699
- function Y3() {
3686
+ function U5() {
3700
3687
  this._clearCache(k0);
3701
3688
  }
3702
- function X3() {
3689
+ function L5() {
3703
3690
  this._clearCache(P0);
3704
3691
  }
3705
- function q3() {
3692
+ function w5() {
3706
3693
  this._clearCache(J0);
3707
3694
  }
3708
- function j3() {
3695
+ function Y5() {
3709
3696
  this._clearCache(F0);
3710
3697
  }
3711
- function V3() {
3698
+ function X5() {
3712
3699
  this._clearCache(W0);
3713
3700
  }
3714
3701
  class q extends Q {
@@ -3939,19 +3926,19 @@ class q extends Q {
3939
3926
  Qi(e);
3940
3927
  }
3941
3928
  }
3942
- q.prototype._fillFunc = B3;
3943
- q.prototype._strokeFunc = U3;
3944
- q.prototype._fillFuncHit = L3;
3945
- q.prototype._strokeFuncHit = w3;
3929
+ q.prototype._fillFunc = z5;
3930
+ q.prototype._strokeFunc = G5;
3931
+ q.prototype._fillFuncHit = H5;
3932
+ q.prototype._strokeFuncHit = B5;
3946
3933
  q.prototype._centroid = !1;
3947
3934
  q.prototype.nodeType = "Shape";
3948
3935
  Xt(q);
3949
3936
  q.prototype.eventListeners = {};
3950
- q.prototype.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Y3);
3951
- q.prototype.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", X3);
3952
- q.prototype.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", q3);
3953
- q.prototype.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", j3);
3954
- q.prototype.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", V3);
3937
+ q.prototype.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", U5);
3938
+ q.prototype.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", L5);
3939
+ q.prototype.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", w5);
3940
+ q.prototype.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", Y5);
3941
+ q.prototype.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", X5);
3955
3942
  C.addGetterSetter(q, "stroke", void 0, G0());
3956
3943
  C.addGetterSetter(q, "strokeWidth", 2, K());
3957
3944
  C.addGetterSetter(q, "fillAfterStrokeEnabled", !1);
@@ -4043,13 +4030,13 @@ C.backCompat(q, {
4043
4030
  getDrawHitFunc: "getHitFunc",
4044
4031
  setDrawHitFunc: "setHitFunc"
4045
4032
  });
4046
- const Z3 = "beforeDraw", K3 = "draw", I0 = [
4033
+ const q5 = "beforeDraw", j5 = "draw", I0 = [
4047
4034
  { x: 0, y: 0 },
4048
4035
  { x: -1, y: -1 },
4049
4036
  { x: 1, y: -1 },
4050
4037
  { x: 1, y: 1 },
4051
4038
  { x: -1, y: 1 }
4052
- ], Q3 = I0.length;
4039
+ ], V5 = I0.length;
4053
4040
  let pa = class extends He {
4054
4041
  constructor(e) {
4055
4042
  super(e), this.canvas = new Yn(), this.hitCanvas = new Yo({
@@ -4162,7 +4149,7 @@ let pa = class extends He {
4162
4149
  return null;
4163
4150
  let a = 1, l = !1;
4164
4151
  for (; ; ) {
4165
- for (let s = 0; s < Q3; s++) {
4152
+ for (let s = 0; s < V5; s++) {
4166
4153
  const u = I0[s], c = this._getIntersection({
4167
4154
  x: e.x + u.x * a,
4168
4155
  y: e.y + u.y * a
@@ -4195,9 +4182,9 @@ let pa = class extends He {
4195
4182
  }
4196
4183
  drawScene(e, a, l) {
4197
4184
  const s = this.getLayer(), u = e || s && s.getCanvas();
4198
- return this._fire(Z3, {
4185
+ return this._fire(q5, {
4199
4186
  node: this
4200
- }), this.clearBeforeDraw() && u.getContext().clear(), He.prototype.drawScene.call(this, u, a, l), this._fire(K3, {
4187
+ }), this.clearBeforeDraw() && u.getContext().clear(), He.prototype.drawScene.call(this, u, a, l), this._fire(j5, {
4201
4188
  node: this
4202
4189
  }), this;
4203
4190
  }
@@ -4331,15 +4318,15 @@ class je {
4331
4318
  je.animations = [];
4332
4319
  je.animIdCounter = 0;
4333
4320
  je.animRunning = !1;
4334
- const k3 = {
4321
+ const Z5 = {
4335
4322
  node: 1,
4336
4323
  duration: 1,
4337
4324
  easing: 1,
4338
4325
  onFinish: 1,
4339
4326
  yoyo: 1
4340
- }, P3 = 1, e0 = 2, n0 = 3, a0 = ["fill", "stroke", "shadowColor"];
4341
- let J3 = 0;
4342
- class F3 {
4327
+ }, K5 = 1, e0 = 2, n0 = 3, a0 = ["fill", "stroke", "shadowColor"];
4328
+ let Q5 = 0;
4329
+ class k5 {
4343
4330
  constructor(e, a, l, s, u, c, d) {
4344
4331
  this.prop = e, this.propFunc = a, this.begin = s, this._pos = s, this.duration = c, this._change = 0, this.prevPos = 0, this.yoyo = d, this._time = 0, this._position = 0, this._startTime = 0, this._finish = 0, this.func = l, this._change = u - this.begin, this.pause();
4345
4332
  }
@@ -4382,7 +4369,7 @@ class F3 {
4382
4369
  this.state === e0 ? this.setTime(e) : this.state === n0 && this.setTime(this.duration - e);
4383
4370
  }
4384
4371
  pause() {
4385
- this.state = P3, this.fire("onPause");
4372
+ this.state = K5, this.fire("onPause");
4386
4373
  }
4387
4374
  getTimer() {
4388
4375
  return (/* @__PURE__ */ new Date()).getTime();
@@ -4392,15 +4379,15 @@ class zt {
4392
4379
  constructor(e) {
4393
4380
  const a = this, l = e.node, s = l._id, u = e.easing || Ji.Linear, c = !!e.yoyo;
4394
4381
  let d, g;
4395
- typeof e.duration > "u" ? d = 0.3 : e.duration === 0 ? d = 1e-3 : d = e.duration, this.node = l, this._id = J3++;
4382
+ typeof e.duration > "u" ? d = 0.3 : e.duration === 0 ? d = 1e-3 : d = e.duration, this.node = l, this._id = Q5++;
4396
4383
  const m = l.getLayer() || (l instanceof J.Stage ? l.getLayers() : null);
4397
4384
  m || M.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."), this.anim = new je(function() {
4398
4385
  a.tween.onEnterFrame();
4399
- }, m), this.tween = new F3(g, function(p) {
4386
+ }, m), this.tween = new k5(g, function(p) {
4400
4387
  a._tweenFunc(p);
4401
4388
  }, u, 0, 1, d * 1e3, c), this._addListeners(), zt.attrs[s] || (zt.attrs[s] = {}), zt.attrs[s][this._id] || (zt.attrs[s][this._id] = {}), zt.tweens[s] || (zt.tweens[s] = {});
4402
4389
  for (g in e)
4403
- k3[g] === void 0 && this._addAttr(g, e[g]);
4390
+ Z5[g] === void 0 && this._addAttr(g, e[g]);
4404
4391
  this.reset(), this.onFinish = e.onFinish, this.onReset = e.onReset, this.onUpdate = e.onUpdate;
4405
4392
  }
4406
4393
  _addAttr(e, a) {
@@ -4630,7 +4617,7 @@ function i0(o, e) {
4630
4617
  }
4631
4618
  return l;
4632
4619
  }
4633
- function W3(o) {
4620
+ function P5(o) {
4634
4621
  const e = [
4635
4622
  [o[0], o[2], o[4], o[6]],
4636
4623
  [o[1], o[3], o[5], o[7]]
@@ -4719,7 +4706,7 @@ let vn = class extends q {
4719
4706
  ] : this.bezier() ? e = [
4720
4707
  e[0],
4721
4708
  e[1],
4722
- ...W3(this.points()),
4709
+ ...P5(this.points()),
4723
4710
  e[e.length - 2],
4724
4711
  e[e.length - 1]
4725
4712
  ] : e = this.points();
@@ -4740,8 +4727,8 @@ Xt(vn);
4740
4727
  C.addGetterSetter(vn, "closed", !1);
4741
4728
  C.addGetterSetter(vn, "bezier", !1);
4742
4729
  C.addGetterSetter(vn, "tension", 0, K());
4743
- C.addGetterSetter(vn, "points", [], f3());
4744
- const I3 = [
4730
+ C.addGetterSetter(vn, "points", [], c5());
4731
+ const J5 = [
4745
4732
  [],
4746
4733
  [],
4747
4734
  [
@@ -5089,7 +5076,7 @@ const I3 = [
5089
5076
  -0.9951872199970213,
5090
5077
  0.9951872199970213
5091
5078
  ]
5092
- ], $3 = [
5079
+ ], F5 = [
5093
5080
  [],
5094
5081
  [],
5095
5082
  [1, 1],
@@ -5434,12 +5421,12 @@ const I3 = [
5434
5421
  0.0123412297999872,
5435
5422
  0.0123412297999872
5436
5423
  ]
5437
- ], t5 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], l0 = (o, e, a) => {
5424
+ ], W5 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], l0 = (o, e, a) => {
5438
5425
  let l, s;
5439
5426
  const c = a / 2;
5440
5427
  l = 0;
5441
5428
  for (let d = 0; d < 20; d++)
5442
- s = c * I3[20][d] + c, l += $3[20][d] * e5(o, e, s);
5429
+ s = c * J5[20][d] + c, l += F5[20][d] * I5(o, e, s);
5443
5430
  return c * l;
5444
5431
  }, s0 = (o, e, a) => {
5445
5432
  a === void 0 && (a = 1);
@@ -5449,7 +5436,7 @@ const I3 = [
5449
5436
  const p = g / (2 * d), _ = m / d, v = a + p, b = _ - p * p, S = v * v + b > 0 ? Math.sqrt(v * v + b) : 0, R = p * p + b > 0 ? Math.sqrt(p * p + b) : 0, T = p + Math.sqrt(p * p + b) !== 0 ? b * Math.log(Math.abs((v + S) / (p + R))) : 0;
5450
5437
  return Math.sqrt(d) / 2 * (v * S - p * R + T);
5451
5438
  };
5452
- function e5(o, e, a) {
5439
+ function I5(o, e, a) {
5453
5440
  const l = No(1, a, o), s = No(1, a, e), u = l * l + s * s;
5454
5441
  return Math.sqrt(u);
5455
5442
  }
@@ -5461,7 +5448,7 @@ const No = (o, e, a) => {
5461
5448
  if (o === 0) {
5462
5449
  u = 0;
5463
5450
  for (let c = 0; c <= l; c++)
5464
- u += t5[l][c] * Math.pow(1 - e, l - c) * Math.pow(e, c) * a[c];
5451
+ u += W5[l][c] * Math.pow(1 - e, l - c) * Math.pow(e, c) * a[c];
5465
5452
  return u;
5466
5453
  } else {
5467
5454
  s = new Array(l);
@@ -5736,7 +5723,7 @@ class Gt extends q {
5736
5723
  for (; S.length > 0 && !isNaN(S[0]); ) {
5737
5724
  let T = "", A = [];
5738
5725
  const E = d, O = g;
5739
- let H, U, B, k, X, P, nt, w, j, tt;
5726
+ let H, U, B, k, X, P, nt, L, j, tt;
5740
5727
  switch (b) {
5741
5728
  case "l":
5742
5729
  d += S.shift(), g += S.shift(), T = "L", A.push(d, g);
@@ -5795,10 +5782,10 @@ class Gt extends q {
5795
5782
  U = d, B = g, H = u[u.length - 1], H.command === "Q" && (U = d + (d - H.points[0]), B = g + (g - H.points[1])), d += S.shift(), g += S.shift(), T = "Q", A.push(U, B, d, g);
5796
5783
  break;
5797
5784
  case "A":
5798
- k = S.shift(), X = S.shift(), P = S.shift(), nt = S.shift(), w = S.shift(), j = d, tt = g, d = S.shift(), g = S.shift(), T = "A", A = this.convertEndpointToCenterParameterization(j, tt, d, g, nt, w, k, X, P);
5785
+ k = S.shift(), X = S.shift(), P = S.shift(), nt = S.shift(), L = S.shift(), j = d, tt = g, d = S.shift(), g = S.shift(), T = "A", A = this.convertEndpointToCenterParameterization(j, tt, d, g, nt, L, k, X, P);
5799
5786
  break;
5800
5787
  case "a":
5801
- k = S.shift(), X = S.shift(), P = S.shift(), nt = S.shift(), w = S.shift(), j = d, tt = g, d += S.shift(), g += S.shift(), T = "A", A = this.convertEndpointToCenterParameterization(j, tt, d, g, nt, w, k, X, P);
5788
+ k = S.shift(), X = S.shift(), P = S.shift(), nt = S.shift(), L = S.shift(), j = d, tt = g, d += S.shift(), g += S.shift(), T = "A", A = this.convertEndpointToCenterParameterization(j, tt, d, g, nt, L, k, X, P);
5802
5789
  break;
5803
5790
  }
5804
5791
  u.push({
@@ -5851,10 +5838,10 @@ class Gt extends q {
5851
5838
  u === c && (S *= -1), isNaN(S) && (S = 0);
5852
5839
  const R = S * d * v / g, T = S * -g * _ / d, A = (e + l) / 2 + Math.cos(p) * R - Math.sin(p) * T, E = (a + s) / 2 + Math.sin(p) * R + Math.cos(p) * T, O = function(nt) {
5853
5840
  return Math.sqrt(nt[0] * nt[0] + nt[1] * nt[1]);
5854
- }, H = function(nt, w) {
5855
- return (nt[0] * w[0] + nt[1] * w[1]) / (O(nt) * O(w));
5856
- }, U = function(nt, w) {
5857
- return (nt[0] * w[1] < nt[1] * w[0] ? -1 : 1) * Math.acos(H(nt, w));
5841
+ }, H = function(nt, L) {
5842
+ return (nt[0] * L[0] + nt[1] * L[1]) / (O(nt) * O(L));
5843
+ }, U = function(nt, L) {
5844
+ return (nt[0] * L[1] < nt[1] * L[0] ? -1 : 1) * Math.acos(H(nt, L));
5858
5845
  }, B = U([1, 0], [(_ - R) / d, (v - T) / g]), k = [(_ - R) / d, (v - T) / g], X = [(-1 * _ - R) / d, (-1 * v - T) / g];
5859
5846
  let P = U(k, X);
5860
5847
  return H(k, X) <= -1 && (P = Math.PI), H(k, X) >= 1 && (P = 0), c === 0 && P > 0 && (P = P - 2 * Math.PI), c === 1 && P < 0 && (P = P + 2 * Math.PI), [A, E, d, g, B, P, p, c];
@@ -6040,7 +6027,7 @@ const $0 = [
6040
6027
  "pointerDirection",
6041
6028
  "pointerWidth",
6042
6029
  "pointerHeight"
6043
- ], n5 = "Change.konva", a5 = "none", Ro = "up", Do = "right", Oo = "down", zo = "left", i5 = $0.length;
6030
+ ], $5 = "Change.konva", t3 = "none", Ro = "up", Do = "right", Oo = "down", zo = "left", e3 = $0.length;
6044
6031
  class Vo extends Ia {
6045
6032
  constructor(e) {
6046
6033
  super(e), this.on("add.konva", function(a) {
@@ -6058,8 +6045,8 @@ class Vo extends Ia {
6058
6045
  const s = function() {
6059
6046
  a._sync();
6060
6047
  };
6061
- for (l = 0; l < i5; l++)
6062
- e.on($0[l] + n5, s);
6048
+ for (l = 0; l < e3; l++)
6049
+ e.on($0[l] + $5, s);
6063
6050
  }
6064
6051
  getWidth() {
6065
6052
  return this.getText().width();
@@ -6116,7 +6103,7 @@ class va extends q {
6116
6103
  }
6117
6104
  va.prototype.className = "Tag";
6118
6105
  Xt(va);
6119
- C.addGetterSetter(va, "pointerDirection", a5);
6106
+ C.addGetterSetter(va, "pointerDirection", t3);
6120
6107
  C.addGetterSetter(va, "pointerWidth", 0, K());
6121
6108
  C.addGetterSetter(va, "pointerHeight", 0, K());
6122
6109
  C.addGetterSetter(va, "cornerRadius", 0, Cs(4));
@@ -6315,7 +6302,7 @@ function wn(o) {
6315
6302
  return e;
6316
6303
  }, []);
6317
6304
  }
6318
- const Pa = "auto", l5 = "center", td = "inherit", Li = "justify", s5 = "Change.konva", ed = "2d", u0 = "-", nd = "left", r5 = "text", o5 = "Text", u5 = "top", c5 = "bottom", c0 = "middle", ad = "normal", h5 = "px ", cs = " ", d5 = "right", h0 = "rtl", f5 = "word", g5 = "char", d0 = "none", fo = "…", id = [
6305
+ const Pa = "auto", n3 = "center", td = "inherit", Li = "justify", a3 = "Change.konva", ed = "2d", u0 = "-", nd = "left", i3 = "text", l3 = "Text", s3 = "top", r3 = "bottom", c0 = "middle", ad = "normal", o3 = "px ", cs = " ", u3 = "right", h0 = "rtl", c3 = "word", h3 = "char", d0 = "none", fo = "…", id = [
6319
6306
  "direction",
6320
6307
  "fontFamily",
6321
6308
  "fontSize",
@@ -6331,9 +6318,9 @@ const Pa = "auto", l5 = "center", td = "inherit", Li = "justify", s5 = "Change.k
6331
6318
  "wrap",
6332
6319
  "ellipsis",
6333
6320
  "letterSpacing"
6334
- ], m5 = id.length;
6321
+ ], d3 = id.length;
6335
6322
  let wi = null;
6336
- function p5() {
6323
+ function f3() {
6337
6324
  if (wi !== null)
6338
6325
  return wi;
6339
6326
  wi = !1;
@@ -6354,7 +6341,7 @@ function p5() {
6354
6341
  }
6355
6342
  return wi;
6356
6343
  }
6357
- function y5(o) {
6344
+ function g3(o) {
6358
6345
  return o.split(",").map((e) => {
6359
6346
  e = e.trim();
6360
6347
  const a = e.indexOf(" ") >= 0, l = e.indexOf('"') >= 0 || e.indexOf("'") >= 0;
@@ -6365,20 +6352,20 @@ let hs;
6365
6352
  function go() {
6366
6353
  return hs || (hs = M.createCanvasElement().getContext(ed), hs);
6367
6354
  }
6368
- function v5(o) {
6355
+ function m3(o) {
6369
6356
  o.fillText(this._partialText, this._partialTextX, this._partialTextY);
6370
6357
  }
6371
- function _5(o) {
6358
+ function p3(o) {
6372
6359
  o.setAttr("miterLimit", 2), o.strokeText(this._partialText, this._partialTextX, this._partialTextY);
6373
6360
  }
6374
- function S5(o) {
6361
+ function y3(o) {
6375
6362
  return o = o || {}, !o.fillLinearGradientColorStops && !o.fillRadialGradientColorStops && !o.fillPatternImage && (o.fill = o.fill || "black"), o;
6376
6363
  }
6377
6364
  let Ht = class extends q {
6378
6365
  constructor(e) {
6379
- super(S5(e)), this._partialTextX = 0, this._partialTextY = 0;
6380
- for (let a = 0; a < m5; a++)
6381
- this.on(id[a] + s5, this._setTextData);
6366
+ super(y3(e)), this._partialTextX = 0, this._partialTextY = 0;
6367
+ for (let a = 0; a < d3; a++)
6368
+ this.on(id[a] + a3, this._setTextData);
6382
6369
  this._setTextData();
6383
6370
  }
6384
6371
  _sceneFunc(e) {
@@ -6395,10 +6382,10 @@ let Ht = class extends q {
6395
6382
  const P = (a = X.fontBoundingBoxAscent) !== null && a !== void 0 ? a : X.actualBoundingBoxAscent, nt = (l = X.fontBoundingBoxDescent) !== null && l !== void 0 ? l : X.actualBoundingBoxDescent;
6396
6383
  B = (P - nt) / 2 + g / 2;
6397
6384
  }
6398
- for (p === h0 && e.setAttr("direction", p), e.setAttr("font", this._getContextFont()), e.setAttr("textBaseline", k), e.setAttr("textAlign", nd), m === c0 ? _ = (this.getHeight() - u * g - c * 2) / 2 : m === c5 && (_ = this.getHeight() - u * g - c * 2), e.translate(c, _ + c), U = 0; U < u; U++) {
6385
+ for (p === h0 && e.setAttr("direction", p), e.setAttr("font", this._getContextFont()), e.setAttr("textBaseline", k), e.setAttr("textAlign", nd), m === c0 ? _ = (this.getHeight() - u * g - c * 2) / 2 : m === r3 && (_ = this.getHeight() - u * g - c * 2), e.translate(c, _ + c), U = 0; U < u; U++) {
6399
6386
  let X = 0, P = 0;
6400
- const nt = s[U], w = nt.text, j = nt.width, tt = nt.lastInParagraph;
6401
- if (e.save(), v === d5 ? X += b - j - c * 2 : v === l5 && (X += (b - j - c * 2) / 2), O) {
6387
+ const nt = s[U], L = nt.text, j = nt.width, tt = nt.lastInParagraph;
6388
+ if (e.save(), v === u3 ? X += b - j - c * 2 : v === n3 && (X += (b - j - c * 2) / 2), O) {
6402
6389
  e.save(), e.beginPath();
6403
6390
  const I = E ?? (J.legacyTextRendering ? Math.round(d / 2) : Math.round(d / 4)), F = X, ht = B + P + I;
6404
6391
  e.moveTo(F, ht);
@@ -6409,7 +6396,7 @@ let Ht = class extends q {
6409
6396
  }
6410
6397
  const et = X;
6411
6398
  if (p !== h0 && (S !== 0 || v === Li || R)) {
6412
- const I = w.split(" ").length - 1, F = wn(w);
6399
+ const I = L.split(" ").length - 1, F = wn(L);
6413
6400
  for (let ht = 0; ht < F.length; ht++) {
6414
6401
  const at = F[ht];
6415
6402
  if (at === " " && !tt && v === Li && (X += (b - c * 2 - j) / I), this._partialTextX = X, this._partialTextY = B + P, this._partialText = at, R) {
@@ -6430,7 +6417,7 @@ let Ht = class extends q {
6430
6417
  e.fillStrokeShape(this), R && e.restore(), X += this.measureSize(at).width + S;
6431
6418
  }
6432
6419
  } else
6433
- S !== 0 && e.setAttr("letterSpacing", `${S}px`), this._partialTextX = X, this._partialTextY = B + P, this._partialText = w, e.fillStrokeShape(this);
6420
+ S !== 0 && e.setAttr("letterSpacing", `${S}px`), this._partialTextX = X, this._partialTextY = B + P, this._partialText = L, e.fillStrokeShape(this);
6434
6421
  if (H) {
6435
6422
  e.save(), e.beginPath();
6436
6423
  const I = J.legacyTextRendering ? 0 : -Math.round(d / 4), F = et;
@@ -6449,7 +6436,7 @@ let Ht = class extends q {
6449
6436
  }
6450
6437
  setText(e) {
6451
6438
  const a = M._isString(e) ? e : e == null ? "" : e + "";
6452
- return this._setAttr(r5, a), this;
6439
+ return this._setAttr(i3, a), this;
6453
6440
  }
6454
6441
  getWidth() {
6455
6442
  return this.attrs.width === Pa || this.attrs.width === void 0 ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
@@ -6485,7 +6472,7 @@ let Ht = class extends q {
6485
6472
  };
6486
6473
  }
6487
6474
  _getContextFont() {
6488
- return this.fontStyle() + cs + this.fontVariant() + cs + (this.fontSize() + h5) + y5(this.fontFamily());
6475
+ return this.fontStyle() + cs + this.fontVariant() + cs + (this.fontSize() + o3) + g3(this.fontFamily());
6489
6476
  }
6490
6477
  _addTextLine(e) {
6491
6478
  this.align() === Li && (e = e.trim());
@@ -6502,7 +6489,7 @@ let Ht = class extends q {
6502
6489
  }
6503
6490
  _setTextData() {
6504
6491
  let e = this.text().split(`
6505
- `), a = +this.fontSize(), l = 0, s = this.lineHeight() * a, u = this.attrs.width, c = this.attrs.height, d = u !== Pa && u !== void 0, g = c !== Pa && c !== void 0, m = this.padding(), p = u - m * 2, _ = c - m * 2, v = 0, b = this.wrap(), S = b !== d0, R = b !== g5 && S, T = this.ellipsis();
6492
+ `), a = +this.fontSize(), l = 0, s = this.lineHeight() * a, u = this.attrs.width, c = this.attrs.height, d = u !== Pa && u !== void 0, g = c !== Pa && c !== void 0, m = this.padding(), p = u - m * 2, _ = c - m * 2, v = 0, b = this.wrap(), S = b !== d0, R = b !== h3 && S, T = this.ellipsis();
6506
6493
  this.textArr = [], go().font = this._getContextFont();
6507
6494
  const A = T ? this._getTextWidth(fo) : 0;
6508
6495
  for (let E = 0, O = e.length; E < O; ++E) {
@@ -6511,7 +6498,7 @@ let Ht = class extends q {
6511
6498
  for (; H.length > 0; ) {
6512
6499
  let B = 0, k = wn(H).length, X = "", P = 0;
6513
6500
  for (; B < k; ) {
6514
- const nt = B + k >>> 1, w = wn(H), j = w.slice(0, nt + 1).join(""), tt = this._getTextWidth(j);
6501
+ const nt = B + k >>> 1, L = wn(H), j = L.slice(0, nt + 1).join(""), tt = this._getTextWidth(j);
6515
6502
  (T && g && v + s > _ ? tt + A : tt) <= p ? (B = nt + 1, X = j, P = tt) : k = nt;
6516
6503
  }
6517
6504
  if (X) {
@@ -6557,12 +6544,12 @@ let Ht = class extends q {
6557
6544
  }
6558
6545
  _useBufferCanvas() {
6559
6546
  const e = this.textDecoration().indexOf("underline") !== -1 || this.textDecoration().indexOf("line-through") !== -1, a = this.hasShadow();
6560
- return e && a || a && this.getAbsoluteOpacity() !== 1 && p5() ? !0 : super._useBufferCanvas();
6547
+ return e && a || a && this.getAbsoluteOpacity() !== 1 && f3() ? !0 : super._useBufferCanvas();
6561
6548
  }
6562
6549
  };
6563
- Ht.prototype._fillFunc = v5;
6564
- Ht.prototype._strokeFunc = _5;
6565
- Ht.prototype.className = o5;
6550
+ Ht.prototype._fillFunc = m3;
6551
+ Ht.prototype._strokeFunc = p3;
6552
+ Ht.prototype.className = l3;
6566
6553
  Ht.prototype._attrsAffectingSize = [
6567
6554
  "text",
6568
6555
  "fontSize",
@@ -6581,16 +6568,16 @@ C.addGetterSetter(Ht, "fontStyle", ad);
6581
6568
  C.addGetterSetter(Ht, "fontVariant", ad);
6582
6569
  C.addGetterSetter(Ht, "padding", 0, K());
6583
6570
  C.addGetterSetter(Ht, "align", nd);
6584
- C.addGetterSetter(Ht, "verticalAlign", u5);
6571
+ C.addGetterSetter(Ht, "verticalAlign", s3);
6585
6572
  C.addGetterSetter(Ht, "lineHeight", 1, K());
6586
- C.addGetterSetter(Ht, "wrap", f5);
6573
+ C.addGetterSetter(Ht, "wrap", c3);
6587
6574
  C.addGetterSetter(Ht, "ellipsis", !1, Fe());
6588
6575
  C.addGetterSetter(Ht, "letterSpacing", 0, K());
6589
6576
  C.addGetterSetter(Ht, "text", "", ma());
6590
6577
  C.addGetterSetter(Ht, "textDecoration", "");
6591
6578
  C.addGetterSetter(Ht, "underlineOffset", void 0, K());
6592
6579
  C.addGetterSetter(Ht, "charRenderFunc", void 0);
6593
- const b5 = "", ld = "normal";
6580
+ const v3 = "", ld = "normal";
6594
6581
  function sd(o) {
6595
6582
  o.fillText(this.partialText, 0, 0);
6596
6583
  }
@@ -6762,11 +6749,11 @@ C.addGetterSetter(Ft, "align", "left");
6762
6749
  C.addGetterSetter(Ft, "letterSpacing", 0, K());
6763
6750
  C.addGetterSetter(Ft, "textBaseline", "middle");
6764
6751
  C.addGetterSetter(Ft, "fontVariant", ld);
6765
- C.addGetterSetter(Ft, "text", b5);
6752
+ C.addGetterSetter(Ft, "text", v3);
6766
6753
  C.addGetterSetter(Ft, "textDecoration", "");
6767
6754
  C.addGetterSetter(Ft, "kerningFunc", void 0);
6768
6755
  C.addGetterSetter(Ft, "direction", "inherit");
6769
- const od = "tr-konva", C5 = [
6756
+ const od = "tr-konva", _3 = [
6770
6757
  "resizeEnabledChange",
6771
6758
  "rotateAnchorOffsetChange",
6772
6759
  "rotateAnchorAngleChange",
@@ -6783,7 +6770,7 @@ const od = "tr-konva", C5 = [
6783
6770
  "anchorCornerRadiusChange",
6784
6771
  "ignoreStrokeChange",
6785
6772
  "anchorStyleFuncChange"
6786
- ].map((o) => o + `.${od}`).join(" "), f0 = "nodesRect", x5 = [
6773
+ ].map((o) => o + `.${od}`).join(" "), f0 = "nodesRect", S3 = [
6787
6774
  "widthChange",
6788
6775
  "heightChange",
6789
6776
  "scaleXChange",
@@ -6796,7 +6783,7 @@ const od = "tr-konva", C5 = [
6796
6783
  "transformsEnabledChange",
6797
6784
  "strokeWidthChange",
6798
6785
  "draggableChange"
6799
- ], E5 = {
6786
+ ], b3 = {
6800
6787
  "top-left": -45,
6801
6788
  "top-center": 0,
6802
6789
  "top-right": 45,
@@ -6805,11 +6792,11 @@ const od = "tr-konva", C5 = [
6805
6792
  "bottom-left": -135,
6806
6793
  "bottom-center": 180,
6807
6794
  "bottom-right": 135
6808
- }, T5 = "ontouchstart" in J._global;
6809
- function A5(o, e, a) {
6795
+ }, C3 = "ontouchstart" in J._global;
6796
+ function x3(o, e, a) {
6810
6797
  if (o === "rotater")
6811
6798
  return a;
6812
- e += M.degToRad(E5[o] || 0);
6799
+ e += M.degToRad(b3[o] || 0);
6813
6800
  const l = (M.radToDeg(e) % 360 + 360) % 360;
6814
6801
  return M._inRange(l, 315 + 22.5, 360) || M._inRange(l, 0, 22.5) ? "ns-resize" : M._inRange(l, 45 - 22.5, 45 + 22.5) ? "nesw-resize" : M._inRange(l, 90 - 22.5, 90 + 22.5) ? "ew-resize" : M._inRange(l, 135 - 22.5, 135 + 22.5) ? "nwse-resize" : M._inRange(l, 180 - 22.5, 180 + 22.5) ? "ns-resize" : M._inRange(l, 225 - 22.5, 225 + 22.5) ? "nesw-resize" : M._inRange(l, 270 - 22.5, 270 + 22.5) ? "ew-resize" : M._inRange(l, 315 - 22.5, 315 + 22.5) ? "nwse-resize" : (M.error("Transformer has unknown angle for cursor detection: " + l), "pointer");
6815
6802
  }
@@ -6823,7 +6810,7 @@ const ps = [
6823
6810
  "bottom-center",
6824
6811
  "bottom-right"
6825
6812
  ];
6826
- function M5(o) {
6813
+ function E3(o) {
6827
6814
  return {
6828
6815
  x: o.x + o.width / 2 * Math.cos(o.rotation) + o.height / 2 * Math.sin(-o.rotation),
6829
6816
  y: o.y + o.height / 2 * Math.cos(o.rotation) + o.width / 2 * Math.sin(o.rotation)
@@ -6838,11 +6825,11 @@ function ud(o, e, a) {
6838
6825
  y: s
6839
6826
  };
6840
6827
  }
6841
- function N5(o, e) {
6842
- const a = M5(o);
6828
+ function T3(o, e) {
6829
+ const a = E3(o);
6843
6830
  return ud(o, e, a);
6844
6831
  }
6845
- function R5(o, e, a) {
6832
+ function A3(o, e, a) {
6846
6833
  let l = e;
6847
6834
  for (let s = 0; s < o.length; s++) {
6848
6835
  const u = J.getAngle(o[s]), c = Math.abs(u - e) % (Math.PI * 2);
@@ -6853,7 +6840,7 @@ function R5(o, e, a) {
6853
6840
  let Go = 0;
6854
6841
  class pt extends Ia {
6855
6842
  constructor(e) {
6856
- super(e), this._movingAnchorName = null, this._transforming = !1, this._elementsCreated = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(C5, this.update), this.getNode() && this.update();
6843
+ super(e), this._movingAnchorName = null, this._transforming = !1, this._elementsCreated = !1, this._createElements(), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this.update = this.update.bind(this), this.on(_3, this.update), this.getNode() && this.update();
6857
6844
  }
6858
6845
  attachTo(e) {
6859
6846
  return this.setNode(e), this;
@@ -6878,7 +6865,7 @@ class pt extends Ia {
6878
6865
  const c = s._attrsAffectingSize.map((d) => d + "Change." + this._getEventNamespace()).join(" ");
6879
6866
  s.on(c, u);
6880
6867
  }
6881
- s.on(x5.map((c) => c + `.${this._getEventNamespace()}`).join(" "), u), s.on(`absoluteTransformChange.${this._getEventNamespace()}`, u), this._proxyDrag(s);
6868
+ s.on(S3.map((c) => c + `.${this._getEventNamespace()}`).join(" "), u), s.on(`absoluteTransformChange.${this._getEventNamespace()}`, u), this._proxyDrag(s);
6882
6869
  }), this._resetTransformCache(), !!this.findOne(".top-left") && this.update(), this;
6883
6870
  }
6884
6871
  _proxyDrag(e) {
@@ -7001,7 +6988,7 @@ class pt extends Ia {
7001
6988
  name: e + " _anchor",
7002
6989
  dragDistance: 0,
7003
6990
  draggable: !0,
7004
- hitStrokeWidth: T5 ? 10 : "auto"
6991
+ hitStrokeWidth: C3 ? 10 : "auto"
7005
6992
  }), l = this;
7006
6993
  a.on("mousedown touchstart", function(s) {
7007
6994
  l._handleMouseDown(s);
@@ -7010,7 +6997,7 @@ class pt extends Ia {
7010
6997
  }), a.on("dragend", (s) => {
7011
6998
  s.cancelBubble = !0;
7012
6999
  }), a.on("mouseenter", () => {
7013
- const s = J.getAngle(this.rotation()), u = this.rotateAnchorCursor(), c = A5(e, s, u);
7000
+ const s = J.getAngle(this.rotation()), u = this.rotateAnchorCursor(), c = x3(e, s, u);
7014
7001
  a.getStage().content && (a.getStage().content.style.cursor = c), this._cursorChange = !0;
7015
7002
  }), a.on("mouseout", () => {
7016
7003
  a.getStage().content && (a.getStage().content.style.cursor = ""), this._cursorChange = !1;
@@ -7083,7 +7070,7 @@ class pt extends Ia {
7083
7070
  const O = J.getAngle(this.rotateAnchorAngle());
7084
7071
  let H = Math.atan2(-l, a) + Math.PI / 2 - O;
7085
7072
  E.height < 0 && (H -= Math.PI);
7086
- const B = J.getAngle(this.rotation()) + H, k = J.getAngle(this.rotationSnapTolerance()), P = R5(this.rotationSnaps(), B, k) - E.rotation, nt = N5(E, P);
7073
+ const B = J.getAngle(this.rotation()) + H, k = J.getAngle(this.rotationSnapTolerance()), P = A3(this.rotationSnaps(), B, k) - E.rotation, nt = T3(E, P);
7087
7074
  this._fitNodesInto(nt, e);
7088
7075
  return;
7089
7076
  }
@@ -7372,14 +7359,14 @@ class pt extends Ia {
7372
7359
  }
7373
7360
  }
7374
7361
  pt.isTransforming = () => Go > 0;
7375
- function D5(o) {
7362
+ function M3(o) {
7376
7363
  return o instanceof Array || M.warn("enabledAnchors value should be an array"), o instanceof Array && o.forEach(function(e) {
7377
7364
  ps.indexOf(e) === -1 && M.warn("Unknown anchor name: " + e + ". Available names are: " + ps.join(", "));
7378
7365
  }), o || [];
7379
7366
  }
7380
7367
  pt.prototype.className = "Transformer";
7381
7368
  Xt(pt);
7382
- C.addGetterSetter(pt, "enabledAnchors", ps, D5);
7369
+ C.addGetterSetter(pt, "enabledAnchors", ps, M3);
7383
7370
  C.addGetterSetter(pt, "flipEnabled", !0, Fe());
7384
7371
  C.addGetterSetter(pt, "resizeEnabled", !0);
7385
7372
  C.addGetterSetter(pt, "anchorSize", 10, K());
@@ -7447,7 +7434,7 @@ C.backCompat(_n, {
7447
7434
  function g0() {
7448
7435
  this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
7449
7436
  }
7450
- const O5 = [
7437
+ const N3 = [
7451
7438
  512,
7452
7439
  512,
7453
7440
  456,
@@ -7703,7 +7690,7 @@ const O5 = [
7703
7690
  263,
7704
7691
  261,
7705
7692
  259
7706
- ], z5 = [
7693
+ ], R3 = [
7707
7694
  9,
7708
7695
  11,
7709
7696
  12,
@@ -7960,10 +7947,10 @@ const O5 = [
7960
7947
  24,
7961
7948
  24
7962
7949
  ];
7963
- function G5(o, e) {
7950
+ function D3(o, e) {
7964
7951
  const a = o.data, l = o.width, s = o.height;
7965
7952
  let u, c, d, g, m, p, _, v, b, S, R, T, A, E, O, H, U, B, k, X;
7966
- const P = e + e + 1, nt = l - 1, w = s - 1, j = e + 1, tt = j * (j + 1) / 2, et = new g0(), I = O5[e], F = z5[e];
7953
+ const P = e + e + 1, nt = l - 1, L = s - 1, j = e + 1, tt = j * (j + 1) / 2, et = new g0(), I = N3[e], F = R3[e];
7967
7954
  let ht = null, at = et, ot = null, vt = null;
7968
7955
  for (let _t = 1; _t < P; _t++)
7969
7956
  at = at.next = new g0(), _t === j && (ht = at);
@@ -7985,35 +7972,35 @@ function G5(o, e) {
7985
7972
  at.r = H, at.g = U, at.b = B, at.a = k, at = at.next;
7986
7973
  let Mt = l;
7987
7974
  for (let Wt = 1; Wt <= e; Wt++)
7988
- c = Mt + _t << 2, g += (at.r = H = a[c]) * (X = j - Wt), m += (at.g = U = a[c + 1]) * X, p += (at.b = B = a[c + 2]) * X, _ += (at.a = k = a[c + 3]) * X, T += H, A += U, E += B, O += k, at = at.next, Wt < w && (Mt += l);
7975
+ c = Mt + _t << 2, g += (at.r = H = a[c]) * (X = j - Wt), m += (at.g = U = a[c + 1]) * X, p += (at.b = B = a[c + 2]) * X, _ += (at.a = k = a[c + 3]) * X, T += H, A += U, E += B, O += k, at = at.next, Wt < L && (Mt += l);
7989
7976
  c = _t, ot = et, vt = ht;
7990
7977
  for (let Wt = 0; Wt < s; Wt++)
7991
- u = c << 2, a[u + 3] = k = _ * I >> F, k > 0 ? (k = 255 / k, a[u] = (g * I >> F) * k, a[u + 1] = (m * I >> F) * k, a[u + 2] = (p * I >> F) * k) : a[u] = a[u + 1] = a[u + 2] = 0, g -= v, m -= b, p -= S, _ -= R, v -= ot.r, b -= ot.g, S -= ot.b, R -= ot.a, u = _t + ((u = Wt + j) < w ? u : w) * l << 2, g += T += ot.r = a[u], m += A += ot.g = a[u + 1], p += E += ot.b = a[u + 2], _ += O += ot.a = a[u + 3], ot = ot.next, v += H = vt.r, b += U = vt.g, S += B = vt.b, R += k = vt.a, T -= H, A -= U, E -= B, O -= k, vt = vt.next, c += l;
7978
+ u = c << 2, a[u + 3] = k = _ * I >> F, k > 0 ? (k = 255 / k, a[u] = (g * I >> F) * k, a[u + 1] = (m * I >> F) * k, a[u + 2] = (p * I >> F) * k) : a[u] = a[u + 1] = a[u + 2] = 0, g -= v, m -= b, p -= S, _ -= R, v -= ot.r, b -= ot.g, S -= ot.b, R -= ot.a, u = _t + ((u = Wt + j) < L ? u : L) * l << 2, g += T += ot.r = a[u], m += A += ot.g = a[u + 1], p += E += ot.b = a[u + 2], _ += O += ot.a = a[u + 3], ot = ot.next, v += H = vt.r, b += U = vt.g, S += B = vt.b, R += k = vt.a, T -= H, A -= U, E -= B, O -= k, vt = vt.next, c += l;
7992
7979
  }
7993
7980
  }
7994
- const H5 = function(e) {
7981
+ const O3 = function(e) {
7995
7982
  const a = Math.round(this.blurRadius());
7996
- a > 0 && G5(e, a);
7983
+ a > 0 && D3(e, a);
7997
7984
  };
7998
7985
  C.addGetterSetter(Q, "blurRadius", 0, K(), C.afterSetFilter);
7999
- const B5 = function(o) {
7986
+ const z3 = function(o) {
8000
7987
  const e = this.brightness() * 255, a = o.data, l = a.length;
8001
7988
  for (let s = 0; s < l; s += 4)
8002
7989
  a[s] += e, a[s + 1] += e, a[s + 2] += e;
8003
7990
  };
8004
7991
  C.addGetterSetter(Q, "brightness", 0, K(), C.afterSetFilter);
8005
- const U5 = function(o) {
7992
+ const G3 = function(o) {
8006
7993
  const e = this.brightness(), a = o.data, l = a.length;
8007
7994
  for (let s = 0; s < l; s += 4)
8008
7995
  a[s] = Math.min(255, a[s] * e), a[s + 1] = Math.min(255, a[s + 1] * e), a[s + 2] = Math.min(255, a[s + 2] * e);
8009
- }, L5 = function(o) {
7996
+ }, H3 = function(o) {
8010
7997
  const e = Math.pow((this.contrast() + 100) / 100, 2), a = o.data, l = a.length;
8011
7998
  let s = 150, u = 150, c = 150;
8012
7999
  for (let d = 0; d < l; d += 4)
8013
8000
  s = a[d], u = a[d + 1], c = a[d + 2], s /= 255, s -= 0.5, s *= e, s += 0.5, s *= 255, u /= 255, u -= 0.5, u *= e, u += 0.5, u *= 255, c /= 255, c -= 0.5, c *= e, c += 0.5, c *= 255, s = s < 0 ? 0 : s > 255 ? 255 : s, u = u < 0 ? 0 : u > 255 ? 255 : u, c = c < 0 ? 0 : c > 255 ? 255 : c, a[d] = s, a[d + 1] = u, a[d + 2] = c;
8014
8001
  };
8015
8002
  C.addGetterSetter(Q, "contrast", 0, K(), C.afterSetFilter);
8016
- const w5 = function(o) {
8003
+ const B3 = function(o) {
8017
8004
  var e, a, l, s, u, c, d, g, m;
8018
8005
  const p = o.data, _ = o.width, v = o.height, b = Math.min(1, Math.max(0, (a = (e = this.embossStrength) === null || e === void 0 ? void 0 : e.call(this)) !== null && a !== void 0 ? a : 0.5)), S = Math.min(1, Math.max(0, (s = (l = this.embossWhiteLevel) === null || l === void 0 ? void 0 : l.call(this)) !== null && s !== void 0 ? s : 0.5)), T = (d = {
8019
8006
  "top-left": 315,
@@ -8027,12 +8014,12 @@ const w5 = function(o) {
8027
8014
  }[(c = (u = this.embossDirection) === null || u === void 0 ? void 0 : u.call(this)) !== null && c !== void 0 ? c : "top-left"]) !== null && d !== void 0 ? d : 315, A = !!((m = (g = this.embossBlend) === null || g === void 0 ? void 0 : g.call(this)) !== null && m !== void 0 && m), E = b * 10, O = S * 255, H = T * Math.PI / 180, U = Math.cos(H), B = Math.sin(H), k = 128 / 1020 * E, X = new Uint8ClampedArray(p), P = new Float32Array(_ * v);
8028
8015
  for (let et = 0, I = 0; I < p.length; I += 4, et++)
8029
8016
  P[et] = 0.2126 * X[I] + 0.7152 * X[I + 1] + 0.0722 * X[I + 2];
8030
- const nt = [-1, 0, 1, -2, 0, 2, -1, 0, 1], w = [-1, -2, -1, 0, 0, 0, 1, 2, 1], j = [-_ - 1, -_, -_ + 1, -1, 0, 1, _ - 1, _, _ + 1], tt = (et) => et < 0 ? 0 : et > 255 ? 255 : et;
8017
+ const nt = [-1, 0, 1, -2, 0, 2, -1, 0, 1], L = [-1, -2, -1, 0, 0, 0, 1, 2, 1], j = [-_ - 1, -_, -_ + 1, -1, 0, 1, _ - 1, _, _ + 1], tt = (et) => et < 0 ? 0 : et > 255 ? 255 : et;
8031
8018
  for (let et = 1; et < v - 1; et++)
8032
8019
  for (let I = 1; I < _ - 1; I++) {
8033
8020
  const F = et * _ + I;
8034
8021
  let ht = 0, at = 0;
8035
- ht += P[F + j[0]] * nt[0], at += P[F + j[0]] * w[0], ht += P[F + j[1]] * nt[1], at += P[F + j[1]] * w[1], ht += P[F + j[2]] * nt[2], at += P[F + j[2]] * w[2], ht += P[F + j[3]] * nt[3], at += P[F + j[3]] * w[3], ht += P[F + j[5]] * nt[5], at += P[F + j[5]] * w[5], ht += P[F + j[6]] * nt[6], at += P[F + j[6]] * w[6], ht += P[F + j[7]] * nt[7], at += P[F + j[7]] * w[7], ht += P[F + j[8]] * nt[8], at += P[F + j[8]] * w[8];
8022
+ ht += P[F + j[0]] * nt[0], at += P[F + j[0]] * L[0], ht += P[F + j[1]] * nt[1], at += P[F + j[1]] * L[1], ht += P[F + j[2]] * nt[2], at += P[F + j[2]] * L[2], ht += P[F + j[3]] * nt[3], at += P[F + j[3]] * L[3], ht += P[F + j[5]] * nt[5], at += P[F + j[5]] * L[5], ht += P[F + j[6]] * nt[6], at += P[F + j[6]] * L[6], ht += P[F + j[7]] * nt[7], at += P[F + j[7]] * L[7], ht += P[F + j[8]] * nt[8], at += P[F + j[8]] * L[8];
8036
8023
  const ot = U * ht + B * at, vt = tt(O + ot * k), _t = F * 4;
8037
8024
  if (A) {
8038
8025
  const Mt = vt - O;
@@ -8063,7 +8050,7 @@ function mo(o, e, a, l, s) {
8063
8050
  let d = (o - e) / u;
8064
8051
  return d = c * d + l, d;
8065
8052
  }
8066
- const Y5 = function(o) {
8053
+ const U3 = function(o) {
8067
8054
  const e = o.data, a = e.length;
8068
8055
  let l = e[0], s = l, u, c = e[1], d = c, g, m = e[2], p = m, _;
8069
8056
  const v = this.enhance();
@@ -8087,7 +8074,7 @@ const Y5 = function(o) {
8087
8074
  e[O + 0] = mo(e[O + 0], l, s, S, b), e[O + 1] = mo(e[O + 1], c, d, T, R), e[O + 2] = mo(e[O + 2], m, p, E, A);
8088
8075
  };
8089
8076
  C.addGetterSetter(Q, "enhance", 0, K(), C.afterSetFilter);
8090
- const X5 = function(o) {
8077
+ const L3 = function(o) {
8091
8078
  const e = o.data, a = e.length;
8092
8079
  for (let l = 0; l < a; l += 4) {
8093
8080
  const s = 0.34 * e[l] + 0.5 * e[l + 1] + 0.16 * e[l + 2];
@@ -8097,12 +8084,12 @@ const X5 = function(o) {
8097
8084
  C.addGetterSetter(Q, "hue", 0, K(), C.afterSetFilter);
8098
8085
  C.addGetterSetter(Q, "saturation", 0, K(), C.afterSetFilter);
8099
8086
  C.addGetterSetter(Q, "luminance", 0, K(), C.afterSetFilter);
8100
- const q5 = function(o) {
8087
+ const w3 = function(o) {
8101
8088
  const e = o.data, a = e.length, l = 1, s = Math.pow(2, this.saturation()), u = Math.abs(this.hue() + 360) % 360, c = this.luminance() * 127, d = l * s * Math.cos(u * Math.PI / 180), g = l * s * Math.sin(u * Math.PI / 180), m = 0.299 * l + 0.701 * d + 0.167 * g, p = 0.587 * l - 0.587 * d + 0.33 * g, _ = 0.114 * l - 0.114 * d - 0.497 * g, v = 0.299 * l - 0.299 * d - 0.328 * g, b = 0.587 * l + 0.413 * d + 0.035 * g, S = 0.114 * l - 0.114 * d + 0.293 * g, R = 0.299 * l - 0.3 * d + 1.25 * g, T = 0.587 * l - 0.586 * d - 1.05 * g, A = 0.114 * l + 0.886 * d - 0.2 * g;
8102
8089
  let E, O, H, U;
8103
8090
  for (let B = 0; B < a; B += 4)
8104
8091
  E = e[B + 0], O = e[B + 1], H = e[B + 2], U = e[B + 3], e[B + 0] = m * E + p * O + _ * H + c, e[B + 1] = v * E + b * O + S * H + c, e[B + 2] = R * E + T * O + A * H + c, e[B + 3] = U;
8105
- }, j5 = function(o) {
8092
+ }, Y3 = function(o) {
8106
8093
  const e = o.data, a = e.length, l = Math.pow(2, this.value()), s = Math.pow(2, this.saturation()), u = Math.abs(this.hue() + 360) % 360, c = l * s * Math.cos(u * Math.PI / 180), d = l * s * Math.sin(u * Math.PI / 180), g = 0.299 * l + 0.701 * c + 0.167 * d, m = 0.587 * l - 0.587 * c + 0.33 * d, p = 0.114 * l - 0.114 * c - 0.497 * d, _ = 0.299 * l - 0.299 * c - 0.328 * d, v = 0.587 * l + 0.413 * c + 0.035 * d, b = 0.114 * l - 0.114 * c + 0.293 * d, S = 0.299 * l - 0.3 * c + 1.25 * d, R = 0.587 * l - 0.586 * c - 1.05 * d, T = 0.114 * l + 0.886 * c - 0.2 * d;
8107
8094
  for (let A = 0; A < a; A += 4) {
8108
8095
  const E = e[A + 0], O = e[A + 1], H = e[A + 2], U = e[A + 3];
@@ -8112,11 +8099,11 @@ const q5 = function(o) {
8112
8099
  C.addGetterSetter(Q, "hue", 0, K(), C.afterSetFilter);
8113
8100
  C.addGetterSetter(Q, "saturation", 0, K(), C.afterSetFilter);
8114
8101
  C.addGetterSetter(Q, "value", 0, K(), C.afterSetFilter);
8115
- const V5 = function(o) {
8102
+ const X3 = function(o) {
8116
8103
  const e = o.data, a = e.length;
8117
8104
  for (let l = 0; l < a; l += 4)
8118
8105
  e[l] = 255 - e[l], e[l + 1] = 255 - e[l + 1], e[l + 2] = 255 - e[l + 2];
8119
- }, Z5 = function(o, e, a) {
8106
+ }, q3 = function(o, e, a) {
8120
8107
  const l = o.data, s = e.data, u = o.width, c = o.height, d = a.polarCenterX || u / 2, g = a.polarCenterY || c / 2;
8121
8108
  let m = Math.sqrt(d * d + g * g), p = u - d, _ = c - g;
8122
8109
  const v = Math.sqrt(p * p + _ * _);
@@ -8131,7 +8118,7 @@ const V5 = function(o) {
8131
8118
  H = (T + O * u) * 4, s[H + 0] = U, s[H + 1] = B, s[H + 2] = k, s[H + 3] = X;
8132
8119
  }
8133
8120
  }
8134
- }, K5 = function(o, e, a) {
8121
+ }, j3 = function(o, e, a) {
8135
8122
  const l = o.data, s = e.data, u = o.width, c = o.height, d = a.polarCenterX || u / 2, g = a.polarCenterY || c / 2;
8136
8123
  let m = Math.sqrt(d * d + g * g), p = u - d, _ = c - g;
8137
8124
  const v = Math.sqrt(p * p + _ * _);
@@ -8147,7 +8134,7 @@ const V5 = function(o) {
8147
8134
  const k = l[B + 0], X = l[B + 1], P = l[B + 2], nt = l[B + 3];
8148
8135
  B = (_ * u + p) * 4, s[B + 0] = k, s[B + 1] = X, s[B + 2] = P, s[B + 3] = nt;
8149
8136
  }
8150
- }, Q5 = function(o) {
8137
+ }, V3 = function(o) {
8151
8138
  const e = o.width, a = o.height;
8152
8139
  let l, s, u, c, d, g, m, p, _, v, b = Math.round(this.kaleidoscopePower());
8153
8140
  const S = Math.round(this.kaleidoscopeAngle()), R = Math.floor(e * (S % 360) / 360);
@@ -8156,7 +8143,7 @@ const V5 = function(o) {
8156
8143
  const T = M.createCanvasElement();
8157
8144
  T.width = e, T.height = a;
8158
8145
  const A = T.getContext("2d").getImageData(0, 0, e, a);
8159
- M.releaseCanvas(T), Z5(o, A, {
8146
+ M.releaseCanvas(T), q3(o, A, {
8160
8147
  polarCenterX: e / 2,
8161
8148
  polarCenterY: a / 2
8162
8149
  });
@@ -8174,7 +8161,7 @@ const V5 = function(o) {
8174
8161
  _ = (e * s + l) * 4, d = A.data[_ + 0], g = A.data[_ + 1], m = A.data[_ + 2], p = A.data[_ + 3], v = (e * s + O * 2 - l - 1) * 4, A.data[v + 0] = d, A.data[v + 1] = g, A.data[v + 2] = m, A.data[v + 3] = p;
8175
8162
  O *= 2;
8176
8163
  }
8177
- K5(A, o, {});
8164
+ j3(A, o, {});
8178
8165
  };
8179
8166
  C.addGetterSetter(Q, "kaleidoscopePower", 2, K(), C.afterSetFilter);
8180
8167
  C.addGetterSetter(Q, "kaleidoscopeAngle", 0, K(), C.afterSetFilter);
@@ -8186,16 +8173,16 @@ function ds(o, e, a) {
8186
8173
  function Yi(o, e) {
8187
8174
  return Math.sqrt(Math.pow(o[0] - e[0], 2) + Math.pow(o[1] - e[1], 2) + Math.pow(o[2] - e[2], 2));
8188
8175
  }
8189
- function k5(o) {
8176
+ function Z3(o) {
8190
8177
  const e = [0, 0, 0];
8191
8178
  for (let a = 0; a < o.length; a++)
8192
8179
  e[0] += o[a][0], e[1] += o[a][1], e[2] += o[a][2];
8193
8180
  return e[0] /= o.length, e[1] /= o.length, e[2] /= o.length, e;
8194
8181
  }
8195
- function P5(o, e) {
8182
+ function K3(o, e) {
8196
8183
  const a = ds(o, 0, 0), l = ds(o, o.width - 1, 0), s = ds(o, 0, o.height - 1), u = ds(o, o.width - 1, o.height - 1), c = e || 10;
8197
8184
  if (Yi(a, l) < c && Yi(l, u) < c && Yi(u, s) < c && Yi(s, a) < c) {
8198
- const d = k5([l, a, u, s]), g = [];
8185
+ const d = Z3([l, a, u, s]), g = [];
8199
8186
  for (let m = 0; m < o.width * o.height; m++) {
8200
8187
  const p = Yi(d, [
8201
8188
  o.data[m * 4],
@@ -8207,11 +8194,11 @@ function P5(o, e) {
8207
8194
  return g;
8208
8195
  }
8209
8196
  }
8210
- function J5(o, e) {
8197
+ function Q3(o, e) {
8211
8198
  for (let a = 0; a < o.width * o.height; a++)
8212
8199
  o.data[4 * a + 3] = e[a];
8213
8200
  }
8214
- function F5(o, e, a) {
8201
+ function k3(o, e, a) {
8215
8202
  const l = [1, 1, 1, 1, 0, 1, 1, 1, 1], s = Math.round(Math.sqrt(l.length)), u = Math.floor(s / 2), c = [];
8216
8203
  for (let d = 0; d < a; d++)
8217
8204
  for (let g = 0; g < e; g++) {
@@ -8229,7 +8216,7 @@ function F5(o, e, a) {
8229
8216
  }
8230
8217
  return c;
8231
8218
  }
8232
- function W5(o, e, a) {
8219
+ function P3(o, e, a) {
8233
8220
  const l = [1, 1, 1, 1, 1, 1, 1, 1, 1], s = Math.round(Math.sqrt(l.length)), u = Math.floor(s / 2), c = [];
8234
8221
  for (let d = 0; d < a; d++)
8235
8222
  for (let g = 0; g < e; g++) {
@@ -8247,7 +8234,7 @@ function W5(o, e, a) {
8247
8234
  }
8248
8235
  return c;
8249
8236
  }
8250
- function I5(o, e, a) {
8237
+ function J3(o, e, a) {
8251
8238
  const l = [
8252
8239
  0.1111111111111111,
8253
8240
  0.1111111111111111,
@@ -8275,19 +8262,19 @@ function I5(o, e, a) {
8275
8262
  }
8276
8263
  return c;
8277
8264
  }
8278
- const $5 = function(o) {
8265
+ const F3 = function(o) {
8279
8266
  const e = this.threshold();
8280
- let a = P5(o, e);
8281
- return a && (a = F5(a, o.width, o.height), a = W5(a, o.width, o.height), a = I5(a, o.width, o.height), J5(o, a)), o;
8267
+ let a = K3(o, e);
8268
+ return a && (a = k3(a, o.width, o.height), a = P3(a, o.width, o.height), a = J3(a, o.width, o.height), Q3(o, a)), o;
8282
8269
  };
8283
8270
  C.addGetterSetter(Q, "threshold", 0, K(), C.afterSetFilter);
8284
- const t4 = function(o) {
8271
+ const W3 = function(o) {
8285
8272
  const e = this.noise() * 255, a = o.data, l = a.length, s = e / 2;
8286
8273
  for (let u = 0; u < l; u += 4)
8287
8274
  a[u + 0] += s - 2 * s * Math.random(), a[u + 1] += s - 2 * s * Math.random(), a[u + 2] += s - 2 * s * Math.random();
8288
8275
  };
8289
8276
  C.addGetterSetter(Q, "noise", 0.2, K(), C.afterSetFilter);
8290
- const e4 = function(o) {
8277
+ const I3 = function(o) {
8291
8278
  let e = Math.ceil(this.pixelSize()), a = o.width, l = o.height, s = Math.ceil(a / e), u = Math.ceil(l / e), c = o.data;
8292
8279
  if (e <= 0) {
8293
8280
  M.error("pixelSize value can not be <= 0");
@@ -8318,13 +8305,13 @@ const e4 = function(o) {
8318
8305
  }
8319
8306
  };
8320
8307
  C.addGetterSetter(Q, "pixelSize", 8, K(), C.afterSetFilter);
8321
- const n4 = function(o) {
8308
+ const $3 = function(o) {
8322
8309
  const e = Math.round(this.levels() * 254) + 1, a = o.data, l = a.length, s = 255 / e;
8323
8310
  for (let u = 0; u < l; u += 1)
8324
8311
  a[u] = Math.floor(a[u] / s) * s;
8325
8312
  };
8326
8313
  C.addGetterSetter(Q, "levels", 0.5, K(), C.afterSetFilter);
8327
- const a4 = function(o) {
8314
+ const t4 = function(o) {
8328
8315
  const e = o.data, a = e.length, l = this.red(), s = this.green(), u = this.blue();
8329
8316
  for (let c = 0; c < a; c += 4) {
8330
8317
  const d = (0.34 * e[c] + 0.5 * e[c + 1] + 0.16 * e[c + 2]) / 255;
@@ -8338,7 +8325,7 @@ C.addGetterSetter(Q, "green", 0, function(o) {
8338
8325
  return this._filterUpToDate = !1, o > 255 ? 255 : o < 0 ? 0 : Math.round(o);
8339
8326
  });
8340
8327
  C.addGetterSetter(Q, "blue", 0, z0, C.afterSetFilter);
8341
- const i4 = function(o) {
8328
+ const e4 = function(o) {
8342
8329
  const e = o.data, a = e.length, l = this.red(), s = this.green(), u = this.blue(), c = this.alpha();
8343
8330
  for (let d = 0; d < a; d += 4) {
8344
8331
  const g = 1 - c;
@@ -8355,20 +8342,20 @@ C.addGetterSetter(Q, "blue", 0, z0, C.afterSetFilter);
8355
8342
  C.addGetterSetter(Q, "alpha", 1, function(o) {
8356
8343
  return this._filterUpToDate = !1, o > 1 ? 1 : o < 0 ? 0 : o;
8357
8344
  });
8358
- const l4 = function(o) {
8345
+ const n4 = function(o) {
8359
8346
  const e = o.data, a = e.length;
8360
8347
  for (let l = 0; l < a; l += 4) {
8361
8348
  const s = e[l + 0], u = e[l + 1], c = e[l + 2];
8362
8349
  e[l + 0] = Math.min(255, s * 0.393 + u * 0.769 + c * 0.189), e[l + 1] = Math.min(255, s * 0.349 + u * 0.686 + c * 0.168), e[l + 2] = Math.min(255, s * 0.272 + u * 0.534 + c * 0.131);
8363
8350
  }
8364
- }, s4 = function(o) {
8351
+ }, a4 = function(o) {
8365
8352
  const a = o.data;
8366
8353
  for (let l = 0; l < a.length; l += 4) {
8367
8354
  const s = a[l], u = a[l + 1], c = a[l + 2];
8368
8355
  0.2126 * s + 0.7152 * u + 0.0722 * c >= 128 && (a[l] = 255 - s, a[l + 1] = 255 - u, a[l + 2] = 255 - c);
8369
8356
  }
8370
8357
  return o;
8371
- }, r4 = function(o) {
8358
+ }, i4 = function(o) {
8372
8359
  const e = this.threshold() * 255, a = o.data, l = a.length;
8373
8360
  for (let s = 0; s < l; s += 1)
8374
8361
  a[s] = a[s] < e ? 0 : 255;
@@ -8394,26 +8381,26 @@ $a.Util._assign($a, {
8394
8381
  Transformer: pt,
8395
8382
  Wedge: _n,
8396
8383
  Filters: {
8397
- Blur: H5,
8398
- Brightness: U5,
8399
- Brighten: B5,
8400
- Contrast: L5,
8401
- Emboss: w5,
8402
- Enhance: Y5,
8403
- Grayscale: X5,
8404
- HSL: q5,
8405
- HSV: j5,
8406
- Invert: V5,
8407
- Kaleidoscope: Q5,
8408
- Mask: $5,
8409
- Noise: t4,
8410
- Pixelate: e4,
8411
- Posterize: n4,
8412
- RGB: a4,
8413
- RGBA: i4,
8414
- Sepia: l4,
8415
- Solarize: s4,
8416
- Threshold: r4
8384
+ Blur: O3,
8385
+ Brightness: G3,
8386
+ Brighten: z3,
8387
+ Contrast: H3,
8388
+ Emboss: B3,
8389
+ Enhance: U3,
8390
+ Grayscale: L3,
8391
+ HSL: w3,
8392
+ HSV: Y3,
8393
+ Invert: X3,
8394
+ Kaleidoscope: V3,
8395
+ Mask: F3,
8396
+ Noise: W3,
8397
+ Pixelate: I3,
8398
+ Posterize: $3,
8399
+ RGB: t4,
8400
+ RGBA: e4,
8401
+ Sepia: n4,
8402
+ Solarize: a4,
8403
+ Threshold: i4
8417
8404
  }
8418
8405
  });
8419
8406
  var cd = { exports: {} }, hd = { exports: {} };
@@ -8711,13 +8698,13 @@ var cd = { exports: {} }, hd = { exports: {} };
8711
8698
  function k(t, n, i, r, h, f) {
8712
8699
  var y = t.pendingLanes;
8713
8700
  t.pendingLanes = i, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= i, t.entangledLanes &= i, t.errorRecoveryDisabledLanes &= i, t.shellSuspendCounter = 0;
8714
- var x = t.entanglements, G = t.expirationTimes, Y = t.hiddenUpdates;
8701
+ var x = t.entanglements, G = t.expirationTimes, w = t.hiddenUpdates;
8715
8702
  for (i = y & ~i; 0 < i; ) {
8716
8703
  var W = 31 - Me(i), V = 1 << W;
8717
8704
  x[W] = 0, G[W] = -1;
8718
- var $ = Y[W];
8705
+ var $ = w[W];
8719
8706
  if ($ !== null)
8720
- for (Y[W] = null, W = 0; W < $.length; W++) {
8707
+ for (w[W] = null, W = 0; W < $.length; W++) {
8721
8708
  var ut = $[W];
8722
8709
  ut !== null && (ut.lane &= -536870913);
8723
8710
  }
@@ -8739,9 +8726,9 @@ var cd = { exports: {} }, hd = { exports: {} };
8739
8726
  }
8740
8727
  function nt(t, n) {
8741
8728
  var i = n & -n;
8742
- return i = (i & 42) !== 0 ? 1 : w(i), (i & (t.suspendedLanes | n)) !== 0 ? 0 : i;
8729
+ return i = (i & 42) !== 0 ? 1 : L(i), (i & (t.suspendedLanes | n)) !== 0 ? 0 : i;
8743
8730
  }
8744
- function w(t) {
8731
+ function L(t) {
8745
8732
  switch (t) {
8746
8733
  case 2:
8747
8734
  t = 1;
@@ -8866,22 +8853,22 @@ var cd = { exports: {} }, hd = { exports: {} };
8866
8853
  var f = r.DetermineComponentFrameRoot(), y = f[0], x = f[1];
8867
8854
  if (y && x) {
8868
8855
  var G = y.split(`
8869
- `), Y = x.split(`
8856
+ `), w = x.split(`
8870
8857
  `);
8871
8858
  for (h = r = 0; r < G.length && !G[r].includes("DetermineComponentFrameRoot"); )
8872
8859
  r++;
8873
- for (; h < Y.length && !Y[h].includes(
8860
+ for (; h < w.length && !w[h].includes(
8874
8861
  "DetermineComponentFrameRoot"
8875
8862
  ); )
8876
8863
  h++;
8877
- if (r === G.length || h === Y.length)
8878
- for (r = G.length - 1, h = Y.length - 1; 1 <= r && 0 <= h && G[r] !== Y[h]; )
8864
+ if (r === G.length || h === w.length)
8865
+ for (r = G.length - 1, h = w.length - 1; 1 <= r && 0 <= h && G[r] !== w[h]; )
8879
8866
  h--;
8880
8867
  for (; 1 <= r && 0 <= h; r--, h--)
8881
- if (G[r] !== Y[h]) {
8868
+ if (G[r] !== w[h]) {
8882
8869
  if (r !== 1 || h !== 1)
8883
8870
  do
8884
- if (r--, h--, 0 > h || G[r] !== Y[h]) {
8871
+ if (r--, h--, 0 > h || G[r] !== w[h]) {
8885
8872
  var W = `
8886
8873
  ` + G[r].replace(" at new ", " at ");
8887
8874
  return t.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", t.displayName)), W;
@@ -9474,7 +9461,7 @@ Error generating stack: ` + r.message + `
9474
9461
  Z
9475
9462
  ), li(N, z), N.return = D, N);
9476
9463
  }
9477
- function Y(D, N, z, Z) {
9464
+ function w(D, N, z, Z) {
9478
9465
  return N === null || N.tag !== 4 || N.stateNode.containerInfo !== z.containerInfo || N.stateNode.implementation !== z.implementation ? (N = Er(z, D.mode, Z), N.return = D, N) : (N = h(N, z.children || []), N.return = D, N);
9479
9466
  }
9480
9467
  function W(D, N, z, Z, lt) {
@@ -9540,7 +9527,7 @@ Error generating stack: ` + r.message + `
9540
9527
  case Rl:
9541
9528
  return z.key === lt ? G(D, N, z, Z) : null;
9542
9529
  case Aa:
9543
- return z.key === lt ? Y(D, N, z, Z) : null;
9530
+ return z.key === lt ? w(D, N, z, Z) : null;
9544
9531
  case Mn:
9545
9532
  return z = Pn(z), $(D, N, z, Z);
9546
9533
  }
@@ -9576,7 +9563,7 @@ Error generating stack: ` + r.message + `
9576
9563
  case Aa:
9577
9564
  return D = D.get(
9578
9565
  Z.key === null ? z : Z.key
9579
- ) || null, Y(N, D, Z, lt);
9566
+ ) || null, w(N, D, Z, lt);
9580
9567
  case Mn:
9581
9568
  return Z = Pn(Z), ut(
9582
9569
  D,
@@ -9932,14 +9919,14 @@ Error generating stack: ` + r.message + `
9932
9919
  var f = h.firstBaseUpdate, y = h.lastBaseUpdate, x = h.shared.pending;
9933
9920
  if (x !== null) {
9934
9921
  h.shared.pending = null;
9935
- var G = x, Y = G.next;
9936
- G.next = null, y === null ? f = Y : y.next = Y, y = G;
9922
+ var G = x, w = G.next;
9923
+ G.next = null, y === null ? f = w : y.next = w, y = G;
9937
9924
  var W = t.alternate;
9938
- W !== null && (W = W.updateQueue, x = W.lastBaseUpdate, x !== y && (x === null ? W.firstBaseUpdate = Y : x.next = Y, W.lastBaseUpdate = G));
9925
+ W !== null && (W = W.updateQueue, x = W.lastBaseUpdate, x !== y && (x === null ? W.firstBaseUpdate = w : x.next = w, W.lastBaseUpdate = G));
9939
9926
  }
9940
9927
  if (f !== null) {
9941
9928
  var V = h.baseState;
9942
- y = 0, W = Y = G = null, x = f;
9929
+ y = 0, W = w = G = null, x = f;
9943
9930
  do {
9944
9931
  var $ = x.lane & -536870913, ut = $ !== x.lane;
9945
9932
  if (ut ? (mt & $) === $ : (r & $) === $) {
@@ -9984,14 +9971,14 @@ Error generating stack: ` + r.message + `
9984
9971
  payload: x.payload,
9985
9972
  callback: x.callback,
9986
9973
  next: null
9987
- }, W === null ? (Y = W = ut, G = V) : W = W.next = ut, y |= $;
9974
+ }, W === null ? (w = W = ut, G = V) : W = W.next = ut, y |= $;
9988
9975
  if (x = x.next, x === null) {
9989
9976
  if (x = h.shared.pending, x === null)
9990
9977
  break;
9991
9978
  ut = x, x = ut.next, ut.next = null, h.lastBaseUpdate = ut, h.shared.pending = null;
9992
9979
  }
9993
9980
  } while (!0);
9994
- W === null && (G = V), h.baseState = G, h.firstBaseUpdate = Y, h.lastBaseUpdate = W, f === null && (h.shared.lanes = 0), Gn |= y, t.lanes = y, t.memoizedState = V;
9981
+ W === null && (G = V), h.baseState = G, h.firstBaseUpdate = w, h.lastBaseUpdate = W, f === null && (h.shared.lanes = 0), Gn |= y, t.lanes = y, t.memoizedState = V;
9995
9982
  }
9996
9983
  }
9997
9984
  function lu(t, n) {
@@ -10108,7 +10095,7 @@ Error generating stack: ` + r.message + `
10108
10095
  }
10109
10096
  dn = 0, Qt = At = ct = null, qa = !1, Ai = Kl = 0, ja = null;
10110
10097
  }
10111
- function pe() {
10098
+ function me() {
10112
10099
  var t = {
10113
10100
  memoizedState: null,
10114
10101
  baseState: null,
@@ -10191,47 +10178,47 @@ Error generating stack: ` + r.message + `
10191
10178
  if (f = t.baseState, h === null) t.memoizedState = f;
10192
10179
  else {
10193
10180
  n = h.next;
10194
- var x = y = null, G = null, Y = n, W = !1;
10181
+ var x = y = null, G = null, w = n, W = !1;
10195
10182
  do {
10196
- var V = Y.lane & -536870913;
10197
- if (V !== Y.lane ? (mt & V) === V : (dn & V) === V) {
10198
- var $ = Y.revertLane;
10183
+ var V = w.lane & -536870913;
10184
+ if (V !== w.lane ? (mt & V) === V : (dn & V) === V) {
10185
+ var $ = w.revertLane;
10199
10186
  if ($ === 0)
10200
10187
  G !== null && (G = G.next = {
10201
10188
  lane: 0,
10202
10189
  revertLane: 0,
10203
10190
  gesture: null,
10204
- action: Y.action,
10205
- hasEagerState: Y.hasEagerState,
10206
- eagerState: Y.eagerState,
10191
+ action: w.action,
10192
+ hasEagerState: w.hasEagerState,
10193
+ eagerState: w.eagerState,
10207
10194
  next: null
10208
10195
  }), V === Ba && (W = !0);
10209
10196
  else if ((dn & $) === $) {
10210
- Y = Y.next, $ === Ba && (W = !0);
10197
+ w = w.next, $ === Ba && (W = !0);
10211
10198
  continue;
10212
10199
  } else
10213
10200
  V = {
10214
10201
  lane: 0,
10215
- revertLane: Y.revertLane,
10202
+ revertLane: w.revertLane,
10216
10203
  gesture: null,
10217
- action: Y.action,
10218
- hasEagerState: Y.hasEagerState,
10219
- eagerState: Y.eagerState,
10204
+ action: w.action,
10205
+ hasEagerState: w.hasEagerState,
10206
+ eagerState: w.eagerState,
10220
10207
  next: null
10221
10208
  }, G === null ? (x = G = V, y = f) : G = G.next = V, ct.lanes |= $, Gn |= $;
10222
- V = Y.action, ra && i(f, V), f = Y.hasEagerState ? Y.eagerState : i(f, V);
10209
+ V = w.action, ra && i(f, V), f = w.hasEagerState ? w.eagerState : i(f, V);
10223
10210
  } else
10224
10211
  $ = {
10225
10212
  lane: V,
10226
- revertLane: Y.revertLane,
10227
- gesture: Y.gesture,
10228
- action: Y.action,
10229
- hasEagerState: Y.hasEagerState,
10230
- eagerState: Y.eagerState,
10213
+ revertLane: w.revertLane,
10214
+ gesture: w.gesture,
10215
+ action: w.action,
10216
+ hasEagerState: w.hasEagerState,
10217
+ eagerState: w.eagerState,
10231
10218
  next: null
10232
10219
  }, G === null ? (x = G = $, y = f) : G = G.next = $, ct.lanes |= V, Gn |= V;
10233
- Y = Y.next;
10234
- } while (Y !== null && Y !== n);
10220
+ w = w.next;
10221
+ } while (w !== null && w !== n);
10235
10222
  if (G === null ? y = f : G.next = x, !Re(f, t.memoizedState) && (kt = !0, W && (i = Ua, i !== null)))
10236
10223
  throw i;
10237
10224
  t.memoizedState = f, t.baseState = y, t.baseQueue = G, r.lastRenderedState = f;
@@ -10309,7 +10296,7 @@ Error generating stack: ` + r.message + `
10309
10296
  n !== null && ve(n, t, 2);
10310
10297
  }
10311
10298
  function Zs(t) {
10312
- var n = pe();
10299
+ var n = me();
10313
10300
  if (typeof t == "function") {
10314
10301
  var i = t;
10315
10302
  if (t = i(), ra) {
@@ -10363,16 +10350,16 @@ Error generating stack: ` + r.message + `
10363
10350
  try {
10364
10351
  var x = i(h, r), G = it.S;
10365
10352
  G !== null && G(y, x), _u(t, n, x);
10366
- } catch (Y) {
10367
- Ks(t, n, Y);
10353
+ } catch (w) {
10354
+ Ks(t, n, w);
10368
10355
  } finally {
10369
10356
  f !== null && y.types !== null && (f.types = y.types), it.T = f;
10370
10357
  }
10371
10358
  } else
10372
10359
  try {
10373
10360
  f = i(h, r), _u(t, n, f);
10374
- } catch (Y) {
10375
- Ks(t, n, Y);
10361
+ } catch (w) {
10362
+ Ks(t, n, w);
10376
10363
  }
10377
10364
  }
10378
10365
  function _u(t, n, i) {
@@ -10429,7 +10416,7 @@ Error generating stack: ` + r.message + `
10429
10416
  r && (n = i[0]);
10430
10417
  }
10431
10418
  }
10432
- i = pe(), i.memoizedState = i.baseState = n, r = {
10419
+ i = me(), i.memoizedState = i.baseState = n, r = {
10433
10420
  pending: null,
10434
10421
  lanes: 0,
10435
10422
  dispatch: null,
@@ -10446,7 +10433,7 @@ Error generating stack: ` + r.message + `
10446
10433
  !1,
10447
10434
  r.queue
10448
10435
  );
10449
- return r = pe(), h = {
10436
+ return r = me(), h = {
10450
10437
  state: n,
10451
10438
  dispatch: null,
10452
10439
  action: t,
@@ -10502,7 +10489,7 @@ Error generating stack: ` + r.message + `
10502
10489
  return Zt().memoizedState;
10503
10490
  }
10504
10491
  function gl(t, n, i, r) {
10505
- var h = pe();
10492
+ var h = me();
10506
10493
  ct.flags |= t, h.memoizedState = Ca(
10507
10494
  1 | n,
10508
10495
  { destroy: void 0 },
@@ -10610,8 +10597,8 @@ Error generating stack: ` + r.message + `
10610
10597
  var y = it.T, x = {};
10611
10598
  it.T = x, Fs(t, !1, n, i);
10612
10599
  try {
10613
- var G = h(), Y = it.S;
10614
- if (Y !== null && Y(x, G), G !== null && typeof G == "object" && typeof G.then == "function") {
10600
+ var G = h(), w = it.S;
10601
+ if (w !== null && w(x, G), G !== null && typeof G == "object" && typeof G.then == "function") {
10615
10602
  var W = bd(
10616
10603
  G,
10617
10604
  r
@@ -11140,32 +11127,32 @@ Error generating stack: ` + r.message + `
11140
11127
  f = n.stateNode;
11141
11128
  var x = n.memoizedProps, G = Fn(i, x);
11142
11129
  f.props = G;
11143
- var Y = f.context, W = i.contextType;
11130
+ var w = f.context, W = i.contextType;
11144
11131
  y = Oa, typeof W == "object" && W !== null && (y = re(W));
11145
11132
  var V = i.getDerivedStateFromProps;
11146
- W = typeof V == "function" || typeof f.getSnapshotBeforeUpdate == "function", x = n.pendingProps !== x, W || typeof f.UNSAFE_componentWillReceiveProps != "function" && typeof f.componentWillReceiveProps != "function" || (x || Y !== y) && Ku(
11133
+ W = typeof V == "function" || typeof f.getSnapshotBeforeUpdate == "function", x = n.pendingProps !== x, W || typeof f.UNSAFE_componentWillReceiveProps != "function" && typeof f.componentWillReceiveProps != "function" || (x || w !== y) && Ku(
11147
11134
  n,
11148
11135
  f,
11149
11136
  r,
11150
11137
  y
11151
11138
  ), On = !1;
11152
11139
  var $ = n.memoizedState;
11153
- f.state = $, oi(n, r, f, h), ri(), Y = n.memoizedState, x || $ !== Y || On ? (typeof V == "function" && (Ws(
11140
+ f.state = $, oi(n, r, f, h), ri(), w = n.memoizedState, x || $ !== w || On ? (typeof V == "function" && (Ws(
11154
11141
  n,
11155
11142
  i,
11156
11143
  V,
11157
11144
  r
11158
- ), Y = n.memoizedState), (G = On || Zu(
11145
+ ), w = n.memoizedState), (G = On || Zu(
11159
11146
  n,
11160
11147
  i,
11161
11148
  G,
11162
11149
  r,
11163
11150
  $,
11164
- Y,
11151
+ w,
11165
11152
  y
11166
- )) ? (W || typeof f.UNSAFE_componentWillMount != "function" && typeof f.componentWillMount != "function" || (typeof f.componentWillMount == "function" && f.componentWillMount(), typeof f.UNSAFE_componentWillMount == "function" && f.UNSAFE_componentWillMount()), typeof f.componentDidMount == "function" && (n.flags |= 4194308)) : (typeof f.componentDidMount == "function" && (n.flags |= 4194308), n.memoizedProps = r, n.memoizedState = Y), f.props = r, f.state = Y, f.context = y, r = G) : (typeof f.componentDidMount == "function" && (n.flags |= 4194308), r = !1);
11153
+ )) ? (W || typeof f.UNSAFE_componentWillMount != "function" && typeof f.componentWillMount != "function" || (typeof f.componentWillMount == "function" && f.componentWillMount(), typeof f.UNSAFE_componentWillMount == "function" && f.UNSAFE_componentWillMount()), typeof f.componentDidMount == "function" && (n.flags |= 4194308)) : (typeof f.componentDidMount == "function" && (n.flags |= 4194308), n.memoizedProps = r, n.memoizedState = w), f.props = r, f.state = w, f.context = y, r = G) : (typeof f.componentDidMount == "function" && (n.flags |= 4194308), r = !1);
11167
11154
  } else {
11168
- f = n.stateNode, Os(t, n), y = n.memoizedProps, W = Fn(i, y), f.props = W, V = n.pendingProps, $ = f.context, Y = i.contextType, G = Oa, typeof Y == "object" && Y !== null && (G = re(Y)), x = i.getDerivedStateFromProps, (Y = typeof x == "function" || typeof f.getSnapshotBeforeUpdate == "function") || typeof f.UNSAFE_componentWillReceiveProps != "function" && typeof f.componentWillReceiveProps != "function" || (y !== V || $ !== G) && Ku(
11155
+ f = n.stateNode, Os(t, n), y = n.memoizedProps, W = Fn(i, y), f.props = W, V = n.pendingProps, $ = f.context, w = i.contextType, G = Oa, typeof w == "object" && w !== null && (G = re(w)), x = i.getDerivedStateFromProps, (w = typeof x == "function" || typeof f.getSnapshotBeforeUpdate == "function") || typeof f.UNSAFE_componentWillReceiveProps != "function" && typeof f.componentWillReceiveProps != "function" || (y !== V || $ !== G) && Ku(
11169
11156
  n,
11170
11157
  f,
11171
11158
  r,
@@ -11185,7 +11172,7 @@ Error generating stack: ` + r.message + `
11185
11172
  $,
11186
11173
  ut,
11187
11174
  G
11188
- ) || t !== null && t.dependencies !== null && tl(t.dependencies)) ? (Y || typeof f.UNSAFE_componentWillUpdate != "function" && typeof f.componentWillUpdate != "function" || (typeof f.componentWillUpdate == "function" && f.componentWillUpdate(r, ut, G), typeof f.UNSAFE_componentWillUpdate == "function" && f.UNSAFE_componentWillUpdate(
11175
+ ) || t !== null && t.dependencies !== null && tl(t.dependencies)) ? (w || typeof f.UNSAFE_componentWillUpdate != "function" && typeof f.componentWillUpdate != "function" || (typeof f.componentWillUpdate == "function" && f.componentWillUpdate(r, ut, G), typeof f.UNSAFE_componentWillUpdate == "function" && f.UNSAFE_componentWillUpdate(
11189
11176
  r,
11190
11177
  ut,
11191
11178
  G
@@ -11663,7 +11650,7 @@ Error generating stack: ` + r.message + `
11663
11650
  }
11664
11651
  return n;
11665
11652
  case 26:
11666
- if (Pe)
11653
+ if (Qe)
11667
11654
  return _l(t, n), t === null ? (i = Sh(
11668
11655
  n.type,
11669
11656
  null,
@@ -11826,7 +11813,7 @@ Error generating stack: ` + r.message + `
11826
11813
  }
11827
11814
  throw Error(s(156, n.tag));
11828
11815
  }
11829
- function Ke(t) {
11816
+ function Ve(t) {
11830
11817
  t.flags |= 4;
11831
11818
  }
11832
11819
  function bl(t) {
@@ -11928,12 +11915,12 @@ Error generating stack: ` + r.message + `
11928
11915
  if ($e && oc(t, n)) {
11929
11916
  t = n.stateNode;
11930
11917
  var i = t.containerInfo, r = dh();
11931
- uc(r, n, !1, !1), t.pendingChildren = r, Ke(n), wf(i, r);
11918
+ uc(r, n, !1, !1), t.pendingChildren = r, Ve(n), wf(i, r);
11932
11919
  }
11933
11920
  }
11934
11921
  function rr(t, n, i, r) {
11935
11922
  if (fe)
11936
- t.memoizedProps !== r && Ke(n);
11923
+ t.memoizedProps !== r && Ve(n);
11937
11924
  else if ($e) {
11938
11925
  var h = t.stateNode, f = t.memoizedProps;
11939
11926
  if ((t = oc(t, n)) || f !== r) {
@@ -11950,7 +11937,7 @@ Error generating stack: ` + r.message + `
11950
11937
  i,
11951
11938
  r,
11952
11939
  y
11953
- ) && Ke(n), n.stateNode = f, t && sr(f, n, !1, !1));
11940
+ ) && Ve(n), n.stateNode = f, t && sr(f, n, !1, !1));
11954
11941
  } else n.stateNode = h;
11955
11942
  }
11956
11943
  }
@@ -12017,11 +12004,11 @@ Error generating stack: ` + r.message + `
12017
12004
  case 1:
12018
12005
  return Ut(n), null;
12019
12006
  case 3:
12020
- return i = n.stateNode, r = null, t !== null && (r = t.memoizedState.cache), n.memoizedState.cache !== r && (n.flags |= 2048), xe(wt), Qn(), i.pendingContext && (i.context = i.pendingContext, i.pendingContext = null), (t === null || t.child === null) && (se(n) ? Ke(n) : t === null || t.memoizedState.isDehydrated && (n.flags & 256) === 0 || (n.flags |= 1024, It())), cc(t, n), Ut(n), null;
12007
+ return i = n.stateNode, r = null, t !== null && (r = t.memoizedState.cache), n.memoizedState.cache !== r && (n.flags |= 2048), xe(wt), Qn(), i.pendingContext && (i.context = i.pendingContext, i.pendingContext = null), (t === null || t.child === null) && (se(n) ? Ve(n) : t === null || t.memoizedState.isDehydrated && (n.flags & 256) === 0 || (n.flags |= 1024, It())), cc(t, n), Ut(n), null;
12021
12008
  case 26:
12022
- if (Pe) {
12009
+ if (Qe) {
12023
12010
  var h = n.type, f = n.memoizedState;
12024
- return t === null ? (Ke(n), f !== null ? (Ut(n), hc(
12011
+ return t === null ? (Ve(n), f !== null ? (Ut(n), hc(
12025
12012
  n,
12026
12013
  f
12027
12014
  )) : (Ut(n), or(
@@ -12030,10 +12017,10 @@ Error generating stack: ` + r.message + `
12030
12017
  null,
12031
12018
  r,
12032
12019
  i
12033
- ))) : f ? f !== t.memoizedState ? (Ke(n), Ut(n), hc(
12020
+ ))) : f ? f !== t.memoizedState ? (Ve(n), Ut(n), hc(
12034
12021
  n,
12035
12022
  f
12036
- )) : (Ut(n), n.flags &= -16777217) : (f = t.memoizedProps, fe ? f !== r && Ke(n) : rr(
12023
+ )) : (Ut(n), n.flags &= -16777217) : (f = t.memoizedProps, fe ? f !== r && Ve(n) : rr(
12037
12024
  t,
12038
12025
  n,
12039
12026
  h,
@@ -12049,7 +12036,7 @@ Error generating stack: ` + r.message + `
12049
12036
  case 27:
12050
12037
  if ($t) {
12051
12038
  if (Dt(n), i = Rn.current, h = n.type, t !== null && n.stateNode != null)
12052
- fe ? t.memoizedProps !== r && Ke(n) : rr(t, n, h, r);
12039
+ fe ? t.memoizedProps !== r && Ve(n) : rr(t, n, h, r);
12053
12040
  else {
12054
12041
  if (!r) {
12055
12042
  if (n.stateNode === null)
@@ -12062,7 +12049,7 @@ Error generating stack: ` + r.message + `
12062
12049
  i,
12063
12050
  t,
12064
12051
  !0
12065
- ), n.stateNode = t, Ke(n));
12052
+ ), n.stateNode = t, Ve(n));
12066
12053
  }
12067
12054
  return Ut(n), null;
12068
12055
  }
@@ -12095,7 +12082,7 @@ Error generating stack: ` + r.message + `
12095
12082
  h,
12096
12083
  r,
12097
12084
  f
12098
- ) && Ke(n);
12085
+ ) && Ve(n);
12099
12086
  }
12100
12087
  }
12101
12088
  return Ut(n), or(
@@ -12107,7 +12094,7 @@ Error generating stack: ` + r.message + `
12107
12094
  ), null;
12108
12095
  case 6:
12109
12096
  if (t && n.stateNode != null)
12110
- i = t.memoizedProps, fe ? i !== r && Ke(n) : $e && (i !== r ? (t = Rn.current, i = ue.current, bl(n), n.stateNode = oh(
12097
+ i = t.memoizedProps, fe ? i !== r && Ve(n) : $e && (i !== r ? (t = Rn.current, i = ue.current, bl(n), n.stateNode = oh(
12111
12098
  r,
12112
12099
  t,
12113
12100
  i,
@@ -12327,9 +12314,9 @@ Error generating stack: ` + r.message + `
12327
12314
  var y = r.inst, x = y.destroy;
12328
12315
  if (x !== void 0) {
12329
12316
  y.destroy = void 0, h = n;
12330
- var G = i, Y = x;
12317
+ var G = i, w = x;
12331
12318
  try {
12332
- Y();
12319
+ w();
12333
12320
  } catch (W) {
12334
12321
  bt(
12335
12322
  h,
@@ -12431,7 +12418,7 @@ Error generating stack: ` + r.message + `
12431
12418
  }
12432
12419
  }
12433
12420
  function pc(t) {
12434
- return t.tag === 5 || t.tag === 3 || (Pe ? t.tag === 26 : !1) || ($t ? t.tag === 27 && Ra(t.type) : !1) || t.tag === 4;
12421
+ return t.tag === 5 || t.tag === 3 || (Qe ? t.tag === 26 : !1) || ($t ? t.tag === 27 && Ra(t.type) : !1) || t.tag === 4;
12435
12422
  }
12436
12423
  function cr(t) {
12437
12424
  t: for (; ; ) {
@@ -12652,7 +12639,7 @@ Error generating stack: ` + r.message + `
12652
12639
  var n = t.alternate;
12653
12640
  n !== null && (t.alternate = null, Sc(n)), t.child = null, t.deletions = null, t.sibling = null, t.tag === 5 && (n = t.stateNode, n !== null && uf(n)), t.stateNode = null, t.return = null, t.dependencies = null, t.memoizedProps = null, t.memoizedState = null, t.pendingProps = null, t.stateNode = null, t.updateQueue = null;
12654
12641
  }
12655
- function Qe(t, n, i) {
12642
+ function Ze(t, n, i) {
12656
12643
  for (i = i.child; i !== null; )
12657
12644
  dr(
12658
12645
  t,
@@ -12668,8 +12655,8 @@ Error generating stack: ` + r.message + `
12668
12655
  }
12669
12656
  switch (i.tag) {
12670
12657
  case 26:
12671
- if (Pe) {
12672
- Pt || Ie(i, n), Qe(
12658
+ if (Qe) {
12659
+ Pt || Ie(i, n), Ze(
12673
12660
  t,
12674
12661
  n,
12675
12662
  i
@@ -12680,7 +12667,7 @@ Error generating stack: ` + r.message + `
12680
12667
  if ($t) {
12681
12668
  Pt || Ie(i, n);
12682
12669
  var r = Jt, h = Se;
12683
- Ra(i.type) && (Jt = i.stateNode, Se = !1), Qe(
12670
+ Ra(i.type) && (Jt = i.stateNode, Se = !1), Ze(
12684
12671
  t,
12685
12672
  n,
12686
12673
  i
@@ -12691,7 +12678,7 @@ Error generating stack: ` + r.message + `
12691
12678
  Pt || Ie(i, n);
12692
12679
  case 6:
12693
12680
  if (fe) {
12694
- if (r = Jt, h = Se, Jt = null, Qe(
12681
+ if (r = Jt, h = Se, Jt = null, Ze(
12695
12682
  t,
12696
12683
  n,
12697
12684
  i
@@ -12717,7 +12704,7 @@ Error generating stack: ` + r.message + `
12717
12704
  );
12718
12705
  }
12719
12706
  } else
12720
- Qe(
12707
+ Ze(
12721
12708
  t,
12722
12709
  n,
12723
12710
  i
@@ -12730,7 +12717,7 @@ Error generating stack: ` + r.message + `
12730
12717
  ) : h1(Jt, i.stateNode));
12731
12718
  break;
12732
12719
  case 4:
12733
- fe ? (r = Jt, h = Se, Jt = i.stateNode.containerInfo, Se = !0, Qe(
12720
+ fe ? (r = Jt, h = Se, Jt = i.stateNode.containerInfo, Se = !0, Ze(
12734
12721
  t,
12735
12722
  n,
12736
12723
  i
@@ -12738,7 +12725,7 @@ Error generating stack: ` + r.message + `
12738
12725
  i.stateNode,
12739
12726
  i,
12740
12727
  dh()
12741
- ), Qe(
12728
+ ), Ze(
12742
12729
  t,
12743
12730
  n,
12744
12731
  i
@@ -12748,7 +12735,7 @@ Error generating stack: ` + r.message + `
12748
12735
  case 11:
12749
12736
  case 14:
12750
12737
  case 15:
12751
- En(2, i, n), Pt || En(4, i, n), Qe(
12738
+ En(2, i, n), Pt || En(4, i, n), Ze(
12752
12739
  t,
12753
12740
  n,
12754
12741
  i
@@ -12759,28 +12746,28 @@ Error generating stack: ` + r.message + `
12759
12746
  i,
12760
12747
  n,
12761
12748
  r
12762
- )), Qe(
12749
+ )), Ze(
12763
12750
  t,
12764
12751
  n,
12765
12752
  i
12766
12753
  );
12767
12754
  break;
12768
12755
  case 21:
12769
- Qe(
12756
+ Ze(
12770
12757
  t,
12771
12758
  n,
12772
12759
  i
12773
12760
  );
12774
12761
  break;
12775
12762
  case 22:
12776
- Pt = (r = Pt) || i.memoizedState !== null, Qe(
12763
+ Pt = (r = Pt) || i.memoizedState !== null, Ze(
12777
12764
  t,
12778
12765
  n,
12779
12766
  i
12780
12767
  ), Pt = r;
12781
12768
  break;
12782
12769
  default:
12783
- Qe(
12770
+ Ze(
12784
12771
  t,
12785
12772
  n,
12786
12773
  i
@@ -12871,15 +12858,15 @@ Error generating stack: ` + r.message + `
12871
12858
  case 11:
12872
12859
  case 14:
12873
12860
  case 15:
12874
- de(n, t), ye(t), r & 4 && (En(3, t, t.return), fi(3, t), En(5, t, t.return));
12861
+ de(n, t), pe(t), r & 4 && (En(3, t, t.return), fi(3, t), En(5, t, t.return));
12875
12862
  break;
12876
12863
  case 1:
12877
- de(n, t), ye(t), r & 512 && (Pt || i === null || Ie(i, i.return)), r & 64 && fn && (t = t.updateQueue, t !== null && (r = t.callbacks, r !== null && (i = t.shared.hiddenCallbacks, t.shared.hiddenCallbacks = i === null ? r : i.concat(r))));
12864
+ de(n, t), pe(t), r & 512 && (Pt || i === null || Ie(i, i.return)), r & 64 && fn && (t = t.updateQueue, t !== null && (r = t.callbacks, r !== null && (i = t.shared.hiddenCallbacks, t.shared.hiddenCallbacks = i === null ? r : i.concat(r))));
12878
12865
  break;
12879
12866
  case 26:
12880
- if (Pe) {
12881
- var h = Je;
12882
- if (de(n, t), ye(t), r & 512 && (Pt || i === null || Ie(i, i.return)), r & 4) {
12867
+ if (Qe) {
12868
+ var h = ke;
12869
+ if (de(n, t), pe(t), r & 512 && (Pt || i === null || Ie(i, i.return)), r & 4) {
12883
12870
  r = i !== null ? i.memoizedState : null;
12884
12871
  var f = t.memoizedState;
12885
12872
  i === null ? f === null ? t.stateNode === null ? t.stateNode = y1(
@@ -12913,7 +12900,7 @@ Error generating stack: ` + r.message + `
12913
12900
  }
12914
12901
  case 27:
12915
12902
  if ($t) {
12916
- de(n, t), ye(t), r & 512 && (Pt || i === null || Ie(i, i.return)), i !== null && r & 4 && ur(
12903
+ de(n, t), pe(t), r & 512 && (Pt || i === null || Ie(i, i.return)), i !== null && r & 4 && ur(
12917
12904
  t,
12918
12905
  t.memoizedProps,
12919
12906
  i.memoizedProps
@@ -12921,7 +12908,7 @@ Error generating stack: ` + r.message + `
12921
12908
  break;
12922
12909
  }
12923
12910
  case 5:
12924
- if (de(n, t), ye(t), r & 512 && (Pt || i === null || Ie(i, i.return)), fe) {
12911
+ if (de(n, t), pe(t), r & 512 && (Pt || i === null || Ie(i, i.return)), fe) {
12925
12912
  if (t.flags & 32) {
12926
12913
  h = t.stateNode;
12927
12914
  try {
@@ -12939,7 +12926,7 @@ Error generating stack: ` + r.message + `
12939
12926
  $e && t.alternate !== null && (t.alternate.stateNode = t.stateNode);
12940
12927
  break;
12941
12928
  case 6:
12942
- if (de(n, t), ye(t), r & 4 && fe) {
12929
+ if (de(n, t), pe(t), r & 4 && fe) {
12943
12930
  if (t.stateNode === null)
12944
12931
  throw Error(s(162));
12945
12932
  r = t.memoizedProps, i = i !== null ? i.memoizedProps : r, h = t.stateNode;
@@ -12951,7 +12938,7 @@ Error generating stack: ` + r.message + `
12951
12938
  }
12952
12939
  break;
12953
12940
  case 3:
12954
- if (Pe ? (_1(), h = Je, Je = Lr(n.containerInfo), de(n, t), Je = h) : de(n, t), ye(t), r & 4) {
12941
+ if (Qe ? (_1(), h = ke, ke = Lr(n.containerInfo), de(n, t), ke = h) : de(n, t), pe(t), r & 4) {
12955
12942
  if (fe && ge && i !== null && i.memoizedState.isDehydrated)
12956
12943
  try {
12957
12944
  s1(n.containerInfo);
@@ -12970,30 +12957,30 @@ Error generating stack: ` + r.message + `
12970
12957
  to && (to = !1, Ec(t));
12971
12958
  break;
12972
12959
  case 4:
12973
- Pe ? (i = Je, Je = Lr(
12960
+ Qe ? (i = ke, ke = Lr(
12974
12961
  t.stateNode.containerInfo
12975
- ), de(n, t), ye(t), Je = i) : (de(n, t), ye(t)), r & 4 && $e && yc(
12962
+ ), de(n, t), pe(t), ke = i) : (de(n, t), pe(t)), r & 4 && $e && yc(
12976
12963
  t.stateNode,
12977
12964
  t,
12978
12965
  t.stateNode.pendingChildren
12979
12966
  );
12980
12967
  break;
12981
12968
  case 12:
12982
- de(n, t), ye(t);
12969
+ de(n, t), pe(t);
12983
12970
  break;
12984
12971
  case 31:
12985
- de(n, t), ye(t), r & 4 && (r = t.updateQueue, r !== null && (t.updateQueue = null, El(t, r)));
12972
+ de(n, t), pe(t), r & 4 && (r = t.updateQueue, r !== null && (t.updateQueue = null, El(t, r)));
12986
12973
  break;
12987
12974
  case 13:
12988
- de(n, t), ye(t), t.child.flags & 8192 && t.memoizedState !== null != (i !== null && i.memoizedState !== null) && (Wl = _e()), r & 4 && (r = t.updateQueue, r !== null && (t.updateQueue = null, El(t, r)));
12975
+ de(n, t), pe(t), t.child.flags & 8192 && t.memoizedState !== null != (i !== null && i.memoizedState !== null) && (Wl = _e()), r & 4 && (r = t.updateQueue, r !== null && (t.updateQueue = null, El(t, r)));
12989
12976
  break;
12990
12977
  case 22:
12991
12978
  h = t.memoizedState !== null;
12992
12979
  var y = i !== null && i.memoizedState !== null, x = fn, G = Pt;
12993
- if (fn = x || h, Pt = G || y, de(n, t), Pt = G, fn = x, ye(t), r & 8192 && (n = t.stateNode, n._visibility = h ? n._visibility & -2 : n._visibility | 1, h && (i === null || y || fn || Pt || Wn(t)), fe)) {
12980
+ if (fn = x || h, Pt = G || y, de(n, t), Pt = G, fn = x, pe(t), r & 8192 && (n = t.stateNode, n._visibility = h ? n._visibility & -2 : n._visibility | 1, h && (i === null || y || fn || Pt || Wn(t)), fe)) {
12994
12981
  t: if (i = null, fe)
12995
12982
  for (n = t; ; ) {
12996
- if (n.tag === 5 || Pe && n.tag === 26) {
12983
+ if (n.tag === 5 || Qe && n.tag === 26) {
12997
12984
  if (i === null) {
12998
12985
  y = i = n;
12999
12986
  try {
@@ -13009,8 +12996,8 @@ Error generating stack: ` + r.message + `
13009
12996
  if (i === null) {
13010
12997
  y = n;
13011
12998
  try {
13012
- var Y = y.stateNode;
13013
- h ? Gf(Y) : Bf(Y, y.memoizedProps);
12999
+ var w = y.stateNode;
13000
+ h ? Gf(w) : Bf(w, y.memoizedProps);
13014
13001
  } catch (V) {
13015
13002
  bt(y, y.return, V);
13016
13003
  }
@@ -13041,17 +13028,17 @@ Error generating stack: ` + r.message + `
13041
13028
  r & 4 && (r = t.updateQueue, r !== null && (i = r.retryQueue, i !== null && (r.retryQueue = null, El(t, i))));
13042
13029
  break;
13043
13030
  case 19:
13044
- de(n, t), ye(t), r & 4 && (r = t.updateQueue, r !== null && (t.updateQueue = null, El(t, r)));
13031
+ de(n, t), pe(t), r & 4 && (r = t.updateQueue, r !== null && (t.updateQueue = null, El(t, r)));
13045
13032
  break;
13046
13033
  case 30:
13047
13034
  break;
13048
13035
  case 21:
13049
13036
  break;
13050
13037
  default:
13051
- de(n, t), ye(t);
13038
+ de(n, t), pe(t);
13052
13039
  }
13053
13040
  }
13054
- function ye(t) {
13041
+ function pe(t) {
13055
13042
  var n = t.flags;
13056
13043
  if (n & 2) {
13057
13044
  try {
@@ -13079,10 +13066,10 @@ Error generating stack: ` + r.message + `
13079
13066
  break;
13080
13067
  case 3:
13081
13068
  case 4:
13082
- var G = i.stateNode.containerInfo, Y = cr(t);
13069
+ var G = i.stateNode.containerInfo, w = cr(t);
13083
13070
  hr(
13084
13071
  t,
13085
- Y,
13072
+ w,
13086
13073
  G
13087
13074
  );
13088
13075
  break;
@@ -13167,8 +13154,8 @@ Error generating stack: ` + r.message + `
13167
13154
  ), r = f, h = r.stateNode, typeof h.componentDidMount == "function")
13168
13155
  try {
13169
13156
  h.componentDidMount();
13170
- } catch (Y) {
13171
- bt(r, r.return, Y);
13157
+ } catch (w) {
13158
+ bt(r, r.return, w);
13172
13159
  }
13173
13160
  if (r = f, h = r.updateQueue, h !== null) {
13174
13161
  var x = r.stateNode;
@@ -13177,8 +13164,8 @@ Error generating stack: ` + r.message + `
13177
13164
  if (G !== null)
13178
13165
  for (h.shared.hiddenCallbacks = null, h = 0; h < G.length; h++)
13179
13166
  lu(G[h], x);
13180
- } catch (Y) {
13181
- bt(r, r.return, Y);
13167
+ } catch (w) {
13168
+ bt(r, r.return, w);
13182
13169
  }
13183
13170
  }
13184
13171
  i && y & 64 && fc(f), gi(f, f.return);
@@ -13240,7 +13227,7 @@ Error generating stack: ` + r.message + `
13240
13227
  function gr(t, n) {
13241
13228
  t = null, n.alternate !== null && (t = n.alternate.memoizedState.cache), n = n.memoizedState.cache, n !== t && (n.refCount++, t != null && ii(t));
13242
13229
  }
13243
- function ke(t, n, i, r) {
13230
+ function Ke(t, n, i, r) {
13244
13231
  if (n.subtreeFlags & 10256)
13245
13232
  for (n = n.child; n !== null; )
13246
13233
  Tc(
@@ -13256,7 +13243,7 @@ Error generating stack: ` + r.message + `
13256
13243
  case 0:
13257
13244
  case 11:
13258
13245
  case 15:
13259
- ke(
13246
+ Ke(
13260
13247
  t,
13261
13248
  n,
13262
13249
  i,
@@ -13264,7 +13251,7 @@ Error generating stack: ` + r.message + `
13264
13251
  ), h & 2048 && fi(9, n);
13265
13252
  break;
13266
13253
  case 1:
13267
- ke(
13254
+ Ke(
13268
13255
  t,
13269
13256
  n,
13270
13257
  i,
@@ -13272,7 +13259,7 @@ Error generating stack: ` + r.message + `
13272
13259
  );
13273
13260
  break;
13274
13261
  case 3:
13275
- ke(
13262
+ Ke(
13276
13263
  t,
13277
13264
  n,
13278
13265
  i,
@@ -13281,7 +13268,7 @@ Error generating stack: ` + r.message + `
13281
13268
  break;
13282
13269
  case 12:
13283
13270
  if (h & 2048) {
13284
- ke(
13271
+ Ke(
13285
13272
  t,
13286
13273
  n,
13287
13274
  i,
@@ -13299,7 +13286,7 @@ Error generating stack: ` + r.message + `
13299
13286
  bt(n, n.return, G);
13300
13287
  }
13301
13288
  } else
13302
- ke(
13289
+ Ke(
13303
13290
  t,
13304
13291
  n,
13305
13292
  i,
@@ -13307,7 +13294,7 @@ Error generating stack: ` + r.message + `
13307
13294
  );
13308
13295
  break;
13309
13296
  case 31:
13310
- ke(
13297
+ Ke(
13311
13298
  t,
13312
13299
  n,
13313
13300
  i,
@@ -13315,7 +13302,7 @@ Error generating stack: ` + r.message + `
13315
13302
  );
13316
13303
  break;
13317
13304
  case 13:
13318
- ke(
13305
+ Ke(
13319
13306
  t,
13320
13307
  n,
13321
13308
  i,
@@ -13325,7 +13312,7 @@ Error generating stack: ` + r.message + `
13325
13312
  case 23:
13326
13313
  break;
13327
13314
  case 22:
13328
- f = n.stateNode, y = n.alternate, n.memoizedState !== null ? f._visibility & 2 ? ke(
13315
+ f = n.stateNode, y = n.alternate, n.memoizedState !== null ? f._visibility & 2 ? Ke(
13329
13316
  t,
13330
13317
  n,
13331
13318
  i,
@@ -13333,7 +13320,7 @@ Error generating stack: ` + r.message + `
13333
13320
  ) : mi(
13334
13321
  t,
13335
13322
  n
13336
- ) : f._visibility & 2 ? ke(
13323
+ ) : f._visibility & 2 ? Ke(
13337
13324
  t,
13338
13325
  n,
13339
13326
  i,
@@ -13347,7 +13334,7 @@ Error generating stack: ` + r.message + `
13347
13334
  )), h & 2048 && fr(y, n);
13348
13335
  break;
13349
13336
  case 24:
13350
- ke(
13337
+ Ke(
13351
13338
  t,
13352
13339
  n,
13353
13340
  i,
@@ -13355,7 +13342,7 @@ Error generating stack: ` + r.message + `
13355
13342
  ), h & 2048 && gr(n.alternate, n);
13356
13343
  break;
13357
13344
  default:
13358
- ke(
13345
+ Ke(
13359
13346
  t,
13360
13347
  n,
13361
13348
  i,
@@ -13365,7 +13352,7 @@ Error generating stack: ` + r.message + `
13365
13352
  }
13366
13353
  function xa(t, n, i, r, h) {
13367
13354
  for (h = h && ((n.subtreeFlags & 10256) !== 0 || !1), n = n.child; n !== null; ) {
13368
- var f = t, y = n, x = i, G = r, Y = y.flags;
13355
+ var f = t, y = n, x = i, G = r, w = y.flags;
13369
13356
  switch (y.tag) {
13370
13357
  case 0:
13371
13358
  case 11:
@@ -13397,7 +13384,7 @@ Error generating stack: ` + r.message + `
13397
13384
  x,
13398
13385
  G,
13399
13386
  h
13400
- )), h && Y & 2048 && fr(
13387
+ )), h && w & 2048 && fr(
13401
13388
  y.alternate,
13402
13389
  y
13403
13390
  );
@@ -13409,7 +13396,7 @@ Error generating stack: ` + r.message + `
13409
13396
  x,
13410
13397
  G,
13411
13398
  h
13412
- ), h && Y & 2048 && gr(y.alternate, y);
13399
+ ), h && w & 2048 && gr(y.alternate, y);
13413
13400
  break;
13414
13401
  default:
13415
13402
  xa(
@@ -13466,7 +13453,7 @@ Error generating stack: ` + r.message + `
13466
13453
  if (t.memoizedState !== null)
13467
13454
  b1(
13468
13455
  i,
13469
- Je,
13456
+ ke,
13470
13457
  t.memoizedState,
13471
13458
  t.memoizedProps
13472
13459
  );
@@ -13484,13 +13471,13 @@ Error generating stack: ` + r.message + `
13484
13471
  break;
13485
13472
  case 3:
13486
13473
  case 4:
13487
- Pe ? (r = Je, Je = Lr(
13474
+ Qe ? (r = ke, ke = Lr(
13488
13475
  t.stateNode.containerInfo
13489
13476
  ), In(
13490
13477
  t,
13491
13478
  n,
13492
13479
  i
13493
- ), Je = r) : In(
13480
+ ), ke = r) : In(
13494
13481
  t,
13495
13482
  n,
13496
13483
  i
@@ -13868,7 +13855,7 @@ Error generating stack: ` + r.message + `
13868
13855
  } while (!0);
13869
13856
  We(t);
13870
13857
  }
13871
- function Gc(t, n, i, r, h, f, y, x, G, Y, W, V, $, ut) {
13858
+ function Gc(t, n, i, r, h, f, y, x, G, w, W, V, $, ut) {
13872
13859
  if (t.timeoutHandle = ta, V = n.subtreeFlags, V & 8192 || (V & 16785408) === 16785408) {
13873
13860
  V = df(), Ac(
13874
13861
  n,
@@ -13898,7 +13885,7 @@ Error generating stack: ` + r.message + `
13898
13885
  $,
13899
13886
  ut
13900
13887
  )
13901
- ), Tn(t, f, y, !Y);
13888
+ ), Tn(t, f, y, !w);
13902
13889
  return;
13903
13890
  }
13904
13891
  }
@@ -14018,14 +14005,14 @@ Error generating stack: ` + r.message + `
14018
14005
  case 9:
14019
14006
  case 6:
14020
14007
  De.current === null && (n = !0);
14021
- var Y = Tt;
14022
- if (Tt = 0, Oe = null, Ta(t, x, G, Y), i && Za) {
14008
+ var w = Tt;
14009
+ if (Tt = 0, Oe = null, Ta(t, x, G, w), i && Za) {
14023
14010
  y = 0;
14024
14011
  break t;
14025
14012
  }
14026
14013
  break;
14027
14014
  default:
14028
- Y = Tt, Tt = 0, Oe = null, Ta(t, x, G, Y);
14015
+ w = Tt, Tt = 0, Oe = null, Ta(t, x, G, w);
14029
14016
  }
14030
14017
  }
14031
14018
  Ud(), y = jt;
@@ -14082,8 +14069,8 @@ Error generating stack: ` + r.message + `
14082
14069
  y = gt.memoizedState;
14083
14070
  case 5:
14084
14071
  case 27:
14085
- var x = gt, G = x.type, Y = x.pendingProps;
14086
- if (y ? Th(y) : uh(x.stateNode, G, Y)) {
14072
+ var x = gt, G = x.type, w = x.pendingProps;
14073
+ if (y ? Th(y) : uh(x.stateNode, G, w)) {
14087
14074
  Tt = 0, Oe = null;
14088
14075
  var W = x.sibling;
14089
14076
  if (W !== null) gt = W;
@@ -14463,7 +14450,7 @@ Error generating stack: ` + r.message + `
14463
14450
  var y = 0;
14464
14451
  if (r = t, typeof t == "function") Cr(t) && (y = 1);
14465
14452
  else if (typeof t == "string")
14466
- y = Pe && $t ? _h(t, i, ue.current) ? 26 : Nh(t) ? 27 : 5 : Pe ? _h(
14453
+ y = Qe && $t ? _h(t, i, ue.current) ? 26 : Nh(t) ? 27 : 5 : Qe ? _h(
14467
14454
  t,
14468
14455
  i,
14469
14456
  ue.current
@@ -14542,14 +14529,14 @@ Error generating stack: ` + r.message + `
14542
14529
  function Zd(t, n, i, r, h, f, y, x, G) {
14543
14530
  this.tag = 1, this.containerInfo = t, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = ta, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = U(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = U(0), this.hiddenUpdates = U(null), this.identifierPrefix = r, this.onUncaughtError = h, this.onCaughtError = f, this.onRecoverableError = y, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = G, this.incompleteTransitions = /* @__PURE__ */ new Map();
14544
14531
  }
14545
- function Ic(t, n, i, r, h, f, y, x, G, Y, W, V) {
14532
+ function Ic(t, n, i, r, h, f, y, x, G, w, W, V) {
14546
14533
  return t = new Zd(
14547
14534
  t,
14548
14535
  n,
14549
14536
  i,
14550
14537
  y,
14551
14538
  G,
14552
- Y,
14539
+ w,
14553
14540
  W,
14554
14541
  V,
14555
14542
  x
@@ -14580,7 +14567,7 @@ Error generating stack: ` + r.message + `
14580
14567
  function Tr(t, n) {
14581
14568
  nh(t, n), (t = t.alternate) && nh(t, n);
14582
14569
  }
14583
- var dt = {}, Kd = t2, Ae = fs, Ar = Object.assign, Qd = Symbol.for("react.element"), Rl = Symbol.for("react.transitional.element"), Aa = Symbol.for("react.portal"), Ma = Symbol.for("react.fragment"), ah = Symbol.for("react.strict_mode"), Mr = Symbol.for("react.profiler"), ih = Symbol.for("react.consumer"), An = Symbol.for("react.context"), Nr = Symbol.for("react.forward_ref"), Rr = Symbol.for("react.suspense"), Dr = Symbol.for("react.suspense_list"), Or = Symbol.for("react.memo"), Mn = Symbol.for("react.lazy"), zr = Symbol.for("react.activity"), kd = Symbol.for("react.memo_cache_sentinel"), lh = Symbol.iterator, Pd = Symbol.for("react.client.reference"), Dl = Array.isArray, it = Kd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Jd = e.rendererVersion, Fd = e.rendererPackageName, sh = e.extraDevToolsConfig, vi = e.getPublicInstance, Wd = e.getRootHostContext, Id = e.getChildHostContext, $d = e.prepareForCommit, tf = e.resetAfterCommit, ef = e.createInstance;
14570
+ var dt = {}, Kd = $1, Ae = fs, Ar = Object.assign, Qd = Symbol.for("react.element"), Rl = Symbol.for("react.transitional.element"), Aa = Symbol.for("react.portal"), Ma = Symbol.for("react.fragment"), ah = Symbol.for("react.strict_mode"), Mr = Symbol.for("react.profiler"), ih = Symbol.for("react.consumer"), An = Symbol.for("react.context"), Nr = Symbol.for("react.forward_ref"), Rr = Symbol.for("react.suspense"), Dr = Symbol.for("react.suspense_list"), Or = Symbol.for("react.memo"), Mn = Symbol.for("react.lazy"), zr = Symbol.for("react.activity"), kd = Symbol.for("react.memo_cache_sentinel"), lh = Symbol.iterator, Pd = Symbol.for("react.client.reference"), Dl = Array.isArray, it = Kd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Jd = e.rendererVersion, Fd = e.rendererPackageName, sh = e.extraDevToolsConfig, vi = e.getPublicInstance, Wd = e.getRootHostContext, Id = e.getChildHostContext, $d = e.prepareForCommit, tf = e.resetAfterCommit, ef = e.createInstance;
14584
14571
  e.cloneMutableInstance;
14585
14572
  var Gr = e.appendInitialChild, rh = e.finalizeInitialChildren, Ol = e.shouldSetTextContent, oh = e.createTextInstance;
14586
14573
  e.cloneMutableTextInstance;
@@ -14610,7 +14597,7 @@ Error generating stack: ` + r.message + `
14610
14597
  e.clearActivityBoundaryFromContainer;
14611
14598
  var d1 = e.clearSuspenseBoundaryFromContainer, f1 = e.hideDehydratedBoundary, g1 = e.unhideDehydratedBoundary, vh = e.shouldDeleteUnhydratedTailInstances;
14612
14599
  e.diffHydratedPropsForDevWarnings, e.diffHydratedTextForDevWarnings, e.describeHydratableInstanceForDevWarnings;
14613
- var m1 = e.validateHydratableInstance, p1 = e.validateHydratableTextInstance, Pe = e.supportsResources, _h = e.isHostHoistableType, Lr = e.getHoistableRoot, Sh = e.getResource, bh = e.acquireResource, Ch = e.releaseResource, y1 = e.hydrateHoistable, xh = e.mountHoistable, Eh = e.unmountHoistable, v1 = e.createHoistableInstance, _1 = e.prepareToCommitHoistables, S1 = e.mayResourceSuspendCommit, Th = e.preloadResource, b1 = e.suspendResource, $t = e.supportsSingletons, Ah = e.resolveSingletonInstance, C1 = e.acquireSingletonInstance, Mh = e.releaseSingletonInstance, Nh = e.isHostSingletonType, Ra = e.isSingletonScope, wr = [], Da = -1, Oa = {}, Me = Math.clz32 ? Math.clz32 : R, x1 = Math.log, E1 = Math.LN2, zl = 256, Gl = 262144, Hl = 4194304, Bl = Ae.unstable_scheduleCallback, Yr = Ae.unstable_cancelCallback, T1 = Ae.unstable_shouldYield, A1 = Ae.unstable_requestPaint, _e = Ae.unstable_now, Rh = Ae.unstable_ImmediatePriority, M1 = Ae.unstable_UserBlockingPriority, Xr = Ae.unstable_NormalPriority, N1 = Ae.unstable_IdlePriority, R1 = Ae.log, D1 = Ae.unstable_setDisableYieldValue, bi = null, Ne = null, Re = typeof Object.is == "function" ? Object.is : et, Dh = typeof reportError == "function" ? reportError : function(t) {
14600
+ var m1 = e.validateHydratableInstance, p1 = e.validateHydratableTextInstance, Qe = e.supportsResources, _h = e.isHostHoistableType, Lr = e.getHoistableRoot, Sh = e.getResource, bh = e.acquireResource, Ch = e.releaseResource, y1 = e.hydrateHoistable, xh = e.mountHoistable, Eh = e.unmountHoistable, v1 = e.createHoistableInstance, _1 = e.prepareToCommitHoistables, S1 = e.mayResourceSuspendCommit, Th = e.preloadResource, b1 = e.suspendResource, $t = e.supportsSingletons, Ah = e.resolveSingletonInstance, C1 = e.acquireSingletonInstance, Mh = e.releaseSingletonInstance, Nh = e.isHostSingletonType, Ra = e.isSingletonScope, wr = [], Da = -1, Oa = {}, Me = Math.clz32 ? Math.clz32 : R, x1 = Math.log, E1 = Math.LN2, zl = 256, Gl = 262144, Hl = 4194304, Bl = Ae.unstable_scheduleCallback, Yr = Ae.unstable_cancelCallback, T1 = Ae.unstable_shouldYield, A1 = Ae.unstable_requestPaint, _e = Ae.unstable_now, Rh = Ae.unstable_ImmediatePriority, M1 = Ae.unstable_UserBlockingPriority, Xr = Ae.unstable_NormalPriority, N1 = Ae.unstable_IdlePriority, R1 = Ae.log, D1 = Ae.unstable_setDisableYieldValue, bi = null, Ne = null, Re = typeof Object.is == "function" ? Object.is : et, Dh = typeof reportError == "function" ? reportError : function(t) {
14614
14601
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
14615
14602
  var n = new window.ErrorEvent("error", {
14616
14603
  bubbles: !0,
@@ -14678,7 +14665,7 @@ Error generating stack: ` + r.message + `
14678
14665
  readContext: re,
14679
14666
  use: dl,
14680
14667
  useCallback: function(t, n) {
14681
- return pe().memoizedState = [
14668
+ return me().memoizedState = [
14682
14669
  t,
14683
14670
  n === void 0 ? null : n
14684
14671
  ], t;
@@ -14700,7 +14687,7 @@ Error generating stack: ` + r.message + `
14700
14687
  gl(4, 2, t, n);
14701
14688
  },
14702
14689
  useMemo: function(t, n) {
14703
- var i = pe();
14690
+ var i = me();
14704
14691
  n = n === void 0 ? null : n;
14705
14692
  var r = t();
14706
14693
  if (ra) {
@@ -14714,7 +14701,7 @@ Error generating stack: ` + r.message + `
14714
14701
  return i.memoizedState = [r, n], r;
14715
14702
  },
14716
14703
  useReducer: function(t, n, i) {
14717
- var r = pe();
14704
+ var r = me();
14718
14705
  if (i !== void 0) {
14719
14706
  var h = i(n);
14720
14707
  if (ra) {
@@ -14739,7 +14726,7 @@ Error generating stack: ` + r.message + `
14739
14726
  ), [r.memoizedState, t];
14740
14727
  },
14741
14728
  useRef: function(t) {
14742
- var n = pe();
14729
+ var n = me();
14743
14730
  return t = { current: t }, n.memoizedState = t;
14744
14731
  },
14745
14732
  useState: function(t) {
@@ -14753,7 +14740,7 @@ Error generating stack: ` + r.message + `
14753
14740
  },
14754
14741
  useDebugValue: ks,
14755
14742
  useDeferredValue: function(t, n) {
14756
- var i = pe();
14743
+ var i = me();
14757
14744
  return Ps(i, t, n);
14758
14745
  },
14759
14746
  useTransition: function() {
@@ -14764,10 +14751,10 @@ Error generating stack: ` + r.message + `
14764
14751
  t.queue,
14765
14752
  !0,
14766
14753
  !1
14767
- ), pe().memoizedState = t, [!1, t];
14754
+ ), me().memoizedState = t, [!1, t];
14768
14755
  },
14769
14756
  useSyncExternalStore: function(t, n, i) {
14770
- var r = ct, h = pe();
14757
+ var r = ct, h = me();
14771
14758
  if (yt) {
14772
14759
  if (i === void 0)
14773
14760
  throw Error(s(407));
@@ -14795,7 +14782,7 @@ Error generating stack: ` + r.message + `
14795
14782
  ), i;
14796
14783
  },
14797
14784
  useId: function() {
14798
- var t = pe(), n = Nt.identifierPrefix;
14785
+ var t = me(), n = Nt.identifierPrefix;
14799
14786
  if (yt) {
14800
14787
  var i = en, r = tn;
14801
14788
  i = (r & ~(1 << 32 - Me(r) - 1)).toString(32) + i, n = "_" + n + "R_" + i, i = Kl++, 0 < i && (n += "H" + i.toString(32)), n += "_";
@@ -14807,7 +14794,7 @@ Error generating stack: ` + r.message + `
14807
14794
  useFormState: xu,
14808
14795
  useActionState: xu,
14809
14796
  useOptimistic: function(t) {
14810
- var n = pe();
14797
+ var n = me();
14811
14798
  n.memoizedState = n.baseState = t;
14812
14799
  var i = {
14813
14800
  pending: null,
@@ -14825,13 +14812,13 @@ Error generating stack: ` + r.message + `
14825
14812
  },
14826
14813
  useMemoCache: qs,
14827
14814
  useCacheRefresh: function() {
14828
- return pe().memoizedState = Ad.bind(
14815
+ return me().memoizedState = Ad.bind(
14829
14816
  null,
14830
14817
  ct
14831
14818
  );
14832
14819
  },
14833
14820
  useEffectEvent: function(t) {
14834
- var n = pe(), i = { impl: t };
14821
+ var n = me(), i = { impl: t };
14835
14822
  return n.memoizedState = i, function() {
14836
14823
  if ((ft & 2) !== 0)
14837
14824
  throw Error(s(440));
@@ -14949,7 +14936,7 @@ Error generating stack: ` + r.message + `
14949
14936
  treeContext: null,
14950
14937
  retryLane: 0,
14951
14938
  hydrationErrors: null
14952
- }, fn = !1, Pt = !1, to = !1, Lh = typeof WeakSet == "function" ? WeakSet : Set, ae = null, Jt = null, Se = !1, Je = null, Va = 8192, U1 = {
14939
+ }, fn = !1, Pt = !1, to = !1, Lh = typeof WeakSet == "function" ? WeakSet : Set, ae = null, Jt = null, Se = !1, ke = null, Va = 8192, U1 = {
14953
14940
  getCacheForType: function(t) {
14954
14941
  var n = re(wt), i = n.data.get(t);
14955
14942
  return i === void 0 && (i = t(), n.data.set(t, i)), i;
@@ -14971,7 +14958,7 @@ Error generating stack: ` + r.message + `
14971
14958
  }, dt.attemptHydrationAtCurrentPriority = function(t) {
14972
14959
  if (t.tag === 13 || t.tag === 31) {
14973
14960
  var n = Te();
14974
- n = w(n);
14961
+ n = L(n);
14975
14962
  var i = Jn(t, n);
14976
14963
  i !== null && ve(i, t, n), Tr(t, n);
14977
14964
  }
@@ -14997,7 +14984,7 @@ Error generating stack: ` + r.message + `
14997
14984
  return t(n);
14998
14985
  }, dt.createComponentSelector = function(t) {
14999
14986
  return { $$typeof: Ql, value: t };
15000
- }, dt.createContainer = function(t, n, i, r, h, f, y, x, G, Y) {
14987
+ }, dt.createContainer = function(t, n, i, r, h, f, y, x, G, w) {
15001
14988
  return Ic(
15002
14989
  t,
15003
14990
  n,
@@ -15010,11 +14997,11 @@ Error generating stack: ` + r.message + `
15010
14997
  y,
15011
14998
  x,
15012
14999
  G,
15013
- Y
15000
+ w
15014
15001
  );
15015
15002
  }, dt.createHasPseudoClassSelector = function(t) {
15016
15003
  return { $$typeof: kl, value: t };
15017
- }, dt.createHydrationContainer = function(t, n, i, r, h, f, y, x, G, Y, W, V, $, ut) {
15004
+ }, dt.createHydrationContainer = function(t, n, i, r, h, f, y, x, G, w, W, V, $, ut) {
15018
15005
  return t = Ic(
15019
15006
  i,
15020
15007
  r,
@@ -15025,10 +15012,10 @@ Error generating stack: ` + r.message + `
15025
15012
  x,
15026
15013
  ut,
15027
15014
  G,
15028
- Y,
15015
+ w,
15029
15016
  W,
15030
15017
  V
15031
- ), t.context = $c(null), i = t.current, r = Te(), r = w(r), h = Sn(r), h.callback = n ?? null, bn(i, h, r), n = r, t.current.lanes = n, B(t, n), We(t), t;
15018
+ ), t.context = $c(null), i = t.current, r = Te(), r = L(r), h = Sn(r), h.callback = n ?? null, bn(i, h, r), n = r, t.current.lanes = n, B(t, n), We(t), t;
15032
15019
  }, dt.createPortal = function(t, n, i) {
15033
15020
  var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
15034
15021
  return {
@@ -15073,13 +15060,13 @@ Error generating stack: ` + r.message + `
15073
15060
  i = t[n];
15074
15061
  for (var r = i.x, h = r + i.width, f = i.y, y = f + i.height, x = n - 1; 0 <= x; x--)
15075
15062
  if (n !== x) {
15076
- var G = t[x], Y = G.x, W = Y + G.width, V = G.y, $ = V + G.height;
15077
- if (r >= Y && f >= V && h <= W && y <= $) {
15063
+ var G = t[x], w = G.x, W = w + G.width, V = G.y, $ = V + G.height;
15064
+ if (r >= w && f >= V && h <= W && y <= $) {
15078
15065
  t.splice(n, 1);
15079
15066
  break;
15080
- } else if (r !== Y || i.width !== G.width || $ < f || V > y) {
15081
- if (!(f !== V || i.height !== G.height || W < r || Y > h)) {
15082
- Y > r && (G.width += Y - r, G.x = r), W < h && (G.width = h - Y), t.splice(n, 1);
15067
+ } else if (r !== w || i.width !== G.width || $ < f || V > y) {
15068
+ if (!(f !== V || i.height !== G.height || W < r || w > h)) {
15069
+ w > r && (G.width += w - r, G.x = r), W < h && (G.width = h - w), t.splice(n, 1);
15083
15070
  break;
15084
15071
  }
15085
15072
  } else {
@@ -15224,10 +15211,10 @@ No matching component was found for:
15224
15211
  }, dt;
15225
15212
  }, o.exports.default = o.exports, Object.defineProperty(o.exports, "__esModule", { value: !0 });
15226
15213
  })(hd);
15227
- var o4 = hd.exports;
15228
- cd.exports = o4;
15229
- var u4 = cd.exports;
15230
- const c4 = /* @__PURE__ */ e2(u4);
15214
+ var l4 = hd.exports;
15215
+ cd.exports = l4;
15216
+ var s4 = cd.exports;
15217
+ const r4 = /* @__PURE__ */ t2(s4);
15231
15218
  var dd = { exports: {} }, Zn = {};
15232
15219
  /**
15233
15220
  * @license React
@@ -15257,18 +15244,18 @@ const m0 = {
15257
15244
  unstable_applyDrawHitFromCache: !0
15258
15245
  };
15259
15246
  let p0 = !1, y0 = !1;
15260
- const ys = ".react-konva-event", h4 = `ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
15247
+ const ys = ".react-konva-event", o4 = `ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
15261
15248
  Position of a node will be changed during drag&drop, so you should update state of the react app as well.
15262
15249
  Consider to add onDragMove or onDragEnd events.
15263
15250
  For more info see: https://github.com/konvajs/react-konva/issues/256
15264
- `, d4 = `ReactKonva: You are using "zIndex" attribute for a Konva node.
15251
+ `, u4 = `ReactKonva: You are using "zIndex" attribute for a Konva node.
15265
15252
  react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
15266
15253
  For more info see: https://github.com/konvajs/react-konva/issues/194
15267
- `, f4 = {};
15268
- function Ts(o, e, a = f4) {
15269
- if (!p0 && "zIndex" in e && (console.warn(d4), p0 = !0), !y0 && e.draggable) {
15254
+ `, c4 = {};
15255
+ function Ts(o, e, a = c4) {
15256
+ if (!p0 && "zIndex" in e && (console.warn(u4), p0 = !0), !y0 && e.draggable) {
15270
15257
  var l = e.x !== void 0 || e.y !== void 0, s = e.onDragEnd || e.onDragMove;
15271
- l && !s && (console.warn(h4), y0 = !0);
15258
+ l && !s && (console.warn(o4), y0 = !0);
15272
15259
  }
15273
15260
  for (var u in a)
15274
15261
  if (!m0[u]) {
@@ -15301,17 +15288,17 @@ function Kn(o) {
15301
15288
  e && e.batchDraw();
15302
15289
  }
15303
15290
  }
15304
- const fd = {}, g4 = {};
15291
+ const fd = {}, h4 = {};
15305
15292
  $a.Node.prototype._applyProps = Ts;
15306
15293
  let gd = Es.DefaultEventPriority;
15307
- function m4(o, e) {
15294
+ function d4(o, e) {
15308
15295
  if (typeof e == "string") {
15309
15296
  console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);
15310
15297
  return;
15311
15298
  }
15312
15299
  o.add(e), Kn(o);
15313
15300
  }
15314
- function p4(o, e, a) {
15301
+ function f4(o, e, a) {
15315
15302
  let l = $a[o];
15316
15303
  l || (console.error(`Konva has no node with the type ${o}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${o}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`), l = $a.Group);
15317
15304
  const s = {}, u = {};
@@ -15323,203 +15310,203 @@ function p4(o, e, a) {
15323
15310
  const g = new l(s);
15324
15311
  return Ts(g, u), g;
15325
15312
  }
15326
- function y4(o, e, a) {
15313
+ function g4(o, e, a) {
15327
15314
  console.error(`Text components are not supported for now in ReactKonva. Your text is: "${o}"`);
15328
15315
  }
15329
- function v4(o, e, a) {
15316
+ function m4(o, e, a) {
15330
15317
  return !1;
15331
15318
  }
15332
- function _4(o) {
15319
+ function p4(o) {
15333
15320
  return o;
15334
15321
  }
15335
- function S4() {
15322
+ function y4() {
15336
15323
  return null;
15337
15324
  }
15338
- function b4() {
15325
+ function v4() {
15339
15326
  return null;
15340
15327
  }
15341
- function C4(o, e, a, l) {
15342
- return g4;
15328
+ function _4(o, e, a, l) {
15329
+ return h4;
15343
15330
  }
15344
- function x4() {
15331
+ function S4() {
15345
15332
  }
15346
- function E4(o) {
15333
+ function b4(o) {
15347
15334
  }
15348
- function T4(o, e) {
15335
+ function C4(o, e) {
15349
15336
  return !1;
15350
15337
  }
15351
- function A4() {
15338
+ function x4() {
15352
15339
  return fd;
15353
15340
  }
15354
- function M4() {
15341
+ function E4() {
15355
15342
  return fd;
15356
15343
  }
15357
- const N4 = setTimeout, R4 = clearTimeout, D4 = !0, O4 = (o) => {
15344
+ const T4 = setTimeout, A4 = clearTimeout, M4 = !0, N4 = (o) => {
15358
15345
  o();
15359
- }, z4 = -1;
15360
- function G4(o, e) {
15346
+ }, R4 = -1;
15347
+ function D4(o, e) {
15361
15348
  return !1;
15362
15349
  }
15363
- const H4 = !1, B4 = !1, U4 = !0, L4 = !1, w4 = !1;
15364
- function Y4(o, e) {
15350
+ const O4 = !1, z4 = !1, G4 = !0, H4 = !1, B4 = !1;
15351
+ function U4(o, e) {
15365
15352
  e.parent === o ? e.moveToTop() : o.add(e), Kn(o);
15366
15353
  }
15367
- function X4(o, e) {
15354
+ function L4(o, e) {
15368
15355
  e.parent === o ? e.moveToTop() : o.add(e), Kn(o);
15369
15356
  }
15370
15357
  function md(o, e, a) {
15371
15358
  e._remove(), o.add(e), e.setZIndex(a.getZIndex()), Kn(o);
15372
15359
  }
15373
- function q4(o, e, a) {
15360
+ function w4(o, e, a) {
15374
15361
  md(o, e, a);
15375
15362
  }
15376
- function j4(o, e) {
15363
+ function Y4(o, e) {
15377
15364
  e.destroy(), e.off(ys), Kn(o);
15378
15365
  }
15379
- function V4(o, e) {
15366
+ function X4(o, e) {
15380
15367
  e.destroy(), e.off(ys), Kn(o);
15381
15368
  }
15382
- function Z4(o, e, a) {
15369
+ function q4(o, e, a) {
15383
15370
  console.error(`Text components are not yet supported in ReactKonva. You text is: "${a}"`);
15384
15371
  }
15385
- function K4(o, e, a) {
15372
+ function j4(o, e, a) {
15386
15373
  }
15387
- function Q4(o, e, a, l) {
15374
+ function V4(o, e, a, l) {
15388
15375
  Ts(o, l, a);
15389
15376
  }
15390
- function k4(o) {
15377
+ function Z4(o) {
15391
15378
  o.hide(), Kn(o);
15392
15379
  }
15393
- function P4(o) {
15380
+ function K4(o) {
15394
15381
  }
15395
- function J4(o, e) {
15382
+ function Q4(o, e) {
15396
15383
  (e.visible == null || e.visible) && o.show();
15397
15384
  }
15398
- function F4(o, e) {
15385
+ function k4(o, e) {
15386
+ }
15387
+ function P4(o) {
15388
+ }
15389
+ function J4() {
15390
+ }
15391
+ function F4() {
15392
+ return null;
15399
15393
  }
15400
- function W4(o) {
15394
+ function W4() {
15401
15395
  }
15402
15396
  function I4() {
15403
15397
  }
15404
15398
  function $4() {
15405
- return null;
15399
+ return Es.DefaultEventPriority;
15406
15400
  }
15407
15401
  function tg() {
15408
15402
  }
15409
15403
  function eg() {
15404
+ return null;
15410
15405
  }
15411
- function ng() {
15412
- return Es.DefaultEventPriority;
15406
+ function ng(o) {
15407
+ gd = o;
15413
15408
  }
15414
15409
  function ag() {
15410
+ return gd;
15415
15411
  }
15416
15412
  function ig() {
15417
- return null;
15413
+ return Es.DiscreteEventPriority;
15418
15414
  }
15419
- function lg(o) {
15420
- gd = o;
15415
+ function lg() {
15416
+ return !1;
15421
15417
  }
15422
15418
  function sg() {
15423
- return gd;
15424
15419
  }
15425
15420
  function rg() {
15426
- return Es.DiscreteEventPriority;
15421
+ return null;
15427
15422
  }
15428
15423
  function og() {
15429
- return !1;
15424
+ return -1.1;
15430
15425
  }
15431
15426
  function ug() {
15432
15427
  }
15433
15428
  function cg() {
15434
- return null;
15429
+ return !1;
15435
15430
  }
15436
15431
  function hg() {
15437
- return -1.1;
15432
+ return !0;
15438
15433
  }
15439
15434
  function dg() {
15440
15435
  }
15441
15436
  function fg() {
15442
- return !1;
15443
15437
  }
15444
15438
  function gg() {
15445
- return !0;
15446
- }
15447
- function mg() {
15448
- }
15449
- function pg() {
15450
- }
15451
- function yg() {
15452
15439
  return null;
15453
15440
  }
15454
- const vg = null, _g = /* @__PURE__ */ ee.createContext(null);
15455
- function Sg() {
15441
+ const mg = null, pg = /* @__PURE__ */ ee.createContext(null);
15442
+ function yg() {
15456
15443
  }
15457
- const bg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15444
+ const vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15458
15445
  __proto__: null,
15459
- HostTransitionContext: _g,
15460
- NotPendingTransition: vg,
15461
- afterActiveInstanceBlur: eg,
15462
- appendChild: Y4,
15463
- appendChildToContainer: X4,
15464
- appendInitialChild: m4,
15465
- beforeActiveInstanceBlur: tg,
15466
- cancelTimeout: R4,
15467
- clearContainer: W4,
15468
- commitMount: K4,
15469
- commitTextUpdate: Z4,
15470
- commitUpdate: Q4,
15471
- createInstance: p4,
15472
- createTextInstance: y4,
15473
- detachDeletedInstance: I4,
15474
- finalizeInitialChildren: v4,
15475
- getChildHostContext: M4,
15476
- getCurrentEventPriority: ng,
15477
- getCurrentUpdatePriority: sg,
15478
- getInstanceFromNode: $4,
15479
- getInstanceFromScope: ig,
15480
- getPublicInstance: _4,
15481
- getRootHostContext: A4,
15482
- hideInstance: k4,
15483
- hideTextInstance: P4,
15446
+ HostTransitionContext: pg,
15447
+ NotPendingTransition: mg,
15448
+ afterActiveInstanceBlur: I4,
15449
+ appendChild: U4,
15450
+ appendChildToContainer: L4,
15451
+ appendInitialChild: d4,
15452
+ beforeActiveInstanceBlur: W4,
15453
+ cancelTimeout: A4,
15454
+ clearContainer: P4,
15455
+ commitMount: j4,
15456
+ commitTextUpdate: q4,
15457
+ commitUpdate: V4,
15458
+ createInstance: f4,
15459
+ createTextInstance: g4,
15460
+ detachDeletedInstance: J4,
15461
+ finalizeInitialChildren: m4,
15462
+ getChildHostContext: E4,
15463
+ getCurrentEventPriority: $4,
15464
+ getCurrentUpdatePriority: ag,
15465
+ getInstanceFromNode: F4,
15466
+ getInstanceFromScope: eg,
15467
+ getPublicInstance: p4,
15468
+ getRootHostContext: x4,
15469
+ hideInstance: Z4,
15470
+ hideTextInstance: K4,
15484
15471
  idlePriority: fs.unstable_IdlePriority,
15485
15472
  insertBefore: md,
15486
- insertInContainerBefore: q4,
15487
- isPrimaryRenderer: H4,
15488
- maySuspendCommit: fg,
15489
- noTimeout: z4,
15473
+ insertInContainerBefore: w4,
15474
+ isPrimaryRenderer: O4,
15475
+ maySuspendCommit: cg,
15476
+ noTimeout: R4,
15490
15477
  now: fs.unstable_now,
15491
- preloadInstance: gg,
15492
- prepareForCommit: S4,
15493
- preparePortalMount: b4,
15494
- prepareScopeUpdate: ag,
15495
- prepareUpdate: C4,
15496
- removeChild: j4,
15497
- removeChildFromContainer: V4,
15498
- requestPostPaintCallback: dg,
15499
- resetAfterCommit: x4,
15500
- resetFormInstance: Sg,
15501
- resetTextContent: E4,
15502
- resolveEventTimeStamp: hg,
15503
- resolveEventType: cg,
15504
- resolveUpdatePriority: rg,
15478
+ preloadInstance: hg,
15479
+ prepareForCommit: y4,
15480
+ preparePortalMount: v4,
15481
+ prepareScopeUpdate: tg,
15482
+ prepareUpdate: _4,
15483
+ removeChild: Y4,
15484
+ removeChildFromContainer: X4,
15485
+ requestPostPaintCallback: ug,
15486
+ resetAfterCommit: S4,
15487
+ resetFormInstance: yg,
15488
+ resetTextContent: b4,
15489
+ resolveEventTimeStamp: og,
15490
+ resolveEventType: rg,
15491
+ resolveUpdatePriority: ig,
15505
15492
  run: fs.unstable_runWithPriority,
15506
- scheduleMicrotask: O4,
15507
- scheduleTimeout: N4,
15508
- setCurrentUpdatePriority: lg,
15509
- shouldAttemptEagerTransition: og,
15510
- shouldDeprioritizeSubtree: T4,
15511
- shouldSetTextContent: G4,
15512
- startSuspendingCommit: mg,
15513
- supportsHydration: w4,
15514
- supportsMicrotasks: D4,
15515
- supportsMutation: U4,
15516
- supportsPersistence: L4,
15517
- suspendInstance: pg,
15518
- trackSchedulerEvent: ug,
15519
- unhideInstance: J4,
15520
- unhideTextInstance: F4,
15521
- waitForCommitToBeReady: yg,
15522
- warnsIfNotActing: B4
15493
+ scheduleMicrotask: N4,
15494
+ scheduleTimeout: T4,
15495
+ setCurrentUpdatePriority: ng,
15496
+ shouldAttemptEagerTransition: lg,
15497
+ shouldDeprioritizeSubtree: C4,
15498
+ shouldSetTextContent: D4,
15499
+ startSuspendingCommit: dg,
15500
+ supportsHydration: B4,
15501
+ supportsMicrotasks: M4,
15502
+ supportsMutation: G4,
15503
+ supportsPersistence: H4,
15504
+ suspendInstance: fg,
15505
+ trackSchedulerEvent: sg,
15506
+ unhideInstance: Q4,
15507
+ unhideTextInstance: k4,
15508
+ waitForCommitToBeReady: gg,
15509
+ warnsIfNotActing: z4
15523
15510
  }, Symbol.toStringTag, { value: "Module" }));
15524
15511
  function pd(o, e, a) {
15525
15512
  if (!o) return;
@@ -15553,17 +15540,17 @@ function yd(o) {
15553
15540
  return o;
15554
15541
  }
15555
15542
  }
15556
- const Zo = /* @__PURE__ */ yd(/* @__PURE__ */ I1(null));
15557
- class vd extends P1 {
15543
+ const Zo = /* @__PURE__ */ yd(/* @__PURE__ */ W1(null));
15544
+ class vd extends k1 {
15558
15545
  render() {
15559
15546
  return /* @__PURE__ */ fa(Zo.Provider, { value: this._reactInternals }, this.props.children);
15560
15547
  }
15561
15548
  }
15562
- function Cg() {
15563
- const o = F1(Zo);
15549
+ function _g() {
15550
+ const o = J1(Zo);
15564
15551
  if (o === null) throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");
15565
- const e = W1();
15566
- return Ve(() => {
15552
+ const e = F1();
15553
+ return Pe(() => {
15567
15554
  for (const a of [o, o?.alternate]) {
15568
15555
  if (!a) continue;
15569
15556
  const l = pd(a, !1, (s) => {
@@ -15577,20 +15564,20 @@ function Cg() {
15577
15564
  }
15578
15565
  }, [o, e]);
15579
15566
  }
15580
- const xg = Symbol.for("react.context"), Eg = (o) => o !== null && typeof o == "object" && "$$typeof" in o && o.$$typeof === xg;
15581
- function Tg() {
15582
- const o = Cg(), [e] = me(() => /* @__PURE__ */ new Map());
15567
+ const Sg = Symbol.for("react.context"), bg = (o) => o !== null && typeof o == "object" && "$$typeof" in o && o.$$typeof === Sg;
15568
+ function Cg() {
15569
+ const o = _g(), [e] = ye(() => /* @__PURE__ */ new Map());
15583
15570
  e.clear();
15584
15571
  let a = o;
15585
15572
  for (; a; ) {
15586
15573
  const l = a.type;
15587
- Eg(l) && l !== Zo && !e.has(l) && e.set(l, J1(yd(l))), a = a.return;
15574
+ bg(l) && l !== Zo && !e.has(l) && e.set(l, P1(yd(l))), a = a.return;
15588
15575
  }
15589
15576
  return e;
15590
15577
  }
15591
- function Ag() {
15592
- const o = Tg();
15593
- return Ve(
15578
+ function xg() {
15579
+ const o = Cg();
15580
+ return Pe(
15594
15581
  () => Array.from(o.keys()).reduce(
15595
15582
  (e, a) => (l) => /* @__PURE__ */ fa(e, null, /* @__PURE__ */ fa(a.Provider, { ...l, value: o.get(a) })),
15596
15583
  (e) => /* @__PURE__ */ fa(vd, { ...e })
@@ -15600,7 +15587,7 @@ function Ag() {
15600
15587
  }
15601
15588
  if (ee.version.indexOf("19") === -1)
15602
15589
  throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");
15603
- function Mg(o) {
15590
+ function Eg(o) {
15604
15591
  const e = ee.useRef({});
15605
15592
  return ee.useLayoutEffect(() => {
15606
15593
  e.current = o;
@@ -15608,16 +15595,16 @@ function Mg(o) {
15608
15595
  e.current = {};
15609
15596
  }, []), e.current;
15610
15597
  }
15611
- const Ng = () => {
15598
+ const Tg = () => {
15612
15599
  const o = ee.useRef(0);
15613
15600
  return ee.useMemo(() => {
15614
15601
  o.current++;
15615
15602
  }, []), o.current > 1;
15616
- }, Rg = (o) => {
15617
- const e = ee.useRef(null), a = ee.useRef(null), l = ee.useRef(null), s = Mg(o), u = Ag(), c = ee.useRef(null), d = (p) => {
15603
+ }, Ag = (o) => {
15604
+ const e = ee.useRef(null), a = ee.useRef(null), l = ee.useRef(null), s = Eg(o), u = xg(), c = ee.useRef(null), d = (p) => {
15618
15605
  const { forwardedRef: _ } = o;
15619
15606
  _ && (typeof _ == "function" ? _(p) : _.current = p);
15620
- }, g = Ng(), m = () => {
15607
+ }, g = Tg(), m = () => {
15621
15608
  d(null), Ja.flushSyncFromReconciler(() => {
15622
15609
  Ja.updateContainer(null, l.current, null);
15623
15610
  }), a.current?.destroy(), a.current = null;
@@ -15643,7 +15630,7 @@ const Ng = () => {
15643
15630
  tabIndex: o.tabIndex,
15644
15631
  title: o.title
15645
15632
  });
15646
- }, po = "Layer", yo = "Group", vo = "Circle", ha = "Line", Dg = "Text", Og = "Arrow", Ja = c4(bg), zg = ee.forwardRef((o, e) => ee.createElement(vd, {}, ee.createElement(Rg, { ...o, forwardedRef: e })));
15633
+ }, po = "Layer", yo = "Group", vo = "Circle", ha = "Line", Mg = "Text", Ng = "Arrow", Ja = r4(vg), Rg = ee.forwardRef((o, e) => ee.createElement(vd, {}, ee.createElement(Ag, { ...o, forwardedRef: e })));
15647
15634
  function Xi(o, e, a) {
15648
15635
  return { x: o.x * e, y: o.y * a };
15649
15636
  }
@@ -15653,11 +15640,11 @@ function _o(o, e, a) {
15653
15640
  function v0(o, e, a) {
15654
15641
  return o.flatMap((l) => [l.x * e, l.y * a]);
15655
15642
  }
15656
- function Gg(o, e) {
15643
+ function Dg(o, e) {
15657
15644
  return o.color;
15658
15645
  }
15659
- const Hg = "33", Bg = "66", _0 = 16, S0 = 9;
15660
- function Ug({
15646
+ const Og = "33", zg = "66", _0 = 16, S0 = 9;
15647
+ function Gg({
15661
15648
  zones: o,
15662
15649
  selectedZoneId: e,
15663
15650
  onSelectZone: a,
@@ -15667,22 +15654,22 @@ function Ug({
15667
15654
  backdrop: c,
15668
15655
  transparent: d = !1
15669
15656
  }) {
15670
- const g = ga(null), [m, p] = me({ w: 800, h: 450 }), [_, v] = me([]), [b, S] = me(null), [R, T] = me(null), [A, E] = me(null);
15657
+ const g = ga(null), [m, p] = ye({ w: 800, h: 450 }), [_, v] = ye([]), [b, S] = ye(null), [R, T] = ye(null), [A, E] = ye(null);
15671
15658
  Fa(() => {
15672
15659
  if (!A) return;
15673
- const w = o.find((tt) => tt.id === A.zoneId);
15674
- if (!w) {
15660
+ const L = o.find((tt) => tt.id === A.zoneId);
15661
+ if (!L) {
15675
15662
  E(null);
15676
15663
  return;
15677
15664
  }
15678
- if (w.points.length !== A.points.length) return;
15679
- w.points.every((tt, et) => {
15665
+ if (L.points.length !== A.points.length) return;
15666
+ L.points.every((tt, et) => {
15680
15667
  const I = A.points[et];
15681
15668
  return Math.abs(tt.x - I.x) < 1e-6 && Math.abs(tt.y - I.y) < 1e-6;
15682
15669
  }) && E(null);
15683
15670
  }, [o, A]), Fa(() => {
15684
- const w = g.current;
15685
- if (!w) return;
15671
+ const L = g.current;
15672
+ if (!L) return;
15686
15673
  const j = new ResizeObserver((tt) => {
15687
15674
  const et = tt[0];
15688
15675
  if (et) {
@@ -15690,19 +15677,19 @@ function Ug({
15690
15677
  p(d ? { w: I, h: F } : { w: I, h: I * 9 / 16 });
15691
15678
  }
15692
15679
  });
15693
- return j.observe(w), () => j.disconnect();
15680
+ return j.observe(L), () => j.disconnect();
15694
15681
  }, [d]);
15695
15682
  const O = u !== null;
15696
15683
  Fa(() => {
15697
15684
  !O && b !== null && S(null);
15698
15685
  }, [O, b]);
15699
15686
  const H = le(
15700
- (w) => {
15687
+ (L) => {
15701
15688
  if (!O) {
15702
15689
  a(null);
15703
15690
  return;
15704
15691
  }
15705
- const j = w.target.getStage();
15692
+ const j = L.target.getStage();
15706
15693
  if (!j) return;
15707
15694
  const tt = j.getPointerPosition();
15708
15695
  if (!tt) return;
@@ -15740,9 +15727,9 @@ function Ug({
15740
15727
  },
15741
15728
  [O, _, m, u, s, a]
15742
15729
  ), U = le(
15743
- (w) => {
15730
+ (L) => {
15744
15731
  if (!O || u === "tripwire" || _.length < 3) return;
15745
- w.cancelBubble = !0;
15732
+ L.cancelBubble = !0;
15746
15733
  const j = {
15747
15734
  id: crypto.randomUUID(),
15748
15735
  name: "Zone",
@@ -15758,9 +15745,9 @@ function Ug({
15758
15745
  B.current !== null && cancelAnimationFrame(B.current);
15759
15746
  }, []);
15760
15747
  const X = le(
15761
- (w) => {
15748
+ (L) => {
15762
15749
  if (!O) return;
15763
- const j = w.target.getStage();
15750
+ const j = L.target.getStage();
15764
15751
  if (!j) return;
15765
15752
  const tt = j.getPointerPosition();
15766
15753
  k.current = tt ?? null, B.current === null && (B.current = requestAnimationFrame(() => {
@@ -15770,16 +15757,16 @@ function Ug({
15770
15757
  [O]
15771
15758
  ), P = [];
15772
15759
  if (!d) {
15773
- for (let w = 1; w < _0; w++) {
15774
- const j = m.w / _0 * w;
15760
+ for (let L = 1; L < _0; L++) {
15761
+ const j = m.w / _0 * L;
15775
15762
  P.push(
15776
- /* @__PURE__ */ L(ha, { points: [j, 0, j, m.h], stroke: "#ffffff", strokeWidth: 0.5, opacity: 0.08 }, `gv-${w}`)
15763
+ /* @__PURE__ */ Y(ha, { points: [j, 0, j, m.h], stroke: "#ffffff", strokeWidth: 0.5, opacity: 0.08 }, `gv-${L}`)
15777
15764
  );
15778
15765
  }
15779
- for (let w = 1; w < S0; w++) {
15780
- const j = m.h / S0 * w;
15766
+ for (let L = 1; L < S0; L++) {
15767
+ const j = m.h / S0 * L;
15781
15768
  P.push(
15782
- /* @__PURE__ */ L(ha, { points: [0, j, m.w, j], stroke: "#ffffff", strokeWidth: 0.5, opacity: 0.08 }, `gh-${w}`)
15769
+ /* @__PURE__ */ Y(ha, { points: [0, j, m.w, j], stroke: "#ffffff", strokeWidth: 0.5, opacity: 0.08 }, `gh-${L}`)
15783
15770
  );
15784
15771
  }
15785
15772
  }
@@ -15790,7 +15777,7 @@ function Ug({
15790
15777
  className: d ? "absolute inset-0" : "relative w-full bg-zinc-900 rounded-lg overflow-hidden",
15791
15778
  style: { cursor: O ? "crosshair" : "default" },
15792
15779
  children: [
15793
- c && !d ? /* @__PURE__ */ L(
15780
+ c && !d ? /* @__PURE__ */ Y(
15794
15781
  "div",
15795
15782
  {
15796
15783
  className: "absolute inset-0 pointer-events-none [&>*]:w-full [&>*]:h-full [&>img]:object-cover [&>video]:object-cover",
@@ -15799,7 +15786,7 @@ function Ug({
15799
15786
  }
15800
15787
  ) : null,
15801
15788
  /* @__PURE__ */ rt(
15802
- zg,
15789
+ Rg,
15803
15790
  {
15804
15791
  width: m.w,
15805
15792
  height: m.h,
@@ -15808,16 +15795,16 @@ function Ug({
15808
15795
  onMouseMove: X,
15809
15796
  children: [
15810
15797
  /* @__PURE__ */ rt(po, { listening: !1, children: [
15811
- /* @__PURE__ */ L(ha, { points: [0, 0, m.w, 0, m.w, m.h, 0, m.h, 0, 0], stroke: "transparent", strokeWidth: 0 }),
15798
+ /* @__PURE__ */ Y(ha, { points: [0, 0, m.w, 0, m.w, m.h, 0, m.h, 0, 0], stroke: "transparent", strokeWidth: 0 }),
15812
15799
  P
15813
15800
  ] }),
15814
- /* @__PURE__ */ L(po, { children: o.map((w) => {
15815
- const j = w.id === e, tt = Gg(w), et = A && A.zoneId === w.id ? A.points : w.points, I = v0(et, m.w, m.h), F = w.kind === "tripwire", ht = j && !O, at = R === w.id, ot = et.map((Dt) => Dt.x * m.w), vt = et.map((Dt) => Dt.y * m.h), _t = ot.length > 0 ? Math.min(...ot) : 0, Mt = ot.length > 0 ? Math.max(...ot) : 0, Wt = vt.length > 0 ? Math.min(...vt) : 0, Ii = vt.length > 0 ? Math.max(...vt) : 0;
15801
+ /* @__PURE__ */ Y(po, { children: o.map((L) => {
15802
+ const j = L.id === e, tt = Dg(L), et = A && A.zoneId === L.id ? A.points : L.points, I = v0(et, m.w, m.h), F = L.kind === "tripwire", ht = j && !O, at = R === L.id, ot = et.map((Dt) => Dt.x * m.w), vt = et.map((Dt) => Dt.y * m.h), _t = ot.length > 0 ? Math.min(...ot) : 0, Mt = ot.length > 0 ? Math.max(...ot) : 0, Wt = vt.length > 0 ? Math.min(...vt) : 0, Ii = vt.length > 0 ? Math.max(...vt) : 0;
15816
15803
  return /* @__PURE__ */ rt(
15817
15804
  yo,
15818
15805
  {
15819
15806
  onClick: (Dt) => {
15820
- Dt.cancelBubble = !0, O || a(w.id);
15807
+ Dt.cancelBubble = !0, O || a(L.id);
15821
15808
  },
15822
15809
  children: [
15823
15810
  /* @__PURE__ */ rt(
@@ -15829,13 +15816,13 @@ function Ug({
15829
15816
  y: Math.max(-Wt, Math.min(m.h - Ii, Dt.y))
15830
15817
  }) : void 0,
15831
15818
  onDragStart: ht ? () => {
15832
- T(w.id);
15819
+ T(L.id);
15833
15820
  } : void 0,
15834
15821
  onDragEnd: ht ? (Dt) => {
15835
15822
  const Et = Dt.target, Ce = Et.x() / m.w, Ue = Et.y() / m.h;
15836
15823
  if (Et.position({ x: 0, y: 0 }), T(null), Ce === 0 && Ue === 0) return;
15837
- const se = w.points.map((Bt) => ({ x: Bt.x + Ce, y: Bt.y + Ue }));
15838
- E({ zoneId: w.id, points: se }), l(w.id, se);
15824
+ const se = L.points.map((Bt) => ({ x: Bt.x + Ce, y: Bt.y + Ue }));
15825
+ E({ zoneId: L.id, points: se }), l(L.id, se);
15839
15826
  } : void 0,
15840
15827
  onMouseEnter: (Dt) => {
15841
15828
  if (!ht) return;
@@ -15848,8 +15835,8 @@ function Ug({
15848
15835
  Et && (Et.container().style.cursor = O ? "crosshair" : "default");
15849
15836
  },
15850
15837
  children: [
15851
- F ? /* @__PURE__ */ L(
15852
- Og,
15838
+ F ? /* @__PURE__ */ Y(
15839
+ Ng,
15853
15840
  {
15854
15841
  points: I,
15855
15842
  stroke: tt,
@@ -15859,27 +15846,27 @@ function Ug({
15859
15846
  pointerWidth: 8,
15860
15847
  opacity: j ? 1 : 0.8
15861
15848
  }
15862
- ) : /* @__PURE__ */ L(
15849
+ ) : /* @__PURE__ */ Y(
15863
15850
  ha,
15864
15851
  {
15865
15852
  points: I,
15866
15853
  closed: !0,
15867
- fill: tt + (j ? Bg : Hg),
15854
+ fill: tt + (j ? zg : Og),
15868
15855
  stroke: tt,
15869
15856
  strokeWidth: j ? 2.5 : 1.5,
15870
15857
  opacity: j ? 1 : 0.85
15871
15858
  }
15872
15859
  ),
15873
15860
  et.length > 0 && (() => {
15874
- const Dt = et.reduce((It, Ot) => It + Ot.x, 0), Et = et.reduce((It, Ot) => It + Ot.y, 0), Ce = Dt / et.length, Ue = Et / et.length, se = Xi({ x: Ce, y: Ue }, m.w, m.h), Bt = Math.max(40, w.name.length * 11 * 0.62);
15875
- return /* @__PURE__ */ L(
15876
- Dg,
15861
+ const Dt = et.reduce((It, Ot) => It + Ot.x, 0), Et = et.reduce((It, Ot) => It + Ot.y, 0), Ce = Dt / et.length, Ue = Et / et.length, se = Xi({ x: Ce, y: Ue }, m.w, m.h), Bt = Math.max(40, L.name.length * 11 * 0.62);
15862
+ return /* @__PURE__ */ Y(
15863
+ Mg,
15877
15864
  {
15878
15865
  x: se.x - Bt / 2,
15879
15866
  y: se.y - 7,
15880
15867
  width: Bt,
15881
15868
  align: "center",
15882
- text: w.name,
15869
+ text: L.name,
15883
15870
  fontSize: 12,
15884
15871
  fill: tt,
15885
15872
  stroke: "#000000",
@@ -15895,7 +15882,7 @@ function Ug({
15895
15882
  ),
15896
15883
  j && !at && et.map((Dt, Et) => {
15897
15884
  const Ce = Xi(Dt, m.w, m.h), Ue = F ? 2 : 3, se = et.length > Ue;
15898
- return /* @__PURE__ */ L(
15885
+ return /* @__PURE__ */ Y(
15899
15886
  vo,
15900
15887
  {
15901
15888
  x: Ce.x,
@@ -15908,18 +15895,18 @@ function Ug({
15908
15895
  onDragMove: (Bt) => {
15909
15896
  const It = _o({ x: Bt.target.x(), y: Bt.target.y() }, m.w, m.h);
15910
15897
  E((Ot) => {
15911
- const xe = (Ot && Ot.zoneId === w.id ? Ot.points : w.points).map((ni, ai) => ai === Et ? It : ni);
15912
- return { zoneId: w.id, points: xe };
15898
+ const xe = (Ot && Ot.zoneId === L.id ? Ot.points : L.points).map((ni, ai) => ai === Et ? It : ni);
15899
+ return { zoneId: L.id, points: xe };
15913
15900
  });
15914
15901
  },
15915
15902
  onDragEnd: (Bt) => {
15916
- const It = _o({ x: Bt.target.x(), y: Bt.target.y() }, m.w, m.h), Ot = w.points.map((Vt, xe) => xe === Et ? It : Vt);
15917
- E({ zoneId: w.id, points: Ot }), l(w.id, Ot);
15903
+ const It = _o({ x: Bt.target.x(), y: Bt.target.y() }, m.w, m.h), Ot = L.points.map((Vt, xe) => xe === Et ? It : Vt);
15904
+ E({ zoneId: L.id, points: Ot }), l(L.id, Ot);
15918
15905
  },
15919
15906
  onContextMenu: (Bt) => {
15920
15907
  if (Bt.evt.preventDefault(), Bt.cancelBubble = !0, !se) return;
15921
- const It = w.points.filter((Ot, Vt) => Vt !== Et);
15922
- l(w.id, It);
15908
+ const It = L.points.filter((Ot, Vt) => Vt !== Et);
15909
+ l(L.id, It);
15923
15910
  }
15924
15911
  },
15925
15912
  `pt-${Et}`
@@ -15927,7 +15914,7 @@ function Ug({
15927
15914
  }),
15928
15915
  j && !at && !F && et.length >= 2 && et.map((Dt, Et) => {
15929
15916
  const Ce = et[(Et + 1) % et.length], Ue = (Dt.x + Ce.x) / 2, se = (Dt.y + Ce.y) / 2, Bt = Xi({ x: Ue, y: se }, m.w, m.h);
15930
- return /* @__PURE__ */ L(
15917
+ return /* @__PURE__ */ Y(
15931
15918
  vo,
15932
15919
  {
15933
15920
  x: Bt.x,
@@ -15952,11 +15939,11 @@ function Ug({
15952
15939
  onClick: (It) => {
15953
15940
  It.cancelBubble = !0;
15954
15941
  const Ot = Et + 1, Vt = [
15955
- ...w.points.slice(0, Ot),
15942
+ ...L.points.slice(0, Ot),
15956
15943
  { x: Ue, y: se },
15957
- ...w.points.slice(Ot)
15944
+ ...L.points.slice(Ot)
15958
15945
  ];
15959
- l(w.id, Vt);
15946
+ l(L.id, Vt);
15960
15947
  }
15961
15948
  },
15962
15949
  `mid-${Et}`
@@ -15964,11 +15951,11 @@ function Ug({
15964
15951
  })
15965
15952
  ]
15966
15953
  },
15967
- w.id
15954
+ L.id
15968
15955
  );
15969
15956
  }) }),
15970
- /* @__PURE__ */ L(po, { listening: !1, children: O && _.length > 0 && /* @__PURE__ */ rt(yo, { children: [
15971
- _.length >= 2 && u !== "tripwire" && /* @__PURE__ */ L(
15957
+ /* @__PURE__ */ Y(po, { listening: !1, children: O && _.length > 0 && /* @__PURE__ */ rt(yo, { children: [
15958
+ _.length >= 2 && u !== "tripwire" && /* @__PURE__ */ Y(
15972
15959
  ha,
15973
15960
  {
15974
15961
  points: v0(_, m.w, m.h),
@@ -15978,7 +15965,7 @@ function Ug({
15978
15965
  opacity: 0.8
15979
15966
  }
15980
15967
  ),
15981
- _.length === 1 && u === "tripwire" && b && /* @__PURE__ */ L(
15968
+ _.length === 1 && u === "tripwire" && b && /* @__PURE__ */ Y(
15982
15969
  ha,
15983
15970
  {
15984
15971
  points: [
@@ -15993,7 +15980,7 @@ function Ug({
15993
15980
  opacity: 0.7
15994
15981
  }
15995
15982
  ),
15996
- b && _.length >= 1 && u !== "tripwire" && /* @__PURE__ */ L(
15983
+ b && _.length >= 1 && u !== "tripwire" && /* @__PURE__ */ Y(
15997
15984
  ha,
15998
15985
  {
15999
15986
  points: [
@@ -16008,9 +15995,9 @@ function Ug({
16008
15995
  opacity: 0.5
16009
15996
  }
16010
15997
  ),
16011
- _.map((w, j) => {
16012
- const tt = Xi(w, m.w, m.h), et = j === 0;
16013
- return /* @__PURE__ */ L(
15998
+ _.map((L, j) => {
15999
+ const tt = Xi(L, m.w, m.h), et = j === 0;
16000
+ return /* @__PURE__ */ Y(
16014
16001
  vo,
16015
16002
  {
16016
16003
  x: tt.x,
@@ -16028,12 +16015,12 @@ function Ug({
16028
16015
  ]
16029
16016
  }
16030
16017
  ),
16031
- O ? /* @__PURE__ */ L("div", { className: "px-3 py-1.5 bg-zinc-800/80 text-[11px] text-zinc-400 border-t border-zinc-700", children: u === "tripwire" ? "Click to set start point, click again to complete the tripwire" : _.length < 3 ? "Click to add points (min 3). Double-click or click first point to close." : "Continue adding points. Double-click or click first point to close." }) : null
16018
+ O ? /* @__PURE__ */ Y("div", { className: "px-3 py-1.5 bg-zinc-800/80 text-[11px] text-zinc-400 border-t border-zinc-700", children: u === "tripwire" ? "Click to set start point, click again to complete the tripwire" : _.length < 3 ? "Click to add points (min 3). Double-click or click first point to close." : "Continue adding points. Double-click or click first point to close." }) : null
16032
16019
  ]
16033
16020
  }
16034
16021
  );
16035
16022
  }
16036
- const Lg = Uo(Ug), wg = "#3b82f6", So = [
16023
+ const Hg = Uo(Gg), Bg = "#3b82f6", So = [
16037
16024
  "#3b82f6",
16038
16025
  "#10b981",
16039
16026
  "#f59e0b",
@@ -16045,18 +16032,18 @@ const Lg = Uo(Ug), wg = "#3b82f6", So = [
16045
16032
  "#8b5cf6",
16046
16033
  "#14b8a6"
16047
16034
  ];
16048
- function Yg(o) {
16035
+ function Ug(o) {
16049
16036
  const e = new Set(o.map((a) => (a.color ?? "").toLowerCase()));
16050
16037
  for (const a of So)
16051
16038
  if (!e.has(a.toLowerCase())) return a;
16052
16039
  return So[o.length % So.length];
16053
16040
  }
16054
- function Xg(o) {
16041
+ function Lg(o) {
16055
16042
  return {
16056
16043
  id: o.id,
16057
16044
  name: o.name,
16058
16045
  kind: o.kind,
16059
- color: o.color || wg,
16046
+ color: o.color || Bg,
16060
16047
  points: [...o.polygon]
16061
16048
  };
16062
16049
  }
@@ -16069,16 +16056,16 @@ function b0(o) {
16069
16056
  color: o.color
16070
16057
  };
16071
16058
  }
16072
- function qg({ deviceId: o }) {
16073
- const e = vs(), a = _s(e.trpcClient, o), l = Ss(a?.state.zones), s = Ve(() => l?.zones ?? [], [l]), u = Ho(), c = u?.drawingKind ?? null, d = u?.selectedZoneId ?? null, g = u?.editingDraft ?? null, m = Ve(() => s.map((b) => g && g.id === b.id ? {
16059
+ function wg({ deviceId: o }) {
16060
+ const e = vs(), a = _s(e.trpcClient, o), l = Ss(a?.state.zones), s = Pe(() => l?.zones ?? [], [l]), u = Ho(), c = u?.drawingKind ?? null, d = u?.selectedZoneId ?? null, g = u?.editingDraft ?? null, m = Pe(() => s.map((b) => g && g.id === b.id ? {
16074
16061
  id: g.id,
16075
16062
  name: g.name,
16076
16063
  kind: g.kind,
16077
16064
  color: g.color,
16078
16065
  points: [...g.points]
16079
- } : Xg(b)), [s, g]), p = le(
16066
+ } : Lg(b)), [s, g]), p = le(
16080
16067
  async (b) => {
16081
- const S = { ...b, color: Yg(m) };
16068
+ const S = { ...b, color: Ug(m) };
16082
16069
  try {
16083
16070
  await a?.zones?.addZone({ zone: b0(S) });
16084
16071
  } catch (R) {
@@ -16123,8 +16110,8 @@ function qg({ deviceId: o }) {
16123
16110
  },
16124
16111
  [m, u]
16125
16112
  );
16126
- return m.length === 0 && c === null ? null : /* @__PURE__ */ L(
16127
- Lg,
16113
+ return m.length === 0 && c === null ? null : /* @__PURE__ */ Y(
16114
+ Hg,
16128
16115
  {
16129
16116
  zones: m,
16130
16117
  selectedZoneId: d,
@@ -16136,17 +16123,17 @@ function qg({ deviceId: o }) {
16136
16123
  }
16137
16124
  );
16138
16125
  }
16139
- const jg = Uo(qg), Vg = "#3b82f6";
16140
- function Zg(o) {
16126
+ const Yg = Uo(wg), Xg = "#3b82f6";
16127
+ function qg(o) {
16141
16128
  return {
16142
16129
  id: o.id,
16143
16130
  name: o.name,
16144
16131
  kind: o.kind,
16145
- color: o.color || Vg,
16132
+ color: o.color || Xg,
16146
16133
  points: [...o.polygon]
16147
16134
  };
16148
16135
  }
16149
- function Kg(o) {
16136
+ function jg(o) {
16150
16137
  return {
16151
16138
  id: o.id,
16152
16139
  name: o.name,
@@ -16155,13 +16142,13 @@ function Kg(o) {
16155
16142
  color: o.color
16156
16143
  };
16157
16144
  }
16158
- function Qg({ deviceId: o }) {
16159
- const e = vs(), a = _s(e.trpcClient, o), l = Ss(a?.state.zones), s = Ve(() => l?.zones ?? [], [l]), u = Ve(() => s.map(Zg), [s]), c = Ho(), d = c?.drawingKind ?? null, g = c?.selectedZoneId ?? null, m = c?.editingDraft ?? null, p = Ve(
16145
+ function Vg({ deviceId: o }) {
16146
+ const e = vs(), a = _s(e.trpcClient, o), l = Ss(a?.state.zones), s = Pe(() => l?.zones ?? [], [l]), u = Pe(() => s.map(qg), [s]), c = Ho(), d = c?.drawingKind ?? null, g = c?.selectedZoneId ?? null, m = c?.editingDraft ?? null, p = Pe(
16160
16147
  () => ({
16161
16148
  id: "zones",
16162
16149
  order: 100,
16163
16150
  // above PTZ overlay (order 0) so handles aren't occluded
16164
- node: /* @__PURE__ */ L(jg, { deviceId: o })
16151
+ node: /* @__PURE__ */ Y(Yg, { deviceId: o })
16165
16152
  }),
16166
16153
  [o]
16167
16154
  );
@@ -16187,7 +16174,7 @@ function Qg({ deviceId: o }) {
16187
16174
  if (E) {
16188
16175
  try {
16189
16176
  await a?.zones?.updateZone({
16190
- zone: Kg({
16177
+ zone: jg({
16191
16178
  id: E.id,
16192
16179
  kind: E.kind,
16193
16180
  name: E.name,
@@ -16219,7 +16206,7 @@ function Qg({ deviceId: o }) {
16219
16206
  [c]
16220
16207
  ), T = le(() => {
16221
16208
  c?.setDrawingKind(null);
16222
- }, [c]), A = Ve(() => !m || !u.find((O) => O.id === m.id) ? null : {
16209
+ }, [c]), A = Pe(() => !m || !u.find((O) => O.id === m.id) ? null : {
16223
16210
  id: m.id,
16224
16211
  kind: m.kind,
16225
16212
  name: m.name,
@@ -16228,17 +16215,17 @@ function Qg({ deviceId: o }) {
16228
16215
  }, [u, m]);
16229
16216
  return /* @__PURE__ */ rt("div", { className: E0, children: [
16230
16217
  /* @__PURE__ */ rt("div", { className: T0, children: [
16231
- /* @__PURE__ */ L("div", { className: A0, children: /* @__PURE__ */ rt("div", { className: "min-w-0", children: [
16232
- /* @__PURE__ */ L("h2", { className: Bo, children: "Detection Zones" }),
16218
+ /* @__PURE__ */ Y("div", { className: A0, children: /* @__PURE__ */ rt("div", { className: "min-w-0", children: [
16219
+ /* @__PURE__ */ Y("h2", { className: Bo, children: "Detection Zones" }),
16233
16220
  /* @__PURE__ */ rt("p", { className: `${M0} mt-0.5 leading-tight`, children: [
16234
16221
  "Pick a shape below or use the ",
16235
- /* @__PURE__ */ L("strong", { className: "text-foreground", children: "Zones" }),
16222
+ /* @__PURE__ */ Y("strong", { className: "text-foreground", children: "Zones" }),
16236
16223
  " button on the live frame to draw new polygons or tripwires. Behaviour is set per-stage in the rules editors below — a zone with no rule is observed by analytics but never filters."
16237
16224
  ] })
16238
16225
  ] }) }),
16239
16226
  /* @__PURE__ */ rt("div", { className: `${N0} flex flex-col gap-3`, children: [
16240
- /* @__PURE__ */ L(
16241
- G2,
16227
+ /* @__PURE__ */ Y(
16228
+ D2,
16242
16229
  {
16243
16230
  zones: u,
16244
16231
  selectedZoneId: g,
@@ -16250,9 +16237,9 @@ function Qg({ deviceId: o }) {
16250
16237
  }
16251
16238
  ),
16252
16239
  A && /* @__PURE__ */ rt(C0, { children: [
16253
- /* @__PURE__ */ L("div", { className: "border-t border-border" }),
16254
- /* @__PURE__ */ L(
16255
- B2,
16240
+ /* @__PURE__ */ Y("div", { className: "border-t border-border" }),
16241
+ /* @__PURE__ */ Y(
16242
+ z2,
16256
16243
  {
16257
16244
  zone: A,
16258
16245
  onSave: v,
@@ -16264,15 +16251,15 @@ function Qg({ deviceId: o }) {
16264
16251
  ] })
16265
16252
  ] }),
16266
16253
  /* @__PURE__ */ rt("div", { className: `grid grid-cols-1 2xl:grid-cols-2 ${Q1}`, children: [
16267
- /* @__PURE__ */ L(jh, { dev: a, stage: "motion", zones: s }),
16268
- /* @__PURE__ */ L(jh, { dev: a, stage: "detection", zones: s })
16254
+ /* @__PURE__ */ Y(jh, { dev: a, stage: "motion", zones: s }),
16255
+ /* @__PURE__ */ Y(jh, { dev: a, stage: "detection", zones: s })
16269
16256
  ] })
16270
16257
  ] });
16271
16258
  }
16272
- function kg(o) {
16273
- return o.deviceId === void 0 ? /* @__PURE__ */ L("div", { className: "rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-xs text-warning", children: "ZoneEditor requires a deviceId" }) : /* @__PURE__ */ L(Qg, { deviceId: o.deviceId });
16259
+ function Zg(o) {
16260
+ return o.deviceId === void 0 ? /* @__PURE__ */ Y("div", { className: "rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-xs text-warning", children: "ZoneEditor requires a deviceId" }) : /* @__PURE__ */ Y(Vg, { deviceId: o.deviceId });
16274
16261
  }
16275
- function Pg({
16262
+ function Kg({
16276
16263
  options: o,
16277
16264
  cells: e,
16278
16265
  enabled: a,
@@ -16285,19 +16272,19 @@ function Pg({
16285
16272
  onSave: m,
16286
16273
  onCancel: p
16287
16274
  }) {
16288
- const { gridWidth: _, gridHeight: v } = o, b = _ * v, S = ga(!1), R = ga(!0), T = ga(/* @__PURE__ */ new Set()), [, A] = me(0), E = le(
16275
+ const { gridWidth: _, gridHeight: v } = o, b = _ * v, S = ga(!1), R = ga(!0), T = ga(/* @__PURE__ */ new Set()), [, A] = ye(0), E = le(
16289
16276
  (P, nt) => {
16290
16277
  if (P < 0 || P >= b || e[P] === nt) return;
16291
- const w = [...e];
16292
- for (; w.length < b; ) w.push(!1);
16293
- w.length = b, w[P] = nt, c(w);
16278
+ const L = [...e];
16279
+ for (; L.length < b; ) L.push(!1);
16280
+ L.length = b, L[P] = nt, c(L);
16294
16281
  },
16295
16282
  [e, b, c]
16296
16283
  ), O = le(
16297
16284
  (P) => (nt) => {
16298
16285
  nt.preventDefault();
16299
- const w = !e[P];
16300
- S.current = !0, R.current = w, T.current = /* @__PURE__ */ new Set([P]), E(P, w), A((j) => j + 1);
16286
+ const L = !e[P];
16287
+ S.current = !0, R.current = L, T.current = /* @__PURE__ */ new Set([P]), E(P, L), A((j) => j + 1);
16301
16288
  },
16302
16289
  [e, E]
16303
16290
  ), H = le(
@@ -16315,7 +16302,7 @@ function Pg({
16315
16302
  onPointerUp: U,
16316
16303
  onPointerLeave: U,
16317
16304
  children: [
16318
- /* @__PURE__ */ L(
16305
+ /* @__PURE__ */ Y(
16319
16306
  "div",
16320
16307
  {
16321
16308
  className: "absolute inset-0 grid",
@@ -16324,16 +16311,16 @@ function Pg({
16324
16311
  gridTemplateRows: `repeat(${String(v)}, 1fr)`
16325
16312
  },
16326
16313
  children: Array.from({ length: b }, (P, nt) => {
16327
- const w = e[nt] === !0;
16328
- return /* @__PURE__ */ L(
16314
+ const L = e[nt] === !0;
16315
+ return /* @__PURE__ */ Y(
16329
16316
  "button",
16330
16317
  {
16331
16318
  type: "button",
16332
16319
  "aria-label": `motion cell ${String(nt)}`,
16333
- "aria-pressed": w,
16320
+ "aria-pressed": L,
16334
16321
  onPointerDown: O(nt),
16335
16322
  onPointerEnter: H(nt),
16336
- className: w ? "border border-primary/40 bg-primary/30 hover:bg-primary/40 transition-colors" : "border border-white/15 bg-transparent hover:bg-white/10 transition-colors"
16323
+ className: L ? "border border-primary/40 bg-primary/30 hover:bg-primary/40 transition-colors" : "border border-white/15 bg-transparent hover:bg-white/10 transition-colors"
16337
16324
  },
16338
16325
  nt
16339
16326
  );
@@ -16347,7 +16334,7 @@ function Pg({
16347
16334
  onPointerDown: (P) => P.stopPropagation(),
16348
16335
  children: [
16349
16336
  /* @__PURE__ */ rt("label", { className: "flex items-center gap-2 text-[11px] text-foreground", children: [
16350
- /* @__PURE__ */ L(
16337
+ /* @__PURE__ */ Y(
16351
16338
  "input",
16352
16339
  {
16353
16340
  type: "checkbox",
@@ -16356,11 +16343,11 @@ function Pg({
16356
16343
  className: "h-3 w-3 accent-primary"
16357
16344
  }
16358
16345
  ),
16359
- /* @__PURE__ */ L("span", { className: "font-medium", children: "Motion detection enabled" })
16346
+ /* @__PURE__ */ Y("span", { className: "font-medium", children: "Motion detection enabled" })
16360
16347
  ] }),
16361
16348
  /* @__PURE__ */ rt("label", { className: "flex items-center gap-2 text-[11px] text-foreground", children: [
16362
- /* @__PURE__ */ L("span", { className: "w-20 shrink-0", children: "Sensitivity" }),
16363
- /* @__PURE__ */ L(
16349
+ /* @__PURE__ */ Y("span", { className: "w-20 shrink-0", children: "Sensitivity" }),
16350
+ /* @__PURE__ */ Y(
16364
16351
  "input",
16365
16352
  {
16366
16353
  type: "range",
@@ -16372,10 +16359,10 @@ function Pg({
16372
16359
  className: "h-1 w-32 accent-primary"
16373
16360
  }
16374
16361
  ),
16375
- /* @__PURE__ */ L("span", { className: "w-8 shrink-0 text-right tabular-nums text-foreground-subtle", children: l })
16362
+ /* @__PURE__ */ Y("span", { className: "w-8 shrink-0 text-right tabular-nums text-foreground-subtle", children: l })
16376
16363
  ] }),
16377
16364
  /* @__PURE__ */ rt("div", { className: "flex items-center gap-2 pt-0.5", children: [
16378
- /* @__PURE__ */ L(
16365
+ /* @__PURE__ */ Y(
16379
16366
  "button",
16380
16367
  {
16381
16368
  type: "button",
@@ -16385,7 +16372,7 @@ function Pg({
16385
16372
  children: s ? "Saving…" : "Save"
16386
16373
  }
16387
16374
  ),
16388
- /* @__PURE__ */ L(
16375
+ /* @__PURE__ */ Y(
16389
16376
  "button",
16390
16377
  {
16391
16378
  type: "button",
@@ -16395,7 +16382,7 @@ function Pg({
16395
16382
  children: "Cancel"
16396
16383
  }
16397
16384
  ),
16398
- /* @__PURE__ */ L("span", { className: "text-[10px] text-foreground-subtle", children: "Click or drag cells to paint the motion mask." })
16385
+ /* @__PURE__ */ Y("span", { className: "text-[10px] text-foreground-subtle", children: "Click or drag cells to paint the motion mask." })
16399
16386
  ] })
16400
16387
  ]
16401
16388
  }
@@ -16404,12 +16391,12 @@ function Pg({
16404
16391
  }
16405
16392
  );
16406
16393
  }
16407
- function Jg(o) {
16394
+ function Qg(o) {
16408
16395
  const e = o instanceof Error ? o.message : String(o);
16409
16396
  return e.includes("provider not available") || e.includes("motion-zones");
16410
16397
  }
16411
- function Fg({ deviceId: o }) {
16412
- const e = vs(), a = _s(e.trpcClient, o), l = Ss(a?.state.motionZones), [s, u] = me(null), [c, d] = me(!1), [g, m] = me(null), [p, _] = me(!1), v = ga(!1);
16398
+ function kg({ deviceId: o }) {
16399
+ const e = vs(), a = _s(e.trpcClient, o), l = Ss(a?.state.motionZones), [s, u] = ye(null), [c, d] = ye(!1), [g, m] = ye(null), [p, _] = ye(!1), v = ga(!1);
16413
16400
  Fa(() => {
16414
16401
  if (!a) return;
16415
16402
  let T = !1;
@@ -16426,13 +16413,13 @@ function Fg({ deviceId: o }) {
16426
16413
  });
16427
16414
  } catch (A) {
16428
16415
  if (T) return;
16429
- Jg(A) ? d(!0) : console.error("motion-zones load failed", A);
16416
+ Qg(A) ? d(!0) : console.error("motion-zones load failed", A);
16430
16417
  }
16431
16418
  })(), () => {
16432
16419
  T = !0;
16433
16420
  };
16434
16421
  }, [a]);
16435
- const b = Ve(() => !g || !l ? !1 : g.enabled !== l.enabled || g.sensitivity !== l.sensitivity || !Wg(g.cells, l.cells), [g, l]), S = le(async () => {
16422
+ const b = Pe(() => !g || !l ? !1 : g.enabled !== l.enabled || g.sensitivity !== l.sensitivity || !Pg(g.cells, l.cells), [g, l]), S = le(async () => {
16436
16423
  if (!(!g || !a?.motionZones)) {
16437
16424
  _(!0);
16438
16425
  try {
@@ -16462,8 +16449,8 @@ function Fg({ deviceId: o }) {
16462
16449
  cells: bo(l.cells, s)
16463
16450
  });
16464
16451
  }, [l, s]);
16465
- return c || !s || !g ? null : /* @__PURE__ */ L(
16466
- Pg,
16452
+ return c || !s || !g ? null : /* @__PURE__ */ Y(
16453
+ Kg,
16467
16454
  {
16468
16455
  options: s,
16469
16456
  cells: g.cells,
@@ -16484,58 +16471,41 @@ function bo(o, e) {
16484
16471
  for (let s = 0; s < a; s += 1) l[s] = o[s] === !0;
16485
16472
  return l;
16486
16473
  }
16487
- function Wg(o, e) {
16474
+ function Pg(o, e) {
16488
16475
  if (o.length !== e.length) return !1;
16489
16476
  for (let a = 0; a < o.length; a += 1)
16490
16477
  if (o[a] !== e[a]) return !1;
16491
16478
  return !0;
16492
16479
  }
16493
- const Ig = Uo(Fg);
16494
- function $g({ deviceId: o }) {
16495
- const [e, a] = me(!1), l = Ve(
16480
+ const Jg = Uo(kg);
16481
+ function Fg({ deviceId: o }) {
16482
+ const e = Pe(
16496
16483
  () => ({
16497
- id: "motion-zones",
16498
- order: 60,
16499
- // after Intercom / Snapshot, before nothing in particular
16500
- icon: /* @__PURE__ */ L(v2, { className: "h-3 w-3" }),
16501
- label: "Motion zones",
16502
- title: "Edit on-camera motion-detection grid",
16503
- active: e,
16504
- tone: "default",
16505
- onClick: () => a((u) => !u)
16506
- }),
16507
- [e]
16508
- );
16509
- k1(l);
16510
- const s = Ve(
16511
- () => e ? {
16512
16484
  id: "motion-zones",
16513
16485
  order: 110,
16514
- node: /* @__PURE__ */ L(Ig, { deviceId: o })
16515
- } : null,
16516
- [e, o]
16486
+ // above the analytics zones overlay (order 100)
16487
+ node: /* @__PURE__ */ Y(Jg, { deviceId: o })
16488
+ }),
16489
+ [o]
16517
16490
  );
16518
- return x0(s), /* @__PURE__ */ L("div", { className: E0, children: /* @__PURE__ */ rt("div", { className: T0, children: [
16519
- /* @__PURE__ */ L("div", { className: A0, children: /* @__PURE__ */ L("h2", { className: Bo, children: "Motion Zones" }) }),
16520
- /* @__PURE__ */ L("div", { className: N0, children: /* @__PURE__ */ rt("p", { className: `${M0} leading-relaxed`, children: [
16521
- "Use the ",
16522
- /* @__PURE__ */ L("strong", { className: "text-foreground", children: "Motion zones" }),
16523
- " ",
16524
- "button on the live frame to edit the camera's on-board motion-detection grid. In edit mode, click or drag cells to paint the region the camera watches, toggle detection on or off, and tune sensitivity — then ",
16525
- /* @__PURE__ */ L("strong", { className: "text-foreground", children: "Save" }),
16491
+ return x0(e), /* @__PURE__ */ Y("div", { className: E0, children: /* @__PURE__ */ rt("div", { className: T0, children: [
16492
+ /* @__PURE__ */ Y("div", { className: A0, children: /* @__PURE__ */ Y("h2", { className: Bo, children: "Motion Zones" }) }),
16493
+ /* @__PURE__ */ Y("div", { className: N0, children: /* @__PURE__ */ rt("p", { className: `${M0} leading-relaxed`, children: [
16494
+ "The on-camera motion-detection grid is shown on the live frame while this section is open. Click or drag cells to paint the region the camera watches, toggle detection on or off, and tune sensitivity — then ",
16495
+ /* @__PURE__ */ Y("strong", { className: "text-foreground", children: "Save" }),
16526
16496
  " ",
16527
16497
  "to push the mask to the camera. Cameras without an on-board motion grid show no overlay."
16528
16498
  ] }) })
16529
16499
  ] }) });
16530
16500
  }
16531
- function tm(o) {
16532
- return o.deviceId === void 0 ? /* @__PURE__ */ L("div", { className: "rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-xs text-warning", children: "MotionZonesEditor requires a deviceId" }) : /* @__PURE__ */ L($g, { deviceId: o.deviceId });
16501
+ function Wg(o) {
16502
+ return o.deviceId === void 0 ? /* @__PURE__ */ Y("div", { className: "rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-xs text-warning", children: "MotionZonesEditor requires a deviceId" }) : /* @__PURE__ */ Y(Fg, { deviceId: o.deviceId });
16533
16503
  }
16534
- const mm = {
16535
- "pipeline-quick-stats": R2,
16536
- "zone-editor": kg,
16537
- "motion-zones-editor": tm
16504
+ const dm = {
16505
+ "pipeline-quick-stats": A2,
16506
+ "zone-editor": Zg,
16507
+ "motion-zones-editor": Wg
16538
16508
  };
16539
16509
  export {
16540
- mm as default
16510
+ dm as default
16541
16511
  };