@cyberskill/cyber-editor 2.0.4 → 3.1.0

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,25 +1,25 @@
1
- import _e, { forwardRef as hr, createElement as yt, useState as he, useRef as sn, useEffect as ln, useMemo as cn } from "react";
2
- import { useCurrentEditor as Ct, NodeViewWrapper as yr, NodeViewContent as un, ReactNodeViewRenderer as vr, EditorProvider as dn } from "@tiptap/react";
3
- import { ColorPicker as fn, Tooltip as vt, Dropdown as kt, Menu as Ft, Modal as mn } from "antd";
4
- import pn from "@tiptap/extension-list-item";
5
- import { Color as bn } from "@tiptap/extension-color";
6
- import Bt from "@tiptap/extension-text-style";
7
- import hn from "@tiptap/starter-kit";
8
- import yn from "@tiptap/extension-highlight";
9
- import vn from "@tiptap/extension-underline";
10
- import gn from "@tiptap/extension-subscript";
11
- import xn from "@tiptap/extension-superscript";
12
- import Nn from "@tiptap/extension-text-align";
13
- import En from "@tiptap/extension-task-list";
14
- import Sn from "@tiptap/extension-task-item";
15
- import wn from "@tiptap/extension-table";
16
- import Cn from "@tiptap/extension-table-row";
17
- import kn from "@tiptap/extension-table-header";
18
- import Dn from "@tiptap/extension-table-cell";
1
+ import _e, { forwardRef as br, createElement as yt, useState as he, useRef as sn, useEffect as hr } from "react";
2
+ import { NodeViewWrapper as yr, NodeViewContent as ln, ReactNodeViewRenderer as vr, useEditor as cn, EditorContent as un } from "@tiptap/react";
3
+ import { ColorPicker as dn, Tooltip as vt, Dropdown as Ct, Menu as Ft, Modal as fn } from "antd";
4
+ import mn from "@tiptap/extension-list-item";
5
+ import { Color as pn } from "@tiptap/extension-color";
6
+ import Ut from "@tiptap/extension-text-style";
7
+ import bn from "@tiptap/starter-kit";
8
+ import hn from "@tiptap/extension-highlight";
9
+ import yn from "@tiptap/extension-underline";
10
+ import vn from "@tiptap/extension-subscript";
11
+ import gn from "@tiptap/extension-superscript";
12
+ import xn from "@tiptap/extension-text-align";
13
+ import Nn from "@tiptap/extension-task-list";
14
+ import En from "@tiptap/extension-task-item";
15
+ import Sn from "@tiptap/extension-table";
16
+ import wn from "@tiptap/extension-table-row";
17
+ import Cn from "@tiptap/extension-table-header";
18
+ import kn from "@tiptap/extension-table-cell";
19
19
  import { Node as gr, mergeAttributes as xr } from "@tiptap/core";
20
- import _n from "@tiptap/extension-image";
20
+ import Dn from "@tiptap/extension-image";
21
21
  import Nr from "react-dom";
22
- function On(e) {
22
+ function _n(e) {
23
23
  if (e.__esModule) return e;
24
24
  var t = e.default;
25
25
  if (typeof t == "function") {
@@ -48,10 +48,10 @@ var gt = { exports: {} }, Le = {};
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
50
  */
51
- var Xt;
52
- function Rn() {
53
- if (Xt) return Le;
54
- Xt = 1;
51
+ var Bt;
52
+ function On() {
53
+ if (Bt) return Le;
54
+ Bt = 1;
55
55
  var e = Symbol.for("react.fragment");
56
56
  return Le.Fragment = e, Le.jsxDEV = void 0, Le;
57
57
  }
@@ -65,10 +65,10 @@ var We = {};
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
67
  */
68
- var Kt;
69
- function Pn() {
70
- return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
71
- var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, $ = "@@iterator";
68
+ var Xt;
69
+ function Rn() {
70
+ return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
71
+ var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, $ = "@@iterator";
72
72
  function B(i) {
73
73
  if (i === null || typeof i != "object")
74
74
  return null;
@@ -76,38 +76,38 @@ function Pn() {
76
76
  return typeof d == "function" ? d : null;
77
77
  }
78
78
  var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
79
- function v(i) {
79
+ function g(i) {
80
80
  {
81
- for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
82
- y[w - 1] = arguments[w];
83
- x("error", i, y);
81
+ for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
82
+ h[w - 1] = arguments[w];
83
+ N("error", i, h);
84
84
  }
85
85
  }
86
- function x(i, d, y) {
86
+ function N(i, d, h) {
87
87
  {
88
88
  var w = W.ReactDebugCurrentFrame, q = w.getStackAddendum();
89
- q !== "" && (d += "%s", y = y.concat([q]));
90
- var X = y.map(function(I) {
89
+ q !== "" && (d += "%s", h = h.concat([q]));
90
+ var X = h.map(function(I) {
91
91
  return String(I);
92
92
  });
93
93
  X.unshift("Warning: " + d), Function.prototype.apply.call(console[i], console, X);
94
94
  }
95
95
  }
96
- var E = !1, c = !1, Y = !1, P = !1, Q = !1, de;
96
+ var E = !1, c = !1, Y = !1, T = !1, Q = !1, de;
97
97
  de = Symbol.for("react.module.reference");
98
98
  function fe(i) {
99
- return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || Q || i === o || i === p || i === b || P || i === S || E || c || Y || typeof i == "object" && i !== null && (i.$$typeof === O || i.$$typeof === N || i.$$typeof === s || i.$$typeof === u || i.$$typeof === m || // This needs to include all possible module reference object
99
+ return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || Q || i === o || i === p || i === y || T || i === S || E || c || Y || typeof i == "object" && i !== null && (i.$$typeof === O || i.$$typeof === v || i.$$typeof === s || i.$$typeof === u || i.$$typeof === m || // This needs to include all possible module reference object
100
100
  // types supported by any Flight configuration anywhere since
101
101
  // we don't know which Flight build this will end up being used
102
102
  // with.
103
103
  i.$$typeof === de || i.getModuleId !== void 0));
104
104
  }
105
- function ye(i, d, y) {
105
+ function ye(i, d, h) {
106
106
  var w = i.displayName;
107
107
  if (w)
108
108
  return w;
109
109
  var q = d.displayName || d.name || "";
110
- return q !== "" ? y + "(" + q + ")" : y;
110
+ return q !== "" ? h + "(" + q + ")" : h;
111
111
  }
112
112
  function Ee(i) {
113
113
  return i.displayName || "Context";
@@ -115,7 +115,7 @@ function Pn() {
115
115
  function ee(i) {
116
116
  if (i == null)
117
117
  return null;
118
- if (typeof i.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
118
+ if (typeof i.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
119
119
  return i.displayName || i.name || null;
120
120
  if (typeof i == "string")
121
121
  return i;
@@ -130,7 +130,7 @@ function Pn() {
130
130
  return "StrictMode";
131
131
  case p:
132
132
  return "Suspense";
133
- case b:
133
+ case y:
134
134
  return "SuspenseList";
135
135
  }
136
136
  if (typeof i == "object")
@@ -139,11 +139,11 @@ function Pn() {
139
139
  var d = i;
140
140
  return Ee(d) + ".Consumer";
141
141
  case s:
142
- var y = i;
143
- return Ee(y._context) + ".Provider";
142
+ var h = i;
143
+ return Ee(h._context) + ".Provider";
144
144
  case m:
145
145
  return ye(i, i.render, "ForwardRef");
146
- case N:
146
+ case v:
147
147
  var w = i.displayName || null;
148
148
  return w !== null ? w : ee(i.type) || "Memo";
149
149
  case O: {
@@ -157,14 +157,14 @@ function Pn() {
157
157
  }
158
158
  return null;
159
159
  }
160
- var Z = Object.assign, me = 0, oe, le, ge, Se, f, g, T;
160
+ var Z = Object.assign, me = 0, oe, le, ge, Se, f, x, P;
161
161
  function R() {
162
162
  }
163
163
  R.__reactDisabledLog = !0;
164
164
  function C() {
165
165
  {
166
166
  if (me === 0) {
167
- oe = console.log, le = console.info, ge = console.warn, Se = console.error, f = console.group, g = console.groupCollapsed, T = console.groupEnd;
167
+ oe = console.log, le = console.info, ge = console.warn, Se = console.error, f = console.group, x = console.groupCollapsed, P = console.groupEnd;
168
168
  var i = {
169
169
  configurable: !0,
170
170
  enumerable: !0,
@@ -209,18 +209,18 @@ function Pn() {
209
209
  value: f
210
210
  }),
211
211
  groupCollapsed: Z({}, i, {
212
- value: g
212
+ value: x
213
213
  }),
214
214
  groupEnd: Z({}, i, {
215
- value: T
215
+ value: P
216
216
  })
217
217
  });
218
218
  }
219
- me < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
219
+ me < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
220
220
  }
221
221
  }
222
222
  var k = W.ReactCurrentDispatcher, _;
223
- function j(i, d, y) {
223
+ function j(i, d, h) {
224
224
  {
225
225
  if (_ === void 0)
226
226
  try {
@@ -238,13 +238,13 @@ function Pn() {
238
238
  var te = typeof WeakMap == "function" ? WeakMap : Map;
239
239
  M = new te();
240
240
  }
241
- function h(i, d) {
241
+ function b(i, d) {
242
242
  if (!i || H)
243
243
  return "";
244
244
  {
245
- var y = M.get(i);
246
- if (y !== void 0)
247
- return y;
245
+ var h = M.get(i);
246
+ if (h !== void 0)
247
+ return h;
248
248
  }
249
249
  var w;
250
250
  H = !0;
@@ -306,54 +306,54 @@ function Pn() {
306
306
  } finally {
307
307
  H = !1, k.current = X, z(), Error.prepareStackTrace = q;
308
308
  }
309
- var Te = i ? i.displayName || i.name : "", De = Te ? j(Te) : "";
309
+ var Pe = i ? i.displayName || i.name : "", De = Pe ? j(Pe) : "";
310
310
  return typeof i == "function" && M.set(i, De), De;
311
311
  }
312
- function pe(i, d, y) {
313
- return h(i, !1);
312
+ function pe(i, d, h) {
313
+ return b(i, !1);
314
314
  }
315
315
  function Re(i) {
316
316
  var d = i.prototype;
317
317
  return !!(d && d.isReactComponent);
318
318
  }
319
- function ke(i, d, y) {
319
+ function ke(i, d, h) {
320
320
  if (i == null)
321
321
  return "";
322
322
  if (typeof i == "function")
323
- return h(i, Re(i));
323
+ return b(i, Re(i));
324
324
  if (typeof i == "string")
325
325
  return j(i);
326
326
  switch (i) {
327
327
  case p:
328
328
  return j("Suspense");
329
- case b:
329
+ case y:
330
330
  return j("SuspenseList");
331
331
  }
332
332
  if (typeof i == "object")
333
333
  switch (i.$$typeof) {
334
334
  case m:
335
335
  return pe(i.render);
336
- case N:
337
- return ke(i.type, d, y);
336
+ case v:
337
+ return ke(i.type, d, h);
338
338
  case O: {
339
339
  var w = i, q = w._payload, X = w._init;
340
340
  try {
341
- return ke(X(q), d, y);
341
+ return ke(X(q), d, h);
342
342
  } catch {
343
343
  }
344
344
  }
345
345
  }
346
346
  return "";
347
347
  }
348
- var Me = Object.prototype.hasOwnProperty, Mt = {}, Vt = W.ReactDebugCurrentFrame;
348
+ var Me = Object.prototype.hasOwnProperty, jt = {}, Mt = W.ReactDebugCurrentFrame;
349
349
  function He(i) {
350
350
  if (i) {
351
- var d = i._owner, y = ke(i.type, i._source, d ? d.type : null);
352
- Vt.setExtraStackFrame(y);
351
+ var d = i._owner, h = ke(i.type, i._source, d ? d.type : null);
352
+ Mt.setExtraStackFrame(h);
353
353
  } else
354
- Vt.setExtraStackFrame(null);
354
+ Mt.setExtraStackFrame(null);
355
355
  }
356
- function Hr(i, d, y, w, q) {
356
+ function Hr(i, d, h, w, q) {
357
357
  {
358
358
  var X = Function.call.bind(Me);
359
359
  for (var I in i)
@@ -361,14 +361,14 @@ function Pn() {
361
361
  var V = void 0;
362
362
  try {
363
363
  if (typeof i[I] != "function") {
364
- var ne = Error((w || "React class") + ": " + y + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
364
+ var ne = Error((w || "React class") + ": " + h + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
365
365
  throw ne.name = "Invariant Violation", ne;
366
366
  }
367
- V = i[I](d, I, w, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
367
+ V = i[I](d, I, w, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
368
368
  } catch (G) {
369
369
  V = G;
370
370
  }
371
- V && !(V instanceof Error) && (He(q), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", y, I, typeof V), He(null)), V instanceof Error && !(V.message in Mt) && (Mt[V.message] = !0, He(q), v("Failed %s type: %s", y, V.message), He(null));
371
+ V && !(V instanceof Error) && (He(q), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", h, I, typeof V), He(null)), V instanceof Error && !(V.message in jt) && (jt[V.message] = !0, He(q), g("Failed %s type: %s", h, V.message), He(null));
372
372
  }
373
373
  }
374
374
  }
@@ -378,32 +378,32 @@ function Pn() {
378
378
  }
379
379
  function Wr(i) {
380
380
  {
381
- var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
382
- return y;
381
+ var d = typeof Symbol == "function" && Symbol.toStringTag, h = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
382
+ return h;
383
383
  }
384
384
  }
385
385
  function qr(i) {
386
386
  try {
387
- return At(i), !1;
387
+ return Vt(i), !1;
388
388
  } catch {
389
389
  return !0;
390
390
  }
391
391
  }
392
- function At(i) {
392
+ function Vt(i) {
393
393
  return "" + i;
394
394
  }
395
- function $t(i) {
395
+ function At(i) {
396
396
  if (qr(i))
397
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(i)), At(i);
397
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(i)), Vt(i);
398
398
  }
399
399
  var Ve = W.ReactCurrentOwner, Yr = {
400
400
  key: !0,
401
401
  ref: !0,
402
402
  __self: !0,
403
403
  __source: !0
404
- }, zt, It, et;
404
+ }, $t, zt, et;
405
405
  et = {};
406
- function Ur(i) {
406
+ function Fr(i) {
407
407
  if (Me.call(i, "ref")) {
408
408
  var d = Object.getOwnPropertyDescriptor(i, "ref").get;
409
409
  if (d && d.isReactWarning)
@@ -411,7 +411,7 @@ function Pn() {
411
411
  }
412
412
  return i.ref !== void 0;
413
413
  }
414
- function Fr(i) {
414
+ function Ur(i) {
415
415
  if (Me.call(i, "key")) {
416
416
  var d = Object.getOwnPropertyDescriptor(i, "key").get;
417
417
  if (d && d.isReactWarning)
@@ -421,40 +421,40 @@ function Pn() {
421
421
  }
422
422
  function Br(i, d) {
423
423
  if (typeof i.ref == "string" && Ve.current && d && Ve.current.stateNode !== d) {
424
- var y = ee(Ve.current.type);
425
- et[y] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ee(Ve.current.type), i.ref), et[y] = !0);
424
+ var h = ee(Ve.current.type);
425
+ et[h] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ee(Ve.current.type), i.ref), et[h] = !0);
426
426
  }
427
427
  }
428
428
  function Xr(i, d) {
429
429
  {
430
- var y = function() {
431
- zt || (zt = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
430
+ var h = function() {
431
+ $t || ($t = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
432
432
  };
433
- y.isReactWarning = !0, Object.defineProperty(i, "key", {
434
- get: y,
433
+ h.isReactWarning = !0, Object.defineProperty(i, "key", {
434
+ get: h,
435
435
  configurable: !0
436
436
  });
437
437
  }
438
438
  }
439
439
  function Kr(i, d) {
440
440
  {
441
- var y = function() {
442
- It || (It = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
441
+ var h = function() {
442
+ zt || (zt = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
443
443
  };
444
- y.isReactWarning = !0, Object.defineProperty(i, "ref", {
445
- get: y,
444
+ h.isReactWarning = !0, Object.defineProperty(i, "ref", {
445
+ get: h,
446
446
  configurable: !0
447
447
  });
448
448
  }
449
449
  }
450
- var Gr = function(i, d, y, w, q, X, I) {
450
+ var Gr = function(i, d, h, w, q, X, I) {
451
451
  var V = {
452
452
  // This tag allows us to uniquely identify this as a React Element
453
453
  $$typeof: t,
454
454
  // Built-in properties that belong on the element
455
455
  type: i,
456
456
  key: d,
457
- ref: y,
457
+ ref: h,
458
458
  props: I,
459
459
  // Record the component responsible for creating this element.
460
460
  _owner: X
@@ -476,10 +476,10 @@ function Pn() {
476
476
  value: q
477
477
  }), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
478
478
  };
479
- function Jr(i, d, y, w, q) {
479
+ function Jr(i, d, h, w, q) {
480
480
  {
481
481
  var X, I = {}, V = null, ne = null;
482
- y !== void 0 && ($t(y), V = "" + y), Fr(d) && ($t(d.key), V = "" + d.key), Ur(d) && (ne = d.ref, Br(d, q));
482
+ h !== void 0 && (At(h), V = "" + h), Ur(d) && (At(d.key), V = "" + d.key), Fr(d) && (ne = d.ref, Br(d, q));
483
483
  for (X in d)
484
484
  Me.call(d, X) && !Yr.hasOwnProperty(X) && (I[X] = d[X]);
485
485
  if (i && i.defaultProps) {
@@ -494,20 +494,20 @@ function Pn() {
494
494
  return Gr(i, V, ne, q, w, Ve.current, I);
495
495
  }
496
496
  }
497
- var tt = W.ReactCurrentOwner, Ht = W.ReactDebugCurrentFrame;
498
- function Pe(i) {
497
+ var tt = W.ReactCurrentOwner, It = W.ReactDebugCurrentFrame;
498
+ function Te(i) {
499
499
  if (i) {
500
- var d = i._owner, y = ke(i.type, i._source, d ? d.type : null);
501
- Ht.setExtraStackFrame(y);
500
+ var d = i._owner, h = ke(i.type, i._source, d ? d.type : null);
501
+ It.setExtraStackFrame(h);
502
502
  } else
503
- Ht.setExtraStackFrame(null);
503
+ It.setExtraStackFrame(null);
504
504
  }
505
505
  var rt;
506
506
  rt = !1;
507
507
  function nt(i) {
508
508
  return typeof i == "object" && i !== null && i.$$typeof === t;
509
509
  }
510
- function Lt() {
510
+ function Ht() {
511
511
  {
512
512
  if (tt.current) {
513
513
  var i = ee(tt.current.type);
@@ -522,48 +522,48 @@ Check the render method of \`` + i + "`.";
522
522
  function Zr(i) {
523
523
  {
524
524
  if (i !== void 0) {
525
- var d = i.fileName.replace(/^.*[\\\/]/, ""), y = i.lineNumber;
525
+ var d = i.fileName.replace(/^.*[\\\/]/, ""), h = i.lineNumber;
526
526
  return `
527
527
 
528
- Check your code at ` + d + ":" + y + ".";
528
+ Check your code at ` + d + ":" + h + ".";
529
529
  }
530
530
  return "";
531
531
  }
532
532
  }
533
- var Wt = {};
533
+ var Lt = {};
534
534
  function Qr(i) {
535
535
  {
536
- var d = Lt();
536
+ var d = Ht();
537
537
  if (!d) {
538
- var y = typeof i == "string" ? i : i.displayName || i.name;
539
- y && (d = `
538
+ var h = typeof i == "string" ? i : i.displayName || i.name;
539
+ h && (d = `
540
540
 
541
- Check the top-level render call using <` + y + ">.");
541
+ Check the top-level render call using <` + h + ">.");
542
542
  }
543
543
  return d;
544
544
  }
545
545
  }
546
- function qt(i, d) {
546
+ function Wt(i, d) {
547
547
  {
548
548
  if (!i._store || i._store.validated || i.key != null)
549
549
  return;
550
550
  i._store.validated = !0;
551
- var y = Qr(d);
552
- if (Wt[y])
551
+ var h = Qr(d);
552
+ if (Lt[h])
553
553
  return;
554
- Wt[y] = !0;
554
+ Lt[h] = !0;
555
555
  var w = "";
556
- i && i._owner && i._owner !== tt.current && (w = " It was passed a child from " + ee(i._owner.type) + "."), Pe(i), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, w), Pe(null);
556
+ i && i._owner && i._owner !== tt.current && (w = " It was passed a child from " + ee(i._owner.type) + "."), Te(i), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, w), Te(null);
557
557
  }
558
558
  }
559
- function Yt(i, d) {
559
+ function qt(i, d) {
560
560
  {
561
561
  if (typeof i != "object")
562
562
  return;
563
563
  if (Qe(i))
564
- for (var y = 0; y < i.length; y++) {
565
- var w = i[y];
566
- nt(w) && qt(w, d);
564
+ for (var h = 0; h < i.length; h++) {
565
+ var w = i[h];
566
+ nt(w) && Wt(w, d);
567
567
  }
568
568
  else if (nt(i))
569
569
  i._store && (i._store.validated = !0);
@@ -571,7 +571,7 @@ Check the top-level render call using <` + y + ">.");
571
571
  var q = B(i);
572
572
  if (typeof q == "function" && q !== i.entries)
573
573
  for (var X = q.call(i), I; !(I = X.next()).done; )
574
- nt(I.value) && qt(I.value, d);
574
+ nt(I.value) && Wt(I.value, d);
575
575
  }
576
576
  }
577
577
  }
@@ -580,51 +580,51 @@ Check the top-level render call using <` + y + ">.");
580
580
  var d = i.type;
581
581
  if (d == null || typeof d == "string")
582
582
  return;
583
- var y;
583
+ var h;
584
584
  if (typeof d == "function")
585
- y = d.propTypes;
585
+ h = d.propTypes;
586
586
  else if (typeof d == "object" && (d.$$typeof === m || // Note: Memo only checks outer props here.
587
587
  // Inner props are checked in the reconciler.
588
- d.$$typeof === N))
589
- y = d.propTypes;
588
+ d.$$typeof === v))
589
+ h = d.propTypes;
590
590
  else
591
591
  return;
592
- if (y) {
592
+ if (h) {
593
593
  var w = ee(d);
594
- Hr(y, i.props, "prop", w, i);
594
+ Hr(h, i.props, "prop", w, i);
595
595
  } else if (d.PropTypes !== void 0 && !rt) {
596
596
  rt = !0;
597
597
  var q = ee(d);
598
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
598
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
599
599
  }
600
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
600
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
601
601
  }
602
602
  }
603
603
  function tn(i) {
604
604
  {
605
- for (var d = Object.keys(i.props), y = 0; y < d.length; y++) {
606
- var w = d[y];
605
+ for (var d = Object.keys(i.props), h = 0; h < d.length; h++) {
606
+ var w = d[h];
607
607
  if (w !== "children" && w !== "key") {
608
- Pe(i), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Pe(null);
608
+ Te(i), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Te(null);
609
609
  break;
610
610
  }
611
611
  }
612
- i.ref !== null && (Pe(i), v("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
612
+ i.ref !== null && (Te(i), g("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
613
613
  }
614
614
  }
615
- var Ut = {};
616
- function rn(i, d, y, w, q, X) {
615
+ var Yt = {};
616
+ function rn(i, d, h, w, q, X) {
617
617
  {
618
618
  var I = fe(i);
619
619
  if (!I) {
620
620
  var V = "";
621
621
  (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
622
622
  var ne = Zr(q);
623
- ne ? V += ne : V += Lt();
623
+ ne ? V += ne : V += Ht();
624
624
  var G;
625
- i === null ? G = "null" : Qe(i) ? G = "array" : i !== void 0 && i.$$typeof === t ? (G = "<" + (ee(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : G = typeof i, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, V);
625
+ i === null ? G = "null" : Qe(i) ? G = "array" : i !== void 0 && i.$$typeof === t ? (G = "<" + (ee(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : G = typeof i, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, V);
626
626
  }
627
- var J = Jr(i, d, y, q, X);
627
+ var J = Jr(i, d, h, q, X);
628
628
  if (J == null)
629
629
  return J;
630
630
  if (I) {
@@ -632,26 +632,26 @@ Check the top-level render call using <` + y + ">.");
632
632
  if (be !== void 0)
633
633
  if (w)
634
634
  if (Qe(be)) {
635
- for (var Te = 0; Te < be.length; Te++)
636
- Yt(be[Te], i);
635
+ for (var Pe = 0; Pe < be.length; Pe++)
636
+ qt(be[Pe], i);
637
637
  Object.freeze && Object.freeze(be);
638
638
  } else
639
- v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
639
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
640
640
  else
641
- Yt(be, i);
641
+ qt(be, i);
642
642
  }
643
643
  if (Me.call(d, "key")) {
644
644
  var De = ee(i), ae = Object.keys(d).filter(function(an) {
645
645
  return an !== "key";
646
646
  }), it = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
647
- if (!Ut[De + it]) {
647
+ if (!Yt[De + it]) {
648
648
  var on = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
649
- v(`A props object containing a "key" prop is being spread into JSX:
649
+ g(`A props object containing a "key" prop is being spread into JSX:
650
650
  let props = %s;
651
651
  <%s {...props} />
652
652
  React keys must be passed directly to JSX without using spread:
653
653
  let props = %s;
654
- <%s key={someKey} {...props} />`, it, De, on, De), Ut[De + it] = !0;
654
+ <%s key={someKey} {...props} />`, it, De, on, De), Yt[De + it] = !0;
655
655
  }
656
656
  }
657
657
  return i === n ? tn(J) : en(J), J;
@@ -661,7 +661,7 @@ React keys must be passed directly to JSX without using spread:
661
661
  We.Fragment = n, We.jsxDEV = nn;
662
662
  }()), We;
663
663
  }
664
- process.env.NODE_ENV === "production" ? gt.exports = Rn() : gt.exports = Pn();
664
+ process.env.NODE_ENV === "production" ? gt.exports = On() : gt.exports = Rn();
665
665
  var l = gt.exports;
666
666
  /**
667
667
  * @license lucide-react v0.474.0 - ISC
@@ -676,7 +676,7 @@ const Tn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Er = (
676
676
  * This source code is licensed under the ISC license.
677
677
  * See the LICENSE file in the root directory of this source tree.
678
678
  */
679
- var jn = {
679
+ var Pn = {
680
680
  xmlns: "http://www.w3.org/2000/svg",
681
681
  width: 24,
682
682
  height: 24,
@@ -693,7 +693,7 @@ var jn = {
693
693
  * This source code is licensed under the ISC license.
694
694
  * See the LICENSE file in the root directory of this source tree.
695
695
  */
696
- const Mn = hr(
696
+ const jn = br(
697
697
  ({
698
698
  color: e = "currentColor",
699
699
  size: t = 24,
@@ -707,7 +707,7 @@ const Mn = hr(
707
707
  "svg",
708
708
  {
709
709
  ref: m,
710
- ...jn,
710
+ ...Pn,
711
711
  width: t,
712
712
  height: t,
713
713
  stroke: e,
@@ -716,7 +716,7 @@ const Mn = hr(
716
716
  ...u
717
717
  },
718
718
  [
719
- ...s.map(([p, b]) => yt(p, b)),
719
+ ...s.map(([p, y]) => yt(p, y)),
720
720
  ...Array.isArray(a) ? a : [a]
721
721
  ]
722
722
  )
@@ -728,8 +728,8 @@ const Mn = hr(
728
728
  * See the LICENSE file in the root directory of this source tree.
729
729
  */
730
730
  const L = (e, t) => {
731
- const r = hr(
732
- ({ className: n, ...o }, a) => yt(Mn, {
731
+ const r = br(
732
+ ({ className: n, ...o }, a) => yt(jn, {
733
733
  ref: a,
734
734
  iconNode: t,
735
735
  className: Er(`lucide-${Tn(e)}`, n),
@@ -744,140 +744,140 @@ const L = (e, t) => {
744
744
  * This source code is licensed under the ISC license.
745
745
  * See the LICENSE file in the root directory of this source tree.
746
746
  */
747
- const Vn = [
747
+ const Mn = [
748
748
  ["path", { d: "M17 12H7", key: "16if0g" }],
749
749
  ["path", { d: "M19 18H5", key: "18s9l3" }],
750
750
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
751
- ], An = L("AlignCenter", Vn);
751
+ ], Vn = L("AlignCenter", Mn);
752
752
  /**
753
753
  * @license lucide-react v0.474.0 - ISC
754
754
  *
755
755
  * This source code is licensed under the ISC license.
756
756
  * See the LICENSE file in the root directory of this source tree.
757
757
  */
758
- const $n = [
758
+ const An = [
759
759
  ["path", { d: "M3 12h18", key: "1i2n21" }],
760
760
  ["path", { d: "M3 18h18", key: "1h113x" }],
761
761
  ["path", { d: "M3 6h18", key: "d0wm0j" }]
762
- ], zn = L("AlignJustify", $n);
762
+ ], $n = L("AlignJustify", An);
763
763
  /**
764
764
  * @license lucide-react v0.474.0 - ISC
765
765
  *
766
766
  * This source code is licensed under the ISC license.
767
767
  * See the LICENSE file in the root directory of this source tree.
768
768
  */
769
- const In = [
769
+ const zn = [
770
770
  ["path", { d: "M15 12H3", key: "6jk70r" }],
771
771
  ["path", { d: "M17 18H3", key: "1amg6g" }],
772
772
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
773
- ], Hn = L("AlignLeft", In);
773
+ ], In = L("AlignLeft", zn);
774
774
  /**
775
775
  * @license lucide-react v0.474.0 - ISC
776
776
  *
777
777
  * This source code is licensed under the ISC license.
778
778
  * See the LICENSE file in the root directory of this source tree.
779
779
  */
780
- const Ln = [
780
+ const Hn = [
781
781
  ["path", { d: "M21 12H9", key: "dn1m92" }],
782
782
  ["path", { d: "M21 18H7", key: "1ygte8" }],
783
783
  ["path", { d: "M21 6H3", key: "1jwq7v" }]
784
- ], Wn = L("AlignRight", Ln);
784
+ ], Ln = L("AlignRight", Hn);
785
785
  /**
786
786
  * @license lucide-react v0.474.0 - ISC
787
787
  *
788
788
  * This source code is licensed under the ISC license.
789
789
  * See the LICENSE file in the root directory of this source tree.
790
790
  */
791
- const qn = [
791
+ const Wn = [
792
792
  [
793
793
  "path",
794
794
  { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
795
795
  ]
796
- ], Yn = L("Bold", qn);
796
+ ], qn = L("Bold", Wn);
797
797
  /**
798
798
  * @license lucide-react v0.474.0 - ISC
799
799
  *
800
800
  * This source code is licensed under the ISC license.
801
801
  * See the LICENSE file in the root directory of this source tree.
802
802
  */
803
- const Un = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Fn = L("ChevronDown", Un);
803
+ const Yn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Fn = L("ChevronDown", Yn);
804
804
  /**
805
805
  * @license lucide-react v0.474.0 - ISC
806
806
  *
807
807
  * This source code is licensed under the ISC license.
808
808
  * See the LICENSE file in the root directory of this source tree.
809
809
  */
810
- const Bn = [
810
+ const Un = [
811
811
  ["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
812
812
  ["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
813
- ], Xn = L("Code", Bn);
813
+ ], Bn = L("Code", Un);
814
814
  /**
815
815
  * @license lucide-react v0.474.0 - ISC
816
816
  *
817
817
  * This source code is licensed under the ISC license.
818
818
  * See the LICENSE file in the root directory of this source tree.
819
819
  */
820
- const Kn = [
820
+ const Xn = [
821
821
  ["polyline", { points: "15 10 20 15 15 20", key: "1q7qjw" }],
822
822
  ["path", { d: "M4 4v7a4 4 0 0 0 4 4h12", key: "z08zvw" }]
823
- ], Gn = L("CornerDownRight", Kn);
823
+ ], Kn = L("CornerDownRight", Xn);
824
824
  /**
825
825
  * @license lucide-react v0.474.0 - ISC
826
826
  *
827
827
  * This source code is licensed under the ISC license.
828
828
  * See the LICENSE file in the root directory of this source tree.
829
829
  */
830
- const Jn = [
830
+ const Gn = [
831
831
  ["path", { d: "M4 12h8", key: "17cfdx" }],
832
832
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
833
833
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
834
834
  ["path", { d: "m17 12 3-2v8", key: "1hhhft" }]
835
- ], ot = L("Heading1", Jn);
835
+ ], ot = L("Heading1", Gn);
836
836
  /**
837
837
  * @license lucide-react v0.474.0 - ISC
838
838
  *
839
839
  * This source code is licensed under the ISC license.
840
840
  * See the LICENSE file in the root directory of this source tree.
841
841
  */
842
- const Zn = [
842
+ const Jn = [
843
843
  ["path", { d: "M4 12h8", key: "17cfdx" }],
844
844
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
845
845
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
846
846
  ["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
847
- ], Gt = L("Heading2", Zn);
847
+ ], Kt = L("Heading2", Jn);
848
848
  /**
849
849
  * @license lucide-react v0.474.0 - ISC
850
850
  *
851
851
  * This source code is licensed under the ISC license.
852
852
  * See the LICENSE file in the root directory of this source tree.
853
853
  */
854
- const Qn = [
854
+ const Zn = [
855
855
  ["path", { d: "M4 12h8", key: "17cfdx" }],
856
856
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
857
857
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
858
858
  ["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
859
859
  ["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
860
- ], Jt = L("Heading3", Qn);
860
+ ], Gt = L("Heading3", Zn);
861
861
  /**
862
862
  * @license lucide-react v0.474.0 - ISC
863
863
  *
864
864
  * This source code is licensed under the ISC license.
865
865
  * See the LICENSE file in the root directory of this source tree.
866
866
  */
867
- const ei = [
867
+ const Qn = [
868
868
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
869
869
  ["path", { d: "M17 10v3a1 1 0 0 0 1 1h3", key: "tj5zdr" }],
870
870
  ["path", { d: "M21 10v8", key: "1kdml4" }],
871
871
  ["path", { d: "M4 12h8", key: "17cfdx" }],
872
872
  ["path", { d: "M4 18V6", key: "1rz3zl" }]
873
- ], Zt = L("Heading4", ei);
873
+ ], Jt = L("Heading4", Qn);
874
874
  /**
875
875
  * @license lucide-react v0.474.0 - ISC
876
876
  *
877
877
  * This source code is licensed under the ISC license.
878
878
  * See the LICENSE file in the root directory of this source tree.
879
879
  */
880
- const ti = [
880
+ const ei = [
881
881
  ["path", { d: "M4 12h8", key: "17cfdx" }],
882
882
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
883
883
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
@@ -886,49 +886,49 @@ const ti = [
886
886
  "path",
887
887
  { d: "M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17", key: "2nebdn" }
888
888
  ]
889
- ], Qt = L("Heading5", ti);
889
+ ], Zt = L("Heading5", ei);
890
890
  /**
891
891
  * @license lucide-react v0.474.0 - ISC
892
892
  *
893
893
  * This source code is licensed under the ISC license.
894
894
  * See the LICENSE file in the root directory of this source tree.
895
895
  */
896
- const ri = [
896
+ const ti = [
897
897
  ["path", { d: "M4 12h8", key: "17cfdx" }],
898
898
  ["path", { d: "M4 18V6", key: "1rz3zl" }],
899
899
  ["path", { d: "M12 18V6", key: "zqpxq5" }],
900
900
  ["circle", { cx: "19", cy: "16", r: "2", key: "15mx69" }],
901
901
  ["path", { d: "M20 10c-2 2-3 3.5-3 6", key: "f35dl0" }]
902
- ], er = L("Heading6", ri);
902
+ ], Qt = L("Heading6", ti);
903
903
  /**
904
904
  * @license lucide-react v0.474.0 - ISC
905
905
  *
906
906
  * This source code is licensed under the ISC license.
907
907
  * See the LICENSE file in the root directory of this source tree.
908
908
  */
909
- const ni = [
909
+ const ri = [
910
910
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
911
911
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
912
912
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
913
- ], ii = L("Image", ni);
913
+ ], ni = L("Image", ri);
914
914
  /**
915
915
  * @license lucide-react v0.474.0 - ISC
916
916
  *
917
917
  * This source code is licensed under the ISC license.
918
918
  * See the LICENSE file in the root directory of this source tree.
919
919
  */
920
- const oi = [
920
+ const ii = [
921
921
  ["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
922
922
  ["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
923
923
  ["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
924
- ], ai = L("Italic", oi);
924
+ ], oi = L("Italic", ii);
925
925
  /**
926
926
  * @license lucide-react v0.474.0 - ISC
927
927
  *
928
928
  * This source code is licensed under the ISC license.
929
929
  * See the LICENSE file in the root directory of this source tree.
930
930
  */
931
- const si = [
931
+ const ai = [
932
932
  [
933
933
  "path",
934
934
  {
@@ -950,49 +950,49 @@ const si = [
950
950
  key: "kqbvx6"
951
951
  }
952
952
  ]
953
- ], li = L("Layers", si);
953
+ ], si = L("Layers", ai);
954
954
  /**
955
955
  * @license lucide-react v0.474.0 - ISC
956
956
  *
957
957
  * This source code is licensed under the ISC license.
958
958
  * See the LICENSE file in the root directory of this source tree.
959
959
  */
960
- const ci = [
960
+ const li = [
961
961
  ["path", { d: "M10 12h11", key: "6m4ad9" }],
962
962
  ["path", { d: "M10 18h11", key: "11hvi2" }],
963
963
  ["path", { d: "M10 6h11", key: "c7qv1k" }],
964
964
  ["path", { d: "M4 10h2", key: "16xx2s" }],
965
965
  ["path", { d: "M4 6h1v4", key: "cnovpq" }],
966
966
  ["path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1", key: "m9a95d" }]
967
- ], ui = L("ListOrdered", ci);
967
+ ], ci = L("ListOrdered", li);
968
968
  /**
969
969
  * @license lucide-react v0.474.0 - ISC
970
970
  *
971
971
  * This source code is licensed under the ISC license.
972
972
  * See the LICENSE file in the root directory of this source tree.
973
973
  */
974
- const di = [
974
+ const ui = [
975
975
  ["path", { d: "M3 12h.01", key: "nlz23k" }],
976
976
  ["path", { d: "M3 18h.01", key: "1tta3j" }],
977
977
  ["path", { d: "M3 6h.01", key: "1rqtza" }],
978
978
  ["path", { d: "M8 12h13", key: "1za7za" }],
979
979
  ["path", { d: "M8 18h13", key: "1lx6n3" }],
980
980
  ["path", { d: "M8 6h13", key: "ik3vkj" }]
981
- ], fi = L("List", di);
981
+ ], di = L("List", ui);
982
982
  /**
983
983
  * @license lucide-react v0.474.0 - ISC
984
984
  *
985
985
  * This source code is licensed under the ISC license.
986
986
  * See the LICENSE file in the root directory of this source tree.
987
987
  */
988
- const mi = [["path", { d: "M5 12h14", key: "1ays0h" }]], pi = L("Minus", mi);
988
+ const fi = [["path", { d: "M5 12h14", key: "1ays0h" }]], mi = L("Minus", fi);
989
989
  /**
990
990
  * @license lucide-react v0.474.0 - ISC
991
991
  *
992
992
  * This source code is licensed under the ISC license.
993
993
  * See the LICENSE file in the root directory of this source tree.
994
994
  */
995
- const bi = [
995
+ const pi = [
996
996
  [
997
997
  "path",
998
998
  { d: "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z", key: "irua1i" }
@@ -1000,24 +1000,24 @@ const bi = [
1000
1000
  ["path", { d: "m5 2 5 5", key: "1lls2c" }],
1001
1001
  ["path", { d: "M2 13h15", key: "1hkzvu" }],
1002
1002
  ["path", { d: "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z", key: "xk76lq" }]
1003
- ], hi = L("PaintBucket", bi);
1003
+ ], bi = L("PaintBucket", pi);
1004
1004
  /**
1005
1005
  * @license lucide-react v0.474.0 - ISC
1006
1006
  *
1007
1007
  * This source code is licensed under the ISC license.
1008
1008
  * See the LICENSE file in the root directory of this source tree.
1009
1009
  */
1010
- const yi = [
1010
+ const hi = [
1011
1011
  ["path", { d: "M5 12h14", key: "1ays0h" }],
1012
1012
  ["path", { d: "M12 5v14", key: "s699le" }]
1013
- ], vi = L("Plus", yi);
1013
+ ], yi = L("Plus", hi);
1014
1014
  /**
1015
1015
  * @license lucide-react v0.474.0 - ISC
1016
1016
  *
1017
1017
  * This source code is licensed under the ISC license.
1018
1018
  * See the LICENSE file in the root directory of this source tree.
1019
1019
  */
1020
- const gi = [
1020
+ const vi = [
1021
1021
  [
1022
1022
  "path",
1023
1023
  {
@@ -1032,45 +1032,45 @@ const gi = [
1032
1032
  key: "1ymkrd"
1033
1033
  }
1034
1034
  ]
1035
- ], xi = L("Quote", gi);
1035
+ ], gi = L("Quote", vi);
1036
1036
  /**
1037
1037
  * @license lucide-react v0.474.0 - ISC
1038
1038
  *
1039
1039
  * This source code is licensed under the ISC license.
1040
1040
  * See the LICENSE file in the root directory of this source tree.
1041
1041
  */
1042
- const Ni = [
1042
+ const xi = [
1043
1043
  ["path", { d: "M21 7v6h-6", key: "3ptur4" }],
1044
1044
  ["path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7", key: "1kgawr" }]
1045
- ], Ei = L("Redo", Ni);
1045
+ ], Ni = L("Redo", xi);
1046
1046
  /**
1047
1047
  * @license lucide-react v0.474.0 - ISC
1048
1048
  *
1049
1049
  * This source code is licensed under the ISC license.
1050
1050
  * See the LICENSE file in the root directory of this source tree.
1051
1051
  */
1052
- const Si = [
1052
+ const Ei = [
1053
1053
  ["path", { d: "M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5", key: "1uzm8b" }],
1054
1054
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
1055
- ], wi = L("SquareCheckBig", Si);
1055
+ ], Si = L("SquareCheckBig", Ei);
1056
1056
  /**
1057
1057
  * @license lucide-react v0.474.0 - ISC
1058
1058
  *
1059
1059
  * This source code is licensed under the ISC license.
1060
1060
  * See the LICENSE file in the root directory of this source tree.
1061
1061
  */
1062
- const Ci = [
1062
+ const wi = [
1063
1063
  ["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
1064
1064
  ["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
1065
1065
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
1066
- ], ki = L("Strikethrough", Ci);
1066
+ ], Ci = L("Strikethrough", wi);
1067
1067
  /**
1068
1068
  * @license lucide-react v0.474.0 - ISC
1069
1069
  *
1070
1070
  * This source code is licensed under the ISC license.
1071
1071
  * See the LICENSE file in the root directory of this source tree.
1072
1072
  */
1073
- const Di = [
1073
+ const ki = [
1074
1074
  ["path", { d: "m4 5 8 8", key: "1eunvl" }],
1075
1075
  ["path", { d: "m12 5-8 8", key: "1ah0jp" }],
1076
1076
  [
@@ -1080,14 +1080,14 @@ const Di = [
1080
1080
  key: "e8ta8j"
1081
1081
  }
1082
1082
  ]
1083
- ], _i = L("Subscript", Di);
1083
+ ], Di = L("Subscript", ki);
1084
1084
  /**
1085
1085
  * @license lucide-react v0.474.0 - ISC
1086
1086
  *
1087
1087
  * This source code is licensed under the ISC license.
1088
1088
  * See the LICENSE file in the root directory of this source tree.
1089
1089
  */
1090
- const Oi = [
1090
+ const _i = [
1091
1091
  ["path", { d: "m4 19 8-8", key: "hr47gm" }],
1092
1092
  ["path", { d: "m12 19-8-8", key: "1dhhmo" }],
1093
1093
  [
@@ -1097,61 +1097,61 @@ const Oi = [
1097
1097
  key: "1dfcux"
1098
1098
  }
1099
1099
  ]
1100
- ], Ri = L("Superscript", Oi);
1100
+ ], Oi = L("Superscript", _i);
1101
1101
  /**
1102
1102
  * @license lucide-react v0.474.0 - ISC
1103
1103
  *
1104
1104
  * This source code is licensed under the ISC license.
1105
1105
  * See the LICENSE file in the root directory of this source tree.
1106
1106
  */
1107
- const Pi = [
1107
+ const Ri = [
1108
1108
  ["path", { d: "M12 3v18", key: "108xh3" }],
1109
1109
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
1110
1110
  ["path", { d: "M3 9h18", key: "1pudct" }],
1111
1111
  ["path", { d: "M3 15h18", key: "5xshup" }]
1112
- ], Ti = L("Table", Pi);
1112
+ ], Ti = L("Table", Ri);
1113
1113
  /**
1114
1114
  * @license lucide-react v0.474.0 - ISC
1115
1115
  *
1116
1116
  * This source code is licensed under the ISC license.
1117
1117
  * See the LICENSE file in the root directory of this source tree.
1118
1118
  */
1119
- const ji = [
1119
+ const Pi = [
1120
1120
  ["path", { d: "M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1", key: "uvaxm9" }],
1121
1121
  ["path", { d: "M7 22h1a4 4 0 0 0 4-4v-1", key: "11xy8d" }],
1122
1122
  ["path", { d: "M7 2h1a4 4 0 0 1 4 4v1", key: "1uw06m" }]
1123
- ], Mi = L("TextCursor", ji);
1123
+ ], ji = L("TextCursor", Pi);
1124
1124
  /**
1125
1125
  * @license lucide-react v0.474.0 - ISC
1126
1126
  *
1127
1127
  * This source code is licensed under the ISC license.
1128
1128
  * See the LICENSE file in the root directory of this source tree.
1129
1129
  */
1130
- const Vi = [
1130
+ const Mi = [
1131
1131
  ["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
1132
1132
  ["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
1133
- ], Ai = L("Underline", Vi);
1133
+ ], Vi = L("Underline", Mi);
1134
1134
  /**
1135
1135
  * @license lucide-react v0.474.0 - ISC
1136
1136
  *
1137
1137
  * This source code is licensed under the ISC license.
1138
1138
  * See the LICENSE file in the root directory of this source tree.
1139
1139
  */
1140
- const $i = [
1140
+ const Ai = [
1141
1141
  ["path", { d: "M3 7v6h6", key: "1v2h90" }],
1142
1142
  ["path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13", key: "1r6uu6" }]
1143
- ], zi = L("Undo", $i);
1143
+ ], $i = L("Undo", Ai);
1144
1144
  /**
1145
1145
  * @license lucide-react v0.474.0 - ISC
1146
1146
  *
1147
1147
  * This source code is licensed under the ISC license.
1148
1148
  * See the LICENSE file in the root directory of this source tree.
1149
1149
  */
1150
- const Ii = [
1150
+ const zi = [
1151
1151
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1152
1152
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1153
- ], Hi = L("X", Ii);
1154
- function Li({ editor: e }) {
1153
+ ], Ii = L("X", zi);
1154
+ function Hi({ editor: e }) {
1155
1155
  const [t, r] = he(!1);
1156
1156
  return /* @__PURE__ */ l.jsxDEV("div", { className: "relative", children: [
1157
1157
  /* @__PURE__ */ l.jsxDEV(
@@ -1159,11 +1159,11 @@ function Li({ editor: e }) {
1159
1159
  {
1160
1160
  className: `p-1 text-black transition-all duration-300 rounded-md shadow-lg hover:bg-blue-100 hover:text-blue-600 ${t ? "bg-blue-100 text-blue-600" : ""}`,
1161
1161
  onClick: () => r(!t),
1162
- children: t ? /* @__PURE__ */ l.jsxDEV(Hi, { size: 24 }, void 0, !1, {
1162
+ children: t ? /* @__PURE__ */ l.jsxDEV(Ii, { size: 24 }, void 0, !1, {
1163
1163
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
1164
1164
  lineNumber: 13,
1165
1165
  columnNumber: 25
1166
- }, this) : /* @__PURE__ */ l.jsxDEV(li, { size: 24 }, void 0, !1, {
1166
+ }, this) : /* @__PURE__ */ l.jsxDEV(si, { size: 24 }, void 0, !1, {
1167
1167
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
1168
1168
  lineNumber: 13,
1169
1169
  columnNumber: 43
@@ -1200,7 +1200,7 @@ function Li({ editor: e }) {
1200
1200
  },
1201
1201
  className: "flex items-center justify-center w-full gap-2 px-3 py-1 text-blue-600 duration-300 rounded-md bg-blue-50 hover:bg-blue-100 hover:text-blue-700",
1202
1202
  children: [
1203
- /* @__PURE__ */ l.jsxDEV(vi, { size: 16 }, void 0, !1, {
1203
+ /* @__PURE__ */ l.jsxDEV(yi, { size: 16 }, void 0, !1, {
1204
1204
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
1205
1205
  lineNumber: 33,
1206
1206
  columnNumber: 29
@@ -1238,8 +1238,8 @@ function Li({ editor: e }) {
1238
1238
  columnNumber: 9
1239
1239
  }, this);
1240
1240
  }
1241
- const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1242
- fn,
1241
+ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1242
+ dn,
1243
1243
  {
1244
1244
  value: e,
1245
1245
  onChange: t,
@@ -1267,7 +1267,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1267
1267
  columnNumber: 9
1268
1268
  },
1269
1269
  void 0
1270
- ), Wi = ({ editor: e }) => {
1270
+ ), Li = ({ editor: e }) => {
1271
1271
  const [t, r] = he("#1677ff"), [n, o] = he("#ffffff"), a = (m) => {
1272
1272
  const p = m.toHexString();
1273
1273
  r(p), e.chain().focus().setColor(p).run();
@@ -1279,12 +1279,12 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1279
1279
  };
1280
1280
  return /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-4", children: [
1281
1281
  /* @__PURE__ */ l.jsxDEV(vt, { title: "Text Color", children: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
1282
- /* @__PURE__ */ l.jsxDEV(Mi, { size: 20, color: "black" }, void 0, !1, {
1282
+ /* @__PURE__ */ l.jsxDEV(ji, { size: 20, color: "black" }, void 0, !1, {
1283
1283
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
1284
1284
  lineNumber: 33,
1285
1285
  columnNumber: 21
1286
1286
  }, void 0),
1287
- /* @__PURE__ */ l.jsxDEV(Ue, { value: t, onChange: a }, void 0, !1, {
1287
+ /* @__PURE__ */ l.jsxDEV(Fe, { value: t, onChange: a }, void 0, !1, {
1288
1288
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
1289
1289
  lineNumber: 34,
1290
1290
  columnNumber: 21
@@ -1299,12 +1299,12 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1299
1299
  columnNumber: 13
1300
1300
  }, void 0),
1301
1301
  /* @__PURE__ */ l.jsxDEV(vt, { title: "Highlight Color", children: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
1302
- /* @__PURE__ */ l.jsxDEV(hi, { size: 20, color: "black" }, void 0, !1, {
1302
+ /* @__PURE__ */ l.jsxDEV(bi, { size: 20, color: "black" }, void 0, !1, {
1303
1303
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
1304
1304
  lineNumber: 41,
1305
1305
  columnNumber: 21
1306
1306
  }, void 0),
1307
- /* @__PURE__ */ l.jsxDEV(Ue, { value: n, onChange: s }, void 0, !1, {
1307
+ /* @__PURE__ */ l.jsxDEV(Fe, { value: n, onChange: s }, void 0, !1, {
1308
1308
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
1309
1309
  lineNumber: 42,
1310
1310
  columnNumber: 21
@@ -1323,7 +1323,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1323
1323
  lineNumber: 29,
1324
1324
  columnNumber: 9
1325
1325
  }, void 0);
1326
- }, qi = ({ editor: e }) => {
1326
+ }, Wi = ({ editor: e }) => {
1327
1327
  if (!e) return null;
1328
1328
  const t = () => {
1329
1329
  for (let n = 1; n <= 6; n++)
@@ -1336,31 +1336,31 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1336
1336
  columnNumber: 36
1337
1337
  }, void 0);
1338
1338
  case 2:
1339
- return /* @__PURE__ */ l.jsxDEV(Gt, { size: 16 }, void 0, !1, {
1339
+ return /* @__PURE__ */ l.jsxDEV(Kt, { size: 16 }, void 0, !1, {
1340
1340
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
1341
1341
  lineNumber: 16,
1342
1342
  columnNumber: 36
1343
1343
  }, void 0);
1344
1344
  case 3:
1345
- return /* @__PURE__ */ l.jsxDEV(Jt, { size: 16 }, void 0, !1, {
1345
+ return /* @__PURE__ */ l.jsxDEV(Gt, { size: 16 }, void 0, !1, {
1346
1346
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
1347
1347
  lineNumber: 17,
1348
1348
  columnNumber: 36
1349
1349
  }, void 0);
1350
1350
  case 4:
1351
- return /* @__PURE__ */ l.jsxDEV(Zt, { size: 16 }, void 0, !1, {
1351
+ return /* @__PURE__ */ l.jsxDEV(Jt, { size: 16 }, void 0, !1, {
1352
1352
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
1353
1353
  lineNumber: 18,
1354
1354
  columnNumber: 36
1355
1355
  }, void 0);
1356
1356
  case 5:
1357
- return /* @__PURE__ */ l.jsxDEV(Qt, { size: 16 }, void 0, !1, {
1357
+ return /* @__PURE__ */ l.jsxDEV(Zt, { size: 16 }, void 0, !1, {
1358
1358
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
1359
1359
  lineNumber: 19,
1360
1360
  columnNumber: 36
1361
1361
  }, void 0);
1362
1362
  case 6:
1363
- return /* @__PURE__ */ l.jsxDEV(er, { size: 16 }, void 0, !1, {
1363
+ return /* @__PURE__ */ l.jsxDEV(Qt, { size: 16 }, void 0, !1, {
1364
1364
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
1365
1365
  lineNumber: 20,
1366
1366
  columnNumber: 36
@@ -1375,7 +1375,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1375
1375
  ...Array.from({ length: 6 }, (n, o) => ({
1376
1376
  key: `${o + 1}`,
1377
1377
  label: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onClick: () => e.chain().focus().toggleHeading({ level: o + 1 }).run(), children: [
1378
- _e.createElement([ot, Gt, Jt, Zt, Qt, er][o], { size: 16 }),
1378
+ _e.createElement([ot, Kt, Gt, Jt, Zt, Qt][o], { size: 16 }),
1379
1379
  /* @__PURE__ */ l.jsxDEV("span", { children: [
1380
1380
  "Heading ",
1381
1381
  o + 1
@@ -1392,7 +1392,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1392
1392
  className: e.isActive("heading", { level: o + 1 }) ? "ant-dropdown-menu-item-active" : ""
1393
1393
  }))
1394
1394
  ];
1395
- return /* @__PURE__ */ l.jsxDEV(kt, { menu: { items: r }, trigger: ["hover"], placement: "bottomLeft", children: /* @__PURE__ */ l.jsxDEV("button", { className: "flex items-center gap-1 p-2 rounded-md hover:bg-blue-100 hover:text-blue-600", children: t() }, void 0, !1, {
1395
+ return /* @__PURE__ */ l.jsxDEV(Ct, { menu: { items: r }, trigger: ["hover"], placement: "bottomLeft", children: /* @__PURE__ */ l.jsxDEV("button", { className: "flex items-center gap-1 p-2 rounded-md hover:bg-blue-100 hover:text-blue-600", children: t() }, void 0, !1, {
1396
1396
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
1397
1397
  lineNumber: 42,
1398
1398
  columnNumber: 13
@@ -1401,7 +1401,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1401
1401
  lineNumber: 41,
1402
1402
  columnNumber: 9
1403
1403
  }, void 0);
1404
- }, Yi = 8, Ui = 8, Fi = ({
1404
+ }, qi = 8, Yi = 8, Fi = ({
1405
1405
  editor: e,
1406
1406
  buttonClass: t,
1407
1407
  activeClass: r
@@ -1410,23 +1410,23 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1410
1410
  e.chain().focus().insertTable({ rows: m, cols: p, withHeaderRow: !0 }).run(), s(!1);
1411
1411
  };
1412
1412
  return /* @__PURE__ */ l.jsxDEV(
1413
- kt,
1413
+ Ct,
1414
1414
  {
1415
1415
  open: a,
1416
1416
  onOpenChange: s,
1417
1417
  trigger: ["hover"],
1418
1418
  overlay: /* @__PURE__ */ l.jsxDEV("div", { className: "w-56 p-4 bg-white border border-gray-300 rounded-lg shadow-xl", children: [
1419
- /* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: Yi }).map(
1420
- (m, p) => Array.from({ length: Ui }).map((b, N) => {
1421
- const O = p < n.rows && N < n.cols;
1419
+ /* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: qi }).map(
1420
+ (m, p) => Array.from({ length: Yi }).map((y, v) => {
1421
+ const O = p < n.rows && v < n.cols;
1422
1422
  return /* @__PURE__ */ l.jsxDEV(
1423
1423
  "div",
1424
1424
  {
1425
1425
  className: `w-5 h-5 border rounded-sm cursor-pointer transition-all duration-200 ${O ? "bg-blue-400 border-white scale-110" : "bg-gray-200 hover:bg-gray-300"}`,
1426
- onMouseEnter: () => o({ rows: p + 1, cols: N + 1 }),
1427
- onClick: () => u(p + 1, N + 1)
1426
+ onMouseEnter: () => o({ rows: p + 1, cols: v + 1 }),
1427
+ onClick: () => u(p + 1, v + 1)
1428
1428
  },
1429
- `${p}-${N}`,
1429
+ `${p}-${v}`,
1430
1430
  !1,
1431
1431
  {
1432
1432
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
@@ -1481,8 +1481,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
1481
1481
  void 0
1482
1482
  );
1483
1483
  };
1484
- function Bi() {
1485
- const { editor: e } = Ct();
1484
+ function Ui({ editor: e }) {
1486
1485
  if (!e) return null;
1487
1486
  const t = "p-2 rounded-md transition-all duration-200 hover:bg-blue-100 hover:text-blue-600", r = "bg-blue-100 text-blue-600", n = (o, a, s, u, m) => /* @__PURE__ */ l.jsxDEV(vt, { title: m, children: /* @__PURE__ */ l.jsxDEV(
1488
1487
  "button",
@@ -1501,21 +1500,21 @@ function Bi() {
1501
1500
  !1,
1502
1501
  {
1503
1502
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1504
- lineNumber: 34,
1503
+ lineNumber: 32,
1505
1504
  columnNumber: 13
1506
1505
  },
1507
1506
  this
1508
1507
  ) }, void 0, !1, {
1509
1508
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1510
- lineNumber: 33,
1509
+ lineNumber: 31,
1511
1510
  columnNumber: 9
1512
1511
  }, this);
1513
1512
  return /* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-wrap items-center gap-2 p-2 border-b border-gray-200 rounded-t-lg bg-gray-50", children: [
1514
1513
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1515
1514
  n(
1516
- /* @__PURE__ */ l.jsxDEV(Yn, { size: 16 }, void 0, !1, {
1515
+ /* @__PURE__ */ l.jsxDEV(qn, { size: 16 }, void 0, !1, {
1517
1516
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1518
- lineNumber: 54,
1517
+ lineNumber: 52,
1519
1518
  columnNumber: 21
1520
1519
  }, this),
1521
1520
  () => e.chain().focus().toggleBold().run(),
@@ -1524,9 +1523,9 @@ function Bi() {
1524
1523
  "Bold"
1525
1524
  ),
1526
1525
  n(
1527
- /* @__PURE__ */ l.jsxDEV(ai, { size: 16 }, void 0, !1, {
1526
+ /* @__PURE__ */ l.jsxDEV(oi, { size: 16 }, void 0, !1, {
1528
1527
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1529
- lineNumber: 61,
1528
+ lineNumber: 59,
1530
1529
  columnNumber: 21
1531
1530
  }, this),
1532
1531
  () => e.chain().focus().toggleItalic().run(),
@@ -1535,9 +1534,9 @@ function Bi() {
1535
1534
  "Italic"
1536
1535
  ),
1537
1536
  n(
1538
- /* @__PURE__ */ l.jsxDEV(Ai, { size: 16 }, void 0, !1, {
1537
+ /* @__PURE__ */ l.jsxDEV(Vi, { size: 16 }, void 0, !1, {
1539
1538
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1540
- lineNumber: 68,
1539
+ lineNumber: 66,
1541
1540
  columnNumber: 21
1542
1541
  }, this),
1543
1542
  () => e.chain().focus().toggleUnderline().run(),
@@ -1546,9 +1545,9 @@ function Bi() {
1546
1545
  "Underline"
1547
1546
  ),
1548
1547
  n(
1549
- /* @__PURE__ */ l.jsxDEV(ki, { size: 16 }, void 0, !1, {
1548
+ /* @__PURE__ */ l.jsxDEV(Ci, { size: 16 }, void 0, !1, {
1550
1549
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1551
- lineNumber: 75,
1550
+ lineNumber: 73,
1552
1551
  columnNumber: 21
1553
1552
  }, this),
1554
1553
  () => e.chain().focus().toggleStrike().run(),
@@ -1557,9 +1556,9 @@ function Bi() {
1557
1556
  "Strikethrough"
1558
1557
  ),
1559
1558
  n(
1560
- /* @__PURE__ */ l.jsxDEV(Xn, { size: 16 }, void 0, !1, {
1559
+ /* @__PURE__ */ l.jsxDEV(Bn, { size: 16 }, void 0, !1, {
1561
1560
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1562
- lineNumber: 82,
1561
+ lineNumber: 80,
1563
1562
  columnNumber: 21
1564
1563
  }, this),
1565
1564
  () => e.chain().focus().toggleCode().run(),
@@ -1568,9 +1567,9 @@ function Bi() {
1568
1567
  "Code"
1569
1568
  ),
1570
1569
  n(
1571
- /* @__PURE__ */ l.jsxDEV(_i, { size: 16 }, void 0, !1, {
1570
+ /* @__PURE__ */ l.jsxDEV(Di, { size: 16 }, void 0, !1, {
1572
1571
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1573
- lineNumber: 89,
1572
+ lineNumber: 87,
1574
1573
  columnNumber: 21
1575
1574
  }, this),
1576
1575
  () => e.chain().focus().toggleSubscript().run(),
@@ -1579,9 +1578,9 @@ function Bi() {
1579
1578
  "Subscript"
1580
1579
  ),
1581
1580
  n(
1582
- /* @__PURE__ */ l.jsxDEV(Ri, { size: 16 }, void 0, !1, {
1581
+ /* @__PURE__ */ l.jsxDEV(Oi, { size: 16 }, void 0, !1, {
1583
1582
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1584
- lineNumber: 96,
1583
+ lineNumber: 94,
1585
1584
  columnNumber: 21
1586
1585
  }, this),
1587
1586
  () => e.chain().focus().toggleSuperscript().run(),
@@ -1591,29 +1590,29 @@ function Bi() {
1591
1590
  )
1592
1591
  ] }, void 0, !0, {
1593
1592
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1594
- lineNumber: 52,
1593
+ lineNumber: 50,
1595
1594
  columnNumber: 13
1596
1595
  }, this),
1597
1596
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1598
1597
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1599
- lineNumber: 104,
1598
+ lineNumber: 102,
1600
1599
  columnNumber: 13
1601
1600
  }, this),
1602
- /* @__PURE__ */ l.jsxDEV(qi, { editor: e }, void 0, !1, {
1601
+ /* @__PURE__ */ l.jsxDEV(Wi, { editor: e }, void 0, !1, {
1603
1602
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1604
- lineNumber: 107,
1603
+ lineNumber: 105,
1605
1604
  columnNumber: 13
1606
1605
  }, this),
1607
1606
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1608
1607
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1609
- lineNumber: 109,
1608
+ lineNumber: 107,
1610
1609
  columnNumber: 13
1611
1610
  }, this),
1612
1611
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1613
1612
  n(
1614
- /* @__PURE__ */ l.jsxDEV(Hn, { size: 16 }, void 0, !1, {
1613
+ /* @__PURE__ */ l.jsxDEV(In, { size: 16 }, void 0, !1, {
1615
1614
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1616
- lineNumber: 114,
1615
+ lineNumber: 112,
1617
1616
  columnNumber: 21
1618
1617
  }, this),
1619
1618
  () => e.chain().focus().setTextAlign("left").run(),
@@ -1622,9 +1621,9 @@ function Bi() {
1622
1621
  "Align Left"
1623
1622
  ),
1624
1623
  n(
1625
- /* @__PURE__ */ l.jsxDEV(An, { size: 16 }, void 0, !1, {
1624
+ /* @__PURE__ */ l.jsxDEV(Vn, { size: 16 }, void 0, !1, {
1626
1625
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1627
- lineNumber: 121,
1626
+ lineNumber: 119,
1628
1627
  columnNumber: 21
1629
1628
  }, this),
1630
1629
  () => e.chain().focus().setTextAlign("center").run(),
@@ -1633,9 +1632,9 @@ function Bi() {
1633
1632
  "Align Center"
1634
1633
  ),
1635
1634
  n(
1636
- /* @__PURE__ */ l.jsxDEV(Wn, { size: 16 }, void 0, !1, {
1635
+ /* @__PURE__ */ l.jsxDEV(Ln, { size: 16 }, void 0, !1, {
1637
1636
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1638
- lineNumber: 126,
1637
+ lineNumber: 124,
1639
1638
  columnNumber: 21
1640
1639
  }, this),
1641
1640
  () => e.chain().focus().setTextAlign("right").run(),
@@ -1644,9 +1643,9 @@ function Bi() {
1644
1643
  "Align Right"
1645
1644
  ),
1646
1645
  n(
1647
- /* @__PURE__ */ l.jsxDEV(zn, { size: 16 }, void 0, !1, {
1646
+ /* @__PURE__ */ l.jsxDEV($n, { size: 16 }, void 0, !1, {
1648
1647
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1649
- lineNumber: 131,
1648
+ lineNumber: 129,
1650
1649
  columnNumber: 21
1651
1650
  }, this),
1652
1651
  () => e.chain().focus().setTextAlign("justify").run(),
@@ -1656,19 +1655,19 @@ function Bi() {
1656
1655
  )
1657
1656
  ] }, void 0, !0, {
1658
1657
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1659
- lineNumber: 112,
1658
+ lineNumber: 110,
1660
1659
  columnNumber: 13
1661
1660
  }, this),
1662
1661
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1663
1662
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1664
- lineNumber: 137,
1663
+ lineNumber: 135,
1665
1664
  columnNumber: 13
1666
1665
  }, this),
1667
1666
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1668
1667
  n(
1669
- /* @__PURE__ */ l.jsxDEV(fi, { size: 16 }, void 0, !1, {
1668
+ /* @__PURE__ */ l.jsxDEV(di, { size: 16 }, void 0, !1, {
1670
1669
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1671
- lineNumber: 142,
1670
+ lineNumber: 140,
1672
1671
  columnNumber: 21
1673
1672
  }, this),
1674
1673
  () => e.chain().focus().toggleBulletList().run(),
@@ -1677,9 +1676,9 @@ function Bi() {
1677
1676
  "Bullet List"
1678
1677
  ),
1679
1678
  n(
1680
- /* @__PURE__ */ l.jsxDEV(ui, { size: 16 }, void 0, !1, {
1679
+ /* @__PURE__ */ l.jsxDEV(ci, { size: 16 }, void 0, !1, {
1681
1680
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1682
- lineNumber: 147,
1681
+ lineNumber: 145,
1683
1682
  columnNumber: 21
1684
1683
  }, this),
1685
1684
  () => e.chain().focus().toggleOrderedList().run(),
@@ -1688,9 +1687,9 @@ function Bi() {
1688
1687
  "Ordered List"
1689
1688
  ),
1690
1689
  n(
1691
- /* @__PURE__ */ l.jsxDEV(wi, { size: 16 }, void 0, !1, {
1690
+ /* @__PURE__ */ l.jsxDEV(Si, { size: 16 }, void 0, !1, {
1692
1691
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1693
- lineNumber: 152,
1692
+ lineNumber: 150,
1694
1693
  columnNumber: 21
1695
1694
  }, this),
1696
1695
  () => e.chain().focus().toggleTaskList().run(),
@@ -1700,19 +1699,19 @@ function Bi() {
1700
1699
  )
1701
1700
  ] }, void 0, !0, {
1702
1701
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1703
- lineNumber: 140,
1702
+ lineNumber: 138,
1704
1703
  columnNumber: 13
1705
1704
  }, this),
1706
1705
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1707
1706
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1708
- lineNumber: 158,
1707
+ lineNumber: 156,
1709
1708
  columnNumber: 13
1710
1709
  }, this),
1711
1710
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1712
1711
  n(
1713
- /* @__PURE__ */ l.jsxDEV(xi, { size: 16 }, void 0, !1, {
1712
+ /* @__PURE__ */ l.jsxDEV(gi, { size: 16 }, void 0, !1, {
1714
1713
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1715
- lineNumber: 163,
1714
+ lineNumber: 161,
1716
1715
  columnNumber: 21
1717
1716
  }, this),
1718
1717
  () => e.chain().focus().toggleBlockquote().run(),
@@ -1722,13 +1721,13 @@ function Bi() {
1722
1721
  ),
1723
1722
  /* @__PURE__ */ l.jsxDEV(Fi, { editor: e, buttonClass: t, activeClass: r }, void 0, !1, {
1724
1723
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1725
- lineNumber: 167,
1724
+ lineNumber: 165,
1726
1725
  columnNumber: 17
1727
1726
  }, this),
1728
1727
  n(
1729
- /* @__PURE__ */ l.jsxDEV(pi, { size: 16 }, void 0, !1, {
1728
+ /* @__PURE__ */ l.jsxDEV(mi, { size: 16 }, void 0, !1, {
1730
1729
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1731
- lineNumber: 169,
1730
+ lineNumber: 167,
1732
1731
  columnNumber: 21
1733
1732
  }, this),
1734
1733
  () => e.chain().focus().setHorizontalRule().run(),
@@ -1737,9 +1736,9 @@ function Bi() {
1737
1736
  "Horizontal Rule"
1738
1737
  ),
1739
1738
  n(
1740
- /* @__PURE__ */ l.jsxDEV(Gn, { size: 16 }, void 0, !1, {
1739
+ /* @__PURE__ */ l.jsxDEV(Kn, { size: 16 }, void 0, !1, {
1741
1740
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1742
- lineNumber: 173,
1741
+ lineNumber: 171,
1743
1742
  columnNumber: 21
1744
1743
  }, this),
1745
1744
  () => e.chain().focus().setHardBreak().run(),
@@ -1749,19 +1748,19 @@ function Bi() {
1749
1748
  )
1750
1749
  ] }, void 0, !0, {
1751
1750
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1752
- lineNumber: 161,
1751
+ lineNumber: 159,
1753
1752
  columnNumber: 13
1754
1753
  }, this),
1755
1754
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1756
1755
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1757
- lineNumber: 178,
1756
+ lineNumber: 176,
1758
1757
  columnNumber: 13
1759
1758
  }, this),
1760
1759
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
1761
1760
  n(
1762
- /* @__PURE__ */ l.jsxDEV(zi, { size: 16 }, void 0, !1, {
1761
+ /* @__PURE__ */ l.jsxDEV($i, { size: 16 }, void 0, !1, {
1763
1762
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1764
- lineNumber: 183,
1763
+ lineNumber: 181,
1765
1764
  columnNumber: 21
1766
1765
  }, this),
1767
1766
  () => e.chain().focus().undo().run(),
@@ -1769,9 +1768,9 @@ function Bi() {
1769
1768
  !e.can().chain().focus().undo().run()
1770
1769
  ),
1771
1770
  n(
1772
- /* @__PURE__ */ l.jsxDEV(Ei, { size: 16 }, void 0, !1, {
1771
+ /* @__PURE__ */ l.jsxDEV(Ni, { size: 16 }, void 0, !1, {
1773
1772
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1774
- lineNumber: 189,
1773
+ lineNumber: 187,
1775
1774
  columnNumber: 21
1776
1775
  }, this),
1777
1776
  () => e.chain().focus().redo().run(),
@@ -1780,28 +1779,30 @@ function Bi() {
1780
1779
  )
1781
1780
  ] }, void 0, !0, {
1782
1781
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1783
- lineNumber: 181,
1782
+ lineNumber: 179,
1784
1783
  columnNumber: 13
1785
1784
  }, this),
1786
1785
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1787
1786
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1788
- lineNumber: 196,
1787
+ lineNumber: 194,
1789
1788
  columnNumber: 13
1790
1789
  }, this),
1791
1790
  n(
1792
- /* @__PURE__ */ l.jsxDEV(ii, { size: 16 }, void 0, !1, {
1791
+ /* @__PURE__ */ l.jsxDEV(ni, { size: 16 }, void 0, !1, {
1793
1792
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1794
- lineNumber: 199,
1793
+ lineNumber: 197,
1795
1794
  columnNumber: 17
1796
1795
  }, this),
1797
1796
  () => {
1798
1797
  const o = prompt("Enter the image URL");
1799
- e.chain().focus().insertContent({
1798
+ o && e.chain().focus().insertContent({
1800
1799
  type: "image",
1801
1800
  attrs: {
1802
1801
  src: o,
1803
1802
  width: 300,
1804
- height: 300
1803
+ height: 300,
1804
+ marginLeft: 0,
1805
+ marginRight: 0
1805
1806
  }
1806
1807
  }).run();
1807
1808
  },
@@ -1811,27 +1812,27 @@ function Bi() {
1811
1812
  ),
1812
1813
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1813
1814
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1814
- lineNumber: 217,
1815
+ lineNumber: 218,
1815
1816
  columnNumber: 13
1816
1817
  }, this),
1817
- /* @__PURE__ */ l.jsxDEV(Wi, { editor: e }, void 0, !1, {
1818
+ /* @__PURE__ */ l.jsxDEV(Li, { editor: e }, void 0, !1, {
1818
1819
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1819
- lineNumber: 220,
1820
+ lineNumber: 221,
1820
1821
  columnNumber: 13
1821
1822
  }, this),
1822
1823
  /* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
1823
1824
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1824
- lineNumber: 222,
1825
+ lineNumber: 223,
1825
1826
  columnNumber: 13
1826
1827
  }, this),
1827
- /* @__PURE__ */ l.jsxDEV(Li, { editor: e }, void 0, !1, {
1828
+ /* @__PURE__ */ l.jsxDEV(Hi, { editor: e }, void 0, !1, {
1828
1829
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1829
- lineNumber: 223,
1830
+ lineNumber: 224,
1830
1831
  columnNumber: 13
1831
1832
  }, this)
1832
1833
  ] }, void 0, !0, {
1833
1834
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
1834
- lineNumber: 50,
1835
+ lineNumber: 48,
1835
1836
  columnNumber: 9
1836
1837
  }, this);
1837
1838
  }
@@ -1851,13 +1852,13 @@ const Sr = ({
1851
1852
  columnNumber: 9
1852
1853
  }, void 0) : null;
1853
1854
  return /* @__PURE__ */ l.jsxDEV("div", { children: [
1854
- r && s ? /* @__PURE__ */ l.jsxDEV(kt, { overlay: s, trigger: ["contextMenu"], children: t }, void 0, !1, {
1855
+ r && s ? /* @__PURE__ */ l.jsxDEV(Ct, { overlay: s, trigger: ["contextMenu"], children: t }, void 0, !1, {
1855
1856
  fileName: "E:/CyberSkill/cyber-editor/src/components/modal-edit.tsx",
1856
1857
  lineNumber: 28,
1857
1858
  columnNumber: 17
1858
1859
  }, void 0) : t,
1859
1860
  /* @__PURE__ */ l.jsxDEV(
1860
- mn,
1861
+ fn,
1861
1862
  {
1862
1863
  title: `Edit ${e}`,
1863
1864
  open: o,
@@ -1879,15 +1880,13 @@ const Sr = ({
1879
1880
  lineNumber: 26,
1880
1881
  columnNumber: 9
1881
1882
  }, void 0);
1882
- }, Xi = () => {
1883
- const [e, t] = he(!1), { editor: r } = Ct();
1884
- if (!r) return null;
1885
- const n = (b) => {
1886
- b.preventDefault();
1887
- }, [o, a] = he("#f3f4f6"), [s, u] = he("#f3f4f6"), m = (b) => {
1888
- a(b.toHexString());
1889
- }, p = (b) => {
1890
- u(b.toHexString());
1883
+ }, Bi = ({ node: e, editor: t }) => {
1884
+ const [r, n] = he(!1), [o, a] = he(e.attrs.bgColor || "#f3f4f6"), [s, u] = he(e.attrs.titleColor || "#000000"), m = (v) => {
1885
+ v.preventDefault();
1886
+ }, p = (v) => {
1887
+ a(v.toHexString());
1888
+ }, y = (v) => {
1889
+ u(v.toHexString());
1891
1890
  };
1892
1891
  return /* @__PURE__ */ l.jsxDEV(yr, { className: "accordion-wrapper", children: /* @__PURE__ */ l.jsxDEV(
1893
1892
  Sr,
@@ -1897,21 +1896,22 @@ const Sr = ({
1897
1896
  "div",
1898
1897
  {
1899
1898
  className: "my-4 transition-all duration-300 border rounded-lg shadow-sm",
1900
- onContextMenu: n,
1899
+ onContextMenu: m,
1901
1900
  children: [
1902
1901
  /* @__PURE__ */ l.jsxDEV(
1903
1902
  "div",
1904
1903
  {
1905
1904
  className: "flex items-center justify-between p-4 transition-colors accordion-header",
1906
1905
  style: { backgroundColor: o },
1907
- onClick: () => t(!e),
1906
+ onClick: () => n(!r),
1908
1907
  children: [
1909
1908
  /* @__PURE__ */ l.jsxDEV(
1910
1909
  "input",
1911
1910
  {
1912
1911
  className: "w-full text-lg font-medium bg-transparent border-none outline-none",
1913
1912
  style: { color: s },
1914
- disabled: !r.isEditable,
1913
+ defaultValue: e.attrs.title || "Accordion Title",
1914
+ disabled: !t.isEditable,
1915
1915
  suppressContentEditableWarning: !0,
1916
1916
  contentEditable: !0,
1917
1917
  placeholder: "Accordion title"
@@ -1920,7 +1920,7 @@ const Sr = ({
1920
1920
  !1,
1921
1921
  {
1922
1922
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1923
- lineNumber: 45,
1923
+ lineNumber: 38,
1924
1924
  columnNumber: 29
1925
1925
  },
1926
1926
  void 0
@@ -1928,14 +1928,14 @@ const Sr = ({
1928
1928
  /* @__PURE__ */ l.jsxDEV(
1929
1929
  Fn,
1930
1930
  {
1931
- className: `transition-transform duration-300 ${e ? "rotate-180" : ""}`,
1931
+ className: `transition-transform duration-300 ${r ? "rotate-180" : ""}`,
1932
1932
  size: 20
1933
1933
  },
1934
1934
  void 0,
1935
1935
  !1,
1936
1936
  {
1937
1937
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1938
- lineNumber: 53,
1938
+ lineNumber: 47,
1939
1939
  columnNumber: 29
1940
1940
  },
1941
1941
  void 0
@@ -1946,7 +1946,7 @@ const Sr = ({
1946
1946
  !0,
1947
1947
  {
1948
1948
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1949
- lineNumber: 40,
1949
+ lineNumber: 33,
1950
1950
  columnNumber: 25
1951
1951
  },
1952
1952
  void 0
@@ -1954,23 +1954,23 @@ const Sr = ({
1954
1954
  /* @__PURE__ */ l.jsxDEV(
1955
1955
  "div",
1956
1956
  {
1957
- className: `overflow-hidden duration-300 ease-in-out ${e ? "max-h-96 opacity-100" : "max-h-0 opacity-0"} `,
1957
+ className: `overflow-hidden duration-300 ease-in-out ${r ? "max-h-96 opacity-100" : "max-h-0 opacity-0"} `,
1958
1958
  children: /* @__PURE__ */ l.jsxDEV("div", { className: "p-4 border-t", children: /* @__PURE__ */ l.jsxDEV(
1959
- un,
1959
+ ln,
1960
1960
  {
1961
- contentEditable: !0
1961
+ contentEditable: t.isEditable
1962
1962
  },
1963
1963
  void 0,
1964
1964
  !1,
1965
1965
  {
1966
1966
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1967
- lineNumber: 63,
1967
+ lineNumber: 57,
1968
1968
  columnNumber: 33
1969
1969
  },
1970
1970
  void 0
1971
1971
  ) }, void 0, !1, {
1972
1972
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1973
- lineNumber: 62,
1973
+ lineNumber: 56,
1974
1974
  columnNumber: 29
1975
1975
  }, void 0)
1976
1976
  },
@@ -1978,7 +1978,7 @@ const Sr = ({
1978
1978
  !1,
1979
1979
  {
1980
1980
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1981
- lineNumber: 59,
1981
+ lineNumber: 53,
1982
1982
  columnNumber: 25
1983
1983
  },
1984
1984
  void 0
@@ -1989,18 +1989,18 @@ const Sr = ({
1989
1989
  !0,
1990
1990
  {
1991
1991
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
1992
- lineNumber: 36,
1992
+ lineNumber: 29,
1993
1993
  columnNumber: 21
1994
1994
  },
1995
1995
  void 0
1996
1996
  ),
1997
- editable: r.isEditable,
1997
+ editable: t.isEditable,
1998
1998
  childrenEdit: /* @__PURE__ */ l.jsxDEV("div", { className: "px-6 py-4 space-y-6 rounded-lg bg-gray-50", children: [
1999
1999
  /* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-1 gap-6", children: [
2000
2000
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
2001
2001
  /* @__PURE__ */ l.jsxDEV("label", { className: "font-medium text-gray-700", children: "Background Color" }, void 0, !1, {
2002
2002
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2003
- lineNumber: 75,
2003
+ lineNumber: 69,
2004
2004
  columnNumber: 33
2005
2005
  }, void 0),
2006
2006
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center space-x-3", children: [
@@ -2014,30 +2014,30 @@ const Sr = ({
2014
2014
  !1,
2015
2015
  {
2016
2016
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2017
- lineNumber: 77,
2017
+ lineNumber: 71,
2018
2018
  columnNumber: 37
2019
2019
  },
2020
2020
  void 0
2021
2021
  ),
2022
- /* @__PURE__ */ l.jsxDEV(Ue, { value: o, onChange: m }, void 0, !1, {
2022
+ /* @__PURE__ */ l.jsxDEV(Fe, { value: o, onChange: p }, void 0, !1, {
2023
2023
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2024
- lineNumber: 81,
2024
+ lineNumber: 75,
2025
2025
  columnNumber: 37
2026
2026
  }, void 0)
2027
2027
  ] }, void 0, !0, {
2028
2028
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2029
- lineNumber: 76,
2029
+ lineNumber: 70,
2030
2030
  columnNumber: 33
2031
2031
  }, void 0)
2032
2032
  ] }, void 0, !0, {
2033
2033
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2034
- lineNumber: 74,
2034
+ lineNumber: 68,
2035
2035
  columnNumber: 29
2036
2036
  }, void 0),
2037
2037
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
2038
2038
  /* @__PURE__ */ l.jsxDEV("label", { className: "font-medium text-gray-700", children: "Title Color" }, void 0, !1, {
2039
2039
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2040
- lineNumber: 86,
2040
+ lineNumber: 80,
2041
2041
  columnNumber: 33
2042
2042
  }, void 0),
2043
2043
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center space-x-3", children: [
@@ -2051,58 +2051,58 @@ const Sr = ({
2051
2051
  !1,
2052
2052
  {
2053
2053
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2054
- lineNumber: 88,
2054
+ lineNumber: 82,
2055
2055
  columnNumber: 37
2056
2056
  },
2057
2057
  void 0
2058
2058
  ),
2059
- /* @__PURE__ */ l.jsxDEV(Ue, { value: s, onChange: p }, void 0, !1, {
2059
+ /* @__PURE__ */ l.jsxDEV(Fe, { value: s, onChange: y }, void 0, !1, {
2060
2060
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2061
- lineNumber: 92,
2061
+ lineNumber: 86,
2062
2062
  columnNumber: 37
2063
2063
  }, void 0)
2064
2064
  ] }, void 0, !0, {
2065
2065
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2066
- lineNumber: 87,
2066
+ lineNumber: 81,
2067
2067
  columnNumber: 33
2068
2068
  }, void 0)
2069
2069
  ] }, void 0, !0, {
2070
2070
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2071
- lineNumber: 85,
2071
+ lineNumber: 79,
2072
2072
  columnNumber: 29
2073
2073
  }, void 0)
2074
2074
  ] }, void 0, !0, {
2075
2075
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2076
- lineNumber: 73,
2076
+ lineNumber: 67,
2077
2077
  columnNumber: 25
2078
2078
  }, void 0),
2079
2079
  /* @__PURE__ */ l.jsxDEV("div", { className: "pt-4 border-t border-gray-200", children: /* @__PURE__ */ l.jsxDEV("div", { className: "p-3 bg-white border rounded-md", children: [
2080
2080
  /* @__PURE__ */ l.jsxDEV("div", { className: "text-sm text-gray-600", children: "Preview" }, void 0, !1, {
2081
2081
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2082
- lineNumber: 99,
2082
+ lineNumber: 93,
2083
2083
  columnNumber: 33
2084
2084
  }, void 0),
2085
2085
  /* @__PURE__ */ l.jsxDEV("div", { className: "p-2 mt-2 rounded", style: { backgroundColor: o }, children: /* @__PURE__ */ l.jsxDEV("span", { style: { color: s, fontWeight: 500 }, children: "Accordion Title" }, void 0, !1, {
2086
2086
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2087
- lineNumber: 101,
2087
+ lineNumber: 95,
2088
2088
  columnNumber: 37
2089
2089
  }, void 0) }, void 0, !1, {
2090
2090
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2091
- lineNumber: 100,
2091
+ lineNumber: 94,
2092
2092
  columnNumber: 33
2093
2093
  }, void 0)
2094
2094
  ] }, void 0, !0, {
2095
2095
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2096
- lineNumber: 98,
2096
+ lineNumber: 92,
2097
2097
  columnNumber: 29
2098
2098
  }, void 0) }, void 0, !1, {
2099
2099
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2100
- lineNumber: 97,
2100
+ lineNumber: 91,
2101
2101
  columnNumber: 25
2102
2102
  }, void 0)
2103
2103
  ] }, void 0, !0, {
2104
2104
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2105
- lineNumber: 72,
2105
+ lineNumber: 66,
2106
2106
  columnNumber: 21
2107
2107
  }, void 0)
2108
2108
  },
@@ -2110,16 +2110,16 @@ const Sr = ({
2110
2110
  !1,
2111
2111
  {
2112
2112
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2113
- lineNumber: 33,
2113
+ lineNumber: 26,
2114
2114
  columnNumber: 13
2115
2115
  },
2116
2116
  void 0
2117
2117
  ) }, void 0, !1, {
2118
2118
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
2119
- lineNumber: 32,
2119
+ lineNumber: 25,
2120
2120
  columnNumber: 9
2121
2121
  }, void 0);
2122
- }, Ki = gr.create({
2122
+ }, Xi = gr.create({
2123
2123
  name: "accordion",
2124
2124
  group: "block",
2125
2125
  content: "block+",
@@ -2128,6 +2128,19 @@ const Sr = ({
2128
2128
  selectable: !0,
2129
2129
  inline: !1,
2130
2130
  defining: !0,
2131
+ addAttributes() {
2132
+ return {
2133
+ title: {
2134
+ default: "Accordion Title"
2135
+ },
2136
+ bgColor: {
2137
+ default: "#f3f4f6"
2138
+ },
2139
+ titleColor: {
2140
+ default: "#000000"
2141
+ }
2142
+ };
2143
+ },
2131
2144
  parseHTML() {
2132
2145
  return [
2133
2146
  {
@@ -2139,18 +2152,24 @@ const Sr = ({
2139
2152
  return ["accordion", xr(e)];
2140
2153
  },
2141
2154
  addNodeView() {
2142
- return vr(Xi);
2155
+ return vr(Bi);
2143
2156
  },
2144
2157
  addCommands() {
2145
2158
  return {
2146
2159
  setAccordion: (e) => ({ chain: t }) => t().insertContent({
2147
2160
  type: "accordion",
2148
- attrs: e
2161
+ attrs: e,
2162
+ content: [
2163
+ {
2164
+ type: "paragraph",
2165
+ content: [{ type: "text", text: "Accordion content" }]
2166
+ }
2167
+ ]
2149
2168
  }).run()
2150
2169
  };
2151
2170
  }
2152
2171
  });
2153
- var Dt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports: {} }, qe = { exports: {} }, U = {};
2172
+ var kt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports: {} }, qe = { exports: {} }, F = {};
2154
2173
  /** @license React v16.13.1
2155
2174
  * react-is.production.min.js
2156
2175
  *
@@ -2159,12 +2178,12 @@ var Dt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports
2159
2178
  * This source code is licensed under the MIT license found in the
2160
2179
  * LICENSE file in the root directory of this source tree.
2161
2180
  */
2162
- var tr;
2163
- function Gi() {
2164
- if (tr) return U;
2165
- tr = 1;
2166
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, N = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
2167
- function x(c) {
2181
+ var er;
2182
+ function Ki() {
2183
+ if (er) return F;
2184
+ er = 1;
2185
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
2186
+ function N(c) {
2168
2187
  if (typeof c == "object" && c !== null) {
2169
2188
  var Y = c.$$typeof;
2170
2189
  switch (Y) {
@@ -2175,12 +2194,12 @@ function Gi() {
2175
2194
  case n:
2176
2195
  case a:
2177
2196
  case o:
2178
- case N:
2197
+ case v:
2179
2198
  return c;
2180
2199
  default:
2181
2200
  switch (c = c && c.$$typeof, c) {
2182
2201
  case u:
2183
- case b:
2202
+ case y:
2184
2203
  case A:
2185
2204
  case S:
2186
2205
  case s:
@@ -2195,37 +2214,37 @@ function Gi() {
2195
2214
  }
2196
2215
  }
2197
2216
  function E(c) {
2198
- return x(c) === p;
2217
+ return N(c) === p;
2199
2218
  }
2200
- return U.AsyncMode = m, U.ConcurrentMode = p, U.ContextConsumer = u, U.ContextProvider = s, U.Element = t, U.ForwardRef = b, U.Fragment = n, U.Lazy = A, U.Memo = S, U.Portal = r, U.Profiler = a, U.StrictMode = o, U.Suspense = N, U.isAsyncMode = function(c) {
2201
- return E(c) || x(c) === m;
2202
- }, U.isConcurrentMode = E, U.isContextConsumer = function(c) {
2203
- return x(c) === u;
2204
- }, U.isContextProvider = function(c) {
2205
- return x(c) === s;
2206
- }, U.isElement = function(c) {
2219
+ return F.AsyncMode = m, F.ConcurrentMode = p, F.ContextConsumer = u, F.ContextProvider = s, F.Element = t, F.ForwardRef = y, F.Fragment = n, F.Lazy = A, F.Memo = S, F.Portal = r, F.Profiler = a, F.StrictMode = o, F.Suspense = v, F.isAsyncMode = function(c) {
2220
+ return E(c) || N(c) === m;
2221
+ }, F.isConcurrentMode = E, F.isContextConsumer = function(c) {
2222
+ return N(c) === u;
2223
+ }, F.isContextProvider = function(c) {
2224
+ return N(c) === s;
2225
+ }, F.isElement = function(c) {
2207
2226
  return typeof c == "object" && c !== null && c.$$typeof === t;
2208
- }, U.isForwardRef = function(c) {
2209
- return x(c) === b;
2210
- }, U.isFragment = function(c) {
2211
- return x(c) === n;
2212
- }, U.isLazy = function(c) {
2213
- return x(c) === A;
2214
- }, U.isMemo = function(c) {
2215
- return x(c) === S;
2216
- }, U.isPortal = function(c) {
2217
- return x(c) === r;
2218
- }, U.isProfiler = function(c) {
2219
- return x(c) === a;
2220
- }, U.isStrictMode = function(c) {
2221
- return x(c) === o;
2222
- }, U.isSuspense = function(c) {
2223
- return x(c) === N;
2224
- }, U.isValidElementType = function(c) {
2225
- return typeof c == "string" || typeof c == "function" || c === n || c === p || c === a || c === o || c === N || c === O || typeof c == "object" && c !== null && (c.$$typeof === A || c.$$typeof === S || c.$$typeof === s || c.$$typeof === u || c.$$typeof === b || c.$$typeof === B || c.$$typeof === W || c.$$typeof === v || c.$$typeof === $);
2226
- }, U.typeOf = x, U;
2227
+ }, F.isForwardRef = function(c) {
2228
+ return N(c) === y;
2229
+ }, F.isFragment = function(c) {
2230
+ return N(c) === n;
2231
+ }, F.isLazy = function(c) {
2232
+ return N(c) === A;
2233
+ }, F.isMemo = function(c) {
2234
+ return N(c) === S;
2235
+ }, F.isPortal = function(c) {
2236
+ return N(c) === r;
2237
+ }, F.isProfiler = function(c) {
2238
+ return N(c) === a;
2239
+ }, F.isStrictMode = function(c) {
2240
+ return N(c) === o;
2241
+ }, F.isSuspense = function(c) {
2242
+ return N(c) === v;
2243
+ }, F.isValidElementType = function(c) {
2244
+ return typeof c == "string" || typeof c == "function" || c === n || c === p || c === a || c === o || c === v || c === O || typeof c == "object" && c !== null && (c.$$typeof === A || c.$$typeof === S || c.$$typeof === s || c.$$typeof === u || c.$$typeof === y || c.$$typeof === B || c.$$typeof === W || c.$$typeof === g || c.$$typeof === $);
2245
+ }, F.typeOf = N, F;
2227
2246
  }
2228
- var F = {};
2247
+ var U = {};
2229
2248
  /** @license React v16.13.1
2230
2249
  * react-is.development.js
2231
2250
  *
@@ -2234,33 +2253,33 @@ var F = {};
2234
2253
  * This source code is licensed under the MIT license found in the
2235
2254
  * LICENSE file in the root directory of this source tree.
2236
2255
  */
2237
- var rr;
2238
- function Ji() {
2239
- return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
2240
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, N = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
2241
- function x(h) {
2242
- return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2243
- h === n || h === p || h === a || h === o || h === N || h === O || typeof h == "object" && h !== null && (h.$$typeof === A || h.$$typeof === S || h.$$typeof === s || h.$$typeof === u || h.$$typeof === b || h.$$typeof === B || h.$$typeof === W || h.$$typeof === v || h.$$typeof === $);
2256
+ var tr;
2257
+ function Gi() {
2258
+ return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
2259
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
2260
+ function N(b) {
2261
+ return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2262
+ b === n || b === p || b === a || b === o || b === v || b === O || typeof b == "object" && b !== null && (b.$$typeof === A || b.$$typeof === S || b.$$typeof === s || b.$$typeof === u || b.$$typeof === y || b.$$typeof === B || b.$$typeof === W || b.$$typeof === g || b.$$typeof === $);
2244
2263
  }
2245
- function E(h) {
2246
- if (typeof h == "object" && h !== null) {
2247
- var pe = h.$$typeof;
2264
+ function E(b) {
2265
+ if (typeof b == "object" && b !== null) {
2266
+ var pe = b.$$typeof;
2248
2267
  switch (pe) {
2249
2268
  case t:
2250
- var Re = h.type;
2269
+ var Re = b.type;
2251
2270
  switch (Re) {
2252
2271
  case m:
2253
2272
  case p:
2254
2273
  case n:
2255
2274
  case a:
2256
2275
  case o:
2257
- case N:
2276
+ case v:
2258
2277
  return Re;
2259
2278
  default:
2260
2279
  var ke = Re && Re.$$typeof;
2261
2280
  switch (ke) {
2262
2281
  case u:
2263
- case b:
2282
+ case y:
2264
2283
  case A:
2265
2284
  case S:
2266
2285
  case s:
@@ -2274,62 +2293,62 @@ function Ji() {
2274
2293
  }
2275
2294
  }
2276
2295
  }
2277
- var c = m, Y = p, P = u, Q = s, de = t, fe = b, ye = n, Ee = A, ee = S, Z = r, me = a, oe = o, le = N, ge = !1;
2278
- function Se(h) {
2279
- return ge || (ge = !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.")), f(h) || E(h) === m;
2296
+ var c = m, Y = p, T = u, Q = s, de = t, fe = y, ye = n, Ee = A, ee = S, Z = r, me = a, oe = o, le = v, ge = !1;
2297
+ function Se(b) {
2298
+ return ge || (ge = !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.")), f(b) || E(b) === m;
2280
2299
  }
2281
- function f(h) {
2282
- return E(h) === p;
2300
+ function f(b) {
2301
+ return E(b) === p;
2283
2302
  }
2284
- function g(h) {
2285
- return E(h) === u;
2303
+ function x(b) {
2304
+ return E(b) === u;
2286
2305
  }
2287
- function T(h) {
2288
- return E(h) === s;
2306
+ function P(b) {
2307
+ return E(b) === s;
2289
2308
  }
2290
- function R(h) {
2291
- return typeof h == "object" && h !== null && h.$$typeof === t;
2309
+ function R(b) {
2310
+ return typeof b == "object" && b !== null && b.$$typeof === t;
2292
2311
  }
2293
- function C(h) {
2294
- return E(h) === b;
2312
+ function C(b) {
2313
+ return E(b) === y;
2295
2314
  }
2296
- function z(h) {
2297
- return E(h) === n;
2315
+ function z(b) {
2316
+ return E(b) === n;
2298
2317
  }
2299
- function k(h) {
2300
- return E(h) === A;
2318
+ function k(b) {
2319
+ return E(b) === A;
2301
2320
  }
2302
- function _(h) {
2303
- return E(h) === S;
2321
+ function _(b) {
2322
+ return E(b) === S;
2304
2323
  }
2305
- function j(h) {
2306
- return E(h) === r;
2324
+ function j(b) {
2325
+ return E(b) === r;
2307
2326
  }
2308
- function H(h) {
2309
- return E(h) === a;
2327
+ function H(b) {
2328
+ return E(b) === a;
2310
2329
  }
2311
- function M(h) {
2312
- return E(h) === o;
2330
+ function M(b) {
2331
+ return E(b) === o;
2313
2332
  }
2314
- function te(h) {
2315
- return E(h) === N;
2333
+ function te(b) {
2334
+ return E(b) === v;
2316
2335
  }
2317
- F.AsyncMode = c, F.ConcurrentMode = Y, F.ContextConsumer = P, F.ContextProvider = Q, F.Element = de, F.ForwardRef = fe, F.Fragment = ye, F.Lazy = Ee, F.Memo = ee, F.Portal = Z, F.Profiler = me, F.StrictMode = oe, F.Suspense = le, F.isAsyncMode = Se, F.isConcurrentMode = f, F.isContextConsumer = g, F.isContextProvider = T, F.isElement = R, F.isForwardRef = C, F.isFragment = z, F.isLazy = k, F.isMemo = _, F.isPortal = j, F.isProfiler = H, F.isStrictMode = M, F.isSuspense = te, F.isValidElementType = x, F.typeOf = E;
2318
- }()), F;
2336
+ U.AsyncMode = c, U.ConcurrentMode = Y, U.ContextConsumer = T, U.ContextProvider = Q, U.Element = de, U.ForwardRef = fe, U.Fragment = ye, U.Lazy = Ee, U.Memo = ee, U.Portal = Z, U.Profiler = me, U.StrictMode = oe, U.Suspense = le, U.isAsyncMode = Se, U.isConcurrentMode = f, U.isContextConsumer = x, U.isContextProvider = P, U.isElement = R, U.isForwardRef = C, U.isFragment = z, U.isLazy = k, U.isMemo = _, U.isPortal = j, U.isProfiler = H, U.isStrictMode = M, U.isSuspense = te, U.isValidElementType = N, U.typeOf = E;
2337
+ }()), U;
2319
2338
  }
2320
- var nr;
2339
+ var rr;
2321
2340
  function Cr() {
2322
- return nr || (nr = 1, process.env.NODE_ENV === "production" ? qe.exports = Gi() : qe.exports = Ji()), qe.exports;
2341
+ return rr || (rr = 1, process.env.NODE_ENV === "production" ? qe.exports = Ki() : qe.exports = Gi()), qe.exports;
2323
2342
  }
2324
2343
  /*
2325
2344
  object-assign
2326
2345
  (c) Sindre Sorhus
2327
2346
  @license MIT
2328
2347
  */
2329
- var at, ir;
2330
- function Zi() {
2331
- if (ir) return at;
2332
- ir = 1;
2348
+ var at, nr;
2349
+ function Ji() {
2350
+ if (nr) return at;
2351
+ nr = 1;
2333
2352
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
2334
2353
  function n(a) {
2335
2354
  if (a == null)
@@ -2345,24 +2364,24 @@ function Zi() {
2345
2364
  return !1;
2346
2365
  for (var s = {}, u = 0; u < 10; u++)
2347
2366
  s["_" + String.fromCharCode(u)] = u;
2348
- var m = Object.getOwnPropertyNames(s).map(function(b) {
2349
- return s[b];
2367
+ var m = Object.getOwnPropertyNames(s).map(function(y) {
2368
+ return s[y];
2350
2369
  });
2351
2370
  if (m.join("") !== "0123456789")
2352
2371
  return !1;
2353
2372
  var p = {};
2354
- return "abcdefghijklmnopqrst".split("").forEach(function(b) {
2355
- p[b] = b;
2373
+ return "abcdefghijklmnopqrst".split("").forEach(function(y) {
2374
+ p[y] = y;
2356
2375
  }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
2357
2376
  } catch {
2358
2377
  return !1;
2359
2378
  }
2360
2379
  }
2361
2380
  return at = o() ? Object.assign : function(a, s) {
2362
- for (var u, m = n(a), p, b = 1; b < arguments.length; b++) {
2363
- u = Object(arguments[b]);
2364
- for (var N in u)
2365
- t.call(u, N) && (m[N] = u[N]);
2381
+ for (var u, m = n(a), p, y = 1; y < arguments.length; y++) {
2382
+ u = Object(arguments[y]);
2383
+ for (var v in u)
2384
+ t.call(u, v) && (m[v] = u[v]);
2366
2385
  if (e) {
2367
2386
  p = e(u);
2368
2387
  for (var O = 0; O < p.length; O++)
@@ -2372,25 +2391,25 @@ function Zi() {
2372
2391
  return m;
2373
2392
  }, at;
2374
2393
  }
2375
- var st, or;
2376
- function _t() {
2377
- if (or) return st;
2378
- or = 1;
2394
+ var st, ir;
2395
+ function Dt() {
2396
+ if (ir) return st;
2397
+ ir = 1;
2379
2398
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2380
2399
  return st = e, st;
2381
2400
  }
2382
- var lt, ar;
2401
+ var lt, or;
2383
2402
  function kr() {
2384
- return ar || (ar = 1, lt = Function.call.bind(Object.prototype.hasOwnProperty)), lt;
2403
+ return or || (or = 1, lt = Function.call.bind(Object.prototype.hasOwnProperty)), lt;
2385
2404
  }
2386
- var ct, sr;
2387
- function Qi() {
2388
- if (sr) return ct;
2389
- sr = 1;
2405
+ var ct, ar;
2406
+ function Zi() {
2407
+ if (ar) return ct;
2408
+ ar = 1;
2390
2409
  var e = function() {
2391
2410
  };
2392
2411
  if (process.env.NODE_ENV !== "production") {
2393
- var t = _t(), r = {}, n = kr();
2412
+ var t = Dt(), r = {}, n = kr();
2394
2413
  e = function(a) {
2395
2414
  var s = "Warning: " + a;
2396
2415
  typeof console < "u" && console.error(s);
@@ -2402,27 +2421,27 @@ function Qi() {
2402
2421
  }
2403
2422
  function o(a, s, u, m, p) {
2404
2423
  if (process.env.NODE_ENV !== "production") {
2405
- for (var b in a)
2406
- if (n(a, b)) {
2407
- var N;
2424
+ for (var y in a)
2425
+ if (n(a, y)) {
2426
+ var v;
2408
2427
  try {
2409
- if (typeof a[b] != "function") {
2428
+ if (typeof a[y] != "function") {
2410
2429
  var O = Error(
2411
- (m || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2430
+ (m || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2412
2431
  );
2413
2432
  throw O.name = "Invariant Violation", O;
2414
2433
  }
2415
- N = a[b](s, b, m, u, null, t);
2434
+ v = a[y](s, y, m, u, null, t);
2416
2435
  } catch (A) {
2417
- N = A;
2436
+ v = A;
2418
2437
  }
2419
- if (N && !(N instanceof Error) && e(
2420
- (m || "React class") + ": type specification of " + u + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof N + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2421
- ), N instanceof Error && !(N.message in r)) {
2422
- r[N.message] = !0;
2438
+ if (v && !(v instanceof Error) && e(
2439
+ (m || "React class") + ": type specification of " + u + " `" + y + "` 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)."
2440
+ ), v instanceof Error && !(v.message in r)) {
2441
+ r[v.message] = !0;
2423
2442
  var S = p ? p() : "";
2424
2443
  e(
2425
- "Failed " + u + " type: " + N.message + (S ?? "")
2444
+ "Failed " + u + " type: " + v.message + (S ?? "")
2426
2445
  );
2427
2446
  }
2428
2447
  }
@@ -2432,11 +2451,11 @@ function Qi() {
2432
2451
  process.env.NODE_ENV !== "production" && (r = {});
2433
2452
  }, ct = o, ct;
2434
2453
  }
2435
- var ut, lr;
2436
- function eo() {
2437
- if (lr) return ut;
2438
- lr = 1;
2439
- var e = Cr(), t = Zi(), r = _t(), n = kr(), o = Qi(), a = function() {
2454
+ var ut, sr;
2455
+ function Qi() {
2456
+ if (sr) return ut;
2457
+ sr = 1;
2458
+ var e = Cr(), t = Ji(), r = Dt(), n = kr(), o = Zi(), a = function() {
2440
2459
  };
2441
2460
  process.env.NODE_ENV !== "production" && (a = function(u) {
2442
2461
  var m = "Warning: " + u;
@@ -2450,11 +2469,11 @@ function eo() {
2450
2469
  return null;
2451
2470
  }
2452
2471
  return ut = function(u, m) {
2453
- var p = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
2454
- function N(f) {
2455
- var g = f && (p && f[p] || f[b]);
2456
- if (typeof g == "function")
2457
- return g;
2472
+ var p = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
2473
+ function v(f) {
2474
+ var x = f && (p && f[p] || f[y]);
2475
+ if (typeof x == "function")
2476
+ return x;
2458
2477
  }
2459
2478
  var O = "<<anonymous>>", S = {
2460
2479
  array: W("array"),
@@ -2465,41 +2484,41 @@ function eo() {
2465
2484
  object: W("object"),
2466
2485
  string: W("string"),
2467
2486
  symbol: W("symbol"),
2468
- any: v(),
2469
- arrayOf: x,
2487
+ any: g(),
2488
+ arrayOf: N,
2470
2489
  element: E(),
2471
2490
  elementType: c(),
2472
2491
  instanceOf: Y,
2473
2492
  node: fe(),
2474
2493
  objectOf: Q,
2475
- oneOf: P,
2494
+ oneOf: T,
2476
2495
  oneOfType: de,
2477
2496
  shape: Ee,
2478
2497
  exact: ee
2479
2498
  };
2480
- function A(f, g) {
2481
- return f === g ? f !== 0 || 1 / f === 1 / g : f !== f && g !== g;
2499
+ function A(f, x) {
2500
+ return f === x ? f !== 0 || 1 / f === 1 / x : f !== f && x !== x;
2482
2501
  }
2483
- function $(f, g) {
2484
- this.message = f, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
2502
+ function $(f, x) {
2503
+ this.message = f, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
2485
2504
  }
2486
2505
  $.prototype = Error.prototype;
2487
2506
  function B(f) {
2488
2507
  if (process.env.NODE_ENV !== "production")
2489
- var g = {}, T = 0;
2508
+ var x = {}, P = 0;
2490
2509
  function R(z, k, _, j, H, M, te) {
2491
2510
  if (j = j || O, M = M || _, te !== r) {
2492
2511
  if (m) {
2493
- var h = new Error(
2512
+ var b = new Error(
2494
2513
  "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"
2495
2514
  );
2496
- throw h.name = "Invariant Violation", h;
2515
+ throw b.name = "Invariant Violation", b;
2497
2516
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2498
2517
  var pe = j + ":" + _;
2499
- !g[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
2500
- T < 3 && (a(
2518
+ !x[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
2519
+ P < 3 && (a(
2501
2520
  "You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + j + "`. 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."
2502
- ), g[pe] = !0, T++);
2521
+ ), x[pe] = !0, P++);
2503
2522
  }
2504
2523
  }
2505
2524
  return k[_] == null ? z ? k[_] === null ? new $("The " + H + " `" + M + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new $("The " + H + " `" + M + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : f(k, _, j, H, M);
@@ -2508,8 +2527,8 @@ function eo() {
2508
2527
  return C.isRequired = R.bind(null, !0), C;
2509
2528
  }
2510
2529
  function W(f) {
2511
- function g(T, R, C, z, k, _) {
2512
- var j = T[R], H = oe(j);
2530
+ function x(P, R, C, z, k, _) {
2531
+ var j = P[R], H = oe(j);
2513
2532
  if (H !== f) {
2514
2533
  var M = le(j);
2515
2534
  return new $(
@@ -2519,16 +2538,16 @@ function eo() {
2519
2538
  }
2520
2539
  return null;
2521
2540
  }
2522
- return B(g);
2541
+ return B(x);
2523
2542
  }
2524
- function v() {
2543
+ function g() {
2525
2544
  return B(s);
2526
2545
  }
2527
- function x(f) {
2528
- function g(T, R, C, z, k) {
2546
+ function N(f) {
2547
+ function x(P, R, C, z, k) {
2529
2548
  if (typeof f != "function")
2530
2549
  return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
2531
- var _ = T[R];
2550
+ var _ = P[R];
2532
2551
  if (!Array.isArray(_)) {
2533
2552
  var j = oe(_);
2534
2553
  return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an array."));
@@ -2540,11 +2559,11 @@ function eo() {
2540
2559
  }
2541
2560
  return null;
2542
2561
  }
2543
- return B(g);
2562
+ return B(x);
2544
2563
  }
2545
2564
  function E() {
2546
- function f(g, T, R, C, z) {
2547
- var k = g[T];
2565
+ function f(x, P, R, C, z) {
2566
+ var k = x[P];
2548
2567
  if (!u(k)) {
2549
2568
  var _ = oe(k);
2550
2569
  return new $("Invalid " + C + " `" + z + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement."));
@@ -2554,8 +2573,8 @@ function eo() {
2554
2573
  return B(f);
2555
2574
  }
2556
2575
  function c() {
2557
- function f(g, T, R, C, z) {
2558
- var k = g[T];
2576
+ function f(x, P, R, C, z) {
2577
+ var k = x[P];
2559
2578
  if (!e.isValidElementType(k)) {
2560
2579
  var _ = oe(k);
2561
2580
  return new $("Invalid " + C + " `" + z + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement type."));
@@ -2565,37 +2584,37 @@ function eo() {
2565
2584
  return B(f);
2566
2585
  }
2567
2586
  function Y(f) {
2568
- function g(T, R, C, z, k) {
2569
- if (!(T[R] instanceof f)) {
2570
- var _ = f.name || O, j = Se(T[R]);
2587
+ function x(P, R, C, z, k) {
2588
+ if (!(P[R] instanceof f)) {
2589
+ var _ = f.name || O, j = Se(P[R]);
2571
2590
  return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected ") + ("instance of `" + _ + "`."));
2572
2591
  }
2573
2592
  return null;
2574
2593
  }
2575
- return B(g);
2594
+ return B(x);
2576
2595
  }
2577
- function P(f) {
2596
+ function T(f) {
2578
2597
  if (!Array.isArray(f))
2579
2598
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
2580
2599
  "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])."
2581
2600
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
2582
- function g(T, R, C, z, k) {
2583
- for (var _ = T[R], j = 0; j < f.length; j++)
2601
+ function x(P, R, C, z, k) {
2602
+ for (var _ = P[R], j = 0; j < f.length; j++)
2584
2603
  if (A(_, f[j]))
2585
2604
  return null;
2586
- var H = JSON.stringify(f, function(te, h) {
2587
- var pe = le(h);
2588
- return pe === "symbol" ? String(h) : h;
2605
+ var H = JSON.stringify(f, function(te, b) {
2606
+ var pe = le(b);
2607
+ return pe === "symbol" ? String(b) : b;
2589
2608
  });
2590
2609
  return new $("Invalid " + z + " `" + k + "` of value `" + String(_) + "` " + ("supplied to `" + C + "`, expected one of " + H + "."));
2591
2610
  }
2592
- return B(g);
2611
+ return B(x);
2593
2612
  }
2594
2613
  function Q(f) {
2595
- function g(T, R, C, z, k) {
2614
+ function x(P, R, C, z, k) {
2596
2615
  if (typeof f != "function")
2597
2616
  return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
2598
- var _ = T[R], j = oe(_);
2617
+ var _ = P[R], j = oe(_);
2599
2618
  if (j !== "object")
2600
2619
  return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an object."));
2601
2620
  for (var H in _)
@@ -2606,24 +2625,24 @@ function eo() {
2606
2625
  }
2607
2626
  return null;
2608
2627
  }
2609
- return B(g);
2628
+ return B(x);
2610
2629
  }
2611
2630
  function de(f) {
2612
2631
  if (!Array.isArray(f))
2613
2632
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
2614
- for (var g = 0; g < f.length; g++) {
2615
- var T = f[g];
2616
- if (typeof T != "function")
2633
+ for (var x = 0; x < f.length; x++) {
2634
+ var P = f[x];
2635
+ if (typeof P != "function")
2617
2636
  return a(
2618
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(T) + " at index " + g + "."
2637
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(P) + " at index " + x + "."
2619
2638
  ), s;
2620
2639
  }
2621
2640
  function R(C, z, k, _, j) {
2622
2641
  for (var H = [], M = 0; M < f.length; M++) {
2623
- var te = f[M], h = te(C, z, k, _, j, r);
2624
- if (h == null)
2642
+ var te = f[M], b = te(C, z, k, _, j, r);
2643
+ if (b == null)
2625
2644
  return null;
2626
- h.data && n(h.data, "expectedType") && H.push(h.data.expectedType);
2645
+ b.data && n(b.data, "expectedType") && H.push(b.data.expectedType);
2627
2646
  }
2628
2647
  var pe = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
2629
2648
  return new $("Invalid " + _ + " `" + j + "` supplied to " + ("`" + k + "`" + pe + "."));
@@ -2631,19 +2650,19 @@ function eo() {
2631
2650
  return B(R);
2632
2651
  }
2633
2652
  function fe() {
2634
- function f(g, T, R, C, z) {
2635
- return Z(g[T]) ? null : new $("Invalid " + C + " `" + z + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
2653
+ function f(x, P, R, C, z) {
2654
+ return Z(x[P]) ? null : new $("Invalid " + C + " `" + z + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
2636
2655
  }
2637
2656
  return B(f);
2638
2657
  }
2639
- function ye(f, g, T, R, C) {
2658
+ function ye(f, x, P, R, C) {
2640
2659
  return new $(
2641
- (f || "React class") + ": " + g + " type `" + T + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
2660
+ (f || "React class") + ": " + x + " type `" + P + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
2642
2661
  );
2643
2662
  }
2644
2663
  function Ee(f) {
2645
- function g(T, R, C, z, k) {
2646
- var _ = T[R], j = oe(_);
2664
+ function x(P, R, C, z, k) {
2665
+ var _ = P[R], j = oe(_);
2647
2666
  if (j !== "object")
2648
2667
  return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
2649
2668
  for (var H in f) {
@@ -2656,30 +2675,30 @@ function eo() {
2656
2675
  }
2657
2676
  return null;
2658
2677
  }
2659
- return B(g);
2678
+ return B(x);
2660
2679
  }
2661
2680
  function ee(f) {
2662
- function g(T, R, C, z, k) {
2663
- var _ = T[R], j = oe(_);
2681
+ function x(P, R, C, z, k) {
2682
+ var _ = P[R], j = oe(_);
2664
2683
  if (j !== "object")
2665
2684
  return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
2666
- var H = t({}, T[R], f);
2685
+ var H = t({}, P[R], f);
2667
2686
  for (var M in H) {
2668
2687
  var te = f[M];
2669
2688
  if (n(f, M) && typeof te != "function")
2670
2689
  return ye(C, z, k, M, le(te));
2671
2690
  if (!te)
2672
2691
  return new $(
2673
- "Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(T[R], null, " ") + `
2692
+ "Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(P[R], null, " ") + `
2674
2693
  Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
2675
2694
  );
2676
- var h = te(_, M, C, z, k + "." + M, r);
2677
- if (h)
2678
- return h;
2695
+ var b = te(_, M, C, z, k + "." + M, r);
2696
+ if (b)
2697
+ return b;
2679
2698
  }
2680
2699
  return null;
2681
2700
  }
2682
- return B(g);
2701
+ return B(x);
2683
2702
  }
2684
2703
  function Z(f) {
2685
2704
  switch (typeof f) {
@@ -2694,15 +2713,15 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
2694
2713
  return f.every(Z);
2695
2714
  if (f === null || u(f))
2696
2715
  return !0;
2697
- var g = N(f);
2698
- if (g) {
2699
- var T = g.call(f), R;
2700
- if (g !== f.entries) {
2701
- for (; !(R = T.next()).done; )
2716
+ var x = v(f);
2717
+ if (x) {
2718
+ var P = x.call(f), R;
2719
+ if (x !== f.entries) {
2720
+ for (; !(R = P.next()).done; )
2702
2721
  if (!Z(R.value))
2703
2722
  return !1;
2704
2723
  } else
2705
- for (; !(R = T.next()).done; ) {
2724
+ for (; !(R = P.next()).done; ) {
2706
2725
  var C = R.value;
2707
2726
  if (C && !Z(C[1]))
2708
2727
  return !1;
@@ -2714,37 +2733,37 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
2714
2733
  return !1;
2715
2734
  }
2716
2735
  }
2717
- function me(f, g) {
2718
- return f === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1;
2736
+ function me(f, x) {
2737
+ return f === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
2719
2738
  }
2720
2739
  function oe(f) {
2721
- var g = typeof f;
2722
- return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : me(g, f) ? "symbol" : g;
2740
+ var x = typeof f;
2741
+ return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : me(x, f) ? "symbol" : x;
2723
2742
  }
2724
2743
  function le(f) {
2725
2744
  if (typeof f > "u" || f === null)
2726
2745
  return "" + f;
2727
- var g = oe(f);
2728
- if (g === "object") {
2746
+ var x = oe(f);
2747
+ if (x === "object") {
2729
2748
  if (f instanceof Date)
2730
2749
  return "date";
2731
2750
  if (f instanceof RegExp)
2732
2751
  return "regexp";
2733
2752
  }
2734
- return g;
2753
+ return x;
2735
2754
  }
2736
2755
  function ge(f) {
2737
- var g = le(f);
2738
- switch (g) {
2756
+ var x = le(f);
2757
+ switch (x) {
2739
2758
  case "array":
2740
2759
  case "object":
2741
- return "an " + g;
2760
+ return "an " + x;
2742
2761
  case "boolean":
2743
2762
  case "date":
2744
2763
  case "regexp":
2745
- return "a " + g;
2764
+ return "a " + x;
2746
2765
  default:
2747
- return g;
2766
+ return x;
2748
2767
  }
2749
2768
  }
2750
2769
  function Se(f) {
@@ -2753,18 +2772,18 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
2753
2772
  return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
2754
2773
  }, ut;
2755
2774
  }
2756
- var dt, cr;
2757
- function to() {
2758
- if (cr) return dt;
2759
- cr = 1;
2760
- var e = _t();
2775
+ var dt, lr;
2776
+ function eo() {
2777
+ if (lr) return dt;
2778
+ lr = 1;
2779
+ var e = Dt();
2761
2780
  function t() {
2762
2781
  }
2763
2782
  function r() {
2764
2783
  }
2765
2784
  return r.resetWarningCache = t, dt = function() {
2766
- function n(s, u, m, p, b, N) {
2767
- if (N !== e) {
2785
+ function n(s, u, m, p, y, v) {
2786
+ if (v !== e) {
2768
2787
  var O = new Error(
2769
2788
  "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"
2770
2789
  );
@@ -2802,10 +2821,10 @@ function to() {
2802
2821
  }, dt;
2803
2822
  }
2804
2823
  if (process.env.NODE_ENV !== "production") {
2805
- var ro = Cr(), no = !0;
2806
- xt.exports = eo()(ro.isElement, no);
2824
+ var to = Cr(), ro = !0;
2825
+ xt.exports = Qi()(to.isElement, ro);
2807
2826
  } else
2808
- xt.exports = to()();
2827
+ xt.exports = eo()();
2809
2828
  var Xe = xt.exports;
2810
2829
  function Dr(e) {
2811
2830
  var t, r, n = "";
@@ -2814,38 +2833,38 @@ function Dr(e) {
2814
2833
  else for (t in e) e[t] && (n && (n += " "), n += t);
2815
2834
  return n;
2816
2835
  }
2817
- function ur() {
2836
+ function cr() {
2818
2837
  for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Dr(e)) && (n && (n += " "), n += t);
2819
2838
  return n;
2820
2839
  }
2821
- const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2840
+ const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2822
2841
  __proto__: null,
2823
- clsx: ur,
2824
- default: ur
2825
- }, Symbol.toStringTag, { value: "Module" })), oo = /* @__PURE__ */ On(io);
2842
+ clsx: cr,
2843
+ default: cr
2844
+ }, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ _n(no);
2826
2845
  var K = {}, xe = {};
2827
2846
  Object.defineProperty(xe, "__esModule", {
2828
2847
  value: !0
2829
2848
  });
2830
- xe.dontSetMe = uo;
2831
- xe.findInArray = ao;
2832
- xe.int = co;
2833
- xe.isFunction = so;
2834
- xe.isNum = lo;
2835
- function ao(e, t) {
2849
+ xe.dontSetMe = co;
2850
+ xe.findInArray = oo;
2851
+ xe.int = lo;
2852
+ xe.isFunction = ao;
2853
+ xe.isNum = so;
2854
+ function oo(e, t) {
2836
2855
  for (let r = 0, n = e.length; r < n; r++)
2837
2856
  if (t.apply(t, [e[r], r, e])) return e[r];
2838
2857
  }
2839
- function so(e) {
2858
+ function ao(e) {
2840
2859
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
2841
2860
  }
2842
- function lo(e) {
2861
+ function so(e) {
2843
2862
  return typeof e == "number" && !isNaN(e);
2844
2863
  }
2845
- function co(e) {
2864
+ function lo(e) {
2846
2865
  return parseInt(e, 10);
2847
2866
  }
2848
- function uo(e, t, r) {
2867
+ function co(e, t, r) {
2849
2868
  if (e[t])
2850
2869
  return new Error("Invalid prop ".concat(t, " passed to ").concat(r, " - do not set this, set it on the child."));
2851
2870
  }
@@ -2854,7 +2873,7 @@ Object.defineProperty(Oe, "__esModule", {
2854
2873
  value: !0
2855
2874
  });
2856
2875
  Oe.browserPrefixToKey = Or;
2857
- Oe.browserPrefixToStyle = fo;
2876
+ Oe.browserPrefixToStyle = uo;
2858
2877
  Oe.default = void 0;
2859
2878
  Oe.getPrefix = _r;
2860
2879
  const ft = ["Moz", "Webkit", "O", "ms"];
@@ -2869,12 +2888,12 @@ function _r() {
2869
2888
  return "";
2870
2889
  }
2871
2890
  function Or(e, t) {
2872
- return t ? "".concat(t).concat(mo(e)) : e;
2891
+ return t ? "".concat(t).concat(fo(e)) : e;
2873
2892
  }
2874
- function fo(e, t) {
2893
+ function uo(e, t) {
2875
2894
  return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
2876
2895
  }
2877
- function mo(e) {
2896
+ function fo(e) {
2878
2897
  let t = "", r = !0;
2879
2898
  for (let n = 0; n < e.length; n++)
2880
2899
  r ? (t += e[n].toUpperCase(), r = !1) : e[n] === "-" ? r = !0 : t += e[n];
@@ -2884,25 +2903,25 @@ Oe.default = _r();
2884
2903
  Object.defineProperty(K, "__esModule", {
2885
2904
  value: !0
2886
2905
  });
2887
- K.addClassName = Tr;
2888
- K.addEvent = ho;
2889
- K.addUserSelectStyles = Do;
2890
- K.createCSSTransform = So;
2891
- K.createSVGTransform = wo;
2892
- K.getTouch = Co;
2893
- K.getTouchIdentifier = ko;
2894
- K.getTranslation = Ot;
2895
- K.innerHeight = xo;
2896
- K.innerWidth = No;
2897
- K.matchesSelector = Pr;
2898
- K.matchesSelectorAndParentsTo = bo;
2899
- K.offsetXYFromParent = Eo;
2900
- K.outerHeight = vo;
2901
- K.outerWidth = go;
2906
+ K.addClassName = Pr;
2907
+ K.addEvent = bo;
2908
+ K.addUserSelectStyles = ko;
2909
+ K.createCSSTransform = Eo;
2910
+ K.createSVGTransform = So;
2911
+ K.getTouch = wo;
2912
+ K.getTouchIdentifier = Co;
2913
+ K.getTranslation = _t;
2914
+ K.innerHeight = go;
2915
+ K.innerWidth = xo;
2916
+ K.matchesSelector = Tr;
2917
+ K.matchesSelectorAndParentsTo = po;
2918
+ K.offsetXYFromParent = No;
2919
+ K.outerHeight = yo;
2920
+ K.outerWidth = vo;
2902
2921
  K.removeClassName = jr;
2903
- K.removeEvent = yo;
2904
- K.removeUserSelectStyles = _o;
2905
- var ue = xe, dr = po(Oe);
2922
+ K.removeEvent = ho;
2923
+ K.removeUserSelectStyles = Do;
2924
+ var ue = xe, ur = mo(Oe);
2906
2925
  function Rr(e) {
2907
2926
  if (typeof WeakMap != "function") return null;
2908
2927
  var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
@@ -2910,7 +2929,7 @@ function Rr(e) {
2910
2929
  return n ? r : t;
2911
2930
  })(e);
2912
2931
  }
2913
- function po(e, t) {
2932
+ function mo(e, t) {
2914
2933
  if (e && e.__esModule)
2915
2934
  return e;
2916
2935
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -2927,21 +2946,21 @@ function po(e, t) {
2927
2946
  return n.default = e, r && r.set(e, n), n;
2928
2947
  }
2929
2948
  let Ye = "";
2930
- function Pr(e, t) {
2949
+ function Tr(e, t) {
2931
2950
  return Ye || (Ye = (0, ue.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
2932
2951
  return (0, ue.isFunction)(e[r]);
2933
2952
  })), (0, ue.isFunction)(e[Ye]) ? e[Ye](t) : !1;
2934
2953
  }
2935
- function bo(e, t, r) {
2954
+ function po(e, t, r) {
2936
2955
  let n = e;
2937
2956
  do {
2938
- if (Pr(n, t)) return !0;
2957
+ if (Tr(n, t)) return !0;
2939
2958
  if (n === r) return !1;
2940
2959
  n = n.parentNode;
2941
2960
  } while (n);
2942
2961
  return !1;
2943
2962
  }
2944
- function ho(e, t, r, n) {
2963
+ function bo(e, t, r, n) {
2945
2964
  if (!e) return;
2946
2965
  const o = {
2947
2966
  capture: !0,
@@ -2949,7 +2968,7 @@ function ho(e, t, r, n) {
2949
2968
  };
2950
2969
  e.addEventListener ? e.addEventListener(t, r, o) : e.attachEvent ? e.attachEvent("on" + t, r) : e["on" + t] = r;
2951
2970
  }
2952
- function yo(e, t, r, n) {
2971
+ function ho(e, t, r, n) {
2953
2972
  if (!e) return;
2954
2973
  const o = {
2955
2974
  capture: !0,
@@ -2957,27 +2976,27 @@ function yo(e, t, r, n) {
2957
2976
  };
2958
2977
  e.removeEventListener ? e.removeEventListener(t, r, o) : e.detachEvent ? e.detachEvent("on" + t, r) : e["on" + t] = null;
2959
2978
  }
2960
- function vo(e) {
2979
+ function yo(e) {
2961
2980
  let t = e.clientHeight;
2962
2981
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2963
2982
  return t += (0, ue.int)(r.borderTopWidth), t += (0, ue.int)(r.borderBottomWidth), t;
2964
2983
  }
2965
- function go(e) {
2984
+ function vo(e) {
2966
2985
  let t = e.clientWidth;
2967
2986
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2968
2987
  return t += (0, ue.int)(r.borderLeftWidth), t += (0, ue.int)(r.borderRightWidth), t;
2969
2988
  }
2970
- function xo(e) {
2989
+ function go(e) {
2971
2990
  let t = e.clientHeight;
2972
2991
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2973
2992
  return t -= (0, ue.int)(r.paddingTop), t -= (0, ue.int)(r.paddingBottom), t;
2974
2993
  }
2975
- function No(e) {
2994
+ function xo(e) {
2976
2995
  let t = e.clientWidth;
2977
2996
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
2978
2997
  return t -= (0, ue.int)(r.paddingLeft), t -= (0, ue.int)(r.paddingRight), t;
2979
2998
  }
2980
- function Eo(e, t, r) {
2999
+ function No(e, t, r) {
2981
3000
  const o = t === t.ownerDocument.body ? {
2982
3001
  left: 0,
2983
3002
  top: 0
@@ -2987,16 +3006,16 @@ function Eo(e, t, r) {
2987
3006
  y: s
2988
3007
  };
2989
3008
  }
2990
- function So(e, t) {
2991
- const r = Ot(e, t, "px");
3009
+ function Eo(e, t) {
3010
+ const r = _t(e, t, "px");
2992
3011
  return {
2993
- [(0, dr.browserPrefixToKey)("transform", dr.default)]: r
3012
+ [(0, ur.browserPrefixToKey)("transform", ur.default)]: r
2994
3013
  };
2995
3014
  }
2996
- function wo(e, t) {
2997
- return Ot(e, t, "");
3015
+ function So(e, t) {
3016
+ return _t(e, t, "");
2998
3017
  }
2999
- function Ot(e, t, r) {
3018
+ function _t(e, t, r) {
3000
3019
  let {
3001
3020
  x: n,
3002
3021
  y: o
@@ -3007,21 +3026,21 @@ function Ot(e, t, r) {
3007
3026
  }
3008
3027
  return a;
3009
3028
  }
3010
- function Co(e, t) {
3029
+ function wo(e, t) {
3011
3030
  return e.targetTouches && (0, ue.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, ue.findInArray)(e.changedTouches, (r) => t === r.identifier);
3012
3031
  }
3013
- function ko(e) {
3032
+ function Co(e) {
3014
3033
  if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
3015
3034
  if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
3016
3035
  }
3017
- function Do(e) {
3036
+ function ko(e) {
3018
3037
  if (!e) return;
3019
3038
  let t = e.getElementById("react-draggable-style-el");
3020
3039
  t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
3021
3040
  `, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
3022
- `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && Tr(e.body, "react-draggable-transparent-selection");
3041
+ `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && Pr(e.body, "react-draggable-transparent-selection");
3023
3042
  }
3024
- function _o(e) {
3043
+ function Do(e) {
3025
3044
  if (e)
3026
3045
  try {
3027
3046
  if (e.body && jr(e.body, "react-draggable-transparent-selection"), e.selection)
@@ -3033,7 +3052,7 @@ function _o(e) {
3033
3052
  } catch {
3034
3053
  }
3035
3054
  }
3036
- function Tr(e, t) {
3055
+ function Pr(e, t) {
3037
3056
  e.classList ? e.classList.add(t) : e.className.match(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"))) || (e.className += " ".concat(t));
3038
3057
  }
3039
3058
  function jr(e, t) {
@@ -3043,21 +3062,21 @@ var Ne = {};
3043
3062
  Object.defineProperty(Ne, "__esModule", {
3044
3063
  value: !0
3045
3064
  });
3046
- Ne.canDragX = Po;
3065
+ Ne.canDragX = Ro;
3047
3066
  Ne.canDragY = To;
3048
- Ne.createCoreData = Mo;
3049
- Ne.createDraggableData = Vo;
3050
- Ne.getBoundPosition = Oo;
3051
- Ne.getControlPosition = jo;
3052
- Ne.snapToGrid = Ro;
3067
+ Ne.createCoreData = jo;
3068
+ Ne.createDraggableData = Mo;
3069
+ Ne.getBoundPosition = _o;
3070
+ Ne.getControlPosition = Po;
3071
+ Ne.snapToGrid = Oo;
3053
3072
  var ce = xe, je = K;
3054
- function Oo(e, t, r) {
3073
+ function _o(e, t, r) {
3055
3074
  if (!e.props.bounds) return [t, r];
3056
3075
  let {
3057
3076
  bounds: n
3058
3077
  } = e.props;
3059
- n = typeof n == "string" ? n : Ao(n);
3060
- const o = Rt(e);
3078
+ n = typeof n == "string" ? n : Vo(n);
3079
+ const o = Ot(e);
3061
3080
  if (typeof n == "string") {
3062
3081
  const {
3063
3082
  ownerDocument: a
@@ -3065,34 +3084,34 @@ function Oo(e, t, r) {
3065
3084
  let u;
3066
3085
  if (n === "parent" ? u = o.parentNode : u = a.querySelector(n), !(u instanceof s.HTMLElement))
3067
3086
  throw new Error('Bounds selector "' + n + '" could not find an element.');
3068
- const m = u, p = s.getComputedStyle(o), b = s.getComputedStyle(m);
3087
+ const m = u, p = s.getComputedStyle(o), y = s.getComputedStyle(m);
3069
3088
  n = {
3070
- left: -o.offsetLeft + (0, ce.int)(b.paddingLeft) + (0, ce.int)(p.marginLeft),
3071
- top: -o.offsetTop + (0, ce.int)(b.paddingTop) + (0, ce.int)(p.marginTop),
3072
- right: (0, je.innerWidth)(m) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(b.paddingRight) - (0, ce.int)(p.marginRight),
3073
- bottom: (0, je.innerHeight)(m) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(b.paddingBottom) - (0, ce.int)(p.marginBottom)
3089
+ left: -o.offsetLeft + (0, ce.int)(y.paddingLeft) + (0, ce.int)(p.marginLeft),
3090
+ top: -o.offsetTop + (0, ce.int)(y.paddingTop) + (0, ce.int)(p.marginTop),
3091
+ right: (0, je.innerWidth)(m) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(y.paddingRight) - (0, ce.int)(p.marginRight),
3092
+ bottom: (0, je.innerHeight)(m) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(y.paddingBottom) - (0, ce.int)(p.marginBottom)
3074
3093
  };
3075
3094
  }
3076
3095
  return (0, ce.isNum)(n.right) && (t = Math.min(t, n.right)), (0, ce.isNum)(n.bottom) && (r = Math.min(r, n.bottom)), (0, ce.isNum)(n.left) && (t = Math.max(t, n.left)), (0, ce.isNum)(n.top) && (r = Math.max(r, n.top)), [t, r];
3077
3096
  }
3078
- function Ro(e, t, r) {
3097
+ function Oo(e, t, r) {
3079
3098
  const n = Math.round(t / e[0]) * e[0], o = Math.round(r / e[1]) * e[1];
3080
3099
  return [n, o];
3081
3100
  }
3082
- function Po(e) {
3101
+ function Ro(e) {
3083
3102
  return e.props.axis === "both" || e.props.axis === "x";
3084
3103
  }
3085
3104
  function To(e) {
3086
3105
  return e.props.axis === "both" || e.props.axis === "y";
3087
3106
  }
3088
- function jo(e, t, r) {
3107
+ function Po(e, t, r) {
3089
3108
  const n = typeof t == "number" ? (0, je.getTouch)(e, t) : null;
3090
3109
  if (typeof t == "number" && !n) return null;
3091
- const o = Rt(r), a = r.props.offsetParent || o.offsetParent || o.ownerDocument.body;
3110
+ const o = Ot(r), a = r.props.offsetParent || o.offsetParent || o.ownerDocument.body;
3092
3111
  return (0, je.offsetXYFromParent)(n || e, a, r.props.scale);
3093
3112
  }
3094
- function Mo(e, t, r) {
3095
- const n = !(0, ce.isNum)(e.lastX), o = Rt(e);
3113
+ function jo(e, t, r) {
3114
+ const n = !(0, ce.isNum)(e.lastX), o = Ot(e);
3096
3115
  return n ? {
3097
3116
  node: o,
3098
3117
  deltaX: 0,
@@ -3111,7 +3130,7 @@ function Mo(e, t, r) {
3111
3130
  y: r
3112
3131
  };
3113
3132
  }
3114
- function Vo(e, t) {
3133
+ function Mo(e, t) {
3115
3134
  const r = e.props.scale;
3116
3135
  return {
3117
3136
  node: t.node,
@@ -3123,7 +3142,7 @@ function Vo(e, t) {
3123
3142
  lastY: e.state.y
3124
3143
  };
3125
3144
  }
3126
- function Ao(e) {
3145
+ function Vo(e) {
3127
3146
  return {
3128
3147
  left: e.left,
3129
3148
  top: e.top,
@@ -3131,7 +3150,7 @@ function Ao(e) {
3131
3150
  bottom: e.bottom
3132
3151
  };
3133
3152
  }
3134
- function Rt(e) {
3153
+ function Ot(e) {
3135
3154
  const t = e.findDOMNode();
3136
3155
  if (!t)
3137
3156
  throw new Error("<DraggableCore>: Unmounted during event!");
@@ -3141,15 +3160,15 @@ var Ke = {}, Ge = {};
3141
3160
  Object.defineProperty(Ge, "__esModule", {
3142
3161
  value: !0
3143
3162
  });
3144
- Ge.default = $o;
3145
- function $o() {
3163
+ Ge.default = Ao;
3164
+ function Ao() {
3146
3165
  }
3147
3166
  Object.defineProperty(Ke, "__esModule", {
3148
3167
  value: !0
3149
3168
  });
3150
3169
  Ke.default = void 0;
3151
- var mt = Io(_e), se = Pt(Xe), zo = Pt(Nr), re = K, we = Ne, pt = xe, Ae = Pt(Ge);
3152
- function Pt(e) {
3170
+ var mt = zo(_e), se = Rt(Xe), $o = Rt(Nr), re = K, we = Ne, pt = xe, Ae = Rt(Ge);
3171
+ function Rt(e) {
3153
3172
  return e && e.__esModule ? e : { default: e };
3154
3173
  }
3155
3174
  function Mr(e) {
@@ -3159,7 +3178,7 @@ function Mr(e) {
3159
3178
  return n ? r : t;
3160
3179
  })(e);
3161
3180
  }
3162
- function Io(e, t) {
3181
+ function zo(e, t) {
3163
3182
  if (e && e.__esModule)
3164
3183
  return e;
3165
3184
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -3176,13 +3195,13 @@ function Io(e, t) {
3176
3195
  return n.default = e, r && r.set(e, n), n;
3177
3196
  }
3178
3197
  function ie(e, t, r) {
3179
- return t = Ho(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3198
+ return t = Io(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3180
3199
  }
3181
- function Ho(e) {
3182
- var t = Lo(e, "string");
3200
+ function Io(e) {
3201
+ var t = Ho(e, "string");
3183
3202
  return typeof t == "symbol" ? t : String(t);
3184
3203
  }
3185
- function Lo(e, t) {
3204
+ function Ho(e, t) {
3186
3205
  if (typeof e != "object" || e === null) return e;
3187
3206
  var r = e[Symbol.toPrimitive];
3188
3207
  if (r !== void 0) {
@@ -3290,7 +3309,7 @@ let Ce = ve.mouse, Je = class extends mt.Component {
3290
3309
  // the underlying DOM node ourselves. See the README for more information.
3291
3310
  findDOMNode() {
3292
3311
  var t, r;
3293
- return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (r = this.props) === null || r === void 0 || (r = r.nodeRef) === null || r === void 0 ? void 0 : r.current : zo.default.findDOMNode(this);
3312
+ return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (r = this.props) === null || r === void 0 || (r = r.nodeRef) === null || r === void 0 ? void 0 : r.current : $o.default.findDOMNode(this);
3294
3313
  }
3295
3314
  render() {
3296
3315
  return /* @__PURE__ */ mt.cloneElement(mt.Children.only(this.props.children), {
@@ -3454,67 +3473,67 @@ ie(Je, "defaultProps", {
3454
3473
  return m.default;
3455
3474
  }
3456
3475
  }), e.default = void 0;
3457
- var t = O(_e), r = b(Xe), n = b(Nr), o = b(oo), a = K, s = Ne, u = xe, m = b(Ke), p = b(Ge);
3458
- function b(v) {
3459
- return v && v.__esModule ? v : { default: v };
3476
+ var t = O(_e), r = y(Xe), n = y(Nr), o = y(io), a = K, s = Ne, u = xe, m = y(Ke), p = y(Ge);
3477
+ function y(g) {
3478
+ return g && g.__esModule ? g : { default: g };
3460
3479
  }
3461
- function N(v) {
3480
+ function v(g) {
3462
3481
  if (typeof WeakMap != "function") return null;
3463
- var x = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
3464
- return (N = function(c) {
3465
- return c ? E : x;
3466
- })(v);
3482
+ var N = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
3483
+ return (v = function(c) {
3484
+ return c ? E : N;
3485
+ })(g);
3467
3486
  }
3468
- function O(v, x) {
3469
- if (v && v.__esModule)
3470
- return v;
3471
- if (v === null || typeof v != "object" && typeof v != "function")
3472
- return { default: v };
3473
- var E = N(x);
3474
- if (E && E.has(v))
3475
- return E.get(v);
3487
+ function O(g, N) {
3488
+ if (g && g.__esModule)
3489
+ return g;
3490
+ if (g === null || typeof g != "object" && typeof g != "function")
3491
+ return { default: g };
3492
+ var E = v(N);
3493
+ if (E && E.has(g))
3494
+ return E.get(g);
3476
3495
  var c = {}, Y = Object.defineProperty && Object.getOwnPropertyDescriptor;
3477
- for (var P in v)
3478
- if (P !== "default" && Object.prototype.hasOwnProperty.call(v, P)) {
3479
- var Q = Y ? Object.getOwnPropertyDescriptor(v, P) : null;
3480
- Q && (Q.get || Q.set) ? Object.defineProperty(c, P, Q) : c[P] = v[P];
3496
+ for (var T in g)
3497
+ if (T !== "default" && Object.prototype.hasOwnProperty.call(g, T)) {
3498
+ var Q = Y ? Object.getOwnPropertyDescriptor(g, T) : null;
3499
+ Q && (Q.get || Q.set) ? Object.defineProperty(c, T, Q) : c[T] = g[T];
3481
3500
  }
3482
- return c.default = v, E && E.set(v, c), c;
3501
+ return c.default = g, E && E.set(g, c), c;
3483
3502
  }
3484
3503
  function S() {
3485
- return S = Object.assign ? Object.assign.bind() : function(v) {
3486
- for (var x = 1; x < arguments.length; x++) {
3487
- var E = arguments[x];
3504
+ return S = Object.assign ? Object.assign.bind() : function(g) {
3505
+ for (var N = 1; N < arguments.length; N++) {
3506
+ var E = arguments[N];
3488
3507
  for (var c in E)
3489
- Object.prototype.hasOwnProperty.call(E, c) && (v[c] = E[c]);
3508
+ Object.prototype.hasOwnProperty.call(E, c) && (g[c] = E[c]);
3490
3509
  }
3491
- return v;
3510
+ return g;
3492
3511
  }, S.apply(this, arguments);
3493
3512
  }
3494
- function A(v, x, E) {
3495
- return x = $(x), x in v ? Object.defineProperty(v, x, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : v[x] = E, v;
3513
+ function A(g, N, E) {
3514
+ return N = $(N), N in g ? Object.defineProperty(g, N, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : g[N] = E, g;
3496
3515
  }
3497
- function $(v) {
3498
- var x = B(v, "string");
3499
- return typeof x == "symbol" ? x : String(x);
3516
+ function $(g) {
3517
+ var N = B(g, "string");
3518
+ return typeof N == "symbol" ? N : String(N);
3500
3519
  }
3501
- function B(v, x) {
3502
- if (typeof v != "object" || v === null) return v;
3503
- var E = v[Symbol.toPrimitive];
3520
+ function B(g, N) {
3521
+ if (typeof g != "object" || g === null) return g;
3522
+ var E = g[Symbol.toPrimitive];
3504
3523
  if (E !== void 0) {
3505
- var c = E.call(v, x || "default");
3524
+ var c = E.call(g, N || "default");
3506
3525
  if (typeof c != "object") return c;
3507
3526
  throw new TypeError("@@toPrimitive must return a primitive value.");
3508
3527
  }
3509
- return (x === "string" ? String : Number)(v);
3528
+ return (N === "string" ? String : Number)(g);
3510
3529
  }
3511
3530
  class W extends t.Component {
3512
3531
  // React 16.3+
3513
3532
  // Arity (props, state)
3514
- static getDerivedStateFromProps(x, E) {
3533
+ static getDerivedStateFromProps(N, E) {
3515
3534
  let {
3516
3535
  position: c
3517
- } = x, {
3536
+ } = N, {
3518
3537
  prevPropsPosition: Y
3519
3538
  } = E;
3520
3539
  return c && (!Y || c.x !== Y.x || c.y !== Y.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
@@ -3528,8 +3547,8 @@ ie(Je, "defaultProps", {
3528
3547
  }
3529
3548
  }) : null;
3530
3549
  }
3531
- constructor(x) {
3532
- super(x), A(this, "onDragStart", (E, c) => {
3550
+ constructor(N) {
3551
+ super(N), A(this, "onDragStart", (E, c) => {
3533
3552
  if ((0, p.default)("Draggable: onDragStart: %j", c), this.props.onStart(E, (0, s.createDraggableData)(this, c)) === !1) return !1;
3534
3553
  this.setState({
3535
3554
  dragging: !0,
@@ -3538,7 +3557,7 @@ ie(Je, "defaultProps", {
3538
3557
  }), A(this, "onDrag", (E, c) => {
3539
3558
  if (!this.state.dragging) return !1;
3540
3559
  (0, p.default)("Draggable: onDrag: %j", c);
3541
- const Y = (0, s.createDraggableData)(this, c), P = {
3560
+ const Y = (0, s.createDraggableData)(this, c), T = {
3542
3561
  x: Y.x,
3543
3562
  y: Y.y,
3544
3563
  slackX: 0,
@@ -3548,17 +3567,17 @@ ie(Je, "defaultProps", {
3548
3567
  const {
3549
3568
  x: de,
3550
3569
  y: fe
3551
- } = P;
3552
- P.x += this.state.slackX, P.y += this.state.slackY;
3553
- const [ye, Ee] = (0, s.getBoundPosition)(this, P.x, P.y);
3554
- P.x = ye, P.y = Ee, P.slackX = this.state.slackX + (de - P.x), P.slackY = this.state.slackY + (fe - P.y), Y.x = P.x, Y.y = P.y, Y.deltaX = P.x - this.state.x, Y.deltaY = P.y - this.state.y;
3570
+ } = T;
3571
+ T.x += this.state.slackX, T.y += this.state.slackY;
3572
+ const [ye, Ee] = (0, s.getBoundPosition)(this, T.x, T.y);
3573
+ T.x = ye, T.y = Ee, T.slackX = this.state.slackX + (de - T.x), T.slackY = this.state.slackY + (fe - T.y), Y.x = T.x, Y.y = T.y, Y.deltaX = T.x - this.state.x, Y.deltaY = T.y - this.state.y;
3555
3574
  }
3556
3575
  if (this.props.onDrag(E, Y) === !1) return !1;
3557
- this.setState(P);
3576
+ this.setState(T);
3558
3577
  }), A(this, "onDragStop", (E, c) => {
3559
3578
  if (!this.state.dragging || this.props.onStop(E, (0, s.createDraggableData)(this, c)) === !1) return !1;
3560
3579
  (0, p.default)("Draggable: onDragStop: %j", c);
3561
- const P = {
3580
+ const T = {
3562
3581
  dragging: !1,
3563
3582
  slackX: 0,
3564
3583
  slackY: 0
@@ -3568,26 +3587,26 @@ ie(Je, "defaultProps", {
3568
3587
  x: de,
3569
3588
  y: fe
3570
3589
  } = this.props.position;
3571
- P.x = de, P.y = fe;
3590
+ T.x = de, T.y = fe;
3572
3591
  }
3573
- this.setState(P);
3592
+ this.setState(T);
3574
3593
  }), this.state = {
3575
3594
  // Whether or not we are currently dragging.
3576
3595
  dragging: !1,
3577
3596
  // Whether or not we have been dragged before.
3578
3597
  dragged: !1,
3579
3598
  // Current transform x and y.
3580
- x: x.position ? x.position.x : x.defaultPosition.x,
3581
- y: x.position ? x.position.y : x.defaultPosition.y,
3599
+ x: N.position ? N.position.x : N.defaultPosition.x,
3600
+ y: N.position ? N.position.y : N.defaultPosition.y,
3582
3601
  prevPropsPosition: {
3583
- ...x.position
3602
+ ...N.position
3584
3603
  },
3585
3604
  // Used for compensating for out-of-bounds drags
3586
3605
  slackX: 0,
3587
3606
  slackY: 0,
3588
3607
  // Can only determine if SVG after mounting
3589
3608
  isElementSVG: !1
3590
- }, x.position && !(x.onDrag || x.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
3609
+ }, N.position && !(N.onDrag || N.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
3591
3610
  }
3592
3611
  componentDidMount() {
3593
3612
  typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
@@ -3602,16 +3621,16 @@ ie(Je, "defaultProps", {
3602
3621
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
3603
3622
  // the underlying DOM node ourselves. See the README for more information.
3604
3623
  findDOMNode() {
3605
- var x, E;
3606
- return (x = (E = this.props) === null || E === void 0 || (E = E.nodeRef) === null || E === void 0 ? void 0 : E.current) !== null && x !== void 0 ? x : n.default.findDOMNode(this);
3624
+ var N, E;
3625
+ return (N = (E = this.props) === null || E === void 0 || (E = E.nodeRef) === null || E === void 0 ? void 0 : E.current) !== null && N !== void 0 ? N : n.default.findDOMNode(this);
3607
3626
  }
3608
3627
  render() {
3609
3628
  const {
3610
- axis: x,
3629
+ axis: N,
3611
3630
  bounds: E,
3612
3631
  children: c,
3613
3632
  defaultPosition: Y,
3614
- defaultClassName: P,
3633
+ defaultClassName: T,
3615
3634
  defaultClassNameDragging: Q,
3616
3635
  defaultClassNameDragged: de,
3617
3636
  position: fe,
@@ -3627,7 +3646,7 @@ ie(Je, "defaultProps", {
3627
3646
  y: (0, s.canDragY)(this) && le ? this.state.y : ge.y
3628
3647
  };
3629
3648
  this.state.isElementSVG ? me = (0, a.createSVGTransform)(Se, ye) : Z = (0, a.createCSSTransform)(Se, ye);
3630
- const f = (0, o.default)(c.props.className || "", P, {
3649
+ const f = (0, o.default)(c.props.className || "", T, {
3631
3650
  [Q]: this.state.dragging,
3632
3651
  [de]: this.state.dragged
3633
3652
  });
@@ -3768,19 +3787,19 @@ ie(Je, "defaultProps", {
3768
3787
  })(wr);
3769
3788
  const {
3770
3789
  default: Vr,
3771
- DraggableCore: Wo
3790
+ DraggableCore: Lo
3772
3791
  } = wr;
3773
3792
  Be.exports = Vr;
3774
3793
  Be.exports.default = Vr;
3775
- Be.exports.DraggableCore = Wo;
3776
- var qo = Be.exports, Tt = {};
3794
+ Be.exports.DraggableCore = Lo;
3795
+ var Wo = Be.exports, Tt = {};
3777
3796
  Tt.__esModule = !0;
3778
- Tt.cloneElement = Ko;
3779
- var Yo = Uo(_e);
3780
- function Uo(e) {
3797
+ Tt.cloneElement = Xo;
3798
+ var qo = Yo(_e);
3799
+ function Yo(e) {
3781
3800
  return e && e.__esModule ? e : { default: e };
3782
3801
  }
3783
- function fr(e, t) {
3802
+ function dr(e, t) {
3784
3803
  var r = Object.keys(e);
3785
3804
  if (Object.getOwnPropertySymbols) {
3786
3805
  var n = Object.getOwnPropertySymbols(e);
@@ -3790,25 +3809,25 @@ function fr(e, t) {
3790
3809
  }
3791
3810
  return r;
3792
3811
  }
3793
- function mr(e) {
3812
+ function fr(e) {
3794
3813
  for (var t = 1; t < arguments.length; t++) {
3795
3814
  var r = arguments[t] != null ? arguments[t] : {};
3796
- t % 2 ? fr(Object(r), !0).forEach(function(n) {
3815
+ t % 2 ? dr(Object(r), !0).forEach(function(n) {
3797
3816
  Fo(e, n, r[n]);
3798
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fr(Object(r)).forEach(function(n) {
3817
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : dr(Object(r)).forEach(function(n) {
3799
3818
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
3800
3819
  });
3801
3820
  }
3802
3821
  return e;
3803
3822
  }
3804
3823
  function Fo(e, t, r) {
3805
- return t = Bo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3824
+ return t = Uo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
3806
3825
  }
3807
- function Bo(e) {
3808
- var t = Xo(e, "string");
3826
+ function Uo(e) {
3827
+ var t = Bo(e, "string");
3809
3828
  return typeof t == "symbol" ? t : String(t);
3810
3829
  }
3811
- function Xo(e, t) {
3830
+ function Bo(e, t) {
3812
3831
  if (typeof e != "object" || e === null) return e;
3813
3832
  var r = e[Symbol.toPrimitive];
3814
3833
  if (r !== void 0) {
@@ -3818,17 +3837,17 @@ function Xo(e, t) {
3818
3837
  }
3819
3838
  return (t === "string" ? String : Number)(e);
3820
3839
  }
3821
- function Ko(e, t) {
3822
- return t.style && e.props.style && (t.style = mr(mr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ Yo.default.cloneElement(e, t);
3840
+ function Xo(e, t) {
3841
+ return t.style && e.props.style && (t.style = fr(fr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ qo.default.cloneElement(e, t);
3823
3842
  }
3824
3843
  var Ie = {};
3825
3844
  Ie.__esModule = !0;
3826
3845
  Ie.resizableProps = void 0;
3827
- var D = Go(Xe);
3828
- function Go(e) {
3846
+ var D = Ko(Xe);
3847
+ function Ko(e) {
3829
3848
  return e && e.__esModule ? e : { default: e };
3830
3849
  }
3831
- var Jo = {
3850
+ var Go = {
3832
3851
  /*
3833
3852
  * Restricts resizing to a particular axis (default: 'both')
3834
3853
  * 'both' - allows resizing by width or height
@@ -3933,10 +3952,10 @@ var Jo = {
3933
3952
  return D.default.number.apply(D.default, r);
3934
3953
  }
3935
3954
  };
3936
- Ie.resizableProps = Jo;
3955
+ Ie.resizableProps = Go;
3937
3956
  ze.__esModule = !0;
3938
3957
  ze.default = void 0;
3939
- var $e = ra(_e), Zo = qo, Qo = Tt, ea = Ie, ta = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
3958
+ var $e = ta(_e), Jo = Wo, Zo = Tt, Qo = Ie, ea = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
3940
3959
  function Ar(e) {
3941
3960
  if (typeof WeakMap != "function") return null;
3942
3961
  var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
@@ -3944,7 +3963,7 @@ function Ar(e) {
3944
3963
  return o ? r : t;
3945
3964
  })(e);
3946
3965
  }
3947
- function ra(e, t) {
3966
+ function ta(e, t) {
3948
3967
  if (e && e.__esModule)
3949
3968
  return e;
3950
3969
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -3970,14 +3989,14 @@ function Nt() {
3970
3989
  return e;
3971
3990
  }, Nt.apply(this, arguments);
3972
3991
  }
3973
- function na(e, t) {
3992
+ function ra(e, t) {
3974
3993
  if (e == null) return {};
3975
3994
  var r = {}, n = Object.keys(e), o, a;
3976
3995
  for (a = 0; a < n.length; a++)
3977
3996
  o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
3978
3997
  return r;
3979
3998
  }
3980
- function pr(e, t) {
3999
+ function mr(e, t) {
3981
4000
  var r = Object.keys(e);
3982
4001
  if (Object.getOwnPropertySymbols) {
3983
4002
  var n = Object.getOwnPropertySymbols(e);
@@ -3990,22 +4009,22 @@ function pr(e, t) {
3990
4009
  function bt(e) {
3991
4010
  for (var t = 1; t < arguments.length; t++) {
3992
4011
  var r = arguments[t] != null ? arguments[t] : {};
3993
- t % 2 ? pr(Object(r), !0).forEach(function(n) {
3994
- ia(e, n, r[n]);
3995
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
4012
+ t % 2 ? mr(Object(r), !0).forEach(function(n) {
4013
+ na(e, n, r[n]);
4014
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mr(Object(r)).forEach(function(n) {
3996
4015
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
3997
4016
  });
3998
4017
  }
3999
4018
  return e;
4000
4019
  }
4001
- function ia(e, t, r) {
4002
- return t = oa(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4020
+ function na(e, t, r) {
4021
+ return t = ia(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4003
4022
  }
4004
- function oa(e) {
4005
- var t = aa(e, "string");
4023
+ function ia(e) {
4024
+ var t = oa(e, "string");
4006
4025
  return typeof t == "symbol" ? t : String(t);
4007
4026
  }
4008
- function aa(e, t) {
4027
+ function oa(e, t) {
4009
4028
  if (typeof e != "object" || e === null) return e;
4010
4029
  var r = e[Symbol.toPrimitive];
4011
4030
  if (r !== void 0) {
@@ -4015,7 +4034,7 @@ function aa(e, t) {
4015
4034
  }
4016
4035
  return (t === "string" ? String : Number)(e);
4017
4036
  }
4018
- function sa(e, t) {
4037
+ function aa(e, t) {
4019
4038
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Et(e, t);
4020
4039
  }
4021
4040
  function Et(e, t) {
@@ -4023,8 +4042,8 @@ function Et(e, t) {
4023
4042
  return n.__proto__ = o, n;
4024
4043
  }, Et(e, t);
4025
4044
  }
4026
- var jt = /* @__PURE__ */ function(e) {
4027
- sa(t, e);
4045
+ var Pt = /* @__PURE__ */ function(e) {
4046
+ aa(t, e);
4028
4047
  function t() {
4029
4048
  for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
4030
4049
  a[s] = arguments[s];
@@ -4039,15 +4058,15 @@ var jt = /* @__PURE__ */ function(e) {
4039
4058
  var s = this.props, u = s.minConstraints, m = s.maxConstraints, p = s.lockAspectRatio;
4040
4059
  if (!u && !m && !p) return [o, a];
4041
4060
  if (p) {
4042
- var b = this.props.width / this.props.height, N = o - this.props.width, O = a - this.props.height;
4043
- Math.abs(N) > Math.abs(O * b) ? a = o / b : o = a * b;
4061
+ var y = this.props.width / this.props.height, v = o - this.props.width, O = a - this.props.height;
4062
+ Math.abs(v) > Math.abs(O * y) ? a = o / y : o = a * y;
4044
4063
  }
4045
4064
  var S = o, A = a, $ = this.slack || [0, 0], B = $[0], W = $[1];
4046
4065
  return o += B, a += W, u && (o = Math.max(u[0], o), a = Math.max(u[1], a)), m && (o = Math.min(m[0], o), a = Math.min(m[1], a)), this.slack = [B + (S - o), W + (A - a)], [o, a];
4047
4066
  }, r.resizeHandler = function(o, a) {
4048
4067
  var s = this;
4049
4068
  return function(u, m) {
4050
- var p = m.node, b = m.deltaX, N = m.deltaY;
4069
+ var p = m.node, y = m.deltaX, v = m.deltaY;
4051
4070
  o === "onResizeStart" && s.resetData();
4052
4071
  var O = (s.props.axis === "both" || s.props.axis === "x") && a !== "n" && a !== "s", S = (s.props.axis === "both" || s.props.axis === "y") && a !== "e" && a !== "w";
4053
4072
  if (!(!O && !S)) {
@@ -4055,21 +4074,21 @@ var jt = /* @__PURE__ */ function(e) {
4055
4074
  if (s.lastHandleRect != null) {
4056
4075
  if ($ === "w") {
4057
4076
  var W = B.left - s.lastHandleRect.left;
4058
- b += W;
4077
+ y += W;
4059
4078
  }
4060
4079
  if (A === "n") {
4061
- var v = B.top - s.lastHandleRect.top;
4062
- N += v;
4080
+ var g = B.top - s.lastHandleRect.top;
4081
+ v += g;
4063
4082
  }
4064
4083
  }
4065
- s.lastHandleRect = B, $ === "w" && (b = -b), A === "n" && (N = -N);
4066
- var x = s.props.width + (O ? b / s.props.transformScale : 0), E = s.props.height + (S ? N / s.props.transformScale : 0), c = s.runConstraints(x, E);
4067
- x = c[0], E = c[1];
4068
- var Y = x !== s.props.width || E !== s.props.height, P = typeof s.props[o] == "function" ? s.props[o] : null, Q = o === "onResize" && !Y;
4069
- P && !Q && (u.persist == null || u.persist(), P(u, {
4084
+ s.lastHandleRect = B, $ === "w" && (y = -y), A === "n" && (v = -v);
4085
+ var N = s.props.width + (O ? y / s.props.transformScale : 0), E = s.props.height + (S ? v / s.props.transformScale : 0), c = s.runConstraints(N, E);
4086
+ N = c[0], E = c[1];
4087
+ var Y = N !== s.props.width || E !== s.props.height, T = typeof s.props[o] == "function" ? s.props[o] : null, Q = o === "onResize" && !Y;
4088
+ T && !Q && (u.persist == null || u.persist(), T(u, {
4070
4089
  node: p,
4071
4090
  size: {
4072
- width: x,
4091
+ width: N,
4073
4092
  height: E
4074
4093
  },
4075
4094
  handle: a
@@ -4096,25 +4115,25 @@ var jt = /* @__PURE__ */ function(e) {
4096
4115
  a.width, a.height, a.handle, a.handleSize, a.lockAspectRatio, a.axis, a.minConstraints, a.maxConstraints, a.onResize, a.onResizeStop, a.onResizeStart;
4097
4116
  var p = a.resizeHandles;
4098
4117
  a.transformScale;
4099
- var b = na(a, ta);
4100
- return (0, Qo.cloneElement)(s, bt(bt({}, b), {}, {
4118
+ var y = ra(a, ea);
4119
+ return (0, Zo.cloneElement)(s, bt(bt({}, y), {}, {
4101
4120
  className: (u ? u + " " : "") + "react-resizable",
4102
- children: [].concat(s.props.children, p.map(function(N) {
4103
- var O, S = (O = o.handleRefs[N]) != null ? O : o.handleRefs[N] = /* @__PURE__ */ $e.createRef();
4104
- return /* @__PURE__ */ $e.createElement(Zo.DraggableCore, Nt({}, m, {
4121
+ children: [].concat(s.props.children, p.map(function(v) {
4122
+ var O, S = (O = o.handleRefs[v]) != null ? O : o.handleRefs[v] = /* @__PURE__ */ $e.createRef();
4123
+ return /* @__PURE__ */ $e.createElement(Jo.DraggableCore, Nt({}, m, {
4105
4124
  nodeRef: S,
4106
- key: "resizableHandle-" + N,
4107
- onStop: o.resizeHandler("onResizeStop", N),
4108
- onStart: o.resizeHandler("onResizeStart", N),
4109
- onDrag: o.resizeHandler("onResize", N)
4110
- }), o.renderResizeHandle(N, S));
4125
+ key: "resizableHandle-" + v,
4126
+ onStop: o.resizeHandler("onResizeStop", v),
4127
+ onStart: o.resizeHandler("onResizeStart", v),
4128
+ onDrag: o.resizeHandler("onResize", v)
4129
+ }), o.renderResizeHandle(v, S));
4111
4130
  }))
4112
4131
  }));
4113
4132
  }, t;
4114
4133
  }($e.Component);
4115
- ze.default = jt;
4116
- jt.propTypes = ea.resizableProps;
4117
- jt.defaultProps = {
4134
+ ze.default = Pt;
4135
+ Pt.propTypes = Qo.resizableProps;
4136
+ Pt.defaultProps = {
4118
4137
  axis: "both",
4119
4138
  handleSize: [20, 20],
4120
4139
  lockAspectRatio: !1,
@@ -4126,7 +4145,7 @@ jt.defaultProps = {
4126
4145
  var Ze = {};
4127
4146
  Ze.__esModule = !0;
4128
4147
  Ze.default = void 0;
4129
- var ht = fa(_e), la = $r(Xe), ca = $r(ze), ua = Ie, da = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
4148
+ var ht = da(_e), sa = $r(Xe), la = $r(ze), ca = Ie, ua = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
4130
4149
  function $r(e) {
4131
4150
  return e && e.__esModule ? e : { default: e };
4132
4151
  }
@@ -4137,7 +4156,7 @@ function zr(e) {
4137
4156
  return o ? r : t;
4138
4157
  })(e);
4139
4158
  }
4140
- function fa(e, t) {
4159
+ function da(e, t) {
4141
4160
  if (e && e.__esModule)
4142
4161
  return e;
4143
4162
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -4163,7 +4182,7 @@ function St() {
4163
4182
  return e;
4164
4183
  }, St.apply(this, arguments);
4165
4184
  }
4166
- function br(e, t) {
4185
+ function pr(e, t) {
4167
4186
  var r = Object.keys(e);
4168
4187
  if (Object.getOwnPropertySymbols) {
4169
4188
  var n = Object.getOwnPropertySymbols(e);
@@ -4173,25 +4192,25 @@ function br(e, t) {
4173
4192
  }
4174
4193
  return r;
4175
4194
  }
4176
- function Fe(e) {
4195
+ function Ue(e) {
4177
4196
  for (var t = 1; t < arguments.length; t++) {
4178
4197
  var r = arguments[t] != null ? arguments[t] : {};
4179
- t % 2 ? br(Object(r), !0).forEach(function(n) {
4180
- ma(e, n, r[n]);
4181
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : br(Object(r)).forEach(function(n) {
4198
+ t % 2 ? pr(Object(r), !0).forEach(function(n) {
4199
+ fa(e, n, r[n]);
4200
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
4182
4201
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
4183
4202
  });
4184
4203
  }
4185
4204
  return e;
4186
4205
  }
4187
- function ma(e, t, r) {
4188
- return t = pa(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4206
+ function fa(e, t, r) {
4207
+ return t = ma(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
4189
4208
  }
4190
- function pa(e) {
4191
- var t = ba(e, "string");
4209
+ function ma(e) {
4210
+ var t = pa(e, "string");
4192
4211
  return typeof t == "symbol" ? t : String(t);
4193
4212
  }
4194
- function ba(e, t) {
4213
+ function pa(e, t) {
4195
4214
  if (typeof e != "object" || e === null) return e;
4196
4215
  var r = e[Symbol.toPrimitive];
4197
4216
  if (r !== void 0) {
@@ -4201,14 +4220,14 @@ function ba(e, t) {
4201
4220
  }
4202
4221
  return (t === "string" ? String : Number)(e);
4203
4222
  }
4204
- function ha(e, t) {
4223
+ function ba(e, t) {
4205
4224
  if (e == null) return {};
4206
4225
  var r = {}, n = Object.keys(e), o, a;
4207
4226
  for (a = 0; a < n.length; a++)
4208
4227
  o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
4209
4228
  return r;
4210
4229
  }
4211
- function ya(e, t) {
4230
+ function ha(e, t) {
4212
4231
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, wt(e, t);
4213
4232
  }
4214
4233
  function wt(e, t) {
@@ -4217,7 +4236,7 @@ function wt(e, t) {
4217
4236
  }, wt(e, t);
4218
4237
  }
4219
4238
  var Ir = /* @__PURE__ */ function(e) {
4220
- ya(t, e);
4239
+ ha(t, e);
4221
4240
  function t() {
4222
4241
  for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
4223
4242
  a[s] = arguments[s];
@@ -4245,18 +4264,18 @@ var Ir = /* @__PURE__ */ function(e) {
4245
4264
  return r.render = function() {
4246
4265
  var o = this.props, a = o.handle, s = o.handleSize;
4247
4266
  o.onResize;
4248
- var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts, b = o.minConstraints, N = o.maxConstraints, O = o.lockAspectRatio, S = o.axis;
4267
+ var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts, y = o.minConstraints, v = o.maxConstraints, O = o.lockAspectRatio, S = o.axis;
4249
4268
  o.width, o.height;
4250
- var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ha(o, da);
4251
- return /* @__PURE__ */ ht.createElement(ca.default, {
4269
+ var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ba(o, ua);
4270
+ return /* @__PURE__ */ ht.createElement(la.default, {
4252
4271
  axis: S,
4253
4272
  draggableOpts: p,
4254
4273
  handle: a,
4255
4274
  handleSize: s,
4256
4275
  height: this.state.height,
4257
4276
  lockAspectRatio: O,
4258
- maxConstraints: N,
4259
- minConstraints: b,
4277
+ maxConstraints: v,
4278
+ minConstraints: y,
4260
4279
  onResizeStart: u,
4261
4280
  onResize: this.onResize,
4262
4281
  onResizeStop: m,
@@ -4264,7 +4283,7 @@ var Ir = /* @__PURE__ */ function(e) {
4264
4283
  transformScale: B,
4265
4284
  width: this.state.width
4266
4285
  }, /* @__PURE__ */ ht.createElement("div", St({}, W, {
4267
- style: Fe(Fe({}, $), {}, {
4286
+ style: Ue(Ue({}, $), {}, {
4268
4287
  width: this.state.width + "px",
4269
4288
  height: this.state.height + "px"
4270
4289
  })
@@ -4272,51 +4291,51 @@ var Ir = /* @__PURE__ */ function(e) {
4272
4291
  }, t;
4273
4292
  }(ht.Component);
4274
4293
  Ze.default = Ir;
4275
- Ir.propTypes = Fe(Fe({}, ua.resizableProps), {}, {
4276
- children: la.default.element
4294
+ Ir.propTypes = Ue(Ue({}, ca.resizableProps), {}, {
4295
+ children: sa.default.element
4277
4296
  });
4278
- Dt.exports = function() {
4297
+ kt.exports = function() {
4279
4298
  throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
4280
4299
  };
4281
- Dt.exports.Resizable = ze.default;
4282
- var va = Dt.exports.ResizableBox = Ze.default;
4283
- const ga = (e) => {
4284
- const { editor: t } = Ct();
4285
- if (!t) return null;
4286
- const { node: r, updateAttributes: n } = e, [o, a] = he({
4287
- width: r.attrs.width || 300,
4288
- height: r.attrs.height || 300
4289
- }), [s, u] = he({
4290
- left: r.attrs.marginLeft || 0,
4291
- right: r.attrs.marginRight || 0
4292
- }), [m, p] = he(r.attrs.src || ""), b = sn(null);
4293
- ln(() => {
4294
- if (r.attrs.src && b.current) {
4300
+ kt.exports.Resizable = ze.default;
4301
+ var ya = kt.exports.ResizableBox = Ze.default;
4302
+ const va = ({ node: e, updateAttributes: t, editor: r }) => {
4303
+ const [n, o] = he({
4304
+ width: e.attrs.width || 300,
4305
+ height: e.attrs.height || 300
4306
+ }), [a, s] = he({
4307
+ left: e.attrs.marginLeft || 0,
4308
+ right: e.attrs.marginRight || 0
4309
+ }), [u, m] = he(e.attrs.src || ""), p = sn(null);
4310
+ hr(() => {
4311
+ if (e.attrs.src && p.current) {
4295
4312
  const S = new Image();
4296
4313
  S.onload = () => {
4297
- (!r.attrs.width || !r.attrs.height) && a({
4314
+ (!e.attrs.width || !e.attrs.height) && o({
4298
4315
  width: S.width > 600 ? 600 : S.width,
4299
4316
  height: S.width > 600 ? 600 / S.width * S.height : S.height
4300
4317
  });
4301
- }, S.src = r.attrs.src;
4318
+ }, S.src = e.attrs.src;
4302
4319
  }
4303
- }, [r.attrs.src]);
4304
- const N = (S, { size: A }) => {
4305
- a({
4320
+ }, [e.attrs.src]);
4321
+ const y = (S, { size: A }) => {
4322
+ o({
4306
4323
  width: A.width,
4307
4324
  height: A.height
4308
- }), n({
4325
+ }), t({
4309
4326
  width: A.width,
4310
4327
  height: A.height
4311
4328
  });
4312
- }, O = () => {
4313
- n({
4314
- src: m,
4315
- width: o.width,
4316
- height: o.height,
4317
- marginLeft: s.left,
4318
- marginRight: s.right
4329
+ }, v = () => {
4330
+ t({
4331
+ src: u,
4332
+ width: n.width,
4333
+ height: n.height,
4334
+ marginLeft: a.left,
4335
+ marginRight: a.right
4319
4336
  });
4337
+ }, O = (S) => {
4338
+ S.preventDefault();
4320
4339
  };
4321
4340
  return /* @__PURE__ */ l.jsxDEV(yr, { className: "image-wrapper", children: /* @__PURE__ */ l.jsxDEV(
4322
4341
  Sr,
@@ -4327,15 +4346,16 @@ const ga = (e) => {
4327
4346
  {
4328
4347
  className: "relative",
4329
4348
  style: {
4330
- marginLeft: s.left,
4331
- marginRight: s.right
4349
+ marginLeft: a.left,
4350
+ marginRight: a.right
4332
4351
  },
4333
- children: t.isEditable ? /* @__PURE__ */ l.jsxDEV(
4334
- va,
4352
+ onContextMenu: O,
4353
+ children: r.isEditable ? /* @__PURE__ */ l.jsxDEV(
4354
+ ya,
4335
4355
  {
4336
- width: o.width,
4337
- height: o.height,
4338
- onResize: N,
4356
+ width: n.width,
4357
+ height: n.height,
4358
+ onResize: y,
4339
4359
  minConstraints: [100, 100],
4340
4360
  maxConstraints: [800, 800],
4341
4361
  lockAspectRatio: !0,
@@ -4343,8 +4363,8 @@ const ga = (e) => {
4343
4363
  children: /* @__PURE__ */ l.jsxDEV(
4344
4364
  "img",
4345
4365
  {
4346
- ref: b,
4347
- src: r.attrs.src,
4366
+ ref: p,
4367
+ src: e.attrs.src,
4348
4368
  alt: "Uploaded",
4349
4369
  className: "object-contain w-full h-full",
4350
4370
  draggable: !1
@@ -4353,7 +4373,7 @@ const ga = (e) => {
4353
4373
  !1,
4354
4374
  {
4355
4375
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4356
- lineNumber: 87,
4376
+ lineNumber: 89,
4357
4377
  columnNumber: 33
4358
4378
  },
4359
4379
  void 0
@@ -4363,19 +4383,19 @@ const ga = (e) => {
4363
4383
  !1,
4364
4384
  {
4365
4385
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4366
- lineNumber: 78,
4386
+ lineNumber: 80,
4367
4387
  columnNumber: 29
4368
4388
  },
4369
4389
  void 0
4370
4390
  ) : /* @__PURE__ */ l.jsxDEV(
4371
4391
  "img",
4372
4392
  {
4373
- ref: b,
4374
- src: r.attrs.src,
4393
+ ref: p,
4394
+ src: e.attrs.src,
4375
4395
  alt: "Uploaded",
4376
4396
  style: {
4377
- width: o.width,
4378
- height: o.height
4397
+ width: n.width,
4398
+ height: n.height
4379
4399
  },
4380
4400
  className: "object-contain",
4381
4401
  draggable: !1
@@ -4384,7 +4404,7 @@ const ga = (e) => {
4384
4404
  !1,
4385
4405
  {
4386
4406
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4387
- lineNumber: 96,
4407
+ lineNumber: 98,
4388
4408
  columnNumber: 29
4389
4409
  },
4390
4410
  void 0
@@ -4394,184 +4414,190 @@ const ga = (e) => {
4394
4414
  !1,
4395
4415
  {
4396
4416
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4397
- lineNumber: 70,
4417
+ lineNumber: 71,
4398
4418
  columnNumber: 21
4399
4419
  },
4400
4420
  void 0
4401
4421
  ),
4402
- editable: t.isEditable,
4422
+ editable: r.isEditable,
4403
4423
  childrenEdit: /* @__PURE__ */ l.jsxDEV("div", { className: "space-y-4", children: [
4404
4424
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4405
4425
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Image URL" }, void 0, !1, {
4406
4426
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4407
- lineNumber: 114,
4427
+ lineNumber: 116,
4408
4428
  columnNumber: 29
4409
4429
  }, void 0),
4410
4430
  /* @__PURE__ */ l.jsxDEV(
4411
4431
  "input",
4412
4432
  {
4413
4433
  type: "text",
4414
- value: m,
4415
- onChange: (S) => p(S.target.value),
4416
- className: "w-full p-2 border rounded"
4434
+ value: u,
4435
+ onChange: (S) => m(S.target.value),
4436
+ className: "w-full p-2 border rounded",
4437
+ disabled: !r.isEditable
4417
4438
  },
4418
4439
  void 0,
4419
4440
  !1,
4420
4441
  {
4421
4442
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4422
- lineNumber: 115,
4443
+ lineNumber: 117,
4423
4444
  columnNumber: 29
4424
4445
  },
4425
4446
  void 0
4426
4447
  )
4427
4448
  ] }, void 0, !0, {
4428
4449
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4429
- lineNumber: 113,
4450
+ lineNumber: 115,
4430
4451
  columnNumber: 25
4431
4452
  }, void 0),
4432
4453
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex gap-2", children: [
4433
4454
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4434
4455
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Width" }, void 0, !1, {
4435
4456
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4436
- lineNumber: 125,
4457
+ lineNumber: 128,
4437
4458
  columnNumber: 33
4438
4459
  }, void 0),
4439
4460
  /* @__PURE__ */ l.jsxDEV(
4440
4461
  "input",
4441
4462
  {
4442
4463
  type: "number",
4443
- value: o.width,
4444
- onChange: (S) => a({ ...o, width: Number(S.target.value) }),
4445
- className: "w-full p-2 border rounded"
4464
+ value: n.width,
4465
+ onChange: (S) => o({ ...n, width: Number(S.target.value) }),
4466
+ className: "w-full p-2 border rounded",
4467
+ disabled: !r.isEditable
4446
4468
  },
4447
4469
  void 0,
4448
4470
  !1,
4449
4471
  {
4450
4472
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4451
- lineNumber: 126,
4473
+ lineNumber: 129,
4452
4474
  columnNumber: 33
4453
4475
  },
4454
4476
  void 0
4455
4477
  )
4456
4478
  ] }, void 0, !0, {
4457
4479
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4458
- lineNumber: 124,
4480
+ lineNumber: 127,
4459
4481
  columnNumber: 29
4460
4482
  }, void 0),
4461
4483
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4462
4484
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Height" }, void 0, !1, {
4463
4485
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4464
- lineNumber: 134,
4486
+ lineNumber: 138,
4465
4487
  columnNumber: 33
4466
4488
  }, void 0),
4467
4489
  /* @__PURE__ */ l.jsxDEV(
4468
4490
  "input",
4469
4491
  {
4470
4492
  type: "number",
4471
- value: o.height,
4472
- onChange: (S) => a({ ...o, height: Number(S.target.value) }),
4473
- className: "w-full p-2 border rounded"
4493
+ value: n.height,
4494
+ onChange: (S) => o({ ...n, height: Number(S.target.value) }),
4495
+ className: "w-full p-2 border rounded",
4496
+ disabled: !r.isEditable
4474
4497
  },
4475
4498
  void 0,
4476
4499
  !1,
4477
4500
  {
4478
4501
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4479
- lineNumber: 135,
4502
+ lineNumber: 139,
4480
4503
  columnNumber: 33
4481
4504
  },
4482
4505
  void 0
4483
4506
  )
4484
4507
  ] }, void 0, !0, {
4485
4508
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4486
- lineNumber: 133,
4509
+ lineNumber: 137,
4487
4510
  columnNumber: 29
4488
4511
  }, void 0)
4489
4512
  ] }, void 0, !0, {
4490
4513
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4491
- lineNumber: 123,
4514
+ lineNumber: 126,
4492
4515
  columnNumber: 25
4493
4516
  }, void 0),
4494
4517
  /* @__PURE__ */ l.jsxDEV("div", { className: "flex gap-2", children: [
4495
4518
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4496
4519
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Left" }, void 0, !1, {
4497
4520
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4498
- lineNumber: 146,
4521
+ lineNumber: 151,
4499
4522
  columnNumber: 33
4500
4523
  }, void 0),
4501
4524
  /* @__PURE__ */ l.jsxDEV(
4502
4525
  "input",
4503
4526
  {
4504
4527
  type: "number",
4505
- value: s.left,
4506
- onChange: (S) => u({ ...s, left: Number(S.target.value) }),
4507
- className: "w-full p-2 border rounded"
4528
+ value: a.left,
4529
+ onChange: (S) => s({ ...a, left: Number(S.target.value) }),
4530
+ className: "w-full p-2 border rounded",
4531
+ disabled: !r.isEditable
4508
4532
  },
4509
4533
  void 0,
4510
4534
  !1,
4511
4535
  {
4512
4536
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4513
- lineNumber: 147,
4537
+ lineNumber: 152,
4514
4538
  columnNumber: 33
4515
4539
  },
4516
4540
  void 0
4517
4541
  )
4518
4542
  ] }, void 0, !0, {
4519
4543
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4520
- lineNumber: 145,
4544
+ lineNumber: 150,
4521
4545
  columnNumber: 29
4522
4546
  }, void 0),
4523
4547
  /* @__PURE__ */ l.jsxDEV("div", { children: [
4524
4548
  /* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Right" }, void 0, !1, {
4525
4549
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4526
- lineNumber: 155,
4550
+ lineNumber: 161,
4527
4551
  columnNumber: 33
4528
4552
  }, void 0),
4529
4553
  /* @__PURE__ */ l.jsxDEV(
4530
4554
  "input",
4531
4555
  {
4532
4556
  type: "number",
4533
- value: s.right,
4534
- onChange: (S) => u({ ...s, right: Number(S.target.value) }),
4535
- className: "w-full p-2 border rounded"
4557
+ value: a.right,
4558
+ onChange: (S) => s({ ...a, right: Number(S.target.value) }),
4559
+ className: "w-full p-2 border rounded",
4560
+ disabled: !r.isEditable
4536
4561
  },
4537
4562
  void 0,
4538
4563
  !1,
4539
4564
  {
4540
4565
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4541
- lineNumber: 156,
4566
+ lineNumber: 162,
4542
4567
  columnNumber: 33
4543
4568
  },
4544
4569
  void 0
4545
4570
  )
4546
4571
  ] }, void 0, !0, {
4547
4572
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4548
- lineNumber: 154,
4573
+ lineNumber: 160,
4549
4574
  columnNumber: 29
4550
4575
  }, void 0)
4551
4576
  ] }, void 0, !0, {
4552
4577
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4553
- lineNumber: 144,
4578
+ lineNumber: 149,
4554
4579
  columnNumber: 25
4555
4580
  }, void 0),
4556
4581
  /* @__PURE__ */ l.jsxDEV(
4557
4582
  "button",
4558
4583
  {
4559
- onClick: O,
4584
+ onClick: v,
4560
4585
  className: "w-full p-2 text-white bg-blue-500 rounded hover:bg-blue-600",
4586
+ disabled: !r.isEditable,
4561
4587
  children: "Update Image"
4562
4588
  },
4563
4589
  void 0,
4564
4590
  !1,
4565
4591
  {
4566
4592
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4567
- lineNumber: 165,
4593
+ lineNumber: 172,
4568
4594
  columnNumber: 25
4569
4595
  },
4570
4596
  void 0
4571
4597
  )
4572
4598
  ] }, void 0, !0, {
4573
4599
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4574
- lineNumber: 112,
4600
+ lineNumber: 114,
4575
4601
  columnNumber: 21
4576
4602
  }, void 0)
4577
4603
  },
@@ -4579,16 +4605,16 @@ const ga = (e) => {
4579
4605
  !1,
4580
4606
  {
4581
4607
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4582
- lineNumber: 67,
4608
+ lineNumber: 68,
4583
4609
  columnNumber: 13
4584
4610
  },
4585
4611
  void 0
4586
4612
  ) }, void 0, !1, {
4587
4613
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
4588
- lineNumber: 66,
4614
+ lineNumber: 67,
4589
4615
  columnNumber: 9
4590
4616
  }, void 0);
4591
- }, xa = gr.create({
4617
+ }, ga = gr.create({
4592
4618
  name: "image",
4593
4619
  group: "block",
4594
4620
  content: "inline*",
@@ -4599,17 +4625,30 @@ const ga = (e) => {
4599
4625
  return {
4600
4626
  src: { default: null },
4601
4627
  width: { default: 300 },
4602
- height: { default: 300 }
4628
+ height: { default: 300 },
4629
+ marginLeft: { default: 0 },
4630
+ marginRight: { default: 0 }
4603
4631
  };
4604
4632
  },
4605
4633
  parseHTML() {
4606
- return [{ tag: "image" }];
4634
+ return [
4635
+ {
4636
+ tag: "img",
4637
+ getAttrs: (e) => e instanceof HTMLElement ? {
4638
+ src: e.getAttribute("src"),
4639
+ width: Number(e.getAttribute("width")) || 300,
4640
+ height: Number(e.getAttribute("height")) || 300,
4641
+ marginLeft: Number(e.getAttribute("marginleft")) || 0,
4642
+ marginRight: Number(e.getAttribute("marginright")) || 0
4643
+ } : null
4644
+ }
4645
+ ];
4607
4646
  },
4608
4647
  renderHTML({ HTMLAttributes: e }) {
4609
- return ["image", xr(e)];
4648
+ return ["img", xr(e)];
4610
4649
  },
4611
4650
  addNodeView() {
4612
- return vr(ga);
4651
+ return vr(va);
4613
4652
  },
4614
4653
  addCommands() {
4615
4654
  return {
@@ -4619,13 +4658,13 @@ const ga = (e) => {
4619
4658
  }).run()
4620
4659
  };
4621
4660
  }
4622
- }), Na = [
4623
- bn.configure({
4624
- types: [Bt.name, pn.name]
4661
+ }), xa = [
4662
+ pn.configure({
4663
+ types: [Ut.name, mn.name]
4625
4664
  }),
4626
- Bt,
4627
- yn.configure({ multicolor: !0 }),
4628
- hn.configure({
4665
+ Ut,
4666
+ hn.configure({ multicolor: !0 }),
4667
+ bn.configure({
4629
4668
  bulletList: {
4630
4669
  keepMarks: !0,
4631
4670
  keepAttributes: !1
@@ -4635,16 +4674,16 @@ const ga = (e) => {
4635
4674
  keepAttributes: !1
4636
4675
  }
4637
4676
  }),
4638
- Ki,
4677
+ Xi,
4678
+ yn,
4639
4679
  vn,
4640
4680
  gn,
4641
- xn,
4642
- Nn.configure({
4681
+ xn.configure({
4643
4682
  types: ["heading", "paragraph"]
4644
4683
  }),
4684
+ Nn,
4645
4685
  En,
4646
- Sn,
4647
- wn.configure({
4686
+ Sn.configure({
4648
4687
  resizable: !0,
4649
4688
  lastColumnResizable: !0,
4650
4689
  allowTableNodeSelection: !0,
@@ -4652,16 +4691,16 @@ const ga = (e) => {
4652
4691
  class: "table-wrapper"
4653
4692
  }
4654
4693
  }),
4694
+ wn,
4655
4695
  Cn,
4656
- kn,
4657
- Dn.configure({
4696
+ kn.configure({
4658
4697
  HTMLAttributes: {
4659
4698
  class: "table-cell"
4660
4699
  }
4661
4700
  }),
4662
- _n,
4663
- xa
4664
- ], Ya = ({
4701
+ Dn,
4702
+ ga
4703
+ ], qa = ({
4665
4704
  content: e = "",
4666
4705
  slotBefore: t = !1,
4667
4706
  className: r = "",
@@ -4669,37 +4708,33 @@ const ga = (e) => {
4669
4708
  editable: o = !0,
4670
4709
  onChange: a
4671
4710
  }) => {
4672
- const s = cn(() => Na, []), u = ({ editor: m }) => {
4673
- a && a(m.getHTML());
4674
- };
4675
- return /* @__PURE__ */ l.jsxDEV("div", { className: `cyber-editor-container ${r}`, children: /* @__PURE__ */ l.jsxDEV(
4676
- dn,
4677
- {
4678
- slotBefore: t === !0 ? /* @__PURE__ */ l.jsxDEV(Bi, {}, void 0, !1, {
4679
- fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
4680
- lineNumber: 27,
4681
- columnNumber: 51
4682
- }, void 0) : null,
4683
- extensions: s,
4684
- content: e,
4685
- editable: o,
4686
- onUpdate: u,
4687
- editorContainerProps: { className: `${n}` }
4688
- },
4689
- e,
4690
- !1,
4691
- {
4711
+ const s = cn({
4712
+ extensions: xa,
4713
+ content: e,
4714
+ editable: o,
4715
+ onUpdate: ({ editor: u }) => {
4716
+ a && a(u.getHTML());
4717
+ }
4718
+ });
4719
+ return hr(() => {
4720
+ s && e !== s.getHTML() && s.commands.setContent(e, !1);
4721
+ }, [s, e]), s ? /* @__PURE__ */ l.jsxDEV("div", { className: `cyber-editor-container ${r}`, children: [
4722
+ t && /* @__PURE__ */ l.jsxDEV(Ui, { editor: s }, void 0, !1, {
4723
+ fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
4724
+ lineNumber: 36,
4725
+ columnNumber: 28
4726
+ }, void 0),
4727
+ /* @__PURE__ */ l.jsxDEV(un, { editor: s, className: n }, void 0, !1, {
4692
4728
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
4693
- lineNumber: 25,
4729
+ lineNumber: 37,
4694
4730
  columnNumber: 13
4695
- },
4696
- void 0
4697
- ) }, void 0, !1, {
4731
+ }, void 0)
4732
+ ] }, void 0, !0, {
4698
4733
  fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
4699
- lineNumber: 24,
4734
+ lineNumber: 35,
4700
4735
  columnNumber: 9
4701
- }, void 0);
4736
+ }, void 0) : null;
4702
4737
  };
4703
4738
  export {
4704
- Ya as CyberEditorProvider
4739
+ qa as CyberEditorProvider
4705
4740
  };