@feedmepos/mf-miniprogram-v2 0.1.0-dev.44 → 0.1.0-dev.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var gl = Object.defineProperty;
|
|
2
2
|
var bl = (n, t, e) => t in n ? gl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var B = (n, t, e) => bl(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { defineComponent as ut, ref as ae, computed as z, resolveComponent as Ue, openBlock as g, createElementBlock as x, normalizeClass as Re, createElementVNode as m, createVNode as X, toDisplayString as M, createTextVNode as Ze, createCommentVNode as U, watch as Tt, createBlock as Ie, Fragment as De, renderList as Oe, normalizeStyle as Vt, reactive as pr, nextTick as Dn, onBeforeUnmount as
|
|
5
|
-
import { useCoreStore as
|
|
4
|
+
import { defineComponent as ut, ref as ae, computed as z, resolveComponent as Ue, openBlock as g, createElementBlock as x, normalizeClass as Re, createElementVNode as m, createVNode as X, toDisplayString as M, createTextVNode as Ze, createCommentVNode as U, watch as Tt, createBlock as Ie, Fragment as De, renderList as Oe, normalizeStyle as Vt, reactive as pr, nextTick as Dn, onBeforeUnmount as Tr, withModifiers as hr, unref as j, withDirectives as mr, vModelText as yr, renderSlot as vl, onMounted as Gn, withCtx as kt, onScopeDispose as kl, withKeys as wl } from "vue";
|
|
5
|
+
import { useCoreStore as Er, FeedMeAuth as xl } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as Bs } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
function oa() {
|
|
@@ -33,8 +33,8 @@ var _l = ((n = "") => {
|
|
|
33
33
|
} catch {
|
|
34
34
|
return !1;
|
|
35
35
|
}
|
|
36
|
-
})(), wt = { 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: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: In((n) => new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: In((n) => new RegExp(`^ {0,${n}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: In((n) => new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)), headingBeginRegex: In((n) => new RegExp(`^ {0,${n}}#`)), htmlBeginRegex: In((n) => new RegExp(`^ {0,${n}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: In((n) => new RegExp(`^ {0,${n}}>`)) }, Sl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, El = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ca = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Us = Pe(Fs).replace(/bull/g, ca).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Al = Pe(Fs).replace(/bull/g, ca).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ua = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Cl = /^[^\n]+/, da = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $l = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", da).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rl = Pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, ca).getRegex(),
|
|
37
|
-
]`).replace("lheading", Us).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ql = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ws = /^( {2,}|\\)\n(?!\s*$)/, Bl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Mn = /[\s\p{P}\p{S}]/u, Qn = /[^\s\p{P}\p{S}]/u, jl = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Mn).getRegex(), Fl = /[\p{Pi}\p{Ps}"']/u, Gs = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Hl = /(?:[^\s\p{P}\p{S}]|~)/u, Wl = Pe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _l ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Gl = Pe(Vs, "u").replace(/punct/g, an).getRegex(), Vl = Pe(Vs, "u").replace(/punct/g, Gs).getRegex(), Kl = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Zl = Pe(Kl, "u").replace(/openQuote/g, Fl).replace(/punct/g, an).getRegex(), Ks = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yl = Pe(Ks, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), Ql = Pe(Ks, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Ul).replace(/punct/g, Gs).getRegex(), Xl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Jl = Pe(Xl, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), eo = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), to = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", no = Pe(to, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), ro = Pe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, an).getRegex(), ao = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", so = Pe(ao, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), io = Pe(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), lo = Pe(/^<(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(), oo = Pe(fa).replace("(?:-->|$)", "-->").getRegex(), co = Pe("^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", oo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, uo = Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Zs = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", da).getRegex(), Ys = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", da).getRegex(), fo = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Zs).replace("nolink", Ys).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ha = { _backpedal: vn, anyPunctuation: io, autolink: lo, blockSkip: Wl, br: Ws, code: zl, del: vn, delLDelim: vn, delRDelim: vn, emStrongLDelim: Gl, emStrongRDelimAst: Yl, emStrongRDelimUnd: eo, escape: ql, link: uo, nolink: Ys, punctuation: jl, reflink: Zs, reflinkSearch: fo, tag: co, text: Bl, url: vn }, po = { ...ha, emStrongLDelim: Zl, emStrongRDelimAst: Jl, emStrongRDelimUnd: no, link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", gr).getRegex(), reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gr).getRegex() },
|
|
36
|
+
})(), wt = { 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: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: In((n) => new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: In((n) => new RegExp(`^ {0,${n}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: In((n) => new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)), headingBeginRegex: In((n) => new RegExp(`^ {0,${n}}#`)), htmlBeginRegex: In((n) => new RegExp(`^ {0,${n}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: In((n) => new RegExp(`^ {0,${n}}>`)) }, Sl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, El = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ca = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Us = Pe(Fs).replace(/bull/g, ca).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Al = Pe(Fs).replace(/bull/g, ca).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ua = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Cl = /^[^\n]+/, da = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $l = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", da).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rl = Pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, ca).getRegex(), Ir = "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", fa = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Nl = Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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", fa).replace("tag", Ir).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Hs = (n) => Pe(ua).replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", n).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ir).getRegex(), Dl = Hs(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Ol = Hs(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Pl = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ol).getRegex(), pa = { blockquote: Pl, code: Tl, def: $l, fences: El, heading: Il, hr: Yn, html: Nl, lheading: Us, list: Rl, newline: Sl, paragraph: Dl, table: vn, text: Cl }, Pa = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ir).getRegex(), Ml = { ...pa, lheading: Al, table: Pa, paragraph: Pe(ua).replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pa).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ir).getRegex() }, Ll = { ...pa, html: Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fa).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: vn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Pe(ua).replace("hr", Yn).replace("heading", ` *#{1,6} *[^
|
|
37
|
+
]`).replace("lheading", Us).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ql = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ws = /^( {2,}|\\)\n(?!\s*$)/, Bl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Mn = /[\s\p{P}\p{S}]/u, Qn = /[^\s\p{P}\p{S}]/u, jl = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Mn).getRegex(), Fl = /[\p{Pi}\p{Ps}"']/u, Gs = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Hl = /(?:[^\s\p{P}\p{S}]|~)/u, Wl = Pe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _l ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Gl = Pe(Vs, "u").replace(/punct/g, an).getRegex(), Vl = Pe(Vs, "u").replace(/punct/g, Gs).getRegex(), Kl = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Zl = Pe(Kl, "u").replace(/openQuote/g, Fl).replace(/punct/g, an).getRegex(), Ks = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yl = Pe(Ks, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), Ql = Pe(Ks, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Ul).replace(/punct/g, Gs).getRegex(), Xl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Jl = Pe(Xl, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), eo = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), to = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", no = Pe(to, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), ro = Pe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, an).getRegex(), ao = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", so = Pe(ao, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), io = Pe(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), lo = Pe(/^<(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(), oo = Pe(fa).replace("(?:-->|$)", "-->").getRegex(), co = Pe("^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", oo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, uo = Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Zs = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", da).getRegex(), Ys = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", da).getRegex(), fo = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Zs).replace("nolink", Ys).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ha = { _backpedal: vn, anyPunctuation: io, autolink: lo, blockSkip: Wl, br: Ws, code: zl, del: vn, delLDelim: vn, delRDelim: vn, emStrongLDelim: Gl, emStrongRDelimAst: Yl, emStrongRDelimUnd: eo, escape: ql, link: uo, nolink: Ys, punctuation: jl, reflink: Zs, reflinkSearch: fo, tag: co, text: Bl, url: vn }, po = { ...ha, emStrongLDelim: Zl, emStrongRDelimAst: Jl, emStrongRDelimUnd: no, link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", gr).getRegex(), reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gr).getRegex() }, Qr = { ...ha, emStrongRDelimAst: Ql, emStrongLDelim: Vl, delLDelim: ro, delRDelim: so, url: Pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ma).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: Pe(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ma).getRegex() }, ho = { ...Qr, br: Pe(Ws).replace("{2,}", "*").getRegex(), text: Pe(Qr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, nr = { normal: pa, gfm: Ml, pedantic: Ll }, Bn = { normal: ha, gfm: Qr, breaks: ho, pedantic: po }, mo = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, La = (n) => mo[n];
|
|
38
38
|
function Qt(n, t) {
|
|
39
39
|
if (t) {
|
|
40
40
|
if (wt.escapeTest.test(n)) return n.replace(wt.escapeReplace, La);
|
|
@@ -436,7 +436,7 @@ ${p}`, a = a.substring(0, a.length - E.text.length) + w.text;
|
|
|
436
436
|
return { type: "text", raw: t[0], text: t[0], escaped: e };
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
}, Wt = class
|
|
439
|
+
}, Wt = class Xr {
|
|
440
440
|
constructor(t) {
|
|
441
441
|
B(this, "tokens");
|
|
442
442
|
B(this, "options");
|
|
@@ -451,10 +451,10 @@ ${p}`, a = a.substring(0, a.length - E.text.length) + w.text;
|
|
|
451
451
|
return { block: nr, inline: Bn };
|
|
452
452
|
}
|
|
453
453
|
static lex(t, e) {
|
|
454
|
-
return new
|
|
454
|
+
return new Xr(e).lex(t);
|
|
455
455
|
}
|
|
456
456
|
static lexInline(t, e) {
|
|
457
|
-
return new
|
|
457
|
+
return new Xr(e).inlineTokens(t);
|
|
458
458
|
}
|
|
459
459
|
lex(t) {
|
|
460
460
|
t = t.replace(wt.carriageReturn, `
|
|
@@ -806,7 +806,7 @@ ${n}</tr>
|
|
|
806
806
|
checkbox({ raw: n }) {
|
|
807
807
|
return n;
|
|
808
808
|
}
|
|
809
|
-
}, Gt = class
|
|
809
|
+
}, Gt = class Jr {
|
|
810
810
|
constructor(t) {
|
|
811
811
|
B(this, "options");
|
|
812
812
|
B(this, "renderer");
|
|
@@ -814,10 +814,10 @@ ${n}</tr>
|
|
|
814
814
|
this.options = t || _n, this.options.renderer = this.options.renderer || new vr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ma();
|
|
815
815
|
}
|
|
816
816
|
static parse(t, e) {
|
|
817
|
-
return new
|
|
817
|
+
return new Jr(e).parse(t);
|
|
818
818
|
}
|
|
819
819
|
static parseInline(t, e) {
|
|
820
|
-
return new
|
|
820
|
+
return new Jr(e).parseInline(t);
|
|
821
821
|
}
|
|
822
822
|
parse(t) {
|
|
823
823
|
var r, a;
|
|
@@ -1500,7 +1500,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", va = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
|
|
|
1500
1500
|
contains: [Kn]
|
|
1501
1501
|
}, zo = {
|
|
1502
1502
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
1503
|
-
},
|
|
1503
|
+
}, Ar = function(n, t, e = {}) {
|
|
1504
1504
|
const r = mn(
|
|
1505
1505
|
{
|
|
1506
1506
|
scope: "comment",
|
|
@@ -1566,7 +1566,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", va = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
|
|
|
1566
1566
|
// look for 3 words in a row
|
|
1567
1567
|
}
|
|
1568
1568
|
), r;
|
|
1569
|
-
}, Bo =
|
|
1569
|
+
}, Bo = Ar("//", "$"), jo = Ar("/\\*", "\\*/"), Fo = Ar("#", "$"), Uo = {
|
|
1570
1570
|
scope: "number",
|
|
1571
1571
|
begin: si,
|
|
1572
1572
|
relevance: 0
|
|
@@ -1624,7 +1624,7 @@ var rr = /* @__PURE__ */ Object.freeze({
|
|
|
1624
1624
|
BACKSLASH_ESCAPE: Kn,
|
|
1625
1625
|
BINARY_NUMBER_MODE: Wo,
|
|
1626
1626
|
BINARY_NUMBER_RE: li,
|
|
1627
|
-
COMMENT:
|
|
1627
|
+
COMMENT: Ar,
|
|
1628
1628
|
C_BLOCK_COMMENT_MODE: jo,
|
|
1629
1629
|
C_LINE_COMMENT_MODE: Bo,
|
|
1630
1630
|
C_NUMBER_MODE: Ho,
|
|
@@ -1875,7 +1875,7 @@ class mc extends Error {
|
|
|
1875
1875
|
super(t), this.name = "HTMLInjectionError", this.html = e;
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
const
|
|
1878
|
+
const Lr = ti, Qa = mn, Xa = Symbol("nomatch"), yc = 7, di = function(n) {
|
|
1879
1879
|
const t = /* @__PURE__ */ Object.create(null), e = /* @__PURE__ */ Object.create(null), r = [];
|
|
1880
1880
|
let a = !0;
|
|
1881
1881
|
const i = "Could not find the language '{}', did you forget to load/include a language module?", o = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -2086,7 +2086,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
|
|
|
2086
2086
|
if (te.message && te.message.includes("Illegal"))
|
|
2087
2087
|
return {
|
|
2088
2088
|
language: q,
|
|
2089
|
-
value:
|
|
2089
|
+
value: Lr(R),
|
|
2090
2090
|
illegal: !0,
|
|
2091
2091
|
relevance: 0,
|
|
2092
2092
|
_illegalBy: {
|
|
@@ -2101,7 +2101,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
|
|
|
2101
2101
|
if (a)
|
|
2102
2102
|
return {
|
|
2103
2103
|
language: q,
|
|
2104
|
-
value:
|
|
2104
|
+
value: Lr(R),
|
|
2105
2105
|
illegal: !1,
|
|
2106
2106
|
relevance: 0,
|
|
2107
2107
|
errorRaised: te,
|
|
@@ -2113,7 +2113,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
|
|
|
2113
2113
|
}
|
|
2114
2114
|
function h(q) {
|
|
2115
2115
|
const R = {
|
|
2116
|
-
value:
|
|
2116
|
+
value: Lr(q),
|
|
2117
2117
|
illegal: !1,
|
|
2118
2118
|
relevance: 0,
|
|
2119
2119
|
_top: o,
|
|
@@ -2332,37 +2332,37 @@ function xc(n, t) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
2334
|
const fi = Object.entries, es = Object.setPrototypeOf, _c = Object.isFrozen, Sc = Object.getPrototypeOf, Tc = Object.getOwnPropertyDescriptor;
|
|
2335
|
-
let pt = Object.freeze, ht = Object.seal, Nn = Object.create, pi = typeof Reflect < "u" && Reflect,
|
|
2335
|
+
let pt = Object.freeze, ht = Object.seal, Nn = Object.create, pi = typeof Reflect < "u" && Reflect, ea = pi.apply, ta = pi.construct;
|
|
2336
2336
|
pt || (pt = function(t) {
|
|
2337
2337
|
return t;
|
|
2338
2338
|
});
|
|
2339
2339
|
ht || (ht = function(t) {
|
|
2340
2340
|
return t;
|
|
2341
2341
|
});
|
|
2342
|
-
|
|
2342
|
+
ea || (ea = function(t, e) {
|
|
2343
2343
|
for (var r = arguments.length, a = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++)
|
|
2344
2344
|
a[i - 2] = arguments[i];
|
|
2345
2345
|
return t.apply(e, a);
|
|
2346
2346
|
});
|
|
2347
|
-
|
|
2347
|
+
ta || (ta = function(t) {
|
|
2348
2348
|
for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++)
|
|
2349
2349
|
r[a - 1] = arguments[a];
|
|
2350
2350
|
return new t(...r);
|
|
2351
2351
|
});
|
|
2352
|
-
const Cn = at(Array.prototype.forEach), Ec = at(Array.prototype.lastIndexOf), ts = at(Array.prototype.pop), $n = at(Array.prototype.push), Ic = at(Array.prototype.splice), hn = Array.isArray, Wn = at(String.prototype.toLowerCase),
|
|
2352
|
+
const Cn = at(Array.prototype.forEach), Ec = at(Array.prototype.lastIndexOf), ts = at(Array.prototype.pop), $n = at(Array.prototype.push), Ic = at(Array.prototype.splice), hn = Array.isArray, Wn = at(String.prototype.toLowerCase), qr = at(String.prototype.toString), ns = at(String.prototype.match), jn = at(String.prototype.replace), rs = at(String.prototype.indexOf), Ac = at(String.prototype.trim), Cc = at(Number.prototype.toString), $c = at(Boolean.prototype.toString), as = typeof BigInt > "u" ? null : at(BigInt.prototype.toString), ss = typeof Symbol > "u" ? null : at(Symbol.prototype.toString), ot = at(Object.prototype.hasOwnProperty), Fn = at(Object.prototype.toString), lt = at(RegExp.prototype.test), gn = Rc(TypeError);
|
|
2353
2353
|
function at(n) {
|
|
2354
2354
|
return function(t) {
|
|
2355
2355
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
2356
2356
|
for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++)
|
|
2357
2357
|
r[a - 1] = arguments[a];
|
|
2358
|
-
return
|
|
2358
|
+
return ea(n, t, r);
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
2361
|
function Rc(n) {
|
|
2362
2362
|
return function() {
|
|
2363
2363
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
2364
2364
|
e[r] = arguments[r];
|
|
2365
|
-
return
|
|
2365
|
+
return ta(n, e);
|
|
2366
2366
|
};
|
|
2367
2367
|
}
|
|
2368
2368
|
function Be(n, t) {
|
|
@@ -2446,7 +2446,7 @@ function Oc(n) {
|
|
|
2446
2446
|
return !1;
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
|
-
const is = pt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
2449
|
+
const is = pt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zr = pt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Br = pt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Pc = pt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jr = pt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Mc = pt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ls = pt(["#text"]), os = pt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Fr = pt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), cs = pt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ar = pt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Lc = ht(/{{[\w\W]*|^[\w\W]*}}/g), qc = ht(/<%[\w\W]*|^[\w\W]*%>/g), zc = ht(/\${[\w\W]*/g), Bc = ht(/^data-[\-\w.\u00B7-\uFFFF]+$/), jc = ht(/^aria-[\-\w]+$/), us = ht(
|
|
2450
2450
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2451
2451
|
// eslint-disable-line no-useless-escape
|
|
2452
2452
|
), Fc = ht(/^(?:\w+script|data):/i), Uc = ht(
|
|
@@ -2544,9 +2544,9 @@ function hi() {
|
|
|
2544
2544
|
t.isSupported = typeof fi == "function" && typeof I == "function" && R && R.createHTMLDocument !== void 0;
|
|
2545
2545
|
const ue = Lc, qe = qc, ze = zc, He = Bc, mt = jc, Et = Fc, yt = Uc, jt = Wc;
|
|
2546
2546
|
let dt = us, Te = null;
|
|
2547
|
-
const G = Be({}, [...is, ...
|
|
2547
|
+
const G = Be({}, [...is, ...zr, ...Br, ...jr, ...ls]);
|
|
2548
2548
|
let Y = null;
|
|
2549
|
-
const me = Be({}, [...os, ...
|
|
2549
|
+
const me = Be({}, [...os, ...Fr, ...cs, ...ar]);
|
|
2550
2550
|
let Ee = Object.seal(Nn(null, {
|
|
2551
2551
|
tagNameCheck: {
|
|
2552
2552
|
writable: !0,
|
|
@@ -2626,7 +2626,7 @@ function hi() {
|
|
|
2626
2626
|
let $t = null;
|
|
2627
2627
|
const on = Be({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Zt = "http://www.w3.org/1998/Math/MathML", qt = "http://www.w3.org/2000/svg", nt = "http://www.w3.org/1999/xhtml";
|
|
2628
2628
|
let c = nt, b = !1, P = null;
|
|
2629
|
-
const K = Be({}, [Zt, qt, nt],
|
|
2629
|
+
const K = Be({}, [Zt, qt, nt], qr), Q = pt(["mi", "mo", "mn", "ms", "mtext"]);
|
|
2630
2630
|
let xe = Be({}, Q);
|
|
2631
2631
|
const Le = pt(["annotation-xml"]);
|
|
2632
2632
|
let rt = Be({}, Le);
|
|
@@ -2641,12 +2641,12 @@ function hi() {
|
|
|
2641
2641
|
if (S && S === f)
|
|
2642
2642
|
return;
|
|
2643
2643
|
(!f || typeof f != "object") && (f = {}), f = vt(f), bt = // eslint-disable-next-line unicorn/prefer-includes
|
|
2644
|
-
_t.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Z : f.PARSER_MEDIA_TYPE, y = bt === "application/xhtml+xml" ?
|
|
2644
|
+
_t.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Z : f.PARSER_MEDIA_TYPE, y = bt === "application/xhtml+xml" ? qr : Wn, Te = dn(f, "ALLOWED_TAGS", G, {
|
|
2645
2645
|
transform: y
|
|
2646
2646
|
}), Y = dn(f, "ALLOWED_ATTR", me, {
|
|
2647
2647
|
transform: y
|
|
2648
2648
|
}), P = dn(f, "ALLOWED_NAMESPACES", K, {
|
|
2649
|
-
transform:
|
|
2649
|
+
transform: qr
|
|
2650
2650
|
}), $t = dn(f, "ADD_URI_SAFE_ATTR", on, {
|
|
2651
2651
|
transform: y,
|
|
2652
2652
|
base: on
|
|
@@ -2661,7 +2661,7 @@ function hi() {
|
|
|
2661
2661
|
transform: y
|
|
2662
2662
|
}), Ct = ot(f, "USE_PROFILES") ? f.USE_PROFILES && typeof f.USE_PROFILES == "object" ? vt(f.USE_PROFILES) : f.USE_PROFILES : !1, je = f.ALLOW_ARIA_ATTR !== !1, Me = f.ALLOW_DATA_ATTR !== !1, It = f.ALLOW_UNKNOWN_PROTOCOLS || !1, ft = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, et = f.SAFE_FOR_TEMPLATES || !1, it = f.SAFE_FOR_XML !== !1, te = f.WHOLE_DOCUMENT || !1, Je = f.RETURN_DOM || !1, Pt = f.RETURN_DOM_FRAGMENT || !1, Mt = f.RETURN_TRUSTED_TYPE || !1, We = f.FORCE_BODY || !1, At = f.SANITIZE_DOM !== !1, Xt = f.SANITIZE_NAMED_PROPS || !1, Kt = f.KEEP_CONTENT !== !1, Lt = f.IN_PLACE || !1, dt = Oc(f.ALLOWED_URI_REGEXP) ? f.ALLOWED_URI_REGEXP : us, c = typeof f.NAMESPACE == "string" ? f.NAMESPACE : nt, xe = ot(f, "MATHML_TEXT_INTEGRATION_POINTS") && f.MATHML_TEXT_INTEGRATION_POINTS && typeof f.MATHML_TEXT_INTEGRATION_POINTS == "object" ? vt(f.MATHML_TEXT_INTEGRATION_POINTS) : Be({}, Q), rt = ot(f, "HTML_INTEGRATION_POINTS") && f.HTML_INTEGRATION_POINTS && typeof f.HTML_INTEGRATION_POINTS == "object" ? vt(f.HTML_INTEGRATION_POINTS) : Be({}, Le);
|
|
2663
2663
|
const $ = ot(f, "CUSTOM_ELEMENT_HANDLING") && f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING == "object" ? vt(f.CUSTOM_ELEMENT_HANDLING) : Nn(null);
|
|
2664
|
-
if (Ee = Nn(null), ot($, "tagNameCheck") && ie($.tagNameCheck) && (Ee.tagNameCheck = $.tagNameCheck), ot($, "attributeNameCheck") && ie($.attributeNameCheck) && (Ee.attributeNameCheck = $.attributeNameCheck), ot($, "allowCustomizedBuiltInElements") && typeof $.allowCustomizedBuiltInElements == "boolean" && (Ee.allowCustomizedBuiltInElements = $.allowCustomizedBuiltInElements), ht(Ee), et && (Me = !1), Pt && (Je = !0), Ct && (Te = Be({}, ls), Y = Nn(null), Ct.html === !0 && (Be(Te, is), Be(Y, os)), Ct.svg === !0 && (Be(Te,
|
|
2664
|
+
if (Ee = Nn(null), ot($, "tagNameCheck") && ie($.tagNameCheck) && (Ee.tagNameCheck = $.tagNameCheck), ot($, "attributeNameCheck") && ie($.attributeNameCheck) && (Ee.attributeNameCheck = $.attributeNameCheck), ot($, "allowCustomizedBuiltInElements") && typeof $.allowCustomizedBuiltInElements == "boolean" && (Ee.allowCustomizedBuiltInElements = $.allowCustomizedBuiltInElements), ht(Ee), et && (Me = !1), Pt && (Je = !0), Ct && (Te = Be({}, ls), Y = Nn(null), Ct.html === !0 && (Be(Te, is), Be(Y, os)), Ct.svg === !0 && (Be(Te, zr), Be(Y, Fr), Be(Y, ar)), Ct.svgFilters === !0 && (Be(Te, Br), Be(Y, Fr), Be(Y, ar)), Ct.mathMl === !0 && (Be(Te, jr), Be(Y, cs), Be(Y, ar))), tt.tagCheck = null, tt.attributeCheck = null, ot(f, "ADD_TAGS") && (typeof f.ADD_TAGS == "function" ? tt.tagCheck = f.ADD_TAGS : hn(f.ADD_TAGS) && (Te === G && (Te = vt(Te)), Be(Te, f.ADD_TAGS, y))), ot(f, "ADD_ATTR") && (typeof f.ADD_ATTR == "function" ? tt.attributeCheck = f.ADD_ATTR : hn(f.ADD_ATTR) && (Y === me && (Y = vt(Y)), Be(Y, f.ADD_ATTR, y))), ot(f, "ADD_URI_SAFE_ATTR") && hn(f.ADD_URI_SAFE_ATTR) && Be($t, f.ADD_URI_SAFE_ATTR, y), ot(f, "FORBID_CONTENTS") && hn(f.FORBID_CONTENTS) && (gt === Jt && (gt = vt(gt)), Be(gt, f.FORBID_CONTENTS, y)), ot(f, "ADD_FORBID_CONTENTS") && hn(f.ADD_FORBID_CONTENTS) && (gt === Jt && (gt = vt(gt)), Be(gt, f.ADD_FORBID_CONTENTS, y)), Kt && (Te["#text"] = !0), te && Be(Te, ["html", "head", "body"]), Te.table && (Be(Te, ["tbody"]), delete le.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
2665
2665
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2666
2666
|
throw gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2667
2667
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -2675,7 +2675,7 @@ function hi() {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
} else f.TRUSTED_TYPES_POLICY === null ? (se = void 0, H = "") : (se === void 0 && (se = Ae()), se && typeof H == "string" && (H = ve("")));
|
|
2677
2677
|
pt && pt(f), S = f;
|
|
2678
|
-
}, Fe = Be({}, [...
|
|
2678
|
+
}, Fe = Be({}, [...zr, ...Br, ...Pc]), Ge = Be({}, [...jr, ...Mc]), tn = function(f, $, W) {
|
|
2679
2679
|
return $.namespaceURI === nt ? f === "svg" : $.namespaceURI === Zt ? f === "svg" && (W === "annotation-xml" || xe[W]) : !!Fe[f];
|
|
2680
2680
|
}, Ut = function(f, $, W) {
|
|
2681
2681
|
return $.namespaceURI === nt ? f === "math" : $.namespaceURI === qt ? f === "math" && rt[W] : !!Ge[f];
|
|
@@ -2827,7 +2827,7 @@ function hi() {
|
|
|
2827
2827
|
);
|
|
2828
2828
|
}, Jn = function(f) {
|
|
2829
2829
|
return f = jn(f, ue, " "), f = jn(f, qe, " "), f = jn(f, ze, " "), f;
|
|
2830
|
-
},
|
|
2830
|
+
}, Or = function(f) {
|
|
2831
2831
|
var $;
|
|
2832
2832
|
f.normalize();
|
|
2833
2833
|
const W = F ? F(f) : f.ownerDocument, he = O.call(
|
|
@@ -2842,7 +2842,7 @@ function hi() {
|
|
|
2842
2842
|
be.data = Jn(be.data), be = he.nextNode();
|
|
2843
2843
|
const $e = ($ = f.querySelectorAll) === null || $ === void 0 ? void 0 : $.call(f, "template");
|
|
2844
2844
|
$e && Cn($e, (Ve) => {
|
|
2845
|
-
En(Ve.content) &&
|
|
2845
|
+
En(Ve.content) && Or(Ve.content);
|
|
2846
2846
|
});
|
|
2847
2847
|
}, er = function(f) {
|
|
2848
2848
|
const $ = N ? N(f) : null;
|
|
@@ -2997,8 +2997,8 @@ function hi() {
|
|
|
2997
2997
|
let he = $.length;
|
|
2998
2998
|
const be = y(f.nodeName);
|
|
2999
2999
|
for (; he--; ) {
|
|
3000
|
-
const $e = $[he], Ve = $e.name, Qe = $e.namespaceURI, Nt = $e.value, Dt = y(Ve),
|
|
3001
|
-
let St = Ve === "value" ?
|
|
3000
|
+
const $e = $[he], Ve = $e.name, Qe = $e.namespaceURI, Nt = $e.value, Dt = y(Ve), Mr = Nt;
|
|
3001
|
+
let St = Ve === "value" ? Mr : Ac(Mr);
|
|
3002
3002
|
if (W.attrName = Dt, W.attrValue = St, W.keepAttr = !0, W.forceKeepAttr = void 0, Yt(D.uponSanitizeAttribute, f, W), St = W.attrValue, Xt && (Dt === "id" || Dt === "name") && rs(St, sn) !== 0 && (yn(Ve, f), St = sn + St), it && lt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, St)) {
|
|
3003
3003
|
yn(Ve, f);
|
|
3004
3004
|
continue;
|
|
@@ -3020,7 +3020,7 @@ function hi() {
|
|
|
3020
3020
|
yn(Ve, f);
|
|
3021
3021
|
continue;
|
|
3022
3022
|
}
|
|
3023
|
-
St = ml(be, Dt, Qe, St), St !==
|
|
3023
|
+
St = ml(be, Dt, Qe, St), St !== Mr && yl(f, Ve, Qe, St);
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
3026
|
Yt(D.afterSanitizeAttributes, f, null);
|
|
@@ -3030,10 +3030,10 @@ function hi() {
|
|
|
3030
3030
|
for (Yt(D.beforeSanitizeShadowDOM, f, null); $ = W.nextNode(); )
|
|
3031
3031
|
if (Yt(D.uponSanitizeShadowNode, $, null), Ra($, f), Oa($), En($.content) && tr($.content), (C ? C($) : $.nodeType) === zt.element) {
|
|
3032
3032
|
const be = _($);
|
|
3033
|
-
En(be) && (
|
|
3033
|
+
En(be) && (Pr(be), tr(be));
|
|
3034
3034
|
}
|
|
3035
3035
|
Yt(D.afterSanitizeShadowDOM, f, null);
|
|
3036
|
-
},
|
|
3036
|
+
}, Pr = function(f) {
|
|
3037
3037
|
const $ = [{
|
|
3038
3038
|
node: f,
|
|
3039
3039
|
shadow: null
|
|
@@ -3092,12 +3092,12 @@ function hi() {
|
|
|
3092
3092
|
if (er(re))
|
|
3093
3093
|
throw Xn(re), gn("root node is clobbered and cannot be sanitized in-place");
|
|
3094
3094
|
try {
|
|
3095
|
-
|
|
3095
|
+
Pr(re);
|
|
3096
3096
|
} catch (Dt) {
|
|
3097
3097
|
throw Xn(re), Dt;
|
|
3098
3098
|
}
|
|
3099
3099
|
} else if (zn(re))
|
|
3100
|
-
$ = Aa("<!---->"), W = $.ownerDocument.importNode(re, !0), W.nodeType === zt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? $ = W : $.appendChild(W),
|
|
3100
|
+
$ = Aa("<!---->"), W = $.ownerDocument.importNode(re, !0), W.nodeType === zt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? $ = W : $.appendChild(W), Pr(W);
|
|
3101
3101
|
else {
|
|
3102
3102
|
if (!Je && !et && !te && // eslint-disable-next-line unicorn/prefer-includes
|
|
3103
3103
|
re.indexOf("<") === -1)
|
|
@@ -3119,9 +3119,9 @@ function hi() {
|
|
|
3119
3119
|
if ($e)
|
|
3120
3120
|
return Cn(t.removed, (Nt) => {
|
|
3121
3121
|
Nt.element && qn(Nt.element);
|
|
3122
|
-
}), et &&
|
|
3122
|
+
}), et && Or(re), re;
|
|
3123
3123
|
if (Je) {
|
|
3124
|
-
if (et &&
|
|
3124
|
+
if (et && Or($), Pt)
|
|
3125
3125
|
for (be = V.call($.ownerDocument); $.firstChild; )
|
|
3126
3126
|
be.appendChild($.firstChild);
|
|
3127
3127
|
else
|
|
@@ -6580,7 +6580,7 @@ const gs = [
|
|
|
6580
6580
|
{ key: "spacing", label: "Spacing", keys: ["padding", "margin"], defaultOpen: !1 },
|
|
6581
6581
|
{ key: "effects", label: "Effects", keys: ["opacity"], defaultOpen: !1 }
|
|
6582
6582
|
], Pu = /* @__PURE__ */ new Set(["img", "svg", "video", "picture", "canvas", "image", "use", "path", "figure"]), Mu = /* @__PURE__ */ new Set(["button", "a", "input", "select", "textarea", "option"]), Lu = /* @__PURE__ */ new Set(["span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "strong", "em", "b", "i", "small", "label", "li", "td", "th", "legend", "figcaption", "blockquote"]);
|
|
6583
|
-
function
|
|
6583
|
+
function Cr(n) {
|
|
6584
6584
|
const t = ((n == null ? void 0 : n.tag) ?? "").toLowerCase();
|
|
6585
6585
|
return Pu.has(t) ? "media" : Mu.has(t) ? "control" : Lu.has(t) || n != null && n.canEditText ? "text" : "container";
|
|
6586
6586
|
}
|
|
@@ -6599,7 +6599,7 @@ function zu(n) {
|
|
|
6599
6599
|
}
|
|
6600
6600
|
function Bu(n, t) {
|
|
6601
6601
|
var r;
|
|
6602
|
-
return ["width", "height", "padding", "margin"].includes(t) ? (((r = n == null ? void 0 : n.computed) == null ? void 0 : r.display) ?? "").trim() === "inline" &&
|
|
6602
|
+
return ["width", "height", "padding", "margin"].includes(t) ? (((r = n == null ? void 0 : n.computed) == null ? void 0 : r.display) ?? "").trim() === "inline" && Cr(n) !== "media" : !1;
|
|
6603
6603
|
}
|
|
6604
6604
|
const ju = /^[^<>;{}]{0,200}$/;
|
|
6605
6605
|
function Zn(n) {
|
|
@@ -6611,7 +6611,7 @@ function Fu(n, t) {
|
|
|
6611
6611
|
const e = n.trim();
|
|
6612
6612
|
return e.endsWith("%") ? Number(e.slice(0, -1)) / 100 * 255 : Number(e) * t;
|
|
6613
6613
|
}
|
|
6614
|
-
function
|
|
6614
|
+
function na(n) {
|
|
6615
6615
|
var E;
|
|
6616
6616
|
const t = n.trim().toLowerCase();
|
|
6617
6617
|
if (!t) return null;
|
|
@@ -6636,17 +6636,17 @@ function ta(n) {
|
|
|
6636
6636
|
let h = 1;
|
|
6637
6637
|
return k !== void 0 && (h = k.endsWith("%") ? Number(k.slice(0, -1)) / 100 : Number(k), !Number.isFinite(h)) ? null : { r: l, g: d, b: u, a: Math.min(1, Math.max(0, h)) };
|
|
6638
6638
|
}
|
|
6639
|
-
function
|
|
6639
|
+
function ra(n) {
|
|
6640
6640
|
const t = (e) => Math.min(255, Math.max(0, Math.round(e))).toString(16).padStart(2, "0");
|
|
6641
6641
|
return `#${t(n.r)}${t(n.g)}${t(n.b)}`;
|
|
6642
6642
|
}
|
|
6643
|
-
function
|
|
6644
|
-
const t =
|
|
6645
|
-
return !t || t.a === 0 ? null :
|
|
6643
|
+
function $r(n) {
|
|
6644
|
+
const t = na(String(n ?? ""));
|
|
6645
|
+
return !t || t.a === 0 ? null : ra(t);
|
|
6646
6646
|
}
|
|
6647
6647
|
function xr(n, t) {
|
|
6648
|
-
const e =
|
|
6649
|
-
return !e || !r ? String(n ?? "").trim() === String(t ?? "").trim() : e.a === 0 && r.a === 0 ? !0 :
|
|
6648
|
+
const e = na(String(n ?? "")), r = na(String(t ?? ""));
|
|
6649
|
+
return !e || !r ? String(n ?? "").trim() === String(t ?? "").trim() : e.a === 0 && r.a === 0 ? !0 : ra(e) === ra(r) && Math.abs(e.a - r.a) < 5e-3;
|
|
6650
6650
|
}
|
|
6651
6651
|
const Ri = /^(-?\d*\.?\d+)([a-z%]*)$/i;
|
|
6652
6652
|
function bn(n) {
|
|
@@ -6672,7 +6672,7 @@ function Hu(n) {
|
|
|
6672
6672
|
return Object.fromEntries(
|
|
6673
6673
|
wa.map(({ key: e, control: r }) => {
|
|
6674
6674
|
const a = Zn(t[e] ?? "");
|
|
6675
|
-
return r === "color" && a.startsWith("color(") ? [e,
|
|
6675
|
+
return r === "color" && a.startsWith("color(") ? [e, $r(a) ?? a] : [e, a];
|
|
6676
6676
|
})
|
|
6677
6677
|
);
|
|
6678
6678
|
}
|
|
@@ -6725,7 +6725,7 @@ function Zu(n) {
|
|
|
6725
6725
|
}
|
|
6726
6726
|
function Yu(n) {
|
|
6727
6727
|
var i, o, s;
|
|
6728
|
-
const t = n.element, e =
|
|
6728
|
+
const t = n.element, e = Cr(t), r = Zu(t), a = [
|
|
6729
6729
|
`#${n.id} — route ${n.route} — viewport/device ${n.device}`,
|
|
6730
6730
|
` target: ${t ? `<${t.tag}>` : "unknown element"} (${e})`,
|
|
6731
6731
|
` selector hint: ${(t == null ? void 0 : t.selector) || "(unavailable)"}`,
|
|
@@ -6779,7 +6779,7 @@ const Qu = { class: "flex min-w-0 flex-col gap-6" }, Xu = {
|
|
|
6779
6779
|
},
|
|
6780
6780
|
setup(n) {
|
|
6781
6781
|
function t(e) {
|
|
6782
|
-
return
|
|
6782
|
+
return $r(e) ? e : null;
|
|
6783
6783
|
}
|
|
6784
6784
|
return (e, r) => {
|
|
6785
6785
|
const a = Ue("FmIcon");
|
|
@@ -6875,7 +6875,7 @@ const Qu = { class: "flex min-w-0 flex-col gap-6" }, Xu = {
|
|
|
6875
6875
|
return `/api/start${r ? `?${r}` : ""}`;
|
|
6876
6876
|
},
|
|
6877
6877
|
opencode: (n = "") => `/api/opencode${n ? `/${n.replace(/^\/+/, "")}` : ""}`
|
|
6878
|
-
},
|
|
6878
|
+
}, aa = "69cde0740c0106001ca83dff", fd = {
|
|
6879
6879
|
dev: {
|
|
6880
6880
|
env: "dev",
|
|
6881
6881
|
liveDomain: "feedmedev.vip",
|
|
@@ -6918,13 +6918,13 @@ function rn(n) {
|
|
|
6918
6918
|
return t ? `${t}${n.startsWith("/") ? n : `/${n}`}` : n;
|
|
6919
6919
|
}
|
|
6920
6920
|
function _a() {
|
|
6921
|
-
return
|
|
6921
|
+
return Er().currentBusiness.value;
|
|
6922
6922
|
}
|
|
6923
6923
|
function xn() {
|
|
6924
6924
|
var n;
|
|
6925
|
-
return ((n = _a()) == null ? void 0 : n._id) ??
|
|
6925
|
+
return ((n = _a()) == null ? void 0 : n._id) ?? aa;
|
|
6926
6926
|
}
|
|
6927
|
-
function
|
|
6927
|
+
function _r() {
|
|
6928
6928
|
var n;
|
|
6929
6929
|
return ((n = _a()) == null ? void 0 : n.url) ?? void 0;
|
|
6930
6930
|
}
|
|
@@ -6933,11 +6933,11 @@ function yd() {
|
|
|
6933
6933
|
return ((n = _a()) == null ? void 0 : n.name) ?? xn();
|
|
6934
6934
|
}
|
|
6935
6935
|
function Oi() {
|
|
6936
|
-
return
|
|
6936
|
+
return Er().currentCountry.value;
|
|
6937
6937
|
}
|
|
6938
6938
|
function gd() {
|
|
6939
6939
|
var r;
|
|
6940
|
-
const n = (r =
|
|
6940
|
+
const n = (r = _r()) == null ? void 0 : r.trim().toLowerCase(), t = n && /^[a-z0-9-]+$/.test(n) ? n : xn(), e = Ni(Di("fmmf:dev")).liveDomain;
|
|
6941
6941
|
return `https://${t}.${e}`;
|
|
6942
6942
|
}
|
|
6943
6943
|
function sa(n) {
|
|
@@ -6948,7 +6948,7 @@ function Ye(n) {
|
|
|
6948
6948
|
}
|
|
6949
6949
|
function vs() {
|
|
6950
6950
|
var t;
|
|
6951
|
-
return ((t =
|
|
6951
|
+
return ((t = Er().sessionUser.value) == null ? void 0 : t.token) || xl.token || "";
|
|
6952
6952
|
}
|
|
6953
6953
|
async function Pi() {
|
|
6954
6954
|
let n = vs();
|
|
@@ -6958,11 +6958,13 @@ async function Pi() {
|
|
|
6958
6958
|
return n ? `Bearer ${n}` : null;
|
|
6959
6959
|
}
|
|
6960
6960
|
async function pn(n, t = {}) {
|
|
6961
|
-
var
|
|
6961
|
+
var o, s;
|
|
6962
6962
|
const e = new Request(n, t), r = await Pi();
|
|
6963
6963
|
r && e.headers.set("Authorization", r);
|
|
6964
|
-
const a = (
|
|
6965
|
-
|
|
6964
|
+
const a = (o = Oi()) == null ? void 0 : o.trim().toUpperCase();
|
|
6965
|
+
a && ["MY", "SG", "ID", "MO", "TH"].includes(a) && e.headers.set("x-feedme-country", a);
|
|
6966
|
+
const i = (s = _r()) == null ? void 0 : s.trim().toLowerCase();
|
|
6967
|
+
return i && e.headers.set("x-feedme-business-slug", i), fetch(e);
|
|
6966
6968
|
}
|
|
6967
6969
|
async function st(n, t = {}) {
|
|
6968
6970
|
const e = new Headers(t.headers);
|
|
@@ -7284,7 +7286,7 @@ function Fd(n) {
|
|
|
7284
7286
|
|
|
7285
7287
|
`);
|
|
7286
7288
|
}
|
|
7287
|
-
const
|
|
7289
|
+
const Ur = /```brandkit-proposal[^\S\n]*\n([\s\S]*?)```/g;
|
|
7288
7290
|
function Ss(n, t) {
|
|
7289
7291
|
let e = n;
|
|
7290
7292
|
for (const r of t.split(".")) {
|
|
@@ -7317,8 +7319,8 @@ function Hd(n) {
|
|
|
7317
7319
|
if (!n.includes("```brandkit-proposal")) return null;
|
|
7318
7320
|
const t = [];
|
|
7319
7321
|
let e = 0, r = !1;
|
|
7320
|
-
|
|
7321
|
-
for (let i =
|
|
7322
|
+
Ur.lastIndex = 0;
|
|
7323
|
+
for (let i = Ur.exec(n); i; i = Ur.exec(n)) {
|
|
7322
7324
|
const o = Ud(i[1] ?? "");
|
|
7323
7325
|
if (!o) continue;
|
|
7324
7326
|
r = !0;
|
|
@@ -8311,7 +8313,7 @@ const Of = {
|
|
|
8311
8313
|
]);
|
|
8312
8314
|
};
|
|
8313
8315
|
}
|
|
8314
|
-
}),
|
|
8316
|
+
}), Rr = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/webp", "image/gif"]), sp = 5 * 1024 * 1024, On = 4;
|
|
8315
8317
|
function ip(n) {
|
|
8316
8318
|
return new Promise((t, e) => {
|
|
8317
8319
|
const r = new FileReader();
|
|
@@ -8320,11 +8322,11 @@ function ip(n) {
|
|
|
8320
8322
|
}
|
|
8321
8323
|
function ji(n) {
|
|
8322
8324
|
var t;
|
|
8323
|
-
return Array.from(((t = n.clipboardData) == null ? void 0 : t.items) ?? []).filter((e) => e.kind === "file" &&
|
|
8325
|
+
return Array.from(((t = n.clipboardData) == null ? void 0 : t.items) ?? []).filter((e) => e.kind === "file" && Rr.has(e.type)).map((e) => e.getAsFile()).filter((e) => !!e);
|
|
8324
8326
|
}
|
|
8325
8327
|
function lp(n) {
|
|
8326
8328
|
var t;
|
|
8327
|
-
return Array.from(((t = n.dataTransfer) == null ? void 0 : t.files) ?? []).filter((e) =>
|
|
8329
|
+
return Array.from(((t = n.dataTransfer) == null ? void 0 : t.files) ?? []).filter((e) => Rr.has(e.type));
|
|
8328
8330
|
}
|
|
8329
8331
|
async function Fi(n, t, e = On) {
|
|
8330
8332
|
const r = [];
|
|
@@ -8466,7 +8468,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8466
8468
|
R && _.value && R.scrollTo({ top: R.scrollHeight }), A = null;
|
|
8467
8469
|
}));
|
|
8468
8470
|
}
|
|
8469
|
-
), Tt(() => i.value.length, (R) => e.setComposerAttachmentCount(R), { immediate: !0 }),
|
|
8471
|
+
), Tt(() => i.value.length, (R) => e.setComposerAttachmentCount(R), { immediate: !0 }), Tr(() => {
|
|
8470
8472
|
A !== null && cancelAnimationFrame(A), e.setComposerAttachmentCount(0);
|
|
8471
8473
|
});
|
|
8472
8474
|
function ne() {
|
|
@@ -8492,7 +8494,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8492
8494
|
function ve(R) {
|
|
8493
8495
|
const O = R.target, V = Array.from(O.files ?? []);
|
|
8494
8496
|
O.value = "";
|
|
8495
|
-
const pe = V.filter((L) =>
|
|
8497
|
+
const pe = V.filter((L) => Rr.has(L.type));
|
|
8496
8498
|
pe.length ? J(pe) : V.length && (o.value = "Only PNG, JPEG, WebP, or GIF images are supported.");
|
|
8497
8499
|
}
|
|
8498
8500
|
function ye(R) {
|
|
@@ -8940,7 +8942,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8940
8942
|
},
|
|
8941
8943
|
emits: ["update"],
|
|
8942
8944
|
setup(n, { emit: t }) {
|
|
8943
|
-
const e = n, r = t, a = ae(!1), i = z(() =>
|
|
8945
|
+
const e = n, r = t, a = ae(!1), i = z(() => $r(e.value)), o = z(() => e.presets.find((E) => xr(e.value, E.value)) ?? null), s = z(() => e.value.trim() || "transparent"), l = z(() => {
|
|
8944
8946
|
const E = e.value.trim();
|
|
8945
8947
|
return E ? i.value ? i.value : E === "transparent" ? "transparent" : E : "none";
|
|
8946
8948
|
}), d = z(() => !!e.value.trim() && !i.value), u = typeof window < "u" && "EyeDropper" in window;
|
|
@@ -9426,7 +9428,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9426
9428
|
},
|
|
9427
9429
|
emits: ["change", "reset", "resetAll"],
|
|
9428
9430
|
setup(n, { emit: t }) {
|
|
9429
|
-
const e = n, r = t, a = z(() => e.presets.filter((I) => I.kind === "color")), i = z(() => e.presets.filter((I) => I.kind === "font")), o = z(() => new Set(xa(e.beforeValues, e.values))), s = z(() => !!e.element.canEditText && e.textValue !== e.beforeText), l = z(() => o.value.size + (s.value ? 1 : 0)), d = z(() =>
|
|
9431
|
+
const e = n, r = t, a = z(() => e.presets.filter((I) => I.kind === "color")), i = z(() => e.presets.filter((I) => I.kind === "font")), o = z(() => new Set(xa(e.beforeValues, e.values))), s = z(() => !!e.element.canEditText && e.textValue !== e.beforeText), l = z(() => o.value.size + (s.value ? 1 : 0)), d = z(() => Cr(e.element)), u = z(() => zu(d.value)), k = z(() => {
|
|
9430
9432
|
var _;
|
|
9431
9433
|
if (d.value !== "media") return null;
|
|
9432
9434
|
const I = e.element.attrs ?? {};
|
|
@@ -9443,7 +9445,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9443
9445
|
}
|
|
9444
9446
|
function v(I) {
|
|
9445
9447
|
const _ = e.beforeValues[I] ?? "";
|
|
9446
|
-
return `Reset to ${(nn(I).control === "color" ?
|
|
9448
|
+
return `Reset to ${(nn(I).control === "color" ? $r(_) ?? _ : _) || "unset"}`;
|
|
9447
9449
|
}
|
|
9448
9450
|
function w(I) {
|
|
9449
9451
|
return Bu(e.element, I) ? `${nn(I).label} — CSS ignores this on an inline element; set Display to block or inline-block first` : nn(I).label;
|
|
@@ -9731,9 +9733,9 @@ function ym() {
|
|
|
9731
9733
|
takeControl: se
|
|
9732
9734
|
};
|
|
9733
9735
|
}
|
|
9734
|
-
let
|
|
9736
|
+
let Hr = null;
|
|
9735
9737
|
function Vi() {
|
|
9736
|
-
return
|
|
9738
|
+
return Hr || (Hr = ym()), Hr;
|
|
9737
9739
|
}
|
|
9738
9740
|
const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-white" }, bm = { class: "flex shrink-0 items-center gap-8 border-b border-fm-color-neutral-gray-100 px-12 py-8" }, vm = ["href"], km = {
|
|
9739
9741
|
key: 0,
|
|
@@ -10097,7 +10099,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10097
10099
|
S.value = "";
|
|
10098
10100
|
const ie = p.value.find((Fe) => Fe.id === _);
|
|
10099
10101
|
if (_ = null, !ie) return;
|
|
10100
|
-
const we = ee.filter((Fe) =>
|
|
10102
|
+
const we = ee.filter((Fe) => Rr.has(Fe.type));
|
|
10101
10103
|
we.length ? Lt(ie, we) : ee.length && (w.value = "Only PNG, JPEG, WebP, or GIF images are supported.");
|
|
10102
10104
|
}
|
|
10103
10105
|
function on() {
|
|
@@ -10235,7 +10237,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10235
10237
|
}), window.addEventListener("message", Mt), window.addEventListener("resize", ze), Dn(() => {
|
|
10236
10238
|
ze(), h.value && typeof ResizeObserver < "u" && (F = new ResizeObserver(ze), F.observe(h.value));
|
|
10237
10239
|
});
|
|
10238
|
-
}),
|
|
10240
|
+
}), Tr(() => {
|
|
10239
10241
|
Te({ type: "annotation-mode", enabled: !1 }), Te({ type: "annotation-clear" }), a.connect(null), He.setExecutor(null), He.detach();
|
|
10240
10242
|
for (const y of je.values())
|
|
10241
10243
|
window.clearTimeout(y.timer), y.reject(new Error("the preview panel was closed"));
|
|
@@ -10376,7 +10378,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10376
10378
|
mr(m("textarea", {
|
|
10377
10379
|
"onUpdate:modelValue": S[4] || (S[4] = (Ce) => J.value.feedback = Ce),
|
|
10378
10380
|
rows: "1",
|
|
10379
|
-
placeholder: fe.value && j(
|
|
10381
|
+
placeholder: fe.value && j(Cr)(fe.value) === "media" ? "Describe the change, or paste/drop the replacement image…" : "Describe what should change here…",
|
|
10380
10382
|
class: "max-h-[124px] w-full resize-none overflow-y-auto rounded-md border border-fm-color-neutral-gray-200 px-[9px] pb-[29px] pt-[7px] fm-typo-en-body-sm-400 outline-none focus:border-fm-color-primary",
|
|
10381
10383
|
onInput: Jt,
|
|
10382
10384
|
onPaste: S[5] || (S[5] = (Ce) => Ct(Ce, J.value)),
|
|
@@ -10744,13 +10746,13 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10744
10746
|
return `${e}=${s}`;
|
|
10745
10747
|
}
|
|
10746
10748
|
}
|
|
10747
|
-
const i = ry(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) :
|
|
10749
|
+
const i = ry(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) : Nr({
|
|
10748
10750
|
allowReserved: n,
|
|
10749
10751
|
name: e,
|
|
10750
10752
|
value: s
|
|
10751
10753
|
})).join(i);
|
|
10752
10754
|
return r === "label" || r === "matrix" ? i + o : o;
|
|
10753
|
-
},
|
|
10755
|
+
}, Nr = ({ allowReserved: n, name: t, value: e }) => {
|
|
10754
10756
|
if (e == null)
|
|
10755
10757
|
return "";
|
|
10756
10758
|
if (typeof e == "object")
|
|
@@ -10776,7 +10778,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10776
10778
|
return d;
|
|
10777
10779
|
}
|
|
10778
10780
|
}
|
|
10779
|
-
const o = sy(r), s = Object.entries(a).map(([l, d]) =>
|
|
10781
|
+
const o = sy(r), s = Object.entries(a).map(([l, d]) => Nr({
|
|
10780
10782
|
allowReserved: n,
|
|
10781
10783
|
name: r === "deepObject" ? `${e}[${l}]` : l,
|
|
10782
10784
|
value: d
|
|
@@ -10807,7 +10809,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10807
10809
|
continue;
|
|
10808
10810
|
}
|
|
10809
10811
|
if (s === "matrix") {
|
|
10810
|
-
e = e.replace(a, `;${
|
|
10812
|
+
e = e.replace(a, `;${Nr({
|
|
10811
10813
|
name: o,
|
|
10812
10814
|
value: l
|
|
10813
10815
|
})}`);
|
|
@@ -10850,7 +10852,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10850
10852
|
});
|
|
10851
10853
|
l && i.push(l);
|
|
10852
10854
|
} else {
|
|
10853
|
-
const l =
|
|
10855
|
+
const l = Nr({
|
|
10854
10856
|
allowReserved: n,
|
|
10855
10857
|
name: o,
|
|
10856
10858
|
value: s
|
|
@@ -10924,7 +10926,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
10924
10926
|
}
|
|
10925
10927
|
return t;
|
|
10926
10928
|
};
|
|
10927
|
-
let
|
|
10929
|
+
let Wr = class {
|
|
10928
10930
|
constructor() {
|
|
10929
10931
|
B(this, "_fns");
|
|
10930
10932
|
this._fns = [];
|
|
@@ -10952,9 +10954,9 @@ let Hr = class {
|
|
|
10952
10954
|
}
|
|
10953
10955
|
};
|
|
10954
10956
|
const fy = () => ({
|
|
10955
|
-
error: new
|
|
10956
|
-
request: new
|
|
10957
|
-
response: new
|
|
10957
|
+
error: new Wr(),
|
|
10958
|
+
request: new Wr(),
|
|
10959
|
+
response: new Wr()
|
|
10958
10960
|
}), py = Yi({
|
|
10959
10961
|
allowReserved: !1,
|
|
10960
10962
|
array: {
|
|
@@ -12131,13 +12133,13 @@ const jy = ({ onRequest: n, onSseError: t, onSseEvent: e, responseTransformer: r
|
|
|
12131
12133
|
return `${e}=${s}`;
|
|
12132
12134
|
}
|
|
12133
12135
|
}
|
|
12134
|
-
const i = Fy(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) :
|
|
12136
|
+
const i = Fy(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) : Dr({
|
|
12135
12137
|
allowReserved: n,
|
|
12136
12138
|
name: e,
|
|
12137
12139
|
value: s
|
|
12138
12140
|
})).join(i);
|
|
12139
12141
|
return r === "label" || r === "matrix" ? i + o : o;
|
|
12140
|
-
},
|
|
12142
|
+
}, Dr = ({ allowReserved: n, name: t, value: e }) => {
|
|
12141
12143
|
if (e == null)
|
|
12142
12144
|
return "";
|
|
12143
12145
|
if (typeof e == "object")
|
|
@@ -12163,7 +12165,7 @@ const jy = ({ onRequest: n, onSseError: t, onSseEvent: e, responseTransformer: r
|
|
|
12163
12165
|
return d;
|
|
12164
12166
|
}
|
|
12165
12167
|
}
|
|
12166
|
-
const o = Hy(r), s = Object.entries(a).map(([l, d]) =>
|
|
12168
|
+
const o = Hy(r), s = Object.entries(a).map(([l, d]) => Dr({
|
|
12167
12169
|
allowReserved: n,
|
|
12168
12170
|
name: r === "deepObject" ? `${e}[${l}]` : l,
|
|
12169
12171
|
value: d
|
|
@@ -12194,7 +12196,7 @@ const jy = ({ onRequest: n, onSseError: t, onSseEvent: e, responseTransformer: r
|
|
|
12194
12196
|
continue;
|
|
12195
12197
|
}
|
|
12196
12198
|
if (s === "matrix") {
|
|
12197
|
-
e = e.replace(a, `;${
|
|
12199
|
+
e = e.replace(a, `;${Dr({
|
|
12198
12200
|
name: o,
|
|
12199
12201
|
value: l
|
|
12200
12202
|
})}`);
|
|
@@ -12253,7 +12255,7 @@ const Ky = async (n, t) => {
|
|
|
12253
12255
|
});
|
|
12254
12256
|
l && a.push(l);
|
|
12255
12257
|
} else {
|
|
12256
|
-
const l =
|
|
12258
|
+
const l = Dr({
|
|
12257
12259
|
allowReserved: s.allowReserved,
|
|
12258
12260
|
name: i,
|
|
12259
12261
|
value: o
|
|
@@ -12332,7 +12334,7 @@ const Ky = async (n, t) => {
|
|
|
12332
12334
|
}
|
|
12333
12335
|
return t;
|
|
12334
12336
|
};
|
|
12335
|
-
class
|
|
12337
|
+
class Gr {
|
|
12336
12338
|
constructor() {
|
|
12337
12339
|
B(this, "fns", []);
|
|
12338
12340
|
}
|
|
@@ -12359,9 +12361,9 @@ class Wr {
|
|
|
12359
12361
|
}
|
|
12360
12362
|
}
|
|
12361
12363
|
const eg = () => ({
|
|
12362
|
-
error: new
|
|
12363
|
-
request: new
|
|
12364
|
-
response: new
|
|
12364
|
+
error: new Gr(),
|
|
12365
|
+
request: new Gr(),
|
|
12366
|
+
response: new Gr()
|
|
12365
12367
|
}), tg = al({
|
|
12366
12368
|
allowReserved: !1,
|
|
12367
12369
|
array: {
|
|
@@ -16974,7 +16976,7 @@ class vb extends ce {
|
|
|
16974
16976
|
return this._projectCopy ?? (this._projectCopy = new bb({ client: this.client }));
|
|
16975
16977
|
}
|
|
16976
16978
|
}
|
|
16977
|
-
const
|
|
16979
|
+
const Sr = class Sr extends ce {
|
|
16978
16980
|
constructor(e) {
|
|
16979
16981
|
super(e);
|
|
16980
16982
|
B(this, "_auth");
|
|
@@ -17004,7 +17006,7 @@ const _r = class _r extends ce {
|
|
|
17004
17006
|
B(this, "_sync");
|
|
17005
17007
|
B(this, "_tui");
|
|
17006
17008
|
B(this, "_v2");
|
|
17007
|
-
|
|
17009
|
+
Sr.__registry.set(this, e == null ? void 0 : e.key);
|
|
17008
17010
|
}
|
|
17009
17011
|
get auth() {
|
|
17010
17012
|
return this._auth ?? (this._auth = new og({ client: this.client }));
|
|
@@ -17088,8 +17090,8 @@ const _r = class _r extends ce {
|
|
|
17088
17090
|
return this._v2 ?? (this._v2 = new vb({ client: this.client }));
|
|
17089
17091
|
}
|
|
17090
17092
|
};
|
|
17091
|
-
B(
|
|
17092
|
-
let la =
|
|
17093
|
+
B(Sr, "__registry", new lg());
|
|
17094
|
+
let la = Sr;
|
|
17093
17095
|
function kb(n, t, e) {
|
|
17094
17096
|
if (n)
|
|
17095
17097
|
return t && (n === t || e && n === e(t)) ? t : n;
|
|
@@ -17816,7 +17818,7 @@ function Pb(n) {
|
|
|
17816
17818
|
t = Date.now();
|
|
17817
17819
|
for (const o of qs) window.addEventListener(o, a, { passive: !0 });
|
|
17818
17820
|
r = window.setInterval(i, Db);
|
|
17819
|
-
}),
|
|
17821
|
+
}), Tr(() => {
|
|
17820
17822
|
for (const o of qs) window.removeEventListener(o, a);
|
|
17821
17823
|
r !== null && window.clearInterval(r);
|
|
17822
17824
|
});
|
|
@@ -17862,10 +17864,10 @@ function Lb(n) {
|
|
|
17862
17864
|
}
|
|
17863
17865
|
return { start: o, cancel: a, dispose: i };
|
|
17864
17866
|
}
|
|
17865
|
-
function
|
|
17867
|
+
function Vr(n) {
|
|
17866
17868
|
return n === "active" ? "success" : n === "needs_attention" ? "warning" : "neutral";
|
|
17867
17869
|
}
|
|
17868
|
-
function
|
|
17870
|
+
function Kr(n) {
|
|
17869
17871
|
return n === "active" ? "Active" : n === "needs_attention" ? "Needs attention" : "Archived";
|
|
17870
17872
|
}
|
|
17871
17873
|
function qb(n) {
|
|
@@ -17911,7 +17913,7 @@ function Hb(n) {
|
|
|
17911
17913
|
return n === "ready" ? "success" : n === "error" ? "error" : n === "idle" ? "neutral" : "warning";
|
|
17912
17914
|
}
|
|
17913
17915
|
function Wb() {
|
|
17914
|
-
const n = ae(xn() ||
|
|
17916
|
+
const n = ae(xn() || aa), t = ae(null), e = ae([]), r = ae([]), a = ae(null), i = ae([]), o = ae(!1), s = ae(!1), l = ae("Project ready"), d = ae(null), u = ae(null), k = z(() => r.value[0] ?? null), h = z(() => {
|
|
17915
17917
|
var L;
|
|
17916
17918
|
return ((L = t.value) == null ? void 0 : L.provisioningStatus) === "ready";
|
|
17917
17919
|
}), E = z(() => {
|
|
@@ -17920,7 +17922,7 @@ function Wb() {
|
|
|
17920
17922
|
}), p = Lb({ intervalMs: 3e3, maxAttempts: 40 });
|
|
17921
17923
|
kl(p.dispose);
|
|
17922
17924
|
function v() {
|
|
17923
|
-
n.value = xn() || n.value ||
|
|
17925
|
+
n.value = xn() || n.value || aa;
|
|
17924
17926
|
}
|
|
17925
17927
|
async function w() {
|
|
17926
17928
|
v();
|
|
@@ -17933,7 +17935,7 @@ function Wb() {
|
|
|
17933
17935
|
const L = await st(_e.provision(n.value), {
|
|
17934
17936
|
method: "POST",
|
|
17935
17937
|
body: JSON.stringify({
|
|
17936
|
-
businessSlug:
|
|
17938
|
+
businessSlug: _r(),
|
|
17937
17939
|
businessName: yd(),
|
|
17938
17940
|
country: Oi()
|
|
17939
17941
|
}),
|
|
@@ -17993,7 +17995,7 @@ function Wb() {
|
|
|
17993
17995
|
{
|
|
17994
17996
|
method: "POST",
|
|
17995
17997
|
body: JSON.stringify({
|
|
17996
|
-
businessSlug:
|
|
17998
|
+
businessSlug: _r(),
|
|
17997
17999
|
archiveCodeAction: L.archiveCodeAction
|
|
17998
18000
|
}),
|
|
17999
18001
|
// Creating a workspace archives the previous one, including a final
|
|
@@ -18280,10 +18282,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18280
18282
|
}, Ik = { class: "flex shrink-0 items-center gap-4" }, Ak = {
|
|
18281
18283
|
key: 0,
|
|
18282
18284
|
class: "flex flex-col items-center gap-8 rounded-lg border border-dashed border-fm-color-neutral-gray-200 p-24 text-center"
|
|
18283
|
-
}, zs = "mpv2:sidebar-collapsed",
|
|
18285
|
+
}, zs = "mpv2:sidebar-collapsed", Zr = "mpv2:chat-column-width", Ck = 440, cr = 320, Yr = 720, $k = 360, Rk = 30 * 60 * 1e3, Nk = /* @__PURE__ */ ut({
|
|
18284
18286
|
__name: "ControlPlaneView",
|
|
18285
18287
|
setup(n) {
|
|
18286
|
-
const t =
|
|
18288
|
+
const t = Er(), e = Nb(), r = Wb(), a = Bs(), i = ae("workspace"), o = ae(!1), s = ae(Gi(zs, !1)), l = ae(!1), d = ae(null), u = ae(um(Zr, Ck)), k = ae(!1);
|
|
18287
18289
|
let h = null, E = null, p = null, v = "", w = "", I = null;
|
|
18288
18290
|
const _ = z(() => r.sessions.find((c) => c.status === "active") ?? null), A = ae(!1), C = ae(!1), N = ae(!1), F = ae(!1), se = ae(!1), H = z(
|
|
18289
18291
|
() => r.sessions.find((c) => c.id === e.workspaceSessionId) ?? _.value
|
|
@@ -18323,14 +18325,14 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18323
18325
|
function qe() {
|
|
18324
18326
|
var b;
|
|
18325
18327
|
const c = ((b = d.value) == null ? void 0 : b.clientWidth) ?? 0;
|
|
18326
|
-
return c ? Math.max(cr, Math.min(
|
|
18328
|
+
return c ? Math.max(cr, Math.min(Yr, c - $k)) : Yr;
|
|
18327
18329
|
}
|
|
18328
18330
|
function ze(c) {
|
|
18329
18331
|
return Math.round(Math.min(qe(), Math.max(cr, c)));
|
|
18330
18332
|
}
|
|
18331
18333
|
function He(c, b = !1) {
|
|
18332
18334
|
const P = ze(c);
|
|
18333
|
-
u.value !== P && (u.value = P), b && fr(
|
|
18335
|
+
u.value !== P && (u.value = P), b && fr(Zr, String(P));
|
|
18334
18336
|
}
|
|
18335
18337
|
function mt() {
|
|
18336
18338
|
s.value = !s.value, fr(zs, s.value ? "1" : "0"), requestAnimationFrame(() => He(u.value));
|
|
@@ -18352,7 +18354,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18352
18354
|
E && He(E.startWidth + c.clientX - E.startX);
|
|
18353
18355
|
}
|
|
18354
18356
|
function Te() {
|
|
18355
|
-
E && (E = null, k.value = !1, document.body.style.cursor = v, document.body.style.userSelect = w, fr(
|
|
18357
|
+
E && (E = null, k.value = !1, document.body.style.cursor = v, document.body.style.userSelect = w, fr(Zr, String(u.value)), window.removeEventListener("pointermove", dt), window.removeEventListener("pointerup", Te), window.removeEventListener("pointercancel", Te));
|
|
18356
18358
|
}
|
|
18357
18359
|
function G(c) {
|
|
18358
18360
|
c.key === "ArrowLeft" || c.key === "ArrowRight" ? (c.preventDefault(), He(u.value + (c.key === "ArrowRight" ? 32 : -32), !0)) : c.key === "Home" ? (c.preventDefault(), He(cr, !0)) : c.key === "End" && (c.preventDefault(), He(qe(), !0));
|
|
@@ -18403,7 +18405,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18403
18405
|
typeof window < "u" && (p = window.matchMedia("(max-width: 960px)"), Et(), p.addEventListener("change", Et)), yt(), I = window.setInterval(() => {
|
|
18404
18406
|
document.visibilityState === "visible" && Y();
|
|
18405
18407
|
}, 15e3);
|
|
18406
|
-
}),
|
|
18408
|
+
}), Tr(() => {
|
|
18407
18409
|
Te(), h == null || h.disconnect(), p == null || p.removeEventListener("change", Et), I !== null && window.clearInterval(I), e.reset();
|
|
18408
18410
|
}), Tt(
|
|
18409
18411
|
() => t.currentBusiness.value,
|
|
@@ -18777,10 +18779,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18777
18779
|
m("span", fv, M(ne.value), 1),
|
|
18778
18780
|
H.value ? (g(), Ie(Ot, {
|
|
18779
18781
|
key: 0,
|
|
18780
|
-
variant: j(
|
|
18782
|
+
variant: j(Vr)(H.value.status)
|
|
18781
18783
|
}, {
|
|
18782
18784
|
default: kt(() => [
|
|
18783
|
-
Ze(M(j(
|
|
18785
|
+
Ze(M(j(Kr)(H.value.status)), 1)
|
|
18784
18786
|
]),
|
|
18785
18787
|
_: 1
|
|
18786
18788
|
}, 8, ["variant"])) : U("", !0),
|
|
@@ -18870,10 +18872,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18870
18872
|
m("div", kv, M(nt(Z.updated_at)), 1)
|
|
18871
18873
|
]),
|
|
18872
18874
|
X(Ot, {
|
|
18873
|
-
variant: j(
|
|
18875
|
+
variant: j(Vr)(Z.status)
|
|
18874
18876
|
}, {
|
|
18875
18877
|
default: kt(() => [
|
|
18876
|
-
Ze(M(j(
|
|
18878
|
+
Ze(M(j(Kr)(Z.status)), 1)
|
|
18877
18879
|
]),
|
|
18878
18880
|
_: 2
|
|
18879
18881
|
}, 1032, ["variant"])
|
|
@@ -18984,7 +18986,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
18984
18986
|
tabindex: "0",
|
|
18985
18987
|
"aria-orientation": "vertical",
|
|
18986
18988
|
"aria-valuemin": cr,
|
|
18987
|
-
"aria-valuemax":
|
|
18989
|
+
"aria-valuemax": Yr,
|
|
18988
18990
|
"aria-valuenow": u.value,
|
|
18989
18991
|
class: "workspace__resizer group relative z-30 flex w-[9px] shrink-0 cursor-col-resize items-stretch justify-center bg-fm-color-neutral-white outline-none",
|
|
18990
18992
|
title: "Resize workspace preview",
|
|
@@ -19236,10 +19238,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
|
|
|
19236
19238
|
]),
|
|
19237
19239
|
m("div", Ik, [
|
|
19238
19240
|
X(Ot, {
|
|
19239
|
-
variant: j(
|
|
19241
|
+
variant: j(Vr)(Z.status)
|
|
19240
19242
|
}, {
|
|
19241
19243
|
default: kt(() => [
|
|
19242
|
-
Ze(M(j(
|
|
19244
|
+
Ze(M(j(Kr)(Z.status)), 1)
|
|
19243
19245
|
]),
|
|
19244
19246
|
_: 2
|
|
19245
19247
|
}, 1032, ["variant"]),
|
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED