reactjs-tiptap-editor 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/{ActionMenuButton-tLPdHfCT.cjs → ActionMenuButton-D5CqiauP.cjs} +1 -1
- package/lib/{ActionMenuButton-BllDdN2-.js → ActionMenuButton-DJQVpcjj.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +8 -8
- package/lib/Attachment.d.ts +8 -8
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +8 -8
- package/lib/Blockquote.d.ts +8 -8
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +8 -8
- package/lib/Bold.d.ts +8 -8
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +8 -8
- package/lib/BulletList.d.ts +8 -8
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +8 -8
- package/lib/Clear.d.ts +8 -8
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +8 -8
- package/lib/Code.d.ts +8 -8
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +8 -8
- package/lib/CodeBlock.d.ts +8 -8
- package/lib/CodeBlock.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +8 -8
- package/lib/Color.d.ts +8 -8
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +8 -8
- package/lib/Document.d.ts +8 -8
- package/lib/{Drawer-hyBIiEP6.js → Drawer-82lBASmO.js} +1 -1
- package/lib/{Drawer-BBmEHEAp.cjs → Drawer-DLV1rOAE.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +8 -8
- package/lib/Drawer.d.ts +8 -8
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +8 -8
- package/lib/Emoji.d.ts +8 -8
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-Cd01zFJl.cjs → Excalidraw-BuGGHrVK.cjs} +1 -1
- package/lib/{Excalidraw-BQ2PeAoa.js → Excalidraw-CsD-4eCA.js} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +8 -8
- package/lib/Excalidraw.d.ts +8 -8
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +8 -8
- package/lib/ExportPdf.d.ts +8 -8
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +8 -8
- package/lib/ExportWord.d.ts +8 -8
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +8 -8
- package/lib/FontFamily.d.ts +8 -8
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +8 -8
- package/lib/FontSize.d.ts +8 -8
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +8 -8
- package/lib/FormatPainter.d.ts +8 -8
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +8 -8
- package/lib/Heading.d.ts +8 -8
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +8 -8
- package/lib/Highlight.d.ts +8 -8
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +8 -8
- package/lib/History.d.ts +8 -8
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +8 -8
- package/lib/HorizontalRule.d.ts +8 -8
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +9 -9
- package/lib/Iframe.d.ts +9 -9
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +8 -8
- package/lib/Image.d.ts +8 -8
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +8 -8
- package/lib/ImageGif.d.ts +8 -8
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +8 -8
- package/lib/ImportWord.d.ts +8 -8
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +8 -8
- package/lib/Indent.d.ts +8 -8
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +8 -8
- package/lib/Italic.d.ts +8 -8
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +8 -8
- package/lib/Katex.d.ts +8 -8
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +8 -8
- package/lib/LineHeight.d.ts +8 -8
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +8 -8
- package/lib/Link.d.ts +8 -8
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +8 -8
- package/lib/ListItem.d.ts +8 -8
- package/lib/Mention.d.cts +8 -8
- package/lib/Mention.d.ts +8 -8
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +8 -8
- package/lib/Mermaid.d.ts +8 -8
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +8 -8
- package/lib/MoreMark.d.ts +8 -8
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +8 -8
- package/lib/MultiColumn.d.ts +8 -8
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +8 -8
- package/lib/OrderedList.d.ts +8 -8
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-DvrUVNK2.js → RichTextEditor-BwuyWeH3.js} +444 -432
- package/lib/{RichTextEditor-CM-Xq9RS.cjs → RichTextEditor-NfX6yV6A.cjs} +4 -4
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +8 -8
- package/lib/SearchAndReplace.d.ts +8 -8
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +8 -8
- package/lib/Selection.d.ts +8 -8
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +8 -8
- package/lib/SlashCommand.d.ts +8 -8
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +8 -8
- package/lib/Strike.d.ts +8 -8
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +8 -8
- package/lib/SubAndSuperScript.d.ts +8 -8
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +8 -8
- package/lib/Table.d.ts +8 -8
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +8 -8
- package/lib/TableOfContent.d.ts +8 -8
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +8 -8
- package/lib/TaskList.d.ts +8 -8
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +8 -8
- package/lib/TextAlign.d.ts +8 -8
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +8 -8
- package/lib/TextBubble.d.ts +8 -8
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +8 -8
- package/lib/TextDirection.d.ts +8 -8
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +8 -8
- package/lib/TextUnderline.d.ts +8 -8
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +8 -8
- package/lib/TrailingNode.d.ts +8 -8
- package/lib/{Twitter-BvdxYuDK.js → Twitter-Bstfoi9X.js} +1 -1
- package/lib/{Twitter-BuMkJKBq.cjs → Twitter-D41ISCsH.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +8 -8
- package/lib/Twitter.d.ts +8 -8
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +15 -8
- package/lib/Video.d.ts +15 -8
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +8 -8
- package/lib/bubble-extra.d.ts +8 -8
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +8 -8
- package/lib/index.d.ts +8 -8
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +8 -8
- package/lib/locale-bundle.d.ts +8 -8
- package/lib/{textarea-B172kMgC.js → textarea-CfH4-Iyy.js} +1 -1
- package/lib/{textarea-CapyElEP.cjs → textarea-ZGJkH6ji.cjs} +1 -1
- package/package.json +1 -1
|
@@ -3,19 +3,19 @@ var wu = (e, t, r) => t in e ? bu(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var rr = (e, t, r) => wu(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsxs as T, jsx as s, Fragment as de } from "react/jsx-runtime";
|
|
5
5
|
import * as Z from "react";
|
|
6
|
-
import ur, { useState as Y, useRef as We, useEffect as le, useMemo as ye, useCallback as te, createContext as Su, useContext as Au, useSyncExternalStore as Cu, Fragment as Iu, memo as Tu, forwardRef as Ou, useId as
|
|
7
|
-
import { c as ao, B as at, N as co, R as so, g as Gr, u as
|
|
6
|
+
import ur, { useState as Y, useRef as We, useEffect as le, useMemo as ye, useCallback as te, createContext as Su, useContext as Au, useSyncExternalStore as Cu, Fragment as Iu, memo as Tu, forwardRef as Ou, useId as Ru, useImperativeHandle as Pu, useLayoutEffect as Nu } from "react";
|
|
7
|
+
import { c as ao, B as at, N as co, R as so, g as Gr, u as Eu, E as Mu } from "./dom-dataset-CJ7GyQ2E.js";
|
|
8
8
|
import { Slot as Is } from "@radix-ui/react-slot";
|
|
9
9
|
import { m as we, B as $u, q as hr, V as qi, u as me, r as ku, I as pr, k as mr, j as Ts, C as _u, E as Lu } from "./index-D9llIWB5.js";
|
|
10
10
|
import * as Os from "@radix-ui/react-separator";
|
|
11
11
|
import * as Te from "@radix-ui/react-toast";
|
|
12
|
-
import { WrapText as Du, PencilRuler as Bu, FlipHorizontal as zu, FlipVertical as ju, CropIcon as qu, ChevronUp as Fu, Paperclip as Hu, Eye as Uu, Settings as Wu, ZoomOut as Gu, ZoomIn as Vu, BookMarked as Xu, Sigma as Yu, SmilePlusIcon as Ku, Replace as Yo, SmilePlus as Ju, Frame as Zu, Columns2 as Ko, PanelRight as Qu, PanelLeft as ed, Clipboard as td, Copy as rd, GripVertical as nd, Plus as
|
|
12
|
+
import { WrapText as Du, PencilRuler as Bu, FlipHorizontal as zu, FlipVertical as ju, CropIcon as qu, ChevronUp as Fu, Paperclip as Hu, Eye as Uu, Settings as Wu, ZoomOut as Gu, ZoomIn as Vu, BookMarked as Xu, Sigma as Yu, SmilePlusIcon as Ku, Replace as Yo, SmilePlus as Ju, Frame as Zu, Columns2 as Ko, PanelRight as Qu, PanelLeft as ed, Clipboard as td, Copy as rd, GripVertical as nd, Plus as Rs, Columns4 as id, Columns3 as od, Heading6 as ad, Heading5 as cd, Heading4 as sd, Heading3 as ld, Heading2 as ud, Heading1 as dd, ChevronsUpDown as fd, Trash as hd, Trash2 as pd, TableCellsSplit as md, TableCellsMerge as gd, BetweenVerticalEnd as vd, BetweenVerticalStart as xd, BetweenHorizonalStart as yd, BetweenHorizonalEnd as bd, Unlink as wd, Pencil as Sd, Sparkles as Ad, Table as Cd, Minimize as Id, Maximize as Td, Video as Od, ImageUp as Rd, Link as Pd, ListTodo as Nd, ListOrdered as Ed, List as Md, IndentDecrease as $d, IndentIncrease as kd, Type as _d, CodeXml as Ld, Code as Dd, Superscript as Bd, Subscript as zd, ChevronDown as jd, Undo2 as qd, Redo2 as Fd, PaintRoller as Hd, Eraser as Ud, Minus as Wd, Strikethrough as Gd, Quote as Vd, Underline as Xd, Italic as Yd, LoaderCircle as Kd, Bold as Jd, X as Ps, ChevronRight as Zd, Check as Ns, Circle as Qd } from "lucide-react";
|
|
13
13
|
import * as Ut from "@radix-ui/react-tooltip";
|
|
14
|
-
import * as
|
|
14
|
+
import * as Es from "@radix-ui/react-toggle";
|
|
15
15
|
import { TextAlignRightIcon as ef, TextAlignLeftIcon as tf, TextAlignJustifyIcon as rf, TextAlignCenterIcon as nf } from "@radix-ui/react-icons";
|
|
16
16
|
import * as Lt from "@radix-ui/react-popover";
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
17
|
+
import * as Ms from "@radix-ui/react-label";
|
|
18
|
+
import * as Re from "@radix-ui/react-dialog";
|
|
19
19
|
import { O as Wt, Q as of, z as af, S as cf, a as lo, P as uo, T as Gt, A as sf, R as lf, U as uf, N as Vt, n as $s, m as Ct, b as df, D as ff, V as gr, W as hf, E as pf } from "./index-Drmyqk9P.js";
|
|
20
20
|
import { Resizable as mf } from "re-resizable";
|
|
21
21
|
import gf from "react-image-crop";
|
|
@@ -40,16 +40,16 @@ var Cf = Object.prototype, If = Cf.toString;
|
|
|
40
40
|
function Tf(e) {
|
|
41
41
|
return If.call(e);
|
|
42
42
|
}
|
|
43
|
-
var Of = "[object Null]",
|
|
43
|
+
var Of = "[object Null]", Rf = "[object Undefined]", Jo = Le ? Le.toStringTag : void 0;
|
|
44
44
|
function ct(e) {
|
|
45
|
-
return e == null ? e === void 0 ?
|
|
45
|
+
return e == null ? e === void 0 ? Rf : Of : Jo && Jo in Object(e) ? Af(e) : Tf(e);
|
|
46
46
|
}
|
|
47
47
|
function Ge(e) {
|
|
48
48
|
return e != null && typeof e == "object";
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var Pf = "[object Symbol]";
|
|
51
51
|
function Ar(e) {
|
|
52
|
-
return typeof e == "symbol" || Ge(e) && ct(e) ==
|
|
52
|
+
return typeof e == "symbol" || Ge(e) && ct(e) == Pf;
|
|
53
53
|
}
|
|
54
54
|
function Ls(e, t) {
|
|
55
55
|
for (var r = -1, n = e == null ? 0 : e.length, i = Array(n); ++r < n; )
|
|
@@ -68,14 +68,14 @@ function vr(e) {
|
|
|
68
68
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
69
69
|
}
|
|
70
70
|
var Nf = /\s/;
|
|
71
|
-
function
|
|
71
|
+
function Ef(e) {
|
|
72
72
|
for (var t = e.length; t-- && Nf.test(e.charAt(t)); )
|
|
73
73
|
;
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
|
-
var
|
|
76
|
+
var Mf = /^\s+/;
|
|
77
77
|
function $f(e) {
|
|
78
|
-
return e && e.slice(0,
|
|
78
|
+
return e && e.slice(0, Ef(e) + 1).replace(Mf, "");
|
|
79
79
|
}
|
|
80
80
|
function ot(e) {
|
|
81
81
|
var t = typeof e;
|
|
@@ -274,12 +274,12 @@ var qs = Object.prototype, Th = qs.hasOwnProperty, Oh = qs.propertyIsEnumerable,
|
|
|
274
274
|
}()) ? ia : function(e) {
|
|
275
275
|
return Ge(e) && Th.call(e, "callee") && !Oh.call(e, "callee");
|
|
276
276
|
};
|
|
277
|
-
function
|
|
277
|
+
function Rh() {
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
280
|
-
var Fs = typeof exports == "object" && exports && !exports.nodeType && exports, oa = Fs && typeof module == "object" && module && !module.nodeType && module,
|
|
280
|
+
var Fs = typeof exports == "object" && exports && !exports.nodeType && exports, oa = Fs && typeof module == "object" && module && !module.nodeType && module, Ph = oa && oa.exports === Fs, aa = Ph ? Be.Buffer : void 0, Nh = aa ? aa.isBuffer : void 0, Wi = Nh || Rh, Eh = "[object Arguments]", Mh = "[object Array]", $h = "[object Boolean]", kh = "[object Date]", _h = "[object Error]", Lh = "[object Function]", Dh = "[object Map]", Bh = "[object Number]", zh = "[object Object]", jh = "[object RegExp]", qh = "[object Set]", Fh = "[object String]", Hh = "[object WeakMap]", Uh = "[object ArrayBuffer]", Wh = "[object DataView]", Gh = "[object Float32Array]", Vh = "[object Float64Array]", Xh = "[object Int8Array]", Yh = "[object Int16Array]", Kh = "[object Int32Array]", Jh = "[object Uint8Array]", Zh = "[object Uint8ClampedArray]", Qh = "[object Uint16Array]", ep = "[object Uint32Array]", ae = {};
|
|
281
281
|
ae[Gh] = ae[Vh] = ae[Xh] = ae[Yh] = ae[Kh] = ae[Jh] = ae[Zh] = ae[Qh] = ae[ep] = !0;
|
|
282
|
-
ae[
|
|
282
|
+
ae[Eh] = ae[Mh] = ae[Uh] = ae[$h] = ae[Wh] = ae[kh] = ae[_h] = ae[Lh] = ae[Dh] = ae[Bh] = ae[zh] = ae[jh] = ae[qh] = ae[Fh] = ae[Hh] = !1;
|
|
283
283
|
function tp(e) {
|
|
284
284
|
return Ge(e) && ho(e.length) && !!ae[ct(e)];
|
|
285
285
|
}
|
|
@@ -385,11 +385,11 @@ function Op(e) {
|
|
|
385
385
|
var n = t.length - 1;
|
|
386
386
|
return r == n ? t.pop() : Tp.call(t, r, 1), --this.size, !0;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Rp(e) {
|
|
389
389
|
var t = this.__data__, r = Cr(t, e);
|
|
390
390
|
return r < 0 ? void 0 : t[r][1];
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Pp(e) {
|
|
393
393
|
return Cr(this.__data__, e) > -1;
|
|
394
394
|
}
|
|
395
395
|
function Np(e, t) {
|
|
@@ -405,24 +405,24 @@ function Ve(e) {
|
|
|
405
405
|
}
|
|
406
406
|
Ve.prototype.clear = Cp;
|
|
407
407
|
Ve.prototype.delete = Op;
|
|
408
|
-
Ve.prototype.get =
|
|
409
|
-
Ve.prototype.has =
|
|
408
|
+
Ve.prototype.get = Rp;
|
|
409
|
+
Ve.prototype.has = Pp;
|
|
410
410
|
Ve.prototype.set = Np;
|
|
411
411
|
var Bt = ht(Be, "Map");
|
|
412
|
-
function
|
|
412
|
+
function Ep() {
|
|
413
413
|
this.size = 0, this.__data__ = {
|
|
414
414
|
hash: new lt(),
|
|
415
415
|
map: new (Bt || Ve)(),
|
|
416
416
|
string: new lt()
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Mp(e) {
|
|
420
420
|
var t = typeof e;
|
|
421
421
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
422
422
|
}
|
|
423
423
|
function Ir(e, t) {
|
|
424
424
|
var r = e.__data__;
|
|
425
|
-
return
|
|
425
|
+
return Mp(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
426
426
|
}
|
|
427
427
|
function $p(e) {
|
|
428
428
|
var t = Ir(this, e).delete(e);
|
|
@@ -445,7 +445,7 @@ function Xe(e) {
|
|
|
445
445
|
this.set(n[0], n[1]);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
Xe.prototype.clear =
|
|
448
|
+
Xe.prototype.clear = Ep;
|
|
449
449
|
Xe.prototype.delete = $p;
|
|
450
450
|
Xe.prototype.get = kp;
|
|
451
451
|
Xe.prototype.has = _p;
|
|
@@ -590,26 +590,26 @@ function Cm(e, t) {
|
|
|
590
590
|
function Im() {
|
|
591
591
|
return [];
|
|
592
592
|
}
|
|
593
|
-
var Tm = Object.prototype, Om = Tm.propertyIsEnumerable, la = Object.getOwnPropertySymbols,
|
|
593
|
+
var Tm = Object.prototype, Om = Tm.propertyIsEnumerable, la = Object.getOwnPropertySymbols, Rm = la ? function(e) {
|
|
594
594
|
return e == null ? [] : (e = Object(e), Cm(la(e), function(t) {
|
|
595
595
|
return Om.call(e, t);
|
|
596
596
|
}));
|
|
597
597
|
} : Im;
|
|
598
|
-
function
|
|
598
|
+
function Pm(e, t, r) {
|
|
599
599
|
var n = t(e);
|
|
600
600
|
return De(e) ? n : Xs(n, r(e));
|
|
601
601
|
}
|
|
602
602
|
function ua(e) {
|
|
603
|
-
return
|
|
603
|
+
return Pm(e, Ws, Rm);
|
|
604
604
|
}
|
|
605
|
-
var Yi = ht(Be, "DataView"), Ki = ht(Be, "Promise"), Ji = ht(Be, "Set"), da = "[object Map]", Nm = "[object Object]", fa = "[object Promise]", ha = "[object Set]", pa = "[object WeakMap]", ma = "[object DataView]",
|
|
605
|
+
var Yi = ht(Be, "DataView"), Ki = ht(Be, "Promise"), Ji = ht(Be, "Set"), da = "[object Map]", Nm = "[object Object]", fa = "[object Promise]", ha = "[object Set]", pa = "[object WeakMap]", ma = "[object DataView]", Em = ft(Yi), Mm = ft(Bt), $m = ft(Ki), km = ft(Ji), _m = ft(Ui), nt = ct;
|
|
606
606
|
(Yi && nt(new Yi(new ArrayBuffer(1))) != ma || Bt && nt(new Bt()) != da || Ki && nt(Ki.resolve()) != fa || Ji && nt(new Ji()) != ha || Ui && nt(new Ui()) != pa) && (nt = function(e) {
|
|
607
607
|
var t = ct(e), r = t == Nm ? e.constructor : void 0, n = r ? ft(r) : "";
|
|
608
608
|
if (n)
|
|
609
609
|
switch (n) {
|
|
610
|
-
case Mm:
|
|
611
|
-
return ma;
|
|
612
610
|
case Em:
|
|
611
|
+
return ma;
|
|
612
|
+
case Mm:
|
|
613
613
|
return da;
|
|
614
614
|
case $m:
|
|
615
615
|
return fa;
|
|
@@ -752,8 +752,8 @@ function cg(e, t, r, n, i, o) {
|
|
|
752
752
|
y || (y = h == "constructor");
|
|
753
753
|
}
|
|
754
754
|
if (g && !y) {
|
|
755
|
-
var A = e.constructor,
|
|
756
|
-
A !=
|
|
755
|
+
var A = e.constructor, P = t.constructor;
|
|
756
|
+
A != P && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof P == "function" && P instanceof P) && (g = !1);
|
|
757
757
|
}
|
|
758
758
|
return o.delete(e), o.delete(t), g;
|
|
759
759
|
}
|
|
@@ -873,29 +873,29 @@ function Or(e, t, r) {
|
|
|
873
873
|
if (typeof e != "function")
|
|
874
874
|
throw new TypeError(Ig);
|
|
875
875
|
t = wt(t) || 0, ot(r) && (f = !!r.leading, d = "maxWait" in r, o = d ? Tg(wt(r.maxWait) || 0, t) : o, h = "trailing" in r ? !!r.trailing : h);
|
|
876
|
-
function p(
|
|
877
|
-
var
|
|
878
|
-
return n = i = void 0, u =
|
|
876
|
+
function p(E) {
|
|
877
|
+
var M = n, O = i;
|
|
878
|
+
return n = i = void 0, u = E, a = e.apply(O, M), a;
|
|
879
879
|
}
|
|
880
|
-
function m(
|
|
881
|
-
return u =
|
|
880
|
+
function m(E) {
|
|
881
|
+
return u = E, c = setTimeout(w, t), f ? p(E) : a;
|
|
882
882
|
}
|
|
883
|
-
function g(
|
|
884
|
-
var
|
|
883
|
+
function g(E) {
|
|
884
|
+
var M = E - l, O = E - u, C = t - M;
|
|
885
885
|
return d ? Og(C, o - O) : C;
|
|
886
886
|
}
|
|
887
|
-
function y(
|
|
888
|
-
var
|
|
889
|
-
return l === void 0 ||
|
|
887
|
+
function y(E) {
|
|
888
|
+
var M = E - l, O = E - u;
|
|
889
|
+
return l === void 0 || M >= t || M < 0 || d && O >= o;
|
|
890
890
|
}
|
|
891
891
|
function w() {
|
|
892
|
-
var
|
|
893
|
-
if (y(
|
|
894
|
-
return S(
|
|
895
|
-
c = setTimeout(w, g(
|
|
892
|
+
var E = Kr();
|
|
893
|
+
if (y(E))
|
|
894
|
+
return S(E);
|
|
895
|
+
c = setTimeout(w, g(E));
|
|
896
896
|
}
|
|
897
|
-
function S(
|
|
898
|
-
return c = void 0, h && n ? p(
|
|
897
|
+
function S(E) {
|
|
898
|
+
return c = void 0, h && n ? p(E) : (n = i = void 0, a);
|
|
899
899
|
}
|
|
900
900
|
function b() {
|
|
901
901
|
c !== void 0 && clearTimeout(c), u = 0, n = l = i = c = void 0;
|
|
@@ -903,9 +903,9 @@ function Or(e, t, r) {
|
|
|
903
903
|
function A() {
|
|
904
904
|
return c === void 0 ? a : S(Kr());
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
var
|
|
908
|
-
if (n = arguments, i = this, l =
|
|
906
|
+
function P() {
|
|
907
|
+
var E = Kr(), M = y(E);
|
|
908
|
+
if (n = arguments, i = this, l = E, M) {
|
|
909
909
|
if (c === void 0)
|
|
910
910
|
return m(l);
|
|
911
911
|
if (d)
|
|
@@ -913,17 +913,17 @@ function Or(e, t, r) {
|
|
|
913
913
|
}
|
|
914
914
|
return c === void 0 && (c = setTimeout(w, t)), a;
|
|
915
915
|
}
|
|
916
|
-
return
|
|
916
|
+
return P.cancel = b, P.flush = A, P;
|
|
917
917
|
}
|
|
918
918
|
function Jr(e) {
|
|
919
919
|
return Ge(e) && js(e);
|
|
920
920
|
}
|
|
921
|
-
var
|
|
922
|
-
function
|
|
921
|
+
var Rg = 200;
|
|
922
|
+
function Pg(e, t, r, n) {
|
|
923
923
|
var i = -1, o = gh, a = !0, c = e.length, l = [], u = t.length;
|
|
924
924
|
if (!c)
|
|
925
925
|
return l;
|
|
926
|
-
r && (t = Ls(t, mo(r))), t.length >=
|
|
926
|
+
r && (t = Ls(t, mo(r))), t.length >= Rg && (o = rl, a = !1, t = new zt(t));
|
|
927
927
|
e:
|
|
928
928
|
for (; ++i < c; ) {
|
|
929
929
|
var f = e[i], d = r == null ? f : r(f);
|
|
@@ -940,12 +940,12 @@ function Ng(e) {
|
|
|
940
940
|
var t = e == null ? 0 : e.length;
|
|
941
941
|
return t ? e[t - 1] : void 0;
|
|
942
942
|
}
|
|
943
|
-
var
|
|
943
|
+
var Eg = bh(function(e, t) {
|
|
944
944
|
var r = Ng(t);
|
|
945
|
-
return Jr(r) && (r = void 0), Jr(e) ?
|
|
946
|
-
}),
|
|
945
|
+
return Jr(r) && (r = void 0), Jr(e) ? Pg(e, Wp(t, 1, Jr), Cg(r)) : [];
|
|
946
|
+
}), Mg = "[object Number]";
|
|
947
947
|
function yr(e) {
|
|
948
|
-
return typeof e == "number" || Ge(e) && ct(e) ==
|
|
948
|
+
return typeof e == "number" || Ge(e) && ct(e) == Mg;
|
|
949
949
|
}
|
|
950
950
|
var $g = "[object RegExp]";
|
|
951
951
|
function kg(e) {
|
|
@@ -1184,8 +1184,8 @@ const bo = "-", tv = (e) => {
|
|
|
1184
1184
|
o.push(S);
|
|
1185
1185
|
const b = i(g, m);
|
|
1186
1186
|
for (let A = 0; A < b.length; ++A) {
|
|
1187
|
-
const
|
|
1188
|
-
o.push(w +
|
|
1187
|
+
const P = b[A];
|
|
1188
|
+
o.push(w + P);
|
|
1189
1189
|
}
|
|
1190
1190
|
c = u + (c.length > 0 ? " " + c : c);
|
|
1191
1191
|
}
|
|
@@ -1225,21 +1225,21 @@ function hv(e, ...t) {
|
|
|
1225
1225
|
const oe = (e) => {
|
|
1226
1226
|
const t = (r) => r[e] || [];
|
|
1227
1227
|
return t.isThemeGetter = !0, t;
|
|
1228
|
-
}, gl = /^\[(?:([a-z-]+):)?(.+)\]$/i, pv = /^\d+\/\d+$/, mv = /* @__PURE__ */ new Set(["px", "full", "screen"]), gv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vv = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bv = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = (e) => St(e) || mv.has(e) || pv.test(e), tt = (e) => It(e, "length",
|
|
1228
|
+
}, gl = /^\[(?:([a-z-]+):)?(.+)\]$/i, pv = /^\d+\/\d+$/, mv = /* @__PURE__ */ new Set(["px", "full", "screen"]), gv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vv = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bv = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = (e) => St(e) || mv.has(e) || pv.test(e), tt = (e) => It(e, "length", Rv), St = (e) => !!e && !Number.isNaN(Number(e)), Zr = (e) => It(e, "number", St), Et = (e) => !!e && Number.isInteger(Number(e)), wv = (e) => e.endsWith("%") && St(e.slice(0, -1)), H = (e) => gl.test(e), rt = (e) => gv.test(e), Sv = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Av = (e) => It(e, Sv, vl), Cv = (e) => It(e, "position", vl), Iv = /* @__PURE__ */ new Set(["image", "url"]), Tv = (e) => It(e, Iv, Nv), Ov = (e) => It(e, "", Pv), Mt = () => !0, It = (e, t, r) => {
|
|
1229
1229
|
const n = gl.exec(e);
|
|
1230
1230
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
1231
|
-
},
|
|
1231
|
+
}, Rv = (e) => (
|
|
1232
1232
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1233
1233
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1234
1234
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1235
1235
|
vv.test(e) && !xv.test(e)
|
|
1236
|
-
), vl = () => !1,
|
|
1237
|
-
const e = oe("colors"), t = oe("spacing"), r = oe("blur"), n = oe("brightness"), i = oe("borderColor"), o = oe("borderRadius"), a = oe("borderSpacing"), c = oe("borderWidth"), l = oe("contrast"), u = oe("grayscale"), f = oe("hueRotate"), d = oe("invert"), h = oe("gap"), p = oe("gradientColorStops"), m = oe("gradientColorStopPositions"), g = oe("inset"), y = oe("margin"), w = oe("opacity"), S = oe("padding"), b = oe("saturate"), A = oe("scale"),
|
|
1236
|
+
), vl = () => !1, Pv = (e) => yv.test(e), Nv = (e) => bv.test(e), Ev = () => {
|
|
1237
|
+
const e = oe("colors"), t = oe("spacing"), r = oe("blur"), n = oe("brightness"), i = oe("borderColor"), o = oe("borderRadius"), a = oe("borderSpacing"), c = oe("borderWidth"), l = oe("contrast"), u = oe("grayscale"), f = oe("hueRotate"), d = oe("invert"), h = oe("gap"), p = oe("gradientColorStops"), m = oe("gradientColorStopPositions"), g = oe("inset"), y = oe("margin"), w = oe("opacity"), S = oe("padding"), b = oe("saturate"), A = oe("scale"), P = oe("sepia"), E = oe("skew"), M = oe("space"), O = oe("translate"), C = () => ["auto", "contain", "none"], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", H, t], N = () => [H, t], L = () => ["", He, tt], _ = () => ["auto", St, H], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ee = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", H], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [St, H];
|
|
1238
1238
|
return {
|
|
1239
1239
|
cacheSize: 500,
|
|
1240
1240
|
separator: ":",
|
|
1241
1241
|
theme: {
|
|
1242
|
-
colors: [
|
|
1242
|
+
colors: [Mt],
|
|
1243
1243
|
spacing: [He, tt],
|
|
1244
1244
|
blur: ["none", "", rt, H],
|
|
1245
1245
|
brightness: fe(),
|
|
@@ -1254,8 +1254,8 @@ const oe = (e) => {
|
|
|
1254
1254
|
gap: N(),
|
|
1255
1255
|
gradientColorStops: [e],
|
|
1256
1256
|
gradientColorStopPositions: [wv, tt],
|
|
1257
|
-
inset:
|
|
1258
|
-
margin:
|
|
1257
|
+
inset: R(),
|
|
1258
|
+
margin: R(),
|
|
1259
1259
|
opacity: fe(),
|
|
1260
1260
|
padding: N(),
|
|
1261
1261
|
saturate: fe(),
|
|
@@ -1479,7 +1479,7 @@ const oe = (e) => {
|
|
|
1479
1479
|
* @see https://tailwindcss.com/docs/z-index
|
|
1480
1480
|
*/
|
|
1481
1481
|
z: [{
|
|
1482
|
-
z: ["auto",
|
|
1482
|
+
z: ["auto", Et, H]
|
|
1483
1483
|
}],
|
|
1484
1484
|
// Flexbox and Grid
|
|
1485
1485
|
/**
|
|
@@ -1487,7 +1487,7 @@ const oe = (e) => {
|
|
|
1487
1487
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1488
1488
|
*/
|
|
1489
1489
|
basis: [{
|
|
1490
|
-
basis:
|
|
1490
|
+
basis: R()
|
|
1491
1491
|
}],
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Flex Direction
|
|
@@ -1529,14 +1529,14 @@ const oe = (e) => {
|
|
|
1529
1529
|
* @see https://tailwindcss.com/docs/order
|
|
1530
1530
|
*/
|
|
1531
1531
|
order: [{
|
|
1532
|
-
order: ["first", "last", "none",
|
|
1532
|
+
order: ["first", "last", "none", Et, H]
|
|
1533
1533
|
}],
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Grid Template Columns
|
|
1536
1536
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1537
1537
|
*/
|
|
1538
1538
|
"grid-cols": [{
|
|
1539
|
-
"grid-cols": [
|
|
1539
|
+
"grid-cols": [Mt]
|
|
1540
1540
|
}],
|
|
1541
1541
|
/**
|
|
1542
1542
|
* Grid Column Start / End
|
|
@@ -1544,7 +1544,7 @@ const oe = (e) => {
|
|
|
1544
1544
|
*/
|
|
1545
1545
|
"col-start-end": [{
|
|
1546
1546
|
col: ["auto", {
|
|
1547
|
-
span: ["full",
|
|
1547
|
+
span: ["full", Et, H]
|
|
1548
1548
|
}, H]
|
|
1549
1549
|
}],
|
|
1550
1550
|
/**
|
|
@@ -1566,7 +1566,7 @@ const oe = (e) => {
|
|
|
1566
1566
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1567
1567
|
*/
|
|
1568
1568
|
"grid-rows": [{
|
|
1569
|
-
"grid-rows": [
|
|
1569
|
+
"grid-rows": [Mt]
|
|
1570
1570
|
}],
|
|
1571
1571
|
/**
|
|
1572
1572
|
* Grid Row Start / End
|
|
@@ -1574,7 +1574,7 @@ const oe = (e) => {
|
|
|
1574
1574
|
*/
|
|
1575
1575
|
"row-start-end": [{
|
|
1576
1576
|
row: ["auto", {
|
|
1577
|
-
span: [
|
|
1577
|
+
span: [Et, H]
|
|
1578
1578
|
}, H]
|
|
1579
1579
|
}],
|
|
1580
1580
|
/**
|
|
@@ -1828,7 +1828,7 @@ const oe = (e) => {
|
|
|
1828
1828
|
* @see https://tailwindcss.com/docs/space
|
|
1829
1829
|
*/
|
|
1830
1830
|
"space-x": [{
|
|
1831
|
-
"space-x": [
|
|
1831
|
+
"space-x": [M]
|
|
1832
1832
|
}],
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Space Between X Reverse
|
|
@@ -1840,7 +1840,7 @@ const oe = (e) => {
|
|
|
1840
1840
|
* @see https://tailwindcss.com/docs/space
|
|
1841
1841
|
*/
|
|
1842
1842
|
"space-y": [{
|
|
1843
|
-
"space-y": [
|
|
1843
|
+
"space-y": [M]
|
|
1844
1844
|
}],
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Space Between Y Reverse
|
|
@@ -1929,7 +1929,7 @@ const oe = (e) => {
|
|
|
1929
1929
|
* @see https://tailwindcss.com/docs/font-family
|
|
1930
1930
|
*/
|
|
1931
1931
|
"font-family": [{
|
|
1932
|
-
font: [
|
|
1932
|
+
font: [Mt]
|
|
1933
1933
|
}],
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Font Variant Numeric
|
|
@@ -2614,7 +2614,7 @@ const oe = (e) => {
|
|
|
2614
2614
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2615
2615
|
*/
|
|
2616
2616
|
"shadow-color": [{
|
|
2617
|
-
shadow: [
|
|
2617
|
+
shadow: [Mt]
|
|
2618
2618
|
}],
|
|
2619
2619
|
/**
|
|
2620
2620
|
* Opacity
|
|
@@ -2707,7 +2707,7 @@ const oe = (e) => {
|
|
|
2707
2707
|
* @see https://tailwindcss.com/docs/sepia
|
|
2708
2708
|
*/
|
|
2709
2709
|
sepia: [{
|
|
2710
|
-
sepia: [
|
|
2710
|
+
sepia: [P]
|
|
2711
2711
|
}],
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Backdrop Filter
|
|
@@ -2778,7 +2778,7 @@ const oe = (e) => {
|
|
|
2778
2778
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2779
2779
|
*/
|
|
2780
2780
|
"backdrop-sepia": [{
|
|
2781
|
-
"backdrop-sepia": [
|
|
2781
|
+
"backdrop-sepia": [P]
|
|
2782
2782
|
}],
|
|
2783
2783
|
// Tables
|
|
2784
2784
|
/**
|
|
@@ -2893,7 +2893,7 @@ const oe = (e) => {
|
|
|
2893
2893
|
* @see https://tailwindcss.com/docs/rotate
|
|
2894
2894
|
*/
|
|
2895
2895
|
rotate: [{
|
|
2896
|
-
rotate: [
|
|
2896
|
+
rotate: [Et, H]
|
|
2897
2897
|
}],
|
|
2898
2898
|
/**
|
|
2899
2899
|
* Translate X
|
|
@@ -2914,14 +2914,14 @@ const oe = (e) => {
|
|
|
2914
2914
|
* @see https://tailwindcss.com/docs/skew
|
|
2915
2915
|
*/
|
|
2916
2916
|
"skew-x": [{
|
|
2917
|
-
"skew-x": [
|
|
2917
|
+
"skew-x": [E]
|
|
2918
2918
|
}],
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Skew Y
|
|
2921
2921
|
* @see https://tailwindcss.com/docs/skew
|
|
2922
2922
|
*/
|
|
2923
2923
|
"skew-y": [{
|
|
2924
|
-
"skew-y": [
|
|
2924
|
+
"skew-y": [E]
|
|
2925
2925
|
}],
|
|
2926
2926
|
/**
|
|
2927
2927
|
* Transform Origin
|
|
@@ -3262,9 +3262,9 @@ const oe = (e) => {
|
|
|
3262
3262
|
"font-size": ["leading"]
|
|
3263
3263
|
}
|
|
3264
3264
|
};
|
|
3265
|
-
},
|
|
3265
|
+
}, Mv = /* @__PURE__ */ hv(Ev);
|
|
3266
3266
|
function X(...e) {
|
|
3267
|
-
return
|
|
3267
|
+
return Mv(ao(e));
|
|
3268
3268
|
}
|
|
3269
3269
|
let Qr;
|
|
3270
3270
|
function en() {
|
|
@@ -3312,7 +3312,7 @@ const q = ur.forwardRef(
|
|
|
3312
3312
|
]
|
|
3313
3313
|
}
|
|
3314
3314
|
) }),
|
|
3315
|
-
n && /* @__PURE__ */ s(
|
|
3315
|
+
n && /* @__PURE__ */ s(Ro, { ...l, children: /* @__PURE__ */ T("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
|
|
3316
3316
|
/* @__PURE__ */ s("div", { children: n }),
|
|
3317
3317
|
!!(c != null && c.length) && /* @__PURE__ */ s("span", { children: kv(c) })
|
|
3318
3318
|
] }) })
|
|
@@ -3765,7 +3765,7 @@ function Oa(e, t) {
|
|
|
3765
3765
|
}
|
|
3766
3766
|
return o;
|
|
3767
3767
|
}
|
|
3768
|
-
function
|
|
3768
|
+
function Ra(e, t) {
|
|
3769
3769
|
let r = t;
|
|
3770
3770
|
for (; r && r.parentNode && r.parentNode !== e.dom; ) r = r.parentNode;
|
|
3771
3771
|
return r;
|
|
@@ -3785,11 +3785,11 @@ function Yv({
|
|
|
3785
3785
|
if (!f.dataTransfer) return;
|
|
3786
3786
|
const { empty: h, $from: p, $to: m } = d.state.selection, g = Xv(f, r), y = wo(p, m, 0), w = y.some((C) => g.find((k) => k.$from === C.$from && k.$to === C.$to)), S = h || !w ? g : y;
|
|
3787
3787
|
if (S.length === 0) return;
|
|
3788
|
-
const { tr: b } = d.state, A = document.createElement("div"),
|
|
3788
|
+
const { tr: b } = d.state, A = document.createElement("div"), P = S[0].$from.pos, E = S[S.length - 1].$to.pos, M = ke.create(d.state.doc, P, E), O = M.content();
|
|
3789
3789
|
S.forEach((C) => {
|
|
3790
3790
|
const k = Gv(d.nodeDOM(C.$from.pos));
|
|
3791
3791
|
A.append(k);
|
|
3792
|
-
}), A.style.position = "absolute", A.style.top = "-10000px", document.body.append(A), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(A, 0, 0), d.dragging = { slice: O, move: !0 }, b.setSelection(
|
|
3792
|
+
}), A.style.position = "absolute", A.style.top = "-10000px", document.body.append(A), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(A, 0, 0), d.dragging = { slice: O, move: !0 }, b.setSelection(M), d.dispatch(b), document.addEventListener("drop", () => Ia(A), { once: !0 }), setTimeout(() => {
|
|
3793
3793
|
t && (t.style.pointerEvents = "none");
|
|
3794
3794
|
}, 0);
|
|
3795
3795
|
}), t.addEventListener("dragend", () => {
|
|
@@ -3814,11 +3814,11 @@ function Yv({
|
|
|
3814
3814
|
...p(),
|
|
3815
3815
|
...n
|
|
3816
3816
|
}), {
|
|
3817
|
-
update(A,
|
|
3818
|
-
if (!m(t, a) || (t.draggable = !c, !g(A,
|
|
3817
|
+
update(A, P) {
|
|
3818
|
+
if (!m(t, a) || (t.draggable = !c, !g(A, P)))
|
|
3819
3819
|
return;
|
|
3820
|
-
const
|
|
3821
|
-
|
|
3820
|
+
const E = y(A);
|
|
3821
|
+
E && w(A, E);
|
|
3822
3822
|
},
|
|
3823
3823
|
destroy() {
|
|
3824
3824
|
b();
|
|
@@ -3828,8 +3828,8 @@ function Yv({
|
|
|
3828
3828
|
t.draggable = !0, t.style.pointerEvents = "auto";
|
|
3829
3829
|
}
|
|
3830
3830
|
function h(A) {
|
|
3831
|
-
var
|
|
3832
|
-
(
|
|
3831
|
+
var P;
|
|
3832
|
+
(P = A.parentElement) == null || P.appendChild(o), o.appendChild(t), Object.assign(o.style, {
|
|
3833
3833
|
pointerEvents: "none",
|
|
3834
3834
|
position: "absolute",
|
|
3835
3835
|
top: "0",
|
|
@@ -3861,26 +3861,26 @@ function Yv({
|
|
|
3861
3861
|
}
|
|
3862
3862
|
};
|
|
3863
3863
|
}
|
|
3864
|
-
function m(A,
|
|
3865
|
-
return A &&
|
|
3864
|
+
function m(A, P) {
|
|
3865
|
+
return A && P;
|
|
3866
3866
|
}
|
|
3867
|
-
function g(A,
|
|
3868
|
-
return !A.state.doc.eq(
|
|
3867
|
+
function g(A, P) {
|
|
3868
|
+
return !A.state.doc.eq(P.doc) && u !== -1;
|
|
3869
3869
|
}
|
|
3870
3870
|
function y(A) {
|
|
3871
|
-
let
|
|
3872
|
-
return
|
|
3871
|
+
let P = A.nodeDOM(u);
|
|
3872
|
+
return P = Ra(A, P), P === A.dom || (P == null ? void 0 : P.nodeType) !== 1 ? null : P;
|
|
3873
3873
|
}
|
|
3874
|
-
function w(A,
|
|
3875
|
-
const
|
|
3876
|
-
if (
|
|
3874
|
+
function w(A, P) {
|
|
3875
|
+
const E = A.posAtDOM(P, 0), M = Oa(r.state.doc, E);
|
|
3876
|
+
if (M === l)
|
|
3877
3877
|
return;
|
|
3878
|
-
const O = Ta(r.state.doc,
|
|
3879
|
-
l =
|
|
3878
|
+
const O = Ta(r.state.doc, E);
|
|
3879
|
+
l = M, u = O, i == null || i({
|
|
3880
3880
|
editor: r,
|
|
3881
3881
|
node: l,
|
|
3882
3882
|
pos: u
|
|
3883
|
-
}), S(
|
|
3883
|
+
}), S(P);
|
|
3884
3884
|
}
|
|
3885
3885
|
function S(A) {
|
|
3886
3886
|
a.setProps({
|
|
@@ -3921,7 +3921,7 @@ function Yv({
|
|
|
3921
3921
|
});
|
|
3922
3922
|
if (!h.resultElement || h.resultElement === f.dom)
|
|
3923
3923
|
return !1;
|
|
3924
|
-
const p =
|
|
3924
|
+
const p = Ra(f, h.resultElement);
|
|
3925
3925
|
if (p === f.dom || (p == null ? void 0 : p.nodeType) !== 1)
|
|
3926
3926
|
return !1;
|
|
3927
3927
|
const m = f.posAtDOM(p, 0), g = Oa(r.state.doc, m);
|
|
@@ -3978,7 +3978,7 @@ function U0({ delta: e, types: t }) {
|
|
|
3978
3978
|
}
|
|
3979
3979
|
function Zv(e) {
|
|
3980
3980
|
var O, C, k;
|
|
3981
|
-
const { pluginKey: t = yl } = e, { t: r } = me(), [n, i] = Y(null), [o, a] = Y(-1), c = We(null), l = We(null), [u, f] = Y(!1), d = e.editor.extensionManager.extensions.some((
|
|
3981
|
+
const { pluginKey: t = yl } = e, { t: r } = me(), [n, i] = Y(null), [o, a] = Y(-1), c = We(null), l = We(null), [u, f] = Y(!1), d = e.editor.extensionManager.extensions.some((R) => R.name === "textAlign"), h = e.editor.extensionManager.extensions.some((R) => R.name === "indent"), p = e.editor.extensionManager.extensions.some((R) => R.name === "clear");
|
|
3982
3982
|
le(() => {
|
|
3983
3983
|
c.current && !e.editor.isDestroyed && (l.current = Yv({
|
|
3984
3984
|
editor: e.editor,
|
|
@@ -3989,42 +3989,42 @@ function Zv(e) {
|
|
|
3989
3989
|
zIndex: 99,
|
|
3990
3990
|
moveTransition: "transform 0.15s ease-out"
|
|
3991
3991
|
},
|
|
3992
|
-
onNodeChange:
|
|
3992
|
+
onNodeChange: P
|
|
3993
3993
|
}), e.editor.registerPlugin(l.current));
|
|
3994
3994
|
}, [e.editor, c]);
|
|
3995
3995
|
function m() {
|
|
3996
|
-
const
|
|
3997
|
-
|
|
3996
|
+
const R = e.editor.chain();
|
|
3997
|
+
R.setNodeSelection(o).unsetAllMarks(), (n == null ? void 0 : n.type.name) !== "paragraph" && R.setParagraph(), R.run();
|
|
3998
3998
|
}
|
|
3999
3999
|
function g() {
|
|
4000
4000
|
e.editor.chain().focus().setNodeSelection(o).run(), document.execCommand("copy");
|
|
4001
4001
|
}
|
|
4002
4002
|
function y() {
|
|
4003
4003
|
e.editor.commands.setNodeSelection(o);
|
|
4004
|
-
const { $anchor:
|
|
4004
|
+
const { $anchor: R } = e.editor.state.selection, N = R.node(1) || e.editor.state.selection.node;
|
|
4005
4005
|
e.editor.chain().setMeta("hideDragHandle", !0).insertContentAt(o + ((n == null ? void 0 : n.nodeSize) || 0), N.toJSON()).run();
|
|
4006
4006
|
}
|
|
4007
|
-
function w(
|
|
4008
|
-
e.editor.commands.setTextAlign(
|
|
4007
|
+
function w(R) {
|
|
4008
|
+
e.editor.commands.setTextAlign(R);
|
|
4009
4009
|
}
|
|
4010
4010
|
function S() {
|
|
4011
|
-
const
|
|
4012
|
-
|
|
4011
|
+
const R = ro(e.editor.state.tr, o, 1);
|
|
4012
|
+
R.setMeta("hideDragHandle", !0), e.editor.view.dispatch && e.editor.view.dispatch(R);
|
|
4013
4013
|
}
|
|
4014
4014
|
function b() {
|
|
4015
|
-
const
|
|
4016
|
-
e.editor.view.dispatch && e.editor.view.dispatch(
|
|
4015
|
+
const R = ro(e.editor.state.tr, o, -1);
|
|
4016
|
+
e.editor.view.dispatch && e.editor.view.dispatch(R);
|
|
4017
4017
|
}
|
|
4018
4018
|
function A() {
|
|
4019
4019
|
e.editor.chain().setMeta("hideDragHandle", !0).setNodeSelection(o).deleteSelection().run();
|
|
4020
4020
|
}
|
|
4021
|
-
function R
|
|
4022
|
-
|
|
4021
|
+
function P(R) {
|
|
4022
|
+
R.node && i(R.node), a(R.pos);
|
|
4023
4023
|
}
|
|
4024
|
-
function
|
|
4025
|
-
var
|
|
4024
|
+
function E() {
|
|
4025
|
+
var R;
|
|
4026
4026
|
if (o !== -1) {
|
|
4027
|
-
const N = (n == null ? void 0 : n.nodeSize) || 0, L = o + N, _ = (n == null ? void 0 : n.type.name) === "paragraph" && ((
|
|
4027
|
+
const N = (n == null ? void 0 : n.nodeSize) || 0, L = o + N, _ = (n == null ? void 0 : n.type.name) === "paragraph" && ((R = n == null ? void 0 : n.content) == null ? void 0 : R.size) === 0, G = _ ? o + 2 : L + 2;
|
|
4028
4028
|
e.editor.chain().command(({ dispatch: ee, tr: se, state: re }) => ee ? (_ ? se.insertText("/", o, o + 1) : se.insert(
|
|
4029
4029
|
L,
|
|
4030
4030
|
re.schema.nodes.paragraph.create(null, [re.schema.text("/")])
|
|
@@ -4036,11 +4036,11 @@ function Zv(e) {
|
|
|
4036
4036
|
}), [u]), le(() => () => {
|
|
4037
4037
|
l.current && (e.editor.unregisterPlugin(t), l.current = null);
|
|
4038
4038
|
}, []), le(() => {
|
|
4039
|
-
var
|
|
4040
|
-
(
|
|
4039
|
+
var R;
|
|
4040
|
+
(R = e.editor) != null && R.isDestroyed && l.current && (e.editor.unregisterPlugin(t), l.current = null);
|
|
4041
4041
|
}, [(O = e.editor) == null ? void 0 : O.isDestroyed]);
|
|
4042
|
-
const
|
|
4043
|
-
e != null && e.disabled || f(
|
|
4042
|
+
const M = (R) => {
|
|
4043
|
+
e != null && e.disabled || f(R);
|
|
4044
4044
|
};
|
|
4045
4045
|
return /* @__PURE__ */ s(
|
|
4046
4046
|
"div",
|
|
@@ -4056,7 +4056,7 @@ function Zv(e) {
|
|
|
4056
4056
|
{
|
|
4057
4057
|
className: "!richtext-size-7 richtext-cursor-grab",
|
|
4058
4058
|
disabled: e == null ? void 0 : e.disabled,
|
|
4059
|
-
onClick:
|
|
4059
|
+
onClick: E,
|
|
4060
4060
|
size: "icon",
|
|
4061
4061
|
type: "button",
|
|
4062
4062
|
variant: "ghost",
|
|
@@ -4072,7 +4072,7 @@ function Zv(e) {
|
|
|
4072
4072
|
/* @__PURE__ */ T(
|
|
4073
4073
|
vy,
|
|
4074
4074
|
{
|
|
4075
|
-
onOpenChange:
|
|
4075
|
+
onOpenChange: M,
|
|
4076
4076
|
open: u,
|
|
4077
4077
|
children: [
|
|
4078
4078
|
/* @__PURE__ */ T("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: [
|
|
@@ -4090,8 +4090,8 @@ function Zv(e) {
|
|
|
4090
4090
|
size: "icon",
|
|
4091
4091
|
type: "button",
|
|
4092
4092
|
variant: "ghost",
|
|
4093
|
-
onMouseUp: (
|
|
4094
|
-
|
|
4093
|
+
onMouseUp: (R) => {
|
|
4094
|
+
R.preventDefault(), !(e != null && e.disabled) && f(!0);
|
|
4095
4095
|
},
|
|
4096
4096
|
children: /* @__PURE__ */ s(
|
|
4097
4097
|
xe,
|
|
@@ -4104,7 +4104,7 @@ function Zv(e) {
|
|
|
4104
4104
|
)
|
|
4105
4105
|
}
|
|
4106
4106
|
),
|
|
4107
|
-
/* @__PURE__ */ s(
|
|
4107
|
+
/* @__PURE__ */ s(Ro, { children: r("editor.draghandle.tooltip") })
|
|
4108
4108
|
] }),
|
|
4109
4109
|
/* @__PURE__ */ s(xy, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" })
|
|
4110
4110
|
] }),
|
|
@@ -4160,13 +4160,13 @@ function Zv(e) {
|
|
|
4160
4160
|
]
|
|
4161
4161
|
}
|
|
4162
4162
|
),
|
|
4163
|
-
d || h ? /* @__PURE__ */ s(
|
|
4163
|
+
d || h ? /* @__PURE__ */ s(El, {}) : null,
|
|
4164
4164
|
d ? /* @__PURE__ */ T($a, { children: [
|
|
4165
4165
|
/* @__PURE__ */ T(no, { className: "richtext-flex richtext-gap-3", children: [
|
|
4166
4166
|
/* @__PURE__ */ s(xe, { name: "AlignCenter" }),
|
|
4167
4167
|
/* @__PURE__ */ s("span", { children: r("editor.textalign.tooltip") })
|
|
4168
4168
|
] }),
|
|
4169
|
-
/* @__PURE__ */ s(
|
|
4169
|
+
/* @__PURE__ */ s(Ma, { children: /* @__PURE__ */ T(io, { children: [
|
|
4170
4170
|
/* @__PURE__ */ T(
|
|
4171
4171
|
$e,
|
|
4172
4172
|
{
|
|
@@ -4207,7 +4207,7 @@ function Zv(e) {
|
|
|
4207
4207
|
/* @__PURE__ */ s(xe, { name: "IndentIncrease" }),
|
|
4208
4208
|
/* @__PURE__ */ s("span", { children: r("editor.indent") })
|
|
4209
4209
|
] }),
|
|
4210
|
-
/* @__PURE__ */ s(
|
|
4210
|
+
/* @__PURE__ */ s(Ma, { children: /* @__PURE__ */ T(io, { children: [
|
|
4211
4211
|
/* @__PURE__ */ T(
|
|
4212
4212
|
$e,
|
|
4213
4213
|
{
|
|
@@ -4552,11 +4552,11 @@ const bl = {
|
|
|
4552
4552
|
Type: _d,
|
|
4553
4553
|
IndentIncrease: kd,
|
|
4554
4554
|
IndentDecrease: $d,
|
|
4555
|
-
List:
|
|
4556
|
-
ListOrdered:
|
|
4555
|
+
List: Md,
|
|
4556
|
+
ListOrdered: Ed,
|
|
4557
4557
|
ListTodo: Nd,
|
|
4558
|
-
Link:
|
|
4559
|
-
ImageUp:
|
|
4558
|
+
Link: Pd,
|
|
4559
|
+
ImageUp: Rd,
|
|
4560
4560
|
Video: Od,
|
|
4561
4561
|
Maximize: Td,
|
|
4562
4562
|
Minimize: Id,
|
|
@@ -4585,7 +4585,7 @@ const bl = {
|
|
|
4585
4585
|
Columns2: Ko,
|
|
4586
4586
|
Columns3: od,
|
|
4587
4587
|
Columns4: id,
|
|
4588
|
-
Plus:
|
|
4588
|
+
Plus: Rs,
|
|
4589
4589
|
Grip: nd,
|
|
4590
4590
|
Copy: rd,
|
|
4591
4591
|
Clipboard: td,
|
|
@@ -4723,7 +4723,7 @@ function Ix(e) {
|
|
|
4723
4723
|
] });
|
|
4724
4724
|
}
|
|
4725
4725
|
function Tx({ editor: e, disabled: t, actions: r }) {
|
|
4726
|
-
var y, w, S, b, A,
|
|
4726
|
+
var y, w, S, b, A, P, E, M, O, C, k, R, N, L, _, G, ee, se;
|
|
4727
4727
|
const n = ({ editor: re }) => uf(re.view.state, "table"), { t: i } = me();
|
|
4728
4728
|
function o() {
|
|
4729
4729
|
e.chain().focus().addColumnBefore().run();
|
|
@@ -4813,7 +4813,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4813
4813
|
q,
|
|
4814
4814
|
{
|
|
4815
4815
|
action: c,
|
|
4816
|
-
disabled: !((
|
|
4816
|
+
disabled: !((P = e == null ? void 0 : (A = e.can()).deleteColumn) != null && P.call(A)),
|
|
4817
4817
|
icon: "DeleteColumn",
|
|
4818
4818
|
tooltip: i("editor.table.menu.deleteColumn"),
|
|
4819
4819
|
"tooltip-options": {
|
|
@@ -4832,7 +4832,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4832
4832
|
q,
|
|
4833
4833
|
{
|
|
4834
4834
|
action: l,
|
|
4835
|
-
disabled: !((
|
|
4835
|
+
disabled: !((M = e == null ? void 0 : (E = e.can()).addRowBefore) != null && M.call(E)),
|
|
4836
4836
|
icon: "BetweenVerticalEnd",
|
|
4837
4837
|
tooltip: i("editor.table.menu.insertRowAbove"),
|
|
4838
4838
|
"tooltip-options": {
|
|
@@ -4856,7 +4856,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4856
4856
|
q,
|
|
4857
4857
|
{
|
|
4858
4858
|
action: f,
|
|
4859
|
-
disabled: !((
|
|
4859
|
+
disabled: !((R = (k = e == null ? void 0 : e.can()) == null ? void 0 : k.deleteRow) != null && R.call(k)),
|
|
4860
4860
|
icon: "DeleteRow",
|
|
4861
4861
|
tooltip: i("editor.table.menu.deleteRow"),
|
|
4862
4862
|
"tooltip-options": {
|
|
@@ -4946,7 +4946,7 @@ function Ox(e) {
|
|
|
4946
4946
|
if (e != null && e.editor) {
|
|
4947
4947
|
const { href: l, target: u } = (c = e.editor) == null ? void 0 : c.getAttributes("link"), { from: f, to: d } = e.editor.state.selection, h = e.editor.state.doc.textBetween(f, d, " ");
|
|
4948
4948
|
n({
|
|
4949
|
-
link: l,
|
|
4949
|
+
link: l || "",
|
|
4950
4950
|
text: h
|
|
4951
4951
|
}), o(u === "_blank");
|
|
4952
4952
|
}
|
|
@@ -4995,7 +4995,7 @@ function Ox(e) {
|
|
|
4995
4995
|
/* @__PURE__ */ T("div", { className: "richtext-flex richtext-items-center richtext-space-x-2", children: [
|
|
4996
4996
|
/* @__PURE__ */ s(it, { children: t("editor.link.dialog.openInNewTab") }),
|
|
4997
4997
|
/* @__PURE__ */ s(
|
|
4998
|
-
|
|
4998
|
+
Ml,
|
|
4999
4999
|
{
|
|
5000
5000
|
checked: i,
|
|
5001
5001
|
onCheckedChange: (c) => {
|
|
@@ -5016,7 +5016,7 @@ function Ox(e) {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
) });
|
|
5018
5018
|
}
|
|
5019
|
-
function
|
|
5019
|
+
function Rx(e) {
|
|
5020
5020
|
const { t } = me();
|
|
5021
5021
|
return /* @__PURE__ */ T("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-p-2 richtext-bg-white !richtext-border richtext-rounded-lg richtext-shadow-sm dark:richtext-bg-black richtext-border-neutral-200 dark:richtext-border-neutral-800", children: [
|
|
5022
5022
|
/* @__PURE__ */ s(
|
|
@@ -5059,7 +5059,7 @@ function Px(e) {
|
|
|
5059
5059
|
] })
|
|
5060
5060
|
] });
|
|
5061
5061
|
}
|
|
5062
|
-
function
|
|
5062
|
+
function Px({ editor: e, disabled: t }) {
|
|
5063
5063
|
const [r, n] = Y(!1), i = ye(() => {
|
|
5064
5064
|
const { href: l } = e.getAttributes("link");
|
|
5065
5065
|
return l;
|
|
@@ -5097,7 +5097,7 @@ function Rx({ editor: e, disabled: t }) {
|
|
|
5097
5097
|
}
|
|
5098
5098
|
},
|
|
5099
5099
|
children: t ? /* @__PURE__ */ s(de, {}) : /* @__PURE__ */ s(de, { children: r ? /* @__PURE__ */ s(Ox, { onSetLink: a, editor: e }) : /* @__PURE__ */ s(
|
|
5100
|
-
|
|
5100
|
+
Rx,
|
|
5101
5101
|
{
|
|
5102
5102
|
editor: e,
|
|
5103
5103
|
onClear: c,
|
|
@@ -5169,8 +5169,8 @@ const Nx = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, wl = Vt.c
|
|
|
5169
5169
|
})
|
|
5170
5170
|
];
|
|
5171
5171
|
}
|
|
5172
|
-
}),
|
|
5173
|
-
|
|
5172
|
+
}), Rr = Re.Root, Pr = Re.Trigger, Ex = Re.Portal, Sl = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
5173
|
+
Re.Overlay,
|
|
5174
5174
|
{
|
|
5175
5175
|
ref: r,
|
|
5176
5176
|
className: X(
|
|
@@ -5180,11 +5180,11 @@ const Nx = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, wl = Vt.c
|
|
|
5180
5180
|
...t
|
|
5181
5181
|
}
|
|
5182
5182
|
));
|
|
5183
|
-
Sl.displayName =
|
|
5184
|
-
const Xt = Z.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ T(
|
|
5183
|
+
Sl.displayName = Re.Overlay.displayName;
|
|
5184
|
+
const Xt = Z.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ T(Ex, { children: [
|
|
5185
5185
|
/* @__PURE__ */ s(Sl, {}),
|
|
5186
5186
|
/* @__PURE__ */ T(
|
|
5187
|
-
|
|
5187
|
+
Re.Content,
|
|
5188
5188
|
{
|
|
5189
5189
|
ref: n,
|
|
5190
5190
|
className: X(
|
|
@@ -5194,15 +5194,15 @@ const Xt = Z.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
5194
5194
|
...r,
|
|
5195
5195
|
children: [
|
|
5196
5196
|
t,
|
|
5197
|
-
/* @__PURE__ */ T(
|
|
5198
|
-
/* @__PURE__ */ s(
|
|
5197
|
+
/* @__PURE__ */ T(Re.Close, { className: "richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-2 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground", children: [
|
|
5198
|
+
/* @__PURE__ */ s(Ps, { className: "richtext-h-4 richtext-w-4" }),
|
|
5199
5199
|
/* @__PURE__ */ s("span", { className: "richtext-sr-only", children: "Close" })
|
|
5200
5200
|
] })
|
|
5201
5201
|
]
|
|
5202
5202
|
}
|
|
5203
5203
|
)
|
|
5204
5204
|
] }));
|
|
5205
|
-
Xt.displayName =
|
|
5205
|
+
Xt.displayName = Re.Content.displayName;
|
|
5206
5206
|
function Al({
|
|
5207
5207
|
className: e,
|
|
5208
5208
|
...t
|
|
@@ -5236,7 +5236,7 @@ function Ao({
|
|
|
5236
5236
|
}
|
|
5237
5237
|
Ao.displayName = "DialogFooter";
|
|
5238
5238
|
const Yt = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
5239
|
-
|
|
5239
|
+
Re.Title,
|
|
5240
5240
|
{
|
|
5241
5241
|
ref: r,
|
|
5242
5242
|
className: X(
|
|
@@ -5246,23 +5246,23 @@ const Yt = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
5246
5246
|
...t
|
|
5247
5247
|
}
|
|
5248
5248
|
));
|
|
5249
|
-
Yt.displayName =
|
|
5250
|
-
const
|
|
5251
|
-
|
|
5249
|
+
Yt.displayName = Re.Title.displayName;
|
|
5250
|
+
const Mx = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
5251
|
+
Re.Description,
|
|
5252
5252
|
{
|
|
5253
5253
|
ref: r,
|
|
5254
5254
|
className: X("richtext-text-sm richtext-text-muted-foreground", e),
|
|
5255
5255
|
...t
|
|
5256
5256
|
}
|
|
5257
5257
|
));
|
|
5258
|
-
|
|
5259
|
-
const
|
|
5258
|
+
Mx.displayName = Re.Description.displayName;
|
|
5259
|
+
const Pa = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Na = ao, Nr = (e, t) => (r) => {
|
|
5260
5260
|
var n;
|
|
5261
5261
|
if ((t == null ? void 0 : t.variants) == null) return Na(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
5262
5262
|
const { variants: i, defaultVariants: o } = t, a = Object.keys(i).map((u) => {
|
|
5263
5263
|
const f = r == null ? void 0 : r[u], d = o == null ? void 0 : o[u];
|
|
5264
5264
|
if (f === null) return null;
|
|
5265
|
-
const h =
|
|
5265
|
+
const h = Pa(f) || Pa(d);
|
|
5266
5266
|
return i[u][h];
|
|
5267
5267
|
}), c = r && Object.entries(r).reduce((u, f) => {
|
|
5268
5268
|
let [d, h] = f;
|
|
@@ -5367,34 +5367,34 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
5369
|
function g(b, A) {
|
|
5370
|
-
const
|
|
5371
|
-
|
|
5372
|
-
const O =
|
|
5370
|
+
const P = document.createElement("canvas"), E = b.naturalWidth / b.width, M = b.naturalHeight / b.height;
|
|
5371
|
+
P.width = A.width * E, P.height = A.height * M;
|
|
5372
|
+
const O = P.getContext("2d");
|
|
5373
5373
|
return O && (O.imageSmoothingEnabled = !1, O.drawImage(
|
|
5374
5374
|
b,
|
|
5375
|
-
A.x *
|
|
5376
|
-
A.y *
|
|
5377
|
-
A.width *
|
|
5378
|
-
A.height *
|
|
5375
|
+
A.x * E,
|
|
5376
|
+
A.y * M,
|
|
5377
|
+
A.width * E,
|
|
5378
|
+
A.height * M,
|
|
5379
5379
|
0,
|
|
5380
5380
|
0,
|
|
5381
|
-
A.width *
|
|
5382
|
-
A.height *
|
|
5383
|
-
)),
|
|
5381
|
+
A.width * E,
|
|
5382
|
+
A.height * M
|
|
5383
|
+
)), P.toDataURL("image/png", 1);
|
|
5384
5384
|
}
|
|
5385
5385
|
async function y() {
|
|
5386
5386
|
var b, A;
|
|
5387
5387
|
try {
|
|
5388
|
-
const
|
|
5388
|
+
const P = _x(u, ((b = h == null ? void 0 : h.file) == null ? void 0 : b.name) || "image.png"), E = (A = e.extensionManager.extensions.find(
|
|
5389
5389
|
(O) => O.name === qt.name
|
|
5390
5390
|
)) == null ? void 0 : A.options;
|
|
5391
|
-
let
|
|
5392
|
-
|
|
5391
|
+
let M = "";
|
|
5392
|
+
E.upload ? M = await E.upload(P) : M = URL.createObjectURL(P), e.chain().focus().setImageInline({ src: M, inline: t }).run(), o(!1), p({
|
|
5393
5393
|
src: "",
|
|
5394
5394
|
file: null
|
|
5395
5395
|
}), r();
|
|
5396
|
-
} catch (
|
|
5397
|
-
console.log("Error cropping image",
|
|
5396
|
+
} catch (P) {
|
|
5397
|
+
console.log("Error cropping image", P);
|
|
5398
5398
|
}
|
|
5399
5399
|
}
|
|
5400
5400
|
function w(b) {
|
|
@@ -5402,14 +5402,14 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5402
5402
|
b.preventDefault(), (A = d.current) == null || A.click();
|
|
5403
5403
|
}
|
|
5404
5404
|
const S = async (b) => {
|
|
5405
|
-
var
|
|
5406
|
-
const A = (
|
|
5405
|
+
var M;
|
|
5406
|
+
const A = (M = b == null ? void 0 : b.target) == null ? void 0 : M.files;
|
|
5407
5407
|
if (!e || e.isDestroyed || A.length === 0)
|
|
5408
5408
|
return;
|
|
5409
|
-
const
|
|
5409
|
+
const P = A[0], E = await kx(P);
|
|
5410
5410
|
o(!0), p({
|
|
5411
|
-
src:
|
|
5412
|
-
file:
|
|
5411
|
+
src: E.src,
|
|
5412
|
+
file: P
|
|
5413
5413
|
});
|
|
5414
5414
|
};
|
|
5415
5415
|
return /* @__PURE__ */ T(de, { children: [
|
|
@@ -5422,8 +5422,8 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5422
5422
|
children: n("editor.image.dialog.tab.uploadCrop")
|
|
5423
5423
|
}
|
|
5424
5424
|
),
|
|
5425
|
-
/* @__PURE__ */ T(
|
|
5426
|
-
/* @__PURE__ */ s(
|
|
5425
|
+
/* @__PURE__ */ T(Rr, { open: i, children: [
|
|
5426
|
+
/* @__PURE__ */ s(Pr, {}),
|
|
5427
5427
|
/* @__PURE__ */ T(Xt, { children: [
|
|
5428
5428
|
/* @__PURE__ */ s(Yt, { children: n("editor.image.dialog.tab.uploadCrop") }),
|
|
5429
5429
|
/* @__PURE__ */ s("div", { children: h.src && /* @__PURE__ */ s(
|
|
@@ -5500,7 +5500,7 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5500
5500
|
)
|
|
5501
5501
|
] });
|
|
5502
5502
|
}
|
|
5503
|
-
function
|
|
5503
|
+
function Er(e) {
|
|
5504
5504
|
function t() {
|
|
5505
5505
|
const o = We(e), a = te(() => o.current, []), c = We(/* @__PURE__ */ new Set()), l = te((f) => {
|
|
5506
5506
|
o.current = { ...o.current, ...f }, c.current.forEach((d) => d());
|
|
@@ -5530,15 +5530,15 @@ function Mr(e) {
|
|
|
5530
5530
|
useStore: i
|
|
5531
5531
|
};
|
|
5532
5532
|
}
|
|
5533
|
-
|
|
5533
|
+
Er({
|
|
5534
5534
|
value: !1
|
|
5535
5535
|
});
|
|
5536
|
-
|
|
5536
|
+
Er({
|
|
5537
5537
|
value: !1
|
|
5538
5538
|
});
|
|
5539
|
-
const { Provider: Dx, useStore: Cl } =
|
|
5539
|
+
const { Provider: Dx, useStore: Cl } = Er({
|
|
5540
5540
|
value: !1
|
|
5541
|
-
}), { Provider: Bx, useStore: Il } =
|
|
5541
|
+
}), { Provider: Bx, useStore: Il } = Er({
|
|
5542
5542
|
value: "light"
|
|
5543
5543
|
});
|
|
5544
5544
|
ku("0");
|
|
@@ -5600,12 +5600,12 @@ function jx(e) {
|
|
|
5600
5600
|
g.preventDefault(), (y = c.current) == null || y.click();
|
|
5601
5601
|
}
|
|
5602
5602
|
return /* @__PURE__ */ T(
|
|
5603
|
-
|
|
5603
|
+
Rr,
|
|
5604
5604
|
{
|
|
5605
5605
|
onOpenChange: n,
|
|
5606
5606
|
open: r,
|
|
5607
5607
|
children: [
|
|
5608
|
-
/* @__PURE__ */ s(
|
|
5608
|
+
/* @__PURE__ */ s(Pr, { asChild: !0, children: /* @__PURE__ */ s(
|
|
5609
5609
|
q,
|
|
5610
5610
|
{
|
|
5611
5611
|
action: () => n(!0),
|
|
@@ -5700,7 +5700,7 @@ const or = {
|
|
|
5700
5700
|
BOTTOM_RIGHT: "br"
|
|
5701
5701
|
};
|
|
5702
5702
|
function qx(e) {
|
|
5703
|
-
var
|
|
5703
|
+
var M, O;
|
|
5704
5704
|
const [t, r] = Y({
|
|
5705
5705
|
width: pr,
|
|
5706
5706
|
height: pr
|
|
@@ -5718,9 +5718,9 @@ function qx(e) {
|
|
|
5718
5718
|
w: 0,
|
|
5719
5719
|
h: 0,
|
|
5720
5720
|
dir: ""
|
|
5721
|
-
}), { align: f, inline: d } = (
|
|
5721
|
+
}), { align: f, inline: d } = (M = e == null ? void 0 : e.node) == null ? void 0 : M.attrs, h = ye(() => {
|
|
5722
5722
|
var J;
|
|
5723
|
-
const { src: C, alt: k, width:
|
|
5723
|
+
const { src: C, alt: k, width: R, height: N, flipX: L, flipY: _ } = (J = e == null ? void 0 : e.node) == null ? void 0 : J.attrs, G = yr(R) ? `${R}px` : R, ee = yr(N) ? `${N}px` : N, se = [];
|
|
5724
5724
|
L && se.push("rotateX(180deg)"), _ && se.push("rotateY(180deg)");
|
|
5725
5725
|
const re = se.join(" ");
|
|
5726
5726
|
return {
|
|
@@ -5751,8 +5751,8 @@ function qx(e) {
|
|
|
5751
5751
|
const y = te(
|
|
5752
5752
|
jt(() => {
|
|
5753
5753
|
const { editor: C } = e, { width: k } = getComputedStyle(C.view.dom);
|
|
5754
|
-
r((
|
|
5755
|
-
...
|
|
5754
|
+
r((R) => ({
|
|
5755
|
+
...R,
|
|
5756
5756
|
width: Number.parseInt(k, 10)
|
|
5757
5757
|
}));
|
|
5758
5758
|
}, mr),
|
|
@@ -5760,10 +5760,10 @@ function qx(e) {
|
|
|
5760
5760
|
);
|
|
5761
5761
|
function w(C, k) {
|
|
5762
5762
|
C.preventDefault(), C.stopPropagation();
|
|
5763
|
-
const
|
|
5763
|
+
const R = n.width, N = n.height, L = R / N;
|
|
5764
5764
|
let _ = Number(e.node.attrs.width), G = Number(e.node.attrs.height);
|
|
5765
5765
|
const ee = t.width;
|
|
5766
|
-
_ && !G ? (_ = _ > ee ? ee : _, G = Math.round(_ / L)) : G && !_ ? (_ = Math.round(G * L), _ = _ > ee ? ee : _) : !_ && !G ? (_ =
|
|
5766
|
+
_ && !G ? (_ = _ > ee ? ee : _, G = Math.round(_ / L)) : G && !_ ? (_ = Math.round(G * L), _ = _ > ee ? ee : _) : !_ && !G ? (_ = R > ee ? ee : R, G = Math.round(_ / L)) : _ = _ > ee ? ee : _, c(!0), u({
|
|
5767
5767
|
x: C.clientX,
|
|
5768
5768
|
y: C.clientY,
|
|
5769
5769
|
w: _,
|
|
@@ -5775,7 +5775,7 @@ function qx(e) {
|
|
|
5775
5775
|
jt((C) => {
|
|
5776
5776
|
if (C.preventDefault(), C.stopPropagation(), !a)
|
|
5777
5777
|
return;
|
|
5778
|
-
const { x: k, w:
|
|
5778
|
+
const { x: k, w: R, dir: N } = l, L = (C.clientX - k) * (/l/.test(N) ? -1 : 1), _ = tl(R + L, Ts, t.width);
|
|
5779
5779
|
e.updateAttributes({
|
|
5780
5780
|
width: _,
|
|
5781
5781
|
height: null
|
|
@@ -5795,16 +5795,16 @@ function qx(e) {
|
|
|
5795
5795
|
[a, g]
|
|
5796
5796
|
), A = te(() => {
|
|
5797
5797
|
document == null || document.addEventListener("mousemove", S, !0), document == null || document.addEventListener("mouseup", b, !0);
|
|
5798
|
-
}, [S, b]),
|
|
5798
|
+
}, [S, b]), P = te(() => {
|
|
5799
5799
|
document == null || document.removeEventListener("mousemove", S, !0), document == null || document.removeEventListener("mouseup", b, !0);
|
|
5800
5800
|
}, [S, b]);
|
|
5801
|
-
le(() => (a ? A() :
|
|
5802
|
-
|
|
5803
|
-
}), [a, A,
|
|
5804
|
-
const
|
|
5805
|
-
return le(() => (
|
|
5806
|
-
|
|
5807
|
-
}), [e.editor.view.dom,
|
|
5801
|
+
le(() => (a ? A() : P(), () => {
|
|
5802
|
+
P();
|
|
5803
|
+
}), [a, A, P]);
|
|
5804
|
+
const E = ye(() => new ResizeObserver(() => y()), [y]);
|
|
5805
|
+
return le(() => (E.observe(e.editor.view.dom), () => {
|
|
5806
|
+
E.disconnect();
|
|
5807
|
+
}), [e.editor.view.dom, E]), /* @__PURE__ */ s(
|
|
5808
5808
|
co,
|
|
5809
5809
|
{
|
|
5810
5810
|
as: d ? "span" : "div",
|
|
@@ -6139,7 +6139,7 @@ function Yx({ selectImage: e, giphyApiKey: t, children: r }) {
|
|
|
6139
6139
|
// Adjust the debounce delay as needed
|
|
6140
6140
|
[]
|
|
6141
6141
|
);
|
|
6142
|
-
return /* @__PURE__ */ T(
|
|
6142
|
+
return /* @__PURE__ */ T(Mr, { modal: !0, children: [
|
|
6143
6143
|
/* @__PURE__ */ s($r, { asChild: !0, children: r }),
|
|
6144
6144
|
/* @__PURE__ */ s(
|
|
6145
6145
|
Kt,
|
|
@@ -6201,7 +6201,7 @@ const ar = {
|
|
|
6201
6201
|
BOTTOM_RIGHT: "br"
|
|
6202
6202
|
};
|
|
6203
6203
|
function Jx(e) {
|
|
6204
|
-
var
|
|
6204
|
+
var E, M;
|
|
6205
6205
|
const [t, r] = Y({
|
|
6206
6206
|
width: pr,
|
|
6207
6207
|
height: pr
|
|
@@ -6219,9 +6219,9 @@ function Jx(e) {
|
|
|
6219
6219
|
w: 0,
|
|
6220
6220
|
h: 0,
|
|
6221
6221
|
dir: ""
|
|
6222
|
-
}), { align: f } = (
|
|
6222
|
+
}), { align: f } = (E = e == null ? void 0 : e.node) == null ? void 0 : E.attrs, d = ye(() => {
|
|
6223
6223
|
var _;
|
|
6224
|
-
const { src: O, alt: C, width: k, height:
|
|
6224
|
+
const { src: O, alt: C, width: k, height: R } = (_ = e == null ? void 0 : e.node) == null ? void 0 : _.attrs, N = yr(k) ? `${k}px` : k, L = yr(R) ? `${R}px` : R;
|
|
6225
6225
|
return {
|
|
6226
6226
|
src: O || void 0,
|
|
6227
6227
|
alt: C || void 0,
|
|
@@ -6230,7 +6230,7 @@ function Jx(e) {
|
|
|
6230
6230
|
height: L || void 0
|
|
6231
6231
|
}
|
|
6232
6232
|
};
|
|
6233
|
-
}, [(
|
|
6233
|
+
}, [(M = e == null ? void 0 : e.node) == null ? void 0 : M.attrs]), h = ye(() => {
|
|
6234
6234
|
const {
|
|
6235
6235
|
style: { width: O }
|
|
6236
6236
|
} = d;
|
|
@@ -6258,7 +6258,7 @@ function Jx(e) {
|
|
|
6258
6258
|
);
|
|
6259
6259
|
function y(O, C) {
|
|
6260
6260
|
O.preventDefault(), O.stopPropagation();
|
|
6261
|
-
const k = n.width,
|
|
6261
|
+
const k = n.width, R = n.height, N = k / R;
|
|
6262
6262
|
let L = Number(e.node.attrs.width), _ = Number(e.node.attrs.height);
|
|
6263
6263
|
const G = t.width;
|
|
6264
6264
|
L && !_ ? (L = L > G ? G : L, _ = Math.round(L / N)) : _ && !L ? (L = Math.round(_ * N), L = L > G ? G : L) : !L && !_ ? (L = k > G ? G : k, _ = Math.round(L / N)) : L = L > G ? G : L, c(!0), u({
|
|
@@ -6273,7 +6273,7 @@ function Jx(e) {
|
|
|
6273
6273
|
jt((O) => {
|
|
6274
6274
|
if (O.preventDefault(), O.stopPropagation(), !a)
|
|
6275
6275
|
return;
|
|
6276
|
-
const { x: C, w: k, dir:
|
|
6276
|
+
const { x: C, w: k, dir: R } = l, N = (O.clientX - C) * (/l/.test(R) ? -1 : 1), L = tl(k + N, Ts, t.width);
|
|
6277
6277
|
e.updateAttributes({
|
|
6278
6278
|
width: L,
|
|
6279
6279
|
height: null
|
|
@@ -6299,10 +6299,10 @@ function Jx(e) {
|
|
|
6299
6299
|
le(() => (a ? b() : A(), () => {
|
|
6300
6300
|
A();
|
|
6301
6301
|
}), [a, b, A]);
|
|
6302
|
-
const
|
|
6303
|
-
return le(() => (
|
|
6304
|
-
|
|
6305
|
-
}), [e.editor.view.dom,
|
|
6302
|
+
const P = ye(() => new ResizeObserver(() => g()), [g]);
|
|
6303
|
+
return le(() => (P.observe(e.editor.view.dom), () => {
|
|
6304
|
+
P.disconnect();
|
|
6305
|
+
}), [e.editor.view.dom, P]), /* @__PURE__ */ s(
|
|
6306
6306
|
co,
|
|
6307
6307
|
{
|
|
6308
6308
|
className: "image-view",
|
|
@@ -6452,8 +6452,20 @@ const Tl = /* @__PURE__ */ wl.extend({
|
|
|
6452
6452
|
];
|
|
6453
6453
|
}
|
|
6454
6454
|
});
|
|
6455
|
-
function Zx(e) {
|
|
6456
|
-
|
|
6455
|
+
function Zx(e, t) {
|
|
6456
|
+
let r;
|
|
6457
|
+
try {
|
|
6458
|
+
r = new URL(e);
|
|
6459
|
+
} catch {
|
|
6460
|
+
return !1;
|
|
6461
|
+
}
|
|
6462
|
+
return !(t != null && t.length) || t.length === 1 && t[0] === "." ? !0 : t.some((n) => {
|
|
6463
|
+
if (n.includes("*")) {
|
|
6464
|
+
const i = n.replace(/\./g, "\\.").replace(/\*/g, ".*");
|
|
6465
|
+
return new RegExp(`^${i}$`).test(r.hostname);
|
|
6466
|
+
}
|
|
6467
|
+
return r.hostname.includes(n);
|
|
6468
|
+
});
|
|
6457
6469
|
}
|
|
6458
6470
|
function Qx(e) {
|
|
6459
6471
|
const { t } = me(), [r, n] = Y(""), i = We(null), [o, a] = Y(""), [c, l] = Y(!1), u = (m) => {
|
|
@@ -6494,12 +6506,12 @@ function Qx(e) {
|
|
|
6494
6506
|
m.preventDefault(), (g = i.current) == null || g.click();
|
|
6495
6507
|
}
|
|
6496
6508
|
return /* @__PURE__ */ T(
|
|
6497
|
-
|
|
6509
|
+
Rr,
|
|
6498
6510
|
{
|
|
6499
6511
|
onOpenChange: l,
|
|
6500
6512
|
open: c,
|
|
6501
6513
|
children: [
|
|
6502
|
-
/* @__PURE__ */ s(
|
|
6514
|
+
/* @__PURE__ */ s(Pr, { asChild: !0, children: /* @__PURE__ */ s(
|
|
6503
6515
|
q,
|
|
6504
6516
|
{
|
|
6505
6517
|
action: () => l(!0),
|
|
@@ -6554,12 +6566,11 @@ function Qx(e) {
|
|
|
6554
6566
|
type: "url",
|
|
6555
6567
|
value: r,
|
|
6556
6568
|
onChange: (m) => {
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
a(""), n(g);
|
|
6569
|
+
n(m.target.value);
|
|
6570
|
+
},
|
|
6571
|
+
onBlur: (m) => {
|
|
6572
|
+
const g = m.target.value, y = f.videoProviders || ["."];
|
|
6573
|
+
g && !Zx(g, y) ? a("Invalid video URL") : a("");
|
|
6563
6574
|
}
|
|
6564
6575
|
}
|
|
6565
6576
|
),
|
|
@@ -6627,6 +6638,7 @@ const Ol = /* @__PURE__ */ Vt.create({
|
|
|
6627
6638
|
disabled: !((n = (r = e.can()).setVideo) != null && n.call(r, {})),
|
|
6628
6639
|
icon: "Video",
|
|
6629
6640
|
tooltip: t("editor.video.tooltip"),
|
|
6641
|
+
videoProviders: ["."],
|
|
6630
6642
|
editor: e
|
|
6631
6643
|
}
|
|
6632
6644
|
};
|
|
@@ -6823,7 +6835,7 @@ function tn({
|
|
|
6823
6835
|
dispatch: t,
|
|
6824
6836
|
type: r
|
|
6825
6837
|
}) {
|
|
6826
|
-
const n = gr((o) => o.type.name === wr.name)(e.selection), i = gr((o) => o.type.name ===
|
|
6838
|
+
const n = gr((o) => o.type.name === wr.name)(e.selection), i = gr((o) => o.type.name === Rl.name)(e.selection);
|
|
6827
6839
|
if (t && n && i) {
|
|
6828
6840
|
const o = n.node, a = i.node.attrs.index, c = o.toJSON();
|
|
6829
6841
|
let l = a;
|
|
@@ -6852,8 +6864,8 @@ function tn({
|
|
|
6852
6864
|
}
|
|
6853
6865
|
return !0;
|
|
6854
6866
|
}
|
|
6855
|
-
function
|
|
6856
|
-
const n = gr((o) => o.type.name === wr.name)(e.selection), i = gr((o) => o.type.name ===
|
|
6867
|
+
function Ea({ state: e, dispatch: t, type: r }) {
|
|
6868
|
+
const n = gr((o) => o.type.name === wr.name)(e.selection), i = gr((o) => o.type.name === Rl.name)(e.selection);
|
|
6857
6869
|
if (t && n && i) {
|
|
6858
6870
|
const o = n.node, a = i.node.attrs.index;
|
|
6859
6871
|
let c = 0;
|
|
@@ -6867,7 +6879,7 @@ function Ma({ state: e, dispatch: t, type: r }) {
|
|
|
6867
6879
|
}
|
|
6868
6880
|
return !1;
|
|
6869
6881
|
}
|
|
6870
|
-
const
|
|
6882
|
+
const Rl = /* @__PURE__ */ Vt.create({
|
|
6871
6883
|
name: "column",
|
|
6872
6884
|
content: "block+",
|
|
6873
6885
|
isolating: !0,
|
|
@@ -6965,12 +6977,12 @@ const Pl = /* @__PURE__ */ Vt.create({
|
|
|
6965
6977
|
addKeyboardShortcuts() {
|
|
6966
6978
|
return {
|
|
6967
6979
|
"Mod-Alt-G": () => this.editor.commands.insertColumns(),
|
|
6968
|
-
Tab: () =>
|
|
6980
|
+
Tab: () => Ea({
|
|
6969
6981
|
state: this.editor.state,
|
|
6970
6982
|
dispatch: this.editor.view.dispatch,
|
|
6971
6983
|
type: "after"
|
|
6972
6984
|
}),
|
|
6973
|
-
"Shift-Tab": () =>
|
|
6985
|
+
"Shift-Tab": () => Ea({
|
|
6974
6986
|
state: this.editor.state,
|
|
6975
6987
|
dispatch: this.editor.view.dispatch,
|
|
6976
6988
|
type: "before"
|
|
@@ -6978,7 +6990,7 @@ const Pl = /* @__PURE__ */ Vt.create({
|
|
|
6978
6990
|
};
|
|
6979
6991
|
}
|
|
6980
6992
|
});
|
|
6981
|
-
function
|
|
6993
|
+
function Pl(e, t) {
|
|
6982
6994
|
const { state: r } = t, n = r.selection.$anchor;
|
|
6983
6995
|
let i = !1;
|
|
6984
6996
|
if (n.depth)
|
|
@@ -6998,7 +7010,7 @@ function Rl(e, t) {
|
|
|
6998
7010
|
return i;
|
|
6999
7011
|
}
|
|
7000
7012
|
function gy({ editor: e }) {
|
|
7001
|
-
const { t } = me(), r = te(() => e.isActive(wr.name), [e]), n = te(() =>
|
|
7013
|
+
const { t } = me(), r = te(() => e.isActive(wr.name), [e]), n = te(() => Pl(wr.name, e), [e]), i = te(() => e.chain().focus().addColBefore().run(), [e]), o = te(() => e.chain().focus().addColAfter().run(), [e]), a = te(() => e.chain().focus().deleteCol().run(), [e]);
|
|
7002
7014
|
return /* @__PURE__ */ s(
|
|
7003
7015
|
at,
|
|
7004
7016
|
{
|
|
@@ -7053,7 +7065,7 @@ function gy({ editor: e }) {
|
|
|
7053
7065
|
}
|
|
7054
7066
|
);
|
|
7055
7067
|
}
|
|
7056
|
-
const vy = ce.Root, xy = ce.Trigger,
|
|
7068
|
+
const vy = ce.Root, xy = ce.Trigger, Ma = ce.Portal, $a = ce.Sub, no = Z.forwardRef(({ className: e, inset: t, children: r, ...n }, i) => /* @__PURE__ */ T(
|
|
7057
7069
|
ce.SubTrigger,
|
|
7058
7070
|
{
|
|
7059
7071
|
ref: i,
|
|
@@ -7154,7 +7166,7 @@ const wy = Z.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
7154
7166
|
}
|
|
7155
7167
|
));
|
|
7156
7168
|
wy.displayName = ce.Label.displayName;
|
|
7157
|
-
const
|
|
7169
|
+
const El = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7158
7170
|
ce.Separator,
|
|
7159
7171
|
{
|
|
7160
7172
|
ref: r,
|
|
@@ -7162,7 +7174,7 @@ const Ml = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7162
7174
|
...t
|
|
7163
7175
|
}
|
|
7164
7176
|
));
|
|
7165
|
-
|
|
7177
|
+
El.displayName = ce.Separator.displayName;
|
|
7166
7178
|
function Sy({
|
|
7167
7179
|
className: e,
|
|
7168
7180
|
...t
|
|
@@ -7194,15 +7206,15 @@ Oe.displayName = "Input";
|
|
|
7194
7206
|
const Ay = Nr(
|
|
7195
7207
|
"richtext-text-sm richtext-font-medium richtext-leading-none peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
7196
7208
|
), it = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7197
|
-
|
|
7209
|
+
Ms.Root,
|
|
7198
7210
|
{
|
|
7199
7211
|
ref: r,
|
|
7200
7212
|
className: X(Ay(), e),
|
|
7201
7213
|
...t
|
|
7202
7214
|
}
|
|
7203
7215
|
));
|
|
7204
|
-
it.displayName =
|
|
7205
|
-
const
|
|
7216
|
+
it.displayName = Ms.Root.displayName;
|
|
7217
|
+
const Mr = Lt.Root, $r = Lt.Trigger, Kt = Z.forwardRef(({ className: e, align: t = "center", sideOffset: r = 4, ...n }, i) => /* @__PURE__ */ s(Lt.Portal, { children: /* @__PURE__ */ s(
|
|
7206
7218
|
Lt.Content,
|
|
7207
7219
|
{
|
|
7208
7220
|
ref: i,
|
|
@@ -7233,7 +7245,7 @@ const _e = Z.forwardRef(
|
|
|
7233
7245
|
)
|
|
7234
7246
|
);
|
|
7235
7247
|
_e.displayName = Os.Root.displayName;
|
|
7236
|
-
const
|
|
7248
|
+
const Ml = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7237
7249
|
Hi.Root,
|
|
7238
7250
|
{
|
|
7239
7251
|
className: X(
|
|
@@ -7252,7 +7264,7 @@ const El = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7252
7264
|
)
|
|
7253
7265
|
}
|
|
7254
7266
|
));
|
|
7255
|
-
|
|
7267
|
+
Ml.displayName = Hi.Root.displayName;
|
|
7256
7268
|
const $l = dt.Root, Oo = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7257
7269
|
dt.List,
|
|
7258
7270
|
{
|
|
@@ -7345,7 +7357,7 @@ const Ll = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7345
7357
|
),
|
|
7346
7358
|
"toast-close": "",
|
|
7347
7359
|
...t,
|
|
7348
|
-
children: /* @__PURE__ */ s(
|
|
7360
|
+
children: /* @__PURE__ */ s(Ps, { className: "richtext-h-4 richtext-w-4" })
|
|
7349
7361
|
}
|
|
7350
7362
|
));
|
|
7351
7363
|
Ll.displayName = Te.Close.displayName;
|
|
@@ -7387,15 +7399,15 @@ const Oy = Nr(
|
|
|
7387
7399
|
}
|
|
7388
7400
|
}
|
|
7389
7401
|
), zl = Z.forwardRef(({ className: e, variant: t, size: r, ...n }, i) => /* @__PURE__ */ s(
|
|
7390
|
-
|
|
7402
|
+
Es.Root,
|
|
7391
7403
|
{
|
|
7392
7404
|
ref: i,
|
|
7393
7405
|
className: X(Oy({ variant: t, size: r, className: e })),
|
|
7394
7406
|
...n
|
|
7395
7407
|
}
|
|
7396
7408
|
));
|
|
7397
|
-
zl.displayName =
|
|
7398
|
-
const
|
|
7409
|
+
zl.displayName = Es.Root.displayName;
|
|
7410
|
+
const Ry = Ut.Provider, jl = Ut.Root, ql = Ut.Trigger, Ro = Z.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ s(
|
|
7399
7411
|
Ut.Content,
|
|
7400
7412
|
{
|
|
7401
7413
|
ref: n,
|
|
@@ -7407,10 +7419,10 @@ const Py = Ut.Provider, jl = Ut.Root, ql = Ut.Trigger, Po = Z.forwardRef(({ clas
|
|
|
7407
7419
|
...r
|
|
7408
7420
|
}
|
|
7409
7421
|
));
|
|
7410
|
-
|
|
7411
|
-
const
|
|
7422
|
+
Ro.displayName = Ut.Content.displayName;
|
|
7423
|
+
const Py = 1, Ny = 1e6;
|
|
7412
7424
|
let rn = 0;
|
|
7413
|
-
function
|
|
7425
|
+
function Ey() {
|
|
7414
7426
|
return rn = (rn + 1) % Number.MAX_SAFE_INTEGER, rn.toString();
|
|
7415
7427
|
}
|
|
7416
7428
|
const nn = /* @__PURE__ */ new Map();
|
|
@@ -7425,12 +7437,12 @@ function ka(e) {
|
|
|
7425
7437
|
}, Ny);
|
|
7426
7438
|
nn.set(e, t);
|
|
7427
7439
|
}
|
|
7428
|
-
function
|
|
7440
|
+
function My(e, t) {
|
|
7429
7441
|
switch (t.type) {
|
|
7430
7442
|
case "ADD_TOAST":
|
|
7431
7443
|
return {
|
|
7432
7444
|
...e,
|
|
7433
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
7445
|
+
toasts: [t.toast, ...e.toasts].slice(0, Py)
|
|
7434
7446
|
};
|
|
7435
7447
|
case "UPDATE_TOAST":
|
|
7436
7448
|
return {
|
|
@@ -7466,12 +7478,12 @@ function Ey(e, t) {
|
|
|
7466
7478
|
const dr = [];
|
|
7467
7479
|
let fr = { toasts: [] };
|
|
7468
7480
|
function _t(e) {
|
|
7469
|
-
fr =
|
|
7481
|
+
fr = My(fr, e), dr.forEach((t) => {
|
|
7470
7482
|
t(fr);
|
|
7471
7483
|
});
|
|
7472
7484
|
}
|
|
7473
7485
|
function $y({ ...e }) {
|
|
7474
|
-
const t =
|
|
7486
|
+
const t = Ey(), r = (i) => _t({
|
|
7475
7487
|
type: "UPDATE_TOAST",
|
|
7476
7488
|
toast: { ...i, id: t }
|
|
7477
7489
|
}), n = () => _t({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -7537,7 +7549,7 @@ const _y = { padding: "0 12px 12px" }, Ly = ({ width: e, maxWidth: t, height: r,
|
|
|
7537
7549
|
function l(u) {
|
|
7538
7550
|
u.preventDefault(), u.stopPropagation(), n(a);
|
|
7539
7551
|
}
|
|
7540
|
-
return /* @__PURE__ */ T(
|
|
7552
|
+
return /* @__PURE__ */ T(Mr, { modal: !0, children: [
|
|
7541
7553
|
/* @__PURE__ */ s($r, { asChild: !0, children: i }),
|
|
7542
7554
|
/* @__PURE__ */ s(Kt, { children: /* @__PURE__ */ s("div", { style: _y, children: /* @__PURE__ */ T("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: l, children: [
|
|
7543
7555
|
/* @__PURE__ */ s(it, { className: "mb-[6px]", children: "Width" }),
|
|
@@ -7814,13 +7826,13 @@ const t1 = {
|
|
|
7814
7826
|
innerWrap: n1
|
|
7815
7827
|
};
|
|
7816
7828
|
function i1({ editor: e, node: t, updateAttributes: r }) {
|
|
7817
|
-
const n = e1(), {
|
|
7829
|
+
const n = e1(), { src: i, width: o, height: a } = t.attrs, [c, l] = Y("");
|
|
7818
7830
|
function u() {
|
|
7819
7831
|
if (!c)
|
|
7820
7832
|
return;
|
|
7821
7833
|
const d = Hl(c);
|
|
7822
7834
|
e.chain().updateAttributes(bt.name, {
|
|
7823
|
-
|
|
7835
|
+
src: (d == null ? void 0 : d.src) || c
|
|
7824
7836
|
}).setNodeSelection(e.state.selection.from).focus().run();
|
|
7825
7837
|
}
|
|
7826
7838
|
const f = te(
|
|
@@ -7920,9 +7932,9 @@ const bt = /* @__PURE__ */ Vt.create({
|
|
|
7920
7932
|
default: 300,
|
|
7921
7933
|
parseHTML: Gr("height")
|
|
7922
7934
|
},
|
|
7923
|
-
|
|
7935
|
+
src: {
|
|
7924
7936
|
default: null,
|
|
7925
|
-
parseHTML: Gr("
|
|
7937
|
+
parseHTML: Gr("src")
|
|
7926
7938
|
},
|
|
7927
7939
|
defaultShowPicker: {
|
|
7928
7940
|
default: !1
|
|
@@ -8081,21 +8093,21 @@ function c1() {
|
|
|
8081
8093
|
for (var A = 0; A < p.length; ++A)
|
|
8082
8094
|
S.push(String(A));
|
|
8083
8095
|
if (y && p.length > 0)
|
|
8084
|
-
for (var
|
|
8085
|
-
S.push(String(
|
|
8096
|
+
for (var P = 0; P < p.length; ++P)
|
|
8097
|
+
S.push(String(P));
|
|
8086
8098
|
else
|
|
8087
|
-
for (var
|
|
8088
|
-
!(b &&
|
|
8099
|
+
for (var E in p)
|
|
8100
|
+
!(b && E === "prototype") && t.call(p, E) && S.push(String(E));
|
|
8089
8101
|
if (o)
|
|
8090
|
-
for (var
|
|
8091
|
-
!(
|
|
8102
|
+
for (var M = d(p), O = 0; O < c.length; ++O)
|
|
8103
|
+
!(M && c[O] === "constructor") && t.call(p, c[O]) && S.push(c[O]);
|
|
8092
8104
|
return S;
|
|
8093
8105
|
};
|
|
8094
8106
|
}
|
|
8095
8107
|
return an = e, an;
|
|
8096
8108
|
}
|
|
8097
8109
|
var cn, Ba;
|
|
8098
|
-
function
|
|
8110
|
+
function Po() {
|
|
8099
8111
|
if (Ba) return cn;
|
|
8100
8112
|
Ba = 1;
|
|
8101
8113
|
var e = Array.prototype.slice, t = Ul(), r = Object.keys, n = r ? function(a) {
|
|
@@ -8133,7 +8145,7 @@ function No() {
|
|
|
8133
8145
|
return ja || (ja = 1, ln = SyntaxError), ln;
|
|
8134
8146
|
}
|
|
8135
8147
|
var un, qa;
|
|
8136
|
-
function
|
|
8148
|
+
function Pe() {
|
|
8137
8149
|
return qa || (qa = 1, un = TypeError), un;
|
|
8138
8150
|
}
|
|
8139
8151
|
var dn, Fa;
|
|
@@ -8154,10 +8166,10 @@ function pt() {
|
|
|
8154
8166
|
return fn = e, fn;
|
|
8155
8167
|
}
|
|
8156
8168
|
var hn, Ua;
|
|
8157
|
-
function
|
|
8169
|
+
function Eo() {
|
|
8158
8170
|
if (Ua) return hn;
|
|
8159
8171
|
Ua = 1;
|
|
8160
|
-
var e = /* @__PURE__ */ kr(), t = /* @__PURE__ */ No(), r = /* @__PURE__ */
|
|
8172
|
+
var e = /* @__PURE__ */ kr(), t = /* @__PURE__ */ No(), r = /* @__PURE__ */ Pe(), n = /* @__PURE__ */ pt();
|
|
8161
8173
|
return hn = function(o, a, c) {
|
|
8162
8174
|
if (!o || typeof o != "object" && typeof o != "function")
|
|
8163
8175
|
throw new r("`obj` must be an object or a function`");
|
|
@@ -8186,7 +8198,7 @@ function Mo() {
|
|
|
8186
8198
|
}, hn;
|
|
8187
8199
|
}
|
|
8188
8200
|
var pn, Wa;
|
|
8189
|
-
function
|
|
8201
|
+
function Mo() {
|
|
8190
8202
|
if (Wa) return pn;
|
|
8191
8203
|
Wa = 1;
|
|
8192
8204
|
var e = /* @__PURE__ */ kr(), t = function() {
|
|
@@ -8206,9 +8218,9 @@ var mn, Ga;
|
|
|
8206
8218
|
function mt() {
|
|
8207
8219
|
if (Ga) return mn;
|
|
8208
8220
|
Ga = 1;
|
|
8209
|
-
var e =
|
|
8221
|
+
var e = Po(), t = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", r = Object.prototype.toString, n = Array.prototype.concat, i = /* @__PURE__ */ Eo(), o = function(u) {
|
|
8210
8222
|
return typeof u == "function" && r.call(u) === "[object Function]";
|
|
8211
|
-
}, a = /* @__PURE__ */
|
|
8223
|
+
}, a = /* @__PURE__ */ Mo()(), c = function(u, f, d, h) {
|
|
8212
8224
|
if (f in u) {
|
|
8213
8225
|
if (h === !0) {
|
|
8214
8226
|
if (u[f] === d)
|
|
@@ -8269,15 +8281,15 @@ var On, nc;
|
|
|
8269
8281
|
function v1() {
|
|
8270
8282
|
return nc || (nc = 1, On = Math.pow), On;
|
|
8271
8283
|
}
|
|
8272
|
-
var
|
|
8284
|
+
var Rn, ic;
|
|
8273
8285
|
function x1() {
|
|
8274
|
-
return ic || (ic = 1,
|
|
8286
|
+
return ic || (ic = 1, Rn = Math.round), Rn;
|
|
8275
8287
|
}
|
|
8276
|
-
var
|
|
8288
|
+
var Pn, oc;
|
|
8277
8289
|
function y1() {
|
|
8278
|
-
return oc || (oc = 1,
|
|
8290
|
+
return oc || (oc = 1, Pn = Number.isNaN || function(t) {
|
|
8279
8291
|
return t !== t;
|
|
8280
|
-
}),
|
|
8292
|
+
}), Pn;
|
|
8281
8293
|
}
|
|
8282
8294
|
var Nn, ac;
|
|
8283
8295
|
function b1() {
|
|
@@ -8288,9 +8300,9 @@ function b1() {
|
|
|
8288
8300
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
8289
8301
|
}, Nn;
|
|
8290
8302
|
}
|
|
8291
|
-
var
|
|
8303
|
+
var En, cc;
|
|
8292
8304
|
function _r() {
|
|
8293
|
-
return cc || (cc = 1,
|
|
8305
|
+
return cc || (cc = 1, En = function() {
|
|
8294
8306
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
8295
8307
|
return !1;
|
|
8296
8308
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -8316,16 +8328,16 @@ function _r() {
|
|
|
8316
8328
|
return !1;
|
|
8317
8329
|
}
|
|
8318
8330
|
return !0;
|
|
8319
|
-
}),
|
|
8331
|
+
}), En;
|
|
8320
8332
|
}
|
|
8321
|
-
var
|
|
8333
|
+
var Mn, sc;
|
|
8322
8334
|
function ko() {
|
|
8323
|
-
if (sc) return
|
|
8335
|
+
if (sc) return Mn;
|
|
8324
8336
|
sc = 1;
|
|
8325
8337
|
var e = typeof Symbol < "u" && Symbol, t = _r();
|
|
8326
|
-
return
|
|
8338
|
+
return Mn = function() {
|
|
8327
8339
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
8328
|
-
},
|
|
8340
|
+
}, Mn;
|
|
8329
8341
|
}
|
|
8330
8342
|
var $n, lc;
|
|
8331
8343
|
function Gl() {
|
|
@@ -8413,7 +8425,7 @@ var qn, vc;
|
|
|
8413
8425
|
function Do() {
|
|
8414
8426
|
if (vc) return qn;
|
|
8415
8427
|
vc = 1;
|
|
8416
|
-
var e = Jt(), t = /* @__PURE__ */
|
|
8428
|
+
var e = Jt(), t = /* @__PURE__ */ Pe(), r = _o(), n = Xl();
|
|
8417
8429
|
return qn = function(o) {
|
|
8418
8430
|
if (o.length < 1 || typeof o[0] != "function")
|
|
8419
8431
|
throw new t("a function is required");
|
|
@@ -8470,14 +8482,14 @@ var Wn, wc;
|
|
|
8470
8482
|
function Ye() {
|
|
8471
8483
|
if (wc) return Wn;
|
|
8472
8484
|
wc = 1;
|
|
8473
|
-
var e, t = /* @__PURE__ */ $o(), r = /* @__PURE__ */ Wl(), n = /* @__PURE__ */ l1(), i = /* @__PURE__ */ u1(), o = /* @__PURE__ */ d1(), a = /* @__PURE__ */ No(), c = /* @__PURE__ */
|
|
8485
|
+
var e, t = /* @__PURE__ */ $o(), r = /* @__PURE__ */ Wl(), n = /* @__PURE__ */ l1(), i = /* @__PURE__ */ u1(), o = /* @__PURE__ */ d1(), a = /* @__PURE__ */ No(), c = /* @__PURE__ */ Pe(), l = /* @__PURE__ */ f1(), u = /* @__PURE__ */ h1(), f = /* @__PURE__ */ p1(), d = /* @__PURE__ */ m1(), h = /* @__PURE__ */ g1(), p = /* @__PURE__ */ v1(), m = /* @__PURE__ */ x1(), g = /* @__PURE__ */ b1(), y = Function, w = function(K) {
|
|
8474
8486
|
try {
|
|
8475
8487
|
return y('"use strict"; return (' + K + ").constructor;")();
|
|
8476
8488
|
} catch {
|
|
8477
8489
|
}
|
|
8478
8490
|
}, S = /* @__PURE__ */ pt(), b = /* @__PURE__ */ kr(), A = function() {
|
|
8479
8491
|
throw new c();
|
|
8480
|
-
},
|
|
8492
|
+
}, P = S ? function() {
|
|
8481
8493
|
try {
|
|
8482
8494
|
return arguments.callee, A;
|
|
8483
8495
|
} catch {
|
|
@@ -8487,12 +8499,12 @@ function Ye() {
|
|
|
8487
8499
|
return A;
|
|
8488
8500
|
}
|
|
8489
8501
|
}
|
|
8490
|
-
}() : A,
|
|
8502
|
+
}() : A, E = ko()(), M = Yl(), O = Vl(), C = Gl(), k = Lo(), R = _o(), N = {}, L = typeof Uint8Array > "u" || !M ? e : M(Uint8Array), _ = {
|
|
8491
8503
|
__proto__: null,
|
|
8492
8504
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
8493
8505
|
"%Array%": Array,
|
|
8494
8506
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
8495
|
-
"%ArrayIteratorPrototype%":
|
|
8507
|
+
"%ArrayIteratorPrototype%": E && M ? M([][Symbol.iterator]()) : e,
|
|
8496
8508
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
8497
8509
|
"%AsyncFunction%": N,
|
|
8498
8510
|
"%AsyncGenerator%": N,
|
|
@@ -8523,10 +8535,10 @@ function Ye() {
|
|
|
8523
8535
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
8524
8536
|
"%isFinite%": isFinite,
|
|
8525
8537
|
"%isNaN%": isNaN,
|
|
8526
|
-
"%IteratorPrototype%":
|
|
8538
|
+
"%IteratorPrototype%": E && M ? M(M([][Symbol.iterator]())) : e,
|
|
8527
8539
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
8528
8540
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
8529
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
8541
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !E || !M ? e : M((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
8530
8542
|
"%Math%": Math,
|
|
8531
8543
|
"%Number%": Number,
|
|
8532
8544
|
"%Object%": t,
|
|
@@ -8540,13 +8552,13 @@ function Ye() {
|
|
|
8540
8552
|
"%Reflect%": typeof Reflect > "u" ? e : Reflect,
|
|
8541
8553
|
"%RegExp%": RegExp,
|
|
8542
8554
|
"%Set%": typeof Set > "u" ? e : Set,
|
|
8543
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
8555
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !E || !M ? e : M((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
8544
8556
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
8545
8557
|
"%String%": String,
|
|
8546
|
-
"%StringIteratorPrototype%":
|
|
8547
|
-
"%Symbol%":
|
|
8558
|
+
"%StringIteratorPrototype%": E && M ? M(""[Symbol.iterator]()) : e,
|
|
8559
|
+
"%Symbol%": E ? Symbol : e,
|
|
8548
8560
|
"%SyntaxError%": a,
|
|
8549
|
-
"%ThrowTypeError%":
|
|
8561
|
+
"%ThrowTypeError%": P,
|
|
8550
8562
|
"%TypedArray%": L,
|
|
8551
8563
|
"%TypeError%": c,
|
|
8552
8564
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
@@ -8557,7 +8569,7 @@ function Ye() {
|
|
|
8557
8569
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
8558
8570
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
8559
8571
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
8560
|
-
"%Function.prototype.call%":
|
|
8572
|
+
"%Function.prototype.call%": R,
|
|
8561
8573
|
"%Function.prototype.apply%": k,
|
|
8562
8574
|
"%Object.defineProperty%": b,
|
|
8563
8575
|
"%Object.getPrototypeOf%": O,
|
|
@@ -8570,11 +8582,11 @@ function Ye() {
|
|
|
8570
8582
|
"%Math.sign%": g,
|
|
8571
8583
|
"%Reflect.getPrototypeOf%": C
|
|
8572
8584
|
};
|
|
8573
|
-
if (
|
|
8585
|
+
if (M)
|
|
8574
8586
|
try {
|
|
8575
8587
|
null.error;
|
|
8576
8588
|
} catch (K) {
|
|
8577
|
-
var G =
|
|
8589
|
+
var G = M(M(K));
|
|
8578
8590
|
_["%Error.prototype%"] = G;
|
|
8579
8591
|
}
|
|
8580
8592
|
var ee = function K(B) {
|
|
@@ -8590,7 +8602,7 @@ function Ye() {
|
|
|
8590
8602
|
D && (z = D.prototype);
|
|
8591
8603
|
} else if (B === "%AsyncIteratorPrototype%") {
|
|
8592
8604
|
var U = K("%AsyncGenerator%");
|
|
8593
|
-
U &&
|
|
8605
|
+
U && M && (z = M(U.prototype));
|
|
8594
8606
|
}
|
|
8595
8607
|
return _[B] = z, z;
|
|
8596
8608
|
}, se = {
|
|
@@ -8646,7 +8658,7 @@ function Ye() {
|
|
|
8646
8658
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
8647
8659
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
8648
8660
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
8649
|
-
}, re = Jt(), J = /* @__PURE__ */ Bo(), ge = re.call(
|
|
8661
|
+
}, re = Jt(), J = /* @__PURE__ */ Bo(), ge = re.call(R, Array.prototype.concat), fe = re.call(k, Array.prototype.splice), Ke = re.call(R, String.prototype.replace), Ne = re.call(R, String.prototype.slice), I = re.call(R, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, F = /\\(\\)?/g, j = function(B) {
|
|
8650
8662
|
var z = Ne(B, 0, 1), D = Ne(B, -1);
|
|
8651
8663
|
if (z === "%" && D !== "%")
|
|
8652
8664
|
throw new a("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -8679,11 +8691,11 @@ function Ye() {
|
|
|
8679
8691
|
throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
8680
8692
|
var D = j(B), U = D.length > 0 ? D[0] : "", ue = V("%" + U + "%", z), he = ue.name, pe = ue.value, ve = !1, Ae = ue.alias;
|
|
8681
8693
|
Ae && (U = Ae[0], fe(D, ge([0, 1], Ae)));
|
|
8682
|
-
for (var ze = 1,
|
|
8694
|
+
for (var ze = 1, Ee = !0; ze < D.length; ze += 1) {
|
|
8683
8695
|
var Ce = D[ze], je = Ne(Ce, 0, 1), qe = Ne(Ce, -1);
|
|
8684
8696
|
if ((je === '"' || je === "'" || je === "`" || qe === '"' || qe === "'" || qe === "`") && je !== qe)
|
|
8685
8697
|
throw new a("property names with quotes must have matching quotes");
|
|
8686
|
-
if ((Ce === "constructor" || !
|
|
8698
|
+
if ((Ce === "constructor" || !Ee) && (ve = !0), U += "." + Ce, he = "%" + U + "%", J(_, he))
|
|
8687
8699
|
pe = _[he];
|
|
8688
8700
|
else if (pe != null) {
|
|
8689
8701
|
if (!(Ce in pe)) {
|
|
@@ -8693,10 +8705,10 @@ function Ye() {
|
|
|
8693
8705
|
}
|
|
8694
8706
|
if (S && ze + 1 >= D.length) {
|
|
8695
8707
|
var Fe = S(pe, Ce);
|
|
8696
|
-
|
|
8708
|
+
Ee = !!Fe, Ee && "get" in Fe && !("originalValue" in Fe.get) ? pe = Fe.get : pe = pe[Ce];
|
|
8697
8709
|
} else
|
|
8698
|
-
|
|
8699
|
-
|
|
8710
|
+
Ee = J(pe, Ce), pe = pe[Ce];
|
|
8711
|
+
Ee && !ve && (_[he] = pe);
|
|
8700
8712
|
}
|
|
8701
8713
|
}
|
|
8702
8714
|
return pe;
|
|
@@ -8706,7 +8718,7 @@ var Gn, Sc;
|
|
|
8706
8718
|
function C1() {
|
|
8707
8719
|
if (Sc) return Gn;
|
|
8708
8720
|
Sc = 1;
|
|
8709
|
-
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */
|
|
8721
|
+
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Eo(), r = /* @__PURE__ */ Mo()(), n = /* @__PURE__ */ pt(), i = /* @__PURE__ */ Pe(), o = e("%Math.floor%");
|
|
8710
8722
|
return Gn = function(c, l) {
|
|
8711
8723
|
if (typeof c != "function")
|
|
8712
8724
|
throw new i("`fn` is not a function");
|
|
@@ -8772,7 +8784,7 @@ var Yn, Tc;
|
|
|
8772
8784
|
function Kl() {
|
|
8773
8785
|
if (Tc) return Yn;
|
|
8774
8786
|
Tc = 1;
|
|
8775
|
-
var e =
|
|
8787
|
+
var e = Po(), t = _r()(), r = /* @__PURE__ */ Se(), n = /* @__PURE__ */ $o(), i = r("Array.prototype.push"), o = r("Object.prototype.propertyIsEnumerable"), a = t ? n.getOwnPropertySymbols : null;
|
|
8776
8788
|
return Yn = function(l, u) {
|
|
8777
8789
|
if (l == null)
|
|
8778
8790
|
throw new TypeError("target must be an object");
|
|
@@ -8825,10 +8837,10 @@ function Jl() {
|
|
|
8825
8837
|
return !Object.assign || t() || r() ? e : Object.assign;
|
|
8826
8838
|
}, Kn;
|
|
8827
8839
|
}
|
|
8828
|
-
var Jn,
|
|
8840
|
+
var Jn, Rc;
|
|
8829
8841
|
function T1() {
|
|
8830
|
-
if (
|
|
8831
|
-
|
|
8842
|
+
if (Rc) return Jn;
|
|
8843
|
+
Rc = 1;
|
|
8832
8844
|
var e = mt(), t = Jl();
|
|
8833
8845
|
return Jn = function() {
|
|
8834
8846
|
var n = t();
|
|
@@ -8841,10 +8853,10 @@ function T1() {
|
|
|
8841
8853
|
), n;
|
|
8842
8854
|
}, Jn;
|
|
8843
8855
|
}
|
|
8844
|
-
var Zn,
|
|
8856
|
+
var Zn, Pc;
|
|
8845
8857
|
function O1() {
|
|
8846
|
-
if (
|
|
8847
|
-
|
|
8858
|
+
if (Pc) return Zn;
|
|
8859
|
+
Pc = 1;
|
|
8848
8860
|
var e = mt(), t = Ot(), r = Kl(), n = Jl(), i = T1(), o = t.apply(n()), a = function(l, u) {
|
|
8849
8861
|
return o(Object, arguments);
|
|
8850
8862
|
};
|
|
@@ -8864,10 +8876,10 @@ function Zl() {
|
|
|
8864
8876
|
return typeof a == "function" && r(i, ".prototype.") > -1 ? t(a) : a;
|
|
8865
8877
|
}, Qn;
|
|
8866
8878
|
}
|
|
8867
|
-
var ei,
|
|
8868
|
-
function
|
|
8869
|
-
if (
|
|
8870
|
-
|
|
8879
|
+
var ei, Ec;
|
|
8880
|
+
function R1() {
|
|
8881
|
+
if (Ec) return ei;
|
|
8882
|
+
Ec = 1;
|
|
8871
8883
|
var e = function() {
|
|
8872
8884
|
return typeof (function() {
|
|
8873
8885
|
}).name == "string";
|
|
@@ -8891,11 +8903,11 @@ function P1() {
|
|
|
8891
8903
|
}).bind().name !== "";
|
|
8892
8904
|
}, ei = e, ei;
|
|
8893
8905
|
}
|
|
8894
|
-
var ti,
|
|
8895
|
-
function
|
|
8896
|
-
if (
|
|
8897
|
-
|
|
8898
|
-
var e = /* @__PURE__ */
|
|
8906
|
+
var ti, Mc;
|
|
8907
|
+
function P1() {
|
|
8908
|
+
if (Mc) return ti;
|
|
8909
|
+
Mc = 1;
|
|
8910
|
+
var e = /* @__PURE__ */ Eo(), t = /* @__PURE__ */ Mo()(), r = R1().functionsHaveConfigurableNames(), n = /* @__PURE__ */ Pe();
|
|
8899
8911
|
return ti = function(o, a) {
|
|
8900
8912
|
if (typeof o != "function")
|
|
8901
8913
|
throw new n("`fn` is not a function");
|
|
@@ -8919,7 +8931,7 @@ var ri, $c;
|
|
|
8919
8931
|
function Ql() {
|
|
8920
8932
|
if ($c) return ri;
|
|
8921
8933
|
$c = 1;
|
|
8922
|
-
var e =
|
|
8934
|
+
var e = P1(), t = /* @__PURE__ */ Pe(), r = Object;
|
|
8923
8935
|
return ri = e(function() {
|
|
8924
8936
|
if (this == null || this !== r(this))
|
|
8925
8937
|
throw new t("RegExp.prototype.flags getter called on non-object");
|
|
@@ -8969,7 +8981,7 @@ function N1() {
|
|
|
8969
8981
|
}, ii;
|
|
8970
8982
|
}
|
|
8971
8983
|
var oi, Lc;
|
|
8972
|
-
function
|
|
8984
|
+
function E1() {
|
|
8973
8985
|
if (Lc) return oi;
|
|
8974
8986
|
Lc = 1;
|
|
8975
8987
|
var e = mt(), t = Ot(), r = Ql(), n = eu(), i = N1(), o = t(n());
|
|
@@ -9001,19 +9013,19 @@ function tu() {
|
|
|
9001
9013
|
}();
|
|
9002
9014
|
return n.isLegacyArguments = i, ci = o ? n : i, ci;
|
|
9003
9015
|
}
|
|
9004
|
-
const
|
|
9016
|
+
const M1 = {}, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9005
9017
|
__proto__: null,
|
|
9006
|
-
default:
|
|
9018
|
+
default: M1
|
|
9007
9019
|
}, Symbol.toStringTag, { value: "Module" })), k1 = /* @__PURE__ */ a1($1);
|
|
9008
9020
|
var si, zc;
|
|
9009
9021
|
function Lr() {
|
|
9010
9022
|
if (zc) return si;
|
|
9011
9023
|
zc = 1;
|
|
9012
|
-
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, c = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, u = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, g = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, S = String.prototype.slice, b = String.prototype.replace, A = String.prototype.toUpperCase,
|
|
9024
|
+
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, c = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, u = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, g = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, S = String.prototype.slice, b = String.prototype.replace, A = String.prototype.toUpperCase, P = String.prototype.toLowerCase, E = RegExp.prototype.test, M = Array.prototype.concat, O = Array.prototype.join, C = Array.prototype.slice, k = Math.floor, R = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, N = Object.getOwnPropertySymbols, L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _ = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _ || !0) ? Symbol.toStringTag : null, ee = Object.prototype.propertyIsEnumerable, se = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(v) {
|
|
9013
9025
|
return v.__proto__;
|
|
9014
9026
|
} : null);
|
|
9015
9027
|
function re(v, x) {
|
|
9016
|
-
if (v === 1 / 0 || v === -1 / 0 || v !== v || v && v > -1e3 && v < 1e3 ||
|
|
9028
|
+
if (v === 1 / 0 || v === -1 / 0 || v !== v || v && v > -1e3 && v < 1e3 || E.call(/e/, x))
|
|
9017
9029
|
return x;
|
|
9018
9030
|
var Q = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
9019
9031
|
if (typeof v == "number") {
|
|
@@ -9072,9 +9084,9 @@ function Lr() {
|
|
|
9072
9084
|
var xt = vu(W, ne);
|
|
9073
9085
|
if (typeof ie > "u")
|
|
9074
9086
|
ie = [];
|
|
9075
|
-
else if (
|
|
9087
|
+
else if (Ee(ie, x) >= 0)
|
|
9076
9088
|
return "[Circular]";
|
|
9077
|
-
function
|
|
9089
|
+
function Me(yt, tr, yu) {
|
|
9078
9090
|
if (tr && (ie = C.call(ie), ie.push(tr)), yu) {
|
|
9079
9091
|
var Xo = {
|
|
9080
9092
|
depth: W.depth
|
|
@@ -9084,7 +9096,7 @@ function Lr() {
|
|
|
9084
9096
|
return v(yt, W, ne + 1, ie);
|
|
9085
9097
|
}
|
|
9086
9098
|
if (typeof x == "function" && !K(x)) {
|
|
9087
|
-
var qo = ze(x), Fo = Qt(x,
|
|
9099
|
+
var qo = ze(x), Fo = Qt(x, Me);
|
|
9088
9100
|
return "[Function" + (qo ? ": " + qo : " (anonymous)") + "]" + (Fo.length > 0 ? " { " + O.call(Fo, ", ") + " }" : "");
|
|
9089
9101
|
}
|
|
9090
9102
|
if (ue(x)) {
|
|
@@ -9092,19 +9104,19 @@ function Lr() {
|
|
|
9092
9104
|
return typeof x == "object" && !_ ? Ze(Ho) : Ho;
|
|
9093
9105
|
}
|
|
9094
9106
|
if (Je(x)) {
|
|
9095
|
-
for (var
|
|
9096
|
-
|
|
9097
|
-
return
|
|
9107
|
+
for (var Pt = "<" + P.call(String(x.nodeName)), jr = x.attributes || [], er = 0; er < jr.length; er++)
|
|
9108
|
+
Pt += " " + jr[er].name + "=" + I($(jr[er].value), "double", W);
|
|
9109
|
+
return Pt += ">", x.childNodes && x.childNodes.length && (Pt += "..."), Pt += "</" + P.call(String(x.nodeName)) + ">", Pt;
|
|
9098
9110
|
}
|
|
9099
9111
|
if (j(x)) {
|
|
9100
9112
|
if (x.length === 0)
|
|
9101
9113
|
return "[]";
|
|
9102
|
-
var qr = Qt(x,
|
|
9114
|
+
var qr = Qt(x, Me);
|
|
9103
9115
|
return xt && !gu(qr) ? "[" + Br(qr, xt) + "]" : "[ " + O.call(qr, ", ") + " ]";
|
|
9104
9116
|
}
|
|
9105
9117
|
if (B(x)) {
|
|
9106
|
-
var Fr = Qt(x,
|
|
9107
|
-
return !("cause" in Error.prototype) && "cause" in x && !ee.call(x, "cause") ? "{ [" + String(x) + "] " + O.call(
|
|
9118
|
+
var Fr = Qt(x, Me);
|
|
9119
|
+
return !("cause" in Error.prototype) && "cause" in x && !ee.call(x, "cause") ? "{ [" + String(x) + "] " + O.call(M.call("[cause]: " + Me(x.cause), Fr), ", ") + " }" : Fr.length === 0 ? "[" + String(x) + "]" : "{ [" + String(x) + "] " + O.call(Fr, ", ") + " }";
|
|
9108
9120
|
}
|
|
9109
9121
|
if (typeof x == "object" && Qe) {
|
|
9110
9122
|
if (fe && typeof x[fe] == "function" && J)
|
|
@@ -9115,13 +9127,13 @@ function Lr() {
|
|
|
9115
9127
|
if (Ce(x)) {
|
|
9116
9128
|
var Uo = [];
|
|
9117
9129
|
return n && n.call(x, function(yt, tr) {
|
|
9118
|
-
Uo.push(
|
|
9130
|
+
Uo.push(Me(tr, x, !0) + " => " + Me(yt, x));
|
|
9119
9131
|
}), jo("Map", r.call(x), Uo, xt);
|
|
9120
9132
|
}
|
|
9121
9133
|
if (Fe(x)) {
|
|
9122
9134
|
var Wo = [];
|
|
9123
9135
|
return c && c.call(x, function(yt) {
|
|
9124
|
-
Wo.push(
|
|
9136
|
+
Wo.push(Me(yt, x));
|
|
9125
9137
|
}), jo("Set", a.call(x), Wo, xt);
|
|
9126
9138
|
}
|
|
9127
9139
|
if (je(x))
|
|
@@ -9131,19 +9143,19 @@ function Lr() {
|
|
|
9131
9143
|
if (qe(x))
|
|
9132
9144
|
return Dr("WeakRef");
|
|
9133
9145
|
if (D(x))
|
|
9134
|
-
return Ze(
|
|
9146
|
+
return Ze(Me(Number(x)));
|
|
9135
9147
|
if (he(x))
|
|
9136
|
-
return Ze(
|
|
9148
|
+
return Ze(Me(R.call(x)));
|
|
9137
9149
|
if (U(x))
|
|
9138
9150
|
return Ze(m.call(x));
|
|
9139
9151
|
if (z(x))
|
|
9140
|
-
return Ze(
|
|
9152
|
+
return Ze(Me(String(x)));
|
|
9141
9153
|
if (typeof window < "u" && x === window)
|
|
9142
9154
|
return "{ [object Window] }";
|
|
9143
9155
|
if (typeof globalThis < "u" && x === globalThis || typeof Sr < "u" && x === Sr)
|
|
9144
9156
|
return "{ [object globalThis] }";
|
|
9145
9157
|
if (!V(x) && !K(x)) {
|
|
9146
|
-
var Hr = Qt(x,
|
|
9158
|
+
var Hr = Qt(x, Me), Go = se ? se(x) === Object.prototype : x instanceof Object || x.constructor === Object, Ur = x instanceof Object ? "" : "null prototype", Vo = !Go && G && Object(x) === x && G in x ? S.call(Ae(x), 8, -1) : Ur ? "Object" : "", xu = Go || typeof x.constructor != "function" ? "" : x.constructor.name ? x.constructor.name + " " : "", Wr = xu + (Vo || Ur ? "[" + O.call(M.call([], Vo || [], Ur || []), ": ") + "] " : "");
|
|
9147
9159
|
return Hr.length === 0 ? Wr + "{}" : xt ? Wr + "{" + Br(Hr, xt) + "}" : Wr + "{ " + O.call(Hr, ", ") + " }";
|
|
9148
9160
|
}
|
|
9149
9161
|
return String(x);
|
|
@@ -9193,10 +9205,10 @@ function Lr() {
|
|
|
9193
9205
|
return !1;
|
|
9194
9206
|
}
|
|
9195
9207
|
function he(v) {
|
|
9196
|
-
if (!v || typeof v != "object" || !
|
|
9208
|
+
if (!v || typeof v != "object" || !R)
|
|
9197
9209
|
return !1;
|
|
9198
9210
|
try {
|
|
9199
|
-
return
|
|
9211
|
+
return R.call(v), !0;
|
|
9200
9212
|
} catch {
|
|
9201
9213
|
}
|
|
9202
9214
|
return !1;
|
|
@@ -9216,7 +9228,7 @@ function Lr() {
|
|
|
9216
9228
|
var x = w.call(y.call(v), /^function\s*([\w$]+)/);
|
|
9217
9229
|
return x ? x[1] : null;
|
|
9218
9230
|
}
|
|
9219
|
-
function
|
|
9231
|
+
function Ee(v, x) {
|
|
9220
9232
|
if (v.indexOf)
|
|
9221
9233
|
return v.indexOf(x);
|
|
9222
9234
|
for (var Q = 0, ne = v.length; Q < ne; Q++)
|
|
@@ -9303,10 +9315,10 @@ function Lr() {
|
|
|
9303
9315
|
}
|
|
9304
9316
|
var ie = Ne[x.quoteStyle || "single"];
|
|
9305
9317
|
ie.lastIndex = 0;
|
|
9306
|
-
var W = b.call(b.call(v, ie, "\\$1"), /[\x00-\x1f]/g,
|
|
9318
|
+
var W = b.call(b.call(v, ie, "\\$1"), /[\x00-\x1f]/g, Rt);
|
|
9307
9319
|
return I(W, "single", x);
|
|
9308
9320
|
}
|
|
9309
|
-
function
|
|
9321
|
+
function Rt(v) {
|
|
9310
9322
|
var x = v.charCodeAt(0), Q = {
|
|
9311
9323
|
8: "b",
|
|
9312
9324
|
9: "t",
|
|
@@ -9328,7 +9340,7 @@ function Lr() {
|
|
|
9328
9340
|
}
|
|
9329
9341
|
function gu(v) {
|
|
9330
9342
|
for (var x = 0; x < v.length; x++)
|
|
9331
|
-
if (
|
|
9343
|
+
if (Ee(v[x], `
|
|
9332
9344
|
`) >= 0)
|
|
9333
9345
|
return !1;
|
|
9334
9346
|
return !0;
|
|
@@ -9368,7 +9380,7 @@ function Lr() {
|
|
|
9368
9380
|
Qe["$" + W[st]] = W[st];
|
|
9369
9381
|
}
|
|
9370
9382
|
for (var Ie in v)
|
|
9371
|
-
ve(v, Ie) && (Q && String(Number(Ie)) === Ie && Ie < v.length || _ && Qe["$" + Ie] instanceof Symbol || (
|
|
9383
|
+
ve(v, Ie) && (Q && String(Number(Ie)) === Ie && Ie < v.length || _ && Qe["$" + Ie] instanceof Symbol || (E.call(/[^\w$]/, Ie) ? ne.push(x(Ie, v) + ": " + x(v[Ie], v)) : ne.push(Ie + ": " + x(v[Ie], v))));
|
|
9372
9384
|
if (typeof N == "function")
|
|
9373
9385
|
for (var et = 0; et < W.length; et++)
|
|
9374
9386
|
ee.call(v, W[et]) && ne.push("[" + x(W[et]) + "]: " + x(v[W[et]], v));
|
|
@@ -9380,7 +9392,7 @@ var li, jc;
|
|
|
9380
9392
|
function _1() {
|
|
9381
9393
|
if (jc) return li;
|
|
9382
9394
|
jc = 1;
|
|
9383
|
-
var e = /* @__PURE__ */ Lr(), t = /* @__PURE__ */
|
|
9395
|
+
var e = /* @__PURE__ */ Lr(), t = /* @__PURE__ */ Pe(), r = function(c, l, u) {
|
|
9384
9396
|
for (var f = c, d; (d = f.next) != null; f = d)
|
|
9385
9397
|
if (d.key === l)
|
|
9386
9398
|
return f.next = d.next, u || (d.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -9439,7 +9451,7 @@ var ui, qc;
|
|
|
9439
9451
|
function ru() {
|
|
9440
9452
|
if (qc) return ui;
|
|
9441
9453
|
qc = 1;
|
|
9442
|
-
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Se(), r = /* @__PURE__ */ Lr(), n = /* @__PURE__ */
|
|
9454
|
+
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Se(), r = /* @__PURE__ */ Lr(), n = /* @__PURE__ */ Pe(), i = e("%Map%", !0), o = t("Map.prototype.get", !0), a = t("Map.prototype.set", !0), c = t("Map.prototype.has", !0), l = t("Map.prototype.delete", !0), u = t("Map.prototype.size", !0);
|
|
9443
9455
|
return ui = !!i && /** @type {Exclude<import('.'), false>} */
|
|
9444
9456
|
function() {
|
|
9445
9457
|
var d, h = {
|
|
@@ -9472,7 +9484,7 @@ var di, Fc;
|
|
|
9472
9484
|
function L1() {
|
|
9473
9485
|
if (Fc) return di;
|
|
9474
9486
|
Fc = 1;
|
|
9475
|
-
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Se(), r = /* @__PURE__ */ Lr(), n = ru(), i = /* @__PURE__ */
|
|
9487
|
+
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Se(), r = /* @__PURE__ */ Lr(), n = ru(), i = /* @__PURE__ */ Pe(), o = e("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), c = t("WeakMap.prototype.set", !0), l = t("WeakMap.prototype.has", !0), u = t("WeakMap.prototype.delete", !0);
|
|
9476
9488
|
return di = o ? (
|
|
9477
9489
|
/** @type {Exclude<import('.'), false>} */
|
|
9478
9490
|
function() {
|
|
@@ -9507,7 +9519,7 @@ var fi, Hc;
|
|
|
9507
9519
|
function nu() {
|
|
9508
9520
|
if (Hc) return fi;
|
|
9509
9521
|
Hc = 1;
|
|
9510
|
-
var e = /* @__PURE__ */
|
|
9522
|
+
var e = /* @__PURE__ */ Pe(), t = /* @__PURE__ */ Lr(), r = _1(), n = ru(), i = L1(), o = i || n || r;
|
|
9511
9523
|
return fi = function() {
|
|
9512
9524
|
var c, l = {
|
|
9513
9525
|
assert: function(u) {
|
|
@@ -9534,7 +9546,7 @@ var hi, Uc;
|
|
|
9534
9546
|
function D1() {
|
|
9535
9547
|
if (Uc) return hi;
|
|
9536
9548
|
Uc = 1;
|
|
9537
|
-
var e = /* @__PURE__ */ Bo(), t = nu()(), r = /* @__PURE__ */
|
|
9549
|
+
var e = /* @__PURE__ */ Bo(), t = nu()(), r = /* @__PURE__ */ Pe(), n = {
|
|
9538
9550
|
assert: function(i, o) {
|
|
9539
9551
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
9540
9552
|
throw new r("`O` is not an object");
|
|
@@ -9713,8 +9725,8 @@ function z1() {
|
|
|
9713
9725
|
};
|
|
9714
9726
|
} else {
|
|
9715
9727
|
var n = iu(), i = ou(), o = /* @__PURE__ */ Ye(), a = o("%Map%", !0), c = o("%Set%", !0), l = Zl(), u = l("Array.prototype.push"), f = l("String.prototype.charCodeAt"), d = l("String.prototype.slice"), h = function(C, k) {
|
|
9716
|
-
var
|
|
9717
|
-
if (k + 1 >=
|
|
9728
|
+
var R = C.length;
|
|
9729
|
+
if (k + 1 >= R)
|
|
9718
9730
|
return k + 1;
|
|
9719
9731
|
var N = f(C, k);
|
|
9720
9732
|
if (N < 55296 || N > 56319)
|
|
@@ -9736,11 +9748,11 @@ function z1() {
|
|
|
9736
9748
|
if (n(C) || e(C))
|
|
9737
9749
|
return p(C);
|
|
9738
9750
|
if (i(C)) {
|
|
9739
|
-
var
|
|
9751
|
+
var R = 0;
|
|
9740
9752
|
return {
|
|
9741
9753
|
next: function() {
|
|
9742
|
-
var L = h(C,
|
|
9743
|
-
return
|
|
9754
|
+
var L = h(C, R), _ = d(C, R, L);
|
|
9755
|
+
return R = L, {
|
|
9744
9756
|
done: L > C.length,
|
|
9745
9757
|
value: _
|
|
9746
9758
|
};
|
|
@@ -9759,12 +9771,12 @@ function z1() {
|
|
|
9759
9771
|
var g = /* @__PURE__ */ au(), y = /* @__PURE__ */ cu(), w = l("Map.prototype.forEach", !0), S = l("Set.prototype.forEach", !0);
|
|
9760
9772
|
if (typeof process > "u" || !process.versions || !process.versions.node)
|
|
9761
9773
|
var b = l("Map.prototype.iterator", !0), A = l("Set.prototype.iterator", !0);
|
|
9762
|
-
var
|
|
9774
|
+
var P = l("Map.prototype.@@iterator", !0) || l("Map.prototype._es6-shim iterator_", !0), E = l("Set.prototype.@@iterator", !0) || l("Set.prototype._es6-shim iterator_", !0), M = function(C) {
|
|
9763
9775
|
if (g(C)) {
|
|
9764
9776
|
if (b)
|
|
9765
9777
|
return t(b(C));
|
|
9766
|
-
if (
|
|
9767
|
-
return
|
|
9778
|
+
if (P)
|
|
9779
|
+
return P(C);
|
|
9768
9780
|
if (w) {
|
|
9769
9781
|
var k = [];
|
|
9770
9782
|
return w(C, function(N, L) {
|
|
@@ -9775,18 +9787,18 @@ function z1() {
|
|
|
9775
9787
|
if (y(C)) {
|
|
9776
9788
|
if (A)
|
|
9777
9789
|
return t(A(C));
|
|
9778
|
-
if (
|
|
9779
|
-
return
|
|
9790
|
+
if (E)
|
|
9791
|
+
return E(C);
|
|
9780
9792
|
if (S) {
|
|
9781
|
-
var
|
|
9793
|
+
var R = [];
|
|
9782
9794
|
return S(C, function(N) {
|
|
9783
|
-
u(
|
|
9784
|
-
}), p(
|
|
9795
|
+
u(R, N);
|
|
9796
|
+
}), p(R);
|
|
9785
9797
|
}
|
|
9786
9798
|
}
|
|
9787
9799
|
};
|
|
9788
9800
|
$t.exports = function(C) {
|
|
9789
|
-
return
|
|
9801
|
+
return M(C) || m(C);
|
|
9790
9802
|
};
|
|
9791
9803
|
}
|
|
9792
9804
|
}
|
|
@@ -9947,9 +9959,9 @@ function U1() {
|
|
|
9947
9959
|
return typeof c == "number" ? !0 : !c || typeof c != "object" ? !1 : o ? r(c) : n(c) === i;
|
|
9948
9960
|
}, Oi;
|
|
9949
9961
|
}
|
|
9950
|
-
var
|
|
9962
|
+
var Ri, as;
|
|
9951
9963
|
function W1() {
|
|
9952
|
-
if (as) return
|
|
9964
|
+
if (as) return Ri;
|
|
9953
9965
|
as = 1;
|
|
9954
9966
|
var e = /* @__PURE__ */ Se(), t = e("Boolean.prototype.toString"), r = e("Object.prototype.toString"), n = function(c) {
|
|
9955
9967
|
try {
|
|
@@ -9958,22 +9970,22 @@ function W1() {
|
|
|
9958
9970
|
return !1;
|
|
9959
9971
|
}
|
|
9960
9972
|
}, i = "[object Boolean]", o = gt()();
|
|
9961
|
-
return
|
|
9973
|
+
return Ri = function(c) {
|
|
9962
9974
|
return typeof c == "boolean" ? !0 : c === null || typeof c != "object" ? !1 : o ? n(c) : r(c) === i;
|
|
9963
|
-
},
|
|
9975
|
+
}, Ri;
|
|
9964
9976
|
}
|
|
9965
|
-
var cr = { exports: {} },
|
|
9977
|
+
var cr = { exports: {} }, Pi, cs;
|
|
9966
9978
|
function G1() {
|
|
9967
|
-
if (cs) return
|
|
9979
|
+
if (cs) return Pi;
|
|
9968
9980
|
cs = 1;
|
|
9969
|
-
var e = /* @__PURE__ */ Se(), t = du(), r = e("RegExp.prototype.exec"), n = /* @__PURE__ */
|
|
9970
|
-
return
|
|
9981
|
+
var e = /* @__PURE__ */ Se(), t = du(), r = e("RegExp.prototype.exec"), n = /* @__PURE__ */ Pe();
|
|
9982
|
+
return Pi = function(o) {
|
|
9971
9983
|
if (!t(o))
|
|
9972
9984
|
throw new n("`regex` must be a RegExp");
|
|
9973
9985
|
return function(c) {
|
|
9974
9986
|
return r(o, c) !== null;
|
|
9975
9987
|
};
|
|
9976
|
-
},
|
|
9988
|
+
}, Pi;
|
|
9977
9989
|
}
|
|
9978
9990
|
var ss;
|
|
9979
9991
|
function V1() {
|
|
@@ -10032,12 +10044,12 @@ function Y1() {
|
|
|
10032
10044
|
};
|
|
10033
10045
|
return sr.exports;
|
|
10034
10046
|
}
|
|
10035
|
-
var
|
|
10047
|
+
var Ei, ds;
|
|
10036
10048
|
function K1() {
|
|
10037
|
-
if (ds) return
|
|
10049
|
+
if (ds) return Ei;
|
|
10038
10050
|
ds = 1;
|
|
10039
10051
|
var e = ou(), t = U1(), r = W1(), n = V1(), i = Y1();
|
|
10040
|
-
return
|
|
10052
|
+
return Ei = function(a) {
|
|
10041
10053
|
if (a == null || typeof a != "object" && typeof a != "function")
|
|
10042
10054
|
return null;
|
|
10043
10055
|
if (e(a))
|
|
@@ -10050,11 +10062,11 @@ function K1() {
|
|
|
10050
10062
|
return "Symbol";
|
|
10051
10063
|
if (i(a))
|
|
10052
10064
|
return "BigInt";
|
|
10053
|
-
},
|
|
10065
|
+
}, Ei;
|
|
10054
10066
|
}
|
|
10055
|
-
var
|
|
10067
|
+
var Mi, fs;
|
|
10056
10068
|
function J1() {
|
|
10057
|
-
if (fs) return
|
|
10069
|
+
if (fs) return Mi;
|
|
10058
10070
|
fs = 1;
|
|
10059
10071
|
var e = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap : null, t = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet : null, r;
|
|
10060
10072
|
e || (r = function(a) {
|
|
@@ -10063,7 +10075,7 @@ function J1() {
|
|
|
10063
10075
|
var n = e ? e.prototype.has : null, i = t ? t.prototype.has : null;
|
|
10064
10076
|
return !r && !n && (r = function(a) {
|
|
10065
10077
|
return !1;
|
|
10066
|
-
}),
|
|
10078
|
+
}), Mi = r || function(a) {
|
|
10067
10079
|
if (!a || typeof a != "object")
|
|
10068
10080
|
return !1;
|
|
10069
10081
|
try {
|
|
@@ -10077,7 +10089,7 @@ function J1() {
|
|
|
10077
10089
|
} catch {
|
|
10078
10090
|
}
|
|
10079
10091
|
return !1;
|
|
10080
|
-
},
|
|
10092
|
+
}, Mi;
|
|
10081
10093
|
}
|
|
10082
10094
|
var lr = { exports: {} }, hs;
|
|
10083
10095
|
function Z1() {
|
|
@@ -10330,11 +10342,11 @@ var ji, ws;
|
|
|
10330
10342
|
function a0() {
|
|
10331
10343
|
if (ws) return ji;
|
|
10332
10344
|
ws = 1;
|
|
10333
|
-
var e = O1(), t = Zl(), r =
|
|
10345
|
+
var e = O1(), t = Zl(), r = E1(), n = /* @__PURE__ */ Ye(), i = z1(), o = nu(), a = q1(), c = /* @__PURE__ */ tu(), l = iu(), u = /* @__PURE__ */ uu(), f = /* @__PURE__ */ F1(), d = du(), h = /* @__PURE__ */ H1(), p = Po(), m = K1(), g = /* @__PURE__ */ Q1(), y = /* @__PURE__ */ i0(), w = /* @__PURE__ */ o0(), S = t("SharedArrayBuffer.prototype.byteLength", !0), b = t("Date.prototype.getTime"), A = Object.getPrototypeOf, P = t("Object.prototype.toString"), E = n("%Set%", !0), M = t("Map.prototype.has", !0), O = t("Map.prototype.get", !0), C = t("Map.prototype.size", !0), k = t("Set.prototype.add", !0), R = t("Set.prototype.delete", !0), N = t("Set.prototype.has", !0), L = t("Set.prototype.size", !0);
|
|
10334
10346
|
function _(I, $, F, j) {
|
|
10335
10347
|
for (var V = i(I), K; (K = V.next()) && !K.done; )
|
|
10336
10348
|
if (J($, K.value, F, j))
|
|
10337
|
-
return
|
|
10349
|
+
return R(I, K.value), !0;
|
|
10338
10350
|
return !1;
|
|
10339
10351
|
}
|
|
10340
10352
|
function G(I) {
|
|
@@ -10348,7 +10360,7 @@ function a0() {
|
|
|
10348
10360
|
if (B != null)
|
|
10349
10361
|
return B;
|
|
10350
10362
|
var z = O($, B), D = e({}, V, { strict: !1 });
|
|
10351
|
-
return typeof z > "u" && !
|
|
10363
|
+
return typeof z > "u" && !M($, B) || !J(j, z, D, K) ? !1 : !M(I, B) && J(j, z, D, K);
|
|
10352
10364
|
}
|
|
10353
10365
|
function se(I, $, F) {
|
|
10354
10366
|
var j = G(F);
|
|
@@ -10358,7 +10370,7 @@ function a0() {
|
|
|
10358
10370
|
for (var B = i(I), z, D; (z = B.next()) && !z.done; )
|
|
10359
10371
|
if (D = z.value, // eslint-disable-next-line no-use-before-define
|
|
10360
10372
|
J(F, D, V, K) && J(j, O($, D), V, K))
|
|
10361
|
-
return
|
|
10373
|
+
return R(I, D), !0;
|
|
10362
10374
|
return !1;
|
|
10363
10375
|
}
|
|
10364
10376
|
function J(I, $, F, j) {
|
|
@@ -10386,11 +10398,11 @@ function a0() {
|
|
|
10386
10398
|
return !1;
|
|
10387
10399
|
for (var V = i(I), K = i($), B, z, D; (B = V.next()) && !B.done; )
|
|
10388
10400
|
if (B.value && typeof B.value == "object")
|
|
10389
|
-
D || (D = new
|
|
10401
|
+
D || (D = new E()), k(D, B.value);
|
|
10390
10402
|
else if (!N($, B.value)) {
|
|
10391
10403
|
if (F.strict || !se(I, $, B.value))
|
|
10392
10404
|
return !1;
|
|
10393
|
-
D || (D = new
|
|
10405
|
+
D || (D = new E()), k(D, B.value);
|
|
10394
10406
|
}
|
|
10395
10407
|
if (D) {
|
|
10396
10408
|
for (; (z = K.next()) && !z.done; )
|
|
@@ -10408,11 +10420,11 @@ function a0() {
|
|
|
10408
10420
|
return !1;
|
|
10409
10421
|
for (var V = i(I), K = i($), B, z, D, U, ue, he; (B = V.next()) && !B.done; )
|
|
10410
10422
|
if (U = B.value[0], ue = B.value[1], U && typeof U == "object")
|
|
10411
|
-
D || (D = new
|
|
10412
|
-
else if (he = O($, U), typeof he > "u" && !
|
|
10423
|
+
D || (D = new E()), k(D, U);
|
|
10424
|
+
else if (he = O($, U), typeof he > "u" && !M($, U) || !J(ue, he, F, j)) {
|
|
10413
10425
|
if (F.strict || !ee(I, $, U, ue, F, j))
|
|
10414
10426
|
return !1;
|
|
10415
|
-
D || (D = new
|
|
10427
|
+
D || (D = new E()), k(D, U);
|
|
10416
10428
|
}
|
|
10417
10429
|
if (D) {
|
|
10418
10430
|
for (; (z = K.next()) && !z.done; )
|
|
@@ -10427,7 +10439,7 @@ function a0() {
|
|
|
10427
10439
|
}
|
|
10428
10440
|
function Ne(I, $, F, j) {
|
|
10429
10441
|
var V, K;
|
|
10430
|
-
if (typeof I != typeof $ || I == null || $ == null ||
|
|
10442
|
+
if (typeof I != typeof $ || I == null || $ == null || P(I) !== P($) || c(I) !== c($))
|
|
10431
10443
|
return !1;
|
|
10432
10444
|
var B = l(I), z = l($);
|
|
10433
10445
|
if (B !== z)
|
|
@@ -10452,10 +10464,10 @@ function a0() {
|
|
|
10452
10464
|
return !1;
|
|
10453
10465
|
return !0;
|
|
10454
10466
|
}
|
|
10455
|
-
var
|
|
10456
|
-
if (
|
|
10467
|
+
var Ee = ge(I), Ce = ge($);
|
|
10468
|
+
if (Ee !== Ce)
|
|
10457
10469
|
return !1;
|
|
10458
|
-
if (
|
|
10470
|
+
if (Ee || Ce) {
|
|
10459
10471
|
if (I.length !== $.length)
|
|
10460
10472
|
return !1;
|
|
10461
10473
|
for (V = 0; V < I.length; V++)
|
|
@@ -10484,8 +10496,8 @@ function a0() {
|
|
|
10484
10496
|
for (V = Je.length - 1; V >= 0; V--)
|
|
10485
10497
|
if (K = Je[V], !J(I[K], $[K], F, j))
|
|
10486
10498
|
return !1;
|
|
10487
|
-
var
|
|
10488
|
-
return
|
|
10499
|
+
var Rt = g(I), Ze = g($);
|
|
10500
|
+
return Rt !== Ze ? !1 : Rt === "Set" || Ze === "Set" ? fe(I, $, F, j) : Rt === "Map" ? Ke(I, $, F, j) : !0;
|
|
10489
10501
|
}
|
|
10490
10502
|
return ji = function($, F, j) {
|
|
10491
10503
|
return J($, F, j, o());
|
|
@@ -10513,10 +10525,10 @@ function u0(e, t, r, n) {
|
|
|
10513
10525
|
}, [e, r, t, i]), o;
|
|
10514
10526
|
}
|
|
10515
10527
|
function d0({ editor: e }) {
|
|
10516
|
-
const { t } = me(), { width: r, height: n,
|
|
10528
|
+
const { t } = me(), { width: r, height: n, src: i } = u0(e, bt.name, {
|
|
10517
10529
|
width: 0,
|
|
10518
10530
|
height: 0,
|
|
10519
|
-
|
|
10531
|
+
src: "",
|
|
10520
10532
|
defaultShowPicker: !1
|
|
10521
10533
|
}), [o, a] = Y(!1), [c, l] = Y(""), u = te(() => {
|
|
10522
10534
|
a(!1);
|
|
@@ -10527,7 +10539,7 @@ function d0({ editor: e }) {
|
|
|
10527
10539
|
const f = te(() => {
|
|
10528
10540
|
const y = Hl(c);
|
|
10529
10541
|
e.chain().updateAttributes(bt.name, {
|
|
10530
|
-
|
|
10542
|
+
src: (y == null ? void 0 : y.src) || c
|
|
10531
10543
|
}).setNodeSelection(e.state.selection.from).focus().run(), a(!1);
|
|
10532
10544
|
}, [e, c, a]), d = te(() => {
|
|
10533
10545
|
window.open(i, "_blank");
|
|
@@ -10538,7 +10550,7 @@ function d0({ editor: e }) {
|
|
|
10538
10550
|
e.chain().updateAttributes(bt.name, y).setNodeSelection(e.state.selection.from).focus().run();
|
|
10539
10551
|
},
|
|
10540
10552
|
[e]
|
|
10541
|
-
), m = te(() => e.isActive(bt.name) && !i, [e, i]), g = te(() =>
|
|
10553
|
+
), m = te(() => e.isActive(bt.name) && !i, [e, i]), g = te(() => Pl(bt.name, e), [e]);
|
|
10542
10554
|
return /* @__PURE__ */ T(de, { children: [
|
|
10543
10555
|
/* @__PURE__ */ s(
|
|
10544
10556
|
at,
|
|
@@ -10602,12 +10614,12 @@ function d0({ editor: e }) {
|
|
|
10602
10614
|
}
|
|
10603
10615
|
),
|
|
10604
10616
|
/* @__PURE__ */ T(
|
|
10605
|
-
|
|
10617
|
+
Rr,
|
|
10606
10618
|
{
|
|
10607
10619
|
onOpenChange: a,
|
|
10608
10620
|
open: o,
|
|
10609
10621
|
children: [
|
|
10610
|
-
/* @__PURE__ */ s(
|
|
10622
|
+
/* @__PURE__ */ s(Pr, {}),
|
|
10611
10623
|
/* @__PURE__ */ T(Xt, { children: [
|
|
10612
10624
|
/* @__PURE__ */ s(Al, { children: /* @__PURE__ */ s(Yt, { children: "Edit Link Iframe" }) }),
|
|
10613
10625
|
/* @__PURE__ */ s(
|
|
@@ -10650,7 +10662,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10650
10662
|
"table"
|
|
10651
10663
|
) : null,
|
|
10652
10664
|
n.includes("link") && !((l = r == null ? void 0 : r.linkConfig) != null && l.hidden) ? /* @__PURE__ */ s(
|
|
10653
|
-
|
|
10665
|
+
Px,
|
|
10654
10666
|
{
|
|
10655
10667
|
disabled: t,
|
|
10656
10668
|
editor: e
|
|
@@ -10736,7 +10748,7 @@ function h0(e) {
|
|
|
10736
10748
|
}
|
|
10737
10749
|
/^#([\da-f]{3}){1,2}$/i.test(p) && (o == null || o(p), a == null || a(p), d(p));
|
|
10738
10750
|
}
|
|
10739
|
-
return /* @__PURE__ */ T(
|
|
10751
|
+
return /* @__PURE__ */ T(Mr, { modal: !0, children: [
|
|
10740
10752
|
/* @__PURE__ */ s(
|
|
10741
10753
|
$r,
|
|
10742
10754
|
{
|
|
@@ -10863,7 +10875,7 @@ function p0({ setColor: e }) {
|
|
|
10863
10875
|
const [t, r] = Y("#000000"), [n, i] = Y(!1), { t: o } = me();
|
|
10864
10876
|
return le(() => () => {
|
|
10865
10877
|
i(!1);
|
|
10866
|
-
}, []), /* @__PURE__ */ T(
|
|
10878
|
+
}, []), /* @__PURE__ */ T(Mr, { open: n, children: [
|
|
10867
10879
|
/* @__PURE__ */ s($r, { asChild: !0, children: /* @__PURE__ */ T(
|
|
10868
10880
|
"div",
|
|
10869
10881
|
{
|
|
@@ -10906,7 +10918,7 @@ function p0({ setColor: e }) {
|
|
|
10906
10918
|
onClick: (a) => {
|
|
10907
10919
|
a.preventDefault(), e(t), i(!1);
|
|
10908
10920
|
},
|
|
10909
|
-
children: /* @__PURE__ */ s(
|
|
10921
|
+
children: /* @__PURE__ */ s(Rs, { size: 16 })
|
|
10910
10922
|
}
|
|
10911
10923
|
)
|
|
10912
10924
|
] })
|
|
@@ -11252,9 +11264,9 @@ function O0(e, t, r = {}) {
|
|
|
11252
11264
|
const o = pu(e, r);
|
|
11253
11265
|
return o.setAttribute(fu(r), t), o;
|
|
11254
11266
|
}
|
|
11255
|
-
function
|
|
11256
|
-
const { content: r, extensions: n, useEditorOptions: i = {} } = e, o =
|
|
11257
|
-
const d =
|
|
11267
|
+
function R0(e, t) {
|
|
11268
|
+
const { content: r, extensions: n, useEditorOptions: i = {} } = e, o = Ru(), a = ye(() => {
|
|
11269
|
+
const d = Eg(n, n, "name");
|
|
11258
11270
|
return [...n.map((p) => {
|
|
11259
11271
|
const m = n.find((g) => g.name === p.name);
|
|
11260
11272
|
return m ? p.configure(m.options) : p;
|
|
@@ -11263,7 +11275,7 @@ function P0(e, t) {
|
|
|
11263
11275
|
var p;
|
|
11264
11276
|
const h = u(d, e.output);
|
|
11265
11277
|
(p = e == null ? void 0 : e.onChangeContent) == null || p.call(e, h);
|
|
11266
|
-
}, Lu), l =
|
|
11278
|
+
}, Lu), l = Eu({
|
|
11267
11279
|
extensions: a,
|
|
11268
11280
|
content: r,
|
|
11269
11281
|
onUpdate: ({ editor: d }) => {
|
|
@@ -11271,7 +11283,7 @@ function P0(e, t) {
|
|
|
11271
11283
|
},
|
|
11272
11284
|
...i
|
|
11273
11285
|
});
|
|
11274
|
-
|
|
11286
|
+
Pu(t, () => ({
|
|
11275
11287
|
editor: l
|
|
11276
11288
|
})), le(() => {
|
|
11277
11289
|
document.documentElement.classList.toggle("dark", e.dark), w0.setTheme(o, e.dark ? "dark" : "light");
|
|
@@ -11296,7 +11308,7 @@ function P0(e, t) {
|
|
|
11296
11308
|
{
|
|
11297
11309
|
id: o,
|
|
11298
11310
|
children: /* @__PURE__ */ s(
|
|
11299
|
-
|
|
11311
|
+
Ry,
|
|
11300
11312
|
{
|
|
11301
11313
|
delayDuration: 0,
|
|
11302
11314
|
disableHoverableContent: !0,
|
|
@@ -11310,7 +11322,7 @@ function P0(e, t) {
|
|
|
11310
11322
|
}
|
|
11311
11323
|
),
|
|
11312
11324
|
/* @__PURE__ */ s(
|
|
11313
|
-
|
|
11325
|
+
Mu,
|
|
11314
11326
|
{
|
|
11315
11327
|
className: `richtext-relative ${(e == null ? void 0 : e.contentClass) || ""}`,
|
|
11316
11328
|
editor: l
|
|
@@ -11339,7 +11351,7 @@ function P0(e, t) {
|
|
|
11339
11351
|
/* @__PURE__ */ s(v0, {})
|
|
11340
11352
|
] }) : /* @__PURE__ */ s(de, {});
|
|
11341
11353
|
}
|
|
11342
|
-
const Q0 = Ou(
|
|
11354
|
+
const Q0 = Ou(R0);
|
|
11343
11355
|
export {
|
|
11344
11356
|
G0 as $,
|
|
11345
11357
|
q as A,
|
|
@@ -11357,10 +11369,10 @@ export {
|
|
|
11357
11369
|
sx as M,
|
|
11358
11370
|
wl as N,
|
|
11359
11371
|
u0 as O,
|
|
11360
|
-
|
|
11372
|
+
Mr as P,
|
|
11361
11373
|
Z0 as Q,
|
|
11362
11374
|
Ox as R,
|
|
11363
|
-
|
|
11375
|
+
Ml as S,
|
|
11364
11376
|
jl as T,
|
|
11365
11377
|
qt as U,
|
|
11366
11378
|
zx as V,
|
|
@@ -11375,10 +11387,10 @@ export {
|
|
|
11375
11387
|
o1 as a2,
|
|
11376
11388
|
F0 as a3,
|
|
11377
11389
|
_e as a4,
|
|
11378
|
-
|
|
11390
|
+
Pl as a5,
|
|
11379
11391
|
Ly as a6,
|
|
11380
11392
|
H0 as a7,
|
|
11381
|
-
|
|
11393
|
+
Rl as a8,
|
|
11382
11394
|
wr as a9,
|
|
11383
11395
|
Q0 as aa,
|
|
11384
11396
|
a1 as ab,
|
|
@@ -11389,7 +11401,7 @@ export {
|
|
|
11389
11401
|
my as ag,
|
|
11390
11402
|
J0 as ah,
|
|
11391
11403
|
bt as ai,
|
|
11392
|
-
|
|
11404
|
+
Ro as b,
|
|
11393
11405
|
U0 as c,
|
|
11394
11406
|
X as d,
|
|
11395
11407
|
xy as e,
|
|
@@ -11408,10 +11420,10 @@ export {
|
|
|
11408
11420
|
zl as r,
|
|
11409
11421
|
$v as s,
|
|
11410
11422
|
Or as t,
|
|
11411
|
-
|
|
11423
|
+
El as u,
|
|
11412
11424
|
Sy as v,
|
|
11413
|
-
|
|
11414
|
-
|
|
11425
|
+
Rr as w,
|
|
11426
|
+
Pr as x,
|
|
11415
11427
|
Xt as y,
|
|
11416
11428
|
Yt as z
|
|
11417
11429
|
};
|