@arthurzakharov/ui-kit 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,192 +1,192 @@
1
- import { jsxs as ee, jsx as F } from "react/jsx-runtime";
2
- import ze, { useRef as Fe, useState as de, useCallback as te, useEffect as he } from "react";
1
+ import { jsxs as Q, jsx as q } from "react/jsx-runtime";
2
+ import ze, { useRef as Fe, useState as oe, useCallback as te, useEffect as he } from "react";
3
3
  import { g as qe, a as Be } from "../../input.component-C5xcmnfu.js";
4
- import { useResizeObserver as Ue } from "usehooks-ts";
5
- import { RefreshCw as Ne, Check as Ye } from "lucide-react";
4
+ import { useResizeObserver as Ne } from "usehooks-ts";
5
+ import { RefreshCw as Ue, Check as Ye } from "lucide-react";
6
6
  import Se from "clsx";
7
7
  import { Animation as re } from "../../animations/animation.component.js";
8
- import { C as oe } from "../../control.component-B9Ao9mfl.js";
9
- import { Flex as ie } from "../flex/flex.component.js";
8
+ import { C as ie } from "../../control.component-B9Ao9mfl.js";
9
+ import { Flex as se } from "../flex/flex.component.js";
10
10
  import { Text as we } from "../text/text.component.js";
11
11
  import { Loader as He } from "../loader/loader.component.js";
12
- import '../../assets/signature-CLmBTe_C.css';var le = { exports: {} }, ue = { exports: {} }, ce = { exports: {} }, I = {};
12
+ import '../../assets/signature-CLmBTe_C.css';var fe = { exports: {} }, ce = { exports: {} }, le = { exports: {} }, I = {};
13
13
  var Ee;
14
14
  function Ve() {
15
15
  if (Ee) return I;
16
16
  Ee = 1;
17
- var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, o = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
18
- function $(f) {
19
- if (typeof f == "object" && f !== null) {
20
- var G = f.$$typeof;
21
- switch (G) {
22
- case a:
23
- switch (f = f.type, f) {
24
- case p:
17
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, h = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, S = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, L = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
18
+ function $(d) {
19
+ if (typeof d == "object" && d !== null) {
20
+ var J = d.$$typeof;
21
+ switch (J) {
22
+ case n:
23
+ switch (d = d.type, d) {
24
+ case h:
25
25
  case i:
26
- case t:
27
- case u:
28
- case n:
29
- case v:
30
- return f;
26
+ case r:
27
+ case o:
28
+ case a:
29
+ case f:
30
+ return d;
31
31
  default:
32
- switch (f = f && f.$$typeof, f) {
33
- case o:
32
+ switch (d = d && d.$$typeof, d) {
33
+ case u:
34
34
  case l:
35
+ case S:
35
36
  case b:
36
- case g:
37
37
  case c:
38
- return f;
38
+ return d;
39
39
  default:
40
- return G;
40
+ return J;
41
41
  }
42
42
  }
43
- case r:
44
- return G;
43
+ case t:
44
+ return J;
45
45
  }
46
46
  }
47
47
  }
48
- function D(f) {
49
- return $(f) === i;
48
+ function k(d) {
49
+ return $(d) === i;
50
50
  }
51
- return I.AsyncMode = p, I.ConcurrentMode = i, I.ContextConsumer = o, I.ContextProvider = c, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = b, I.Memo = g, I.Portal = r, I.Profiler = u, I.StrictMode = n, I.Suspense = v, I.isAsyncMode = function(f) {
52
- return D(f) || $(f) === p;
53
- }, I.isConcurrentMode = D, I.isContextConsumer = function(f) {
54
- return $(f) === o;
55
- }, I.isContextProvider = function(f) {
56
- return $(f) === c;
57
- }, I.isElement = function(f) {
58
- return typeof f == "object" && f !== null && f.$$typeof === a;
59
- }, I.isForwardRef = function(f) {
60
- return $(f) === l;
61
- }, I.isFragment = function(f) {
62
- return $(f) === t;
63
- }, I.isLazy = function(f) {
64
- return $(f) === b;
65
- }, I.isMemo = function(f) {
66
- return $(f) === g;
67
- }, I.isPortal = function(f) {
68
- return $(f) === r;
69
- }, I.isProfiler = function(f) {
70
- return $(f) === u;
71
- }, I.isStrictMode = function(f) {
72
- return $(f) === n;
73
- }, I.isSuspense = function(f) {
74
- return $(f) === v;
75
- }, I.isValidElementType = function(f) {
76
- return typeof f == "string" || typeof f == "function" || f === t || f === i || f === u || f === n || f === v || f === y || typeof f == "object" && f !== null && (f.$$typeof === b || f.$$typeof === g || f.$$typeof === c || f.$$typeof === o || f.$$typeof === l || f.$$typeof === P || f.$$typeof === x || f.$$typeof === q || f.$$typeof === _);
51
+ return I.AsyncMode = h, I.ConcurrentMode = i, I.ContextConsumer = u, I.ContextProvider = c, I.Element = n, I.ForwardRef = l, I.Fragment = r, I.Lazy = S, I.Memo = b, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = f, I.isAsyncMode = function(d) {
52
+ return k(d) || $(d) === h;
53
+ }, I.isConcurrentMode = k, I.isContextConsumer = function(d) {
54
+ return $(d) === u;
55
+ }, I.isContextProvider = function(d) {
56
+ return $(d) === c;
57
+ }, I.isElement = function(d) {
58
+ return typeof d == "object" && d !== null && d.$$typeof === n;
59
+ }, I.isForwardRef = function(d) {
60
+ return $(d) === l;
61
+ }, I.isFragment = function(d) {
62
+ return $(d) === r;
63
+ }, I.isLazy = function(d) {
64
+ return $(d) === S;
65
+ }, I.isMemo = function(d) {
66
+ return $(d) === b;
67
+ }, I.isPortal = function(d) {
68
+ return $(d) === t;
69
+ }, I.isProfiler = function(d) {
70
+ return $(d) === o;
71
+ }, I.isStrictMode = function(d) {
72
+ return $(d) === a;
73
+ }, I.isSuspense = function(d) {
74
+ return $(d) === f;
75
+ }, I.isValidElementType = function(d) {
76
+ return typeof d == "string" || typeof d == "function" || d === r || d === i || d === o || d === a || d === f || d === y || typeof d == "object" && d !== null && (d.$$typeof === S || d.$$typeof === b || d.$$typeof === c || d.$$typeof === u || d.$$typeof === l || d.$$typeof === P || d.$$typeof === x || d.$$typeof === L || d.$$typeof === m);
77
77
  }, I.typeOf = $, I;
78
78
  }
79
79
  var j = {};
80
80
  var Te;
81
81
  function Xe() {
82
82
  return Te || (Te = 1, process.env.NODE_ENV !== "production" && (function() {
83
- var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, o = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
84
- function $(h) {
85
- return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
86
- h === t || h === i || h === u || h === n || h === v || h === y || typeof h == "object" && h !== null && (h.$$typeof === b || h.$$typeof === g || h.$$typeof === c || h.$$typeof === o || h.$$typeof === l || h.$$typeof === P || h.$$typeof === x || h.$$typeof === q || h.$$typeof === _);
83
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, h = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, S = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, L = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
84
+ function $(v) {
85
+ return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
86
+ v === r || v === i || v === o || v === a || v === f || v === y || typeof v == "object" && v !== null && (v.$$typeof === S || v.$$typeof === b || v.$$typeof === c || v.$$typeof === u || v.$$typeof === l || v.$$typeof === P || v.$$typeof === x || v.$$typeof === L || v.$$typeof === m);
87
87
  }
88
- function D(h) {
89
- if (typeof h == "object" && h !== null) {
90
- var K = h.$$typeof;
91
- switch (K) {
92
- case a:
93
- var se = h.type;
94
- switch (se) {
95
- case p:
88
+ function k(v) {
89
+ if (typeof v == "object" && v !== null) {
90
+ var Z = v.$$typeof;
91
+ switch (Z) {
92
+ case n:
93
+ var ue = v.type;
94
+ switch (ue) {
95
+ case h:
96
96
  case i:
97
- case t:
98
- case u:
99
- case n:
100
- case v:
101
- return se;
97
+ case r:
98
+ case o:
99
+ case a:
100
+ case f:
101
+ return ue;
102
102
  default:
103
- var Pe = se && se.$$typeof;
103
+ var Pe = ue && ue.$$typeof;
104
104
  switch (Pe) {
105
- case o:
105
+ case u:
106
106
  case l:
107
+ case S:
107
108
  case b:
108
- case g:
109
109
  case c:
110
110
  return Pe;
111
111
  default:
112
- return K;
112
+ return Z;
113
113
  }
114
114
  }
115
- case r:
116
- return K;
115
+ case t:
116
+ return Z;
117
117
  }
118
118
  }
119
119
  }
120
- var f = p, G = i, N = o, Y = c, k = a, E = l, B = t, z = b, m = g, Q = r, ae = u, V = n, J = v, U = !1;
121
- function Z(h) {
122
- return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(h) || D(h) === p;
120
+ var d = h, J = i, ee = u, G = c, w = n, _ = l, B = r, F = S, g = b, K = t, ae = o, Y = a, V = f, N = !1;
121
+ function X(v) {
122
+ return N || (N = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(v) || k(v) === h;
123
123
  }
124
- function s(h) {
125
- return D(h) === i;
124
+ function s(v) {
125
+ return k(v) === i;
126
126
  }
127
- function d(h) {
128
- return D(h) === o;
127
+ function p(v) {
128
+ return k(v) === u;
129
129
  }
130
- function S(h) {
131
- return D(h) === c;
130
+ function E(v) {
131
+ return k(v) === c;
132
132
  }
133
- function C(h) {
134
- return typeof h == "object" && h !== null && h.$$typeof === a;
133
+ function R(v) {
134
+ return typeof v == "object" && v !== null && v.$$typeof === n;
135
135
  }
136
- function w(h) {
137
- return D(h) === l;
136
+ function T(v) {
137
+ return k(v) === l;
138
138
  }
139
- function O(h) {
140
- return D(h) === t;
139
+ function M(v) {
140
+ return k(v) === r;
141
141
  }
142
- function T(h) {
143
- return D(h) === b;
142
+ function C(v) {
143
+ return k(v) === S;
144
144
  }
145
- function R(h) {
146
- return D(h) === g;
145
+ function O(v) {
146
+ return k(v) === b;
147
147
  }
148
- function M(h) {
149
- return D(h) === r;
148
+ function A(v) {
149
+ return k(v) === t;
150
150
  }
151
- function W(h) {
152
- return D(h) === u;
151
+ function W(v) {
152
+ return k(v) === o;
153
153
  }
154
- function A(h) {
155
- return D(h) === n;
154
+ function D(v) {
155
+ return k(v) === a;
156
156
  }
157
- function H(h) {
158
- return D(h) === v;
157
+ function U(v) {
158
+ return k(v) === f;
159
159
  }
160
- j.AsyncMode = f, j.ConcurrentMode = G, j.ContextConsumer = N, j.ContextProvider = Y, j.Element = k, j.ForwardRef = E, j.Fragment = B, j.Lazy = z, j.Memo = m, j.Portal = Q, j.Profiler = ae, j.StrictMode = V, j.Suspense = J, j.isAsyncMode = Z, j.isConcurrentMode = s, j.isContextConsumer = d, j.isContextProvider = S, j.isElement = C, j.isForwardRef = w, j.isFragment = O, j.isLazy = T, j.isMemo = R, j.isPortal = M, j.isProfiler = W, j.isStrictMode = A, j.isSuspense = H, j.isValidElementType = $, j.typeOf = D;
160
+ j.AsyncMode = d, j.ConcurrentMode = J, j.ContextConsumer = ee, j.ContextProvider = G, j.Element = w, j.ForwardRef = _, j.Fragment = B, j.Lazy = F, j.Memo = g, j.Portal = K, j.Profiler = ae, j.StrictMode = Y, j.Suspense = V, j.isAsyncMode = X, j.isConcurrentMode = s, j.isContextConsumer = p, j.isContextProvider = E, j.isElement = R, j.isForwardRef = T, j.isFragment = M, j.isLazy = C, j.isMemo = O, j.isPortal = A, j.isProfiler = W, j.isStrictMode = D, j.isSuspense = U, j.isValidElementType = $, j.typeOf = k;
161
161
  })()), j;
162
162
  }
163
163
  var Ce;
164
164
  function We() {
165
- return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? ce.exports = Ve() : ce.exports = Xe()), ce.exports;
165
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? le.exports = Ve() : le.exports = Xe()), le.exports;
166
166
  }
167
167
  var pe, Re;
168
168
  function Je() {
169
169
  if (Re) return pe;
170
170
  Re = 1;
171
- var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
172
- function t(u) {
173
- if (u == null)
171
+ var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
172
+ function r(o) {
173
+ if (o == null)
174
174
  throw new TypeError("Object.assign cannot be called with null or undefined");
175
- return Object(u);
175
+ return Object(o);
176
176
  }
177
- function n() {
177
+ function a() {
178
178
  try {
179
179
  if (!Object.assign)
180
180
  return !1;
181
- var u = new String("abc");
182
- if (u[5] = "de", Object.getOwnPropertyNames(u)[0] === "5")
181
+ var o = new String("abc");
182
+ if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
183
183
  return !1;
184
- for (var c = {}, o = 0; o < 10; o++)
185
- c["_" + String.fromCharCode(o)] = o;
186
- var p = Object.getOwnPropertyNames(c).map(function(l) {
184
+ for (var c = {}, u = 0; u < 10; u++)
185
+ c["_" + String.fromCharCode(u)] = u;
186
+ var h = Object.getOwnPropertyNames(c).map(function(l) {
187
187
  return c[l];
188
188
  });
189
- if (p.join("") !== "0123456789")
189
+ if (h.join("") !== "0123456789")
190
190
  return !1;
191
191
  var i = {};
192
192
  return "abcdefghijklmnopqrst".split("").forEach(function(l) {
@@ -196,18 +196,18 @@ function Je() {
196
196
  return !1;
197
197
  }
198
198
  }
199
- return pe = n() ? Object.assign : function(u, c) {
200
- for (var o, p = t(u), i, l = 1; l < arguments.length; l++) {
201
- o = Object(arguments[l]);
202
- for (var v in o)
203
- a.call(o, v) && (p[v] = o[v]);
199
+ return pe = a() ? Object.assign : function(o, c) {
200
+ for (var u, h = r(o), i, l = 1; l < arguments.length; l++) {
201
+ u = Object(arguments[l]);
202
+ for (var f in u)
203
+ n.call(u, f) && (h[f] = u[f]);
204
204
  if (e) {
205
- i = e(o);
205
+ i = e(u);
206
206
  for (var y = 0; y < i.length; y++)
207
- r.call(o, i[y]) && (p[i[y]] = o[i[y]]);
207
+ t.call(u, i[y]) && (h[i[y]] = u[i[y]]);
208
208
  }
209
209
  }
210
- return p;
210
+ return h;
211
211
  }, pe;
212
212
  }
213
213
  var ve, Oe;
@@ -228,9 +228,9 @@ function Ze() {
228
228
  var e = function() {
229
229
  };
230
230
  if (process.env.NODE_ENV !== "production") {
231
- var a = /* @__PURE__ */ xe(), r = {}, t = /* @__PURE__ */ Le();
232
- e = function(u) {
233
- var c = "Warning: " + u;
231
+ var n = /* @__PURE__ */ xe(), t = {}, r = /* @__PURE__ */ Le();
232
+ e = function(o) {
233
+ var c = "Warning: " + o;
234
234
  typeof console < "u" && console.error(c);
235
235
  try {
236
236
  throw new Error(c);
@@ -238,63 +238,63 @@ function Ze() {
238
238
  }
239
239
  };
240
240
  }
241
- function n(u, c, o, p, i) {
241
+ function a(o, c, u, h, i) {
242
242
  if (process.env.NODE_ENV !== "production") {
243
- for (var l in u)
244
- if (t(u, l)) {
245
- var v;
243
+ for (var l in o)
244
+ if (r(o, l)) {
245
+ var f;
246
246
  try {
247
- if (typeof u[l] != "function") {
247
+ if (typeof o[l] != "function") {
248
248
  var y = Error(
249
- (p || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
249
+ (h || "React class") + ": " + u + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
250
250
  );
251
251
  throw y.name = "Invariant Violation", y;
252
252
  }
253
- v = u[l](c, l, p, o, null, a);
254
- } catch (b) {
255
- v = b;
253
+ f = o[l](c, l, h, u, null, n);
254
+ } catch (S) {
255
+ f = S;
256
256
  }
257
- if (v && !(v instanceof Error) && e(
258
- (p || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
259
- ), v instanceof Error && !(v.message in r)) {
260
- r[v.message] = !0;
261
- var g = i ? i() : "";
257
+ if (f && !(f instanceof Error) && e(
258
+ (h || "React class") + ": type specification of " + u + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
259
+ ), f instanceof Error && !(f.message in t)) {
260
+ t[f.message] = !0;
261
+ var b = i ? i() : "";
262
262
  e(
263
- "Failed " + o + " type: " + v.message + (g ?? "")
263
+ "Failed " + u + " type: " + f.message + (b ?? "")
264
264
  );
265
265
  }
266
266
  }
267
267
  }
268
268
  }
269
- return n.resetWarningCache = function() {
270
- process.env.NODE_ENV !== "production" && (r = {});
271
- }, me = n, me;
269
+ return a.resetWarningCache = function() {
270
+ process.env.NODE_ENV !== "production" && (t = {});
271
+ }, me = a, me;
272
272
  }
273
273
  var ge, De;
274
274
  function Ge() {
275
275
  if (De) return ge;
276
276
  De = 1;
277
- var e = We(), a = Je(), r = /* @__PURE__ */ xe(), t = /* @__PURE__ */ Le(), n = /* @__PURE__ */ Ze(), u = function() {
277
+ var e = We(), n = Je(), t = /* @__PURE__ */ xe(), r = /* @__PURE__ */ Le(), a = /* @__PURE__ */ Ze(), o = function() {
278
278
  };
279
- process.env.NODE_ENV !== "production" && (u = function(o) {
280
- var p = "Warning: " + o;
281
- typeof console < "u" && console.error(p);
279
+ process.env.NODE_ENV !== "production" && (o = function(u) {
280
+ var h = "Warning: " + u;
281
+ typeof console < "u" && console.error(h);
282
282
  try {
283
- throw new Error(p);
283
+ throw new Error(h);
284
284
  } catch {
285
285
  }
286
286
  });
287
287
  function c() {
288
288
  return null;
289
289
  }
290
- return ge = function(o, p) {
290
+ return ge = function(u, h) {
291
291
  var i = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
292
- function v(s) {
293
- var d = s && (i && s[i] || s[l]);
294
- if (typeof d == "function")
295
- return d;
292
+ function f(s) {
293
+ var p = s && (i && s[i] || s[l]);
294
+ if (typeof p == "function")
295
+ return p;
296
296
  }
297
- var y = "<<anonymous>>", g = {
297
+ var y = "<<anonymous>>", b = {
298
298
  array: x("array"),
299
299
  bigint: x("bigint"),
300
300
  bool: x("boolean"),
@@ -303,223 +303,223 @@ function Ge() {
303
303
  object: x("object"),
304
304
  string: x("string"),
305
305
  symbol: x("symbol"),
306
- any: q(),
306
+ any: L(),
307
307
  arrayOf: $,
308
- element: D(),
309
- elementType: f(),
310
- instanceOf: G,
311
- node: E(),
312
- objectOf: Y,
313
- oneOf: N,
314
- oneOfType: k,
315
- shape: z,
316
- exact: m
308
+ element: k(),
309
+ elementType: d(),
310
+ instanceOf: J,
311
+ node: _(),
312
+ objectOf: G,
313
+ oneOf: ee,
314
+ oneOfType: w,
315
+ shape: F,
316
+ exact: g
317
317
  };
318
- function b(s, d) {
319
- return s === d ? s !== 0 || 1 / s === 1 / d : s !== s && d !== d;
318
+ function S(s, p) {
319
+ return s === p ? s !== 0 || 1 / s === 1 / p : s !== s && p !== p;
320
320
  }
321
- function _(s, d) {
322
- this.message = s, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
321
+ function m(s, p) {
322
+ this.message = s, this.data = p && typeof p == "object" ? p : {}, this.stack = "";
323
323
  }
324
- _.prototype = Error.prototype;
324
+ m.prototype = Error.prototype;
325
325
  function P(s) {
326
326
  if (process.env.NODE_ENV !== "production")
327
- var d = {}, S = 0;
328
- function C(O, T, R, M, W, A, H) {
329
- if (M = M || y, A = A || R, H !== r) {
330
- if (p) {
331
- var h = new Error(
327
+ var p = {}, E = 0;
328
+ function R(M, C, O, A, W, D, U) {
329
+ if (A = A || y, D = D || O, U !== t) {
330
+ if (h) {
331
+ var v = new Error(
332
332
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
333
333
  );
334
- throw h.name = "Invariant Violation", h;
334
+ throw v.name = "Invariant Violation", v;
335
335
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
336
- var K = M + ":" + R;
337
- !d[K] && // Avoid spamming the console because they are often not actionable except for lib authors
338
- S < 3 && (u(
339
- "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + M + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
340
- ), d[K] = !0, S++);
336
+ var Z = A + ":" + O;
337
+ !p[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
338
+ E < 3 && (o(
339
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
340
+ ), p[Z] = !0, E++);
341
341
  }
342
342
  }
343
- return T[R] == null ? O ? T[R] === null ? new _("The " + W + " `" + A + "` is marked as required " + ("in `" + M + "`, but its value is `null`.")) : new _("The " + W + " `" + A + "` is marked as required in " + ("`" + M + "`, but its value is `undefined`.")) : null : s(T, R, M, W, A);
343
+ return C[O] == null ? M ? C[O] === null ? new m("The " + W + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new m("The " + W + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(C, O, A, W, D);
344
344
  }
345
- var w = C.bind(null, !1);
346
- return w.isRequired = C.bind(null, !0), w;
345
+ var T = R.bind(null, !1);
346
+ return T.isRequired = R.bind(null, !0), T;
347
347
  }
348
348
  function x(s) {
349
- function d(S, C, w, O, T, R) {
350
- var M = S[C], W = V(M);
349
+ function p(E, R, T, M, C, O) {
350
+ var A = E[R], W = Y(A);
351
351
  if (W !== s) {
352
- var A = J(M);
353
- return new _(
354
- "Invalid " + O + " `" + T + "` of type " + ("`" + A + "` supplied to `" + w + "`, expected ") + ("`" + s + "`."),
352
+ var D = V(A);
353
+ return new m(
354
+ "Invalid " + M + " `" + C + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected ") + ("`" + s + "`."),
355
355
  { expectedType: s }
356
356
  );
357
357
  }
358
358
  return null;
359
359
  }
360
- return P(d);
360
+ return P(p);
361
361
  }
362
- function q() {
362
+ function L() {
363
363
  return P(c);
364
364
  }
365
365
  function $(s) {
366
- function d(S, C, w, O, T) {
366
+ function p(E, R, T, M, C) {
367
367
  if (typeof s != "function")
368
- return new _("Property `" + T + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
369
- var R = S[C];
370
- if (!Array.isArray(R)) {
371
- var M = V(R);
372
- return new _("Invalid " + O + " `" + T + "` of type " + ("`" + M + "` supplied to `" + w + "`, expected an array."));
368
+ return new m("Property `" + C + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
369
+ var O = E[R];
370
+ if (!Array.isArray(O)) {
371
+ var A = Y(O);
372
+ return new m("Invalid " + M + " `" + C + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an array."));
373
373
  }
374
- for (var W = 0; W < R.length; W++) {
375
- var A = s(R, W, w, O, T + "[" + W + "]", r);
376
- if (A instanceof Error)
377
- return A;
374
+ for (var W = 0; W < O.length; W++) {
375
+ var D = s(O, W, T, M, C + "[" + W + "]", t);
376
+ if (D instanceof Error)
377
+ return D;
378
378
  }
379
379
  return null;
380
380
  }
381
- return P(d);
381
+ return P(p);
382
382
  }
383
- function D() {
384
- function s(d, S, C, w, O) {
385
- var T = d[S];
386
- if (!o(T)) {
387
- var R = V(T);
388
- return new _("Invalid " + w + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
383
+ function k() {
384
+ function s(p, E, R, T, M) {
385
+ var C = p[E];
386
+ if (!u(C)) {
387
+ var O = Y(C);
388
+ return new m("Invalid " + T + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected a single ReactElement."));
389
389
  }
390
390
  return null;
391
391
  }
392
392
  return P(s);
393
393
  }
394
- function f() {
395
- function s(d, S, C, w, O) {
396
- var T = d[S];
397
- if (!e.isValidElementType(T)) {
398
- var R = V(T);
399
- return new _("Invalid " + w + " `" + O + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
394
+ function d() {
395
+ function s(p, E, R, T, M) {
396
+ var C = p[E];
397
+ if (!e.isValidElementType(C)) {
398
+ var O = Y(C);
399
+ return new m("Invalid " + T + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected a single ReactElement type."));
400
400
  }
401
401
  return null;
402
402
  }
403
403
  return P(s);
404
404
  }
405
- function G(s) {
406
- function d(S, C, w, O, T) {
407
- if (!(S[C] instanceof s)) {
408
- var R = s.name || y, M = Z(S[C]);
409
- return new _("Invalid " + O + " `" + T + "` of type " + ("`" + M + "` supplied to `" + w + "`, expected ") + ("instance of `" + R + "`."));
405
+ function J(s) {
406
+ function p(E, R, T, M, C) {
407
+ if (!(E[R] instanceof s)) {
408
+ var O = s.name || y, A = X(E[R]);
409
+ return new m("Invalid " + M + " `" + C + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected ") + ("instance of `" + O + "`."));
410
410
  }
411
411
  return null;
412
412
  }
413
- return P(d);
413
+ return P(p);
414
414
  }
415
- function N(s) {
415
+ function ee(s) {
416
416
  if (!Array.isArray(s))
417
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? u(
417
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
418
418
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
419
- ) : u("Invalid argument supplied to oneOf, expected an array.")), c;
420
- function d(S, C, w, O, T) {
421
- for (var R = S[C], M = 0; M < s.length; M++)
422
- if (b(R, s[M]))
419
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), c;
420
+ function p(E, R, T, M, C) {
421
+ for (var O = E[R], A = 0; A < s.length; A++)
422
+ if (S(O, s[A]))
423
423
  return null;
424
- var W = JSON.stringify(s, function(H, h) {
425
- var K = J(h);
426
- return K === "symbol" ? String(h) : h;
424
+ var W = JSON.stringify(s, function(U, v) {
425
+ var Z = V(v);
426
+ return Z === "symbol" ? String(v) : v;
427
427
  });
428
- return new _("Invalid " + O + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + w + "`, expected one of " + W + "."));
428
+ return new m("Invalid " + M + " `" + C + "` of value `" + String(O) + "` " + ("supplied to `" + T + "`, expected one of " + W + "."));
429
429
  }
430
- return P(d);
430
+ return P(p);
431
431
  }
432
- function Y(s) {
433
- function d(S, C, w, O, T) {
432
+ function G(s) {
433
+ function p(E, R, T, M, C) {
434
434
  if (typeof s != "function")
435
- return new _("Property `" + T + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
436
- var R = S[C], M = V(R);
437
- if (M !== "object")
438
- return new _("Invalid " + O + " `" + T + "` of type " + ("`" + M + "` supplied to `" + w + "`, expected an object."));
439
- for (var W in R)
440
- if (t(R, W)) {
441
- var A = s(R, W, w, O, T + "." + W, r);
442
- if (A instanceof Error)
443
- return A;
435
+ return new m("Property `" + C + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
436
+ var O = E[R], A = Y(O);
437
+ if (A !== "object")
438
+ return new m("Invalid " + M + " `" + C + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an object."));
439
+ for (var W in O)
440
+ if (r(O, W)) {
441
+ var D = s(O, W, T, M, C + "." + W, t);
442
+ if (D instanceof Error)
443
+ return D;
444
444
  }
445
445
  return null;
446
446
  }
447
- return P(d);
447
+ return P(p);
448
448
  }
449
- function k(s) {
449
+ function w(s) {
450
450
  if (!Array.isArray(s))
451
- return process.env.NODE_ENV !== "production" && u("Invalid argument supplied to oneOfType, expected an instance of array."), c;
452
- for (var d = 0; d < s.length; d++) {
453
- var S = s[d];
454
- if (typeof S != "function")
455
- return u(
456
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(S) + " at index " + d + "."
451
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
452
+ for (var p = 0; p < s.length; p++) {
453
+ var E = s[p];
454
+ if (typeof E != "function")
455
+ return o(
456
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(E) + " at index " + p + "."
457
457
  ), c;
458
458
  }
459
- function C(w, O, T, R, M) {
460
- for (var W = [], A = 0; A < s.length; A++) {
461
- var H = s[A], h = H(w, O, T, R, M, r);
462
- if (h == null)
459
+ function R(T, M, C, O, A) {
460
+ for (var W = [], D = 0; D < s.length; D++) {
461
+ var U = s[D], v = U(T, M, C, O, A, t);
462
+ if (v == null)
463
463
  return null;
464
- h.data && t(h.data, "expectedType") && W.push(h.data.expectedType);
464
+ v.data && r(v.data, "expectedType") && W.push(v.data.expectedType);
465
465
  }
466
- var K = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
467
- return new _("Invalid " + R + " `" + M + "` supplied to " + ("`" + T + "`" + K + "."));
466
+ var Z = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
467
+ return new m("Invalid " + O + " `" + A + "` supplied to " + ("`" + C + "`" + Z + "."));
468
468
  }
469
- return P(C);
469
+ return P(R);
470
470
  }
471
- function E() {
472
- function s(d, S, C, w, O) {
473
- return Q(d[S]) ? null : new _("Invalid " + w + " `" + O + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
471
+ function _() {
472
+ function s(p, E, R, T, M) {
473
+ return K(p[E]) ? null : new m("Invalid " + T + " `" + M + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
474
474
  }
475
475
  return P(s);
476
476
  }
477
- function B(s, d, S, C, w) {
478
- return new _(
479
- (s || "React class") + ": " + d + " type `" + S + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
477
+ function B(s, p, E, R, T) {
478
+ return new m(
479
+ (s || "React class") + ": " + p + " type `" + E + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
480
480
  );
481
481
  }
482
- function z(s) {
483
- function d(S, C, w, O, T) {
484
- var R = S[C], M = V(R);
485
- if (M !== "object")
486
- return new _("Invalid " + O + " `" + T + "` of type `" + M + "` " + ("supplied to `" + w + "`, expected `object`."));
482
+ function F(s) {
483
+ function p(E, R, T, M, C) {
484
+ var O = E[R], A = Y(O);
485
+ if (A !== "object")
486
+ return new m("Invalid " + M + " `" + C + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
487
487
  for (var W in s) {
488
- var A = s[W];
489
- if (typeof A != "function")
490
- return B(w, O, T, W, J(A));
491
- var H = A(R, W, w, O, T + "." + W, r);
492
- if (H)
493
- return H;
488
+ var D = s[W];
489
+ if (typeof D != "function")
490
+ return B(T, M, C, W, V(D));
491
+ var U = D(O, W, T, M, C + "." + W, t);
492
+ if (U)
493
+ return U;
494
494
  }
495
495
  return null;
496
496
  }
497
- return P(d);
497
+ return P(p);
498
498
  }
499
- function m(s) {
500
- function d(S, C, w, O, T) {
501
- var R = S[C], M = V(R);
502
- if (M !== "object")
503
- return new _("Invalid " + O + " `" + T + "` of type `" + M + "` " + ("supplied to `" + w + "`, expected `object`."));
504
- var W = a({}, S[C], s);
505
- for (var A in W) {
506
- var H = s[A];
507
- if (t(s, A) && typeof H != "function")
508
- return B(w, O, T, A, J(H));
509
- if (!H)
510
- return new _(
511
- "Invalid " + O + " `" + T + "` key `" + A + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(S[C], null, " ") + `
499
+ function g(s) {
500
+ function p(E, R, T, M, C) {
501
+ var O = E[R], A = Y(O);
502
+ if (A !== "object")
503
+ return new m("Invalid " + M + " `" + C + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
504
+ var W = n({}, E[R], s);
505
+ for (var D in W) {
506
+ var U = s[D];
507
+ if (r(s, D) && typeof U != "function")
508
+ return B(T, M, C, D, V(U));
509
+ if (!U)
510
+ return new m(
511
+ "Invalid " + M + " `" + C + "` key `" + D + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(E[R], null, " ") + `
512
512
  Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
513
513
  );
514
- var h = H(R, A, w, O, T + "." + A, r);
515
- if (h)
516
- return h;
514
+ var v = U(O, D, T, M, C + "." + D, t);
515
+ if (v)
516
+ return v;
517
517
  }
518
518
  return null;
519
519
  }
520
- return P(d);
520
+ return P(p);
521
521
  }
522
- function Q(s) {
522
+ function K(s) {
523
523
  switch (typeof s) {
524
524
  case "number":
525
525
  case "string":
@@ -529,20 +529,20 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
529
529
  return !s;
530
530
  case "object":
531
531
  if (Array.isArray(s))
532
- return s.every(Q);
533
- if (s === null || o(s))
532
+ return s.every(K);
533
+ if (s === null || u(s))
534
534
  return !0;
535
- var d = v(s);
536
- if (d) {
537
- var S = d.call(s), C;
538
- if (d !== s.entries) {
539
- for (; !(C = S.next()).done; )
540
- if (!Q(C.value))
535
+ var p = f(s);
536
+ if (p) {
537
+ var E = p.call(s), R;
538
+ if (p !== s.entries) {
539
+ for (; !(R = E.next()).done; )
540
+ if (!K(R.value))
541
541
  return !1;
542
542
  } else
543
- for (; !(C = S.next()).done; ) {
544
- var w = C.value;
545
- if (w && !Q(w[1]))
543
+ for (; !(R = E.next()).done; ) {
544
+ var T = R.value;
545
+ if (T && !K(T[1]))
546
546
  return !1;
547
547
  }
548
548
  } else
@@ -552,43 +552,43 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
552
552
  return !1;
553
553
  }
554
554
  }
555
- function ae(s, d) {
556
- return s === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
555
+ function ae(s, p) {
556
+ return s === "symbol" ? !0 : p ? p["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && p instanceof Symbol : !1;
557
557
  }
558
- function V(s) {
559
- var d = typeof s;
560
- return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : ae(d, s) ? "symbol" : d;
558
+ function Y(s) {
559
+ var p = typeof s;
560
+ return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : ae(p, s) ? "symbol" : p;
561
561
  }
562
- function J(s) {
562
+ function V(s) {
563
563
  if (typeof s > "u" || s === null)
564
564
  return "" + s;
565
- var d = V(s);
566
- if (d === "object") {
565
+ var p = Y(s);
566
+ if (p === "object") {
567
567
  if (s instanceof Date)
568
568
  return "date";
569
569
  if (s instanceof RegExp)
570
570
  return "regexp";
571
571
  }
572
- return d;
572
+ return p;
573
573
  }
574
- function U(s) {
575
- var d = J(s);
576
- switch (d) {
574
+ function N(s) {
575
+ var p = V(s);
576
+ switch (p) {
577
577
  case "array":
578
578
  case "object":
579
- return "an " + d;
579
+ return "an " + p;
580
580
  case "boolean":
581
581
  case "date":
582
582
  case "regexp":
583
- return "a " + d;
583
+ return "a " + p;
584
584
  default:
585
- return d;
585
+ return p;
586
586
  }
587
587
  }
588
- function Z(s) {
588
+ function X(s) {
589
589
  return !s.constructor || !s.constructor.name ? y : s.constructor.name;
590
590
  }
591
- return g.checkPropTypes = n, g.resetWarningCache = n.resetWarningCache, g.PropTypes = g, g;
591
+ return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
592
592
  }, ge;
593
593
  }
594
594
  var _e, ke;
@@ -596,61 +596,61 @@ function Ke() {
596
596
  if (ke) return _e;
597
597
  ke = 1;
598
598
  var e = /* @__PURE__ */ xe();
599
- function a() {
599
+ function n() {
600
600
  }
601
- function r() {
601
+ function t() {
602
602
  }
603
- return r.resetWarningCache = a, _e = function() {
604
- function t(c, o, p, i, l, v) {
605
- if (v !== e) {
603
+ return t.resetWarningCache = n, _e = function() {
604
+ function r(c, u, h, i, l, f) {
605
+ if (f !== e) {
606
606
  var y = new Error(
607
607
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
608
608
  );
609
609
  throw y.name = "Invariant Violation", y;
610
610
  }
611
611
  }
612
- t.isRequired = t;
613
- function n() {
614
- return t;
612
+ r.isRequired = r;
613
+ function a() {
614
+ return r;
615
615
  }
616
- var u = {
617
- array: t,
618
- bigint: t,
619
- bool: t,
620
- func: t,
621
- number: t,
622
- object: t,
623
- string: t,
624
- symbol: t,
625
- any: t,
626
- arrayOf: n,
627
- element: t,
628
- elementType: t,
629
- instanceOf: n,
630
- node: t,
631
- objectOf: n,
632
- oneOf: n,
633
- oneOfType: n,
634
- shape: n,
635
- exact: n,
636
- checkPropTypes: r,
637
- resetWarningCache: a
616
+ var o = {
617
+ array: r,
618
+ bigint: r,
619
+ bool: r,
620
+ func: r,
621
+ number: r,
622
+ object: r,
623
+ string: r,
624
+ symbol: r,
625
+ any: r,
626
+ arrayOf: a,
627
+ element: r,
628
+ elementType: r,
629
+ instanceOf: a,
630
+ node: r,
631
+ objectOf: a,
632
+ oneOf: a,
633
+ oneOfType: a,
634
+ shape: a,
635
+ exact: a,
636
+ checkPropTypes: t,
637
+ resetWarningCache: n
638
638
  };
639
- return u.PropTypes = u, u;
639
+ return o.PropTypes = o, o;
640
640
  }, _e;
641
641
  }
642
642
  var Ie;
643
643
  function Qe() {
644
- if (Ie) return ue.exports;
644
+ if (Ie) return ce.exports;
645
645
  if (Ie = 1, process.env.NODE_ENV !== "production") {
646
- var e = We(), a = !0;
647
- ue.exports = /* @__PURE__ */ Ge()(e.isElement, a);
646
+ var e = We(), n = !0;
647
+ ce.exports = /* @__PURE__ */ Ge()(e.isElement, n);
648
648
  } else
649
- ue.exports = /* @__PURE__ */ Ke()();
650
- return ue.exports;
649
+ ce.exports = /* @__PURE__ */ Ke()();
650
+ return ce.exports;
651
651
  }
652
- function ne(e, a, r) {
653
- this.x = e, this.y = a, this.time = r || (/* @__PURE__ */ new Date()).getTime();
652
+ function ne(e, n, t) {
653
+ this.x = e, this.y = n, this.time = t || (/* @__PURE__ */ new Date()).getTime();
654
654
  }
655
655
  ne.prototype.velocityFrom = function(e) {
656
656
  return this.time !== e.time ? this.distanceTo(e) / (this.time - e.time) : 1;
@@ -661,393 +661,393 @@ ne.prototype.distanceTo = function(e) {
661
661
  ne.prototype.equals = function(e) {
662
662
  return this.x === e.x && this.y === e.y && this.time === e.time;
663
663
  };
664
- function be(e, a, r, t) {
665
- this.startPoint = e, this.control1 = a, this.control2 = r, this.endPoint = t;
664
+ function be(e, n, t, r) {
665
+ this.startPoint = e, this.control1 = n, this.control2 = t, this.endPoint = r;
666
666
  }
667
667
  be.prototype.length = function() {
668
- for (var e = 10, a = 0, r = void 0, t = void 0, n = 0; n <= e; n += 1) {
669
- var u = n / e, c = this._point(u, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), o = this._point(u, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
670
- if (n > 0) {
671
- var p = c - r, i = o - t;
672
- a += Math.sqrt(p * p + i * i);
668
+ for (var e = 10, n = 0, t = void 0, r = void 0, a = 0; a <= e; a += 1) {
669
+ var o = a / e, c = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), u = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
670
+ if (a > 0) {
671
+ var h = c - t, i = u - r;
672
+ n += Math.sqrt(h * h + i * i);
673
673
  }
674
- r = c, t = o;
674
+ t = c, r = u;
675
675
  }
676
- return a;
676
+ return n;
677
677
  };
678
- be.prototype._point = function(e, a, r, t, n) {
679
- return a * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + n * e * e * e;
678
+ be.prototype._point = function(e, n, t, r, a) {
679
+ return n * (1 - e) * (1 - e) * (1 - e) + 3 * t * (1 - e) * (1 - e) * e + 3 * r * (1 - e) * e * e + a * e * e * e;
680
680
  };
681
- function et(e, a, r) {
682
- var t, n, u, c = null, o = 0;
683
- r || (r = {});
684
- var p = function() {
685
- o = r.leading === !1 ? 0 : Date.now(), c = null, u = e.apply(t, n), c || (t = n = null);
681
+ function et(e, n, t) {
682
+ var r, a, o, c = null, u = 0;
683
+ t || (t = {});
684
+ var h = function() {
685
+ u = t.leading === !1 ? 0 : Date.now(), c = null, o = e.apply(r, a), c || (r = a = null);
686
686
  };
687
687
  return function() {
688
688
  var i = Date.now();
689
- !o && r.leading === !1 && (o = i);
690
- var l = a - (i - o);
691
- return t = this, n = arguments, l <= 0 || l > a ? (c && (clearTimeout(c), c = null), o = i, u = e.apply(t, n), c || (t = n = null)) : !c && r.trailing !== !1 && (c = setTimeout(p, l)), u;
689
+ !u && t.leading === !1 && (u = i);
690
+ var l = n - (i - u);
691
+ return r = this, a = arguments, l <= 0 || l > n ? (c && (clearTimeout(c), c = null), u = i, o = e.apply(r, a), c || (r = a = null)) : !c && t.trailing !== !1 && (c = setTimeout(h, l)), o;
692
692
  };
693
693
  }
694
- function L(e, a) {
695
- var r = this, t = a || {};
696
- this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = et(L.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = L.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
694
+ function z(e, n) {
695
+ var t = this, r = n || {};
696
+ this.velocityFilterWeight = r.velocityFilterWeight || 0.7, this.minWidth = r.minWidth || 0.5, this.maxWidth = r.maxWidth || 2.5, this.throttle = "throttle" in r ? r.throttle : 16, this.minDistance = "minDistance" in r ? r.minDistance : 5, this.throttle ? this._strokeMoveUpdate = et(z.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = z.prototype._strokeUpdate, this.dotSize = r.dotSize || function() {
697
697
  return (this.minWidth + this.maxWidth) / 2;
698
- }, this.penColor = t.penColor || "black", this.backgroundColor = t.backgroundColor || "rgba(0,0,0,0)", this.onBegin = t.onBegin, this.onEnd = t.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(n) {
699
- n.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(n));
700
- }, this._handleMouseMove = function(n) {
701
- r._mouseButtonDown && r._strokeMoveUpdate(n);
702
- }, this._handleMouseUp = function(n) {
703
- n.which === 1 && r._mouseButtonDown && (r._mouseButtonDown = !1, r._strokeEnd(n));
704
- }, this._handleTouchStart = function(n) {
705
- if (n.targetTouches.length === 1) {
706
- var u = n.changedTouches[0];
707
- r._strokeBegin(u);
698
+ }, this.penColor = r.penColor || "black", this.backgroundColor = r.backgroundColor || "rgba(0,0,0,0)", this.onBegin = r.onBegin, this.onEnd = r.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
699
+ a.which === 1 && (t._mouseButtonDown = !0, t._strokeBegin(a));
700
+ }, this._handleMouseMove = function(a) {
701
+ t._mouseButtonDown && t._strokeMoveUpdate(a);
702
+ }, this._handleMouseUp = function(a) {
703
+ a.which === 1 && t._mouseButtonDown && (t._mouseButtonDown = !1, t._strokeEnd(a));
704
+ }, this._handleTouchStart = function(a) {
705
+ if (a.targetTouches.length === 1) {
706
+ var o = a.changedTouches[0];
707
+ t._strokeBegin(o);
708
708
  }
709
- }, this._handleTouchMove = function(n) {
710
- n.preventDefault();
711
- var u = n.targetTouches[0];
712
- r._strokeMoveUpdate(u);
713
- }, this._handleTouchEnd = function(n) {
714
- var u = n.target === r._canvas;
715
- u && (n.preventDefault(), r._strokeEnd(n));
709
+ }, this._handleTouchMove = function(a) {
710
+ a.preventDefault();
711
+ var o = a.targetTouches[0];
712
+ t._strokeMoveUpdate(o);
713
+ }, this._handleTouchEnd = function(a) {
714
+ var o = a.target === t._canvas;
715
+ o && (a.preventDefault(), t._strokeEnd(a));
716
716
  }, this.on();
717
717
  }
718
- L.prototype.clear = function() {
719
- var e = this._ctx, a = this._canvas;
720
- e.fillStyle = this.backgroundColor, e.clearRect(0, 0, a.width, a.height), e.fillRect(0, 0, a.width, a.height), this._data = [], this._reset(), this._isEmpty = !0;
718
+ z.prototype.clear = function() {
719
+ var e = this._ctx, n = this._canvas;
720
+ e.fillStyle = this.backgroundColor, e.clearRect(0, 0, n.width, n.height), e.fillRect(0, 0, n.width, n.height), this._data = [], this._reset(), this._isEmpty = !0;
721
721
  };
722
- L.prototype.fromDataURL = function(e) {
723
- var a = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), n = r.ratio || window.devicePixelRatio || 1, u = r.width || this._canvas.width / n, c = r.height || this._canvas.height / n;
724
- this._reset(), t.src = e, t.onload = function() {
725
- a._ctx.drawImage(t, 0, 0, u, c);
722
+ z.prototype.fromDataURL = function(e) {
723
+ var n = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new Image(), a = t.ratio || window.devicePixelRatio || 1, o = t.width || this._canvas.width / a, c = t.height || this._canvas.height / a;
724
+ this._reset(), r.src = e, r.onload = function() {
725
+ n._ctx.drawImage(r, 0, 0, o, c);
726
726
  }, this._isEmpty = !1;
727
727
  };
728
- L.prototype.toDataURL = function(e) {
729
- var a;
728
+ z.prototype.toDataURL = function(e) {
729
+ var n;
730
730
  switch (e) {
731
731
  case "image/svg+xml":
732
732
  return this._toSVG();
733
733
  default:
734
- for (var r = arguments.length, t = Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
735
- t[n - 1] = arguments[n];
736
- return (a = this._canvas).toDataURL.apply(a, [e].concat(t));
734
+ for (var t = arguments.length, r = Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
735
+ r[a - 1] = arguments[a];
736
+ return (n = this._canvas).toDataURL.apply(n, [e].concat(r));
737
737
  }
738
738
  };
739
- L.prototype.on = function() {
739
+ z.prototype.on = function() {
740
740
  this._handleMouseEvents(), this._handleTouchEvents();
741
741
  };
742
- L.prototype.off = function() {
742
+ z.prototype.off = function() {
743
743
  this._canvas.removeEventListener("mousedown", this._handleMouseDown), this._canvas.removeEventListener("mousemove", this._handleMouseMove), document.removeEventListener("mouseup", this._handleMouseUp), this._canvas.removeEventListener("touchstart", this._handleTouchStart), this._canvas.removeEventListener("touchmove", this._handleTouchMove), this._canvas.removeEventListener("touchend", this._handleTouchEnd);
744
744
  };
745
- L.prototype.isEmpty = function() {
745
+ z.prototype.isEmpty = function() {
746
746
  return this._isEmpty;
747
747
  };
748
- L.prototype._strokeBegin = function(e) {
748
+ z.prototype._strokeBegin = function(e) {
749
749
  this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
750
750
  };
751
- L.prototype._strokeUpdate = function(e) {
752
- var a = e.clientX, r = e.clientY, t = this._createPoint(a, r), n = this._data[this._data.length - 1], u = n && n[n.length - 1], c = u && t.distanceTo(u) < this.minDistance;
753
- if (!(u && c)) {
754
- var o = this._addPoint(t), p = o.curve, i = o.widths;
755
- p && i && this._drawCurve(p, i.start, i.end), this._data[this._data.length - 1].push({
756
- x: t.x,
757
- y: t.y,
758
- time: t.time,
751
+ z.prototype._strokeUpdate = function(e) {
752
+ var n = e.clientX, t = e.clientY, r = this._createPoint(n, t), a = this._data[this._data.length - 1], o = a && a[a.length - 1], c = o && r.distanceTo(o) < this.minDistance;
753
+ if (!(o && c)) {
754
+ var u = this._addPoint(r), h = u.curve, i = u.widths;
755
+ h && i && this._drawCurve(h, i.start, i.end), this._data[this._data.length - 1].push({
756
+ x: r.x,
757
+ y: r.y,
758
+ time: r.time,
759
759
  color: this.penColor
760
760
  });
761
761
  }
762
762
  };
763
- L.prototype._strokeEnd = function(e) {
764
- var a = this.points.length > 2, r = this.points[0];
765
- if (!a && r && this._drawDot(r), r) {
766
- var t = this._data[this._data.length - 1], n = t[t.length - 1];
767
- r.equals(n) || t.push({
768
- x: r.x,
769
- y: r.y,
770
- time: r.time,
763
+ z.prototype._strokeEnd = function(e) {
764
+ var n = this.points.length > 2, t = this.points[0];
765
+ if (!n && t && this._drawDot(t), t) {
766
+ var r = this._data[this._data.length - 1], a = r[r.length - 1];
767
+ t.equals(a) || r.push({
768
+ x: t.x,
769
+ y: t.y,
770
+ time: t.time,
771
771
  color: this.penColor
772
772
  });
773
773
  }
774
774
  typeof this.onEnd == "function" && this.onEnd(e);
775
775
  };
776
- L.prototype._handleMouseEvents = function() {
776
+ z.prototype._handleMouseEvents = function() {
777
777
  this._mouseButtonDown = !1, this._canvas.addEventListener("mousedown", this._handleMouseDown), this._canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
778
778
  };
779
- L.prototype._handleTouchEvents = function() {
779
+ z.prototype._handleTouchEvents = function() {
780
780
  this._canvas.style.msTouchAction = "none", this._canvas.style.touchAction = "none", this._canvas.addEventListener("touchstart", this._handleTouchStart), this._canvas.addEventListener("touchmove", this._handleTouchMove), this._canvas.addEventListener("touchend", this._handleTouchEnd);
781
781
  };
782
- L.prototype._reset = function() {
782
+ z.prototype._reset = function() {
783
783
  this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
784
784
  };
785
- L.prototype._createPoint = function(e, a, r) {
786
- var t = this._canvas.getBoundingClientRect();
787
- return new ne(e - t.left, a - t.top, r || (/* @__PURE__ */ new Date()).getTime());
785
+ z.prototype._createPoint = function(e, n, t) {
786
+ var r = this._canvas.getBoundingClientRect();
787
+ return new ne(e - r.left, n - r.top, t || (/* @__PURE__ */ new Date()).getTime());
788
788
  };
789
- L.prototype._addPoint = function(e) {
790
- var a = this.points, r = void 0;
791
- if (a.push(e), a.length > 2) {
792
- a.length === 3 && a.unshift(a[0]), r = this._calculateCurveControlPoints(a[0], a[1], a[2]);
793
- var t = r.c2;
794
- r = this._calculateCurveControlPoints(a[1], a[2], a[3]);
795
- var n = r.c1, u = new be(a[1], t, n, a[2]), c = this._calculateCurveWidths(u);
796
- return a.shift(), { curve: u, widths: c };
789
+ z.prototype._addPoint = function(e) {
790
+ var n = this.points, t = void 0;
791
+ if (n.push(e), n.length > 2) {
792
+ n.length === 3 && n.unshift(n[0]), t = this._calculateCurveControlPoints(n[0], n[1], n[2]);
793
+ var r = t.c2;
794
+ t = this._calculateCurveControlPoints(n[1], n[2], n[3]);
795
+ var a = t.c1, o = new be(n[1], r, a, n[2]), c = this._calculateCurveWidths(o);
796
+ return n.shift(), { curve: o, widths: c };
797
797
  }
798
798
  return {};
799
799
  };
800
- L.prototype._calculateCurveControlPoints = function(e, a, r) {
801
- var t = e.x - a.x, n = e.y - a.y, u = a.x - r.x, c = a.y - r.y, o = { x: (e.x + a.x) / 2, y: (e.y + a.y) / 2 }, p = { x: (a.x + r.x) / 2, y: (a.y + r.y) / 2 }, i = Math.sqrt(t * t + n * n), l = Math.sqrt(u * u + c * c), v = o.x - p.x, y = o.y - p.y, g = l / (i + l), b = { x: p.x + v * g, y: p.y + y * g }, _ = a.x - b.x, P = a.y - b.y;
800
+ z.prototype._calculateCurveControlPoints = function(e, n, t) {
801
+ var r = e.x - n.x, a = e.y - n.y, o = n.x - t.x, c = n.y - t.y, u = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, h = { x: (n.x + t.x) / 2, y: (n.y + t.y) / 2 }, i = Math.sqrt(r * r + a * a), l = Math.sqrt(o * o + c * c), f = u.x - h.x, y = u.y - h.y, b = l / (i + l), S = { x: h.x + f * b, y: h.y + y * b }, m = n.x - S.x, P = n.y - S.y;
802
802
  return {
803
- c1: new ne(o.x + _, o.y + P),
804
- c2: new ne(p.x + _, p.y + P)
803
+ c1: new ne(u.x + m, u.y + P),
804
+ c2: new ne(h.x + m, h.y + P)
805
805
  };
806
806
  };
807
- L.prototype._calculateCurveWidths = function(e) {
808
- var a = e.startPoint, r = e.endPoint, t = { start: null, end: null }, n = this.velocityFilterWeight * r.velocityFrom(a) + (1 - this.velocityFilterWeight) * this._lastVelocity, u = this._strokeWidth(n);
809
- return t.start = this._lastWidth, t.end = u, this._lastVelocity = n, this._lastWidth = u, t;
807
+ z.prototype._calculateCurveWidths = function(e) {
808
+ var n = e.startPoint, t = e.endPoint, r = { start: null, end: null }, a = this.velocityFilterWeight * t.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity, o = this._strokeWidth(a);
809
+ return r.start = this._lastWidth, r.end = o, this._lastVelocity = a, this._lastWidth = o, r;
810
810
  };
811
- L.prototype._strokeWidth = function(e) {
811
+ z.prototype._strokeWidth = function(e) {
812
812
  return Math.max(this.maxWidth / (e + 1), this.minWidth);
813
813
  };
814
- L.prototype._drawPoint = function(e, a, r) {
815
- var t = this._ctx;
816
- t.moveTo(e, a), t.arc(e, a, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
814
+ z.prototype._drawPoint = function(e, n, t) {
815
+ var r = this._ctx;
816
+ r.moveTo(e, n), r.arc(e, n, t, 0, 2 * Math.PI, !1), this._isEmpty = !1;
817
817
  };
818
- L.prototype._drawCurve = function(e, a, r) {
819
- var t = this._ctx, n = r - a, u = Math.floor(e.length());
820
- t.beginPath();
821
- for (var c = 0; c < u; c += 1) {
822
- var o = c / u, p = o * o, i = p * o, l = 1 - o, v = l * l, y = v * l, g = y * e.startPoint.x;
823
- g += 3 * v * o * e.control1.x, g += 3 * l * p * e.control2.x, g += i * e.endPoint.x;
824
- var b = y * e.startPoint.y;
825
- b += 3 * v * o * e.control1.y, b += 3 * l * p * e.control2.y, b += i * e.endPoint.y;
826
- var _ = a + i * n;
827
- this._drawPoint(g, b, _);
818
+ z.prototype._drawCurve = function(e, n, t) {
819
+ var r = this._ctx, a = t - n, o = Math.floor(e.length());
820
+ r.beginPath();
821
+ for (var c = 0; c < o; c += 1) {
822
+ var u = c / o, h = u * u, i = h * u, l = 1 - u, f = l * l, y = f * l, b = y * e.startPoint.x;
823
+ b += 3 * f * u * e.control1.x, b += 3 * l * h * e.control2.x, b += i * e.endPoint.x;
824
+ var S = y * e.startPoint.y;
825
+ S += 3 * f * u * e.control1.y, S += 3 * l * h * e.control2.y, S += i * e.endPoint.y;
826
+ var m = n + i * a;
827
+ this._drawPoint(b, S, m);
828
828
  }
829
- t.closePath(), t.fill();
829
+ r.closePath(), r.fill();
830
830
  };
831
- L.prototype._drawDot = function(e) {
832
- var a = this._ctx, r = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
833
- a.beginPath(), this._drawPoint(e.x, e.y, r), a.closePath(), a.fill();
831
+ z.prototype._drawDot = function(e) {
832
+ var n = this._ctx, t = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
833
+ n.beginPath(), this._drawPoint(e.x, e.y, t), n.closePath(), n.fill();
834
834
  };
835
- L.prototype._fromData = function(e, a, r) {
836
- for (var t = 0; t < e.length; t += 1) {
837
- var n = e[t];
838
- if (n.length > 1)
839
- for (var u = 0; u < n.length; u += 1) {
840
- var c = n[u], o = new ne(c.x, c.y, c.time), p = c.color;
841
- if (u === 0)
842
- this.penColor = p, this._reset(), this._addPoint(o);
843
- else if (u !== n.length - 1) {
844
- var i = this._addPoint(o), l = i.curve, v = i.widths;
845
- l && v && a(l, v, p);
835
+ z.prototype._fromData = function(e, n, t) {
836
+ for (var r = 0; r < e.length; r += 1) {
837
+ var a = e[r];
838
+ if (a.length > 1)
839
+ for (var o = 0; o < a.length; o += 1) {
840
+ var c = a[o], u = new ne(c.x, c.y, c.time), h = c.color;
841
+ if (o === 0)
842
+ this.penColor = h, this._reset(), this._addPoint(u);
843
+ else if (o !== a.length - 1) {
844
+ var i = this._addPoint(u), l = i.curve, f = i.widths;
845
+ l && f && n(l, f, h);
846
846
  }
847
847
  }
848
848
  else {
849
849
  this._reset();
850
- var y = n[0];
851
- r(y);
850
+ var y = a[0];
851
+ t(y);
852
852
  }
853
853
  }
854
854
  };
855
- L.prototype._toSVG = function() {
856
- var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, u = 0, c = r.width / t, o = r.height / t, p = document.createElementNS("http://www.w3.org/2000/svg", "svg");
857
- p.setAttributeNS(null, "width", r.width), p.setAttributeNS(null, "height", r.height), this._fromData(a, function(x, q, $) {
858
- var D = document.createElement("path");
855
+ z.prototype._toSVG = function() {
856
+ var e = this, n = this._data, t = this._canvas, r = Math.max(window.devicePixelRatio || 1, 1), a = 0, o = 0, c = t.width / r, u = t.height / r, h = document.createElementNS("http://www.w3.org/2000/svg", "svg");
857
+ h.setAttributeNS(null, "width", t.width), h.setAttributeNS(null, "height", t.height), this._fromData(n, function(x, L, $) {
858
+ var k = document.createElement("path");
859
859
  if (!isNaN(x.control1.x) && !isNaN(x.control1.y) && !isNaN(x.control2.x) && !isNaN(x.control2.y)) {
860
- var f = "M " + x.startPoint.x.toFixed(3) + "," + x.startPoint.y.toFixed(3) + " " + ("C " + x.control1.x.toFixed(3) + "," + x.control1.y.toFixed(3) + " ") + (x.control2.x.toFixed(3) + "," + x.control2.y.toFixed(3) + " ") + (x.endPoint.x.toFixed(3) + "," + x.endPoint.y.toFixed(3));
861
- D.setAttribute("d", f), D.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), D.setAttribute("stroke", $), D.setAttribute("fill", "none"), D.setAttribute("stroke-linecap", "round"), p.appendChild(D);
860
+ var d = "M " + x.startPoint.x.toFixed(3) + "," + x.startPoint.y.toFixed(3) + " " + ("C " + x.control1.x.toFixed(3) + "," + x.control1.y.toFixed(3) + " ") + (x.control2.x.toFixed(3) + "," + x.control2.y.toFixed(3) + " ") + (x.endPoint.x.toFixed(3) + "," + x.endPoint.y.toFixed(3));
861
+ k.setAttribute("d", d), k.setAttribute("stroke-width", (L.end * 2.25).toFixed(3)), k.setAttribute("stroke", $), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), h.appendChild(k);
862
862
  }
863
863
  }, function(x) {
864
- var q = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
865
- q.setAttribute("r", $), q.setAttribute("cx", x.x), q.setAttribute("cy", x.y), q.setAttribute("fill", x.color), p.appendChild(q);
864
+ var L = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
865
+ L.setAttribute("r", $), L.setAttribute("cx", x.x), L.setAttribute("cy", x.y), L.setAttribute("fill", x.color), h.appendChild(L);
866
866
  });
867
- var i = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + n + " " + u + " " + c + " " + o + '"') + (' width="' + c + '"') + (' height="' + o + '"') + ">", v = p.innerHTML;
868
- if (v === void 0) {
869
- var y = document.createElement("dummy"), g = p.childNodes;
867
+ var i = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + o + " " + c + " " + u + '"') + (' width="' + c + '"') + (' height="' + u + '"') + ">", f = h.innerHTML;
868
+ if (f === void 0) {
869
+ var y = document.createElement("dummy"), b = h.childNodes;
870
870
  y.innerHTML = "";
871
- for (var b = 0; b < g.length; b += 1)
872
- y.appendChild(g[b].cloneNode(!0));
873
- v = y.innerHTML;
871
+ for (var S = 0; S < b.length; S += 1)
872
+ y.appendChild(b[S].cloneNode(!0));
873
+ f = y.innerHTML;
874
874
  }
875
- var _ = "</svg>", P = l + v + _;
875
+ var m = "</svg>", P = l + f + m;
876
876
  return i + btoa(P);
877
877
  };
878
- L.prototype.fromData = function(e) {
879
- var a = this;
880
- this.clear(), this._fromData(e, function(r, t) {
881
- return a._drawCurve(r, t.start, t.end);
882
- }, function(r) {
883
- return a._drawDot(r);
878
+ z.prototype.fromData = function(e) {
879
+ var n = this;
880
+ this.clear(), this._fromData(e, function(t, r) {
881
+ return n._drawCurve(t, r.start, r.end);
882
+ }, function(t) {
883
+ return n._drawDot(t);
884
884
  }), this._data = e;
885
885
  };
886
- L.prototype.toData = function() {
886
+ z.prototype.toData = function() {
887
887
  return this._data;
888
888
  };
889
889
  const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
890
890
  __proto__: null,
891
- default: L
891
+ default: z
892
892
  }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ qe(tt);
893
- var fe = { exports: {} }, nt = fe.exports, je;
893
+ var de = { exports: {} }, nt = de.exports, je;
894
894
  function at() {
895
- return je || (je = 1, (function(e, a) {
896
- (function(r, t) {
897
- e.exports = t();
895
+ return je || (je = 1, (function(e, n) {
896
+ (function(t, r) {
897
+ e.exports = r();
898
898
  })(nt, function() {
899
- return (function(r) {
900
- function t(u) {
901
- if (n[u]) return n[u].exports;
902
- var c = n[u] = { exports: {}, id: u, loaded: !1 };
903
- return r[u].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
899
+ return (function(t) {
900
+ function r(o) {
901
+ if (a[o]) return a[o].exports;
902
+ var c = a[o] = { exports: {}, id: o, loaded: !1 };
903
+ return t[o].call(c.exports, c, c.exports, r), c.loaded = !0, c.exports;
904
904
  }
905
- var n = {};
906
- return t.m = r, t.c = n, t.p = "", t(0);
907
- })([function(r, t) {
908
- function n(i) {
909
- var l = i.getContext("2d"), v = i.width, y = i.height, g = l.getImageData(0, 0, v, y).data, b = o(!0, v, y, g), _ = o(!1, v, y, g), P = p(!0, v, y, g), x = p(!1, v, y, g), q = x - P + 1, $ = _ - b + 1, D = l.getImageData(P, b, q, $);
910
- return i.width = q, i.height = $, l.clearRect(0, 0, q, $), l.putImageData(D, 0, 0), i;
905
+ var a = {};
906
+ return r.m = t, r.c = a, r.p = "", r(0);
907
+ })([function(t, r) {
908
+ function a(i) {
909
+ var l = i.getContext("2d"), f = i.width, y = i.height, b = l.getImageData(0, 0, f, y).data, S = u(!0, f, y, b), m = u(!1, f, y, b), P = h(!0, f, y, b), x = h(!1, f, y, b), L = x - P + 1, $ = m - S + 1, k = l.getImageData(P, S, L, $);
910
+ return i.width = L, i.height = $, l.clearRect(0, 0, L, $), l.putImageData(k, 0, 0), i;
911
911
  }
912
- function u(i, l, v, y) {
913
- return { red: y[4 * (v * l + i)], green: y[4 * (v * l + i) + 1], blue: y[4 * (v * l + i) + 2], alpha: y[4 * (v * l + i) + 3] };
912
+ function o(i, l, f, y) {
913
+ return { red: y[4 * (f * l + i)], green: y[4 * (f * l + i) + 1], blue: y[4 * (f * l + i) + 2], alpha: y[4 * (f * l + i) + 3] };
914
914
  }
915
- function c(i, l, v, y) {
916
- return u(i, l, v, y).alpha;
915
+ function c(i, l, f, y) {
916
+ return o(i, l, f, y).alpha;
917
917
  }
918
- function o(i, l, v, y) {
919
- for (var g = i ? 1 : -1, b = i ? 0 : v - 1, _ = b; i ? _ < v : _ > -1; _ += g) for (var P = 0; P < l; P++) if (c(P, _, l, y)) return _;
918
+ function u(i, l, f, y) {
919
+ for (var b = i ? 1 : -1, S = i ? 0 : f - 1, m = S; i ? m < f : m > -1; m += b) for (var P = 0; P < l; P++) if (c(P, m, l, y)) return m;
920
920
  return null;
921
921
  }
922
- function p(i, l, v, y) {
923
- for (var g = i ? 1 : -1, b = i ? 0 : l - 1, _ = b; i ? _ < l : _ > -1; _ += g) for (var P = 0; P < v; P++) if (c(_, P, l, y)) return _;
922
+ function h(i, l, f, y) {
923
+ for (var b = i ? 1 : -1, S = i ? 0 : l - 1, m = S; i ? m < l : m > -1; m += b) for (var P = 0; P < f; P++) if (c(m, P, l, y)) return m;
924
924
  return null;
925
925
  }
926
- Object.defineProperty(t, "__esModule", { value: !0 }), t.default = n;
926
+ Object.defineProperty(r, "__esModule", { value: !0 }), r.default = a;
927
927
  }]);
928
928
  });
929
- })(fe)), fe.exports;
929
+ })(de)), de.exports;
930
930
  }
931
- var ot = le.exports, $e;
931
+ var ot = fe.exports, $e;
932
932
  function it() {
933
- return $e || ($e = 1, (function(e, a) {
934
- (function(r, t) {
935
- e.exports = t(/* @__PURE__ */ Qe(), ze, rt, at());
936
- })(ot, function(r, t, n, u) {
933
+ return $e || ($e = 1, (function(e, n) {
934
+ (function(t, r) {
935
+ e.exports = r(/* @__PURE__ */ Qe(), ze, rt, at());
936
+ })(ot, function(t, r, a, o) {
937
937
  return (function(c) {
938
- function o(i) {
939
- if (p[i]) return p[i].exports;
940
- var l = p[i] = { exports: {}, id: i, loaded: !1 };
941
- return c[i].call(l.exports, l, l.exports, o), l.loaded = !0, l.exports;
938
+ function u(i) {
939
+ if (h[i]) return h[i].exports;
940
+ var l = h[i] = { exports: {}, id: i, loaded: !1 };
941
+ return c[i].call(l.exports, l, l.exports, u), l.loaded = !0, l.exports;
942
942
  }
943
- var p = {};
944
- return o.m = c, o.c = p, o.p = "", o(0);
945
- })([function(c, o, p) {
946
- function i(k) {
947
- return k && k.__esModule ? k : { default: k };
943
+ var h = {};
944
+ return u.m = c, u.c = h, u.p = "", u(0);
945
+ })([function(c, u, h) {
946
+ function i(w) {
947
+ return w && w.__esModule ? w : { default: w };
948
948
  }
949
- function l(k, E) {
949
+ function l(w, _) {
950
950
  var B = {};
951
- for (var z in k) E.indexOf(z) >= 0 || Object.prototype.hasOwnProperty.call(k, z) && (B[z] = k[z]);
951
+ for (var F in w) _.indexOf(F) >= 0 || Object.prototype.hasOwnProperty.call(w, F) && (B[F] = w[F]);
952
952
  return B;
953
953
  }
954
- function v(k, E) {
955
- if (!(k instanceof E)) throw new TypeError("Cannot call a class as a function");
954
+ function f(w, _) {
955
+ if (!(w instanceof _)) throw new TypeError("Cannot call a class as a function");
956
956
  }
957
- function y(k, E) {
958
- if (!k) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
959
- return !E || typeof E != "object" && typeof E != "function" ? k : E;
957
+ function y(w, _) {
958
+ if (!w) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
959
+ return !_ || typeof _ != "object" && typeof _ != "function" ? w : _;
960
960
  }
961
- function g(k, E) {
962
- if (typeof E != "function" && E !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof E);
963
- k.prototype = Object.create(E && E.prototype, { constructor: { value: k, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(k, E) : k.__proto__ = E);
961
+ function b(w, _) {
962
+ if (typeof _ != "function" && _ !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof _);
963
+ w.prototype = Object.create(_ && _.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), _ && (Object.setPrototypeOf ? Object.setPrototypeOf(w, _) : w.__proto__ = _);
964
964
  }
965
- Object.defineProperty(o, "__esModule", { value: !0 });
966
- var b = Object.assign || function(k) {
967
- for (var E = 1; E < arguments.length; E++) {
968
- var B = arguments[E];
969
- for (var z in B) Object.prototype.hasOwnProperty.call(B, z) && (k[z] = B[z]);
965
+ Object.defineProperty(u, "__esModule", { value: !0 });
966
+ var S = Object.assign || function(w) {
967
+ for (var _ = 1; _ < arguments.length; _++) {
968
+ var B = arguments[_];
969
+ for (var F in B) Object.prototype.hasOwnProperty.call(B, F) && (w[F] = B[F]);
970
970
  }
971
- return k;
972
- }, _ = /* @__PURE__ */ (function() {
973
- function k(E, B) {
974
- for (var z = 0; z < B.length; z++) {
975
- var m = B[z];
976
- m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(E, m.key, m);
971
+ return w;
972
+ }, m = /* @__PURE__ */ (function() {
973
+ function w(_, B) {
974
+ for (var F = 0; F < B.length; F++) {
975
+ var g = B[F];
976
+ g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(_, g.key, g);
977
977
  }
978
978
  }
979
- return function(E, B, z) {
980
- return B && k(E.prototype, B), z && k(E, z), E;
979
+ return function(_, B, F) {
980
+ return B && w(_.prototype, B), F && w(_, F), _;
981
981
  };
982
- })(), P = p(1), x = i(P), q = p(2), $ = i(q), D = p(3), f = i(D), G = p(4), N = i(G), Y = (function(k) {
983
- function E() {
984
- var B, z, m, Q;
985
- v(this, E);
986
- for (var ae = arguments.length, V = Array(ae), J = 0; J < ae; J++) V[J] = arguments[J];
987
- return z = m = y(this, (B = E.__proto__ || Object.getPrototypeOf(E)).call.apply(B, [this].concat(V))), m._sigPad = null, m._excludeOurProps = function() {
988
- var U = m.props, Z = (U.canvasProps, U.clearOnResize, l(U, ["canvasProps", "clearOnResize"]));
989
- return Z;
990
- }, m.getCanvas = function() {
991
- return m._canvas;
992
- }, m.getTrimmedCanvas = function() {
993
- var U = document.createElement("canvas");
994
- return U.width = m._canvas.width, U.height = m._canvas.height, U.getContext("2d").drawImage(m._canvas, 0, 0), (0, N.default)(U);
995
- }, m.getSignaturePad = function() {
996
- return m._sigPad;
997
- }, m._checkClearOnResize = function() {
998
- m.props.clearOnResize && m._resizeCanvas();
999
- }, m._resizeCanvas = function() {
1000
- var U = m.props.canvasProps || {}, Z = U.width, s = U.height;
1001
- if (!Z || !s) {
1002
- var d = m._canvas, S = Math.max(window.devicePixelRatio || 1, 1);
1003
- Z || (d.width = d.offsetWidth * S), s || (d.height = d.offsetHeight * S), d.getContext("2d").scale(S, S), m.clear();
982
+ })(), P = h(1), x = i(P), L = h(2), $ = i(L), k = h(3), d = i(k), J = h(4), ee = i(J), G = (function(w) {
983
+ function _() {
984
+ var B, F, g, K;
985
+ f(this, _);
986
+ for (var ae = arguments.length, Y = Array(ae), V = 0; V < ae; V++) Y[V] = arguments[V];
987
+ return F = g = y(this, (B = _.__proto__ || Object.getPrototypeOf(_)).call.apply(B, [this].concat(Y))), g._sigPad = null, g._excludeOurProps = function() {
988
+ var N = g.props, X = (N.canvasProps, N.clearOnResize, l(N, ["canvasProps", "clearOnResize"]));
989
+ return X;
990
+ }, g.getCanvas = function() {
991
+ return g._canvas;
992
+ }, g.getTrimmedCanvas = function() {
993
+ var N = document.createElement("canvas");
994
+ return N.width = g._canvas.width, N.height = g._canvas.height, N.getContext("2d").drawImage(g._canvas, 0, 0), (0, ee.default)(N);
995
+ }, g.getSignaturePad = function() {
996
+ return g._sigPad;
997
+ }, g._checkClearOnResize = function() {
998
+ g.props.clearOnResize && g._resizeCanvas();
999
+ }, g._resizeCanvas = function() {
1000
+ var N = g.props.canvasProps || {}, X = N.width, s = N.height;
1001
+ if (!X || !s) {
1002
+ var p = g._canvas, E = Math.max(window.devicePixelRatio || 1, 1);
1003
+ X || (p.width = p.offsetWidth * E), s || (p.height = p.offsetHeight * E), p.getContext("2d").scale(E, E), g.clear();
1004
1004
  }
1005
- }, m.on = function() {
1006
- return window.addEventListener("resize", m._checkClearOnResize), m._sigPad.on();
1007
- }, m.off = function() {
1008
- return window.removeEventListener("resize", m._checkClearOnResize), m._sigPad.off();
1009
- }, m.clear = function() {
1010
- return m._sigPad.clear();
1011
- }, m.isEmpty = function() {
1012
- return m._sigPad.isEmpty();
1013
- }, m.fromDataURL = function(U, Z) {
1014
- return m._sigPad.fromDataURL(U, Z);
1015
- }, m.toDataURL = function(U, Z) {
1016
- return m._sigPad.toDataURL(U, Z);
1017
- }, m.fromData = function(U) {
1018
- return m._sigPad.fromData(U);
1019
- }, m.toData = function() {
1020
- return m._sigPad.toData();
1021
- }, Q = z, y(m, Q);
1005
+ }, g.on = function() {
1006
+ return window.addEventListener("resize", g._checkClearOnResize), g._sigPad.on();
1007
+ }, g.off = function() {
1008
+ return window.removeEventListener("resize", g._checkClearOnResize), g._sigPad.off();
1009
+ }, g.clear = function() {
1010
+ return g._sigPad.clear();
1011
+ }, g.isEmpty = function() {
1012
+ return g._sigPad.isEmpty();
1013
+ }, g.fromDataURL = function(N, X) {
1014
+ return g._sigPad.fromDataURL(N, X);
1015
+ }, g.toDataURL = function(N, X) {
1016
+ return g._sigPad.toDataURL(N, X);
1017
+ }, g.fromData = function(N) {
1018
+ return g._sigPad.fromData(N);
1019
+ }, g.toData = function() {
1020
+ return g._sigPad.toData();
1021
+ }, K = F, y(g, K);
1022
1022
  }
1023
- return g(E, k), _(E, [{ key: "componentDidMount", value: function() {
1024
- this._sigPad = new f.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
1023
+ return b(_, w), m(_, [{ key: "componentDidMount", value: function() {
1024
+ this._sigPad = new d.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
1025
1025
  } }, { key: "componentWillUnmount", value: function() {
1026
1026
  this.off();
1027
1027
  } }, { key: "componentDidUpdate", value: function() {
1028
1028
  Object.assign(this._sigPad, this._excludeOurProps());
1029
1029
  } }, { key: "render", value: function() {
1030
- var B = this, z = this.props.canvasProps;
1031
- return $.default.createElement("canvas", b({ ref: function(m) {
1032
- B._canvas = m;
1033
- } }, z));
1034
- } }]), E;
1035
- })(q.Component);
1036
- Y.propTypes = { velocityFilterWeight: x.default.number, minWidth: x.default.number, maxWidth: x.default.number, minDistance: x.default.number, dotSize: x.default.oneOfType([x.default.number, x.default.func]), penColor: x.default.string, throttle: x.default.number, onEnd: x.default.func, onBegin: x.default.func, canvasProps: x.default.object, clearOnResize: x.default.bool }, Y.defaultProps = { clearOnResize: !0 }, o.default = Y;
1037
- }, function(c, o) {
1038
- c.exports = r;
1039
- }, function(c, o) {
1030
+ var B = this, F = this.props.canvasProps;
1031
+ return $.default.createElement("canvas", S({ ref: function(g) {
1032
+ B._canvas = g;
1033
+ } }, F));
1034
+ } }]), _;
1035
+ })(L.Component);
1036
+ G.propTypes = { velocityFilterWeight: x.default.number, minWidth: x.default.number, maxWidth: x.default.number, minDistance: x.default.number, dotSize: x.default.oneOfType([x.default.number, x.default.func]), penColor: x.default.string, throttle: x.default.number, onEnd: x.default.func, onBegin: x.default.func, canvasProps: x.default.object, clearOnResize: x.default.bool }, G.defaultProps = { clearOnResize: !0 }, u.default = G;
1037
+ }, function(c, u) {
1040
1038
  c.exports = t;
1041
- }, function(c, o) {
1042
- c.exports = n;
1043
- }, function(c, o) {
1044
- c.exports = u;
1039
+ }, function(c, u) {
1040
+ c.exports = r;
1041
+ }, function(c, u) {
1042
+ c.exports = a;
1043
+ }, function(c, u) {
1044
+ c.exports = o;
1045
1045
  }]);
1046
1046
  });
1047
- })(le)), le.exports;
1047
+ })(fe)), fe.exports;
1048
1048
  }
1049
1049
  var st = it();
1050
- const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMain_mhdg5_5", ft = "_SignatureMainAuto_mhdg5_15", dt = "_SignatureMainManual_mhdg5_19", ht = "_SignatureHeader_mhdg5_26", pt = "_SignatureHeaderReset_mhdg5_34", vt = "_SignatureManualPanel_mhdg5_41", yt = "_SignatureManualPanelPlaceholder_mhdg5_48", mt = "_SignatureManualPanelButton_mhdg5_52", gt = "_SignatureAutoPanelImage_mhdg5_67", _t = "_SignatureAutoPanelLoader_mhdg5_72", xt = "_SignatureAutoPanelNoteIcon_mhdg5_77", bt = "_SignatureAutoPanelButton_mhdg5_81", X = {
1050
+ const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMain_mhdg5_5", ft = "_SignatureMainAuto_mhdg5_15", dt = "_SignatureMainManual_mhdg5_19", ht = "_SignatureHeader_mhdg5_26", pt = "_SignatureHeaderReset_mhdg5_34", vt = "_SignatureManualPanel_mhdg5_41", yt = "_SignatureManualPanelPlaceholder_mhdg5_48", mt = "_SignatureManualPanelButton_mhdg5_52", gt = "_SignatureAutoPanelImage_mhdg5_67", _t = "_SignatureAutoPanelLoader_mhdg5_72", xt = "_SignatureAutoPanelNoteIcon_mhdg5_77", bt = "_SignatureAutoPanelButton_mhdg5_81", H = {
1051
1051
  Signature: ct,
1052
1052
  SignatureMain: lt,
1053
1053
  SignatureMainAuto: ft,
@@ -1062,65 +1062,61 @@ const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1062
1062
  SignatureAutoPanelNoteIcon: xt,
1063
1063
  SignatureAutoPanelButton: bt
1064
1064
  }, kt = (e) => {
1065
- const { valueAuto: a, valueManual: r, onUpdateManual: t, onChange: n, className: u = "" } = e, c = Fe(null), [o, p] = de(null), [i, l] = de(() => !r), [v, y] = de("auto-generated"), { width: g = 0, height: b = 0 } = Ue({ ref: c, box: "border-box" }), _ = i ? "auto-generated" : v === "manual-drawn" ? "manual-drawn" : r ? "manual-stored" : "manual-blank", P = te(() => {
1066
- o && g && b && r && o.fromDataURL(r, {
1067
- width: +g.toFixed(),
1068
- height: +b.toFixed()
1065
+ const { value: n, onChange: t, className: r = "" } = e, a = Fe(null), [o, c] = oe(null), [u, h] = oe(!0), [i, l] = oe(n), [f, y] = oe(""), [b, S] = oe("auto-generated"), { width: m = 0, height: P = 0 } = Ne({ ref: a, box: "border-box" }), x = u ? "auto-generated" : b === "manual-drawn" ? "manual-drawn" : f ? "manual-stored" : "manual-blank", L = te(() => {
1066
+ o && m && P && f && o.fromDataURL(f, {
1067
+ width: +m.toFixed(),
1068
+ height: +P.toFixed()
1069
1069
  });
1070
- }, [o, g, b, r]), x = te(() => {
1070
+ }, [o, m, P, f]), $ = te(() => {
1071
1071
  if (o) {
1072
- const Y = o.getCanvas().toDataURL("image/png");
1073
- y("manual-drawn"), t(Y), n(Y);
1072
+ const _ = o.getCanvas().toDataURL("image/png");
1073
+ S("manual-drawn"), y(_), t(_);
1074
1074
  }
1075
- }, [o, n, t]), q = te(() => {
1076
- o && (o.clear(), t(""), n(""));
1077
- }, [o, n, t]), $ = te(() => {
1078
- l(!0), y("auto-generated"), a && n(a);
1079
- }, [a, n]), D = te(() => {
1080
- l(!1), y(r ? "manual-stored" : "manual-blank"), r ? (n(r), setTimeout(P, 0)) : n("");
1081
- }, [r, n, P]), f = te(() => {
1082
- l(!1), y("manual-blank"), t(""), n("");
1083
- }, [t, n]), G = te(() => {
1084
- y("manual-stored"), P();
1085
- }, [P]), N = (Y) => Y.includes(_);
1075
+ }, [o, t]), k = te(() => {
1076
+ o && (o.clear(), y(""), t(""));
1077
+ }, [o, t]), d = te(() => {
1078
+ h(!0), S("auto-generated"), i && t(i);
1079
+ }, [i, t]), J = te(() => {
1080
+ h(!1), S(f ? "manual-stored" : "manual-blank"), f ? (t(f), setTimeout(L, 0)) : t("");
1081
+ }, [f, t, L]), ee = te(() => {
1082
+ h(!1), S("manual-blank"), y(""), t("");
1083
+ }, [t]), G = te(() => {
1084
+ S("manual-stored"), L();
1085
+ }, [L]), w = (_) => _.includes(x);
1086
1086
  return he(() => {
1087
- if (r) {
1088
- l(!1);
1089
- return;
1090
- }
1091
- a && v === "auto-generated" && l(!0);
1092
- }, [a, r, v]), he(() => {
1093
- !i && r && g && b && P();
1094
- }, [i, r, g, b, P]), he(() => {
1095
- i && a ? n(a) : !i && !r && n("");
1096
- }, [i, a, r, n]), /* @__PURE__ */ ee("div", { className: Se(X.Signature, u), children: [
1097
- /* @__PURE__ */ ee(
1087
+ !n || n === f || l((_) => _ === n ? _ : n);
1088
+ }, [n, f]), he(() => {
1089
+ !u && f && m && P && L();
1090
+ }, [u, f, m, P, L]), he(() => {
1091
+ u && i ? t(i) : !u && !f && t("");
1092
+ }, [u, i, f, t]), /* @__PURE__ */ Q("div", { className: Se(H.Signature, r), children: [
1093
+ /* @__PURE__ */ Q(
1098
1094
  "div",
1099
1095
  {
1100
1096
  className: Se(
1101
- X.SignatureMain,
1102
- N(["auto-generated"]) ? X.SignatureMainAuto : X.SignatureMainManual
1097
+ H.SignatureMain,
1098
+ w(["auto-generated"]) ? H.SignatureMainAuto : H.SignatureMainManual
1103
1099
  ),
1104
- ref: c,
1100
+ ref: a,
1105
1101
  children: [
1106
- /* @__PURE__ */ ee(ie, { direction: "row", justify: N(["manual-drawn"]) ? "end" : "center", className: X.SignatureHeader, children: [
1107
- /* @__PURE__ */ ee(we.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
1108
- /* @__PURE__ */ F(re.FadeScale, { name: "generated-signature", condition: N(["auto-generated"]), children: "Wir haben eine digitale Signature Sie generiert." }),
1109
- /* @__PURE__ */ F(re.FadeScale, { flex: !0, name: "create-signature", condition: N(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
1102
+ /* @__PURE__ */ Q(se, { direction: "row", justify: w(["manual-drawn"]) ? "end" : "center", className: H.SignatureHeader, children: [
1103
+ /* @__PURE__ */ Q(we.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
1104
+ /* @__PURE__ */ q(re.FadeScale, { name: "generated-signature", condition: w(["auto-generated"]), children: "Wir haben eine digitale Signature Sie generiert." }),
1105
+ /* @__PURE__ */ q(re.FadeScale, { flex: !0, name: "create-signature", condition: w(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
1110
1106
  ] }),
1111
- /* @__PURE__ */ F(re.FadeSlide, { flex: !0, name: "reset", direction: "rtl", condition: N(["manual-drawn"]), children: /* @__PURE__ */ F("div", { className: X.SignatureHeaderReset, children: /* @__PURE__ */ F(oe.ButtonText, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ F(Ne, {}), onClick: q, children: "Neu starten" }) }) })
1107
+ /* @__PURE__ */ q(re.FadeSlide, { flex: !0, name: "reset", direction: "rtl", condition: w(["manual-drawn"]), children: /* @__PURE__ */ q("div", { className: H.SignatureHeaderReset, children: /* @__PURE__ */ q(ie.ButtonText, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ q(Ue, {}), onClick: k, children: "Neu starten" }) }) })
1112
1108
  ] }),
1113
- /* @__PURE__ */ F(ie, { direction: "row", align: "end", justify: "center", children: N(["auto-generated"]) ? /* @__PURE__ */ ee(ie, { direction: "column", align: "center", justify: "start", children: [
1114
- /* @__PURE__ */ F(re.FadeScale, { flex: !0, name: "signature", condition: a !== "", children: /* @__PURE__ */ F("img", { className: X.SignatureAutoPanelImage, src: a, alt: "signature" }) }),
1115
- /* @__PURE__ */ F(re.FadeScale, { flex: !0, name: "signature", condition: a === "", children: /* @__PURE__ */ F("div", { className: X.SignatureAutoPanelLoader, children: /* @__PURE__ */ F(He, { size: "sm", color: "primary" }) }) }),
1116
- /* @__PURE__ */ ee(ie, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
1117
- /* @__PURE__ */ F(Ye, { size: 24, className: X.SignatureAutoPanelNoteIcon }),
1118
- /* @__PURE__ */ F(we.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
1109
+ /* @__PURE__ */ q(se, { direction: "row", align: "end", justify: "center", children: w(["auto-generated"]) ? /* @__PURE__ */ Q(se, { direction: "column", align: "center", justify: "start", children: [
1110
+ /* @__PURE__ */ q(re.FadeScale, { flex: !0, name: "signature", condition: i !== "", children: /* @__PURE__ */ q("img", { className: H.SignatureAutoPanelImage, src: i, alt: "signature" }) }),
1111
+ /* @__PURE__ */ q(re.FadeScale, { flex: !0, name: "signature", condition: i === "", children: /* @__PURE__ */ q("div", { className: H.SignatureAutoPanelLoader, children: /* @__PURE__ */ q(He, { size: "sm", color: "primary" }) }) }),
1112
+ /* @__PURE__ */ Q(se, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
1113
+ /* @__PURE__ */ q(Ye, { size: 24, className: H.SignatureAutoPanelNoteIcon }),
1114
+ /* @__PURE__ */ q(we.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
1119
1115
  ] }),
1120
- /* @__PURE__ */ F("div", { className: X.SignatureAutoPanelButton, children: /* @__PURE__ */ F(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: D, children: "per Hand/Maus unterschreiben" }) })
1121
- ] }) : /* @__PURE__ */ ee("div", { className: X.SignatureManualPanel, children: [
1122
- /* @__PURE__ */ F("div", { className: X.SignatureManualPanelPlaceholder }),
1123
- N(["manual-stored"]) ? /* @__PURE__ */ F("img", { width: g, height: b, alt: "signature", src: r }) : /* @__PURE__ */ F(
1116
+ /* @__PURE__ */ q("div", { className: H.SignatureAutoPanelButton, children: /* @__PURE__ */ q(ie.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: J, children: "per Hand/Maus unterschreiben" }) })
1117
+ ] }) : /* @__PURE__ */ Q("div", { className: H.SignatureManualPanel, children: [
1118
+ /* @__PURE__ */ q("div", { className: H.SignatureManualPanelPlaceholder }),
1119
+ w(["manual-stored"]) ? /* @__PURE__ */ q("img", { width: m, height: P, alt: "signature", src: f }) : /* @__PURE__ */ q(
1124
1120
  ut,
1125
1121
  {
1126
1122
  penColor: "#262626",
@@ -1128,28 +1124,28 @@ const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1128
1124
  minWidth: 0.25,
1129
1125
  maxWidth: 2.75,
1130
1126
  throttle: 12,
1131
- canvasProps: { width: +(g || 0).toFixed(), height: +(b || 0).toFixed() },
1132
- ref: (Y) => p(Y),
1127
+ canvasProps: { width: +(m || 0).toFixed(), height: +(P || 0).toFixed() },
1128
+ ref: (_) => c(_),
1133
1129
  clearOnResize: !0,
1134
- onEnd: x
1130
+ onEnd: $
1135
1131
  }
1136
1132
  ),
1137
- /* @__PURE__ */ F(
1133
+ /* @__PURE__ */ q(
1138
1134
  re.FadeScale,
1139
1135
  {
1140
1136
  name: "to-generated",
1141
- condition: N(["manual-stored"]),
1142
- className: X.SignatureManualPanelButton,
1143
- children: /* @__PURE__ */ F(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: f, children: "Zurücksetzen" })
1137
+ condition: w(["manual-stored"]),
1138
+ className: H.SignatureManualPanelButton,
1139
+ children: /* @__PURE__ */ q(ie.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: ee, children: "Zurücksetzen" })
1144
1140
  }
1145
1141
  )
1146
1142
  ] }) })
1147
1143
  ]
1148
1144
  }
1149
1145
  ),
1150
- /* @__PURE__ */ F(re.FadeScale, { name: "footer", condition: N(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee(ie, { direction: "row", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
1151
- /* @__PURE__ */ F(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: $, children: "Abbrechen" }),
1152
- /* @__PURE__ */ F(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !r, onClick: G, children: "Speichern" })
1146
+ /* @__PURE__ */ q(re.FadeScale, { name: "footer", condition: w(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ Q(se, { direction: "row", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
1147
+ /* @__PURE__ */ q(ie.Button, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: d, children: "Abbrechen" }),
1148
+ /* @__PURE__ */ q(ie.Button, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !f, onClick: G, children: "Speichern" })
1153
1149
  ] }) })
1154
1150
  ] });
1155
1151
  };