@arkitektbedriftene/fe-lib 5.6.5 → 5.7.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,33 +1,33 @@
1
1
  var ve = Object.defineProperty;
2
- var Me = (t, r, e) => r in t ? ve(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
- var $ = (t, r, e) => Me(t, typeof r != "symbol" ? r + "" : r, e);
2
+ var xe = (t, r, e) => r in t ? ve(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var A = (t, r, e) => xe(t, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { createHeadlessEditor as Pt } from "@lexical/headless";
5
5
  import { $generateHtmlFromNodes as Bt } from "@lexical/html";
6
- import { $getRoot as V, ParagraphNode as xe, $createParagraphNode as G, $createTextNode as z, $setSelection as nt, $getNodeByKey as dt, DecoratorNode as Te, $applyNodeReplacement as Le, SELECTION_CHANGE_COMMAND as Q, $getSelection as y, COMMAND_PRIORITY_EDITOR as q, $isRangeSelection as E, $isRootOrShadowRoot as Ft, FORMAT_TEXT_COMMAND as A, COMMAND_PRIORITY_LOW as D, KEY_ARROW_DOWN_COMMAND as we, KEY_ARROW_UP_COMMAND as _e, KEY_ESCAPE_COMMAND as Ht, KEY_SPACE_COMMAND as ye, $getNearestNodeFromDOMNode as mt, KEY_ARROW_LEFT_COMMAND as Se, $isElementNode as Ne, createCommand as Ee, $insertNodes as Re, $createRangeSelection as Ut, COMMAND_PRIORITY_HIGH as Ie, FORMAT_ELEMENT_COMMAND as ht } from "lexical";
7
- import { trimTextContentFromAnchor as Oe, $setBlocksType as ut, $getSelectionStyleValueForProperty as ze, $patchStyleText as $e, $isAtNodeEnd as yt } from "@lexical/selection";
8
- import { $dfs as Ae, $getNearestNodeOfType as De, $findMatchingParent as Wt, mergeRegister as ot, isHTMLElement as St, $wrapNodeInElement as Pe, mediaFileReader as Be, isMimeType as Fe } from "@lexical/utils";
9
- import { LinkNode as W, AutoLinkNode as jt, $isLinkNode as tt, TOGGLE_LINK_COMMAND as it } from "@lexical/link";
10
- import { ListNode as ft, ListItemNode as Kt, $isListNode as kt, INSERT_UNORDERED_LIST_COMMAND as He, INSERT_ORDERED_LIST_COMMAND as Ue, INSERT_CHECK_LIST_COMMAND as Gt, insertList as We, $isListItemNode as j } from "@lexical/list";
11
- import { HeadingNode as qt, QuoteNode as Jt, $isHeadingNode as je, $createHeadingNode as Ke, $createQuoteNode as Ge, DRAG_DROP_PASTE as qe } from "@lexical/rich-text";
6
+ import { $getRoot as V, ParagraphNode as Te, $createParagraphNode as G, $createTextNode as $, $setSelection as nt, $getNodeByKey as dt, DecoratorNode as Me, $applyNodeReplacement as Le, SELECTION_CHANGE_COMMAND as Q, $getSelection as y, COMMAND_PRIORITY_EDITOR as q, $isRangeSelection as E, $isRootOrShadowRoot as Ft, FORMAT_TEXT_COMMAND as D, COMMAND_PRIORITY_LOW as z, KEY_ARROW_DOWN_COMMAND as we, KEY_ARROW_UP_COMMAND as _e, KEY_ESCAPE_COMMAND as Ut, KEY_SPACE_COMMAND as ye, $getNearestNodeFromDOMNode as mt, KEY_ARROW_LEFT_COMMAND as Se, $isElementNode as Ne, createCommand as Ee, $insertNodes as Re, $createRangeSelection as Wt, COMMAND_PRIORITY_HIGH as Ie, FORMAT_ELEMENT_COMMAND as ht } from "lexical";
7
+ import { trimTextContentFromAnchor as Oe, $setBlocksType as ut, $getSelectionStyleValueForProperty as $e, $patchStyleText as Ae, $isAtNodeEnd as yt } from "@lexical/selection";
8
+ import { $dfs as De, $getNearestNodeOfType as ze, $findMatchingParent as jt, mergeRegister as it, isHTMLElement as St, $wrapNodeInElement as Pe, mediaFileReader as Be, isMimeType as Fe } from "@lexical/utils";
9
+ import { LinkNode as j, AutoLinkNode as Ht, $isLinkNode as tt, TOGGLE_LINK_COMMAND as ot } from "@lexical/link";
10
+ import { ListNode as ft, ListItemNode as Kt, $isListNode as kt, INSERT_UNORDERED_LIST_COMMAND as Ue, INSERT_ORDERED_LIST_COMMAND as We, INSERT_CHECK_LIST_COMMAND as Gt, insertList as je, $isListItemNode as H } from "@lexical/list";
11
+ import { HeadingNode as qt, QuoteNode as Jt, $isHeadingNode as He, $createHeadingNode as Ke, $createQuoteNode as Ge, DRAG_DROP_PASTE as qe } from "@lexical/rich-text";
12
12
  import { TableNode as Yt, TableRowNode as Xt, TableCellNode as Vt, INSERT_TABLE_COMMAND as Je, $getTableCellNodeFromLexicalNode as Ye, $deleteTableColumn__EXPERIMENTAL as Xe, $deleteTableRow__EXPERIMENTAL as Ve, $insertTableColumn__EXPERIMENTAL as Nt, $insertTableRow__EXPERIMENTAL as Et } from "@lexical/table";
13
13
  import { jsx as n, jsxs as h, Fragment as B } from "react/jsx-runtime";
14
- import { createContext as Qe, useState as p, useRef as J, useCallback as M, useContext as Ze, useEffect as L, useMemo as Qt, useLayoutEffect as tr } from "react";
15
- import { Box as P, Stack as er, Button as S, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as T, ToolbarToggleGroup as et, ToolbarToggleItem as O, Popover as Zt, PopoverTrigger as te, PopoverContent as ee, OverlayCard as re, Toolbar as rr, ToolbarSeparator as Rt, styled as nr, Spinner as st, Dialog as ne, DialogHeader as or, TextInput as bt, DialogActions as ct, DropdownMenuItem as U, DropdownMenuSeparator as It, NavBar as ir, NavBarItem as gt, Combobox as ar } from "./ui.es.js";
16
- import { e as lr, f as sr, g as cr, G as f, h as dr, i as hr, j as ur } from "./index.esm-CQ-E4_-_.js";
14
+ import { createContext as Qe, useState as p, useRef as J, useCallback as x, useContext as Ze, useEffect as L, useMemo as Qt, useLayoutEffect as tr } from "react";
15
+ import { Box as P, Stack as er, Button as S, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as M, ToolbarToggleGroup as et, ToolbarToggleItem as O, Popover as Zt, PopoverTrigger as te, PopoverContent as ee, OverlayCard as re, Toolbar as rr, ToolbarSeparator as Rt, styled as nr, Spinner as st, Dialog as ne, DialogHeader as ir, TextInput as bt, DialogActions as ct, DropdownMenuItem as W, DropdownMenuSeparator as It, NavBar as or, NavBarItem as gt, Combobox as ar } from "./ui.es.js";
16
+ import { e as lr, f as sr, g as cr, G as f, h as dr, i as hr, j as ur } from "./index-BIHcSFgi.js";
17
17
  import { useLexicalComposerContext as w } from "@lexical/react/LexicalComposerContext.js";
18
18
  import { HorizontalRuleNode as gr } from "@lexical/react/LexicalHorizontalRuleNode.js";
19
19
  import { LexicalComposer as pr } from "@lexical/react/LexicalComposer.js";
20
20
  import { RichTextPlugin as mr } from "@lexical/react/LexicalRichTextPlugin.js";
21
21
  import { LexicalErrorBoundary as fr } from "@lexical/react/LexicalErrorBoundary.js";
22
- import { useFloating as Ct, autoUpdate as oe, size as kr, flip as br, offset as ie, shift as Cr, useInteractions as ae, useRole as le, FloatingPortal as se, inline as vr, useDismiss as Mr } from "@floating-ui/react";
23
- import { s as xr, c as Tr } from "./stitches.config-DTq6WSgP.js";
22
+ import { useFloating as Ct, autoUpdate as ie, size as kr, flip as br, offset as oe, shift as Cr, useInteractions as ae, useRole as le, FloatingPortal as se, inline as vr, useDismiss as xr } from "@floating-ui/react";
23
+ import { s as Tr, c as Mr } from "./stitches.config-DTq6WSgP.js";
24
24
  import { ListPlugin as Lr } from "@lexical/react/LexicalListPlugin.js";
25
25
  import { HistoryPlugin as wr } from "@lexical/react/LexicalHistoryPlugin.js";
26
26
  import { TablePlugin as _r } from "@lexical/react/LexicalTablePlugin.js";
27
27
  import { HorizontalRulePlugin as yr } from "@lexical/react/LexicalHorizontalRulePlugin.js";
28
28
  import { TabIndentationPlugin as Sr } from "@lexical/react/LexicalTabIndentationPlugin.js";
29
29
  import { useLexicalComposerContext as vt } from "@lexical/react/LexicalComposerContext";
30
- import { b as Nr } from "./index.esm-C4DkZjXw.js";
30
+ import { b as Nr } from "./index-CjjD4eDc.js";
31
31
  const Er = ({
32
32
  text: t,
33
33
  maxChars: r,
@@ -35,11 +35,11 @@ const Er = ({
35
35
  }) => {
36
36
  if (t.length === 0)
37
37
  return 0;
38
- const o = typeof e == "number", i = typeof r == "number";
39
- if (!o && !i)
38
+ const i = typeof e == "number", o = typeof r == "number";
39
+ if (!i && !o)
40
40
  return t.length;
41
41
  let a = 0, l = 0;
42
- for (; l < t.length && (!o || a < e) && (!i || l < r); )
42
+ for (; l < t.length && (!i || a < e) && (!o || l < r); )
43
43
  t[l] === `
44
44
  ` && a++, l++;
45
45
  return t.slice(0, l).length;
@@ -48,11 +48,11 @@ const Er = ({
48
48
  maxChars: r,
49
49
  maxLines: e
50
50
  }) => {
51
- const o = V(), i = o.getTextContent(), a = Er({ text: i, maxChars: r, maxLines: e }), l = i.length - a, d = o.select().anchor;
51
+ const i = V(), o = i.getTextContent(), a = Er({ text: o, maxChars: r, maxLines: e }), l = o.length - a, d = i.select().anchor;
52
52
  Oe(t, d, l);
53
- const c = o.getLastChild();
54
- return c instanceof xe && c.getChildrenSize() === 0 && c.remove(), l;
55
- }, Mt = {
53
+ const c = i.getLastChild();
54
+ return c instanceof Te && c.getChildrenSize() === 0 && c.remove(), l;
55
+ }, xt = {
56
56
  quote: "ain-rich-text-quote",
57
57
  text: {
58
58
  bold: "ain-rich-text-bold",
@@ -65,13 +65,13 @@ const Er = ({
65
65
  listitem: "ain-rich-text-nested-list-item"
66
66
  }
67
67
  }
68
- }, xt = (t) => t[0] === "{", Rr = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Ir = (t, r) => {
68
+ }, Tt = (t) => t[0] === "{", Rr = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Ir = (t, r) => {
69
69
  t.update(
70
70
  () => {
71
71
  const e = V();
72
72
  e.clear();
73
- const o = G();
74
- o.append(z("")), e.append(o), nt(null);
73
+ const i = G();
74
+ i.append($("")), e.append(i), nt(null);
75
75
  },
76
76
  {
77
77
  tag: r
@@ -80,95 +80,95 @@ const Er = ({
80
80
  }, Or = (t, r, e) => {
81
81
  r.update(
82
82
  () => {
83
- const o = V();
84
- o.clear();
85
- const i = G();
86
- i.append(z(t.trim())), o.append(i), nt(null);
83
+ const i = V();
84
+ i.clear();
85
+ const o = G();
86
+ o.append($(t.trim())), i.append(o), nt(null);
87
87
  },
88
88
  {
89
89
  tag: e
90
90
  }
91
91
  ), r.blur();
92
- }, oo = async (t, r, e) => {
92
+ }, ii = async (t, r, e) => {
93
93
  var l;
94
- let o = 0;
95
- const i = Pt({
94
+ let i = 0;
95
+ const o = Pt({
96
96
  nodes: r,
97
97
  editable: !1,
98
- theme: Mt
98
+ theme: xt
99
99
  });
100
100
  if (t)
101
101
  try {
102
- if (typeof t == "string" && !xt(t))
103
- i.update(() => {
102
+ if (typeof t == "string" && !Tt(t))
103
+ o.update(() => {
104
104
  const s = V(), d = G();
105
- d.append(z(t.trim())), s.append(d);
105
+ d.append($(t.trim())), s.append(d);
106
106
  });
107
107
  else {
108
- const s = i.parseEditorState(t, () => {
109
- (e == null ? void 0 : e.maxLines) !== void 0 && (o = ce({
110
- editor: i,
108
+ const s = o.parseEditorState(t, () => {
109
+ (e == null ? void 0 : e.maxLines) !== void 0 && (i = ce({
110
+ editor: o,
111
111
  maxLines: e.maxLines
112
112
  }));
113
113
  });
114
- s.isEmpty() || i.setEditorState(s);
114
+ s.isEmpty() || o.setEditorState(s);
115
115
  }
116
116
  } catch (s) {
117
117
  console.error(s);
118
118
  }
119
- await ((l = e == null ? void 0 : e.updateFn) == null ? void 0 : l.call(e, i));
119
+ await ((l = e == null ? void 0 : e.updateFn) == null ? void 0 : l.call(e, o));
120
120
  let a = "";
121
- return i.read(() => {
122
- a = Bt(i);
123
- }), { html: a, trimCount: o };
124
- }, io = (t, r, e) => {
125
- let o = 0;
126
- const i = Pt({
121
+ return o.read(() => {
122
+ a = Bt(o);
123
+ }), { html: a, trimCount: i };
124
+ }, oi = (t, r, e) => {
125
+ let i = 0;
126
+ const o = Pt({
127
127
  nodes: r,
128
128
  editable: !1,
129
- theme: Mt
129
+ theme: xt
130
130
  });
131
131
  if (t)
132
132
  try {
133
- if (typeof t == "string" && !xt(t))
134
- i.update(() => {
133
+ if (typeof t == "string" && !Tt(t))
134
+ o.update(() => {
135
135
  const l = V(), s = G();
136
- s.append(z(t.trim())), l.append(s);
136
+ s.append($(t.trim())), l.append(s);
137
137
  });
138
138
  else {
139
- const l = i.parseEditorState(t, () => {
140
- (e == null ? void 0 : e.maxLines) !== void 0 && (o = ce({
141
- editor: i,
139
+ const l = o.parseEditorState(t, () => {
140
+ (e == null ? void 0 : e.maxLines) !== void 0 && (i = ce({
141
+ editor: o,
142
142
  maxLines: e.maxLines
143
143
  }));
144
144
  });
145
- l.isEmpty() || i.setEditorState(l);
145
+ l.isEmpty() || o.setEditorState(l);
146
146
  }
147
147
  } catch (l) {
148
148
  console.error(l);
149
149
  }
150
150
  let a = "";
151
151
  try {
152
- i.read(() => {
153
- a = Bt(i);
152
+ o.read(() => {
153
+ a = Bt(o);
154
154
  });
155
155
  } catch {
156
156
  }
157
- return { html: a, trimCount: o };
158
- }, ao = (t) => Ae().map(({ node: r }) => r).filter((r) => t.some((e) => r instanceof e));
159
- class rt extends W {
157
+ return { html: a, trimCount: i };
158
+ }, ai = (t) => De().map(({ node: r }) => r).filter((r) => t.some((e) => r instanceof e));
159
+ class rt extends j {
160
160
  static getType() {
161
161
  return "target-link";
162
162
  }
163
- constructor(r, e, o) {
164
- let i = !1;
163
+ constructor(r, e, i) {
164
+ let o = !1;
165
165
  const a = { ...e };
166
166
  try {
167
167
  const l = new URL(r);
168
- window.location.hostname !== l.hostname && (i = !0);
168
+ window.location.hostname !== l.hostname && (o = !0);
169
169
  } catch {
170
170
  }
171
- i && (a.target = "_blank", a.rel = "noopener noreferrer"), super(r, a, o);
171
+ o && (a.target = "_blank", a.rel = "noopener noreferrer"), super(r, a, i);
172
172
  }
173
173
  static clone(r) {
174
174
  return new rt(
@@ -181,7 +181,7 @@ class rt extends W {
181
181
  return super.exportJSON();
182
182
  }
183
183
  static importJSON(r) {
184
- return W.importJSON(r);
184
+ return j.importJSON(r);
185
185
  }
186
186
  }
187
187
  const de = Qe({
@@ -189,28 +189,28 @@ const de = Qe({
189
189
  editorRef: { current: null },
190
190
  signUrl: void 0,
191
191
  fileUpload: void 0
192
- }), zr = ({ onBlur: t }) => {
193
- const [r, e] = p(!1), o = J(null), i = M(() => {
194
- e(!0), o.current && window.clearTimeout(o.current);
195
- }, []), a = M(() => {
196
- o.current = window.setTimeout(() => {
192
+ }), $r = ({ onBlur: t }) => {
193
+ const [r, e] = p(!1), i = J(null), o = x(() => {
194
+ e(!0), i.current && window.clearTimeout(i.current);
195
+ }, []), a = x(() => {
196
+ i.current = window.setTimeout(() => {
197
197
  e(!1), t == null || t();
198
198
  }, 0);
199
199
  }, [t]);
200
200
  return {
201
201
  hasFocus: r,
202
202
  attributes: {
203
- onFocus: i,
203
+ onFocus: o,
204
204
  onBlur: a
205
205
  }
206
206
  };
207
207
  }, F = () => Ze(de);
208
- function $r({
208
+ function Ar({
209
209
  src: t,
210
210
  altText: r,
211
211
  width: e,
212
- height: o,
213
- nodeKey: i
212
+ height: i,
213
+ nodeKey: o
214
214
  }) {
215
215
  const { signUrl: a } = F(), [l, s] = p(a ? "" : t), [d, c] = p(!1), u = J(!1), [g] = w();
216
216
  L(() => {
@@ -221,15 +221,15 @@ function $r({
221
221
  }, []);
222
222
  const C = (m) => (v) => {
223
223
  v.relatedTarget instanceof HTMLElement && v.relatedTarget.dataset.controls === "true" || c(m);
224
- }, x = () => {
224
+ }, T = () => {
225
225
  g.update(() => {
226
- const m = dt(i);
226
+ const m = dt(o);
227
227
  m && m.remove();
228
228
  });
229
229
  }, _ = () => {
230
230
  g.update(() => {
231
231
  var N;
232
- const m = dt(i);
232
+ const m = dt(o);
233
233
  if (!m)
234
234
  return;
235
235
  const v = m.getPreviousSibling() || ((N = m.getParent()) == null ? void 0 : N.getPreviousSibling());
@@ -238,7 +238,7 @@ function $r({
238
238
  }, k = () => {
239
239
  g.update(() => {
240
240
  var N;
241
- const m = dt(i);
241
+ const m = dt(o);
242
242
  if (!m)
243
243
  return;
244
244
  const v = m.getNextSibling() || ((N = m.getParent()) == null ? void 0 : N.getNextSibling());
@@ -267,7 +267,7 @@ function $r({
267
267
  icon: !0,
268
268
  size: "sm",
269
269
  css: { width: "20px", height: "20px" },
270
- onClick: x,
270
+ onClick: T,
271
271
  color: "danger",
272
272
  children: /* @__PURE__ */ n(lr, {})
273
273
  }
@@ -301,7 +301,7 @@ function $r({
301
301
  src: l,
302
302
  alt: r,
303
303
  style: {
304
- height: o,
304
+ height: i,
305
305
  width: e
306
306
  },
307
307
  className: "ain-rich-text-image",
@@ -312,25 +312,25 @@ function $r({
312
312
  )
313
313
  ] }) : /* @__PURE__ */ n("span", {});
314
314
  }
315
- function Ar(t) {
316
- const r = t, { alt: e, src: o, width: i, height: a } = r;
317
- return { node: Tt({ altText: e, height: a, src: o, width: i }) };
315
+ function Dr(t) {
316
+ const r = t, { alt: e, src: i, width: o, height: a } = r;
317
+ return { node: Mt({ altText: e, height: a, src: i, width: o }) };
318
318
  }
319
- class H extends Te {
320
- constructor(e, o, i, a, l, s) {
319
+ class U extends Me {
320
+ constructor(e, i, o, a, l, s) {
321
321
  super(s);
322
- $(this, "__src");
323
- $(this, "__altText");
324
- $(this, "__width");
325
- $(this, "__height");
326
- $(this, "__meta");
327
- this.__src = e, this.__altText = o, this.__width = i || "inherit", this.__height = a || "inherit", this.__meta = l;
322
+ A(this, "__src");
323
+ A(this, "__altText");
324
+ A(this, "__width");
325
+ A(this, "__height");
326
+ A(this, "__meta");
327
+ this.__src = e, this.__altText = i, this.__width = o || "inherit", this.__height = a || "inherit", this.__meta = l;
328
328
  }
329
329
  static getType() {
330
330
  return "image";
331
331
  }
332
332
  static clone(e) {
333
- return new H(
333
+ return new U(
334
334
  e.__src,
335
335
  e.__altText,
336
336
  e.__width,
@@ -340,10 +340,10 @@ class H extends Te {
340
340
  );
341
341
  }
342
342
  static importJSON(e) {
343
- const { altText: o, height: i, width: a, src: l, meta: s } = e;
344
- return Tt({
345
- altText: o,
346
- height: i,
343
+ const { altText: i, height: o, width: a, src: l, meta: s } = e;
344
+ return Mt({
345
+ altText: i,
346
+ height: o,
347
347
  src: l,
348
348
  width: a,
349
349
  meta: s
@@ -356,7 +356,7 @@ class H extends Te {
356
356
  static importDOM() {
357
357
  return {
358
358
  img: (e) => ({
359
- conversion: Ar,
359
+ conversion: Dr,
360
360
  priority: 0
361
361
  })
362
362
  };
@@ -376,12 +376,12 @@ class H extends Te {
376
376
  return this.__meta ?? { width: 0, height: 0 };
377
377
  }
378
378
  setSrc(e) {
379
- const o = this.getWritable();
380
- o.__src = e;
381
- }
382
- setWidthAndHeight(e, o) {
383
379
  const i = this.getWritable();
384
- i.__width = e, i.__height = o;
380
+ i.__src = e;
381
+ }
382
+ setWidthAndHeight(e, i) {
383
+ const o = this.getWritable();
384
+ o.__width = e, o.__height = i;
385
385
  }
386
386
  // View
387
387
  createDOM(e) {
@@ -398,7 +398,7 @@ class H extends Te {
398
398
  }
399
399
  decorate() {
400
400
  return /* @__PURE__ */ n(
401
- $r,
401
+ Ar,
402
402
  {
403
403
  src: this.__src,
404
404
  altText: this.__altText,
@@ -409,120 +409,120 @@ class H extends Te {
409
409
  );
410
410
  }
411
411
  }
412
- function Tt({
412
+ function Mt({
413
413
  altText: t,
414
414
  height: r,
415
415
  src: e,
416
- width: o,
417
- meta: i,
416
+ width: i,
417
+ meta: o,
418
418
  key: a
419
419
  }) {
420
420
  return Le(
421
- new H(e, t, o, r, i, a)
421
+ new U(e, t, i, r, o, a)
422
422
  );
423
423
  }
424
- function lo(t) {
425
- return t instanceof H;
424
+ function li(t) {
425
+ return t instanceof U;
426
426
  }
427
- const so = [
427
+ const si = [
428
428
  qt,
429
429
  Jt,
430
430
  ft,
431
431
  Kt,
432
- jt,
433
- W,
432
+ Ht,
433
+ j,
434
434
  Yt,
435
435
  Xt,
436
436
  Vt,
437
- H,
437
+ U,
438
438
  gr
439
- ], co = [
439
+ ], ci = [
440
440
  qt,
441
441
  Jt,
442
442
  ft,
443
443
  Kt,
444
- jt,
445
- W,
444
+ Ht,
445
+ j,
446
446
  Yt,
447
447
  Xt,
448
448
  Vt,
449
- H,
449
+ U,
450
450
  rt,
451
451
  {
452
- replace: W,
452
+ replace: j,
453
453
  with: (t) => new rt(
454
454
  t.getURL(),
455
455
  { rel: t.__rel, target: t.__target, title: t.__title }
456
456
  )
457
457
  }
458
458
  ];
459
- function Dr(t) {
460
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 6l16 0" } }, { tag: "path", attr: { d: "M8 12l8 0" } }, { tag: "path", attr: { d: "M6 18l12 0" } }] })(t);
459
+ function zr(t) {
460
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 6l16 0" }, child: [] }, { tag: "path", attr: { d: "M8 12l8 0" }, child: [] }, { tag: "path", attr: { d: "M6 18l12 0" }, child: [] }] })(t);
461
461
  }
462
462
  function Ot(t) {
463
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 6l16 0" } }, { tag: "path", attr: { d: "M4 12l10 0" } }, { tag: "path", attr: { d: "M4 18l14 0" } }] })(t);
463
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 6l16 0" }, child: [] }, { tag: "path", attr: { d: "M4 12l10 0" }, child: [] }, { tag: "path", attr: { d: "M4 18l14 0" }, child: [] }] })(t);
464
464
  }
465
465
  function Pr(t) {
466
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 6l16 0" } }, { tag: "path", attr: { d: "M10 12l10 0" } }, { tag: "path", attr: { d: "M6 18l14 0" } }] })(t);
466
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 6l16 0" }, child: [] }, { tag: "path", attr: { d: "M10 12l10 0" }, child: [] }, { tag: "path", attr: { d: "M6 18l14 0" }, child: [] }] })(t);
467
467
  }
468
468
  function Br(t) {
469
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 5h6a3.5 3.5 0 0 1 0 7h-6z" } }, { tag: "path", attr: { d: "M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" } }] })(t);
469
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M7 5h6a3.5 3.5 0 0 1 0 7h-6z" }, child: [] }, { tag: "path", attr: { d: "M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" }, child: [] }] })(t);
470
470
  }
471
471
  function Fr(t) {
472
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 8l-4 4l4 4" } }, { tag: "path", attr: { d: "M17 8l4 4l-4 4" } }, { tag: "path", attr: { d: "M14 4l-4 16" } }] })(t);
473
- }
474
- function Hr(t) {
475
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M19 18v-8l-2 2" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
472
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M7 8l-4 4l4 4" }, child: [] }, { tag: "path", attr: { d: "M17 8l4 4l-4 4" }, child: [] }, { tag: "path", attr: { d: "M14 4l-4 16" }, child: [] }] })(t);
476
473
  }
477
474
  function Ur(t) {
478
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
475
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M19 18v-8l-2 2" }, child: [] }, { tag: "path", attr: { d: "M4 6v12" }, child: [] }, { tag: "path", attr: { d: "M12 6v12" }, child: [] }, { tag: "path", attr: { d: "M11 18h2" }, child: [] }, { tag: "path", attr: { d: "M3 18h2" }, child: [] }, { tag: "path", attr: { d: "M4 12h8" }, child: [] }, { tag: "path", attr: { d: "M3 6h2" }, child: [] }, { tag: "path", attr: { d: "M11 6h2" }, child: [] }] })(t);
479
476
  }
480
477
  function Wr(t) {
481
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M19 14a2 2 0 1 0 -2 -2" } }, { tag: "path", attr: { d: "M17 16a2 2 0 1 0 2 -2" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
478
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0" }, child: [] }, { tag: "path", attr: { d: "M4 6v12" }, child: [] }, { tag: "path", attr: { d: "M12 6v12" }, child: [] }, { tag: "path", attr: { d: "M11 18h2" }, child: [] }, { tag: "path", attr: { d: "M3 18h2" }, child: [] }, { tag: "path", attr: { d: "M4 12h8" }, child: [] }, { tag: "path", attr: { d: "M3 6h2" }, child: [] }, { tag: "path", attr: { d: "M11 6h2" }, child: [] }] })(t);
482
479
  }
483
480
  function jr(t) {
484
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M20 18v-8l-4 6h5" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
481
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M19 14a2 2 0 1 0 -2 -2" }, child: [] }, { tag: "path", attr: { d: "M17 16a2 2 0 1 0 2 -2" }, child: [] }, { tag: "path", attr: { d: "M4 6v12" }, child: [] }, { tag: "path", attr: { d: "M12 6v12" }, child: [] }, { tag: "path", attr: { d: "M11 18h2" }, child: [] }, { tag: "path", attr: { d: "M3 18h2" }, child: [] }, { tag: "path", attr: { d: "M4 12h8" }, child: [] }, { tag: "path", attr: { d: "M3 6h2" }, child: [] }, { tag: "path", attr: { d: "M11 6h2" }, child: [] }] })(t);
482
+ }
483
+ function Hr(t) {
484
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M20 18v-8l-4 6h5" }, child: [] }, { tag: "path", attr: { d: "M4 6v12" }, child: [] }, { tag: "path", attr: { d: "M12 6v12" }, child: [] }, { tag: "path", attr: { d: "M11 18h2" }, child: [] }, { tag: "path", attr: { d: "M3 18h2" }, child: [] }, { tag: "path", attr: { d: "M4 12h8" }, child: [] }, { tag: "path", attr: { d: "M3 6h2" }, child: [] }, { tag: "path", attr: { d: "M11 6h2" }, child: [] }] })(t);
485
485
  }
486
486
  function Kr(t) {
487
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M11 5l6 0" } }, { tag: "path", attr: { d: "M7 19l6 0" } }, { tag: "path", attr: { d: "M14 5l-4 14" } }] })(t);
487
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M11 5l6 0" }, child: [] }, { tag: "path", attr: { d: "M7 19l6 0" }, child: [] }, { tag: "path", attr: { d: "M14 5l-4 14" }, child: [] }] })(t);
488
488
  }
489
489
  function Gr(t) {
490
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M17.5 15.5m-3.5 0a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0" } }, { tag: "path", attr: { d: "M3 19v-10.5a3.5 3.5 0 0 1 7 0v10.5" } }, { tag: "path", attr: { d: "M3 13h7" } }, { tag: "path", attr: { d: "M21 12v7" } }] })(t);
490
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M17.5 15.5m-3.5 0a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0" }, child: [] }, { tag: "path", attr: { d: "M3 19v-10.5a3.5 3.5 0 0 1 7 0v10.5" }, child: [] }, { tag: "path", attr: { d: "M3 13h7" }, child: [] }, { tag: "path", attr: { d: "M21 12v7" }, child: [] }] })(t);
491
491
  }
492
492
  function qr(t) {
493
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" } }, { tag: "path", attr: { d: "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" } }] })(t);
493
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M9 15l6 -6" }, child: [] }, { tag: "path", attr: { d: "M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" }, child: [] }, { tag: "path", attr: { d: "M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" }, child: [] }] })(t);
494
494
  }
495
495
  function Jr(t) {
496
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M3.5 5.5l1.5 1.5l2.5 -2.5" } }, { tag: "path", attr: { d: "M3.5 11.5l1.5 1.5l2.5 -2.5" } }, { tag: "path", attr: { d: "M3.5 17.5l1.5 1.5l2.5 -2.5" } }, { tag: "path", attr: { d: "M11 6l9 0" } }, { tag: "path", attr: { d: "M11 12l9 0" } }, { tag: "path", attr: { d: "M11 18l9 0" } }] })(t);
496
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M3.5 5.5l1.5 1.5l2.5 -2.5" }, child: [] }, { tag: "path", attr: { d: "M3.5 11.5l1.5 1.5l2.5 -2.5" }, child: [] }, { tag: "path", attr: { d: "M3.5 17.5l1.5 1.5l2.5 -2.5" }, child: [] }, { tag: "path", attr: { d: "M11 6l9 0" }, child: [] }, { tag: "path", attr: { d: "M11 12l9 0" }, child: [] }, { tag: "path", attr: { d: "M11 18l9 0" }, child: [] }] })(t);
497
497
  }
498
498
  function Yr(t) {
499
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M11 6h9" } }, { tag: "path", attr: { d: "M11 12h9" } }, { tag: "path", attr: { d: "M12 18h8" } }, { tag: "path", attr: { d: "M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4" } }, { tag: "path", attr: { d: "M6 10v-6l-2 2" } }] })(t);
499
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M11 6h9" }, child: [] }, { tag: "path", attr: { d: "M11 12h9" }, child: [] }, { tag: "path", attr: { d: "M12 18h8" }, child: [] }, { tag: "path", attr: { d: "M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4" }, child: [] }, { tag: "path", attr: { d: "M6 10v-6l-2 2" }, child: [] }] })(t);
500
500
  }
501
501
  function Xr(t) {
502
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M9 6l11 0" } }, { tag: "path", attr: { d: "M9 12l11 0" } }, { tag: "path", attr: { d: "M9 18l11 0" } }, { tag: "path", attr: { d: "M5 6l0 .01" } }, { tag: "path", attr: { d: "M5 12l0 .01" } }, { tag: "path", attr: { d: "M5 18l0 .01" } }] })(t);
502
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M9 6l11 0" }, child: [] }, { tag: "path", attr: { d: "M9 12l11 0" }, child: [] }, { tag: "path", attr: { d: "M9 18l11 0" }, child: [] }, { tag: "path", attr: { d: "M5 6l0 .01" }, child: [] }, { tag: "path", attr: { d: "M5 12l0 .01" }, child: [] }, { tag: "path", attr: { d: "M5 18l0 .01" }, child: [] }] })(t);
503
503
  }
504
504
  function Vr(t) {
505
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" } }, { tag: "path", attr: { d: "M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" } }] })(t);
505
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" }, child: [] }, { tag: "path", attr: { d: "M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" }, child: [] }] })(t);
506
506
  }
507
507
  function Qr(t) {
508
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M5 12l14 0" } }, { tag: "path", attr: { d: "M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" } }] })(t);
508
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M5 12l14 0" }, child: [] }, { tag: "path", attr: { d: "M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" }, child: [] }] })(t);
509
509
  }
510
510
  function Zr(t) {
511
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M5 7l8 10m-8 0l8 -10" } }, { tag: "path", attr: { d: "M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" } }] })(t);
511
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M5 7l8 10m-8 0l8 -10" }, child: [] }, { tag: "path", attr: { d: "M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" }, child: [] }] })(t);
512
512
  }
513
513
  function tn(t) {
514
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M5 7l8 10m-8 0l8 -10" } }, { tag: "path", attr: { d: "M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" } }] })(t);
514
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M5 7l8 10m-8 0l8 -10" }, child: [] }, { tag: "path", attr: { d: "M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" }, child: [] }] })(t);
515
515
  }
516
516
  function en(t) {
517
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" } }, { tag: "path", attr: { d: "M4 10l16 0" } }, { tag: "path", attr: { d: "M10 4l0 16" } }] })(t);
517
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" }, child: [] }, { tag: "path", attr: { d: "M3 10h18" }, child: [] }, { tag: "path", attr: { d: "M10 3v18" }, child: [] }] })(t);
518
518
  }
519
519
  function rn(t) {
520
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M9 15v-7a3 3 0 0 1 6 0v7" } }, { tag: "path", attr: { d: "M9 11h6" } }, { tag: "path", attr: { d: "M5 19h14" } }] })(t);
520
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M9 15v-7a3 3 0 0 1 6 0v7" }, child: [] }, { tag: "path", attr: { d: "M9 11h6" }, child: [] }, { tag: "path", attr: { d: "M5 19h14" }, child: [] }] })(t);
521
521
  }
522
522
  function nn(t) {
523
- return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 5v5a5 5 0 0 0 10 0v-5" } }, { tag: "path", attr: { d: "M5 19h14" } }] })(t);
523
+ return f({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M7 5v5a5 5 0 0 0 10 0v-5" }, child: [] }, { tag: "path", attr: { d: "M5 19h14" }, child: [] }] })(t);
524
524
  }
525
- const on = xr("div", {
525
+ const on = Tr("div", {
526
526
  width: "10rem",
527
527
  display: "flex"
528
528
  }), he = {
@@ -537,10 +537,10 @@ const on = xr("div", {
537
537
  check: "Avkrysningsliste"
538
538
  }, an = {
539
539
  bullet: /* @__PURE__ */ n(Xr, { size: "1.25rem" }),
540
- h1: /* @__PURE__ */ n(Hr, { size: "1.25rem" }),
541
- h2: /* @__PURE__ */ n(Ur, { size: "1.25rem" }),
542
- h3: /* @__PURE__ */ n(Wr, { size: "1.25rem" }),
543
- h4: /* @__PURE__ */ n(jr, { size: "1.25rem" }),
540
+ h1: /* @__PURE__ */ n(Ur, { size: "1.25rem" }),
541
+ h2: /* @__PURE__ */ n(Wr, { size: "1.25rem" }),
542
+ h3: /* @__PURE__ */ n(jr, { size: "1.25rem" }),
543
+ h4: /* @__PURE__ */ n(Hr, { size: "1.25rem" }),
544
544
  number: /* @__PURE__ */ n(Yr, { size: "1.25rem" }),
545
545
  check: /* @__PURE__ */ n(Jr, { size: "1.25rem" }),
546
546
  paragraph: /* @__PURE__ */ n(Gr, { size: "1.25rem" }),
@@ -565,9 +565,9 @@ const on = xr("div", {
565
565
  if (!E(t))
566
566
  return null;
567
567
  const r = t.anchor.getNode();
568
- let e = r.getKey() === "root" ? r : Wt(r, (o) => {
569
- const i = o.getParent();
570
- return i !== null && Ft(i);
568
+ let e = r.getKey() === "root" ? r : jt(r, (i) => {
569
+ const o = i.getParent();
570
+ return o !== null && Ft(o);
571
571
  });
572
572
  return e === null && (e = r.getTopLevelElementOrThrow()), {
573
573
  anchorNode: r,
@@ -581,23 +581,23 @@ const on = xr("div", {
581
581
  const c = y(), u = ln(c);
582
582
  if (!u)
583
583
  return !1;
584
- const { element: g, anchorNode: C } = u, x = g.getKey();
585
- if (t.getElementByKey(x) !== null)
584
+ const { element: g, anchorNode: C } = u, T = g.getKey();
585
+ if (t.getElementByKey(T) !== null)
586
586
  if (kt(g)) {
587
- const k = De(
587
+ const k = ze(
588
588
  C,
589
589
  ft
590
590
  ), m = k ? k.getListType() : g.getListType();
591
591
  e(m);
592
592
  } else {
593
- const k = je(g) ? g.getTag() : g.getType();
593
+ const k = He(g) ? g.getTag() : g.getType();
594
594
  k in he && e(k);
595
595
  }
596
596
  return !1;
597
597
  },
598
598
  q
599
599
  ), [t]);
600
- const o = (c) => {
600
+ const i = (c) => {
601
601
  r !== c && t.update(() => {
602
602
  const u = y();
603
603
  E(u) && (ut(u, () => Ke(c)), e(c));
@@ -617,26 +617,26 @@ const on = xr("div", {
617
617
  side: "bottom",
618
618
  align: "start",
619
619
  children: [
620
- /* @__PURE__ */ n(T, { onClick: () => {
620
+ /* @__PURE__ */ n(M, { onClick: () => {
621
621
  r !== "paragraph" && t.update(() => {
622
622
  const c = y();
623
623
  E(c) && (ut(c, () => G()), e("paragraph"));
624
624
  });
625
625
  }, children: /* @__PURE__ */ n(I, { blockType: "paragraph" }) }),
626
- /* @__PURE__ */ n(T, { onClick: () => o("h1"), children: /* @__PURE__ */ n(I, { blockType: "h1" }) }),
627
- /* @__PURE__ */ n(T, { onClick: () => o("h2"), children: /* @__PURE__ */ n(I, { blockType: "h2" }) }),
628
- /* @__PURE__ */ n(T, { onClick: () => o("h3"), children: /* @__PURE__ */ n(I, { blockType: "h3" }) }),
629
- /* @__PURE__ */ n(T, { onClick: () => o("h4"), children: /* @__PURE__ */ n(I, { blockType: "h4" }) }),
630
- /* @__PURE__ */ n(T, { onClick: () => {
631
- r !== "bullet" && (t.dispatchCommand(He, void 0), e("bullet"));
626
+ /* @__PURE__ */ n(M, { onClick: () => i("h1"), children: /* @__PURE__ */ n(I, { blockType: "h1" }) }),
627
+ /* @__PURE__ */ n(M, { onClick: () => i("h2"), children: /* @__PURE__ */ n(I, { blockType: "h2" }) }),
628
+ /* @__PURE__ */ n(M, { onClick: () => i("h3"), children: /* @__PURE__ */ n(I, { blockType: "h3" }) }),
629
+ /* @__PURE__ */ n(M, { onClick: () => i("h4"), children: /* @__PURE__ */ n(I, { blockType: "h4" }) }),
630
+ /* @__PURE__ */ n(M, { onClick: () => {
631
+ r !== "bullet" && (t.dispatchCommand(Ue, void 0), e("bullet"));
632
632
  }, children: /* @__PURE__ */ n(I, { blockType: "bullet" }) }),
633
- /* @__PURE__ */ n(T, { onClick: () => {
634
- r !== "number" && (t.dispatchCommand(Ue, void 0), e("number"));
633
+ /* @__PURE__ */ n(M, { onClick: () => {
634
+ r !== "number" && (t.dispatchCommand(We, void 0), e("number"));
635
635
  }, children: /* @__PURE__ */ n(I, { blockType: "number" }) }),
636
- /* @__PURE__ */ n(T, { onClick: () => {
636
+ /* @__PURE__ */ n(M, { onClick: () => {
637
637
  r !== "check" && (t.dispatchCommand(Gt, void 0), e("check"));
638
638
  }, children: /* @__PURE__ */ n(I, { blockType: "check" }) }),
639
- /* @__PURE__ */ n(T, { onClick: () => {
639
+ /* @__PURE__ */ n(M, { onClick: () => {
640
640
  r !== "quote" && t.update(() => {
641
641
  const c = y();
642
642
  E(c) && (ut(c, () => Ge()), e("quote"));
@@ -646,11 +646,11 @@ const on = xr("div", {
646
646
  }
647
647
  ) });
648
648
  }, cn = () => {
649
- const [t] = w(), [r, e] = p(!1), [o, i] = p(!1), [a, l] = p(!1), [s, d] = p(!1), [c, u] = p(!1), [g, C] = p(!1), [x, _] = p(!1), [k, m] = p(""), [v, N] = p(!1), R = M(() => {
649
+ const [t] = w(), [r, e] = p(!1), [i, o] = p(!1), [a, l] = p(!1), [s, d] = p(!1), [c, u] = p(!1), [g, C] = p(!1), [T, _] = p(!1), [k, m] = p(""), [v, N] = p(!1), R = x(() => {
650
650
  const b = y();
651
- E(b) && (e(b.hasFormat("bold")), i(b.hasFormat("italic")), l(b.hasFormat("underline")), d(b.hasFormat("strikethrough")), u(b.hasFormat("code")), C(b.hasFormat("superscript")), _(b.hasFormat("subscript")), m(ze(b, "color", "")));
651
+ E(b) && (e(b.hasFormat("bold")), o(b.hasFormat("italic")), l(b.hasFormat("underline")), d(b.hasFormat("strikethrough")), u(b.hasFormat("code")), C(b.hasFormat("superscript")), _(b.hasFormat("subscript")), m($e(b, "color", "")));
652
652
  }, []);
653
- L(() => ot(
653
+ L(() => it(
654
654
  t.registerCommand(
655
655
  Q,
656
656
  () => (R(), !1),
@@ -662,37 +662,37 @@ const on = xr("div", {
662
662
  });
663
663
  })
664
664
  ), [t, R]);
665
- const Y = M(
666
- () => t.dispatchCommand(A, "bold"),
665
+ const Y = x(
666
+ () => t.dispatchCommand(D, "bold"),
667
667
  [t]
668
- ), Z = M(
669
- () => t.dispatchCommand(A, "italic"),
668
+ ), Z = x(
669
+ () => t.dispatchCommand(D, "italic"),
670
670
  [t]
671
- ), me = M(
672
- () => t.dispatchCommand(A, "underline"),
671
+ ), me = x(
672
+ () => t.dispatchCommand(D, "underline"),
673
673
  [t]
674
- ), fe = M(
675
- () => t.dispatchCommand(A, "strikethrough"),
674
+ ), fe = x(
675
+ () => t.dispatchCommand(D, "strikethrough"),
676
676
  [t]
677
- ), ke = M(
678
- () => t.dispatchCommand(A, "code"),
677
+ ), ke = x(
678
+ () => t.dispatchCommand(D, "code"),
679
679
  [t]
680
- ), be = M(
681
- () => t.dispatchCommand(A, "superscript"),
680
+ ), be = x(
681
+ () => t.dispatchCommand(D, "superscript"),
682
682
  [t]
683
- ), Ce = M(
684
- () => t.dispatchCommand(A, "subscript"),
683
+ ), Ce = x(
684
+ () => t.dispatchCommand(D, "subscript"),
685
685
  [t]
686
686
  ), _t = Qt(() => {
687
687
  const b = [];
688
- return r && b.push("bold"), o && b.push("italic"), a && b.push("underline"), s && b.push("strikethrough"), c && b.push("code"), g && b.push("superscript"), x && b.push("subscript"), k && b.push("color"), b;
688
+ return r && b.push("bold"), i && b.push("italic"), a && b.push("underline"), s && b.push("strikethrough"), c && b.push("code"), g && b.push("superscript"), T && b.push("subscript"), k && b.push("color"), b;
689
689
  }, [
690
690
  r,
691
- o,
691
+ i,
692
692
  a,
693
693
  c,
694
694
  g,
695
- x,
695
+ T,
696
696
  s,
697
697
  k
698
698
  ]);
@@ -777,13 +777,13 @@ const on = xr("div", {
777
777
  { name: "Blå", value: "#2044b8" },
778
778
  { name: "Lilla", value: "#9c31de" }
779
779
  ], hn = ({ activeColor: t }) => {
780
- const [r] = w(), [e, o] = p(!1), i = (a) => {
780
+ const [r] = w(), [e, i] = p(!1), o = (a) => {
781
781
  r.update(() => {
782
782
  const l = y();
783
- l && $e(l, { color: a });
783
+ l && Ae(l, { color: a });
784
784
  });
785
785
  };
786
- return /* @__PURE__ */ h(Zt, { open: e, onOpenChange: o, children: [
786
+ return /* @__PURE__ */ h(Zt, { open: e, onOpenChange: i, children: [
787
787
  /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(O, { value: "color", title: "Tekstfarge", children: /* @__PURE__ */ n(rn, { size: "1.25rem" }) }) }),
788
788
  /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(
789
789
  et,
@@ -796,7 +796,7 @@ const on = xr("div", {
796
796
  O,
797
797
  {
798
798
  value: a.value,
799
- onClick: () => i(
799
+ onClick: () => o(
800
800
  !a.value || a.value === t ? null : a.value
801
801
  ),
802
802
  children: a.value ? /* @__PURE__ */ n(
@@ -824,13 +824,13 @@ const on = xr("div", {
824
824
  ) })
825
825
  ] });
826
826
  }, un = ({ children: t }) => {
827
- const { hasFocus: r, editorRef: e } = F(), o = r, [i, a] = p(o);
827
+ const { hasFocus: r, editorRef: e } = F(), i = r, [o, a] = p(i);
828
828
  tr(() => {
829
- a(o);
830
- }, [o]);
829
+ a(i);
830
+ }, [i]);
831
831
  const { context: l, refs: s, floatingStyles: d } = Ct({
832
832
  placement: "top",
833
- whileElementsMounted: oe,
833
+ whileElementsMounted: ie,
834
834
  middleware: [
835
835
  kr({
836
836
  apply: ({ rects: u, elements: g }) => {
@@ -838,14 +838,14 @@ const on = xr("div", {
838
838
  }
839
839
  }),
840
840
  br(),
841
- ie({
841
+ oe({
842
842
  mainAxis: 8
843
843
  }),
844
844
  Cr({
845
845
  padding: 8
846
846
  })
847
847
  ],
848
- open: i,
848
+ open: o,
849
849
  onOpenChange: a,
850
850
  elements: {
851
851
  reference: e.current
@@ -855,7 +855,7 @@ const on = xr("div", {
855
855
  role: "dialog"
856
856
  })
857
857
  ]);
858
- return i ? /* @__PURE__ */ n(se, { children: /* @__PURE__ */ n(
858
+ return o ? /* @__PURE__ */ n(se, { children: /* @__PURE__ */ n(
859
859
  re,
860
860
  {
861
861
  ref: s.setFloating,
@@ -882,58 +882,58 @@ const on = xr("div", {
882
882
  ] });
883
883
  function pn() {
884
884
  const [t] = w();
885
- return L(() => ot(
885
+ return L(() => it(
886
886
  t.registerCommand(
887
887
  Gt,
888
- () => (We(t, "check"), !0),
889
- D
888
+ () => (je(t, "check"), !0),
889
+ z
890
890
  ),
891
891
  t.registerCommand(
892
892
  we,
893
- (r) => At(r, t, !1),
894
- D
893
+ (r) => Dt(r, t, !1),
894
+ z
895
895
  ),
896
896
  t.registerCommand(
897
897
  _e,
898
- (r) => At(r, t, !0),
899
- D
898
+ (r) => Dt(r, t, !0),
899
+ z
900
900
  ),
901
901
  t.registerCommand(
902
- Ht,
902
+ Ut,
903
903
  (r) => {
904
904
  if (pt() != null) {
905
- const o = t.getRootElement();
906
- return o != null && o.focus(), !0;
905
+ const i = t.getRootElement();
906
+ return i != null && i.focus(), !0;
907
907
  }
908
908
  return !1;
909
909
  },
910
- D
910
+ z
911
911
  ),
912
912
  t.registerCommand(
913
913
  ye,
914
914
  (r) => {
915
915
  const e = pt();
916
916
  return e != null && t.isEditable() ? (t.update(() => {
917
- const o = mt(e);
918
- j(o) && (r.preventDefault(), o.toggleChecked());
917
+ const i = mt(e);
918
+ H(i) && (r.preventDefault(), i.toggleChecked());
919
919
  }), !0) : !1;
920
920
  },
921
- D
921
+ z
922
922
  ),
923
923
  t.registerCommand(
924
924
  Se,
925
925
  (r) => t.getEditorState().read(() => {
926
926
  const e = y();
927
927
  if (E(e) && e.isCollapsed()) {
928
- const { anchor: o } = e, i = o.type === "element";
929
- if (i || o.offset === 0) {
930
- const a = o.getNode(), l = Wt(
928
+ const { anchor: i } = e, o = i.type === "element";
929
+ if (o || i.offset === 0) {
930
+ const a = i.getNode(), l = jt(
931
931
  a,
932
932
  (s) => Ne(s) && !s.isInline()
933
933
  );
934
- if (j(l)) {
934
+ if (H(l)) {
935
935
  const s = l.getParent();
936
- if (kt(s) && s.getListType() === "check" && (i || l.getFirstDescendant() === a)) {
936
+ if (kt(s) && s.getListType() === "check" && (o || l.getFirstDescendant() === a)) {
937
937
  const d = t.getElementByKey(l.__key);
938
938
  if (d != null && document.activeElement !== d)
939
939
  return d.focus(), r.preventDefault(), !0;
@@ -943,10 +943,10 @@ function pn() {
943
943
  }
944
944
  return !1;
945
945
  }),
946
- D
946
+ z
947
947
  ),
948
948
  t.registerRootListener((r, e) => {
949
- r !== null && (r.addEventListener("click", zt), r.addEventListener("pointerdown", $t)), e !== null && (e.removeEventListener("click", zt), e.removeEventListener("pointerdown", $t));
949
+ r !== null && (r.addEventListener("click", $t), r.addEventListener("pointerdown", At)), e !== null && (e.removeEventListener("click", $t), e.removeEventListener("pointerdown", At));
950
950
  })
951
951
  ), [t]), null;
952
952
  }
@@ -954,27 +954,27 @@ function ue(t, r) {
954
954
  const e = t.target;
955
955
  if (e === null || !St(e))
956
956
  return;
957
- const o = e.firstChild;
958
- if (o != null && St(o) && (o.tagName === "UL" || o.tagName === "OL"))
957
+ const i = e.firstChild;
958
+ if (i != null && St(i) && (i.tagName === "UL" || i.tagName === "OL"))
959
959
  return;
960
- const i = e.parentNode;
961
- if (!i || i.__lexicalListType !== "check")
960
+ const o = e.parentNode;
961
+ if (!o || o.__lexicalListType !== "check")
962
962
  return;
963
963
  const a = t.pageX, l = e.getBoundingClientRect();
964
964
  (e.dir === "rtl" ? a < l.right && a > l.right - 20 : a > l.left && a < l.left + 20) && r();
965
965
  }
966
- function zt(t) {
966
+ function $t(t) {
967
967
  ue(t, () => {
968
968
  const r = t.target, e = mn(r);
969
969
  e != null && e.isEditable() && e.update(() => {
970
970
  if (t.target) {
971
- const o = mt(r);
972
- j(o) && (r.focus(), o.toggleChecked());
971
+ const i = mt(r);
972
+ H(i) && (r.focus(), i.toggleChecked());
973
973
  }
974
974
  });
975
975
  });
976
976
  }
977
- function $t(t) {
977
+ function At(t) {
978
978
  ue(t, () => {
979
979
  t.preventDefault();
980
980
  });
@@ -994,24 +994,24 @@ function pt() {
994
994
  t.parentNode.__lexicalListType === "check" ? t : null;
995
995
  }
996
996
  function fn(t, r) {
997
- let e = r ? t.getPreviousSibling() : t.getNextSibling(), o = t;
998
- for (; e == null && j(o); )
999
- o = o.getParentOrThrow().getParent(), o != null && (e = r ? o.getPreviousSibling() : o.getNextSibling());
1000
- for (; j(e); ) {
1001
- const i = r ? e.getLastChild() : e.getFirstChild();
1002
- if (!kt(i))
997
+ let e = r ? t.getPreviousSibling() : t.getNextSibling(), i = t;
998
+ for (; e == null && H(i); )
999
+ i = i.getParentOrThrow().getParent(), i != null && (e = r ? i.getPreviousSibling() : i.getNextSibling());
1000
+ for (; H(e); ) {
1001
+ const o = r ? e.getLastChild() : e.getFirstChild();
1002
+ if (!kt(o))
1003
1003
  return e;
1004
- e = r ? i.getLastChild() : i.getFirstChild();
1004
+ e = r ? o.getLastChild() : o.getFirstChild();
1005
1005
  }
1006
1006
  return null;
1007
1007
  }
1008
- function At(t, r, e) {
1009
- const o = pt();
1010
- return o != null && r.update(() => {
1011
- const i = mt(o);
1012
- if (!j(i))
1008
+ function Dt(t, r, e) {
1009
+ const i = pt();
1010
+ return i != null && r.update(() => {
1011
+ const o = mt(i);
1012
+ if (!H(o))
1013
1013
  return;
1014
- const a = fn(i, e);
1014
+ const a = fn(o, e);
1015
1015
  if (a != null) {
1016
1016
  a.selectStart();
1017
1017
  const l = r.getElementByKey(a.__key);
@@ -1025,13 +1025,13 @@ const Lt = Ee("INSERT_IMAGE_COMMAND");
1025
1025
  function kn() {
1026
1026
  const [t] = vt();
1027
1027
  return L(() => {
1028
- if (!t.hasNodes([H]))
1028
+ if (!t.hasNodes([U]))
1029
1029
  throw new Error("ImagePlugin: ImageNode not registered on editor");
1030
- return ot(
1030
+ return it(
1031
1031
  t.registerCommand(
1032
1032
  Lt,
1033
1033
  (r) => {
1034
- const e = Tt(r);
1034
+ const e = Mt(r);
1035
1035
  return Re([e]), Ft(e.getParentOrThrow()) && Pe(e, G).selectEnd(), !0;
1036
1036
  },
1037
1037
  q
@@ -1058,14 +1058,14 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1058
1058
  t.isEmpty() ? Ir(r) : r.setEditorState(t);
1059
1059
  return;
1060
1060
  }
1061
- if (typeof t == "string" && !xt(t)) {
1061
+ if (typeof t == "string" && !Tt(t)) {
1062
1062
  Or(t, r);
1063
1063
  return;
1064
1064
  }
1065
- const o = r.parseEditorState(t);
1066
- o.isEmpty() || r.setEditorState(o);
1067
- } catch (o) {
1068
- console.error("Could not parse"), console.error(o);
1065
+ const i = r.parseEditorState(t);
1066
+ i.isEmpty() || r.setEditorState(i);
1067
+ } catch (i) {
1068
+ console.error("Could not parse"), console.error(i);
1069
1069
  }
1070
1070
  }));
1071
1071
  }, []), null;
@@ -1106,7 +1106,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1106
1106
  }
1107
1107
  }
1108
1108
  ]
1109
- }), Mn = ({
1109
+ }), xn = ({
1110
1110
  isLoading: t
1111
1111
  }) => /* @__PURE__ */ n(
1112
1112
  P,
@@ -1120,12 +1120,12 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1120
1120
  },
1121
1121
  children: /* @__PURE__ */ n(st, {})
1122
1122
  }
1123
- ), ho = ({
1123
+ ), di = ({
1124
1124
  isLoading: t,
1125
1125
  children: r,
1126
1126
  placeholderText: e,
1127
- nodes: o,
1128
- plugins: i,
1127
+ nodes: i,
1128
+ plugins: o,
1129
1129
  toolbar: a,
1130
1130
  toolbarContent: l,
1131
1131
  content: s,
@@ -1134,12 +1134,12 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1134
1134
  defaultState: u,
1135
1135
  css: g,
1136
1136
  signUrl: C,
1137
- fileUpload: x,
1137
+ fileUpload: T,
1138
1138
  editable: _ = !0
1139
1139
  }) => {
1140
- const { hasFocus: k, attributes: m } = zr({ onBlur: c }), v = J(null), N = Qt(
1141
- () => ({ hasFocus: k, editorRef: v, signUrl: C, fileUpload: x }),
1142
- [k, C, x]
1140
+ const { hasFocus: k, attributes: m } = $r({ onBlur: c }), v = J(null), N = Qt(
1141
+ () => ({ hasFocus: k, editorRef: v, signUrl: C, fileUpload: T }),
1142
+ [k, C, T]
1143
1143
  );
1144
1144
  return /* @__PURE__ */ n(de.Provider, { value: N, children: /* @__PURE__ */ h(
1145
1145
  pr,
@@ -1149,8 +1149,8 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1149
1149
  onError: (R) => {
1150
1150
  console.error(R);
1151
1151
  },
1152
- theme: Mt,
1153
- nodes: o,
1152
+ theme: xt,
1153
+ nodes: i,
1154
1154
  editable: _
1155
1155
  },
1156
1156
  children: [
@@ -1186,8 +1186,8 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1186
1186
  }
1187
1187
  ),
1188
1188
  /* @__PURE__ */ n(bn, {}),
1189
- i,
1190
- /* @__PURE__ */ n(Mn, { isLoading: t }),
1189
+ o,
1190
+ /* @__PURE__ */ n(xn, { isLoading: t }),
1191
1191
  _ && !a && /* @__PURE__ */ n(un, { children: l })
1192
1192
  ]
1193
1193
  }
@@ -1197,7 +1197,7 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1197
1197
  ]
1198
1198
  }
1199
1199
  ) });
1200
- }, xn = {
1200
+ }, Tn = {
1201
1201
  lineHeight: "1.5",
1202
1202
  whiteSpace: "pre-wrap",
1203
1203
  wordBreak: "break-word",
@@ -1408,29 +1408,29 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1408
1408
  defaultVariants: {
1409
1409
  size: "md"
1410
1410
  }
1411
- }, uo = Tr(xn), Tn = ({
1411
+ }, hi = Mr(Tn), Mn = ({
1412
1412
  fileUpload: t,
1413
1413
  ...r
1414
1414
  }) => {
1415
- const [e] = w(), [o, i] = p(null), a = (s) => {
1415
+ const [e] = w(), [i, o] = p(null), a = (s) => {
1416
1416
  var c;
1417
1417
  const d = (c = s.target.files) == null ? void 0 : c[0];
1418
1418
  if (d) {
1419
1419
  const u = new Image(), g = window.URL.createObjectURL(d);
1420
1420
  u.onload = async () => {
1421
1421
  const C = await t.uploadFile({ file: d });
1422
- i({ url: C, width: u.naturalWidth, height: u.naturalHeight }), window.URL.revokeObjectURL(g);
1422
+ o({ url: C, width: u.naturalWidth, height: u.naturalHeight }), window.URL.revokeObjectURL(g);
1423
1423
  }, u.src = g;
1424
1424
  }
1425
1425
  }, l = () => {
1426
- o && !t.isLoading && (e.dispatchCommand(Lt, {
1427
- src: o.url,
1428
- altText: `Image: ${o.url}`,
1429
- meta: { width: o.width, height: o.height }
1426
+ i && !t.isLoading && (e.dispatchCommand(Lt, {
1427
+ src: i.url,
1428
+ altText: `Image: ${i.url}`,
1429
+ meta: { width: i.width, height: i.height }
1430
1430
  }), r.onOpenChange(!1));
1431
1431
  };
1432
1432
  return /* @__PURE__ */ h(ne, { ...r, children: [
1433
- /* @__PURE__ */ n(or, { children: "Sett inn bilde" }),
1433
+ /* @__PURE__ */ n(ir, { children: "Sett inn bilde" }),
1434
1434
  t.isLoading && /* @__PURE__ */ n(st, {}),
1435
1435
  /* @__PURE__ */ n(
1436
1436
  bt,
@@ -1447,15 +1447,15 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1447
1447
  S,
1448
1448
  {
1449
1449
  variant: "primary",
1450
- disabled: !o || t.isLoading,
1450
+ disabled: !i || t.isLoading,
1451
1451
  onClick: l,
1452
1452
  children: "Sett inn"
1453
1453
  }
1454
1454
  )
1455
1455
  ] })
1456
1456
  ] });
1457
- }, go = () => {
1458
- const [t] = w(), { fileUpload: r } = F(), [e, o] = p(!1), i = M(() => {
1457
+ }, ui = () => {
1458
+ const [t] = w(), { fileUpload: r } = F(), [e, i] = p(!1), o = x(() => {
1459
1459
  t.dispatchCommand(Je, {
1460
1460
  rows: "3",
1461
1461
  columns: "3",
@@ -1470,11 +1470,11 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1470
1470
  side: "bottom",
1471
1471
  align: "end",
1472
1472
  children: [
1473
- /* @__PURE__ */ h(T, { onClick: i, children: [
1473
+ /* @__PURE__ */ h(M, { onClick: o, children: [
1474
1474
  /* @__PURE__ */ n(en, { size: "1.25rem" }),
1475
1475
  " Tabell"
1476
1476
  ] }),
1477
- r && /* @__PURE__ */ h(T, { onClick: () => o(!0), children: [
1477
+ r && /* @__PURE__ */ h(M, { onClick: () => i(!0), children: [
1478
1478
  /* @__PURE__ */ n(Nr, { size: "1.25rem" }),
1479
1479
  " Bilde"
1480
1480
  ] })
@@ -1482,30 +1482,30 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1482
1482
  }
1483
1483
  ),
1484
1484
  r && /* @__PURE__ */ n(
1485
- Tn,
1485
+ Mn,
1486
1486
  {
1487
1487
  open: e,
1488
- onOpenChange: o,
1488
+ onOpenChange: i,
1489
1489
  fileUpload: r
1490
1490
  }
1491
1491
  )
1492
1492
  ] });
1493
1493
  };
1494
1494
  function Ln(t) {
1495
- return f({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "circle", attr: { cx: "256", cy: "256", r: "48" } }, { tag: "circle", attr: { cx: "416", cy: "256", r: "48" } }, { tag: "circle", attr: { cx: "96", cy: "256", r: "48" } }] })(t);
1495
+ return f({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "circle", attr: { cx: "256", cy: "256", r: "48" }, child: [] }, { tag: "circle", attr: { cx: "416", cy: "256", r: "48" }, child: [] }, { tag: "circle", attr: { cx: "96", cy: "256", r: "48" }, child: [] }] })(t);
1496
1496
  }
1497
- const po = () => {
1498
- const [t] = w(), [r, e] = p(null), { hasFocus: o } = F();
1497
+ const gi = () => {
1498
+ const [t] = w(), [r, e] = p(null), { hasFocus: i } = F();
1499
1499
  L(() => {
1500
- !o && r && e(null);
1501
- }, [o, r]);
1502
- const { refs: i, floatingStyles: a } = Ct({
1500
+ !i && r && e(null);
1501
+ }, [i, r]);
1502
+ const { refs: o, floatingStyles: a } = Ct({
1503
1503
  placement: "top-end",
1504
1504
  open: !!r,
1505
1505
  elements: {
1506
1506
  reference: r
1507
1507
  },
1508
- middleware: [ie({ mainAxis: -20, crossAxis: -2 })]
1508
+ middleware: [oe({ mainAxis: -20, crossAxis: -2 })]
1509
1509
  });
1510
1510
  L(() => t.registerCommand(
1511
1511
  Q,
@@ -1552,35 +1552,35 @@ const po = () => {
1552
1552
  icon: !0,
1553
1553
  variant: "primary",
1554
1554
  color: "secondary",
1555
- ref: i.setFloating,
1555
+ ref: o.setFloating,
1556
1556
  style: a,
1557
1557
  css: { padding: "2px", width: "18px", height: "18px" },
1558
1558
  children: /* @__PURE__ */ n(Ln, {})
1559
1559
  }
1560
1560
  ),
1561
1561
  children: [
1562
- /* @__PURE__ */ n(U, { onClick: l("add-row-over"), children: "Legg til rad over" }),
1563
- /* @__PURE__ */ n(U, { onClick: l("add-row-under"), children: "Legg til rad under" }),
1562
+ /* @__PURE__ */ n(W, { onClick: l("add-row-over"), children: "Legg til rad over" }),
1563
+ /* @__PURE__ */ n(W, { onClick: l("add-row-under"), children: "Legg til rad under" }),
1564
1564
  /* @__PURE__ */ n(It, {}),
1565
- /* @__PURE__ */ n(U, { onClick: l("add-column-left"), children: "Legg til kolonne venstre" }),
1566
- /* @__PURE__ */ n(U, { onClick: l("add-column-right"), children: "Legg til kolonne høyre" }),
1565
+ /* @__PURE__ */ n(W, { onClick: l("add-column-left"), children: "Legg til kolonne venstre" }),
1566
+ /* @__PURE__ */ n(W, { onClick: l("add-column-right"), children: "Legg til kolonne høyre" }),
1567
1567
  /* @__PURE__ */ n(It, {}),
1568
- /* @__PURE__ */ n(U, { onClick: l("delete-row"), children: "Fjern rad" }),
1569
- /* @__PURE__ */ n(U, { onClick: l("delete-column"), children: "Fjern kolonne" })
1568
+ /* @__PURE__ */ n(W, { onClick: l("delete-row"), children: "Fjern rad" }),
1569
+ /* @__PURE__ */ n(W, { onClick: l("delete-column"), children: "Fjern kolonne" })
1570
1570
  ]
1571
1571
  }
1572
1572
  ) : null;
1573
1573
  };
1574
1574
  function wt(t) {
1575
1575
  let r = t;
1576
- const e = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, o = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
1577
- return r = String(r).trim(), r.match(e) || r.match(o) ? r : "https://";
1576
+ const e = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, i = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
1577
+ return r = String(r).trim(), r.match(e) || r.match(i) ? r : "https://";
1578
1578
  }
1579
1579
  function ge(t) {
1580
- const r = t.anchor, e = t.focus, o = t.anchor.getNode(), i = t.focus.getNode();
1581
- return o === i ? o : t.isBackward() ? yt(e) ? o : i : yt(r) ? o : i;
1580
+ const r = t.anchor, e = t.focus, i = t.anchor.getNode(), o = t.focus.getNode();
1581
+ return i === o ? i : t.isBackward() ? yt(e) ? i : o : yt(r) ? i : o;
1582
1582
  }
1583
- const mo = (t) => (K.baseURL = t, K), X = class X extends W {
1583
+ const pi = (t) => (K.baseURL = t, K), X = class X extends j {
1584
1584
  static getType() {
1585
1585
  return "rutine_link";
1586
1586
  }
@@ -1610,7 +1610,7 @@ const mo = (t) => (K.baseURL = t, K), X = class X extends W {
1610
1610
  }
1611
1611
  }
1612
1612
  };
1613
- $(X, "baseURL", "");
1613
+ A(X, "baseURL", "");
1614
1614
  let K = X;
1615
1615
  function pe(t) {
1616
1616
  return new K(t);
@@ -1619,23 +1619,23 @@ function wn(t) {
1619
1619
  return t instanceof K;
1620
1620
  }
1621
1621
  const _n = ({ onClose: t }) => {
1622
- const [r] = w(), e = M(
1623
- (i) => {
1622
+ const [r] = w(), e = x(
1623
+ (o) => {
1624
1624
  r.update(() => {
1625
1625
  const a = y();
1626
1626
  if (E(a) && a.isCollapsed()) {
1627
- const l = z(i);
1627
+ const l = $(o);
1628
1628
  a.insertNodes([l]);
1629
- const s = Ut();
1630
- s.setTextNodeRange(l, 0, l, i.length), nt(s);
1629
+ const s = Wt();
1630
+ s.setTextNodeRange(l, 0, l, o.length), nt(s);
1631
1631
  }
1632
- r.dispatchCommand(it, wt(i));
1632
+ r.dispatchCommand(ot, wt(o));
1633
1633
  });
1634
1634
  },
1635
1635
  [r]
1636
1636
  );
1637
- return /* @__PURE__ */ h("form", { onSubmit: (i) => {
1638
- e(i.currentTarget.url.value), t();
1637
+ return /* @__PURE__ */ h("form", { onSubmit: (o) => {
1638
+ e(o.currentTarget.url.value), t();
1639
1639
  }, children: [
1640
1640
  /* @__PURE__ */ n(bt, { name: "url", label: "URL", type: "url", required: !0 }),
1641
1641
  /* @__PURE__ */ h(ct, { children: [
@@ -1647,10 +1647,10 @@ const _n = ({ onClose: t }) => {
1647
1647
  onClose: t,
1648
1648
  getDocs: r
1649
1649
  }) => {
1650
- const [e] = w(), o = J(!1), [i, a] = p(null), [l, s] = p([]);
1650
+ const [e] = w(), i = J(!1), [o, a] = p(null), [l, s] = p([]);
1651
1651
  L(() => {
1652
- o.current || (async () => {
1653
- o.current = !0;
1652
+ i.current || (async () => {
1653
+ i.current = !0;
1654
1654
  try {
1655
1655
  const c = await r();
1656
1656
  a(c);
@@ -1658,15 +1658,15 @@ const _n = ({ onClose: t }) => {
1658
1658
  }
1659
1659
  })();
1660
1660
  }, [r]);
1661
- const d = M(
1661
+ const d = x(
1662
1662
  (c) => {
1663
1663
  e.update(() => {
1664
1664
  const u = y();
1665
1665
  if (E(u)) {
1666
1666
  const g = [];
1667
- for (const [C, x] of c.entries()) {
1668
- const _ = pe(x.value);
1669
- _.append(z(x.label)), g.push(_), C !== c.length - 1 && g.push(z(" "));
1667
+ for (const [C, T] of c.entries()) {
1668
+ const _ = pe(T.value);
1669
+ _.append($(T.label)), g.push(_), C !== c.length - 1 && g.push($(" "));
1670
1670
  }
1671
1671
  u.insertNodes(g);
1672
1672
  }
@@ -1675,12 +1675,12 @@ const _n = ({ onClose: t }) => {
1675
1675
  [e]
1676
1676
  );
1677
1677
  return /* @__PURE__ */ h(B, { children: [
1678
- !i && /* @__PURE__ */ n(st, {}),
1679
- i && /* @__PURE__ */ n(
1678
+ !o && /* @__PURE__ */ n(st, {}),
1679
+ o && /* @__PURE__ */ n(
1680
1680
  ar,
1681
1681
  {
1682
1682
  isMulti: !0,
1683
- options: i,
1683
+ options: o,
1684
1684
  onChange: (c) => s(c)
1685
1685
  }
1686
1686
  ),
@@ -1703,7 +1703,7 @@ const _n = ({ onClose: t }) => {
1703
1703
  fileUpload: r,
1704
1704
  filePrefix: e
1705
1705
  }) => {
1706
- const [o] = w(), [i, a] = p(null), l = async (d) => {
1706
+ const [i] = w(), [o, a] = p(null), l = async (d) => {
1707
1707
  var u;
1708
1708
  const c = (u = d.target.files) == null ? void 0 : u[0];
1709
1709
  if (c) {
@@ -1713,20 +1713,20 @@ const _n = ({ onClose: t }) => {
1713
1713
  url: e ? `${e}${g}` : g
1714
1714
  });
1715
1715
  }
1716
- }, s = M(() => {
1717
- o.update(() => {
1718
- if (!i)
1716
+ }, s = x(() => {
1717
+ i.update(() => {
1718
+ if (!o)
1719
1719
  return;
1720
1720
  const d = y();
1721
1721
  if (E(d) && d.isCollapsed()) {
1722
- const c = z(i.name);
1722
+ const c = $(o.name);
1723
1723
  d.insertNodes([c]);
1724
- const u = Ut();
1725
- u.setTextNodeRange(c, 0, c, i.name.length), nt(u);
1724
+ const u = Wt();
1725
+ u.setTextNodeRange(c, 0, c, o.name.length), nt(u);
1726
1726
  }
1727
- o.dispatchCommand(it, wt(i.url));
1727
+ i.dispatchCommand(ot, wt(o.url));
1728
1728
  });
1729
- }, [o, i]);
1729
+ }, [i, o]);
1730
1730
  return /* @__PURE__ */ h(B, { children: [
1731
1731
  r.isLoading && /* @__PURE__ */ n(st, {}),
1732
1732
  /* @__PURE__ */ n(
@@ -1746,7 +1746,7 @@ const _n = ({ onClose: t }) => {
1746
1746
  onClick: () => {
1747
1747
  s(), t();
1748
1748
  },
1749
- disabled: !i,
1749
+ disabled: !o,
1750
1750
  children: "Sett inn"
1751
1751
  }
1752
1752
  )
@@ -1756,13 +1756,13 @@ const _n = ({ onClose: t }) => {
1756
1756
  open: t,
1757
1757
  onOpenChange: r,
1758
1758
  getDocs: e,
1759
- filePrefix: o
1759
+ filePrefix: i
1760
1760
  }) => {
1761
- const { fileUpload: i } = F(), [a, l] = p("url"), s = () => {
1761
+ const { fileUpload: o } = F(), [a, l] = p("url"), s = () => {
1762
1762
  r(!1);
1763
1763
  };
1764
1764
  return /* @__PURE__ */ h(ne, { open: t, onOpenChange: r, css: { width: "600px" }, children: [
1765
- /* @__PURE__ */ h(ir, { css: { marginBottom: "$8" }, children: [
1765
+ /* @__PURE__ */ h(or, { css: { marginBottom: "$8" }, children: [
1766
1766
  /* @__PURE__ */ n(gt, { active: a === "url", onClick: () => l("url"), children: "URL" }),
1767
1767
  e && /* @__PURE__ */ n(
1768
1768
  gt,
@@ -1772,40 +1772,40 @@ const _n = ({ onClose: t }) => {
1772
1772
  children: "Rutine"
1773
1773
  }
1774
1774
  ),
1775
- i && /* @__PURE__ */ n(gt, { active: a === "file", onClick: () => l("file"), children: "Fil" })
1775
+ o && /* @__PURE__ */ n(gt, { active: a === "file", onClick: () => l("file"), children: "Fil" })
1776
1776
  ] }),
1777
1777
  a === "url" && /* @__PURE__ */ n(_n, { onClose: s }),
1778
1778
  a === "rutine" && e && /* @__PURE__ */ n(yn, { onClose: s, getDocs: e }),
1779
- a === "file" && i && /* @__PURE__ */ n(
1779
+ a === "file" && o && /* @__PURE__ */ n(
1780
1780
  Sn,
1781
1781
  {
1782
1782
  onClose: s,
1783
- fileUpload: i,
1784
- filePrefix: o
1783
+ fileUpload: o,
1784
+ filePrefix: i
1785
1785
  }
1786
1786
  )
1787
1787
  ] });
1788
- }, fo = ({
1788
+ }, mi = ({
1789
1789
  getDocs: t,
1790
1790
  filePrefix: r
1791
1791
  }) => {
1792
- const [e] = w(), [o, i] = p(!1), [a, l] = p(!1), s = M(() => {
1792
+ const [e] = w(), [i, o] = p(!1), [a, l] = p(!1), s = x(() => {
1793
1793
  const d = y();
1794
1794
  if (E(d)) {
1795
1795
  const c = ge(d), u = c.getParent();
1796
- i(tt(u) || tt(c));
1796
+ o(tt(u) || tt(c));
1797
1797
  }
1798
1798
  }, []);
1799
1799
  return L(() => e.registerCommand(
1800
1800
  Q,
1801
1801
  () => (s(), !1),
1802
1802
  q
1803
- ), [e, s]), /* @__PURE__ */ h(et, { type: "single", value: o ? "link" : "", children: [
1803
+ ), [e, s]), /* @__PURE__ */ h(et, { type: "single", value: i ? "link" : "", children: [
1804
1804
  /* @__PURE__ */ n(
1805
1805
  O,
1806
1806
  {
1807
1807
  onClick: () => {
1808
- o ? e.dispatchCommand(it, null) : l(!0);
1808
+ i ? e.dispatchCommand(ot, null) : l(!0);
1809
1809
  },
1810
1810
  title: "Lenke",
1811
1811
  value: "link",
@@ -1822,26 +1822,26 @@ const _n = ({ onClose: t }) => {
1822
1822
  }
1823
1823
  )
1824
1824
  ] });
1825
- }, ko = () => {
1826
- const [t] = w(), r = J(null), [e, o] = p(null), [i, a] = p(""), { hasFocus: l } = F();
1825
+ }, fi = () => {
1826
+ const [t] = w(), r = J(null), [e, i] = p(null), [o, a] = p(""), { hasFocus: l } = F();
1827
1827
  L(() => {
1828
1828
  e ? t.update(() => {
1829
1829
  a(e.getURL());
1830
1830
  }) : a("");
1831
1831
  }, [t, e]);
1832
- const s = !!(e && i && l), { refs: d, floatingStyles: c, context: u } = Ct({
1832
+ const s = !!(e && o && l), { refs: d, floatingStyles: c, context: u } = Ct({
1833
1833
  placement: "top",
1834
1834
  strategy: "fixed",
1835
1835
  open: s,
1836
- whileElementsMounted: oe,
1836
+ whileElementsMounted: ie,
1837
1837
  elements: {
1838
1838
  reference: r.current
1839
1839
  },
1840
1840
  middleware: [vr()]
1841
1841
  }), { getFloatingProps: g } = ae([
1842
1842
  le(u),
1843
- Mr(u)
1844
- ]), C = M(() => {
1843
+ xr(u)
1844
+ ]), C = x(() => {
1845
1845
  var m;
1846
1846
  const k = y();
1847
1847
  if (E(k)) {
@@ -1851,18 +1851,18 @@ const _n = ({ onClose: t }) => {
1851
1851
  const Y = window.getSelection(), Z = t.getRootElement();
1852
1852
  k !== null && Y !== null && Z !== null && Z.contains(Y.anchorNode) && t.isEditable() && (r.current = ((m = Y.focusNode) == null ? void 0 : m.parentElement) ?? null);
1853
1853
  }
1854
- o(R);
1854
+ i(R);
1855
1855
  }
1856
- }, [t]), x = M(() => {
1856
+ }, [t]), T = x(() => {
1857
1857
  e && wn(e) && t.update(() => {
1858
1858
  e.remove();
1859
- }), t.dispatchCommand(it, null);
1859
+ }), t.dispatchCommand(ot, null);
1860
1860
  }, [t, e]);
1861
1861
  if (L(() => {
1862
1862
  t.getEditorState().read(() => {
1863
1863
  C();
1864
1864
  });
1865
- }, [t, C]), L(() => ot(
1865
+ }, [t, C]), L(() => it(
1866
1866
  t.registerUpdateListener(({ editorState: k }) => {
1867
1867
  k.read(() => {
1868
1868
  C();
@@ -1874,12 +1874,12 @@ const _n = ({ onClose: t }) => {
1874
1874
  q
1875
1875
  ),
1876
1876
  t.registerCommand(
1877
- Ht,
1878
- () => e ? (o(null), !0) : !1,
1877
+ Ut,
1878
+ () => e ? (i(null), !0) : !1,
1879
1879
  Ie
1880
1880
  )
1881
1881
  ), [t, C, e]), !s) return null;
1882
- const _ = wt(i);
1882
+ const _ = wt(o);
1883
1883
  return /* @__PURE__ */ n(se, { children: /* @__PURE__ */ h(
1884
1884
  re,
1885
1885
  {
@@ -1909,14 +1909,14 @@ const _n = ({ onClose: t }) => {
1909
1909
  title: _,
1910
1910
  target: "_blank",
1911
1911
  rel: "noreferrer",
1912
- children: i
1912
+ children: o
1913
1913
  }
1914
1914
  ),
1915
- /* @__PURE__ */ n(S, { color: "danger", icon: !0, size: "sm", onClick: x, children: /* @__PURE__ */ n(ur, { size: 24 }) })
1915
+ /* @__PURE__ */ n(S, { color: "danger", icon: !0, size: "sm", onClick: T, children: /* @__PURE__ */ n(ur, { size: 24 }) })
1916
1916
  ]
1917
1917
  }
1918
1918
  ) });
1919
- }, bo = () => {
1919
+ }, ki = () => {
1920
1920
  const [t] = vt();
1921
1921
  return /* @__PURE__ */ h(
1922
1922
  at,
@@ -1925,7 +1925,7 @@ const _n = ({ onClose: t }) => {
1925
1925
  trigger: /* @__PURE__ */ n(lt, { dropdown: !0, children: /* @__PURE__ */ n(Ot, { size: "1.25rem" }) }),
1926
1926
  children: [
1927
1927
  /* @__PURE__ */ h(
1928
- T,
1928
+ M,
1929
1929
  {
1930
1930
  onClick: () => t.dispatchCommand(ht, "left"),
1931
1931
  children: [
@@ -1935,17 +1935,17 @@ const _n = ({ onClose: t }) => {
1935
1935
  }
1936
1936
  ),
1937
1937
  /* @__PURE__ */ h(
1938
- T,
1938
+ M,
1939
1939
  {
1940
1940
  onClick: () => t.dispatchCommand(ht, "center"),
1941
1941
  children: [
1942
- /* @__PURE__ */ n(Dr, { size: "1.25rem" }),
1942
+ /* @__PURE__ */ n(zr, { size: "1.25rem" }),
1943
1943
  "Midt"
1944
1944
  ]
1945
1945
  }
1946
1946
  ),
1947
1947
  /* @__PURE__ */ h(
1948
- T,
1948
+ M,
1949
1949
  {
1950
1950
  onClick: () => t.dispatchCommand(ht, "right"),
1951
1951
  children: [
@@ -1957,61 +1957,61 @@ const _n = ({ onClose: t }) => {
1957
1957
  ]
1958
1958
  }
1959
1959
  );
1960
- }, Dt = ["image/"], Co = () => {
1960
+ }, zt = ["image/"], bi = () => {
1961
1961
  const [t] = vt(), { fileUpload: r } = F();
1962
1962
  return L(() => t.registerCommand(
1963
1963
  qe,
1964
1964
  (e) => ((async () => {
1965
- const o = await Be(
1965
+ const i = await Be(
1966
1966
  e,
1967
- [Dt].flatMap((i) => i)
1967
+ [zt].flatMap((o) => o)
1968
1968
  );
1969
- for (const { file: i, result: a } of o)
1970
- if (Fe(i, Dt)) {
1969
+ for (const { file: o, result: a } of i)
1970
+ if (Fe(o, zt)) {
1971
1971
  let l = a;
1972
- const s = new Image(), d = window.URL.createObjectURL(i);
1972
+ const s = new Image(), d = window.URL.createObjectURL(o);
1973
1973
  s.onload = async () => {
1974
- r && (l = await r.uploadFile({ file: i })), t.dispatchCommand(Lt, {
1974
+ r && (l = await r.uploadFile({ file: o })), t.dispatchCommand(Lt, {
1975
1975
  src: l,
1976
- altText: i.name,
1976
+ altText: o.name,
1977
1977
  meta: { width: s.naturalWidth, height: s.naturalHeight }
1978
1978
  }), window.URL.revokeObjectURL(d);
1979
1979
  }, s.src = d;
1980
1980
  }
1981
1981
  })(), !0),
1982
- D
1982
+ z
1983
1983
  ), [t, r]), null;
1984
1984
  };
1985
1985
  export {
1986
- Tt as $createImageNode,
1986
+ Mt as $createImageNode,
1987
1987
  pe as $createRutineLinkNode,
1988
- ao as $getNodesOfTypes,
1989
- lo as $isImageNode,
1988
+ ai as $getNodesOfTypes,
1989
+ li as $isImageNode,
1990
1990
  wn as $isRutineLinkNode,
1991
- bo as AlignToolbarDropdown,
1992
- Co as DragDropPastePlugin,
1991
+ ki as AlignToolbarDropdown,
1992
+ bi as DragDropPastePlugin,
1993
1993
  un as FloatingToolbar,
1994
- H as ImageNode,
1995
- go as InsertSelector,
1996
- ko as LinkEditPlugin,
1994
+ U as ImageNode,
1995
+ ui as InsertSelector,
1996
+ fi as LinkEditPlugin,
1997
1997
  rt as LinkTargetNode,
1998
- fo as LinkToolbarButton,
1999
- ho as RichTextEditor,
1998
+ mi as LinkToolbarButton,
1999
+ di as RichTextEditor,
2000
2000
  gn as RichTextToolbar,
2001
2001
  K as RutineLinkNode,
2002
- mo as RutineLinkNodeInit,
2003
- po as TableEditPlugin,
2002
+ pi as RutineLinkNodeInit,
2003
+ gi as TableEditPlugin,
2004
2004
  Ir as clearEditorState,
2005
- so as defaultNodes,
2006
- co as defaultViewNodes,
2005
+ si as defaultNodes,
2006
+ ci as defaultViewNodes,
2007
2007
  Rr as isEditorState,
2008
- xt as isJSON,
2008
+ Tt as isJSON,
2009
2009
  de as richTextContext,
2010
- uo as richTextCss,
2011
- xn as richTextStyleObj,
2010
+ hi as richTextCss,
2011
+ Tn as richTextStyleObj,
2012
2012
  Or as setStateFromPlainText,
2013
- oo as stateToHTML,
2014
- io as syncStateToHTML,
2015
- zr as useHasFocusWithin,
2013
+ ii as stateToHTML,
2014
+ oi as syncStateToHTML,
2015
+ $r as useHasFocusWithin,
2016
2016
  F as useRichTextContext
2017
2017
  };