@voilabs/mark 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/editor/Toolbar.d.ts.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +392 -388
- package/package.json +6 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as g, Fragment as
|
|
1
|
+
import { jsx as g, Fragment as On, jsxs as B } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
3
|
import vn, { createContext as Qh, useContext as vi, useState as ae, useEffect as Xe, useLayoutEffect as Zh, useRef as An, useCallback as Rs, forwardRef as em, useImperativeHandle as tm } from "react";
|
|
4
4
|
import * as Jn from "@radix-ui/react-tooltip";
|
|
5
|
-
import { ChevronRight as nm, Check as Vt, Circle as rm, ChevronDown as Sl, Undo2 as om, Redo2 as im, Quote as Eu, Code2 as sm, Minus as Ru, Plus as ha, Bold as am, Italic as lm, Strikethrough as cm, Code as
|
|
5
|
+
import { ChevronRight as nm, Check as Vt, Circle as rm, ChevronDown as Sl, Undo2 as om, Redo2 as im, Quote as Eu, Code2 as sm, Minus as Ru, Plus as ha, Bold as am, Italic as lm, Strikethrough as cm, Code as Ou, Underline as um, Highlighter as dm, Unlink as fm, Link as Nu, Superscript as pm, Subscript as hm, AlignLeft as mm, AlignCenter as gm, AlignRight as bm, AlignJustify as ym, Upload as vm, Sun as xm, Moon as wm, Heading1 as ma, Heading2 as ga, Heading3 as ba, Heading4 as km, Heading5 as Cm, List as ya, ListOrdered as Iu, ListChecks as Sm, Type as Go, Ban as Tm, Pilcrow as Am, Image as Mm, Table as Em, X as Rm, Loader2 as Om, RotateCw as Nm, Crop as Im, Trash2 as Pu, GripVertical as Pm, Palette as Lm, RotateCcw as Dm, Download as zm, Copy as Tl, Minimize2 as _m, Maximize2 as $m } from "lucide-react";
|
|
6
6
|
import { ReactRenderer as Fm, NodeViewWrapper as Bm, ReactNodeViewRenderer as Hm, useEditor as Wm, EditorContent as jm } from "@tiptap/react";
|
|
7
7
|
import Vm from "@tiptap/starter-kit";
|
|
8
8
|
import Km from "@tiptap/extension-link";
|
|
9
|
-
import { Extension as Ve, commands as Bt, sortExtensions as qm, flattenExtensions as Um, callOrReturn as Lu, getExtensionField as kn, decodeHtmlEntities as Al, generateJSON as Gm, encodeHtmlEntities as Xm, Node as mt, mergeAttributes as Ie, textInputRule as ke, Mark as xi, markPasteRule as Jm, markInputRule as Ym, getStyleProperty as hr, wrappingInputRule as zr, renderNestedMarkdownContent as Du, getRenderedAttributes as Qm, parseIndentedBlocks as Ml, isNodeActive as
|
|
9
|
+
import { Extension as Ve, commands as Bt, sortExtensions as qm, flattenExtensions as Um, callOrReturn as Lu, getExtensionField as kn, decodeHtmlEntities as Al, generateJSON as Gm, encodeHtmlEntities as Xm, Node as mt, mergeAttributes as Ie, textInputRule as ke, Mark as xi, markPasteRule as Jm, markInputRule as Ym, getStyleProperty as hr, wrappingInputRule as zr, renderNestedMarkdownContent as Du, getRenderedAttributes as Qm, parseIndentedBlocks as Ml, isNodeActive as Os, isAtStartOfNode as Zm, isAtEndOfNode as eg, getNodeType as zu, getNodeAtPosition as tg, findParentNodeClosestToPos as ng, escapeForRegEx as rg } from "@tiptap/core";
|
|
10
10
|
import og from "@tiptap/extension-placeholder";
|
|
11
11
|
import ig from "@tiptap/extension-text-align";
|
|
12
12
|
import sg from "@tiptap/extension-underline";
|
|
@@ -36,14 +36,14 @@ var ug = (() => {
|
|
|
36
36
|
return !1;
|
|
37
37
|
}
|
|
38
38
|
})(), je = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`), htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}>`) }, dg = /^(?:[ \t]*(?:\n|$))+/, fg = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, pg = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Jr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, hg = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, xa = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fu = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Bu = le(Fu).replace(/bull/g, xa).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), mg = le(Fu).replace(/bull/g, xa).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), wa = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, gg = /^[^\n]+/, ka = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, bg = le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ka).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), yg = le(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, xa).getRegex(), wi = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ca = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, vg = le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ca).replace("tag", wi).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Hu = le(wa).replace("hr", Jr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", wi).getRegex(), xg = le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Hu).getRegex(), Sa = { blockquote: xg, code: fg, def: bg, fences: pg, heading: hg, hr: Jr, html: vg, lheading: Bu, list: yg, newline: dg, paragraph: Hu, table: Sn, text: gg }, El = le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Jr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", wi).getRegex(), wg = { ...Sa, lheading: mg, table: El, paragraph: le(wa).replace("hr", Jr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", El).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", wi).getRegex() }, kg = { ...Sa, html: le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ca).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Sn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: le(wa).replace("hr", Jr).replace("heading", ` *#{1,6} *[^
|
|
39
|
-
]`).replace("lheading", Bu).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Cg = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Sg = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Wu = /^( {2,}|\\)\n(?!\s*$)/, Tg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, mr = /[\p{P}\p{S}]/u, ki = /[\s\p{P}\p{S}]/u, Ta = /[^\s\p{P}\p{S}]/u, Ag = le(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ki).getRegex(), ju = /(?!~)[\p{P}\p{S}]/u, Mg = /(?!~)[\s\p{P}\p{S}]/u, Eg = /(?:[^\s\p{P}\p{S}]|~)/u, Rg = le(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ug ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vu = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,
|
|
39
|
+
]`).replace("lheading", Bu).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Cg = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Sg = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Wu = /^( {2,}|\\)\n(?!\s*$)/, Tg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, mr = /[\p{P}\p{S}]/u, ki = /[\s\p{P}\p{S}]/u, Ta = /[^\s\p{P}\p{S}]/u, Ag = le(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ki).getRegex(), ju = /(?!~)[\p{P}\p{S}]/u, Mg = /(?!~)[\s\p{P}\p{S}]/u, Eg = /(?:[^\s\p{P}\p{S}]|~)/u, Rg = le(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ug ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vu = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Og = le(Vu, "u").replace(/punct/g, mr).getRegex(), Ng = le(Vu, "u").replace(/punct/g, ju).getRegex(), Ku = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ig = le(Ku, "gu").replace(/notPunctSpace/g, Ta).replace(/punctSpace/g, ki).replace(/punct/g, mr).getRegex(), Pg = le(Ku, "gu").replace(/notPunctSpace/g, Eg).replace(/punctSpace/g, Mg).replace(/punct/g, ju).getRegex(), Lg = le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ta).replace(/punctSpace/g, ki).replace(/punct/g, mr).getRegex(), Dg = le(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, mr).getRegex(), zg = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", _g = le(zg, "gu").replace(/notPunctSpace/g, Ta).replace(/punctSpace/g, ki).replace(/punct/g, mr).getRegex(), $g = le(/\\(punct)/, "gu").replace(/punct/g, mr).getRegex(), Fg = le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Bg = le(Ca).replace("(?:-->|$)", "-->").getRegex(), Hg = le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Bg).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Xo = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Wg = le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Xo).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), qu = le(/^!?\[(label)\]\[(ref)\]/).replace("label", Xo).replace("ref", ka).getRegex(), Uu = le(/^!?\[(ref)\](?:\[\])?/).replace("ref", ka).getRegex(), jg = le("reflink|nolink(?!\\()", "g").replace("reflink", qu).replace("nolink", Uu).getRegex(), Rl = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Aa = { _backpedal: Sn, anyPunctuation: $g, autolink: Fg, blockSkip: Rg, br: Wu, code: Sg, del: Sn, delLDelim: Sn, delRDelim: Sn, emStrongLDelim: Og, emStrongRDelimAst: Ig, emStrongRDelimUnd: Lg, escape: Cg, link: Wg, nolink: Uu, punctuation: Ag, reflink: qu, reflinkSearch: jg, tag: Hg, text: Tg, url: Sn }, Vg = { ...Aa, link: le(/^!?\[(label)\]\((.*?)\)/).replace("label", Xo).getRegex(), reflink: le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Xo).getRegex() }, Ns = { ...Aa, emStrongRDelimAst: Pg, emStrongLDelim: Ng, delLDelim: Dg, delRDelim: _g, url: le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Rl).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: le(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Rl).getRegex() }, Kg = { ...Ns, br: le(Wu).replace("{2,}", "*").getRegex(), text: le(Ns.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, bo = { normal: Sa, gfm: wg, pedantic: kg }, vr = { normal: Aa, gfm: Ns, breaks: Kg, pedantic: Vg }, qg = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Ol = (e) => qg[e];
|
|
40
40
|
function Tt(e, t) {
|
|
41
41
|
if (t) {
|
|
42
|
-
if (je.escapeTest.test(e)) return e.replace(je.escapeReplace,
|
|
43
|
-
} else if (je.escapeTestNoEncode.test(e)) return e.replace(je.escapeReplaceNoEncode,
|
|
42
|
+
if (je.escapeTest.test(e)) return e.replace(je.escapeReplace, Ol);
|
|
43
|
+
} else if (je.escapeTestNoEncode.test(e)) return e.replace(je.escapeReplaceNoEncode, Ol);
|
|
44
44
|
return e;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Nl(e) {
|
|
47
47
|
try {
|
|
48
48
|
e = encodeURI(e).replace(je.percentDecode, "%");
|
|
49
49
|
} catch {
|
|
@@ -726,7 +726,7 @@ ${e}</tr>
|
|
|
726
726
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
727
727
|
}
|
|
728
728
|
link({ href: e, title: t, tokens: n }) {
|
|
729
|
-
let r = this.parser.parseInline(n), o =
|
|
729
|
+
let r = this.parser.parseInline(n), o = Nl(e);
|
|
730
730
|
if (o === null) return r;
|
|
731
731
|
e = o;
|
|
732
732
|
let i = '<a href="' + e + '"';
|
|
@@ -734,7 +734,7 @@ ${e}</tr>
|
|
|
734
734
|
}
|
|
735
735
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
736
736
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
737
|
-
let o =
|
|
737
|
+
let o = Nl(e);
|
|
738
738
|
if (o === null) return Tt(n);
|
|
739
739
|
e = o;
|
|
740
740
|
let i = `<img src="${e}" alt="${Tt(n)}"`;
|
|
@@ -1111,22 +1111,22 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
1111
1111
|
throw n;
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
|
-
},
|
|
1114
|
+
}, Nn = new Jg();
|
|
1115
1115
|
function he(e, t) {
|
|
1116
|
-
return
|
|
1116
|
+
return Nn.parse(e, t);
|
|
1117
1117
|
}
|
|
1118
1118
|
he.options = he.setOptions = function(e) {
|
|
1119
|
-
return
|
|
1119
|
+
return Nn.setOptions(e), he.defaults = Nn.defaults, $u(he.defaults), he;
|
|
1120
1120
|
};
|
|
1121
1121
|
he.getDefaults = va;
|
|
1122
1122
|
he.defaults = _n;
|
|
1123
1123
|
he.use = function(...e) {
|
|
1124
|
-
return
|
|
1124
|
+
return Nn.use(...e), he.defaults = Nn.defaults, $u(he.defaults), he;
|
|
1125
1125
|
};
|
|
1126
1126
|
he.walkTokens = function(e, t) {
|
|
1127
|
-
return
|
|
1127
|
+
return Nn.walkTokens(e, t);
|
|
1128
1128
|
};
|
|
1129
|
-
he.parseInline =
|
|
1129
|
+
he.parseInline = Nn.parseInline;
|
|
1130
1130
|
he.Parser = yt;
|
|
1131
1131
|
he.parser = yt.parse;
|
|
1132
1132
|
he.Renderer = Yo;
|
|
@@ -2191,7 +2191,7 @@ var rb = class {
|
|
|
2191
2191
|
})
|
|
2192
2192
|
];
|
|
2193
2193
|
}
|
|
2194
|
-
}), Rb = Eb,
|
|
2194
|
+
}), Rb = Eb, Ob = xi.create({
|
|
2195
2195
|
name: "superscript",
|
|
2196
2196
|
addOptions() {
|
|
2197
2197
|
return {
|
|
@@ -2226,7 +2226,7 @@ var rb = class {
|
|
|
2226
2226
|
"Mod-.": () => this.editor.commands.toggleSuperscript()
|
|
2227
2227
|
};
|
|
2228
2228
|
}
|
|
2229
|
-
}),
|
|
2229
|
+
}), Nb = Ob, Ib = xi.create({
|
|
2230
2230
|
name: "subscript",
|
|
2231
2231
|
addOptions() {
|
|
2232
2232
|
return {
|
|
@@ -2461,7 +2461,7 @@ var Yr = (e, t) => {
|
|
|
2461
2461
|
return !0;
|
|
2462
2462
|
if (e.state.selection.from !== e.state.selection.to)
|
|
2463
2463
|
return !1;
|
|
2464
|
-
if (!
|
|
2464
|
+
if (!Os(e.state, t) && Gu(e.state, t, n)) {
|
|
2465
2465
|
const { $anchor: a } = e.state.selection, l = e.state.doc.resolve(a.before() - 1), c = [];
|
|
2466
2466
|
l.node().descendants((f, p) => {
|
|
2467
2467
|
f.type.name === t && c.push({ node: f, pos: p });
|
|
@@ -2472,7 +2472,7 @@ var Yr = (e, t) => {
|
|
|
2472
2472
|
const d = e.state.doc.resolve(l.start() + u.pos + 1);
|
|
2473
2473
|
return e.chain().cut({ from: a.start() - 1, to: a.end() + 1 }, d.end()).joinForward().run();
|
|
2474
2474
|
}
|
|
2475
|
-
if (!
|
|
2475
|
+
if (!Os(e.state, t) || !Zm(e.state))
|
|
2476
2476
|
return !1;
|
|
2477
2477
|
const r = Yr(t, e.state);
|
|
2478
2478
|
if (!r)
|
|
@@ -2486,7 +2486,7 @@ var Yr = (e, t) => {
|
|
|
2486
2486
|
const n = Ea(e, t), r = Yr(e, t);
|
|
2487
2487
|
return !r || !n ? !1 : n < r.depth;
|
|
2488
2488
|
}, Ds = (e, t) => {
|
|
2489
|
-
if (!
|
|
2489
|
+
if (!Os(e.state, t) || !eg(e.state, t))
|
|
2490
2490
|
return !1;
|
|
2491
2491
|
const { selection: n } = e.state, { $from: r, $to: o } = n;
|
|
2492
2492
|
return !n.empty && r.sameParent(o) ? !1 : Yu(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : Qu(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
|
|
@@ -3843,13 +3843,13 @@ const sd = {
|
|
|
3843
3843
|
script: !0,
|
|
3844
3844
|
style: !0,
|
|
3845
3845
|
title: !0
|
|
3846
|
-
}, ad = { ol: !0, ul: !0 }, _r = 1, _s = 2,
|
|
3846
|
+
}, ad = { ol: !0, ul: !0 }, _r = 1, _s = 2, Nr = 4;
|
|
3847
3847
|
function Bl(e, t, n) {
|
|
3848
|
-
return t != null ? (t ? _r : 0) | (t === "full" ? _s : 0) : e && e.whitespace == "pre" ? _r | _s : n & ~
|
|
3848
|
+
return t != null ? (t ? _r : 0) | (t === "full" ? _s : 0) : e && e.whitespace == "pre" ? _r | _s : n & ~Nr;
|
|
3849
3849
|
}
|
|
3850
3850
|
class wo {
|
|
3851
3851
|
constructor(t, n, r, o, i, s) {
|
|
3852
|
-
this.type = t, this.attrs = n, this.marks = r, this.solid = o, this.options = s, this.content = [], this.activeMarks = We.none, this.match = i || (s &
|
|
3852
|
+
this.type = t, this.attrs = n, this.marks = r, this.solid = o, this.options = s, this.content = [], this.activeMarks = We.none, this.match = i || (s & Nr ? null : t.contentMatch);
|
|
3853
3853
|
}
|
|
3854
3854
|
findWrapping(t) {
|
|
3855
3855
|
if (!this.match) {
|
|
@@ -3883,7 +3883,7 @@ class wo {
|
|
|
3883
3883
|
class Hl {
|
|
3884
3884
|
constructor(t, n, r) {
|
|
3885
3885
|
this.parser = t, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
|
|
3886
|
-
let o = n.topNode, i, s = Bl(null, n.preserveWhitespace, 0) | (r ?
|
|
3886
|
+
let o = n.topNode, i, s = Bl(null, n.preserveWhitespace, 0) | (r ? Nr : 0);
|
|
3887
3887
|
o ? i = new wo(o.type, o.attrs, We.none, !0, n.topMatch || o.type.contentMatch, s) : r ? i = new wo(null, null, We.none, !0, null, s) : i = new wo(t.schema.topNodeType, null, We.none, !0, null, s), this.nodes = [i], this.find = n.findPositions, this.needsBlock = !1;
|
|
3888
3888
|
}
|
|
3889
3889
|
get top() {
|
|
@@ -4066,7 +4066,7 @@ class Hl {
|
|
|
4066
4066
|
let s = this.top;
|
|
4067
4067
|
s.match = s.match && s.match.matchType(t);
|
|
4068
4068
|
let a = Bl(t, i, s.options);
|
|
4069
|
-
s.options &
|
|
4069
|
+
s.options & Nr && s.content.length == 0 && (a |= Nr);
|
|
4070
4070
|
let l = We.none;
|
|
4071
4071
|
return r = r.filter((c) => (s.type ? s.type.allowsMarkType(c.type) : jl(c.type, t)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new wo(t, n, l, o, null, a)), this.open++, r;
|
|
4072
4072
|
}
|
|
@@ -4698,11 +4698,11 @@ class Ae {
|
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
|
-
function
|
|
4701
|
+
function Oa(e, t, n) {
|
|
4702
4702
|
let r = [];
|
|
4703
4703
|
for (let o = 0; o < e.childCount; o++) {
|
|
4704
4704
|
let i = e.child(o);
|
|
4705
|
-
i.content.size && (i = i.copy(
|
|
4705
|
+
i.content.size && (i = i.copy(Oa(i.content, t, i))), i.isInline && (i = t(i, n, o)), r.push(i);
|
|
4706
4706
|
}
|
|
4707
4707
|
return U.fromArray(r);
|
|
4708
4708
|
}
|
|
@@ -4714,7 +4714,7 @@ class nn extends _e {
|
|
|
4714
4714
|
super(), this.from = t, this.to = n, this.mark = r;
|
|
4715
4715
|
}
|
|
4716
4716
|
apply(t) {
|
|
4717
|
-
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new Y(
|
|
4717
|
+
let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new Y(Oa(n.content, (s, a) => !s.isAtom || !a.type.allowsMarkType(this.mark.type) ? s : s.mark(this.mark.addToSet(s.marks)), o), n.openStart, n.openEnd);
|
|
4718
4718
|
return Ae.fromReplace(t, this.from, this.to, i);
|
|
4719
4719
|
}
|
|
4720
4720
|
invert() {
|
|
@@ -4753,7 +4753,7 @@ class Rt extends _e {
|
|
|
4753
4753
|
super(), this.from = t, this.to = n, this.mark = r;
|
|
4754
4754
|
}
|
|
4755
4755
|
apply(t) {
|
|
4756
|
-
let n = t.slice(this.from, this.to), r = new Y(
|
|
4756
|
+
let n = t.slice(this.from, this.to), r = new Y(Oa(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
|
|
4757
4757
|
return Ae.fromReplace(t, this.from, this.to, r);
|
|
4758
4758
|
}
|
|
4759
4759
|
invert() {
|
|
@@ -4863,7 +4863,7 @@ class In extends _e {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
}
|
|
4865
4865
|
_e.jsonID("removeNodeMark", In);
|
|
4866
|
-
class
|
|
4866
|
+
class Oe extends _e {
|
|
4867
4867
|
/**
|
|
4868
4868
|
The given `slice` should fit the 'gap' between `from` and
|
|
4869
4869
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -4883,21 +4883,21 @@ class Ne extends _e {
|
|
|
4883
4883
|
return new tt([this.from, this.to - this.from, this.slice.size]);
|
|
4884
4884
|
}
|
|
4885
4885
|
invert(t) {
|
|
4886
|
-
return new
|
|
4886
|
+
return new Oe(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
4887
4887
|
}
|
|
4888
4888
|
map(t) {
|
|
4889
|
-
let n = t.mapResult(this.to, -1), r = this.from == this.to &&
|
|
4890
|
-
return r.deletedAcross && n.deletedAcross ? null : new
|
|
4889
|
+
let n = t.mapResult(this.to, -1), r = this.from == this.to && Oe.MAP_BIAS < 0 ? n : t.mapResult(this.from, 1);
|
|
4890
|
+
return r.deletedAcross && n.deletedAcross ? null : new Oe(r.pos, Math.max(r.pos, n.pos), this.slice, this.structure);
|
|
4891
4891
|
}
|
|
4892
4892
|
merge(t) {
|
|
4893
|
-
if (!(t instanceof
|
|
4893
|
+
if (!(t instanceof Oe) || t.structure || this.structure)
|
|
4894
4894
|
return null;
|
|
4895
4895
|
if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
|
|
4896
4896
|
let n = this.slice.size + t.slice.size == 0 ? Y.empty : new Y(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
|
|
4897
|
-
return new
|
|
4897
|
+
return new Oe(this.from, this.to + (t.to - t.from), n, this.structure);
|
|
4898
4898
|
} else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
|
|
4899
4899
|
let n = this.slice.size + t.slice.size == 0 ? Y.empty : new Y(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
|
|
4900
|
-
return new
|
|
4900
|
+
return new Oe(t.from, this.to, n, this.structure);
|
|
4901
4901
|
} else
|
|
4902
4902
|
return null;
|
|
4903
4903
|
}
|
|
@@ -4911,11 +4911,11 @@ class Ne extends _e {
|
|
|
4911
4911
|
static fromJSON(t, n) {
|
|
4912
4912
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
4913
4913
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
4914
|
-
return new
|
|
4914
|
+
return new Oe(n.from, n.to, Y.fromJSON(t, n.slice), !!n.structure);
|
|
4915
4915
|
}
|
|
4916
4916
|
}
|
|
4917
|
-
|
|
4918
|
-
_e.jsonID("replace",
|
|
4917
|
+
Oe.MAP_BIAS = 1;
|
|
4918
|
+
_e.jsonID("replace", Oe);
|
|
4919
4919
|
class vt extends _e {
|
|
4920
4920
|
/**
|
|
4921
4921
|
Create a replace-around step with the given range and gap.
|
|
@@ -5027,12 +5027,12 @@ function my(e, t, n, r) {
|
|
|
5027
5027
|
}
|
|
5028
5028
|
}), o.forEach((s) => e.step(new Rt(s.from, s.to, s.style)));
|
|
5029
5029
|
}
|
|
5030
|
-
function
|
|
5030
|
+
function Na(e, t, n, r = n.contentMatch, o = !0) {
|
|
5031
5031
|
let i = e.doc.nodeAt(t), s = [], a = t + 1;
|
|
5032
5032
|
for (let l = 0; l < i.childCount; l++) {
|
|
5033
5033
|
let c = i.child(l), u = a + c.nodeSize, d = r.matchType(c.type);
|
|
5034
5034
|
if (!d)
|
|
5035
|
-
s.push(new
|
|
5035
|
+
s.push(new Oe(a, u, Y.empty));
|
|
5036
5036
|
else {
|
|
5037
5037
|
r = d;
|
|
5038
5038
|
for (let f = 0; f < c.marks.length; f++)
|
|
@@ -5040,7 +5040,7 @@ function Oa(e, t, n, r = n.contentMatch, o = !0) {
|
|
|
5040
5040
|
if (o && c.isText && n.whitespace != "pre") {
|
|
5041
5041
|
let f, p = /\r?\n|\r/g, h;
|
|
5042
5042
|
for (; f = p.exec(c.text); )
|
|
5043
|
-
h || (h = new Y(U.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), s.push(new
|
|
5043
|
+
h || (h = new Y(U.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), s.push(new Oe(a + f.index, a + f.index + f[0].length, h));
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
5046
|
a = u;
|
|
@@ -5086,7 +5086,7 @@ function yy(e, t, n, r, o) {
|
|
|
5086
5086
|
let p = r.whitespace == "pre", h = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
|
|
5087
5087
|
p && !h ? c = !1 : !p && h && (c = !0);
|
|
5088
5088
|
}
|
|
5089
|
-
c === !1 && hd(e, s, a, i),
|
|
5089
|
+
c === !1 && hd(e, s, a, i), Na(e, e.mapping.slice(i).map(a, 1), r, void 0, c === null);
|
|
5090
5090
|
let u = e.mapping.slice(i), d = u.map(a, 1), f = u.map(a + s.nodeSize, 1);
|
|
5091
5091
|
return e.step(new vt(d, f, d + 1, f - 1, new Y(U.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), c === !0 && pd(e, s, a, i), !1;
|
|
5092
5092
|
}
|
|
@@ -5135,7 +5135,7 @@ function wy(e, t, n = 1, r) {
|
|
|
5135
5135
|
let u = r && r[c];
|
|
5136
5136
|
s = U.from(u ? u.type.create(u.attrs, s) : o.node(a).copy(s));
|
|
5137
5137
|
}
|
|
5138
|
-
e.step(new
|
|
5138
|
+
e.step(new Oe(t, t, new Y(i.append(s), n, n), !0));
|
|
5139
5139
|
}
|
|
5140
5140
|
function ky(e, t, n) {
|
|
5141
5141
|
let r = null, { linebreakReplacement: o } = e.doc.type.schema, i = e.doc.resolve(t - n), s = i.node().type;
|
|
@@ -5148,9 +5148,9 @@ function ky(e, t, n) {
|
|
|
5148
5148
|
let u = e.doc.resolve(t + n);
|
|
5149
5149
|
hd(e, u.node(), u.before(), a);
|
|
5150
5150
|
}
|
|
5151
|
-
s.inlineContent &&
|
|
5151
|
+
s.inlineContent && Na(e, t + n - 1, s, i.node().contentMatchAt(i.index()), r == null);
|
|
5152
5152
|
let l = e.mapping.slice(a), c = l.map(t - n);
|
|
5153
|
-
if (e.step(new
|
|
5153
|
+
if (e.step(new Oe(c, l.map(t + n, -1), Y.empty, !0)), r === !0) {
|
|
5154
5154
|
let u = e.doc.resolve(c);
|
|
5155
5155
|
pd(e, u.node(), u.before(), e.steps.length);
|
|
5156
5156
|
}
|
|
@@ -5203,7 +5203,7 @@ function Ty(e, t, n = t, r = Y.empty) {
|
|
|
5203
5203
|
if (t == n && !r.size)
|
|
5204
5204
|
return null;
|
|
5205
5205
|
let o = e.resolve(t), i = e.resolve(n);
|
|
5206
|
-
return md(o, i, r) ? new
|
|
5206
|
+
return md(o, i, r) ? new Oe(t, n, r) : new Ay(o, i, r).fit();
|
|
5207
5207
|
}
|
|
5208
5208
|
function md(e, t, n) {
|
|
5209
5209
|
return !n.openStart && !n.openEnd && e.start() == t.start() && e.parent.canReplace(e.index(), t.index(), n.content);
|
|
@@ -5236,7 +5236,7 @@ class Ay {
|
|
|
5236
5236
|
for (; s && a && i.childCount == 1; )
|
|
5237
5237
|
i = i.firstChild.content, s--, a--;
|
|
5238
5238
|
let l = new Y(i, s, a);
|
|
5239
|
-
return t > -1 ? new vt(r.pos, t, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new
|
|
5239
|
+
return t > -1 ? new vt(r.pos, t, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new Oe(r.pos, o.pos, l) : null;
|
|
5240
5240
|
}
|
|
5241
5241
|
// Find a position on the start spine of `this.unplaced` that has
|
|
5242
5242
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -5393,7 +5393,7 @@ function Ry(e, t, n, r) {
|
|
|
5393
5393
|
return e.deleteRange(t, n);
|
|
5394
5394
|
let o = e.doc.resolve(t), i = e.doc.resolve(n);
|
|
5395
5395
|
if (md(o, i, r))
|
|
5396
|
-
return e.step(new
|
|
5396
|
+
return e.step(new Oe(t, n, r));
|
|
5397
5397
|
let s = yd(o, i);
|
|
5398
5398
|
s[s.length - 1] == 0 && s.pop();
|
|
5399
5399
|
let a = -(o.depth + 1);
|
|
@@ -5446,14 +5446,14 @@ function bd(e, t, n, r, o) {
|
|
|
5446
5446
|
}
|
|
5447
5447
|
return e;
|
|
5448
5448
|
}
|
|
5449
|
-
function
|
|
5449
|
+
function Oy(e, t, n, r) {
|
|
5450
5450
|
if (!r.isInline && t == n && e.doc.resolve(t).parent.content.size) {
|
|
5451
5451
|
let o = Cy(e.doc, t, r.type);
|
|
5452
5452
|
o != null && (t = n = o);
|
|
5453
5453
|
}
|
|
5454
5454
|
e.replaceRange(t, n, new Y(U.from(r), 0, 0));
|
|
5455
5455
|
}
|
|
5456
|
-
function
|
|
5456
|
+
function Ny(e, t, n) {
|
|
5457
5457
|
let r = e.doc.resolve(t), o = e.doc.resolve(n);
|
|
5458
5458
|
if (r.parent.isTextblock && o.parent.isTextblock && r.start() != o.start() && r.parentOffset == 0 && o.parentOffset == 0) {
|
|
5459
5459
|
let s = r.sharedDepth(n), a = !1;
|
|
@@ -5692,14 +5692,14 @@ class Iy {
|
|
|
5692
5692
|
that parent node.
|
|
5693
5693
|
*/
|
|
5694
5694
|
replaceRangeWith(t, n, r) {
|
|
5695
|
-
return
|
|
5695
|
+
return Oy(this, t, n, r), this;
|
|
5696
5696
|
}
|
|
5697
5697
|
/**
|
|
5698
5698
|
Delete the given range, expanding it to cover fully covered
|
|
5699
5699
|
parent nodes until a valid replace is found.
|
|
5700
5700
|
*/
|
|
5701
5701
|
deleteRange(t, n) {
|
|
5702
|
-
return
|
|
5702
|
+
return Ny(this, t, n), this;
|
|
5703
5703
|
}
|
|
5704
5704
|
/**
|
|
5705
5705
|
Split the content in the given range off from its parent, if there
|
|
@@ -5811,7 +5811,7 @@ class Iy {
|
|
|
5811
5811
|
third argument.
|
|
5812
5812
|
*/
|
|
5813
5813
|
clearIncompatible(t, n, r) {
|
|
5814
|
-
return
|
|
5814
|
+
return Na(this, t, n, r), this;
|
|
5815
5815
|
}
|
|
5816
5816
|
}
|
|
5817
5817
|
const es = /* @__PURE__ */ Object.create(null);
|
|
@@ -5925,7 +5925,7 @@ class fe {
|
|
|
5925
5925
|
negative, it will search backwards first.
|
|
5926
5926
|
*/
|
|
5927
5927
|
static near(t, n = 1) {
|
|
5928
|
-
return this.findFrom(t, n) || this.findFrom(t, -n) || new
|
|
5928
|
+
return this.findFrom(t, n) || this.findFrom(t, -n) || new Nt(t.node(0));
|
|
5929
5929
|
}
|
|
5930
5930
|
/**
|
|
5931
5931
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -5934,14 +5934,14 @@ class fe {
|
|
|
5934
5934
|
exists.
|
|
5935
5935
|
*/
|
|
5936
5936
|
static atStart(t) {
|
|
5937
|
-
return Yn(t, t, 0, 0, 1) || new
|
|
5937
|
+
return Yn(t, t, 0, 0, 1) || new Nt(t);
|
|
5938
5938
|
}
|
|
5939
5939
|
/**
|
|
5940
5940
|
Find the cursor or leaf node selection closest to the end of the
|
|
5941
5941
|
given document.
|
|
5942
5942
|
*/
|
|
5943
5943
|
static atEnd(t) {
|
|
5944
|
-
return Yn(t, t, t.content.size, t.childCount, -1) || new
|
|
5944
|
+
return Yn(t, t, t.content.size, t.childCount, -1) || new Nt(t);
|
|
5945
5945
|
}
|
|
5946
5946
|
/**
|
|
5947
5947
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -6137,7 +6137,7 @@ class Ia {
|
|
|
6137
6137
|
return r && ue.isSelectable(r) ? new ue(n) : fe.near(n);
|
|
6138
6138
|
}
|
|
6139
6139
|
}
|
|
6140
|
-
class
|
|
6140
|
+
class Nt extends fe {
|
|
6141
6141
|
/**
|
|
6142
6142
|
Create an all-selection over the given document.
|
|
6143
6143
|
*/
|
|
@@ -6159,25 +6159,25 @@ class Ot extends fe {
|
|
|
6159
6159
|
@internal
|
|
6160
6160
|
*/
|
|
6161
6161
|
static fromJSON(t) {
|
|
6162
|
-
return new
|
|
6162
|
+
return new Nt(t);
|
|
6163
6163
|
}
|
|
6164
6164
|
map(t) {
|
|
6165
|
-
return new
|
|
6165
|
+
return new Nt(t);
|
|
6166
6166
|
}
|
|
6167
6167
|
eq(t) {
|
|
6168
|
-
return t instanceof
|
|
6168
|
+
return t instanceof Nt;
|
|
6169
6169
|
}
|
|
6170
6170
|
getBookmark() {
|
|
6171
6171
|
return Py;
|
|
6172
6172
|
}
|
|
6173
6173
|
}
|
|
6174
|
-
fe.jsonID("all",
|
|
6174
|
+
fe.jsonID("all", Nt);
|
|
6175
6175
|
const Py = {
|
|
6176
6176
|
map() {
|
|
6177
6177
|
return this;
|
|
6178
6178
|
},
|
|
6179
6179
|
resolve(e) {
|
|
6180
|
-
return new
|
|
6180
|
+
return new Nt(e);
|
|
6181
6181
|
}
|
|
6182
6182
|
};
|
|
6183
6183
|
function Yn(e, t, n, r, o, i = !1) {
|
|
@@ -6202,7 +6202,7 @@ function Xl(e, t, n) {
|
|
|
6202
6202
|
if (r < t)
|
|
6203
6203
|
return;
|
|
6204
6204
|
let o = e.steps[r];
|
|
6205
|
-
if (!(o instanceof
|
|
6205
|
+
if (!(o instanceof Oe || o instanceof vt))
|
|
6206
6206
|
return;
|
|
6207
6207
|
let i = e.mapping.maps[r], s;
|
|
6208
6208
|
i.forEach((a, l, c, u) => {
|
|
@@ -6384,7 +6384,7 @@ function _y(e, t = null) {
|
|
|
6384
6384
|
let u = r.resolve(l);
|
|
6385
6385
|
if (!c) {
|
|
6386
6386
|
let d = t == "pointer" || e.state.selection.head < a.pos && !i ? 1 : -1;
|
|
6387
|
-
c =
|
|
6387
|
+
c = Od(e, u, a, d);
|
|
6388
6388
|
}
|
|
6389
6389
|
return c;
|
|
6390
6390
|
}
|
|
@@ -6455,7 +6455,7 @@ function By(e, t) {
|
|
|
6455
6455
|
function nc(e) {
|
|
6456
6456
|
e.lastSelectedViewDesc && (e.lastSelectedViewDesc.parent && e.lastSelectedViewDesc.deselectNode(), e.lastSelectedViewDesc = void 0);
|
|
6457
6457
|
}
|
|
6458
|
-
function
|
|
6458
|
+
function Od(e, t, n, r) {
|
|
6459
6459
|
return e.someProp("createSelectionBetween", (o) => o(e, t, n)) || pe.between(t, n, r);
|
|
6460
6460
|
}
|
|
6461
6461
|
function Hy(e) {
|
|
@@ -6534,7 +6534,7 @@ function Wy(e) {
|
|
|
6534
6534
|
break;
|
|
6535
6535
|
}
|
|
6536
6536
|
} else {
|
|
6537
|
-
if (
|
|
6537
|
+
if (Nd(n))
|
|
6538
6538
|
break;
|
|
6539
6539
|
{
|
|
6540
6540
|
let a = n.previousSibling;
|
|
@@ -6566,7 +6566,7 @@ function jy(e) {
|
|
|
6566
6566
|
else
|
|
6567
6567
|
break;
|
|
6568
6568
|
} else {
|
|
6569
|
-
if (
|
|
6569
|
+
if (Nd(n))
|
|
6570
6570
|
break;
|
|
6571
6571
|
{
|
|
6572
6572
|
let a = n.nextSibling;
|
|
@@ -6583,7 +6583,7 @@ function jy(e) {
|
|
|
6583
6583
|
}
|
|
6584
6584
|
i && Vs(e, i, s);
|
|
6585
6585
|
}
|
|
6586
|
-
function
|
|
6586
|
+
function Nd(e) {
|
|
6587
6587
|
let t = e.pmViewDesc;
|
|
6588
6588
|
return t && t.node && t.node.isBlock;
|
|
6589
6589
|
}
|
|
@@ -6657,7 +6657,7 @@ function ic(e, t, n) {
|
|
|
6657
6657
|
return en(e, s);
|
|
6658
6658
|
}
|
|
6659
6659
|
if (!o.parent.inlineContent) {
|
|
6660
|
-
let s = t < 0 ? o : i, a = r instanceof
|
|
6660
|
+
let s = t < 0 ? o : i, a = r instanceof Nt ? fe.near(s, t) : fe.findFrom(s, t);
|
|
6661
6661
|
return a ? en(e, a) : !1;
|
|
6662
6662
|
}
|
|
6663
6663
|
return !1;
|
|
@@ -7263,7 +7263,7 @@ function y0(e, t, n) {
|
|
|
7263
7263
|
l.setSelection(new ue(f));
|
|
7264
7264
|
else {
|
|
7265
7265
|
let p = l.mapping.map(a);
|
|
7266
|
-
l.mapping.maps[l.mapping.maps.length - 1].forEach((h, m, b, v) => p = v), l.setSelection(
|
|
7266
|
+
l.mapping.maps[l.mapping.maps.length - 1].forEach((h, m, b, v) => p = v), l.setSelection(Od(e, f, l.doc.resolve(p)));
|
|
7267
7267
|
}
|
|
7268
7268
|
e.focus(), e.dispatch(l.setMeta("uiEvent", "drop"));
|
|
7269
7269
|
}
|
|
@@ -7870,10 +7870,10 @@ var an = {
|
|
|
7870
7870
|
221: "}",
|
|
7871
7871
|
222: '"'
|
|
7872
7872
|
}, w0 = typeof navigator < "u" && /Mac/.test(navigator.platform), k0 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
7873
|
-
for (var
|
|
7874
|
-
for (var
|
|
7875
|
-
for (var
|
|
7876
|
-
an[
|
|
7873
|
+
for (var Ne = 0; Ne < 10; Ne++) an[48 + Ne] = an[96 + Ne] = String(Ne);
|
|
7874
|
+
for (var Ne = 1; Ne <= 24; Ne++) an[Ne + 111] = "F" + Ne;
|
|
7875
|
+
for (var Ne = 65; Ne <= 90; Ne++)
|
|
7876
|
+
an[Ne] = String.fromCharCode(Ne + 32), ii[Ne] = String.fromCharCode(Ne);
|
|
7877
7877
|
for (var os in an) ii.hasOwnProperty(os) || (ii[os] = an[os]);
|
|
7878
7878
|
function C0(e) {
|
|
7879
7879
|
var t = w0 && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || k0 && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? ii : an)[e.keyCode] || e.key || "Unidentified";
|
|
@@ -8007,7 +8007,7 @@ var we = class {
|
|
|
8007
8007
|
};
|
|
8008
8008
|
function R0(e) {
|
|
8009
8009
|
if (e.type.spec.tableRole != "table") throw new RangeError("Not a table node: " + e.type.name);
|
|
8010
|
-
const t =
|
|
8010
|
+
const t = O0(e), n = e.childCount, r = [];
|
|
8011
8011
|
let o = 0, i = null;
|
|
8012
8012
|
const s = [];
|
|
8013
8013
|
for (let c = 0, u = t * n; c < u; c++) r[c] = 0;
|
|
@@ -8057,9 +8057,9 @@ function R0(e) {
|
|
|
8057
8057
|
const a = new we(t, n, r, i);
|
|
8058
8058
|
let l = !1;
|
|
8059
8059
|
for (let c = 0; !l && c < s.length; c += 2) s[c] != null && s[c + 1] < n && (l = !0);
|
|
8060
|
-
return l &&
|
|
8060
|
+
return l && N0(a, s, e), a;
|
|
8061
8061
|
}
|
|
8062
|
-
function
|
|
8062
|
+
function O0(e) {
|
|
8063
8063
|
let t = -1, n = !1;
|
|
8064
8064
|
for (let r = 0; r < e.childCount; r++) {
|
|
8065
8065
|
const o = e.child(r);
|
|
@@ -8079,7 +8079,7 @@ function N0(e) {
|
|
|
8079
8079
|
}
|
|
8080
8080
|
return t;
|
|
8081
8081
|
}
|
|
8082
|
-
function
|
|
8082
|
+
function N0(e, t, n) {
|
|
8083
8083
|
e.problems || (e.problems = []);
|
|
8084
8084
|
const r = {};
|
|
8085
8085
|
for (let o = 0; o < e.map.length; o++) {
|
|
@@ -9496,7 +9496,7 @@ function Rv(e, t, n, r) {
|
|
|
9496
9496
|
function Sc(e, t) {
|
|
9497
9497
|
return e.createAndFill();
|
|
9498
9498
|
}
|
|
9499
|
-
function
|
|
9499
|
+
function Ov(e) {
|
|
9500
9500
|
if (e.cached.tableNodeTypes)
|
|
9501
9501
|
return e.cached.tableNodeTypes;
|
|
9502
9502
|
const t = {};
|
|
@@ -9505,8 +9505,8 @@ function Nv(e) {
|
|
|
9505
9505
|
r.spec.tableRole && (t[r.spec.tableRole] = r);
|
|
9506
9506
|
}), e.cached.tableNodeTypes = t, t;
|
|
9507
9507
|
}
|
|
9508
|
-
function
|
|
9509
|
-
const i =
|
|
9508
|
+
function Nv(e, t, n, r, o) {
|
|
9509
|
+
const i = Ov(e), s = [], a = [];
|
|
9510
9510
|
for (let c = 0; c < n; c += 1) {
|
|
9511
9511
|
const u = Sc(i.cell);
|
|
9512
9512
|
if (u && a.push(u), r) {
|
|
@@ -9645,7 +9645,7 @@ var zv = Dv, af = mt.create({
|
|
|
9645
9645
|
addCommands() {
|
|
9646
9646
|
return {
|
|
9647
9647
|
insertTable: ({ rows: e = 3, cols: t = 3, withHeaderRow: n = !0 } = {}) => ({ tr: r, dispatch: o, editor: i }) => {
|
|
9648
|
-
const s =
|
|
9648
|
+
const s = Nv(i.schema, e, t, n);
|
|
9649
9649
|
if (o) {
|
|
9650
9650
|
const a = r.selection.from + 1;
|
|
9651
9651
|
r.replaceSelectionWith(s).scrollIntoView().setSelection(pe.near(r.doc.resolve(a)));
|
|
@@ -10261,7 +10261,7 @@ const Uv = (e, t) => {
|
|
|
10261
10261
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
10262
10262
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
10263
10263
|
yx.test(e) && !vx.test(e)
|
|
10264
|
-
), Va = () => !1, Cx = (e) => xx.test(e), Sx = (e) => wx.test(e), Tx = (e) => !X(e) && !J(e), Ax = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Mx = (e) => fn(e, wf, Va), X = (e) => gf.test(e), xn = (e) => fn(e, kf, kx), Ec = (e) => fn(e, Dx, oe), Ex = (e) => fn(e, Sf, yf), Rx = (e) => fn(e, Cf, Va), Rc = (e) => fn(e, vf, Va),
|
|
10264
|
+
), Va = () => !1, Cx = (e) => xx.test(e), Sx = (e) => wx.test(e), Tx = (e) => !X(e) && !J(e), Ax = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Mx = (e) => fn(e, wf, Va), X = (e) => gf.test(e), xn = (e) => fn(e, kf, kx), Ec = (e) => fn(e, Dx, oe), Ex = (e) => fn(e, Sf, yf), Rx = (e) => fn(e, Cf, Va), Rc = (e) => fn(e, vf, Va), Ox = (e) => fn(e, xf, Sx), Mo = (e) => fn(e, Tf, Cx), J = (e) => bf.test(e), wr = (e) => Bn(e, kf), Nx = (e) => Bn(e, Cf), Oc = (e) => Bn(e, vf), Ix = (e) => Bn(e, wf), Px = (e) => Bn(e, xf), Eo = (e) => Bn(e, Tf, !0), Lx = (e) => Bn(e, Sf, !0), fn = (e, t, n) => {
|
|
10265
10265
|
const r = gf.exec(e);
|
|
10266
10266
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
10267
10267
|
}, Bn = (e, t, n = !1) => {
|
|
@@ -10286,9 +10286,9 @@ const Uv = (e, t) => {
|
|
|
10286
10286
|
"bottom-left",
|
|
10287
10287
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
10288
10288
|
"left-bottom"
|
|
10289
|
-
], A = () => [...y(), J, X], w = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], T = () => [J, X, l], I = () => [Qt, "full", "auto", ...T()],
|
|
10289
|
+
], A = () => [...y(), J, X], w = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], T = () => [J, X, l], I = () => [Qt, "full", "auto", ...T()], N = () => [St, "none", "subgrid", J, X], D = () => ["auto", {
|
|
10290
10290
|
span: ["full", St, J, X]
|
|
10291
|
-
}, St, J, X], L = () => [St, "auto", J, X], F = () => ["auto", "min", "max", "fr", J, X], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"],
|
|
10291
|
+
}, St, J, X], L = () => [St, "auto", J, X], F = () => ["auto", "min", "max", "fr", J, X], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...T()], V = () => [Qt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], _ = () => [Qt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...T()], R = () => [Qt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...T()], z = () => [e, J, X], j = () => [...y(), Oc, Rc, {
|
|
10292
10292
|
position: [J, X]
|
|
10293
10293
|
}], te = () => ["no-repeat", {
|
|
10294
10294
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -10302,7 +10302,7 @@ const Uv = (e, t) => {
|
|
|
10302
10302
|
c,
|
|
10303
10303
|
J,
|
|
10304
10304
|
X
|
|
10305
|
-
], q = () => ["", oe, wr, xn], W = () => ["solid", "dashed", "dotted", "double"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ne = () => [oe, as,
|
|
10305
|
+
], q = () => ["", oe, wr, xn], W = () => ["solid", "dashed", "dotted", "double"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ne = () => [oe, as, Oc, Rc], me = () => [
|
|
10306
10306
|
// Deprecated since Tailwind CSS v4.0.0
|
|
10307
10307
|
"",
|
|
10308
10308
|
"none",
|
|
@@ -10652,7 +10652,7 @@ const Uv = (e, t) => {
|
|
|
10652
10652
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
10653
10653
|
*/
|
|
10654
10654
|
"grid-cols": [{
|
|
10655
|
-
"grid-cols":
|
|
10655
|
+
"grid-cols": N()
|
|
10656
10656
|
}],
|
|
10657
10657
|
/**
|
|
10658
10658
|
* Grid Column Start / End
|
|
@@ -10680,7 +10680,7 @@ const Uv = (e, t) => {
|
|
|
10680
10680
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
10681
10681
|
*/
|
|
10682
10682
|
"grid-rows": [{
|
|
10683
|
-
"grid-rows":
|
|
10683
|
+
"grid-rows": N()
|
|
10684
10684
|
}],
|
|
10685
10685
|
/**
|
|
10686
10686
|
* Grid Row Start / End
|
|
@@ -10757,14 +10757,14 @@ const Uv = (e, t) => {
|
|
|
10757
10757
|
* @see https://tailwindcss.com/docs/justify-items
|
|
10758
10758
|
*/
|
|
10759
10759
|
"justify-items": [{
|
|
10760
|
-
"justify-items": [...
|
|
10760
|
+
"justify-items": [...O(), "normal"]
|
|
10761
10761
|
}],
|
|
10762
10762
|
/**
|
|
10763
10763
|
* Justify Self
|
|
10764
10764
|
* @see https://tailwindcss.com/docs/justify-self
|
|
10765
10765
|
*/
|
|
10766
10766
|
"justify-self": [{
|
|
10767
|
-
"justify-self": ["auto", ...
|
|
10767
|
+
"justify-self": ["auto", ...O()]
|
|
10768
10768
|
}],
|
|
10769
10769
|
/**
|
|
10770
10770
|
* Align Content
|
|
@@ -10778,7 +10778,7 @@ const Uv = (e, t) => {
|
|
|
10778
10778
|
* @see https://tailwindcss.com/docs/align-items
|
|
10779
10779
|
*/
|
|
10780
10780
|
"align-items": [{
|
|
10781
|
-
items: [...
|
|
10781
|
+
items: [...O(), {
|
|
10782
10782
|
baseline: ["", "last"]
|
|
10783
10783
|
}]
|
|
10784
10784
|
}],
|
|
@@ -10787,7 +10787,7 @@ const Uv = (e, t) => {
|
|
|
10787
10787
|
* @see https://tailwindcss.com/docs/align-self
|
|
10788
10788
|
*/
|
|
10789
10789
|
"align-self": [{
|
|
10790
|
-
self: ["auto", ...
|
|
10790
|
+
self: ["auto", ...O(), {
|
|
10791
10791
|
baseline: ["", "last"]
|
|
10792
10792
|
}]
|
|
10793
10793
|
}],
|
|
@@ -10803,14 +10803,14 @@ const Uv = (e, t) => {
|
|
|
10803
10803
|
* @see https://tailwindcss.com/docs/place-items
|
|
10804
10804
|
*/
|
|
10805
10805
|
"place-items": [{
|
|
10806
|
-
"place-items": [...
|
|
10806
|
+
"place-items": [...O(), "baseline"]
|
|
10807
10807
|
}],
|
|
10808
10808
|
/**
|
|
10809
10809
|
* Place Self
|
|
10810
10810
|
* @see https://tailwindcss.com/docs/place-self
|
|
10811
10811
|
*/
|
|
10812
10812
|
"place-self": [{
|
|
10813
|
-
"place-self": ["auto", ...
|
|
10813
|
+
"place-self": ["auto", ...O()]
|
|
10814
10814
|
}],
|
|
10815
10815
|
// Spacing
|
|
10816
10816
|
/**
|
|
@@ -11141,7 +11141,7 @@ const Uv = (e, t) => {
|
|
|
11141
11141
|
* @see https://tailwindcss.com/docs/font-family
|
|
11142
11142
|
*/
|
|
11143
11143
|
"font-family": [{
|
|
11144
|
-
font: [
|
|
11144
|
+
font: [Nx, Rx, t]
|
|
11145
11145
|
}],
|
|
11146
11146
|
/**
|
|
11147
11147
|
* Font Feature Settings
|
|
@@ -11410,7 +11410,7 @@ const Uv = (e, t) => {
|
|
|
11410
11410
|
}, St, J, X],
|
|
11411
11411
|
radial: ["", J, X],
|
|
11412
11412
|
conic: [St, J, X]
|
|
11413
|
-
}, Px,
|
|
11413
|
+
}, Px, Ox]
|
|
11414
11414
|
}],
|
|
11415
11415
|
/**
|
|
11416
11416
|
* Background Color
|
|
@@ -13005,7 +13005,7 @@ const eo = Qh({
|
|
|
13005
13005
|
]
|
|
13006
13006
|
}
|
|
13007
13007
|
) })
|
|
13008
|
-
] }) : /* @__PURE__ */ g(
|
|
13008
|
+
] }) : /* @__PURE__ */ g(On, { children: e });
|
|
13009
13009
|
};
|
|
13010
13010
|
function ie(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
13011
13011
|
return function(o) {
|
|
@@ -13013,7 +13013,7 @@ function ie(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
13013
13013
|
return t?.(o);
|
|
13014
13014
|
};
|
|
13015
13015
|
}
|
|
13016
|
-
function
|
|
13016
|
+
function Nc(e, t) {
|
|
13017
13017
|
if (typeof e == "function")
|
|
13018
13018
|
return e(t);
|
|
13019
13019
|
e != null && (e.current = t);
|
|
@@ -13022,14 +13022,14 @@ function Ri(...e) {
|
|
|
13022
13022
|
return (t) => {
|
|
13023
13023
|
let n = !1;
|
|
13024
13024
|
const r = e.map((o) => {
|
|
13025
|
-
const i =
|
|
13025
|
+
const i = Nc(o, t);
|
|
13026
13026
|
return !n && typeof i == "function" && (n = !0), i;
|
|
13027
13027
|
});
|
|
13028
13028
|
if (n)
|
|
13029
13029
|
return () => {
|
|
13030
13030
|
for (let o = 0; o < r.length; o++) {
|
|
13031
13031
|
const i = r[o];
|
|
13032
|
-
typeof i == "function" ? i() :
|
|
13032
|
+
typeof i == "function" ? i() : Nc(e[o], null);
|
|
13033
13033
|
}
|
|
13034
13034
|
};
|
|
13035
13035
|
};
|
|
@@ -13087,7 +13087,7 @@ function Fx(...e) {
|
|
|
13087
13087
|
}
|
|
13088
13088
|
var ln = globalThis?.document ? x.useLayoutEffect : () => {
|
|
13089
13089
|
}, Bx = x[" useInsertionEffect ".trim().toString()] || ln;
|
|
13090
|
-
function
|
|
13090
|
+
function Oi({
|
|
13091
13091
|
prop: e,
|
|
13092
13092
|
defaultProp: t,
|
|
13093
13093
|
onChange: n = () => {
|
|
@@ -13281,11 +13281,11 @@ var Yx = "DismissableLayer", ea = "dismissableLayer.update", Qx = "dismissableLa
|
|
|
13281
13281
|
onDismiss: a,
|
|
13282
13282
|
...l
|
|
13283
13283
|
} = e, c = x.useContext(Rf), [u, d] = x.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = x.useState({}), h = ze(t, (C) => d(C)), m = Array.from(c.layers), [b] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(b), S = u ? m.indexOf(u) : -1, k = c.layersWithOutsidePointerEventsDisabled.size > 0, y = S >= v, A = nw((C) => {
|
|
13284
|
-
const T = C.target, I = [...c.branches].some((
|
|
13284
|
+
const T = C.target, I = [...c.branches].some((N) => N.contains(T));
|
|
13285
13285
|
!y || I || (o?.(C), s?.(C), C.defaultPrevented || a?.());
|
|
13286
13286
|
}, f), w = rw((C) => {
|
|
13287
13287
|
const T = C.target;
|
|
13288
|
-
[...c.branches].some((
|
|
13288
|
+
[...c.branches].some((N) => N.contains(T)) || (i?.(C), s?.(C), C.defaultPrevented || a?.());
|
|
13289
13289
|
}, f);
|
|
13290
13290
|
return Jx((C) => {
|
|
13291
13291
|
S === c.layers.size - 1 && (r?.(C), !C.defaultPrevented && a && (C.preventDefault(), a()));
|
|
@@ -13337,7 +13337,7 @@ function nw(e, t = globalThis?.document) {
|
|
|
13337
13337
|
const i = (a) => {
|
|
13338
13338
|
if (a.target && !r.current) {
|
|
13339
13339
|
let l = function() {
|
|
13340
|
-
|
|
13340
|
+
Of(
|
|
13341
13341
|
Qx,
|
|
13342
13342
|
n,
|
|
13343
13343
|
c,
|
|
@@ -13364,7 +13364,7 @@ function rw(e, t = globalThis?.document) {
|
|
|
13364
13364
|
const n = Dt(e), r = x.useRef(!1);
|
|
13365
13365
|
return x.useEffect(() => {
|
|
13366
13366
|
const o = (i) => {
|
|
13367
|
-
i.target && !r.current &&
|
|
13367
|
+
i.target && !r.current && Of(Zx, n, { originalEvent: i }, {
|
|
13368
13368
|
discrete: !1
|
|
13369
13369
|
});
|
|
13370
13370
|
};
|
|
@@ -13378,12 +13378,12 @@ function Pc() {
|
|
|
13378
13378
|
const e = new CustomEvent(ea);
|
|
13379
13379
|
document.dispatchEvent(e);
|
|
13380
13380
|
}
|
|
13381
|
-
function
|
|
13381
|
+
function Of(e, t, n, { discrete: r }) {
|
|
13382
13382
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
13383
13383
|
t && o.addEventListener(e, t, { once: !0 }), r ? Af(o, i) : o.dispatchEvent(i);
|
|
13384
13384
|
}
|
|
13385
13385
|
var ls = 0;
|
|
13386
|
-
function
|
|
13386
|
+
function Nf() {
|
|
13387
13387
|
x.useEffect(() => {
|
|
13388
13388
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
13389
13389
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Lc()), document.body.insertAdjacentElement("beforeend", e[1] ?? Lc()), ls++, () => {
|
|
@@ -13558,12 +13558,12 @@ function Ua(e) {
|
|
|
13558
13558
|
function Ga(e) {
|
|
13559
13559
|
return e === "y" ? "height" : "width";
|
|
13560
13560
|
}
|
|
13561
|
-
function
|
|
13561
|
+
function Ot(e) {
|
|
13562
13562
|
const t = e[0];
|
|
13563
13563
|
return t === "t" || t === "b" ? "y" : "x";
|
|
13564
13564
|
}
|
|
13565
13565
|
function Xa(e) {
|
|
13566
|
-
return Ua(
|
|
13566
|
+
return Ua(Ot(e));
|
|
13567
13567
|
}
|
|
13568
13568
|
function mw(e, t, n) {
|
|
13569
13569
|
n === void 0 && (n = !1);
|
|
@@ -13640,7 +13640,7 @@ function Hc(e, t, n) {
|
|
|
13640
13640
|
reference: r,
|
|
13641
13641
|
floating: o
|
|
13642
13642
|
} = e;
|
|
13643
|
-
const i =
|
|
13643
|
+
const i = Ot(t), s = Xa(t), a = Ga(s), l = qt(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[a] / 2 - o[a] / 2;
|
|
13644
13644
|
let p;
|
|
13645
13645
|
switch (l) {
|
|
13646
13646
|
case "top":
|
|
@@ -13816,12 +13816,12 @@ const Cw = 50, Sw = async (e, t, n) => {
|
|
|
13816
13816
|
}, p = Xa(o), h = Ga(p), m = await s.getDimensions(c), b = p === "y", v = b ? "top" : "left", S = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", y = i.reference[h] + i.reference[p] - f[p] - i.floating[h], A = f[p] - i.reference[p], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
13817
13817
|
let C = w ? w[k] : 0;
|
|
13818
13818
|
(!C || !await (s.isElement == null ? void 0 : s.isElement(w))) && (C = a.floating[k] || i.floating[h]);
|
|
13819
|
-
const T = y / 2 - A / 2, I = C / 2 - m[h] / 2 - 1,
|
|
13819
|
+
const T = y / 2 - A / 2, I = C / 2 - m[h] / 2 - 1, N = cn(d[v], I), D = cn(d[S], I), L = N, F = C - m[h] - D, H = C / 2 - m[h] / 2 + T, O = ta(L, H, F), $ = !l.arrow && br(o) != null && H !== O && i.reference[h] / 2 - (H < L ? N : D) - m[h] / 2 < 0, V = $ ? H < L ? H - L : H - F : 0;
|
|
13820
13820
|
return {
|
|
13821
13821
|
[p]: f[p] + V,
|
|
13822
13822
|
data: {
|
|
13823
|
-
[p]:
|
|
13824
|
-
centerOffset: H -
|
|
13823
|
+
[p]: O,
|
|
13824
|
+
centerOffset: H - O - V,
|
|
13825
13825
|
...$ && {
|
|
13826
13826
|
alignmentOffset: V
|
|
13827
13827
|
}
|
|
@@ -13853,40 +13853,40 @@ const Cw = 50, Sw = async (e, t, n) => {
|
|
|
13853
13853
|
} = Kt(e, t);
|
|
13854
13854
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
13855
13855
|
return {};
|
|
13856
|
-
const v = qt(o), S =
|
|
13856
|
+
const v = qt(o), S = Ot(a), k = qt(a) === a, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), A = f || (k || !m ? [ui(a)] : gw(a)), w = h !== "none";
|
|
13857
13857
|
!f && w && A.push(...xw(a, m, h, y));
|
|
13858
13858
|
const C = [a, ...A], T = await l.detectOverflow(t, b), I = [];
|
|
13859
|
-
let
|
|
13859
|
+
let N = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
13860
13860
|
if (u && I.push(T[v]), d) {
|
|
13861
13861
|
const H = mw(o, s, y);
|
|
13862
13862
|
I.push(T[H[0]], T[H[1]]);
|
|
13863
13863
|
}
|
|
13864
|
-
if (
|
|
13864
|
+
if (N = [...N, {
|
|
13865
13865
|
placement: o,
|
|
13866
13866
|
overflows: I
|
|
13867
13867
|
}], !I.every((H) => H <= 0)) {
|
|
13868
13868
|
var D, L;
|
|
13869
|
-
const H = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1,
|
|
13870
|
-
if (
|
|
13869
|
+
const H = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, O = C[H];
|
|
13870
|
+
if (O && (!(d === "alignment" ? S !== Ot(O) : !1) || // We leave the current main axis only if every placement on that axis
|
|
13871
13871
|
// overflows the main axis.
|
|
13872
|
-
|
|
13872
|
+
N.every((_) => Ot(_.placement) === S ? _.overflows[0] > 0 : !0)))
|
|
13873
13873
|
return {
|
|
13874
13874
|
data: {
|
|
13875
13875
|
index: H,
|
|
13876
|
-
overflows:
|
|
13876
|
+
overflows: N
|
|
13877
13877
|
},
|
|
13878
13878
|
reset: {
|
|
13879
|
-
placement:
|
|
13879
|
+
placement: O
|
|
13880
13880
|
}
|
|
13881
13881
|
};
|
|
13882
|
-
let $ = (L =
|
|
13882
|
+
let $ = (L = N.filter((V) => V.overflows[0] <= 0).sort((V, _) => V.overflows[1] - _.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
13883
13883
|
if (!$)
|
|
13884
13884
|
switch (p) {
|
|
13885
13885
|
case "bestFit": {
|
|
13886
13886
|
var F;
|
|
13887
|
-
const V = (F =
|
|
13887
|
+
const V = (F = N.filter((_) => {
|
|
13888
13888
|
if (w) {
|
|
13889
|
-
const R =
|
|
13889
|
+
const R = Ot(_.placement);
|
|
13890
13890
|
return R === S || // Create a bias to the `y` side axis due to horizontal
|
|
13891
13891
|
// reading directions favoring greater width.
|
|
13892
13892
|
R === "y";
|
|
@@ -13970,7 +13970,7 @@ async function Ew(e, t) {
|
|
|
13970
13970
|
placement: n,
|
|
13971
13971
|
platform: r,
|
|
13972
13972
|
elements: o
|
|
13973
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = qt(n), a = br(n), l =
|
|
13973
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = qt(n), a = br(n), l = Ot(n) === "y", c = Lf.has(s) ? -1 : 1, u = i && l ? -1 : 1, d = Kt(t, e);
|
|
13974
13974
|
let {
|
|
13975
13975
|
mainAxis: f,
|
|
13976
13976
|
crossAxis: p,
|
|
@@ -14014,7 +14014,7 @@ const Rw = function(e) {
|
|
|
14014
14014
|
};
|
|
14015
14015
|
}
|
|
14016
14016
|
};
|
|
14017
|
-
},
|
|
14017
|
+
}, Ow = function(e) {
|
|
14018
14018
|
return e === void 0 && (e = {}), {
|
|
14019
14019
|
name: "shift",
|
|
14020
14020
|
options: e,
|
|
@@ -14043,7 +14043,7 @@ const Rw = function(e) {
|
|
|
14043
14043
|
} = Kt(e, t), u = {
|
|
14044
14044
|
x: n,
|
|
14045
14045
|
y: r
|
|
14046
|
-
}, d = await i.detectOverflow(t, c), f =
|
|
14046
|
+
}, d = await i.detectOverflow(t, c), f = Ot(qt(o)), p = Ua(f);
|
|
14047
14047
|
let h = u[p], m = u[f];
|
|
14048
14048
|
if (s) {
|
|
14049
14049
|
const v = p === "y" ? "top" : "left", S = p === "y" ? "bottom" : "right", k = h + d[v], y = h - d[S];
|
|
@@ -14071,7 +14071,7 @@ const Rw = function(e) {
|
|
|
14071
14071
|
};
|
|
14072
14072
|
}
|
|
14073
14073
|
};
|
|
14074
|
-
},
|
|
14074
|
+
}, Nw = function(e) {
|
|
14075
14075
|
return e === void 0 && (e = {}), {
|
|
14076
14076
|
options: e,
|
|
14077
14077
|
fn(t) {
|
|
@@ -14088,7 +14088,7 @@ const Rw = function(e) {
|
|
|
14088
14088
|
} = Kt(e, t), u = {
|
|
14089
14089
|
x: n,
|
|
14090
14090
|
y: r
|
|
14091
|
-
}, d =
|
|
14091
|
+
}, d = Ot(o), f = Ua(d);
|
|
14092
14092
|
let p = u[f], h = u[d];
|
|
14093
14093
|
const m = Kt(a, t), b = typeof m == "number" ? {
|
|
14094
14094
|
mainAxis: m,
|
|
@@ -14128,7 +14128,7 @@ const Rw = function(e) {
|
|
|
14128
14128
|
apply: l = () => {
|
|
14129
14129
|
},
|
|
14130
14130
|
...c
|
|
14131
|
-
} = Kt(e, t), u = await s.detectOverflow(t, c), d = qt(o), f = br(o), p =
|
|
14131
|
+
} = Kt(e, t), u = await s.detectOverflow(t, c), d = qt(o), f = br(o), p = Ot(o) === "y", {
|
|
14132
14132
|
width: h,
|
|
14133
14133
|
height: m
|
|
14134
14134
|
} = i.floating;
|
|
@@ -14137,8 +14137,8 @@ const Rw = function(e) {
|
|
|
14137
14137
|
const S = m - u.top - u.bottom, k = h - u.left - u.right, y = cn(m - u[b], S), A = cn(h - u[v], k), w = !t.middlewareData.shift;
|
|
14138
14138
|
let C = y, T = A;
|
|
14139
14139
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = k), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), w && !f) {
|
|
14140
|
-
const
|
|
14141
|
-
p ? T = h - 2 * (
|
|
14140
|
+
const N = et(u.left, 0), D = et(u.right, 0), L = et(u.top, 0), F = et(u.bottom, 0);
|
|
14141
|
+
p ? T = h - 2 * (N !== 0 || D !== 0 ? N + D : et(u.left, u.right)) : C = m - 2 * (L !== 0 || F !== 0 ? L + F : et(u.top, u.bottom));
|
|
14142
14142
|
}
|
|
14143
14143
|
await l({
|
|
14144
14144
|
...t,
|
|
@@ -14154,7 +14154,7 @@ const Rw = function(e) {
|
|
|
14154
14154
|
}
|
|
14155
14155
|
};
|
|
14156
14156
|
};
|
|
14157
|
-
function
|
|
14157
|
+
function Ni() {
|
|
14158
14158
|
return typeof window < "u";
|
|
14159
14159
|
}
|
|
14160
14160
|
function yr(e) {
|
|
@@ -14169,16 +14169,16 @@ function $t(e) {
|
|
|
14169
14169
|
return (t = (Df(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
14170
14170
|
}
|
|
14171
14171
|
function Df(e) {
|
|
14172
|
-
return
|
|
14172
|
+
return Ni() ? e instanceof Node || e instanceof it(e).Node : !1;
|
|
14173
14173
|
}
|
|
14174
14174
|
function xt(e) {
|
|
14175
|
-
return
|
|
14175
|
+
return Ni() ? e instanceof Element || e instanceof it(e).Element : !1;
|
|
14176
14176
|
}
|
|
14177
14177
|
function Xt(e) {
|
|
14178
|
-
return
|
|
14178
|
+
return Ni() ? e instanceof HTMLElement || e instanceof it(e).HTMLElement : !1;
|
|
14179
14179
|
}
|
|
14180
14180
|
function Vc(e) {
|
|
14181
|
-
return !
|
|
14181
|
+
return !Ni() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof it(e).ShadowRoot;
|
|
14182
14182
|
}
|
|
14183
14183
|
function ro(e) {
|
|
14184
14184
|
const {
|
|
@@ -14642,7 +14642,7 @@ function Qw(e, t, n, r) {
|
|
|
14642
14642
|
}), d?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(h);
|
|
14643
14643
|
};
|
|
14644
14644
|
}
|
|
14645
|
-
const Zw = Rw, ek =
|
|
14645
|
+
const Zw = Rw, ek = Ow, tk = Aw, nk = Iw, rk = Mw, Gc = Tw, ok = Nw, ik = (e, t, n) => {
|
|
14646
14646
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
14647
14647
|
platform: Jw,
|
|
14648
14648
|
...n
|
|
@@ -14727,7 +14727,7 @@ function lk(e) {
|
|
|
14727
14727
|
_ !== w.current && (w.current = _, m(_));
|
|
14728
14728
|
}, []), k = x.useCallback((_) => {
|
|
14729
14729
|
_ !== C.current && (C.current = _, v(_));
|
|
14730
|
-
}, []), y = i || h, A = s || b, w = x.useRef(null), C = x.useRef(null), T = x.useRef(u), I = l != null,
|
|
14730
|
+
}, []), y = i || h, A = s || b, w = x.useRef(null), C = x.useRef(null), T = x.useRef(u), I = l != null, N = ps(l), D = ps(o), L = ps(c), F = x.useCallback(() => {
|
|
14731
14731
|
if (!w.current || !C.current)
|
|
14732
14732
|
return;
|
|
14733
14733
|
const _ = {
|
|
@@ -14760,12 +14760,12 @@ function lk(e) {
|
|
|
14760
14760
|
H.current = !1;
|
|
14761
14761
|
}), []), Wo(() => {
|
|
14762
14762
|
if (y && (w.current = y), A && (C.current = A), y && A) {
|
|
14763
|
-
if (
|
|
14764
|
-
return
|
|
14763
|
+
if (N.current)
|
|
14764
|
+
return N.current(y, A, F);
|
|
14765
14765
|
F();
|
|
14766
14766
|
}
|
|
14767
|
-
}, [y, A, F,
|
|
14768
|
-
const
|
|
14767
|
+
}, [y, A, F, N, I]);
|
|
14768
|
+
const O = x.useMemo(() => ({
|
|
14769
14769
|
reference: w,
|
|
14770
14770
|
floating: C,
|
|
14771
14771
|
setReference: S,
|
|
@@ -14797,10 +14797,10 @@ function lk(e) {
|
|
|
14797
14797
|
return x.useMemo(() => ({
|
|
14798
14798
|
...u,
|
|
14799
14799
|
update: F,
|
|
14800
|
-
refs:
|
|
14800
|
+
refs: O,
|
|
14801
14801
|
elements: $,
|
|
14802
14802
|
floatingStyles: V
|
|
14803
|
-
}), [u, F,
|
|
14803
|
+
}), [u, F, O, $, V]);
|
|
14804
14804
|
}
|
|
14805
14805
|
const ck = (e) => {
|
|
14806
14806
|
function t(n) {
|
|
@@ -14940,12 +14940,12 @@ var el = "PopperContent", [wk, kk] = Kf(el), Jf = x.forwardRef(
|
|
|
14940
14940
|
updatePositionStrategy: p = "optimized",
|
|
14941
14941
|
onPlaced: h,
|
|
14942
14942
|
...m
|
|
14943
|
-
} = e, b = qf(el, n), [v, S] = x.useState(null), k = ze(t, (W) => S(W)), [y, A] = x.useState(null), w = vk(y), C = w?.width ?? 0, T = w?.height ?? 0, I = r + (i !== "center" ? "-" + i : ""),
|
|
14944
|
-
padding:
|
|
14943
|
+
} = e, b = qf(el, n), [v, S] = x.useState(null), k = ze(t, (W) => S(W)), [y, A] = x.useState(null), w = vk(y), C = w?.width ?? 0, T = w?.height ?? 0, I = r + (i !== "center" ? "-" + i : ""), N = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(c) ? c : [c], L = D.length > 0, F = {
|
|
14944
|
+
padding: N,
|
|
14945
14945
|
boundary: D.filter(Sk),
|
|
14946
14946
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
14947
14947
|
altBoundary: L
|
|
14948
|
-
}, { refs: H, floatingStyles:
|
|
14948
|
+
}, { refs: H, floatingStyles: O, placement: $, isPositioned: V, middlewareData: _ } = lk({
|
|
14949
14949
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
14950
14950
|
strategy: "fixed",
|
|
14951
14951
|
placement: I,
|
|
@@ -14988,8 +14988,8 @@ var el = "PopperContent", [wk, kk] = Kf(el), Jf = x.forwardRef(
|
|
|
14988
14988
|
ref: H.setFloating,
|
|
14989
14989
|
"data-radix-popper-content-wrapper": "",
|
|
14990
14990
|
style: {
|
|
14991
|
-
...
|
|
14992
|
-
transform: V ?
|
|
14991
|
+
...O,
|
|
14992
|
+
transform: V ? O.transform : "translate(0, -200%)",
|
|
14993
14993
|
// keep off the page when measuring
|
|
14994
14994
|
minWidth: "max-content",
|
|
14995
14995
|
zIndex: Z,
|
|
@@ -15134,19 +15134,19 @@ function Ek(e) {
|
|
|
15134
15134
|
}
|
|
15135
15135
|
});
|
|
15136
15136
|
return x.useEffect(() => {
|
|
15137
|
-
const c =
|
|
15137
|
+
const c = Oo(r.current);
|
|
15138
15138
|
i.current = a === "mounted" ? c : "none";
|
|
15139
15139
|
}, [a]), ln(() => {
|
|
15140
15140
|
const c = r.current, u = o.current;
|
|
15141
15141
|
if (u !== e) {
|
|
15142
|
-
const f = i.current, p =
|
|
15142
|
+
const f = i.current, p = Oo(c);
|
|
15143
15143
|
e ? l("MOUNT") : p === "none" || c?.display === "none" ? l("UNMOUNT") : l(u && f !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
15144
15144
|
}
|
|
15145
15145
|
}, [e, l]), ln(() => {
|
|
15146
15146
|
if (t) {
|
|
15147
15147
|
let c;
|
|
15148
15148
|
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
15149
|
-
const m =
|
|
15149
|
+
const m = Oo(r.current).includes(CSS.escape(p.animationName));
|
|
15150
15150
|
if (p.target === t && m && (l("ANIMATION_END"), !o.current)) {
|
|
15151
15151
|
const b = t.style.animationFillMode;
|
|
15152
15152
|
t.style.animationFillMode = "forwards", c = u.setTimeout(() => {
|
|
@@ -15154,7 +15154,7 @@ function Ek(e) {
|
|
|
15154
15154
|
});
|
|
15155
15155
|
}
|
|
15156
15156
|
}, f = (p) => {
|
|
15157
|
-
p.target === t && (i.current =
|
|
15157
|
+
p.target === t && (i.current = Oo(r.current));
|
|
15158
15158
|
};
|
|
15159
15159
|
return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
15160
15160
|
u.clearTimeout(c), t.removeEventListener("animationstart", f), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -15168,16 +15168,16 @@ function Ek(e) {
|
|
|
15168
15168
|
}, [])
|
|
15169
15169
|
};
|
|
15170
15170
|
}
|
|
15171
|
-
function
|
|
15171
|
+
function Oo(e) {
|
|
15172
15172
|
return e?.animationName || "none";
|
|
15173
15173
|
}
|
|
15174
15174
|
function Rk(e) {
|
|
15175
15175
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
15176
15176
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
15177
15177
|
}
|
|
15178
|
-
var hs = "rovingFocusGroup.onEntryFocus",
|
|
15178
|
+
var hs = "rovingFocusGroup.onEntryFocus", Ok = { bubbles: !1, cancelable: !0 }, oo = "RovingFocusGroup", [oa, np, Nk] = Mf(oo), [Ik, rp] = gr(
|
|
15179
15179
|
oo,
|
|
15180
|
-
[
|
|
15180
|
+
[Nk]
|
|
15181
15181
|
), [Pk, Lk] = Ik(oo), op = x.forwardRef(
|
|
15182
15182
|
(e, t) => /* @__PURE__ */ g(oa.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(oa.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(Dk, { ...e, ref: t }) }) })
|
|
15183
15183
|
);
|
|
@@ -15194,7 +15194,7 @@ var Dk = x.forwardRef((e, t) => {
|
|
|
15194
15194
|
onEntryFocus: c,
|
|
15195
15195
|
preventScrollOnEntryFocus: u = !1,
|
|
15196
15196
|
...d
|
|
15197
|
-
} = e, f = x.useRef(null), p = ze(t, f), h = Ef(i), [m, b] =
|
|
15197
|
+
} = e, f = x.useRef(null), p = ze(t, f), h = Ef(i), [m, b] = Oi({
|
|
15198
15198
|
prop: s,
|
|
15199
15199
|
defaultProp: a ?? null,
|
|
15200
15200
|
onChange: l,
|
|
@@ -15239,12 +15239,12 @@ var Dk = x.forwardRef((e, t) => {
|
|
|
15239
15239
|
onFocus: ie(e.onFocus, (T) => {
|
|
15240
15240
|
const I = !A.current;
|
|
15241
15241
|
if (T.target === T.currentTarget && I && !v) {
|
|
15242
|
-
const
|
|
15243
|
-
if (T.currentTarget.dispatchEvent(
|
|
15244
|
-
const D = y().filter(($) => $.focusable), L = D.find(($) => $.active), F = D.find(($) => $.id === m),
|
|
15242
|
+
const N = new CustomEvent(hs, Ok);
|
|
15243
|
+
if (T.currentTarget.dispatchEvent(N), !N.defaultPrevented) {
|
|
15244
|
+
const D = y().filter(($) => $.focusable), L = D.find(($) => $.active), F = D.find(($) => $.id === m), O = [L, F, ...D].filter(
|
|
15245
15245
|
Boolean
|
|
15246
15246
|
).map(($) => $.ref.current);
|
|
15247
|
-
ap(
|
|
15247
|
+
ap(O, u);
|
|
15248
15248
|
}
|
|
15249
15249
|
}
|
|
15250
15250
|
A.current = !1;
|
|
@@ -15344,7 +15344,7 @@ var Bk = op, Hk = sp, Wk = function(e) {
|
|
|
15344
15344
|
return null;
|
|
15345
15345
|
var t = Array.isArray(e) ? e[0] : e;
|
|
15346
15346
|
return t.ownerDocument.body;
|
|
15347
|
-
}, qn = /* @__PURE__ */ new WeakMap(),
|
|
15347
|
+
}, qn = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Io = {}, ms = 0, lp = function(e) {
|
|
15348
15348
|
return e && (e.host || lp(e.parentNode));
|
|
15349
15349
|
}, jk = function(e, t) {
|
|
15350
15350
|
return t.map(function(n) {
|
|
@@ -15369,7 +15369,7 @@ var Bk = op, Hk = sp, Wk = function(e) {
|
|
|
15369
15369
|
else
|
|
15370
15370
|
try {
|
|
15371
15371
|
var p = f.getAttribute(r), h = p !== null && p !== "false", m = (qn.get(f) || 0) + 1, b = (i.get(f) || 0) + 1;
|
|
15372
|
-
qn.set(f, m), i.set(f, b), s.push(f), m === 1 && h &&
|
|
15372
|
+
qn.set(f, m), i.set(f, b), s.push(f), m === 1 && h && No.set(f, !0), b === 1 && f.setAttribute(n, "true"), h || f.setAttribute(r, "true");
|
|
15373
15373
|
} catch (v) {
|
|
15374
15374
|
console.error("aria-hidden: cannot operate on ", f, v);
|
|
15375
15375
|
}
|
|
@@ -15378,8 +15378,8 @@ var Bk = op, Hk = sp, Wk = function(e) {
|
|
|
15378
15378
|
return u(t), a.clear(), ms++, function() {
|
|
15379
15379
|
s.forEach(function(d) {
|
|
15380
15380
|
var f = qn.get(d) - 1, p = i.get(d) - 1;
|
|
15381
|
-
qn.set(d, f), i.set(d, p), f || (
|
|
15382
|
-
}), ms--, ms || (qn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(),
|
|
15381
|
+
qn.set(d, f), i.set(d, p), f || (No.has(d) || d.removeAttribute(r), No.delete(d)), p || d.removeAttribute(n);
|
|
15382
|
+
}), ms--, ms || (qn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Io = {});
|
|
15383
15383
|
};
|
|
15384
15384
|
}, cp = function(e, t, n) {
|
|
15385
15385
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -15790,8 +15790,8 @@ function SC(e) {
|
|
|
15790
15790
|
var v = Lo(m), S = n.current, k = "deltaX" in m ? m.deltaX : S[0] - v[0], y = "deltaY" in m ? m.deltaY : S[1] - v[1], A, w = m.target, C = Math.abs(k) > Math.abs(y) ? "h" : "v";
|
|
15791
15791
|
if ("touches" in m && C === "h" && w.type === "range")
|
|
15792
15792
|
return !1;
|
|
15793
|
-
var T = window.getSelection(), I = T && T.anchorNode,
|
|
15794
|
-
if (
|
|
15793
|
+
var T = window.getSelection(), I = T && T.anchorNode, N = I ? I === w || I.contains(w) : !1;
|
|
15794
|
+
if (N)
|
|
15795
15795
|
return !1;
|
|
15796
15796
|
var D = Qc(C, w);
|
|
15797
15797
|
if (!D)
|
|
@@ -15865,10 +15865,10 @@ ol.classNames = zi.classNames;
|
|
|
15865
15865
|
var sa = ["Enter", " "], MC = ["ArrowDown", "PageUp", "Home"], bp = ["ArrowUp", "PageDown", "End"], EC = [...MC, ...bp], RC = {
|
|
15866
15866
|
ltr: [...sa, "ArrowRight"],
|
|
15867
15867
|
rtl: [...sa, "ArrowLeft"]
|
|
15868
|
-
},
|
|
15868
|
+
}, OC = {
|
|
15869
15869
|
ltr: ["ArrowLeft"],
|
|
15870
15870
|
rtl: ["ArrowRight"]
|
|
15871
|
-
}, io = "Menu", [Vr,
|
|
15871
|
+
}, io = "Menu", [Vr, NC, IC] = Mf(io), [Wn, yp] = gr(io, [
|
|
15872
15872
|
IC,
|
|
15873
15873
|
Di,
|
|
15874
15874
|
rp
|
|
@@ -15976,19 +15976,19 @@ var dt = "MenuContent", [zC, al] = Wn(dt), Sp = x.forwardRef(
|
|
|
15976
15976
|
onDismiss: p,
|
|
15977
15977
|
disableOutsideScroll: h,
|
|
15978
15978
|
...m
|
|
15979
|
-
} = e, b = pn(dt, n), v = ao(dt, n), S = so(n), k = vp(n), y =
|
|
15980
|
-
const z =
|
|
15979
|
+
} = e, b = pn(dt, n), v = ao(dt, n), S = so(n), k = vp(n), y = NC(n), [A, w] = x.useState(null), C = x.useRef(null), T = ze(t, C, b.onContentChange), I = x.useRef(0), N = x.useRef(""), D = x.useRef(0), L = x.useRef(null), F = x.useRef("right"), H = x.useRef(0), O = h ? ol : x.Fragment, $ = h ? { as: FC, allowPinchZoom: !0 } : void 0, V = (R) => {
|
|
15980
|
+
const z = N.current + R, j = y().filter((W) => !W.disabled), te = document.activeElement, re = j.find((W) => W.ref.current === te)?.textValue, se = j.map((W) => W.textValue), Z = YC(se, z, re), q = j.find((W) => W.textValue === Z)?.ref.current;
|
|
15981
15981
|
(function W(G) {
|
|
15982
|
-
|
|
15982
|
+
N.current = G, window.clearTimeout(I.current), G !== "" && (I.current = window.setTimeout(() => W(""), 1e3));
|
|
15983
15983
|
})(z), q && setTimeout(() => q.focus());
|
|
15984
15984
|
};
|
|
15985
|
-
x.useEffect(() => () => window.clearTimeout(I.current), []),
|
|
15985
|
+
x.useEffect(() => () => window.clearTimeout(I.current), []), Nf();
|
|
15986
15986
|
const _ = x.useCallback((R) => F.current === L.current?.side && ZC(R, L.current?.area), []);
|
|
15987
15987
|
return /* @__PURE__ */ g(
|
|
15988
15988
|
zC,
|
|
15989
15989
|
{
|
|
15990
15990
|
scope: n,
|
|
15991
|
-
searchRef:
|
|
15991
|
+
searchRef: N,
|
|
15992
15992
|
onItemEnter: x.useCallback(
|
|
15993
15993
|
(R) => {
|
|
15994
15994
|
_(R) && R.preventDefault();
|
|
@@ -16011,7 +16011,7 @@ var dt = "MenuContent", [zC, al] = Wn(dt), Sp = x.forwardRef(
|
|
|
16011
16011
|
onPointerGraceIntentChange: x.useCallback((R) => {
|
|
16012
16012
|
L.current = R;
|
|
16013
16013
|
}, []),
|
|
16014
|
-
children: /* @__PURE__ */ g(
|
|
16014
|
+
children: /* @__PURE__ */ g(O, { ...$, children: /* @__PURE__ */ g(
|
|
16015
16015
|
qa,
|
|
16016
16016
|
{
|
|
16017
16017
|
asChild: !0,
|
|
@@ -16066,7 +16066,7 @@ var dt = "MenuContent", [zC, al] = Wn(dt), Sp = x.forwardRef(
|
|
|
16066
16066
|
bp.includes(R.key) && q.reverse(), XC(q);
|
|
16067
16067
|
}),
|
|
16068
16068
|
onBlur: ie(e.onBlur, (R) => {
|
|
16069
|
-
R.currentTarget.contains(R.target) || (window.clearTimeout(I.current),
|
|
16069
|
+
R.currentTarget.contains(R.target) || (window.clearTimeout(I.current), N.current = "");
|
|
16070
16070
|
}),
|
|
16071
16071
|
onPointerMove: ie(
|
|
16072
16072
|
e.onPointerMove,
|
|
@@ -16206,9 +16206,9 @@ var Ep = "MenuRadioGroup", [jC, VC] = Wn(
|
|
|
16206
16206
|
}
|
|
16207
16207
|
);
|
|
16208
16208
|
Rp.displayName = Ep;
|
|
16209
|
-
var
|
|
16209
|
+
var Op = "MenuRadioItem", Np = x.forwardRef(
|
|
16210
16210
|
(e, t) => {
|
|
16211
|
-
const { value: n, ...r } = e, o = VC(
|
|
16211
|
+
const { value: n, ...r } = e, o = VC(Op, e.__scopeMenu), i = n === o.value;
|
|
16212
16212
|
return /* @__PURE__ */ g(Ip, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ g(
|
|
16213
16213
|
_i,
|
|
16214
16214
|
{
|
|
@@ -16226,7 +16226,7 @@ var Np = "MenuRadioItem", Op = x.forwardRef(
|
|
|
16226
16226
|
) });
|
|
16227
16227
|
}
|
|
16228
16228
|
);
|
|
16229
|
-
|
|
16229
|
+
Np.displayName = Op;
|
|
16230
16230
|
var ul = "MenuItemIndicator", [Ip, KC] = Wn(
|
|
16231
16231
|
ul,
|
|
16232
16232
|
{ checked: !1 }
|
|
@@ -16391,7 +16391,7 @@ var Fp = "MenuSubContent", Bp = x.forwardRef(
|
|
|
16391
16391
|
s.onClose(), u.preventDefault();
|
|
16392
16392
|
}),
|
|
16393
16393
|
onKeyDown: ie(e.onKeyDown, (u) => {
|
|
16394
|
-
const d = u.currentTarget.contains(u.target), f =
|
|
16394
|
+
const d = u.currentTarget.contains(u.target), f = OC[s.dir].includes(u.key);
|
|
16395
16395
|
d && f && (i.onOpenChange(!1), a.trigger?.focus(), u.preventDefault());
|
|
16396
16396
|
})
|
|
16397
16397
|
}
|
|
@@ -16442,7 +16442,7 @@ function ZC(e, t) {
|
|
|
16442
16442
|
function Kr(e) {
|
|
16443
16443
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
16444
16444
|
}
|
|
16445
|
-
var e1 = wp, t1 = il, n1 = Cp, r1 = Sp, o1 = cl, i1 = Tp, s1 = _i, a1 = Mp, l1 = Rp, c1 =
|
|
16445
|
+
var e1 = wp, t1 = il, n1 = Cp, r1 = Sp, o1 = cl, i1 = Tp, s1 = _i, a1 = Mp, l1 = Rp, c1 = Np, u1 = Pp, d1 = Lp, f1 = Dp, p1 = _p, h1 = $p, m1 = Bp, $i = "DropdownMenu", [g1] = gr(
|
|
16446
16446
|
$i,
|
|
16447
16447
|
[yp]
|
|
16448
16448
|
), $e = yp(), [b1, Wp] = g1($i), jp = (e) => {
|
|
@@ -16454,7 +16454,7 @@ var e1 = wp, t1 = il, n1 = Cp, r1 = Sp, o1 = cl, i1 = Tp, s1 = _i, a1 = Mp, l1 =
|
|
|
16454
16454
|
defaultOpen: i,
|
|
16455
16455
|
onOpenChange: s,
|
|
16456
16456
|
modal: a = !0
|
|
16457
|
-
} = e, l = $e(t), c = x.useRef(null), [u, d] =
|
|
16457
|
+
} = e, l = $e(t), c = x.useRef(null), [u, d] = Oi({
|
|
16458
16458
|
prop: o,
|
|
16459
16459
|
defaultProp: i ?? !1,
|
|
16460
16460
|
onChange: s,
|
|
@@ -16585,15 +16585,15 @@ var E1 = "DropdownMenuSeparator", eh = x.forwardRef((e, t) => {
|
|
|
16585
16585
|
return /* @__PURE__ */ g(d1, { ...o, ...r, ref: t });
|
|
16586
16586
|
});
|
|
16587
16587
|
eh.displayName = E1;
|
|
16588
|
-
var R1 = "DropdownMenuArrow",
|
|
16588
|
+
var R1 = "DropdownMenuArrow", O1 = x.forwardRef(
|
|
16589
16589
|
(e, t) => {
|
|
16590
16590
|
const { __scopeDropdownMenu: n, ...r } = e, o = $e(n);
|
|
16591
16591
|
return /* @__PURE__ */ g(f1, { ...o, ...r, ref: t });
|
|
16592
16592
|
}
|
|
16593
16593
|
);
|
|
16594
|
-
|
|
16595
|
-
var
|
|
16596
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: i } = e, s = $e(t), [a, l] =
|
|
16594
|
+
O1.displayName = R1;
|
|
16595
|
+
var N1 = (e) => {
|
|
16596
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: i } = e, s = $e(t), [a, l] = Oi({
|
|
16597
16597
|
prop: r,
|
|
16598
16598
|
defaultProp: i ?? !1,
|
|
16599
16599
|
onChange: o,
|
|
@@ -16625,7 +16625,7 @@ var P1 = "DropdownMenuSubContent", nh = x.forwardRef((e, t) => {
|
|
|
16625
16625
|
);
|
|
16626
16626
|
});
|
|
16627
16627
|
nh.displayName = P1;
|
|
16628
|
-
var L1 = jp, D1 = Kp, rh = qp, oh = Gp, ih = Xp, sh = Jp, ah = Yp, lh = Qp, ch = Zp, uh = eh, z1 =
|
|
16628
|
+
var L1 = jp, D1 = Kp, rh = qp, oh = Gp, ih = Xp, sh = Jp, ah = Yp, lh = Qp, ch = Zp, uh = eh, z1 = N1, dh = th, fh = nh;
|
|
16629
16629
|
const ph = L1, hh = D1, nu = ({ children: e, ...t }) => {
|
|
16630
16630
|
const n = no();
|
|
16631
16631
|
return /* @__PURE__ */ g(
|
|
@@ -16797,7 +16797,7 @@ const F1 = x.forwardRef(({ className: e, inset: t, ...n }, r) => {
|
|
|
16797
16797
|
);
|
|
16798
16798
|
});
|
|
16799
16799
|
F1.displayName = ih.displayName;
|
|
16800
|
-
const
|
|
16800
|
+
const Or = x.forwardRef(({ className: e, ...t }, n) => {
|
|
16801
16801
|
const r = Ke(), o = qe();
|
|
16802
16802
|
return /* @__PURE__ */ g(
|
|
16803
16803
|
uh,
|
|
@@ -16813,7 +16813,7 @@ const Nr = x.forwardRef(({ className: e, ...t }, n) => {
|
|
|
16813
16813
|
}
|
|
16814
16814
|
);
|
|
16815
16815
|
});
|
|
16816
|
-
|
|
16816
|
+
Or.displayName = uh.displayName;
|
|
16817
16817
|
const mh = ({
|
|
16818
16818
|
className: e,
|
|
16819
16819
|
...t
|
|
@@ -16891,7 +16891,7 @@ var Fi = "Popover", [gh] = gr(Fi, [
|
|
|
16891
16891
|
defaultOpen: o,
|
|
16892
16892
|
onOpenChange: i,
|
|
16893
16893
|
modal: s = !1
|
|
16894
|
-
} = e, a = lo(t), l = x.useRef(null), [c, u] = x.useState(!1), [d, f] =
|
|
16894
|
+
} = e, a = lo(t), l = x.useRef(null), [c, u] = x.useState(!1), [d, f] = Oi({
|
|
16895
16895
|
prop: r,
|
|
16896
16896
|
defaultProp: o ?? !1,
|
|
16897
16897
|
onChange: i,
|
|
@@ -17022,7 +17022,7 @@ var V1 = /* @__PURE__ */ Wr("PopoverContent.RemoveScroll"), K1 = x.forwardRef(
|
|
|
17022
17022
|
onInteractOutside: u,
|
|
17023
17023
|
...d
|
|
17024
17024
|
} = e, f = hn(cr, n), p = lo(n);
|
|
17025
|
-
return
|
|
17025
|
+
return Nf(), /* @__PURE__ */ g(
|
|
17026
17026
|
qa,
|
|
17027
17027
|
{
|
|
17028
17028
|
asChild: !0,
|
|
@@ -17146,7 +17146,7 @@ const Ko = ({
|
|
|
17146
17146
|
onReset: s,
|
|
17147
17147
|
onClose: a
|
|
17148
17148
|
}) => {
|
|
17149
|
-
const l = to(), u = Ke() === "dark", d = An(null), [f, p] = ae(e.label), [h, m] = ae(e.fontSize ?? ""), [b, v] = ae(e.fontWeight ?? ""), [S, k] = ae(e.fontStyle ?? "normal"), [y, A] = ae(e.fontFamily ?? ""), [w, C] = ae(e.color ?? ""), [T, I] = ae(e.letterSpacing ?? ""), [
|
|
17149
|
+
const l = to(), u = Ke() === "dark", d = An(null), [f, p] = ae(e.label), [h, m] = ae(e.fontSize ?? ""), [b, v] = ae(e.fontWeight ?? ""), [S, k] = ae(e.fontStyle ?? "normal"), [y, A] = ae(e.fontFamily ?? ""), [w, C] = ae(e.color ?? ""), [T, I] = ae(e.letterSpacing ?? ""), [N, D] = ae(e.lineHeight ?? ""), [L, F] = ae(
|
|
17150
17150
|
e.textTransform ?? "none"
|
|
17151
17151
|
);
|
|
17152
17152
|
Xe(() => {
|
|
@@ -17159,13 +17159,13 @@ const Ko = ({
|
|
|
17159
17159
|
document.removeEventListener("mousedown", j), document.removeEventListener("keydown", te);
|
|
17160
17160
|
};
|
|
17161
17161
|
}, [a]);
|
|
17162
|
-
const [H,
|
|
17162
|
+
const [H, O] = ae({ x: n, y: r });
|
|
17163
17163
|
Xe(() => {
|
|
17164
17164
|
const j = d.current;
|
|
17165
17165
|
if (!j) return;
|
|
17166
17166
|
const te = j.getBoundingClientRect(), re = window.innerWidth, se = window.innerHeight;
|
|
17167
17167
|
let Z = n, q = r;
|
|
17168
|
-
Z + te.width > re - 12 && (Z = re - te.width - 12), q + te.height > se - 12 && (q = se - te.height - 12), Z < 12 && (Z = 12), q < 12 && (q = 12),
|
|
17168
|
+
Z + te.width > re - 12 && (Z = re - te.width - 12), q + te.height > se - 12 && (q = se - te.height - 12), Z < 12 && (Z = 12), q < 12 && (q = 12), O({ x: Z, y: q });
|
|
17169
17169
|
}, [n, r]);
|
|
17170
17170
|
const $ = () => {
|
|
17171
17171
|
const j = {
|
|
@@ -17176,7 +17176,7 @@ const Ko = ({
|
|
|
17176
17176
|
...y ? { fontFamily: y } : {},
|
|
17177
17177
|
...w ? { color: w } : {},
|
|
17178
17178
|
...T ? { letterSpacing: T } : {},
|
|
17179
|
-
...
|
|
17179
|
+
...N ? { lineHeight: N } : {},
|
|
17180
17180
|
...L && L !== "none" ? { textTransform: L } : {}
|
|
17181
17181
|
};
|
|
17182
17182
|
i(e.id, j), a();
|
|
@@ -17195,7 +17195,7 @@ const Ko = ({
|
|
|
17195
17195
|
fontStyle: S,
|
|
17196
17196
|
color: w || "inherit",
|
|
17197
17197
|
letterSpacing: T || "inherit",
|
|
17198
|
-
lineHeight:
|
|
17198
|
+
lineHeight: N || "1.4",
|
|
17199
17199
|
textTransform: L ?? "none"
|
|
17200
17200
|
};
|
|
17201
17201
|
return /* @__PURE__ */ B(
|
|
@@ -17371,7 +17371,7 @@ const Ko = ({
|
|
|
17371
17371
|
"input",
|
|
17372
17372
|
{
|
|
17373
17373
|
type: "text",
|
|
17374
|
-
value:
|
|
17374
|
+
value: N,
|
|
17375
17375
|
onChange: (j) => D(j.target.value),
|
|
17376
17376
|
placeholder: "1.6",
|
|
17377
17377
|
className: E(_, o?.styleEditInput)
|
|
@@ -17435,7 +17435,7 @@ const Ko = ({
|
|
|
17435
17435
|
const u = r === "dark", [d, f] = ae(null), p = no(), h = (m, b) => {
|
|
17436
17436
|
m.preventDefault(), m.stopPropagation(), f({ style: b, x: m.clientX, y: m.clientY });
|
|
17437
17437
|
};
|
|
17438
|
-
return /* @__PURE__ */ B(
|
|
17438
|
+
return /* @__PURE__ */ B(On, { children: [
|
|
17439
17439
|
/* @__PURE__ */ g(
|
|
17440
17440
|
"div",
|
|
17441
17441
|
{
|
|
@@ -17760,7 +17760,7 @@ const sS = (e) => [
|
|
|
17760
17760
|
effectiveStyles: p,
|
|
17761
17761
|
saveOverride: h,
|
|
17762
17762
|
resetOverride: m
|
|
17763
|
-
} = iS(f), [b, v] = ae(!1), [S, k] = ae(""), [y, A] = ae(!1), [w, C] = ae(""), [T, I] = ae(""), [
|
|
17763
|
+
} = iS(f), [b, v] = ae(!1), [S, k] = ae(""), [y, A] = ae(!1), [w, C] = ae(""), [T, I] = ae(""), [N, D] = ae(""), [L, F] = ae(!1), [, H] = ae(0), O = sS(u), $ = aS(u);
|
|
17764
17764
|
if (Xe(() => {
|
|
17765
17765
|
if (!e) return;
|
|
17766
17766
|
const P = e.view.dom, ee = (M) => {
|
|
@@ -17849,19 +17849,23 @@ const sS = (e) => [
|
|
|
17849
17849
|
{ label: "Arial", value: "Arial, Helvetica, sans-serif" },
|
|
17850
17850
|
{ label: "Verdana", value: "Verdana, Geneva, sans-serif" },
|
|
17851
17851
|
{ label: "Impact", value: "Impact, fantasy" }
|
|
17852
|
-
], xe =
|
|
17853
|
-
(P) => P.label.toLowerCase().includes(
|
|
17852
|
+
], xe = N.trim() ? ve.filter(
|
|
17853
|
+
(P) => P.label.toLowerCase().includes(N.toLowerCase())
|
|
17854
17854
|
) : ve, Me = e.getAttributes("textStyle").fontFamily ?? "", lt = ve.find((P) => P.value === Me)?.label ?? (Me ? Me.split(",")[0].trim() : ""), Qe = async (P) => {
|
|
17855
17855
|
const ee = P.target.files?.[0];
|
|
17856
|
-
if (!
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
ee.type.startsWith("video/") ? e.chain().focus().setNode("video", { src: M }).run() : e.chain().focus().setAdvancedImage({ src: M }).run();
|
|
17860
|
-
} catch (M) {
|
|
17861
|
-
console.error("Upload failed:", M);
|
|
17862
|
-
}
|
|
17856
|
+
if (!ee || !t) return;
|
|
17857
|
+
const M = ee.type.startsWith("video/"), K = ee.type.startsWith("image/");
|
|
17858
|
+
if (M && n || K && r || !M && !K) {
|
|
17863
17859
|
l.current && (l.current.value = "");
|
|
17860
|
+
return;
|
|
17861
|
+
}
|
|
17862
|
+
try {
|
|
17863
|
+
const { url: Q } = await t(ee);
|
|
17864
|
+
M ? e.chain().focus().setVideo({ src: Q }).run() : e.chain().focus().setAdvancedImage({ src: Q }).run();
|
|
17865
|
+
} catch (Q) {
|
|
17866
|
+
console.error("Upload failed:", Q);
|
|
17864
17867
|
}
|
|
17868
|
+
l.current && (l.current.value = "");
|
|
17865
17869
|
}, Ue = () => {
|
|
17866
17870
|
s?.(c === "dark" ? "light" : "dark");
|
|
17867
17871
|
}, be = ({
|
|
@@ -17908,7 +17912,7 @@ const sS = (e) => [
|
|
|
17908
17912
|
o?.toolbarSeparator
|
|
17909
17913
|
)
|
|
17910
17914
|
}
|
|
17911
|
-
), Le = _(), Te = Le ?
|
|
17915
|
+
), Le = _(), Te = Le ? O.find((P) => P.value === Le)?.label ?? u.heading : u.heading, Fe = R(), Ft = Fe ? $.find((P) => P.value === Fe)?.label ?? u.list : u.list, Jt = (P, ee, M) => /* @__PURE__ */ B(
|
|
17912
17916
|
"button",
|
|
17913
17917
|
{
|
|
17914
17918
|
type: "button",
|
|
@@ -18017,7 +18021,7 @@ const sS = (e) => [
|
|
|
18017
18021
|
{
|
|
18018
18022
|
type: "text",
|
|
18019
18023
|
placeholder: "Search fonts...",
|
|
18020
|
-
value:
|
|
18024
|
+
value: N,
|
|
18021
18025
|
onChange: (P) => D(P.target.value),
|
|
18022
18026
|
autoFocus: !0,
|
|
18023
18027
|
className: E(
|
|
@@ -18131,7 +18135,7 @@ const sS = (e) => [
|
|
|
18131
18135
|
/* @__PURE__ */ g(Go, { size: 14 }),
|
|
18132
18136
|
!!Le
|
|
18133
18137
|
),
|
|
18134
|
-
items:
|
|
18138
|
+
items: O,
|
|
18135
18139
|
value: _() ?? void 0,
|
|
18136
18140
|
onSelect: z
|
|
18137
18141
|
}
|
|
@@ -18300,7 +18304,7 @@ const sS = (e) => [
|
|
|
18300
18304
|
isActive: e.isActive("code"),
|
|
18301
18305
|
onClick: () => G().toggleCode().run(),
|
|
18302
18306
|
tooltip: u.inlineCode,
|
|
18303
|
-
children: /* @__PURE__ */ g(
|
|
18307
|
+
children: /* @__PURE__ */ g(Ou, { size: 16 })
|
|
18304
18308
|
}
|
|
18305
18309
|
),
|
|
18306
18310
|
/* @__PURE__ */ g(
|
|
@@ -18466,7 +18470,7 @@ const sS = (e) => [
|
|
|
18466
18470
|
"flex items-center justify-center",
|
|
18467
18471
|
o?.toolbarButtonIcon
|
|
18468
18472
|
),
|
|
18469
|
-
children: /* @__PURE__ */ g(
|
|
18473
|
+
children: /* @__PURE__ */ g(Nu, { size: 16 })
|
|
18470
18474
|
}
|
|
18471
18475
|
)
|
|
18472
18476
|
}
|
|
@@ -18631,7 +18635,7 @@ const sS = (e) => [
|
|
|
18631
18635
|
]
|
|
18632
18636
|
}
|
|
18633
18637
|
),
|
|
18634
|
-
(!r || !n) && t && /* @__PURE__ */ B(
|
|
18638
|
+
(!r || !n) && t && /* @__PURE__ */ B(On, { children: [
|
|
18635
18639
|
/* @__PURE__ */ g(Re, {}),
|
|
18636
18640
|
/* @__PURE__ */ B(
|
|
18637
18641
|
"div",
|
|
@@ -18785,17 +18789,17 @@ function mS({
|
|
|
18785
18789
|
}) {
|
|
18786
18790
|
let S;
|
|
18787
18791
|
const k = p?.(), y = r && !o, A = () => {
|
|
18788
|
-
const
|
|
18792
|
+
const N = t.state.selection.$anchor.pos, D = t.view.coordsAtPos(N), { top: L, right: F, bottom: H, left: O } = D;
|
|
18789
18793
|
try {
|
|
18790
|
-
return new DOMRect(
|
|
18794
|
+
return new DOMRect(O, L, F - O, H - L);
|
|
18791
18795
|
} catch {
|
|
18792
18796
|
return null;
|
|
18793
18797
|
}
|
|
18794
|
-
}, w = (
|
|
18795
|
-
const L = e.getState(t.state), F = L?.decorationId, H =
|
|
18798
|
+
}, w = (N, D) => D ? () => {
|
|
18799
|
+
const L = e.getState(t.state), F = L?.decorationId, H = N.dom.querySelector(`[data-decoration-id="${F}"]`);
|
|
18796
18800
|
return H?.getBoundingClientRect() || null;
|
|
18797
18801
|
} : A, C = ({
|
|
18798
|
-
match:
|
|
18802
|
+
match: N,
|
|
18799
18803
|
dismissedRange: D,
|
|
18800
18804
|
state: L,
|
|
18801
18805
|
transaction: F
|
|
@@ -18803,14 +18807,14 @@ function mS({
|
|
|
18803
18807
|
editor: t,
|
|
18804
18808
|
state: L,
|
|
18805
18809
|
range: D,
|
|
18806
|
-
match:
|
|
18810
|
+
match: N,
|
|
18807
18811
|
transaction: F,
|
|
18808
18812
|
allowSpaces: y
|
|
18809
|
-
}) ? !1 : y ?
|
|
18810
|
-
function T(
|
|
18813
|
+
}) ? !1 : y ? N.range.from === D.from : N.range.from === D.from && !pS(F);
|
|
18814
|
+
function T(N, D) {
|
|
18811
18815
|
var L;
|
|
18812
18816
|
try {
|
|
18813
|
-
const H = e.getState(
|
|
18817
|
+
const H = e.getState(N.state), O = H?.decorationId ? N.dom.querySelector(`[data-decoration-id="${H.decorationId}"]`) : null, $ = {
|
|
18814
18818
|
// @ts-ignore editor is available in closure
|
|
18815
18819
|
editor: t,
|
|
18816
18820
|
range: H?.range || { from: 0, to: 0 },
|
|
@@ -18818,25 +18822,25 @@ function mS({
|
|
|
18818
18822
|
text: H?.text || null,
|
|
18819
18823
|
items: [],
|
|
18820
18824
|
command: (V) => d({ editor: t, range: H?.range || { from: 0, to: 0 }, props: V }),
|
|
18821
|
-
decorationNode:
|
|
18822
|
-
clientRect: w(
|
|
18825
|
+
decorationNode: O,
|
|
18826
|
+
clientRect: w(N, O)
|
|
18823
18827
|
};
|
|
18824
18828
|
(L = k?.onExit) == null || L.call(k, $);
|
|
18825
18829
|
} catch {
|
|
18826
18830
|
}
|
|
18827
|
-
const F =
|
|
18828
|
-
|
|
18831
|
+
const F = N.state.tr.setMeta(D, { exit: !0 });
|
|
18832
|
+
N.dispatch(F);
|
|
18829
18833
|
}
|
|
18830
18834
|
const I = new Pa({
|
|
18831
18835
|
key: e,
|
|
18832
18836
|
view() {
|
|
18833
18837
|
return {
|
|
18834
|
-
update: async (
|
|
18835
|
-
var L, F, H,
|
|
18836
|
-
const R = (L = this.key) == null ? void 0 : L.getState(D), z = (F = this.key) == null ? void 0 : F.getState(
|
|
18838
|
+
update: async (N, D) => {
|
|
18839
|
+
var L, F, H, O, $, V, _;
|
|
18840
|
+
const R = (L = this.key) == null ? void 0 : L.getState(D), z = (F = this.key) == null ? void 0 : F.getState(N.state), j = R.active && z.active && R.range.from !== z.range.from, te = !R.active && z.active, re = R.active && !z.active, se = !te && !re && R.query !== z.query, Z = te || j && se, q = se || j, W = re || j && se;
|
|
18837
18841
|
if (!Z && !q && !W)
|
|
18838
18842
|
return;
|
|
18839
|
-
const G = W && !Z ? R : z, ne =
|
|
18843
|
+
const G = W && !Z ? R : z, ne = N.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
|
|
18840
18844
|
S = {
|
|
18841
18845
|
editor: t,
|
|
18842
18846
|
range: G.range,
|
|
@@ -18849,15 +18853,15 @@ function mS({
|
|
|
18849
18853
|
props: me
|
|
18850
18854
|
}),
|
|
18851
18855
|
decorationNode: ne,
|
|
18852
|
-
clientRect: w(
|
|
18853
|
-
}, Z && ((H = k?.onBeforeStart) == null || H.call(k, S)), q && ((
|
|
18856
|
+
clientRect: w(N, ne)
|
|
18857
|
+
}, Z && ((H = k?.onBeforeStart) == null || H.call(k, S)), q && ((O = k?.onBeforeUpdate) == null || O.call(k, S)), (q || Z) && (S.items = await f({
|
|
18854
18858
|
editor: t,
|
|
18855
18859
|
query: G.query
|
|
18856
18860
|
})), W && (($ = k?.onExit) == null || $.call(k, S)), q && ((V = k?.onUpdate) == null || V.call(k, S)), Z && ((_ = k?.onStart) == null || _.call(k, S));
|
|
18857
18861
|
},
|
|
18858
18862
|
destroy: () => {
|
|
18859
|
-
var
|
|
18860
|
-
S && ((
|
|
18863
|
+
var N;
|
|
18864
|
+
S && ((N = k?.onExit) == null || N.call(k, S));
|
|
18861
18865
|
}
|
|
18862
18866
|
};
|
|
18863
18867
|
},
|
|
@@ -18877,15 +18881,15 @@ function mS({
|
|
|
18877
18881
|
};
|
|
18878
18882
|
},
|
|
18879
18883
|
// Apply changes to the plugin state from a view transaction.
|
|
18880
|
-
apply(
|
|
18881
|
-
const { isEditable: H } = t, { composing:
|
|
18884
|
+
apply(N, D, L, F) {
|
|
18885
|
+
const { isEditable: H } = t, { composing: O } = t.view, { selection: $ } = N, { empty: V, from: _ } = $, R = { ...D }, z = N.getMeta(e);
|
|
18882
18886
|
if (z && z.exit)
|
|
18883
18887
|
return R.active = !1, R.decorationId = null, R.range = { from: 0, to: 0 }, R.query = null, R.text = null, R.dismissedRange = D.active ? { ...D.range } : D.dismissedRange, R;
|
|
18884
|
-
if (R.composing =
|
|
18885
|
-
from:
|
|
18886
|
-
to:
|
|
18888
|
+
if (R.composing = O, N.docChanged && R.dismissedRange !== null && (R.dismissedRange = {
|
|
18889
|
+
from: N.mapping.map(R.dismissedRange.from),
|
|
18890
|
+
to: N.mapping.map(R.dismissedRange.to)
|
|
18887
18891
|
}), H && (V || t.view.composing)) {
|
|
18888
|
-
(_ < D.range.from || _ > D.range.to) && !
|
|
18892
|
+
(_ < D.range.from || _ > D.range.to) && !O && !D.composing && (R.active = !1);
|
|
18889
18893
|
const j = m({
|
|
18890
18894
|
char: n,
|
|
18891
18895
|
allowSpaces: r,
|
|
@@ -18904,12 +18908,12 @@ function mS({
|
|
|
18904
18908
|
range: j.range,
|
|
18905
18909
|
query: j.query,
|
|
18906
18910
|
text: j.text,
|
|
18907
|
-
transaction:
|
|
18911
|
+
transaction: N
|
|
18908
18912
|
})) ? (R.dismissedRange !== null && !C({
|
|
18909
18913
|
match: j,
|
|
18910
18914
|
dismissedRange: R.dismissedRange,
|
|
18911
18915
|
state: F,
|
|
18912
|
-
transaction:
|
|
18916
|
+
transaction: N
|
|
18913
18917
|
}) && (R.dismissedRange = null), R.dismissedRange === null ? (R.active = !0, R.decorationId = D.decorationId ? D.decorationId : te, R.range = j.range, R.query = j.query, R.text = j.text) : R.active = !1) : (j || (R.dismissedRange = null), R.active = !1);
|
|
18914
18918
|
} else
|
|
18915
18919
|
R.active = !1;
|
|
@@ -18918,24 +18922,24 @@ function mS({
|
|
|
18918
18922
|
},
|
|
18919
18923
|
props: {
|
|
18920
18924
|
// Call the keydown hook if suggestion is active.
|
|
18921
|
-
handleKeyDown(
|
|
18925
|
+
handleKeyDown(N, D) {
|
|
18922
18926
|
var L, F;
|
|
18923
|
-
const { active: H, range:
|
|
18927
|
+
const { active: H, range: O } = I.getState(N.state);
|
|
18924
18928
|
if (!H)
|
|
18925
18929
|
return !1;
|
|
18926
18930
|
if (D.key === "Escape" || D.key === "Esc") {
|
|
18927
|
-
const V = I.getState(
|
|
18928
|
-
return (L = k?.onKeyDown) == null || L.call(k, { view:
|
|
18931
|
+
const V = I.getState(N.state);
|
|
18932
|
+
return (L = k?.onKeyDown) == null || L.call(k, { view: N, event: D, range: V.range }), T(N, e), !0;
|
|
18929
18933
|
}
|
|
18930
|
-
return ((F = k?.onKeyDown) == null ? void 0 : F.call(k, { view:
|
|
18934
|
+
return ((F = k?.onKeyDown) == null ? void 0 : F.call(k, { view: N, event: D, range: O })) || !1;
|
|
18931
18935
|
},
|
|
18932
18936
|
// Setup decorator on the currently active suggestion.
|
|
18933
|
-
decorations(
|
|
18934
|
-
const { active: D, range: L, decorationId: F, query: H } = I.getState(
|
|
18937
|
+
decorations(N) {
|
|
18938
|
+
const { active: D, range: L, decorationId: F, query: H } = I.getState(N);
|
|
18935
18939
|
if (!D)
|
|
18936
18940
|
return null;
|
|
18937
|
-
const
|
|
18938
|
-
return
|
|
18941
|
+
const O = !H?.length, $ = [l];
|
|
18942
|
+
return O && $.push(u), Se.create(N.doc, [
|
|
18939
18943
|
ot.inline(L.from, L.to, {
|
|
18940
18944
|
nodeName: a,
|
|
18941
18945
|
class: $.join(" "),
|
|
@@ -18989,7 +18993,7 @@ function RS(e) {
|
|
|
18989
18993
|
}));
|
|
18990
18994
|
});
|
|
18991
18995
|
}
|
|
18992
|
-
function
|
|
18996
|
+
function OS(e) {
|
|
18993
18997
|
var t = e.state, n = {
|
|
18994
18998
|
popper: {
|
|
18995
18999
|
position: t.options.strategy,
|
|
@@ -19018,7 +19022,7 @@ const Rh = {
|
|
|
19018
19022
|
enabled: !0,
|
|
19019
19023
|
phase: "write",
|
|
19020
19024
|
fn: RS,
|
|
19021
|
-
effect:
|
|
19025
|
+
effect: OS,
|
|
19022
19026
|
requires: ["computeStyles"]
|
|
19023
19027
|
};
|
|
19024
19028
|
function Pt(e) {
|
|
@@ -19031,14 +19035,14 @@ function ca() {
|
|
|
19031
19035
|
return t.brand + "/" + t.version;
|
|
19032
19036
|
}).join(" ") : navigator.userAgent;
|
|
19033
19037
|
}
|
|
19034
|
-
function
|
|
19038
|
+
function Oh() {
|
|
19035
19039
|
return !/^((?!chrome|android).)*safari/i.test(ca());
|
|
19036
19040
|
}
|
|
19037
19041
|
function fr(e, t, n) {
|
|
19038
19042
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
19039
19043
|
var r = e.getBoundingClientRect(), o = 1, i = 1;
|
|
19040
19044
|
t && ft(e) && (o = e.offsetWidth > 0 && dr(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && dr(r.height) / e.offsetHeight || 1);
|
|
19041
|
-
var s = zn(e) ? at(e) : window, a = s.visualViewport, l = !
|
|
19045
|
+
var s = zn(e) ? at(e) : window, a = s.visualViewport, l = !Oh() && n, c = (r.left + (l && a ? a.offsetLeft : 0)) / o, u = (r.top + (l && a ? a.offsetTop : 0)) / i, d = r.width / o, f = r.height / i;
|
|
19042
19046
|
return {
|
|
19043
19047
|
width: d,
|
|
19044
19048
|
height: f,
|
|
@@ -19059,7 +19063,7 @@ function bl(e) {
|
|
|
19059
19063
|
height: r
|
|
19060
19064
|
};
|
|
19061
19065
|
}
|
|
19062
|
-
function
|
|
19066
|
+
function Nh(e, t) {
|
|
19063
19067
|
var n = t.getRootNode && t.getRootNode();
|
|
19064
19068
|
if (e.contains(t))
|
|
19065
19069
|
return !0;
|
|
@@ -19076,7 +19080,7 @@ function Oh(e, t) {
|
|
|
19076
19080
|
function Ut(e) {
|
|
19077
19081
|
return at(e).getComputedStyle(e);
|
|
19078
19082
|
}
|
|
19079
|
-
function
|
|
19083
|
+
function NS(e) {
|
|
19080
19084
|
return ["table", "td", "th"].indexOf(zt(e)) >= 0;
|
|
19081
19085
|
}
|
|
19082
19086
|
function mn(e) {
|
|
@@ -19118,7 +19122,7 @@ function IS(e) {
|
|
|
19118
19122
|
return null;
|
|
19119
19123
|
}
|
|
19120
19124
|
function uo(e) {
|
|
19121
|
-
for (var t = at(e), n = lu(e); n &&
|
|
19125
|
+
for (var t = at(e), n = lu(e); n && NS(n) && Ut(n).position === "static"; )
|
|
19122
19126
|
n = lu(n);
|
|
19123
19127
|
return n && (zt(n) === "html" || zt(n) === "body" && Ut(n).position === "static") ? t : n || IS(e) || t;
|
|
19124
19128
|
}
|
|
@@ -19162,7 +19166,7 @@ function DS(e) {
|
|
|
19162
19166
|
}
|
|
19163
19167
|
function zS(e) {
|
|
19164
19168
|
var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
19165
|
-
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) ||
|
|
19169
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || Nh(t.elements.popper, o) && (t.elements.arrow = o));
|
|
19166
19170
|
}
|
|
19167
19171
|
const _S = {
|
|
19168
19172
|
name: "arrow",
|
|
@@ -19211,11 +19215,11 @@ function cu(e) {
|
|
|
19211
19215
|
}
|
|
19212
19216
|
if (o === Ye || (o === Je || o === pt) && i === qr) {
|
|
19213
19217
|
k = ht;
|
|
19214
|
-
var
|
|
19218
|
+
var N = d && w === A && A.visualViewport ? A.visualViewport.width : (
|
|
19215
19219
|
// $FlowFixMe[prop-missing]
|
|
19216
19220
|
w[T]
|
|
19217
19221
|
);
|
|
19218
|
-
p -=
|
|
19222
|
+
p -= N - r.width, p *= l ? 1 : -1;
|
|
19219
19223
|
}
|
|
19220
19224
|
}
|
|
19221
19225
|
var D = Object.assign({
|
|
@@ -19319,7 +19323,7 @@ function qS(e, t) {
|
|
|
19319
19323
|
var n = at(e), r = mn(e), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
19320
19324
|
if (o) {
|
|
19321
19325
|
i = o.width, s = o.height;
|
|
19322
|
-
var c =
|
|
19326
|
+
var c = Oh();
|
|
19323
19327
|
(c || !c && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
19324
19328
|
}
|
|
19325
19329
|
return {
|
|
@@ -19372,7 +19376,7 @@ function du(e, t, n) {
|
|
|
19372
19376
|
function XS(e) {
|
|
19373
19377
|
var t = Lr(Bi(e)), n = ["absolute", "fixed"].indexOf(Ut(e).position) >= 0, r = n && ft(e) ? uo(e) : e;
|
|
19374
19378
|
return zn(r) ? t.filter(function(o) {
|
|
19375
|
-
return zn(o) &&
|
|
19379
|
+
return zn(o) && Nh(o, r) && zt(o) !== "body";
|
|
19376
19380
|
}) : [];
|
|
19377
19381
|
}
|
|
19378
19382
|
function JS(e, t, n, r) {
|
|
@@ -19435,7 +19439,7 @@ function Ur(e, t) {
|
|
|
19435
19439
|
reference: w,
|
|
19436
19440
|
element: k,
|
|
19437
19441
|
placement: o
|
|
19438
|
-
}), T = ua(Object.assign({}, k, C)), I = f === Cr ? T : w,
|
|
19442
|
+
}), T = ua(Object.assign({}, k, C)), I = f === Cr ? T : w, N = {
|
|
19439
19443
|
top: A.top - I.top + v.top,
|
|
19440
19444
|
bottom: I.bottom - A.bottom + v.bottom,
|
|
19441
19445
|
left: A.left - I.left + v.left,
|
|
@@ -19443,12 +19447,12 @@ function Ur(e, t) {
|
|
|
19443
19447
|
}, D = e.modifiersData.offset;
|
|
19444
19448
|
if (f === Cr && D) {
|
|
19445
19449
|
var L = D[o];
|
|
19446
|
-
Object.keys(
|
|
19447
|
-
var H = [ht, pt].indexOf(F) >= 0 ? 1 : -1,
|
|
19448
|
-
|
|
19450
|
+
Object.keys(N).forEach(function(F) {
|
|
19451
|
+
var H = [ht, pt].indexOf(F) >= 0 ? 1 : -1, O = [Je, pt].indexOf(F) >= 0 ? "y" : "x";
|
|
19452
|
+
N[F] += L[O] * H;
|
|
19449
19453
|
});
|
|
19450
19454
|
}
|
|
19451
|
-
return
|
|
19455
|
+
return N;
|
|
19452
19456
|
}
|
|
19453
19457
|
function YS(e, t) {
|
|
19454
19458
|
t === void 0 && (t = {});
|
|
@@ -19488,15 +19492,15 @@ function ZS(e) {
|
|
|
19488
19492
|
flipVariations: h,
|
|
19489
19493
|
allowedAutoPlacements: m
|
|
19490
19494
|
}) : Z);
|
|
19491
|
-
}, []), A = t.rects.reference, w = t.rects.popper, C = /* @__PURE__ */ new Map(), T = !0, I = y[0],
|
|
19492
|
-
var D = y[
|
|
19495
|
+
}, []), A = t.rects.reference, w = t.rects.popper, C = /* @__PURE__ */ new Map(), T = !0, I = y[0], N = 0; N < y.length; N++) {
|
|
19496
|
+
var D = y[N], L = Pt(D), F = pr(D) === ur, H = [Je, pt].indexOf(L) >= 0, O = H ? "width" : "height", $ = Ur(t, {
|
|
19493
19497
|
placement: D,
|
|
19494
19498
|
boundary: u,
|
|
19495
19499
|
rootBoundary: d,
|
|
19496
19500
|
altBoundary: f,
|
|
19497
19501
|
padding: c
|
|
19498
19502
|
}), V = H ? F ? ht : Ye : F ? pt : Je;
|
|
19499
|
-
A[
|
|
19503
|
+
A[O] > w[O] && (V = Uo(V));
|
|
19500
19504
|
var _ = Uo(V), R = [];
|
|
19501
19505
|
if (i && R.push($[L] <= 0), a && R.push($[V] <= 0, $[_] <= 0), R.every(function(se) {
|
|
19502
19506
|
return se;
|
|
@@ -19624,7 +19628,7 @@ function cT(e) {
|
|
|
19624
19628
|
altBoundary: u
|
|
19625
19629
|
}), v = Pt(t.placement), S = pr(t.placement), k = !S, y = yl(v), A = lT(y), w = t.modifiersData.popperOffsets, C = t.rects.reference, T = t.rects.popper, I = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
19626
19630
|
placement: t.placement
|
|
19627
|
-
})) : m,
|
|
19631
|
+
})) : m, N = typeof I == "number" ? {
|
|
19628
19632
|
mainAxis: I,
|
|
19629
19633
|
altAxis: I
|
|
19630
19634
|
} : Object.assign({
|
|
@@ -19636,14 +19640,14 @@ function cT(e) {
|
|
|
19636
19640
|
};
|
|
19637
19641
|
if (w) {
|
|
19638
19642
|
if (i) {
|
|
19639
|
-
var F, H = y === "y" ? Je : Ye,
|
|
19643
|
+
var F, H = y === "y" ? Je : Ye, O = y === "y" ? pt : ht, $ = y === "y" ? "height" : "width", V = w[y], _ = V + b[H], R = V - b[O], z = p ? -T[$] / 2 : 0, j = S === ur ? C[$] : T[$], te = S === ur ? -T[$] : -C[$], re = t.elements.arrow, se = p && re ? bl(re) : {
|
|
19640
19644
|
width: 0,
|
|
19641
19645
|
height: 0
|
|
19642
|
-
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ih(), q = Z[H], W = Z[
|
|
19646
|
+
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ih(), q = Z[H], W = Z[O], G = Pr(0, C[$], se[$]), ne = k ? C[$] / 2 - z - G - q - N.mainAxis : j - G - q - N.mainAxis, me = k ? -C[$] / 2 + z + G + W + N.mainAxis : te + G + W + N.mainAxis, Ce = t.elements.arrow && uo(t.elements.arrow), ve = Ce ? y === "y" ? Ce.clientTop || 0 : Ce.clientLeft || 0 : 0, xe = (F = D?.[y]) != null ? F : 0, Me = V + ne - xe - ve, lt = V + me - xe, Qe = Pr(p ? gi(_, Me) : _, V, p ? Rn(R, lt) : R);
|
|
19643
19647
|
w[y] = Qe, L[y] = Qe - V;
|
|
19644
19648
|
}
|
|
19645
19649
|
if (a) {
|
|
19646
|
-
var Ue, be = y === "x" ? Je : Ye, Re = y === "x" ? pt : ht, Le = w[A], Te = A === "y" ? "height" : "width", Fe = Le + b[be], Ft = Le - b[Re], Jt = [Je, Ye].indexOf(v) !== -1, gn = (Ue = D?.[A]) != null ? Ue : 0, ye = Jt ? Fe : Le - C[Te] - T[Te] - gn +
|
|
19650
|
+
var Ue, be = y === "x" ? Je : Ye, Re = y === "x" ? pt : ht, Le = w[A], Te = A === "y" ? "height" : "width", Fe = Le + b[be], Ft = Le - b[Re], Jt = [Je, Ye].indexOf(v) !== -1, gn = (Ue = D?.[A]) != null ? Ue : 0, ye = Jt ? Fe : Le - C[Te] - T[Te] - gn + N.altAxis, Ze = Jt ? Le + C[Te] + T[Te] - gn - N.altAxis : Ft, Yt = p && Jt ? PS(ye, Le, Ze) : Pr(p ? ye : Fe, Le, p ? Ze : Ft);
|
|
19647
19651
|
w[A] = Yt, L[A] = Yt - Le;
|
|
19648
19652
|
}
|
|
19649
19653
|
t.modifiersData[r] = L;
|
|
@@ -19788,8 +19792,8 @@ function vT(e) {
|
|
|
19788
19792
|
u.rects = {
|
|
19789
19793
|
reference: hT(S, uo(k), u.options.strategy === "fixed"),
|
|
19790
19794
|
popper: bl(k)
|
|
19791
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
19792
|
-
return u.modifiersData[
|
|
19795
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(N) {
|
|
19796
|
+
return u.modifiersData[N.name] = Object.assign({}, N.data);
|
|
19793
19797
|
});
|
|
19794
19798
|
for (var y = 0; y < u.orderedModifiers.length; y++) {
|
|
19795
19799
|
if (u.reset === !0) {
|
|
@@ -19923,10 +19927,10 @@ function Gr(e) {
|
|
|
19923
19927
|
function RT(e) {
|
|
19924
19928
|
return kl(e, "NodeList");
|
|
19925
19929
|
}
|
|
19926
|
-
function
|
|
19930
|
+
function OT(e) {
|
|
19927
19931
|
return kl(e, "MouseEvent");
|
|
19928
19932
|
}
|
|
19929
|
-
function
|
|
19933
|
+
function NT(e) {
|
|
19930
19934
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
19931
19935
|
}
|
|
19932
19936
|
function IT(e) {
|
|
@@ -19983,7 +19987,7 @@ function Wh() {
|
|
|
19983
19987
|
}
|
|
19984
19988
|
function zT() {
|
|
19985
19989
|
var e = document.activeElement;
|
|
19986
|
-
if (
|
|
19990
|
+
if (NT(e)) {
|
|
19987
19991
|
var t = e._tippy;
|
|
19988
19992
|
e.blur && !t.state.isVisible && e.blur();
|
|
19989
19993
|
}
|
|
@@ -20255,12 +20259,12 @@ function XT(e, t) {
|
|
|
20255
20259
|
}), w.addEventListener("mouseleave", function() {
|
|
20256
20260
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && H().addEventListener("mousemove", h);
|
|
20257
20261
|
}), y;
|
|
20258
|
-
function
|
|
20262
|
+
function N() {
|
|
20259
20263
|
var M = y.props.touch;
|
|
20260
20264
|
return Array.isArray(M) ? M : [M, 0];
|
|
20261
20265
|
}
|
|
20262
20266
|
function D() {
|
|
20263
|
-
return
|
|
20267
|
+
return N()[0] === "hold";
|
|
20264
20268
|
}
|
|
20265
20269
|
function L() {
|
|
20266
20270
|
var M;
|
|
@@ -20273,7 +20277,7 @@ function XT(e, t) {
|
|
|
20273
20277
|
var M = F().parentNode;
|
|
20274
20278
|
return M ? PT(M) : document;
|
|
20275
20279
|
}
|
|
20276
|
-
function
|
|
20280
|
+
function O() {
|
|
20277
20281
|
return pa(w);
|
|
20278
20282
|
}
|
|
20279
20283
|
function $(M) {
|
|
@@ -20358,7 +20362,7 @@ function XT(e, t) {
|
|
|
20358
20362
|
ne(M, K);
|
|
20359
20363
|
}
|
|
20360
20364
|
function ne(M, K) {
|
|
20361
|
-
var Q =
|
|
20365
|
+
var Q = O().box;
|
|
20362
20366
|
function de(ce) {
|
|
20363
20367
|
ce.target === Q && (ks(Q, "remove", de), K());
|
|
20364
20368
|
}
|
|
@@ -20408,7 +20412,7 @@ function XT(e, t) {
|
|
|
20408
20412
|
var K, Q = !1;
|
|
20409
20413
|
if (!(!y.state.isEnabled || Ue(M) || a)) {
|
|
20410
20414
|
var de = ((K = u) == null ? void 0 : K.type) === "focus";
|
|
20411
|
-
u = M, m = M.currentTarget, z(), !y.state.isVisible &&
|
|
20415
|
+
u = M, m = M.currentTarget, z(), !y.state.isVisible && OT(M) && _o.forEach(function(ce) {
|
|
20412
20416
|
return ce(M);
|
|
20413
20417
|
}), M.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? Q = !0 : Fe(M), M.type === "click" && (s = !Q), Q && !de && Ft(M);
|
|
20414
20418
|
}
|
|
@@ -20456,7 +20460,7 @@ function XT(e, t) {
|
|
|
20456
20460
|
fn: function(mo) {
|
|
20457
20461
|
var Vn = mo.state;
|
|
20458
20462
|
if (L()) {
|
|
20459
|
-
var Yh =
|
|
20463
|
+
var Yh = O(), Wi = Yh.box;
|
|
20460
20464
|
["placement", "reference-hidden", "escaped"].forEach(function(go) {
|
|
20461
20465
|
go === "placement" ? Wi.setAttribute("data-placement", Vn.placement) : Vn.attributes.popper["data-popper-" + go] ? Wi.setAttribute("data-" + go, "") : Wi.removeAttribute("data-" + go);
|
|
20462
20466
|
}), Vn.attributes.popper = {};
|
|
@@ -20518,7 +20522,7 @@ function XT(e, t) {
|
|
|
20518
20522
|
}
|
|
20519
20523
|
function Fe(M) {
|
|
20520
20524
|
y.clearDelayTimeouts(), M && _("onTrigger", [y, M]), Z();
|
|
20521
|
-
var K = $(!0), Q =
|
|
20525
|
+
var K = $(!0), Q = N(), de = Q[0], ce = Q[1];
|
|
20522
20526
|
Mt.isTouch && de === "hold" && ce && (K = ce), K ? r = setTimeout(function() {
|
|
20523
20527
|
y.show();
|
|
20524
20528
|
}, K) : y.show();
|
|
@@ -20569,14 +20573,14 @@ function XT(e, t) {
|
|
|
20569
20573
|
var M = y.state.isVisible, K = y.state.isDestroyed, Q = !y.state.isEnabled, de = Mt.isTouch && !y.props.touch, ce = xs(y.props.duration, 0, rt.duration);
|
|
20570
20574
|
if (!(M || K || Q || de) && !F().hasAttribute("disabled") && (_("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
20571
20575
|
if (y.state.isVisible = !0, L() && (w.style.visibility = "visible"), V(), Z(), y.state.isMounted || (w.style.transition = "none"), L()) {
|
|
20572
|
-
var Be =
|
|
20576
|
+
var Be = O(), ct = Be.box, jn = Be.content;
|
|
20573
20577
|
ws([ct, jn], 0);
|
|
20574
20578
|
}
|
|
20575
20579
|
f = function() {
|
|
20576
20580
|
var yn;
|
|
20577
20581
|
if (!(!y.state.isVisible || c)) {
|
|
20578
20582
|
if (c = !0, w.offsetHeight, w.style.transition = y.props.moveTransition, L() && y.props.animation) {
|
|
20579
|
-
var Hi =
|
|
20583
|
+
var Hi = O(), mo = Hi.box, Vn = Hi.content;
|
|
20580
20584
|
ws([mo, Vn], ce), vu([mo, Vn], "visible");
|
|
20581
20585
|
}
|
|
20582
20586
|
R(), z(), bu(Cs, y), (yn = y.popperInstance) == null || yn.forceUpdate(), _("onMount", [y]), y.props.animation && L() && G(ce, function() {
|
|
@@ -20591,7 +20595,7 @@ function XT(e, t) {
|
|
|
20591
20595
|
var M = !y.state.isVisible, K = y.state.isDestroyed, Q = !y.state.isEnabled, de = xs(y.props.duration, 1, rt.duration);
|
|
20592
20596
|
if (!(M || K || Q) && (_("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
20593
20597
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, L() && (w.style.visibility = "hidden"), j(), q(), V(!0), L()) {
|
|
20594
|
-
var ce =
|
|
20598
|
+
var ce = O(), Be = ce.box, ct = ce.content;
|
|
20595
20599
|
y.props.animation && (ws([Be, ct], de), vu([Be, ct], "hidden"));
|
|
20596
20600
|
}
|
|
20597
20601
|
R(), z(), y.props.animation ? L() && W(de, y.unmount) : y.unmount();
|
|
@@ -20776,7 +20780,7 @@ const JT = async ({
|
|
|
20776
20780
|
...a.alt ? { alt: a.alt } : {},
|
|
20777
20781
|
...a.title ? { title: a.title } : {}
|
|
20778
20782
|
};
|
|
20779
|
-
e.chain().focus().deleteRange(t).
|
|
20783
|
+
e.chain().focus().deleteRange(t).setAdvancedImage(l).run();
|
|
20780
20784
|
}, YT = (e) => {
|
|
20781
20785
|
const t = e.translations || ir;
|
|
20782
20786
|
return [
|
|
@@ -20836,7 +20840,7 @@ const JT = async ({
|
|
|
20836
20840
|
},
|
|
20837
20841
|
{
|
|
20838
20842
|
title: t.code,
|
|
20839
|
-
icon:
|
|
20843
|
+
icon: Ou,
|
|
20840
20844
|
command: ({ editor: n, range: r }) => n.chain().focus().deleteRange(r).toggleCodeBlock().run()
|
|
20841
20845
|
}
|
|
20842
20846
|
];
|
|
@@ -20938,10 +20942,10 @@ const JT = async ({
|
|
|
20938
20942
|
objectFit: c = "contain",
|
|
20939
20943
|
objectPosition: u = "50% 50%",
|
|
20940
20944
|
isUploading: d
|
|
20941
|
-
} = t.attrs, f = Ke(), p = qe(), h = to(), [m, b] = ae(!1), [v, S] = ae({ x: 0, y: 0 }), [k, y] = ae(1), [A, w] = ae(null), [C, T] = ae(!1), [I,
|
|
20942
|
-
if (F.current &&
|
|
20945
|
+
} = t.attrs, f = Ke(), p = qe(), h = to(), [m, b] = ae(!1), [v, S] = ae({ x: 0, y: 0 }), [k, y] = ae(1), [A, w] = ae(null), [C, T] = ae(!1), [I, N] = ae(!1), [D, L] = ae(""), F = An(null), H = An(null), O = An(null), $ = typeof t.attrs.alt == "string" && t.attrs.alt.trim() ? t.attrs.alt : h.imageAlt, V = () => {
|
|
20946
|
+
if (F.current && O.current === null) {
|
|
20943
20947
|
const { naturalWidth: W, naturalHeight: G } = F.current;
|
|
20944
|
-
W > 0 && G > 0 && (
|
|
20948
|
+
W > 0 && G > 0 && (O.current = W / G);
|
|
20945
20949
|
}
|
|
20946
20950
|
}, _ = () => {
|
|
20947
20951
|
L(
|
|
@@ -20951,11 +20955,11 @@ const JT = async ({
|
|
|
20951
20955
|
Xe(() => {
|
|
20952
20956
|
_();
|
|
20953
20957
|
}, [t.attrs.alt]), Xe(() => {
|
|
20954
|
-
!o && I &&
|
|
20958
|
+
!o && I && N(!1);
|
|
20955
20959
|
}, [o, I]);
|
|
20956
20960
|
const R = (W, G) => {
|
|
20957
20961
|
W.preventDefault(), W.stopPropagation();
|
|
20958
|
-
const ne = W.clientX, me = W.clientY, Ce = H.current?.offsetWidth ?? 300, ve = H.current?.offsetHeight ?? 200, xe =
|
|
20962
|
+
const ne = W.clientX, me = W.clientY, Ce = H.current?.offsetWidth ?? 300, ve = H.current?.offsetHeight ?? 200, xe = O.current ?? Ce / ve, Me = W.shiftKey, lt = (Ue) => {
|
|
20959
20963
|
const be = Ue.clientX - ne, Re = Ue.clientY - me;
|
|
20960
20964
|
if (Ue.shiftKey || Me) {
|
|
20961
20965
|
let Te = Math.max(80, Ce + be), Fe = G === "right" ? ve : Math.max(60, ve + Re);
|
|
@@ -21019,9 +21023,9 @@ const JT = async ({
|
|
|
21019
21023
|
n({ rotation: W });
|
|
21020
21024
|
}, se = () => {
|
|
21021
21025
|
const W = D.trim();
|
|
21022
|
-
n({ alt: W || null }),
|
|
21026
|
+
n({ alt: W || null }), N(!1);
|
|
21023
21027
|
}, Z = () => {
|
|
21024
|
-
n({ alt: null }), L(""),
|
|
21028
|
+
n({ alt: null }), L(""), N(!1);
|
|
21025
21029
|
}, q = c === "cover";
|
|
21026
21030
|
return (
|
|
21027
21031
|
// Outer wrapper: block but overflow-visible so resize handles aren't clipped
|
|
@@ -21113,7 +21117,7 @@ const JT = async ({
|
|
|
21113
21117
|
)
|
|
21114
21118
|
]
|
|
21115
21119
|
}
|
|
21116
|
-
) : /* @__PURE__ */ B(
|
|
21120
|
+
) : /* @__PURE__ */ B(On, { children: [
|
|
21117
21121
|
/* @__PURE__ */ B(
|
|
21118
21122
|
"div",
|
|
21119
21123
|
{
|
|
@@ -21168,7 +21172,7 @@ const JT = async ({
|
|
|
21168
21172
|
p?.imageLoadingBox
|
|
21169
21173
|
),
|
|
21170
21174
|
children: /* @__PURE__ */ g(
|
|
21171
|
-
|
|
21175
|
+
Om,
|
|
21172
21176
|
{
|
|
21173
21177
|
className: E(
|
|
21174
21178
|
"w-8 h-8 animate-spin",
|
|
@@ -21225,7 +21229,7 @@ const JT = async ({
|
|
|
21225
21229
|
f === "dark" ? "hover:bg-neutral-700 text-neutral-300" : "hover:bg-neutral-100 text-neutral-600",
|
|
21226
21230
|
p?.imageToolbarButton
|
|
21227
21231
|
),
|
|
21228
|
-
children: /* @__PURE__ */ g(
|
|
21232
|
+
children: /* @__PURE__ */ g(Nm, { size: 14 })
|
|
21229
21233
|
}
|
|
21230
21234
|
),
|
|
21231
21235
|
/* @__PURE__ */ g(
|
|
@@ -21248,7 +21252,7 @@ const JT = async ({
|
|
|
21248
21252
|
{
|
|
21249
21253
|
open: I,
|
|
21250
21254
|
onOpenChange: (W) => {
|
|
21251
|
-
|
|
21255
|
+
N(W), W && _();
|
|
21252
21256
|
},
|
|
21253
21257
|
align: "end",
|
|
21254
21258
|
side: "bottom",
|
|
@@ -21296,7 +21300,7 @@ const JT = async ({
|
|
|
21296
21300
|
W.target.value
|
|
21297
21301
|
),
|
|
21298
21302
|
onKeyDown: (W) => {
|
|
21299
|
-
W.key === "Enter" && (W.preventDefault(), se()), W.key === "Escape" && (W.preventDefault(), _(),
|
|
21303
|
+
W.key === "Enter" && (W.preventDefault(), se()), W.key === "Escape" && (W.preventDefault(), _(), N(!1));
|
|
21300
21304
|
},
|
|
21301
21305
|
autoFocus: !0,
|
|
21302
21306
|
className: E(
|
|
@@ -21379,7 +21383,7 @@ const JT = async ({
|
|
|
21379
21383
|
]
|
|
21380
21384
|
}
|
|
21381
21385
|
),
|
|
21382
|
-
o && /* @__PURE__ */ B(
|
|
21386
|
+
o && /* @__PURE__ */ B(On, { children: [
|
|
21383
21387
|
/* @__PURE__ */ g(
|
|
21384
21388
|
"div",
|
|
21385
21389
|
{
|
|
@@ -21759,11 +21763,11 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
21759
21763
|
clearTimeout(w);
|
|
21760
21764
|
const H = e.view.posAtCoords({ left: T.clientX, top: T.clientY });
|
|
21761
21765
|
if (!H) return;
|
|
21762
|
-
const
|
|
21763
|
-
let $ =
|
|
21766
|
+
const O = e.state.doc.resolve(H.pos);
|
|
21767
|
+
let $ = O.depth;
|
|
21764
21768
|
for (; $ > 1; )
|
|
21765
21769
|
$--;
|
|
21766
|
-
const V = $ > 0 ?
|
|
21770
|
+
const V = $ > 0 ? O.before($) : O.pos, _ = e.view.nodeDOM(V);
|
|
21767
21771
|
if (_ instanceof HTMLElement) {
|
|
21768
21772
|
const R = _.getBoundingClientRect(), z = I.parentElement.getBoundingClientRect(), j = 48, te = 8;
|
|
21769
21773
|
I.style.left = `${R.left - z.left - j - te}px`;
|
|
@@ -21780,18 +21784,18 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
21780
21784
|
const w = o.current.getBoundingClientRect(), C = { left: w.left + 80, top: w.top + w.height / 2 }, T = e.view.posAtCoords(C);
|
|
21781
21785
|
if (T) {
|
|
21782
21786
|
const I = e.state.doc.resolve(T.pos);
|
|
21783
|
-
let
|
|
21784
|
-
for (;
|
|
21785
|
-
|
|
21786
|
-
const D =
|
|
21787
|
+
let N = I.depth;
|
|
21788
|
+
for (; N > 1; )
|
|
21789
|
+
N--;
|
|
21790
|
+
const D = N > 0 ? I.before(N) : I.pos, L = e.state.doc.nodeAt(D);
|
|
21787
21791
|
if (L) {
|
|
21788
|
-
const F = L.type.name === "paragraph" || L.type.name === "heading", H = L.type.name === "image" || L.type.name === "advancedImage",
|
|
21792
|
+
const F = L.type.name === "paragraph" || L.type.name === "heading", H = L.type.name === "image" || L.type.name === "advancedImage", O = {
|
|
21789
21793
|
pos: D,
|
|
21790
21794
|
node: L,
|
|
21791
21795
|
isText: F,
|
|
21792
21796
|
isImage: H
|
|
21793
21797
|
};
|
|
21794
|
-
return s(
|
|
21798
|
+
return s(O), O;
|
|
21795
21799
|
}
|
|
21796
21800
|
}
|
|
21797
21801
|
return s(null), null;
|
|
@@ -21801,11 +21805,11 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
21801
21805
|
if (!C) return;
|
|
21802
21806
|
const T = { left: C.left + 80, top: C.top + C.height / 2 }, I = e.view.posAtCoords(T);
|
|
21803
21807
|
if (I) {
|
|
21804
|
-
const
|
|
21805
|
-
let D =
|
|
21808
|
+
const N = e.state.doc.resolve(I.pos);
|
|
21809
|
+
let D = N.depth;
|
|
21806
21810
|
for (; D > 1; )
|
|
21807
21811
|
D--;
|
|
21808
|
-
const L = D > 0 ?
|
|
21812
|
+
const L = D > 0 ? N.before(D) : N.pos, F = e.state.doc.nodeAt(L);
|
|
21809
21813
|
if (F) {
|
|
21810
21814
|
const H = L + F.nodeSize;
|
|
21811
21815
|
e.chain().insertContentAt(H, { type: "paragraph" }).focus(H + 1).insertContent("/").run();
|
|
@@ -21857,18 +21861,18 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
21857
21861
|
const T = e.view;
|
|
21858
21862
|
e.commands.setNodeSelection(C.pos);
|
|
21859
21863
|
const I = T.state.selection.content();
|
|
21860
|
-
let
|
|
21864
|
+
let N = null, D = "";
|
|
21861
21865
|
try {
|
|
21862
21866
|
const F = typeof T.serializeForClipboard == "function" ? T.serializeForClipboard(I) : T.__serializeForClipboard?.(T, I);
|
|
21863
|
-
F && (
|
|
21867
|
+
F && (N = F.dom, D = F.text);
|
|
21864
21868
|
} catch (F) {
|
|
21865
21869
|
console.error("Failed to serialize node for drag", F);
|
|
21866
21870
|
}
|
|
21867
|
-
if (!
|
|
21871
|
+
if (!N) {
|
|
21868
21872
|
w.preventDefault();
|
|
21869
21873
|
return;
|
|
21870
21874
|
}
|
|
21871
|
-
w.dataTransfer.clearData(), w.dataTransfer.setData("text/html",
|
|
21875
|
+
w.dataTransfer.clearData(), w.dataTransfer.setData("text/html", N.innerHTML), w.dataTransfer.setData("text/plain", D), w.dataTransfer.effectAllowed = "copyMove";
|
|
21872
21876
|
const L = T.nodeDOM(C.pos);
|
|
21873
21877
|
L instanceof HTMLElement && w.dataTransfer.setDragImage(L, 0, 0), T.dragging = { slice: I, move: !0 };
|
|
21874
21878
|
};
|
|
@@ -21924,7 +21928,7 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
21924
21928
|
className: E("w-56", r?.dragHandleMenuContent),
|
|
21925
21929
|
align: "start",
|
|
21926
21930
|
children: [
|
|
21927
|
-
i?.isText && /* @__PURE__ */ B(
|
|
21931
|
+
i?.isText && /* @__PURE__ */ B(On, { children: [
|
|
21928
21932
|
/* @__PURE__ */ B(ru, { children: [
|
|
21929
21933
|
/* @__PURE__ */ B(aa, { children: [
|
|
21930
21934
|
/* @__PURE__ */ g(Go, { className: "w-4 h-4" }),
|
|
@@ -22024,7 +22028,7 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
22024
22028
|
},
|
|
22025
22029
|
w.label
|
|
22026
22030
|
)),
|
|
22027
|
-
/* @__PURE__ */ g(
|
|
22031
|
+
/* @__PURE__ */ g(Or, {}),
|
|
22028
22032
|
/* @__PURE__ */ g(
|
|
22029
22033
|
"div",
|
|
22030
22034
|
{
|
|
@@ -22083,14 +22087,14 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
22083
22087
|
/* @__PURE__ */ g(Dm, { className: "w-4 h-4" }),
|
|
22084
22088
|
n.resetFormatting
|
|
22085
22089
|
] }),
|
|
22086
|
-
/* @__PURE__ */ g(
|
|
22090
|
+
/* @__PURE__ */ g(Or, {})
|
|
22087
22091
|
] }),
|
|
22088
|
-
i?.isImage && /* @__PURE__ */ B(
|
|
22092
|
+
i?.isImage && /* @__PURE__ */ B(On, { children: [
|
|
22089
22093
|
/* @__PURE__ */ B(Ge, { onClick: p, children: [
|
|
22090
22094
|
/* @__PURE__ */ g(zm, { className: "w-4 h-4" }),
|
|
22091
22095
|
n.download
|
|
22092
22096
|
] }),
|
|
22093
|
-
/* @__PURE__ */ g(
|
|
22097
|
+
/* @__PURE__ */ g(Or, {})
|
|
22094
22098
|
] }),
|
|
22095
22099
|
/* @__PURE__ */ B(Ge, { onClick: c, children: [
|
|
22096
22100
|
/* @__PURE__ */ g(Tl, { className: "w-4 h-4" }),
|
|
@@ -22101,10 +22105,10 @@ const oA = (e) => e ? e.replace(/\\/g, "\\\\").replace(/\[/g, "\\[").replace(/\]
|
|
|
22101
22105
|
n.copyToClipboard
|
|
22102
22106
|
] }),
|
|
22103
22107
|
/* @__PURE__ */ B(Ge, { onClick: f, children: [
|
|
22104
|
-
/* @__PURE__ */ g(
|
|
22108
|
+
/* @__PURE__ */ g(Nu, { className: "w-4 h-4" }),
|
|
22105
22109
|
n.copyAnchorLink
|
|
22106
22110
|
] }),
|
|
22107
|
-
/* @__PURE__ */ g(
|
|
22111
|
+
/* @__PURE__ */ g(Or, {}),
|
|
22108
22112
|
/* @__PURE__ */ B(
|
|
22109
22113
|
Ge,
|
|
22110
22114
|
{
|
|
@@ -22319,7 +22323,7 @@ const Es = (e, t) => {
|
|
|
22319
22323
|
types: ["heading", "paragraph"]
|
|
22320
22324
|
}),
|
|
22321
22325
|
og.configure({
|
|
22322
|
-
placeholder: ({ node:
|
|
22326
|
+
placeholder: ({ node: O }) => O.type.name === "heading" ? `${u.placeholderHeading} ${O.attrs.level}` : O.type.name === "blockquote" ? u.placeholderQuote : u.placeholder
|
|
22323
22327
|
}),
|
|
22324
22328
|
Km.configure({
|
|
22325
22329
|
openOnClick: !1
|
|
@@ -22333,7 +22337,7 @@ const Es = (e, t) => {
|
|
|
22333
22337
|
dA,
|
|
22334
22338
|
uf,
|
|
22335
22339
|
Rb.configure({ multicolor: !0 }),
|
|
22336
|
-
|
|
22340
|
+
Nb,
|
|
22337
22341
|
Pb,
|
|
22338
22342
|
td,
|
|
22339
22343
|
ed.configure({
|
|
@@ -22389,7 +22393,7 @@ const Es = (e, t) => {
|
|
|
22389
22393
|
enableImages: !s,
|
|
22390
22394
|
translations: u,
|
|
22391
22395
|
classNames: a,
|
|
22392
|
-
onRequestImage: o ? async ({ editor:
|
|
22396
|
+
onRequestImage: o ? async ({ editor: O, range: $ }) => new Promise((V) => {
|
|
22393
22397
|
const _ = document.createElement("input");
|
|
22394
22398
|
_.type = "file", _.accept = "image/*", _.onchange = async () => {
|
|
22395
22399
|
_.files?.length ? V({
|
|
@@ -22398,43 +22402,43 @@ const Es = (e, t) => {
|
|
|
22398
22402
|
}) : V(null);
|
|
22399
22403
|
}, _.click();
|
|
22400
22404
|
}) : null,
|
|
22401
|
-
onInsertLocalImageFile: o ? async ({ editor:
|
|
22402
|
-
|
|
22405
|
+
onInsertLocalImageFile: o ? async ({ editor: O, range: $, file: V }) => {
|
|
22406
|
+
O.chain().focus().deleteRange($).run();
|
|
22403
22407
|
const { url: _ } = await o(V);
|
|
22404
|
-
|
|
22408
|
+
O.chain().focus().setAdvancedImage({ src: _ }).run();
|
|
22405
22409
|
} : null
|
|
22406
22410
|
})
|
|
22407
22411
|
],
|
|
22408
22412
|
editorProps: {
|
|
22409
|
-
handleDrop: (
|
|
22413
|
+
handleDrop: (O, $, V, _) => {
|
|
22410
22414
|
if (_ || !o || s || !$.dataTransfer?.files?.length) return !1;
|
|
22411
22415
|
const z = Array.from($.dataTransfer.files).filter(
|
|
22412
22416
|
(re) => re.type.startsWith("image/")
|
|
22413
22417
|
);
|
|
22414
22418
|
if (z.length === 0) return !1;
|
|
22415
22419
|
$.preventDefault();
|
|
22416
|
-
const j =
|
|
22420
|
+
const j = O.posAtCoords({
|
|
22417
22421
|
left: $.clientX,
|
|
22418
22422
|
top: $.clientY
|
|
22419
|
-
}), te = j ? j.pos :
|
|
22423
|
+
}), te = j ? j.pos : O.state.selection.from;
|
|
22420
22424
|
return z.forEach(async (re) => {
|
|
22421
|
-
const se = URL.createObjectURL(re), { tr: Z } =
|
|
22425
|
+
const se = URL.createObjectURL(re), { tr: Z } = O.state, q = O.state.schema.nodes.image.create({
|
|
22422
22426
|
src: se,
|
|
22423
22427
|
isUploading: !0
|
|
22424
22428
|
});
|
|
22425
|
-
Z.insert(te, q),
|
|
22429
|
+
Z.insert(te, q), O.dispatch(Z);
|
|
22426
22430
|
try {
|
|
22427
22431
|
const { url: W } = await o(re);
|
|
22428
22432
|
let G = null;
|
|
22429
|
-
|
|
22433
|
+
O.state.doc.descendants((ne, me) => {
|
|
22430
22434
|
if (ne.type.name === "image" && ne.attrs.src === se)
|
|
22431
22435
|
return G = me, !1;
|
|
22432
|
-
}), G !== null &&
|
|
22433
|
-
|
|
22436
|
+
}), G !== null && O.dispatch(
|
|
22437
|
+
O.state.tr.setNodeMarkup(
|
|
22434
22438
|
G,
|
|
22435
22439
|
void 0,
|
|
22436
22440
|
{
|
|
22437
|
-
...
|
|
22441
|
+
...O.state.doc.nodeAt(G)?.attrs,
|
|
22438
22442
|
src: W,
|
|
22439
22443
|
isUploading: !1
|
|
22440
22444
|
}
|
|
@@ -22442,41 +22446,41 @@ const Es = (e, t) => {
|
|
|
22442
22446
|
);
|
|
22443
22447
|
} catch {
|
|
22444
22448
|
let G = null;
|
|
22445
|
-
|
|
22449
|
+
O.state.doc.descendants((ne, me) => {
|
|
22446
22450
|
if (ne.type.name === "image" && ne.attrs.src === se)
|
|
22447
22451
|
return G = me, !1;
|
|
22448
|
-
}), G !== null &&
|
|
22449
|
-
|
|
22452
|
+
}), G !== null && O.dispatch(
|
|
22453
|
+
O.state.tr.delete(G, G + 1)
|
|
22450
22454
|
);
|
|
22451
22455
|
}
|
|
22452
22456
|
}), !0;
|
|
22453
22457
|
},
|
|
22454
|
-
handlePaste: (
|
|
22458
|
+
handlePaste: (O, $, V) => {
|
|
22455
22459
|
if (!o || s || !$.clipboardData?.files?.length) return !1;
|
|
22456
22460
|
const R = Array.from($.clipboardData.files).filter(
|
|
22457
22461
|
(j) => j.type.startsWith("image/")
|
|
22458
22462
|
);
|
|
22459
22463
|
if (R.length === 0) return !1;
|
|
22460
22464
|
$.preventDefault();
|
|
22461
|
-
const z =
|
|
22465
|
+
const z = O.state.selection.from;
|
|
22462
22466
|
return R.forEach(async (j) => {
|
|
22463
|
-
const te = URL.createObjectURL(j), { tr: re } =
|
|
22467
|
+
const te = URL.createObjectURL(j), { tr: re } = O.state, se = O.state.schema.nodes.image.create({
|
|
22464
22468
|
src: te,
|
|
22465
22469
|
isUploading: !0
|
|
22466
22470
|
});
|
|
22467
|
-
re.insert(z, se),
|
|
22471
|
+
re.insert(z, se), O.dispatch(re);
|
|
22468
22472
|
try {
|
|
22469
22473
|
const { url: Z } = await o(j);
|
|
22470
22474
|
let q = null;
|
|
22471
|
-
|
|
22475
|
+
O.state.doc.descendants((W, G) => {
|
|
22472
22476
|
if (W.type.name === "image" && W.attrs.src === te)
|
|
22473
22477
|
return q = G, !1;
|
|
22474
|
-
}), q !== null &&
|
|
22475
|
-
|
|
22478
|
+
}), q !== null && O.dispatch(
|
|
22479
|
+
O.state.tr.setNodeMarkup(
|
|
22476
22480
|
q,
|
|
22477
22481
|
void 0,
|
|
22478
22482
|
{
|
|
22479
|
-
...
|
|
22483
|
+
...O.state.doc.nodeAt(q)?.attrs,
|
|
22480
22484
|
src: Z,
|
|
22481
22485
|
isUploading: !1
|
|
22482
22486
|
}
|
|
@@ -22484,18 +22488,18 @@ const Es = (e, t) => {
|
|
|
22484
22488
|
);
|
|
22485
22489
|
} catch {
|
|
22486
22490
|
let q = null;
|
|
22487
|
-
|
|
22491
|
+
O.state.doc.descendants((W, G) => {
|
|
22488
22492
|
if (W.type.name === "image" && W.attrs.src === te)
|
|
22489
22493
|
return q = G, !1;
|
|
22490
|
-
}), q !== null &&
|
|
22491
|
-
|
|
22494
|
+
}), q !== null && O.dispatch(
|
|
22495
|
+
O.state.tr.delete(q, q + 1)
|
|
22492
22496
|
);
|
|
22493
22497
|
}
|
|
22494
22498
|
}), !0;
|
|
22495
22499
|
}
|
|
22496
22500
|
},
|
|
22497
|
-
onUpdate: ({ editor:
|
|
22498
|
-
t && t(
|
|
22501
|
+
onUpdate: ({ editor: O }) => {
|
|
22502
|
+
t && t(O.getMarkdown());
|
|
22499
22503
|
}
|
|
22500
22504
|
});
|
|
22501
22505
|
Xe(() => {
|
|
@@ -22503,65 +22507,65 @@ const Es = (e, t) => {
|
|
|
22503
22507
|
b(p);
|
|
22504
22508
|
return;
|
|
22505
22509
|
}
|
|
22506
|
-
const
|
|
22507
|
-
|
|
22510
|
+
const O = Ms();
|
|
22511
|
+
O && b(O);
|
|
22508
22512
|
}, [p]), Xe(() => {
|
|
22509
22513
|
if (p || Ms() || typeof window > "u") return;
|
|
22510
|
-
const
|
|
22511
|
-
if (!
|
|
22514
|
+
const O = window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
22515
|
+
if (!O) return;
|
|
22512
22516
|
const $ = (V) => {
|
|
22513
22517
|
Ms() || b(V.matches ? "dark" : "light");
|
|
22514
22518
|
};
|
|
22515
|
-
return
|
|
22516
|
-
|
|
22519
|
+
return O.addEventListener("change", $), () => {
|
|
22520
|
+
O.removeEventListener("change", $);
|
|
22517
22521
|
};
|
|
22518
22522
|
}, [p]), Xe(() => {
|
|
22519
22523
|
(async () => {
|
|
22520
22524
|
if (e && I && !v)
|
|
22521
22525
|
try {
|
|
22522
|
-
const
|
|
22526
|
+
const O = CA(
|
|
22523
22527
|
n,
|
|
22524
22528
|
e
|
|
22525
22529
|
);
|
|
22526
22530
|
await I.commands.setContent(e, {
|
|
22527
|
-
contentType:
|
|
22531
|
+
contentType: O
|
|
22528
22532
|
}), S(!0);
|
|
22529
|
-
} catch (
|
|
22530
|
-
console.error(
|
|
22533
|
+
} catch (O) {
|
|
22534
|
+
console.error(O);
|
|
22531
22535
|
}
|
|
22532
22536
|
})();
|
|
22533
22537
|
}, [e, I]), Xe(() => {
|
|
22534
22538
|
if (!I) return;
|
|
22535
|
-
const
|
|
22539
|
+
const O = () => {
|
|
22536
22540
|
y(wA(I.getText()));
|
|
22537
22541
|
};
|
|
22538
|
-
return
|
|
22539
|
-
I.off("update",
|
|
22542
|
+
return O(), I.on("update", O), I.on("transaction", O), () => {
|
|
22543
|
+
I.off("update", O), I.off("transaction", O);
|
|
22540
22544
|
};
|
|
22541
22545
|
}, [I]), Xe(() => {
|
|
22542
22546
|
if (typeof document > "u") return;
|
|
22543
|
-
const
|
|
22547
|
+
const O = () => {
|
|
22544
22548
|
if (!document.fullscreenElement) {
|
|
22545
22549
|
T(!1);
|
|
22546
22550
|
return;
|
|
22547
22551
|
}
|
|
22548
22552
|
document.fullscreenElement === f.current && T(!0);
|
|
22549
22553
|
};
|
|
22550
|
-
return document.addEventListener("fullscreenchange",
|
|
22554
|
+
return document.addEventListener("fullscreenchange", O), () => {
|
|
22551
22555
|
document.removeEventListener(
|
|
22552
22556
|
"fullscreenchange",
|
|
22553
|
-
|
|
22557
|
+
O
|
|
22554
22558
|
);
|
|
22555
22559
|
};
|
|
22556
22560
|
}, []);
|
|
22557
|
-
const
|
|
22561
|
+
const N = (O) => {
|
|
22558
22562
|
w(
|
|
22559
|
-
($) => Math.min(Tr, Math.max(Sr, $ +
|
|
22563
|
+
($) => Math.min(Tr, Math.max(Sr, $ + O))
|
|
22560
22564
|
);
|
|
22561
22565
|
}, D = () => {
|
|
22562
|
-
const
|
|
22563
|
-
if (T(
|
|
22564
|
-
if (
|
|
22566
|
+
const O = !C;
|
|
22567
|
+
if (T(O), !(typeof document > "u")) {
|
|
22568
|
+
if (O) {
|
|
22565
22569
|
f.current?.requestFullscreen?.().catch(() => {
|
|
22566
22570
|
});
|
|
22567
22571
|
return;
|
|
@@ -22569,8 +22573,8 @@ const Es = (e, t) => {
|
|
|
22569
22573
|
document.fullscreenElement && document.exitFullscreen?.().catch(() => {
|
|
22570
22574
|
});
|
|
22571
22575
|
}
|
|
22572
|
-
}, L = (
|
|
22573
|
-
p || (b(
|
|
22576
|
+
}, L = (O) => {
|
|
22577
|
+
p || (b(O), yA(O));
|
|
22574
22578
|
}, F = vA(m), H = xA(
|
|
22575
22579
|
m
|
|
22576
22580
|
);
|
|
@@ -22668,7 +22672,7 @@ const Es = (e, t) => {
|
|
|
22668
22672
|
"prose-pre:rounded-xl prose-pre:my-4",
|
|
22669
22673
|
// Media — constrain to container
|
|
22670
22674
|
"prose-img:max-w-full prose-img:rounded-lg prose-img:my-3",
|
|
22671
|
-
"[&_video]:max-w-full [&_video]:w-full [&_video]:rounded-lg [&_video]:my-3",
|
|
22675
|
+
"[&_video]:max-w-full [&_video]:w-full [&_video]:aspect-video [&_video]:h-auto [&_video]:object-contain [&_video]:bg-black [&_video]:rounded-lg [&_video]:my-3",
|
|
22672
22676
|
// Tiptap root
|
|
22673
22677
|
"[&>.tiptap]:outline-none [&>.tiptap]:min-h-[400px]",
|
|
22674
22678
|
"[&>.tiptap>*:first-child]:mt-0 [&>.tiptap>*:last-child]:mb-0",
|
|
@@ -22756,7 +22760,7 @@ const Es = (e, t) => {
|
|
|
22756
22760
|
"button",
|
|
22757
22761
|
{
|
|
22758
22762
|
type: "button",
|
|
22759
|
-
onClick: () =>
|
|
22763
|
+
onClick: () => N(-Au),
|
|
22760
22764
|
disabled: A <= Sr,
|
|
22761
22765
|
"aria-label": u.zoomOut,
|
|
22762
22766
|
className: E(
|
|
@@ -22793,7 +22797,7 @@ const Es = (e, t) => {
|
|
|
22793
22797
|
"button",
|
|
22794
22798
|
{
|
|
22795
22799
|
type: "button",
|
|
22796
|
-
onClick: () =>
|
|
22800
|
+
onClick: () => N(Au),
|
|
22797
22801
|
disabled: A >= Tr,
|
|
22798
22802
|
"aria-label": u.zoomIn,
|
|
22799
22803
|
className: E(
|