@feedmepos/mf-miniprogram-v2 0.1.0-dev.6 → 0.1.0-dev.7

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,7 +1,7 @@
1
1
  var Ni = Object.defineProperty;
2
2
  var Ii = (t, e, n) => e in t ? Ni(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var U = (t, e, n) => Ii(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as Ot, ref as se, computed as te, resolveComponent as Me, openBlock as C, createElementBlock as H, normalizeClass as Ee, createElementVNode as w, createVNode as ae, toDisplayString as Z, createTextVNode as on, createCommentVNode as de, Fragment as Ze, renderList as st, unref as X, createBlock as je, watch as Gt, nextTick as Bn, withModifiers as ln, withDirectives as ps, vModelText as fs, onMounted as hs, onBeforeUnmount as Oi, normalizeStyle as On, withCtx as Sr, reactive as Un, withKeys as Ci } from "vue";
3
+ var B = (t, e, n) => Ii(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as Ot, ref as se, computed as ne, resolveComponent as Me, openBlock as C, createElementBlock as j, normalizeClass as Ee, createElementVNode as x, createVNode as ae, toDisplayString as Z, createTextVNode as Wt, createCommentVNode as de, Fragment as Ze, renderList as st, unref as X, createBlock as je, watch as Gt, nextTick as Bn, withModifiers as ln, withDirectives as ps, vModelText as fs, onMounted as hs, onBeforeUnmount as Oi, normalizeStyle as On, withCtx as Sr, reactive as Un, withKeys as Ci } from "vue";
5
5
  import { useCoreStore as Zn, FeedMeAuth as Mi } from "@feedmepos/mf-common";
6
6
  import { useDialog as Li } from "@feedmepos/ui-library";
7
7
  import { _ as Kn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -33,8 +33,8 @@ var Pi = ((t = "") => {
33
33
  } catch {
34
34
  return !1;
35
35
  }
36
- })(), Le = { 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: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: St((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: St((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: St((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: St((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: St((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: St((t) => new RegExp(`^ {0,${t}}>`)) }, $i = /^(?:[ \t]*(?:\n|$))+/, Di = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, zi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Bi = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Yn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ms = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, bs = oe(ms).replace(/bull/g, Yn).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(), Ui = oe(ms).replace(/bull/g, Yn).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(), Xn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Fi = /^[^\n]+/, Qn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ji = oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Qn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Hi = oe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Yn).getRegex(), gn = "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", Jn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Gi = oe("^ {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", Jn).replace("tag", gn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ys = oe(Xn).replace("hr", Zt).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]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gn).getRegex(), Wi = oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ys).getRegex(), er = { blockquote: Wi, code: Di, def: ji, fences: zi, heading: Bi, hr: Zt, html: Gi, lheading: bs, list: Hi, newline: $i, paragraph: ys, table: mt, text: Fi }, Ar = oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Zt).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", gn).getRegex(), qi = { ...er, lheading: Ui, table: Ar, paragraph: oe(Xn).replace("hr", Zt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ar).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gn).getRegex() }, Zi = { ...er, html: oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Jn).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: mt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: oe(Xn).replace("hr", Zt).replace("heading", ` *#{1,6} *[^
37
- ]`).replace("lheading", bs).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ki = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Vi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xs = /^( {2,}|\\)\n(?!\s*$)/, Yi = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ct = /[\p{P}\p{S}]/u, mn = /[\s\p{P}\p{S}]/u, tr = /[^\s\p{P}\p{S}]/u, Xi = oe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, mn).getRegex(), _s = /(?!~)[\p{P}\p{S}]/u, Qi = /(?!~)[\s\p{P}\p{S}]/u, Ji = /(?:[^\s\p{P}\p{S}]|~)/u, ea = oe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Pi ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ws = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ta = oe(ws, "u").replace(/punct/g, Ct).getRegex(), na = oe(ws, "u").replace(/punct/g, _s).getRegex(), vs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ra = oe(vs, "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, mn).replace(/punct/g, Ct).getRegex(), sa = oe(vs, "gu").replace(/notPunctSpace/g, Ji).replace(/punctSpace/g, Qi).replace(/punct/g, _s).getRegex(), ia = oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, mn).replace(/punct/g, Ct).getRegex(), aa = oe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Ct).getRegex(), oa = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", la = oe(oa, "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, mn).replace(/punct/g, Ct).getRegex(), ca = oe(/\\(punct)/, "gu").replace(/punct/g, Ct).getRegex(), ua = oe(/^<(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(), da = oe(Jn).replace("(?:-->|$)", "-->").getRegex(), pa = oe("^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", da).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), cn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, fa = oe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", cn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ks = oe(/^!?\[(label)\]\[(ref)\]/).replace("label", cn).replace("ref", Qn).getRegex(), Es = oe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Qn).getRegex(), ha = oe("reflink|nolink(?!\\()", "g").replace("reflink", ks).replace("nolink", Es).getRegex(), Rr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nr = { _backpedal: mt, anyPunctuation: ca, autolink: ua, blockSkip: ea, br: xs, code: Vi, del: mt, delLDelim: mt, delRDelim: mt, emStrongLDelim: ta, emStrongRDelimAst: ra, emStrongRDelimUnd: ia, escape: Ki, link: fa, nolink: Es, punctuation: Xi, reflink: ks, reflinkSearch: ha, tag: pa, text: Yi, url: mt }, ga = { ...nr, link: oe(/^!?\[(label)\]\((.*?)\)/).replace("label", cn).getRegex(), reflink: oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", cn).getRegex() }, Fn = { ...nr, emStrongRDelimAst: sa, emStrongLDelim: na, delLDelim: aa, delRDelim: la, url: oe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Rr).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: oe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Rr).getRegex() }, ma = { ...Fn, br: oe(xs).replace("{2,}", "*").getRegex(), text: oe(Fn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, tn = { normal: er, gfm: qi, pedantic: Zi }, Pt = { normal: nr, gfm: Fn, breaks: ma, pedantic: ga }, ba = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Nr = (t) => ba[t];
36
+ })(), Le = { 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: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: St((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: St((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: St((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: St((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: St((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: St((t) => new RegExp(`^ {0,${t}}>`)) }, $i = /^(?:[ \t]*(?:\n|$))+/, Di = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, zi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Bi = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Yn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ms = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, bs = oe(ms).replace(/bull/g, Yn).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(), Ui = oe(ms).replace(/bull/g, Yn).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(), Xn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Fi = /^[^\n]+/, Qn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ji = oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Qn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Hi = oe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Yn).getRegex(), gn = "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", Jn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Gi = oe("^ {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", Jn).replace("tag", gn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ys = oe(Xn).replace("hr", Kt).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]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gn).getRegex(), Wi = oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ys).getRegex(), er = { blockquote: Wi, code: Di, def: ji, fences: zi, heading: Bi, hr: Kt, html: Gi, lheading: bs, list: Hi, newline: $i, paragraph: ys, table: mt, text: Fi }, Ar = oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Kt).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", gn).getRegex(), qi = { ...er, lheading: Ui, table: Ar, paragraph: oe(Xn).replace("hr", Kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ar).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", gn).getRegex() }, Zi = { ...er, html: oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Jn).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: mt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: oe(Xn).replace("hr", Kt).replace("heading", ` *#{1,6} *[^
37
+ ]`).replace("lheading", bs).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ki = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Vi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xs = /^( {2,}|\\)\n(?!\s*$)/, Yi = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ct = /[\p{P}\p{S}]/u, mn = /[\s\p{P}\p{S}]/u, tr = /[^\s\p{P}\p{S}]/u, Xi = oe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, mn).getRegex(), _s = /(?!~)[\p{P}\p{S}]/u, Qi = /(?!~)[\s\p{P}\p{S}]/u, Ji = /(?:[^\s\p{P}\p{S}]|~)/u, ea = oe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Pi ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ws = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ta = oe(ws, "u").replace(/punct/g, Ct).getRegex(), na = oe(ws, "u").replace(/punct/g, _s).getRegex(), vs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ra = oe(vs, "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, mn).replace(/punct/g, Ct).getRegex(), sa = oe(vs, "gu").replace(/notPunctSpace/g, Ji).replace(/punctSpace/g, Qi).replace(/punct/g, _s).getRegex(), ia = oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, mn).replace(/punct/g, Ct).getRegex(), aa = oe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Ct).getRegex(), oa = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", la = oe(oa, "gu").replace(/notPunctSpace/g, tr).replace(/punctSpace/g, mn).replace(/punct/g, Ct).getRegex(), ca = oe(/\\(punct)/, "gu").replace(/punct/g, Ct).getRegex(), ua = oe(/^<(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(), da = oe(Jn).replace("(?:-->|$)", "-->").getRegex(), pa = oe("^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", da).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), cn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, fa = oe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", cn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ks = oe(/^!?\[(label)\]\[(ref)\]/).replace("label", cn).replace("ref", Qn).getRegex(), Es = oe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Qn).getRegex(), ha = oe("reflink|nolink(?!\\()", "g").replace("reflink", ks).replace("nolink", Es).getRegex(), Rr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nr = { _backpedal: mt, anyPunctuation: ca, autolink: ua, blockSkip: ea, br: xs, code: Vi, del: mt, delLDelim: mt, delRDelim: mt, emStrongLDelim: ta, emStrongRDelimAst: ra, emStrongRDelimUnd: ia, escape: Ki, link: fa, nolink: Es, punctuation: Xi, reflink: ks, reflinkSearch: ha, tag: pa, text: Yi, url: mt }, ga = { ...nr, link: oe(/^!?\[(label)\]\((.*?)\)/).replace("label", cn).getRegex(), reflink: oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", cn).getRegex() }, Fn = { ...nr, emStrongRDelimAst: sa, emStrongLDelim: na, delLDelim: aa, delRDelim: la, url: oe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Rr).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: oe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Rr).getRegex() }, ma = { ...Fn, br: oe(xs).replace("{2,}", "*").getRegex(), text: oe(Fn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, nn = { normal: er, gfm: qi, pedantic: Zi }, Pt = { normal: nr, gfm: Fn, breaks: ma, pedantic: ga }, ba = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Nr = (t) => ba[t];
38
38
  function Qe(t, e) {
39
39
  if (e) {
40
40
  if (Le.escapeTest.test(t)) return t.replace(Le.escapeReplace, Nr);
@@ -113,9 +113,9 @@ function _a(t, e, n) {
113
113
  }
114
114
  var un = class {
115
115
  constructor(t) {
116
- U(this, "options");
117
- U(this, "rules");
118
- U(this, "lexer");
116
+ B(this, "options");
117
+ B(this, "rules");
118
+ B(this, "lexer");
119
119
  this.options = t || xt;
120
120
  }
121
121
  space(t) {
@@ -176,16 +176,16 @@ ${p}` : p;
176
176
  let b = a.at(-1);
177
177
  if ((b == null ? void 0 : b.type) === "code") break;
178
178
  if ((b == null ? void 0 : b.type) === "blockquote") {
179
- let O = b, x = O.raw + `
179
+ let O = b, w = O.raw + `
180
180
  ` + n.join(`
181
- `), M = this.blockquote(x);
181
+ `), M = this.blockquote(w);
182
182
  a[a.length - 1] = M, r = r.substring(0, r.length - O.raw.length) + M.raw, s = s.substring(0, s.length - O.text.length) + M.text;
183
183
  break;
184
184
  } else if ((b == null ? void 0 : b.type) === "list") {
185
- let O = b, x = O.raw + `
185
+ let O = b, w = O.raw + `
186
186
  ` + n.join(`
187
- `), M = this.list(x);
188
- a[a.length - 1] = M, r = r.substring(0, r.length - b.raw.length) + M.raw, s = s.substring(0, s.length - O.raw.length) + M.raw, n = x.substring(a.at(-1).raw.length).split(`
187
+ `), M = this.list(w);
188
+ a[a.length - 1] = M, r = r.substring(0, r.length - b.raw.length) + M.raw, s = s.substring(0, s.length - O.raw.length) + M.raw, n = w.substring(a.at(-1).raw.length).split(`
189
189
  `);
190
190
  continue;
191
191
  }
@@ -205,23 +205,23 @@ ${p}` : p;
205
205
  d = e[0], t = t.substring(d.length);
206
206
  let m = xa(e[2].split(`
207
207
  `, 1)[0], e[1].length), b = t.split(`
208
- `, 1)[0], O = !m.trim(), x = 0;
209
- if (this.options.pedantic ? (x = 2, p = m.trimStart()) : O ? x = e[1].length + 1 : (x = m.search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, p = m.slice(x), x += e[1].length), O && this.rules.other.blankLine.test(b) && (d += b + `
208
+ `, 1)[0], O = !m.trim(), w = 0;
209
+ if (this.options.pedantic ? (w = 2, p = m.trimStart()) : O ? w = e[1].length + 1 : (w = m.search(this.rules.other.nonSpaceChar), w = w > 4 ? 1 : w, p = m.slice(w), w += e[1].length), O && this.rules.other.blankLine.test(b) && (d += b + `
210
210
  `, t = t.substring(b.length + 1), i = !0), !i) {
211
- let M = this.rules.other.nextBulletRegex(x), I = this.rules.other.hrRegex(x), Q = this.rules.other.fencesBeginRegex(x), G = this.rules.other.headingBeginRegex(x), W = this.rules.other.htmlBeginRegex(x), $ = this.rules.other.blockquoteBeginRegex(x);
211
+ let M = this.rules.other.nextBulletRegex(w), I = this.rules.other.hrRegex(w), Q = this.rules.other.fencesBeginRegex(w), H = this.rules.other.headingBeginRegex(w), G = this.rules.other.htmlBeginRegex(w), $ = this.rules.other.blockquoteBeginRegex(w);
212
212
  for (; t; ) {
213
213
  let K = t.split(`
214
214
  `, 1)[0], q;
215
- if (b = K, this.options.pedantic ? (b = b.replace(this.rules.other.listReplaceNesting, " "), q = b) : q = b.replace(this.rules.other.tabCharGlobal, " "), Q.test(b) || G.test(b) || W.test(b) || $.test(b) || M.test(b) || I.test(b)) break;
216
- if (q.search(this.rules.other.nonSpaceChar) >= x || !b.trim()) p += `
217
- ` + q.slice(x);
215
+ if (b = K, this.options.pedantic ? (b = b.replace(this.rules.other.listReplaceNesting, " "), q = b) : q = b.replace(this.rules.other.tabCharGlobal, " "), Q.test(b) || H.test(b) || G.test(b) || $.test(b) || M.test(b) || I.test(b)) break;
216
+ if (q.search(this.rules.other.nonSpaceChar) >= w || !b.trim()) p += `
217
+ ` + q.slice(w);
218
218
  else {
219
- if (O || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Q.test(m) || G.test(m) || I.test(m)) break;
219
+ if (O || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Q.test(m) || H.test(m) || I.test(m)) break;
220
220
  p += `
221
221
  ` + b;
222
222
  }
223
223
  O = !b.trim(), d += K + `
224
- `, t = t.substring(K.length + 1), m = q.slice(x);
224
+ `, t = t.substring(K.length + 1), m = q.slice(w);
225
225
  }
226
226
  }
227
227
  s.loose || (l ? s.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (l = !0)), s.items.push({ type: "list_item", raw: d, task: !!this.options.gfm && this.rules.other.listIsTask.test(p), loose: !1, text: p, tokens: [] }), s.raw += d;
@@ -434,17 +434,17 @@ ${p}` : p;
434
434
  }
435
435
  }, We = class jn {
436
436
  constructor(e) {
437
- U(this, "tokens");
438
- U(this, "options");
439
- U(this, "state");
440
- U(this, "inlineQueue");
441
- U(this, "tokenizer");
437
+ B(this, "tokens");
438
+ B(this, "options");
439
+ B(this, "state");
440
+ B(this, "inlineQueue");
441
+ B(this, "tokenizer");
442
442
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || xt, this.options.tokenizer = this.options.tokenizer || new un(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
443
- let n = { other: Le, block: tn.normal, inline: Pt.normal };
444
- this.options.pedantic ? (n.block = tn.pedantic, n.inline = Pt.pedantic) : this.options.gfm && (n.block = tn.gfm, this.options.breaks ? n.inline = Pt.breaks : n.inline = Pt.gfm), this.tokenizer.rules = n;
443
+ let n = { other: Le, block: nn.normal, inline: Pt.normal };
444
+ this.options.pedantic ? (n.block = nn.pedantic, n.inline = Pt.pedantic) : this.options.gfm && (n.block = nn.gfm, this.options.breaks ? n.inline = Pt.breaks : n.inline = Pt.gfm), this.tokenizer.rules = n;
445
445
  }
446
446
  static get rules() {
447
- return { block: tn, inline: Pt };
447
+ return { block: nn, inline: Pt };
448
448
  }
449
449
  static lex(e, n) {
450
450
  return new jn(n).lex(e);
@@ -569,8 +569,8 @@ ${p}` : p;
569
569
  this.tokenizer.lexer = this;
570
570
  let r = e, s = null;
571
571
  if (this.tokens.links) {
572
- let x = Object.keys(this.tokens.links);
573
- if (x.length > 0) for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(r)) !== null; ) x.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
572
+ let w = Object.keys(this.tokens.links);
573
+ if (w.length > 0) for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(r)) !== null; ) w.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
574
574
  }
575
575
  for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(r)) !== null; ) r = r.slice(0, s.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
576
576
  let a;
@@ -584,61 +584,61 @@ ${p}` : p;
584
584
  break;
585
585
  }
586
586
  l || (o = ""), l = !1;
587
- let x;
588
- if ((b = (m = this.options.extensions) == null ? void 0 : m.inline) != null && b.some((I) => (x = I.call({ lexer: this }, e, n)) ? (e = e.substring(x.raw.length), n.push(x), !0) : !1)) continue;
589
- if (x = this.tokenizer.escape(e)) {
590
- e = e.substring(x.raw.length), n.push(x);
587
+ let w;
588
+ if ((b = (m = this.options.extensions) == null ? void 0 : m.inline) != null && b.some((I) => (w = I.call({ lexer: this }, e, n)) ? (e = e.substring(w.raw.length), n.push(w), !0) : !1)) continue;
589
+ if (w = this.tokenizer.escape(e)) {
590
+ e = e.substring(w.raw.length), n.push(w);
591
591
  continue;
592
592
  }
593
- if (x = this.tokenizer.tag(e)) {
594
- e = e.substring(x.raw.length), n.push(x);
593
+ if (w = this.tokenizer.tag(e)) {
594
+ e = e.substring(w.raw.length), n.push(w);
595
595
  continue;
596
596
  }
597
- if (x = this.tokenizer.link(e)) {
598
- e = e.substring(x.raw.length), n.push(x);
597
+ if (w = this.tokenizer.link(e)) {
598
+ e = e.substring(w.raw.length), n.push(w);
599
599
  continue;
600
600
  }
601
- if (x = this.tokenizer.reflink(e, this.tokens.links)) {
602
- e = e.substring(x.raw.length);
601
+ if (w = this.tokenizer.reflink(e, this.tokens.links)) {
602
+ e = e.substring(w.raw.length);
603
603
  let I = n.at(-1);
604
- x.type === "text" && (I == null ? void 0 : I.type) === "text" ? (I.raw += x.raw, I.text += x.text) : n.push(x);
604
+ w.type === "text" && (I == null ? void 0 : I.type) === "text" ? (I.raw += w.raw, I.text += w.text) : n.push(w);
605
605
  continue;
606
606
  }
607
- if (x = this.tokenizer.emStrong(e, r, o)) {
608
- e = e.substring(x.raw.length), n.push(x);
607
+ if (w = this.tokenizer.emStrong(e, r, o)) {
608
+ e = e.substring(w.raw.length), n.push(w);
609
609
  continue;
610
610
  }
611
- if (x = this.tokenizer.codespan(e)) {
612
- e = e.substring(x.raw.length), n.push(x);
611
+ if (w = this.tokenizer.codespan(e)) {
612
+ e = e.substring(w.raw.length), n.push(w);
613
613
  continue;
614
614
  }
615
- if (x = this.tokenizer.br(e)) {
616
- e = e.substring(x.raw.length), n.push(x);
615
+ if (w = this.tokenizer.br(e)) {
616
+ e = e.substring(w.raw.length), n.push(w);
617
617
  continue;
618
618
  }
619
- if (x = this.tokenizer.del(e, r, o)) {
620
- e = e.substring(x.raw.length), n.push(x);
619
+ if (w = this.tokenizer.del(e, r, o)) {
620
+ e = e.substring(w.raw.length), n.push(w);
621
621
  continue;
622
622
  }
623
- if (x = this.tokenizer.autolink(e)) {
624
- e = e.substring(x.raw.length), n.push(x);
623
+ if (w = this.tokenizer.autolink(e)) {
624
+ e = e.substring(w.raw.length), n.push(w);
625
625
  continue;
626
626
  }
627
- if (!this.state.inLink && (x = this.tokenizer.url(e))) {
628
- e = e.substring(x.raw.length), n.push(x);
627
+ if (!this.state.inLink && (w = this.tokenizer.url(e))) {
628
+ e = e.substring(w.raw.length), n.push(w);
629
629
  continue;
630
630
  }
631
631
  let M = e;
632
632
  if ((O = this.options.extensions) != null && O.startInline) {
633
- let I = 1 / 0, Q = e.slice(1), G;
634
- this.options.extensions.startInline.forEach((W) => {
635
- G = W.call({ lexer: this }, Q), typeof G == "number" && G >= 0 && (I = Math.min(I, G));
633
+ let I = 1 / 0, Q = e.slice(1), H;
634
+ this.options.extensions.startInline.forEach((G) => {
635
+ H = G.call({ lexer: this }, Q), typeof H == "number" && H >= 0 && (I = Math.min(I, H));
636
636
  }), I < 1 / 0 && I >= 0 && (M = e.substring(0, I + 1));
637
637
  }
638
- if (x = this.tokenizer.inlineText(M)) {
639
- e = e.substring(x.raw.length), x.raw.slice(-1) !== "_" && (o = x.raw.slice(-1)), l = !0;
638
+ if (w = this.tokenizer.inlineText(M)) {
639
+ e = e.substring(w.raw.length), w.raw.slice(-1) !== "_" && (o = w.raw.slice(-1)), l = !0;
640
640
  let I = n.at(-1);
641
- (I == null ? void 0 : I.type) === "text" ? (I.raw += x.raw, I.text += x.text) : n.push(x);
641
+ (I == null ? void 0 : I.type) === "text" ? (I.raw += w.raw, I.text += w.text) : n.push(w);
642
642
  continue;
643
643
  }
644
644
  if (e) {
@@ -655,8 +655,8 @@ ${p}` : p;
655
655
  }
656
656
  }, dn = class {
657
657
  constructor(t) {
658
- U(this, "options");
659
- U(this, "parser");
658
+ B(this, "options");
659
+ B(this, "parser");
660
660
  this.options = t || xt;
661
661
  }
662
662
  space(t) {
@@ -804,9 +804,9 @@ ${t}</tr>
804
804
  }
805
805
  }, qe = class Hn {
806
806
  constructor(e) {
807
- U(this, "options");
808
- U(this, "renderer");
809
- U(this, "textRenderer");
807
+ B(this, "options");
808
+ B(this, "renderer");
809
+ B(this, "textRenderer");
810
810
  this.options = e || xt, this.options.renderer = this.options.renderer || new dn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new rr();
811
811
  }
812
812
  static parse(e, n) {
@@ -955,10 +955,10 @@ ${t}</tr>
955
955
  }
956
956
  return r;
957
957
  }
958
- }, an, Ut = (an = class {
958
+ }, on, Ut = (on = class {
959
959
  constructor(t) {
960
- U(this, "options");
961
- U(this, "block");
960
+ B(this, "options");
961
+ B(this, "block");
962
962
  this.options = t || xt;
963
963
  }
964
964
  preprocess(t) {
@@ -979,18 +979,18 @@ ${t}</tr>
979
979
  provideParser(t = this.block) {
980
980
  return t ? qe.parse : qe.parseInline;
981
981
  }
982
- }, U(an, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), U(an, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), an), Ts = class {
982
+ }, B(on, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), B(on, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), on), Ts = class {
983
983
  constructor(...t) {
984
- U(this, "defaults", Vn());
985
- U(this, "options", this.setOptions);
986
- U(this, "parse", this.parseMarkdown(!0));
987
- U(this, "parseInline", this.parseMarkdown(!1));
988
- U(this, "Parser", qe);
989
- U(this, "Renderer", dn);
990
- U(this, "TextRenderer", rr);
991
- U(this, "Lexer", We);
992
- U(this, "Tokenizer", un);
993
- U(this, "Hooks", Ut);
984
+ B(this, "defaults", Vn());
985
+ B(this, "options", this.setOptions);
986
+ B(this, "parse", this.parseMarkdown(!0));
987
+ B(this, "parseInline", this.parseMarkdown(!1));
988
+ B(this, "Parser", qe);
989
+ B(this, "Renderer", dn);
990
+ B(this, "TextRenderer", rr);
991
+ B(this, "Lexer", We);
992
+ B(this, "Tokenizer", un);
993
+ B(this, "Hooks", Ut);
994
994
  this.use(...t);
995
995
  }
996
996
  walkTokens(t, e) {
@@ -1415,7 +1415,7 @@ class Na extends sr {
1415
1415
  return this.closeAllNodes(), !0;
1416
1416
  }
1417
1417
  }
1418
- function Wt(t) {
1418
+ function qt(t) {
1419
1419
  return t ? typeof t == "string" ? t : t.source : null;
1420
1420
  }
1421
1421
  function Is(t) {
@@ -1428,14 +1428,14 @@ function Oa(t) {
1428
1428
  return _t("(?:", t, ")?");
1429
1429
  }
1430
1430
  function _t(...t) {
1431
- return t.map((n) => Wt(n)).join("");
1431
+ return t.map((n) => qt(n)).join("");
1432
1432
  }
1433
1433
  function Ca(t) {
1434
1434
  const e = t[t.length - 1];
1435
1435
  return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {};
1436
1436
  }
1437
1437
  function ir(...t) {
1438
- return "(" + (Ca(t).capture ? "" : "?:") + t.map((r) => Wt(r)).join("|") + ")";
1438
+ return "(" + (Ca(t).capture ? "" : "?:") + t.map((r) => qt(r)).join("|") + ")";
1439
1439
  }
1440
1440
  function Os(t) {
1441
1441
  return new RegExp(t.toString() + "|").exec("").length - 1;
@@ -1450,7 +1450,7 @@ function ar(t, { joinWith: e }) {
1450
1450
  return t.map((r) => {
1451
1451
  n += 1;
1452
1452
  const s = n;
1453
- let a = Wt(r), l = "";
1453
+ let a = qt(r), l = "";
1454
1454
  for (; a.length > 0; ) {
1455
1455
  const o = La.exec(a);
1456
1456
  if (!o) {
@@ -1479,7 +1479,7 @@ const Pa = /\b\B/, Cs = "[a-zA-Z]\\w*", or = "[a-zA-Z_]\\w*", Ms = "\\b\\d+(\\.\
1479
1479
  n.index !== 0 && r.ignoreMatch();
1480
1480
  }
1481
1481
  }, t);
1482
- }, qt = {
1482
+ }, Zt = {
1483
1483
  begin: "\\\\[\\s\\S]",
1484
1484
  relevance: 0
1485
1485
  }, za = {
@@ -1487,13 +1487,13 @@ const Pa = /\b\B/, Cs = "[a-zA-Z]\\w*", or = "[a-zA-Z_]\\w*", Ms = "\\b\\d+(\\.\
1487
1487
  begin: "'",
1488
1488
  end: "'",
1489
1489
  illegal: "\\n",
1490
- contains: [qt]
1490
+ contains: [Zt]
1491
1491
  }, Ba = {
1492
1492
  scope: "string",
1493
1493
  begin: '"',
1494
1494
  end: '"',
1495
1495
  illegal: "\\n",
1496
- contains: [qt]
1496
+ contains: [Zt]
1497
1497
  }, Ua = {
1498
1498
  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/
1499
1499
  }, bn = function(t, e, n = {}) {
@@ -1579,12 +1579,12 @@ const Pa = /\b\B/, Cs = "[a-zA-Z]\\w*", or = "[a-zA-Z_]\\w*", Ms = "\\b\\d+(\\.\
1579
1579
  begin: /\/(?=[^/\n]*\/)/,
1580
1580
  end: /\/[gimuy]*/,
1581
1581
  contains: [
1582
- qt,
1582
+ Zt,
1583
1583
  {
1584
1584
  begin: /\[/,
1585
1585
  end: /\]/,
1586
1586
  relevance: 0,
1587
- contains: [qt]
1587
+ contains: [Zt]
1588
1588
  }
1589
1589
  ]
1590
1590
  }, Ka = {
@@ -1614,10 +1614,10 @@ const Pa = /\b\B/, Cs = "[a-zA-Z]\\w*", or = "[a-zA-Z_]\\w*", Ms = "\\b\\d+(\\.\
1614
1614
  }
1615
1615
  );
1616
1616
  };
1617
- var nn = /* @__PURE__ */ Object.freeze({
1617
+ var rn = /* @__PURE__ */ Object.freeze({
1618
1618
  __proto__: null,
1619
1619
  APOS_STRING_MODE: za,
1620
- BACKSLASH_ESCAPE: qt,
1620
+ BACKSLASH_ESCAPE: Zt,
1621
1621
  BINARY_NUMBER_MODE: qa,
1622
1622
  BINARY_NUMBER_RE: Ps,
1623
1623
  COMMENT: bn,
@@ -1752,7 +1752,7 @@ function fo(t) {
1752
1752
  function ho(t) {
1753
1753
  function e(l, o) {
1754
1754
  return new RegExp(
1755
- Wt(l),
1755
+ qt(l),
1756
1756
  "m" + (t.case_insensitive ? "i" : "") + (t.unicodeRegex ? "u" : "") + (o ? "g" : "")
1757
1757
  );
1758
1758
  }
@@ -1837,7 +1837,7 @@ function ho(t) {
1837
1837
  ro
1838
1838
  ].forEach((p) => p(l, o)), l.isCompiled = !0;
1839
1839
  let d = null;
1840
- return typeof l.keywords == "object" && l.keywords.$pattern && (l.keywords = Object.assign({}, l.keywords), d = l.keywords.$pattern, delete l.keywords.$pattern), d = d || /\w+/, l.keywords && (l.keywords = $s(l.keywords, t.case_insensitive)), i.keywordPatternRe = e(d, !0), o && (l.begin || (l.begin = /\B|\b/), i.beginRe = e(i.begin), !l.end && !l.endsWithParent && (l.end = /\B|\b/), l.end && (i.endRe = e(i.end)), i.terminatorEnd = Wt(i.end) || "", l.endsWithParent && o.terminatorEnd && (i.terminatorEnd += (l.end ? "|" : "") + o.terminatorEnd)), l.illegal && (i.illegalRe = e(
1840
+ return typeof l.keywords == "object" && l.keywords.$pattern && (l.keywords = Object.assign({}, l.keywords), d = l.keywords.$pattern, delete l.keywords.$pattern), d = d || /\w+/, l.keywords && (l.keywords = $s(l.keywords, t.case_insensitive)), i.keywordPatternRe = e(d, !0), o && (l.begin || (l.begin = /\B|\b/), i.beginRe = e(i.begin), !l.end && !l.endsWithParent && (l.end = /\B|\b/), l.end && (i.endRe = e(i.end)), i.terminatorEnd = qt(i.end) || "", l.endsWithParent && o.terminatorEnd && (i.terminatorEnd += (l.end ? "|" : "") + o.terminatorEnd)), l.illegal && (i.illegalRe = e(
1841
1841
  /** @type {RegExp | string} */
1842
1842
  l.illegal
1843
1843
  )), l.contains || (l.contains = []), l.contains = [].concat(...l.contains.map(function(p) {
@@ -1895,10 +1895,10 @@ const Cn = Ns, Hr = dt, Gr = Symbol("nomatch"), yo = 7, Bs = function(t) {
1895
1895
  E += g.parentNode ? g.parentNode.className : "";
1896
1896
  const f = o.languageDetectRe.exec(E);
1897
1897
  if (f) {
1898
- const u = ne(f[1]);
1898
+ const u = re(f[1]);
1899
1899
  return u || (jr(a.replace("{}", f[1])), jr("Falling back to no-highlight mode for this block.", g)), u ? f[1] : "no-highlight";
1900
1900
  }
1901
- return E.split(/\s+/).find((u) => i(u) || ne(u));
1901
+ return E.split(/\s+/).find((u) => i(u) || re(u));
1902
1902
  }
1903
1903
  function p(g, E, f) {
1904
1904
  let u = "", _ = "";
@@ -1909,15 +1909,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
1909
1909
  language: _
1910
1910
  };
1911
1911
  D("before:highlight", T);
1912
- const B = T.result ? T.result : m(T.language, T.code, f);
1913
- return B.code = T.code, D("after:highlight", B), B;
1912
+ const W = T.result ? T.result : m(T.language, T.code, f);
1913
+ return W.code = T.code, D("after:highlight", W), W;
1914
1914
  }
1915
1915
  function m(g, E, f, u) {
1916
1916
  const _ = /* @__PURE__ */ Object.create(null);
1917
1917
  function T(N, L) {
1918
1918
  return N.keywords[L];
1919
1919
  }
1920
- function B() {
1920
+ function W() {
1921
1921
  if (!z.keywords) {
1922
1922
  he.addText(k);
1923
1923
  return;
@@ -1927,14 +1927,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
1927
1927
  let L = z.keywordPatternRe.exec(k), Y = "";
1928
1928
  for (; L; ) {
1929
1929
  Y += k.substring(N, L.index);
1930
- const le = j.case_insensitive ? L[0].toLowerCase() : L[0], be = T(z, le);
1930
+ const le = F.case_insensitive ? L[0].toLowerCase() : L[0], be = T(z, le);
1931
1931
  if (be) {
1932
1932
  const [ze, wt] = be;
1933
1933
  if (he.addText(Y), Y = "", _[le] = (_[le] || 0) + 1, _[le] <= yo && (Re += wt), ze.startsWith("_"))
1934
1934
  Y += L[0];
1935
1935
  else {
1936
- const Vt = j.classNameAliases[ze] || ze;
1937
- V(L[0], Vt);
1936
+ const Yt = F.classNameAliases[ze] || ze;
1937
+ V(L[0], Yt);
1938
1938
  }
1939
1939
  } else
1940
1940
  Y += L[0];
@@ -1942,7 +1942,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
1942
1942
  }
1943
1943
  Y += k.substring(N), he.addText(Y);
1944
1944
  }
1945
- function re() {
1945
+ function ee() {
1946
1946
  if (k === "") return;
1947
1947
  let N = null;
1948
1948
  if (typeof z.subLanguage == "string") {
@@ -1957,7 +1957,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
1957
1957
  z.relevance > 0 && (Re += N.relevance), he.__addSublanguage(N._emitter, N.language);
1958
1958
  }
1959
1959
  function ue() {
1960
- z.subLanguage != null ? re() : B(), k = "";
1960
+ z.subLanguage != null ? ee() : W(), k = "";
1961
1961
  }
1962
1962
  function V(N, L) {
1963
1963
  N !== "" && (he.startScope(L), he.addText(N), he.endScope());
@@ -1970,12 +1970,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
1970
1970
  Y++;
1971
1971
  continue;
1972
1972
  }
1973
- const be = j.classNameAliases[N[Y]] || N[Y], ze = L[Y];
1974
- be ? V(ze, be) : (k = ze, B(), k = ""), Y++;
1973
+ const be = F.classNameAliases[N[Y]] || N[Y], ze = L[Y];
1974
+ be ? V(ze, be) : (k = ze, W(), k = ""), Y++;
1975
1975
  }
1976
1976
  }
1977
1977
  function Ue(N, L) {
1978
- return N.scope && typeof N.scope == "string" && he.openNode(j.classNameAliases[N.scope] || N.scope), N.beginScope && (N.beginScope._wrap ? (V(k, j.classNameAliases[N.beginScope._wrap] || N.beginScope._wrap), k = "") : N.beginScope._multi && (Be(N.beginScope, L), k = "")), z = Object.create(N, { parent: { value: z } }), z;
1978
+ return N.scope && typeof N.scope == "string" && he.openNode(F.classNameAliases[N.scope] || N.scope), N.beginScope && (N.beginScope._wrap ? (V(k, F.classNameAliases[N.beginScope._wrap] || N.beginScope._wrap), k = "") : N.beginScope._multi && (Be(N.beginScope, L), k = "")), z = Object.create(N, { parent: { value: z } }), z;
1979
1979
  }
1980
1980
  function pt(N, L, Y) {
1981
1981
  let le = Ma(N.endRe, Y);
@@ -2014,25 +2014,25 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2014
2014
  while (z !== le.parent);
2015
2015
  return le.starts && Ue(le.starts, N), be.returnEnd ? 0 : L.length;
2016
2016
  }
2017
- function F() {
2017
+ function U() {
2018
2018
  const N = [];
2019
- for (let L = z; L !== j; L = L.parent)
2019
+ for (let L = z; L !== F; L = L.parent)
2020
2020
  L.scope && N.unshift(L.scope);
2021
2021
  N.forEach((L) => he.openNode(L));
2022
2022
  }
2023
- let ee = {};
2023
+ let te = {};
2024
2024
  function et(N, L) {
2025
2025
  const Y = L && L[0];
2026
2026
  if (k += N, Y == null)
2027
2027
  return ue(), 0;
2028
- if (ee.type === "begin" && L.type === "end" && ee.index === L.index && Y === "") {
2028
+ if (te.type === "begin" && L.type === "end" && te.index === L.index && Y === "") {
2029
2029
  if (k += E.slice(L.index, L.index + 1), !s) {
2030
2030
  const le = new Error(`0 width match regex (${g})`);
2031
- throw le.languageName = g, le.badRule = ee.rule, le;
2031
+ throw le.languageName = g, le.badRule = te.rule, le;
2032
2032
  }
2033
2033
  return 1;
2034
2034
  }
2035
- if (ee = L, L.type === "begin")
2035
+ if (te = L, L.type === "begin")
2036
2036
  return it(L);
2037
2037
  if (L.type === "illegal" && !f) {
2038
2038
  const le = new Error('Illegal lexeme "' + Y + '" for mode "' + (z.scope || "<unnamed>") + '"');
@@ -2049,17 +2049,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2049
2049
  throw new Error("potential infinite loop, way more iterations than matches");
2050
2050
  return k += Y, Y.length;
2051
2051
  }
2052
- const j = ne(g);
2053
- if (!j)
2052
+ const F = re(g);
2053
+ if (!F)
2054
2054
  throw bt(a.replace("{}", g)), new Error('Unknown language: "' + g + '"');
2055
- const Ke = ho(j);
2055
+ const Ke = ho(F);
2056
2056
  let tt = "", z = u || Ke;
2057
2057
  const at = {}, he = new o.__emitter(o);
2058
- F();
2058
+ U();
2059
2059
  let k = "", Re = 0, Ce = 0, nt = 0, He = !1;
2060
2060
  try {
2061
- if (j.__emitTokens)
2062
- j.__emitTokens(E, he);
2061
+ if (F.__emitTokens)
2062
+ F.__emitTokens(E, he);
2063
2063
  else {
2064
2064
  for (z.matcher.considerAll(); ; ) {
2065
2065
  nt++, He ? He = !1 : z.matcher.considerAll(), z.matcher.lastIndex = Ce;
@@ -2119,23 +2119,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2119
2119
  }
2120
2120
  function O(g, E) {
2121
2121
  E = E || o.languages || Object.keys(e);
2122
- const f = b(g), u = E.filter(ne).filter(ge).map(
2122
+ const f = b(g), u = E.filter(re).filter(ge).map(
2123
2123
  (ue) => m(ue, g, !1)
2124
2124
  );
2125
2125
  u.unshift(f);
2126
2126
  const _ = u.sort((ue, V) => {
2127
2127
  if (ue.relevance !== V.relevance) return V.relevance - ue.relevance;
2128
2128
  if (ue.language && V.language) {
2129
- if (ne(ue.language).supersetOf === V.language)
2129
+ if (re(ue.language).supersetOf === V.language)
2130
2130
  return 1;
2131
- if (ne(V.language).supersetOf === ue.language)
2131
+ if (re(V.language).supersetOf === ue.language)
2132
2132
  return -1;
2133
2133
  }
2134
2134
  return 0;
2135
- }), [T, B] = _, re = T;
2136
- return re.secondBest = B, re;
2135
+ }), [T, W] = _, ee = T;
2136
+ return ee.secondBest = W, ee;
2137
2137
  }
2138
- function x(g, E, f) {
2138
+ function w(g, E, f) {
2139
2139
  const u = E && n[E] || f;
2140
2140
  g.classList.add("hljs"), g.classList.add(`language-${u}`);
2141
2141
  }
@@ -2157,7 +2157,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2157
2157
  );
2158
2158
  E = g;
2159
2159
  const u = E.textContent, _ = f ? p(u, { language: f, ignoreIllegals: !0 }) : O(u);
2160
- g.innerHTML = _.value, g.dataset.highlighted = "yes", x(g, f, _.language), g.result = {
2160
+ g.innerHTML = _.value, g.dataset.highlighted = "yes", w(g, f, _.language), g.result = {
2161
2161
  language: _.language,
2162
2162
  // TODO: remove with version 11.0
2163
2163
  re: _.relevance,
@@ -2173,16 +2173,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2173
2173
  const Q = () => {
2174
2174
  $(), At("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
2175
2175
  };
2176
- function G() {
2176
+ function H() {
2177
2177
  $(), At("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
2178
2178
  }
2179
- let W = !1;
2179
+ let G = !1;
2180
2180
  function $() {
2181
2181
  function g() {
2182
2182
  $();
2183
2183
  }
2184
2184
  if (document.readyState === "loading") {
2185
- W || window.addEventListener("DOMContentLoaded", g, !1), W = !0;
2185
+ G || window.addEventListener("DOMContentLoaded", g, !1), G = !0;
2186
2186
  return;
2187
2187
  }
2188
2188
  document.querySelectorAll(o.cssSelector).forEach(M);
@@ -2208,7 +2208,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2208
2208
  function fe() {
2209
2209
  return Object.keys(e);
2210
2210
  }
2211
- function ne(g) {
2211
+ function re(g) {
2212
2212
  return g = (g || "").toLowerCase(), e[g] || e[n[g]];
2213
2213
  }
2214
2214
  function _e(g, { languageName: E }) {
@@ -2217,7 +2217,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2217
2217
  });
2218
2218
  }
2219
2219
  function ge(g) {
2220
- const E = ne(g);
2220
+ const E = re(g);
2221
2221
  return E && !E.disableAutodetect;
2222
2222
  }
2223
2223
  function we(g) {
@@ -2256,11 +2256,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2256
2256
  highlightBlock: A,
2257
2257
  configure: I,
2258
2258
  initHighlighting: Q,
2259
- initHighlightingOnLoad: G,
2259
+ initHighlightingOnLoad: H,
2260
2260
  registerLanguage: K,
2261
2261
  unregisterLanguage: q,
2262
2262
  listLanguages: fe,
2263
- getLanguage: ne,
2263
+ getLanguage: re,
2264
2264
  registerAliases: _e,
2265
2265
  autoDetection: ge,
2266
2266
  inherit: Hr,
@@ -2277,9 +2277,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = g, u = E), f ===
2277
2277
  optional: Oa,
2278
2278
  anyNumberOfTimes: Ia
2279
2279
  };
2280
- for (const g in nn)
2281
- typeof nn[g] == "object" && Rs(nn[g]);
2282
- return Object.assign(t, nn), t;
2280
+ for (const g in rn)
2281
+ typeof rn[g] == "object" && Rs(rn[g]);
2282
+ return Object.assign(t, rn), t;
2283
2283
  }, It = Bs({});
2284
2284
  It.newInstance = () => Bs({});
2285
2285
  var xo = It;
@@ -2442,7 +2442,7 @@ function $o(t) {
2442
2442
  return !1;
2443
2443
  }
2444
2444
  }
2445
- const Qr = Ie(["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"]), Ln = Ie(["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"]), Pn = Ie(["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"]), Do = Ie(["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"]), $n = Ie(["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"]), zo = Ie(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Jr = Ie(["#text"]), es = Ie(["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"]), Dn = Ie(["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", "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-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"]), ts = Ie(["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"]), rn = Ie(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Bo = Oe(/{{[\w\W]*|^[\w\W]*}}/g), Uo = Oe(/<%[\w\W]*|^[\w\W]*%>/g), Fo = Oe(/\${[\w\W]*/g), jo = Oe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ho = Oe(/^aria-[\-\w]+$/), ns = Oe(
2445
+ const Qr = Ie(["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"]), Ln = Ie(["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"]), Pn = Ie(["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"]), Do = Ie(["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"]), $n = Ie(["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"]), zo = Ie(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Jr = Ie(["#text"]), es = Ie(["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"]), Dn = Ie(["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", "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-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"]), ts = Ie(["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"]), sn = Ie(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Bo = Oe(/{{[\w\W]*|^[\w\W]*}}/g), Uo = Oe(/<%[\w\W]*|^[\w\W]*%>/g), Fo = Oe(/\${[\w\W]*/g), jo = Oe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ho = Oe(/^aria-[\-\w]+$/), ns = Oe(
2446
2446
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2447
2447
  // eslint-disable-line no-useless-escape
2448
2448
  ), Go = Oe(/^(?:\w+script|data):/i), Wo = Oe(
@@ -2510,12 +2510,12 @@ function js() {
2510
2510
  t.DocumentFragment;
2511
2511
  const a = t.HTMLTemplateElement, l = t.Node, o = t.Element, i = t.NodeFilter, d = t.NamedNodeMap;
2512
2512
  d === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
2513
- const p = t.DOMParser, m = t.trustedTypes, b = o.prototype, O = Je(b, "cloneNode"), x = Je(b, "remove"), M = Je(b, "nextSibling"), I = Je(b, "childNodes"), Q = Je(b, "parentNode"), G = Je(b, "shadowRoot"), W = Je(b, "attributes"), $ = l && l.prototype ? Je(l.prototype, "nodeType") : null, K = l && l.prototype ? Je(l.prototype, "nodeName") : null;
2513
+ const p = t.DOMParser, m = t.trustedTypes, b = o.prototype, O = Je(b, "cloneNode"), w = Je(b, "remove"), M = Je(b, "nextSibling"), I = Je(b, "childNodes"), Q = Je(b, "parentNode"), H = Je(b, "shadowRoot"), G = Je(b, "attributes"), $ = l && l.prototype ? Je(l.prototype, "nodeType") : null, K = l && l.prototype ? Je(l.prototype, "nodeName") : null;
2514
2514
  if (typeof a == "function") {
2515
2515
  const R = n.createElement("template");
2516
2516
  R.content && R.content.ownerDocument && (n = R.content.ownerDocument);
2517
2517
  }
2518
- let q, fe = "", ne, _e = !1, ge = 0;
2518
+ let q, fe = "", re, _e = !1, ge = 0;
2519
2519
  const we = function() {
2520
2520
  if (ge > 0)
2521
2521
  throw gt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
@@ -2534,16 +2534,16 @@ function js() {
2534
2534
  ge--;
2535
2535
  }
2536
2536
  }, D = function() {
2537
- return _e || (ne = Qo(m, s), _e = !0), ne;
2537
+ return _e || (re = Qo(m, s), _e = !0), re;
2538
2538
  }, A = n, g = A.implementation, E = A.createNodeIterator, f = A.createDocumentFragment, u = A.getElementsByTagName, _ = r.importNode;
2539
2539
  let T = ss();
2540
2540
  e.isSupported = typeof Us == "function" && typeof Q == "function" && g && g.createHTMLDocument !== void 0;
2541
- const B = Bo, re = Uo, ue = Fo, V = jo, Be = Ho, Ue = Go, pt = Wo, ft = Zo;
2541
+ const W = Bo, ee = Uo, ue = Fo, V = jo, Be = Ho, Ue = Go, pt = Wo, ft = Zo;
2542
2542
  let it = ns, y = null;
2543
- const F = ie({}, [...Qr, ...Ln, ...Pn, ...$n, ...Jr]);
2544
- let ee = null;
2545
- const et = ie({}, [...es, ...Dn, ...ts, ...rn]);
2546
- let j = Object.seal(Nt(null, {
2543
+ const U = ie({}, [...Qr, ...Ln, ...Pn, ...$n, ...Jr]);
2544
+ let te = null;
2545
+ const et = ie({}, [...es, ...Dn, ...ts, ...sn]);
2546
+ let F = Object.seal(Nt(null, {
2547
2547
  tagNameCheck: {
2548
2548
  writable: !0,
2549
2549
  configurable: !1,
@@ -2577,7 +2577,7 @@ function js() {
2577
2577
  value: null
2578
2578
  }
2579
2579
  }));
2580
- let at = !0, he = !0, k = !1, Re = !0, Ce = !1, nt = !0, He = !1, N = !1, L = null, Y = null, le = !1, be = !1, ze = !1, wt = !1, Vt = !0, cr = !1;
2580
+ let at = !0, he = !0, k = !1, Re = !0, Ce = !1, nt = !0, He = !1, N = !1, L = null, Y = null, le = !1, be = !1, ze = !1, wt = !1, Yt = !0, cr = !1;
2581
2581
  const ur = "user-content-";
2582
2582
  let xn = !0, _n = !1, vt = {}, Ve = null;
2583
2583
  const wn = ie({}, [
@@ -2620,9 +2620,9 @@ function js() {
2620
2620
  let dr = null;
2621
2621
  const pr = ie({}, ["audio", "video", "img", "source", "image", "track"]);
2622
2622
  let vn = null;
2623
- const fr = ie({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Yt = "http://www.w3.org/1998/Math/MathML", Xt = "http://www.w3.org/2000/svg", Ye = "http://www.w3.org/1999/xhtml";
2623
+ const fr = ie({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Xt = "http://www.w3.org/1998/Math/MathML", Qt = "http://www.w3.org/2000/svg", Ye = "http://www.w3.org/1999/xhtml";
2624
2624
  let kt = Ye, kn = !1, En = null;
2625
- const fi = ie({}, [Yt, Xt, Ye], Mn), hr = Ie(["mi", "mo", "mn", "ms", "mtext"]);
2625
+ const fi = ie({}, [Xt, Qt, Ye], Mn), hr = Ie(["mi", "mo", "mn", "ms", "mtext"]);
2626
2626
  let Tn = ie({}, hr);
2627
2627
  const gr = Ie(["annotation-xml"]);
2628
2628
  let Sn = ie({}, gr);
@@ -2637,9 +2637,9 @@ function js() {
2637
2637
  if (Et && Et === c)
2638
2638
  return;
2639
2639
  (!c || typeof c != "object") && (c = {}), c = De(c), Mt = // eslint-disable-next-line unicorn/prefer-includes
2640
- gi.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? mi : c.PARSER_MEDIA_TYPE, xe = Mt === "application/xhtml+xml" ? Mn : Ft, y = ct(c, "ALLOWED_TAGS", F, {
2640
+ gi.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? mi : c.PARSER_MEDIA_TYPE, xe = Mt === "application/xhtml+xml" ? Mn : Ft, y = ct(c, "ALLOWED_TAGS", U, {
2641
2641
  transform: xe
2642
- }), ee = ct(c, "ALLOWED_ATTR", et, {
2642
+ }), te = ct(c, "ALLOWED_ATTR", et, {
2643
2643
  transform: xe
2644
2644
  }), En = ct(c, "ALLOWED_NAMESPACES", fi, {
2645
2645
  transform: Mn
@@ -2655,9 +2655,9 @@ function js() {
2655
2655
  transform: xe
2656
2656
  }), tt = ct(c, "FORBID_ATTR", De({}), {
2657
2657
  transform: xe
2658
- }), vt = Se(c, "USE_PROFILES") ? c.USE_PROFILES && typeof c.USE_PROFILES == "object" ? De(c.USE_PROFILES) : c.USE_PROFILES : !1, at = c.ALLOW_ARIA_ATTR !== !1, he = c.ALLOW_DATA_ATTR !== !1, k = c.ALLOW_UNKNOWN_PROTOCOLS || !1, Re = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ce = c.SAFE_FOR_TEMPLATES || !1, nt = c.SAFE_FOR_XML !== !1, He = c.WHOLE_DOCUMENT || !1, be = c.RETURN_DOM || !1, ze = c.RETURN_DOM_FRAGMENT || !1, wt = c.RETURN_TRUSTED_TYPE || !1, le = c.FORCE_BODY || !1, Vt = c.SANITIZE_DOM !== !1, cr = c.SANITIZE_NAMED_PROPS || !1, xn = c.KEEP_CONTENT !== !1, _n = c.IN_PLACE || !1, it = $o(c.ALLOWED_URI_REGEXP) ? c.ALLOWED_URI_REGEXP : ns, kt = typeof c.NAMESPACE == "string" ? c.NAMESPACE : Ye, Tn = Se(c, "MATHML_TEXT_INTEGRATION_POINTS") && c.MATHML_TEXT_INTEGRATION_POINTS && typeof c.MATHML_TEXT_INTEGRATION_POINTS == "object" ? De(c.MATHML_TEXT_INTEGRATION_POINTS) : ie({}, hr), Sn = Se(c, "HTML_INTEGRATION_POINTS") && c.HTML_INTEGRATION_POINTS && typeof c.HTML_INTEGRATION_POINTS == "object" ? De(c.HTML_INTEGRATION_POINTS) : ie({}, gr);
2658
+ }), vt = Se(c, "USE_PROFILES") ? c.USE_PROFILES && typeof c.USE_PROFILES == "object" ? De(c.USE_PROFILES) : c.USE_PROFILES : !1, at = c.ALLOW_ARIA_ATTR !== !1, he = c.ALLOW_DATA_ATTR !== !1, k = c.ALLOW_UNKNOWN_PROTOCOLS || !1, Re = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ce = c.SAFE_FOR_TEMPLATES || !1, nt = c.SAFE_FOR_XML !== !1, He = c.WHOLE_DOCUMENT || !1, be = c.RETURN_DOM || !1, ze = c.RETURN_DOM_FRAGMENT || !1, wt = c.RETURN_TRUSTED_TYPE || !1, le = c.FORCE_BODY || !1, Yt = c.SANITIZE_DOM !== !1, cr = c.SANITIZE_NAMED_PROPS || !1, xn = c.KEEP_CONTENT !== !1, _n = c.IN_PLACE || !1, it = $o(c.ALLOWED_URI_REGEXP) ? c.ALLOWED_URI_REGEXP : ns, kt = typeof c.NAMESPACE == "string" ? c.NAMESPACE : Ye, Tn = Se(c, "MATHML_TEXT_INTEGRATION_POINTS") && c.MATHML_TEXT_INTEGRATION_POINTS && typeof c.MATHML_TEXT_INTEGRATION_POINTS == "object" ? De(c.MATHML_TEXT_INTEGRATION_POINTS) : ie({}, hr), Sn = Se(c, "HTML_INTEGRATION_POINTS") && c.HTML_INTEGRATION_POINTS && typeof c.HTML_INTEGRATION_POINTS == "object" ? De(c.HTML_INTEGRATION_POINTS) : ie({}, gr);
2659
2659
  const h = Se(c, "CUSTOM_ELEMENT_HANDLING") && c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING == "object" ? De(c.CUSTOM_ELEMENT_HANDLING) : Nt(null);
2660
- if (j = Nt(null), Se(h, "tagNameCheck") && mr(h.tagNameCheck) && (j.tagNameCheck = h.tagNameCheck), Se(h, "attributeNameCheck") && mr(h.attributeNameCheck) && (j.attributeNameCheck = h.attributeNameCheck), Se(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Oe(j), Ce && (he = !1), ze && (be = !0), vt && (y = ie({}, Jr), ee = Nt(null), vt.html === !0 && (ie(y, Qr), ie(ee, es)), vt.svg === !0 && (ie(y, Ln), ie(ee, Dn), ie(ee, rn)), vt.svgFilters === !0 && (ie(y, Pn), ie(ee, Dn), ie(ee, rn)), vt.mathMl === !0 && (ie(y, $n), ie(ee, ts), ie(ee, rn))), z.tagCheck = null, z.attributeCheck = null, Se(c, "ADD_TAGS") && (typeof c.ADD_TAGS == "function" ? z.tagCheck = c.ADD_TAGS : ut(c.ADD_TAGS) && (y === F && (y = De(y)), ie(y, c.ADD_TAGS, xe))), Se(c, "ADD_ATTR") && (typeof c.ADD_ATTR == "function" ? z.attributeCheck = c.ADD_ATTR : ut(c.ADD_ATTR) && (ee === et && (ee = De(ee)), ie(ee, c.ADD_ATTR, xe))), Se(c, "ADD_URI_SAFE_ATTR") && ut(c.ADD_URI_SAFE_ATTR) && ie(vn, c.ADD_URI_SAFE_ATTR, xe), Se(c, "FORBID_CONTENTS") && ut(c.FORBID_CONTENTS) && (Ve === wn && (Ve = De(Ve)), ie(Ve, c.FORBID_CONTENTS, xe)), Se(c, "ADD_FORBID_CONTENTS") && ut(c.ADD_FORBID_CONTENTS) && (Ve === wn && (Ve = De(Ve)), ie(Ve, c.ADD_FORBID_CONTENTS, xe)), xn && (y["#text"] = !0), He && ie(y, ["html", "head", "body"]), y.table && (ie(y, ["tbody"]), delete Ke.tbody), c.TRUSTED_TYPES_POLICY) {
2660
+ if (F = Nt(null), Se(h, "tagNameCheck") && mr(h.tagNameCheck) && (F.tagNameCheck = h.tagNameCheck), Se(h, "attributeNameCheck") && mr(h.attributeNameCheck) && (F.attributeNameCheck = h.attributeNameCheck), Se(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Oe(F), Ce && (he = !1), ze && (be = !0), vt && (y = ie({}, Jr), te = Nt(null), vt.html === !0 && (ie(y, Qr), ie(te, es)), vt.svg === !0 && (ie(y, Ln), ie(te, Dn), ie(te, sn)), vt.svgFilters === !0 && (ie(y, Pn), ie(te, Dn), ie(te, sn)), vt.mathMl === !0 && (ie(y, $n), ie(te, ts), ie(te, sn))), z.tagCheck = null, z.attributeCheck = null, Se(c, "ADD_TAGS") && (typeof c.ADD_TAGS == "function" ? z.tagCheck = c.ADD_TAGS : ut(c.ADD_TAGS) && (y === U && (y = De(y)), ie(y, c.ADD_TAGS, xe))), Se(c, "ADD_ATTR") && (typeof c.ADD_ATTR == "function" ? z.attributeCheck = c.ADD_ATTR : ut(c.ADD_ATTR) && (te === et && (te = De(te)), ie(te, c.ADD_ATTR, xe))), Se(c, "ADD_URI_SAFE_ATTR") && ut(c.ADD_URI_SAFE_ATTR) && ie(vn, c.ADD_URI_SAFE_ATTR, xe), Se(c, "FORBID_CONTENTS") && ut(c.FORBID_CONTENTS) && (Ve === wn && (Ve = De(Ve)), ie(Ve, c.FORBID_CONTENTS, xe)), Se(c, "ADD_FORBID_CONTENTS") && ut(c.ADD_FORBID_CONTENTS) && (Ve === wn && (Ve = De(Ve)), ie(Ve, c.ADD_FORBID_CONTENTS, xe)), xn && (y["#text"] = !0), He && ie(y, ["html", "head", "body"]), y.table && (ie(y, ["tbody"]), delete Ke.tbody), c.TRUSTED_TYPES_POLICY) {
2661
2661
  if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
2662
2662
  throw gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2663
2663
  if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -2672,11 +2672,11 @@ function js() {
2672
2672
  } else c.TRUSTED_TYPES_POLICY === null ? (q = void 0, fe = "") : (q === void 0 && (q = D()), q && typeof fe == "string" && (fe = me("")));
2673
2673
  Ie && Ie(c), Et = c;
2674
2674
  }, br = ie({}, [...Ln, ...Pn, ...Do]), yr = ie({}, [...$n, ...zo]), yi = function(c, h, S) {
2675
- return h.namespaceURI === Ye ? c === "svg" : h.namespaceURI === Yt ? c === "svg" && (S === "annotation-xml" || Tn[S]) : !!br[c];
2675
+ return h.namespaceURI === Ye ? c === "svg" : h.namespaceURI === Xt ? c === "svg" && (S === "annotation-xml" || Tn[S]) : !!br[c];
2676
2676
  }, xi = function(c, h, S) {
2677
- return h.namespaceURI === Ye ? c === "math" : h.namespaceURI === Xt ? c === "math" && Sn[S] : !!yr[c];
2677
+ return h.namespaceURI === Ye ? c === "math" : h.namespaceURI === Qt ? c === "math" && Sn[S] : !!yr[c];
2678
2678
  }, _i = function(c, h, S) {
2679
- return h.namespaceURI === Xt && !Sn[S] || h.namespaceURI === Yt && !Tn[S] ? !1 : !yr[c] && (hi[c] || !br[c]);
2679
+ return h.namespaceURI === Qt && !Sn[S] || h.namespaceURI === Xt && !Tn[S] ? !1 : !yr[c] && (hi[c] || !br[c]);
2680
2680
  }, wi = function(c) {
2681
2681
  let h = Q(c);
2682
2682
  (!h || !h.tagName) && (h = {
@@ -2684,7 +2684,7 @@ function js() {
2684
2684
  tagName: "template"
2685
2685
  });
2686
2686
  const S = Ft(c.tagName), P = Ft(h.tagName);
2687
- return En[c.namespaceURI] ? c.namespaceURI === Xt ? yi(S, h, P) : c.namespaceURI === Yt ? xi(S, h, P) : c.namespaceURI === Ye ? _i(S, h, P) : !!(Mt === "application/xhtml+xml" && En[c.namespaceURI]) : !1;
2687
+ return En[c.namespaceURI] ? c.namespaceURI === Qt ? yi(S, h, P) : c.namespaceURI === Xt ? xi(S, h, P) : c.namespaceURI === Ye ? _i(S, h, P) : !!(Mt === "application/xhtml+xml" && En[c.namespaceURI]) : !1;
2688
2688
  }, ot = function(c) {
2689
2689
  Rt(e.removed, {
2690
2690
  element: c
@@ -2692,7 +2692,7 @@ function js() {
2692
2692
  try {
2693
2693
  Q(c).removeChild(c);
2694
2694
  } catch {
2695
- if (x(c), !Q(c))
2695
+ if (w(c), !Q(c))
2696
2696
  throw gt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
2697
2697
  }
2698
2698
  }, xr = function(c) {
@@ -2703,12 +2703,12 @@ function js() {
2703
2703
  Rt(P, J);
2704
2704
  }), $t(P, (J) => {
2705
2705
  try {
2706
- x(J);
2706
+ w(J);
2707
2707
  } catch {
2708
2708
  }
2709
2709
  });
2710
2710
  }
2711
- const S = W(c);
2711
+ const S = G(c);
2712
2712
  if (S)
2713
2713
  for (let P = S.length - 1; P >= 0; --P) {
2714
2714
  const J = S[P], ce = J && J.name;
@@ -2742,11 +2742,11 @@ function js() {
2742
2742
  } catch {
2743
2743
  }
2744
2744
  }, vi = function(c) {
2745
- const h = W(c);
2745
+ const h = G(c);
2746
2746
  if (h)
2747
2747
  for (let S = h.length - 1; S >= 0; --S) {
2748
2748
  const P = h[S], J = P && P.name;
2749
- if (!(typeof J != "string" || ee[xe(J)]))
2749
+ if (!(typeof J != "string" || te[xe(J)]))
2750
2750
  try {
2751
2751
  c.removeAttribute(J);
2752
2752
  } catch {
@@ -2794,8 +2794,8 @@ function js() {
2794
2794
  i.SHOW_ELEMENT | i.SHOW_COMMENT | i.SHOW_TEXT | i.SHOW_PROCESSING_INSTRUCTION | i.SHOW_CDATA_SECTION,
2795
2795
  null
2796
2796
  );
2797
- }, Qt = function(c) {
2798
- return c = Dt(c, B, " "), c = Dt(c, re, " "), c = Dt(c, ue, " "), c;
2797
+ }, Jt = function(c) {
2798
+ return c = Dt(c, W, " "), c = Dt(c, ee, " "), c = Dt(c, ue, " "), c;
2799
2799
  }, Rn = function(c) {
2800
2800
  var h;
2801
2801
  c.normalize();
@@ -2808,19 +2808,19 @@ function js() {
2808
2808
  );
2809
2809
  let P = S.nextNode();
2810
2810
  for (; P; )
2811
- P.data = Qt(P.data), P = S.nextNode();
2811
+ P.data = Jt(P.data), P = S.nextNode();
2812
2812
  const J = (h = c.querySelectorAll) === null || h === void 0 ? void 0 : h.call(c, "template");
2813
2813
  J && $t(J, (ce) => {
2814
2814
  Tt(ce.content) && Rn(ce.content);
2815
2815
  });
2816
- }, Jt = function(c) {
2816
+ }, en = function(c) {
2817
2817
  const h = K ? K(c) : null;
2818
2818
  return typeof h != "string" || xe(h) !== "form" ? !1 : typeof c.nodeName != "string" || typeof c.textContent != "string" || typeof c.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
2819
2819
  // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
2820
2820
  // makes the direct read diverge from the cached read; a clean form
2821
2821
  // (same-realm OR foreign-realm) has both reads pointing at the same
2822
2822
  // canonical NamedNodeMap.
2823
- c.attributes !== W(c) || typeof c.removeAttribute != "function" || typeof c.setAttribute != "function" || typeof c.namespaceURI != "string" || typeof c.insertBefore != "function" || typeof c.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
2823
+ c.attributes !== G(c) || typeof c.removeAttribute != "function" || typeof c.setAttribute != "function" || typeof c.namespaceURI != "string" || typeof c.insertBefore != "function" || typeof c.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
2824
2824
  // returns the integer 1 for any Element regardless of realm; direct
2825
2825
  // read on a clobbered form (e.g. <input name="nodeType">) returns
2826
2826
  // the named child element. Cheap addition — nodeType is read from
@@ -2864,7 +2864,7 @@ function js() {
2864
2864
  const Ei = function(c, h) {
2865
2865
  return !!(nt && c.hasChildNodes() && !Lt(c.firstElementChild) && Ne(rs, c.textContent) && Ne(rs, c.innerHTML) || nt && c.namespaceURI === Ye && h === "style" && Lt(c.firstElementChild) || c.nodeType === Xe.processingInstruction || nt && c.nodeType === Xe.comment && Ne(Ko, c.data));
2866
2866
  }, Ti = function(c, h) {
2867
- if (!Ke[h] && Er(h) && (j.tagNameCheck instanceof RegExp && Ne(j.tagNameCheck, h) || j.tagNameCheck instanceof Function && j.tagNameCheck(h)))
2867
+ if (!Ke[h] && Er(h) && (F.tagNameCheck instanceof RegExp && Ne(F.tagNameCheck, h) || F.tagNameCheck instanceof Function && F.tagNameCheck(h)))
2868
2868
  return !1;
2869
2869
  if (xn && !Ve[h]) {
2870
2870
  const S = Q(c), P = I(c);
@@ -2878,7 +2878,7 @@ function js() {
2878
2878
  }
2879
2879
  return ot(c), !0;
2880
2880
  }, vr = function(c) {
2881
- if (rt(T.beforeSanitizeElements, c, null), Jt(c))
2881
+ if (rt(T.beforeSanitizeElements, c, null), en(c))
2882
2882
  return ot(c), !0;
2883
2883
  const h = xe(K ? K(c) : c.nodeName);
2884
2884
  if (rt(T.uponSanitizeElement, c, {
@@ -2891,16 +2891,16 @@ function js() {
2891
2891
  if (($ ? $(c) : c.nodeType) === Xe.element && !wi(c) || (h === "noscript" || h === "noembed" || h === "noframes") && Ne(Vo, c.innerHTML))
2892
2892
  return ot(c), !0;
2893
2893
  if (Ce && c.nodeType === Xe.text) {
2894
- const P = Qt(c.textContent);
2894
+ const P = Jt(c.textContent);
2895
2895
  c.textContent !== P && (Rt(e.removed, {
2896
2896
  element: c.cloneNode()
2897
2897
  }), c.textContent = P);
2898
2898
  }
2899
2899
  return rt(T.afterSanitizeElements, c, null), !1;
2900
2900
  }, kr = function(c, h, S) {
2901
- if (tt[h] || Vt && (h === "id" || h === "name") && (S in n || S in bi))
2901
+ if (tt[h] || Yt && (h === "id" || h === "name") && (S in n || S in bi))
2902
2902
  return !1;
2903
- const P = ee[h] || z.attributeCheck instanceof Function && z.attributeCheck(h, c);
2903
+ const P = te[h] || z.attributeCheck instanceof Function && z.attributeCheck(h, c);
2904
2904
  if (!(he && Ne(V, h))) {
2905
2905
  if (!(at && Ne(Be, h))) {
2906
2906
  if (P) {
@@ -2918,9 +2918,9 @@ function js() {
2918
2918
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2919
2919
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2920
2920
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2921
- !(Er(c) && (j.tagNameCheck instanceof RegExp && Ne(j.tagNameCheck, c) || j.tagNameCheck instanceof Function && j.tagNameCheck(c)) && (j.attributeNameCheck instanceof RegExp && Ne(j.attributeNameCheck, h) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(h, c)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2921
+ !(Er(c) && (F.tagNameCheck instanceof RegExp && Ne(F.tagNameCheck, c) || F.tagNameCheck instanceof Function && F.tagNameCheck(c)) && (F.attributeNameCheck instanceof RegExp && Ne(F.attributeNameCheck, h) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(h, c)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2922
2922
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2923
- h === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Ne(j.tagNameCheck, S) || j.tagNameCheck instanceof Function && j.tagNameCheck(S)))
2923
+ h === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && Ne(F.tagNameCheck, S) || F.tagNameCheck instanceof Function && F.tagNameCheck(S)))
2924
2924
  ) return !1;
2925
2925
  }
2926
2926
  }
@@ -2938,20 +2938,20 @@ function js() {
2938
2938
  return P;
2939
2939
  }, Ri = function(c, h, S, P) {
2940
2940
  try {
2941
- S ? c.setAttributeNS(S, h, P) : c.setAttribute(h, P), Jt(c) ? ot(c) : Zr(e.removed);
2941
+ S ? c.setAttributeNS(S, h, P) : c.setAttribute(h, P), en(c) ? ot(c) : Zr(e.removed);
2942
2942
  } catch {
2943
2943
  ht(h, c);
2944
2944
  }
2945
2945
  }, Tr = function(c) {
2946
2946
  rt(T.beforeSanitizeAttributes, c, null);
2947
2947
  const h = c.attributes;
2948
- if (!h || Jt(c))
2948
+ if (!h || en(c))
2949
2949
  return;
2950
2950
  const S = {
2951
2951
  attrName: "",
2952
2952
  attrValue: "",
2953
2953
  keepAttr: !0,
2954
- allowedAttributes: ee,
2954
+ allowedAttributes: te,
2955
2955
  forceKeepAttr: void 0
2956
2956
  };
2957
2957
  let P = h.length;
@@ -2976,7 +2976,7 @@ function js() {
2976
2976
  ht(Te, c);
2977
2977
  continue;
2978
2978
  }
2979
- if (Ce && (Pe = Qt(Pe)), !kr(J, Ge, Pe)) {
2979
+ if (Ce && (Pe = Jt(Pe)), !kr(J, Ge, Pe)) {
2980
2980
  ht(Te, c);
2981
2981
  continue;
2982
2982
  }
@@ -2984,13 +2984,13 @@ function js() {
2984
2984
  }
2985
2985
  }
2986
2986
  rt(T.afterSanitizeAttributes, c, null);
2987
- }, en = function(c) {
2987
+ }, tn = function(c) {
2988
2988
  let h = null;
2989
2989
  const S = wr(c);
2990
2990
  for (rt(T.beforeSanitizeShadowDOM, c, null); h = S.nextNode(); )
2991
- if (rt(T.uponSanitizeShadowNode, h, null), vr(h), Tr(h), Tt(h.content) && en(h.content), ($ ? $(h) : h.nodeType) === Xe.element) {
2992
- const J = G(h);
2993
- Tt(J) && (Nn(J), en(J));
2991
+ if (rt(T.uponSanitizeShadowNode, h, null), vr(h), Tr(h), Tt(h.content) && tn(h.content), ($ ? $(h) : h.nodeType) === Xe.element) {
2992
+ const J = H(h);
2993
+ Tt(J) && (Nn(J), tn(J));
2994
2994
  }
2995
2995
  rt(T.afterSanitizeShadowDOM, c, null);
2996
2996
  }, Nn = function(c) {
@@ -3001,7 +3001,7 @@ function js() {
3001
3001
  for (; h.length > 0; ) {
3002
3002
  const S = h.pop();
3003
3003
  if (S.shadow) {
3004
- en(S.shadow);
3004
+ tn(S.shadow);
3005
3005
  continue;
3006
3006
  }
3007
3007
  const P = S.node, ce = ($ ? $(P) : P.nodeType) === Xe.element, Te = I(P);
@@ -3022,7 +3022,7 @@ function js() {
3022
3022
  }
3023
3023
  }
3024
3024
  if (ce) {
3025
- const ve = G(P);
3025
+ const ve = H(P);
3026
3026
  Tt(ve) && h.push({
3027
3027
  node: null,
3028
3028
  shadow: ve
@@ -3039,7 +3039,7 @@ function js() {
3039
3039
  throw gt("dirty is not a string, aborting");
3040
3040
  if (!e.isSupported)
3041
3041
  return R;
3042
- N ? (y = L, ee = Y) : An(c), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (y = De(y)), T.uponSanitizeAttribute.length > 0 && (ee = De(ee)), e.removed = [];
3042
+ N ? (y = L, te = Y) : An(c), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (y = De(y)), T.uponSanitizeAttribute.length > 0 && (te = De(te)), e.removed = [];
3043
3043
  const ce = _n && typeof R != "string" && Lt(R);
3044
3044
  if (ce) {
3045
3045
  const Fe = K ? K(R) : R.nodeName;
@@ -3048,7 +3048,7 @@ function js() {
3048
3048
  if (!y[Ge] || Ke[Ge])
3049
3049
  throw gt("root node is forbidden and cannot be sanitized in-place");
3050
3050
  }
3051
- if (Jt(R))
3051
+ if (en(R))
3052
3052
  throw gt("root node is clobbered and cannot be sanitized in-place");
3053
3053
  try {
3054
3054
  Nn(R);
@@ -3068,7 +3068,7 @@ function js() {
3068
3068
  const Te = wr(ce ? R : h);
3069
3069
  try {
3070
3070
  for (; P = Te.nextNode(); )
3071
- vr(P), Tr(P), Tt(P.content) && en(P.content);
3071
+ vr(P), Tr(P), Tt(P.content) && tn(P.content);
3072
3072
  } catch (Fe) {
3073
3073
  throw ce && xr(R), Fe;
3074
3074
  }
@@ -3082,16 +3082,16 @@ function js() {
3082
3082
  J.appendChild(h.firstChild);
3083
3083
  else
3084
3084
  J = h;
3085
- return (ee.shadowroot || ee.shadowrootmode) && (J = _.call(r, J, !0)), J;
3085
+ return (te.shadowroot || te.shadowrootmode) && (J = _.call(r, J, !0)), J;
3086
3086
  }
3087
3087
  let ve = He ? h.outerHTML : h.innerHTML;
3088
3088
  return He && y["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && Ne(qo, h.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
3089
- ` + ve), Ce && (ve = Qt(ve)), q && wt ? me(ve) : ve;
3089
+ ` + ve), Ce && (ve = Jt(ve)), q && wt ? me(ve) : ve;
3090
3090
  }, e.setConfig = function() {
3091
3091
  let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3092
- An(R), N = !0, L = y, Y = ee;
3092
+ An(R), N = !0, L = y, Y = te;
3093
3093
  }, e.clearConfig = function() {
3094
- Et = null, N = !1, L = null, Y = null, q = ne, fe = "";
3094
+ Et = null, N = !1, L = null, Y = null, q = re, fe = "";
3095
3095
  }, e.isValidAttribute = function(R, c, h) {
3096
3096
  Et || An({});
3097
3097
  const S = xe(R), P = xe(c);
@@ -3287,13 +3287,13 @@ function Jo(t) {
3287
3287
  return;
3288
3288
  }
3289
3289
  T === ">" && (n(f, { after: _ }) || u.ignoreMatch());
3290
- let B;
3291
- const re = f.input.substring(_);
3292
- if (B = re.match(/^\s*=/)) {
3290
+ let W;
3291
+ const ee = f.input.substring(_);
3292
+ if (W = ee.match(/^\s*=/)) {
3293
3293
  u.ignoreMatch();
3294
3294
  return;
3295
3295
  }
3296
- if ((B = re.match(/^\s+extends\s+/)) && B.index === 0) {
3296
+ if ((W = ee.match(/^\s+extends\s+/)) && W.index === 0) {
3297
3297
  u.ignoreMatch();
3298
3298
  return;
3299
3299
  }
@@ -3340,7 +3340,7 @@ function Jo(t) {
3340
3340
  ],
3341
3341
  subLanguage: "xml"
3342
3342
  }
3343
- }, x = {
3343
+ }, w = {
3344
3344
  begin: ".?css`",
3345
3345
  end: "",
3346
3346
  starts: {
@@ -3372,7 +3372,7 @@ function Jo(t) {
3372
3372
  t.BACKSLASH_ESCAPE,
3373
3373
  b
3374
3374
  ]
3375
- }, G = {
3375
+ }, H = {
3376
3376
  className: "comment",
3377
3377
  variants: [
3378
3378
  t.COMMENT(
@@ -3417,11 +3417,11 @@ function Jo(t) {
3417
3417
  t.C_BLOCK_COMMENT_MODE,
3418
3418
  t.C_LINE_COMMENT_MODE
3419
3419
  ]
3420
- }, W = [
3420
+ }, G = [
3421
3421
  t.APOS_STRING_MODE,
3422
3422
  t.QUOTE_STRING_MODE,
3423
3423
  O,
3424
- x,
3424
+ w,
3425
3425
  M,
3426
3426
  I,
3427
3427
  // Skip numbers when they are part of a variable name
@@ -3431,7 +3431,7 @@ function Jo(t) {
3431
3431
  // See https://github.com/highlightjs/highlight.js/issues/3288
3432
3432
  // hljs.REGEXP_MODE
3433
3433
  ];
3434
- b.contains = W.concat({
3434
+ b.contains = G.concat({
3435
3435
  // we need to pair up {} inside our subst to prevent
3436
3436
  // it from ending too early by matching another }
3437
3437
  begin: /\{/,
@@ -3439,9 +3439,9 @@ function Jo(t) {
3439
3439
  keywords: o,
3440
3440
  contains: [
3441
3441
  "self"
3442
- ].concat(W)
3442
+ ].concat(G)
3443
3443
  });
3444
- const $ = [].concat(G, b.contains), K = $.concat([
3444
+ const $ = [].concat(H, b.contains), K = $.concat([
3445
3445
  // eat recursive parens in sub expressions
3446
3446
  {
3447
3447
  begin: /(\s*)\(/,
@@ -3492,7 +3492,7 @@ function Jo(t) {
3492
3492
  }
3493
3493
  }
3494
3494
  ]
3495
- }, ne = {
3495
+ }, re = {
3496
3496
  relevance: 0,
3497
3497
  match: e.either(
3498
3498
  // Hard coded exceptions
@@ -3619,7 +3619,7 @@ function Jo(t) {
3619
3619
  aliases: ["js", "jsx", "mjs", "cjs"],
3620
3620
  keywords: o,
3621
3621
  // this will be extended by TypeScript
3622
- exports: { PARAMS_CONTAINS: K, CLASS_REFERENCE: ne },
3622
+ exports: { PARAMS_CONTAINS: K, CLASS_REFERENCE: re },
3623
3623
  illegal: /#(?![$_A-z])/,
3624
3624
  contains: [
3625
3625
  t.SHEBANG({
@@ -3631,14 +3631,14 @@ function Jo(t) {
3631
3631
  t.APOS_STRING_MODE,
3632
3632
  t.QUOTE_STRING_MODE,
3633
3633
  O,
3634
- x,
3634
+ w,
3635
3635
  M,
3636
3636
  I,
3637
- G,
3637
+ H,
3638
3638
  // Skip numbers when they are part of a variable name
3639
3639
  { match: /\$\d+/ },
3640
3640
  m,
3641
- ne,
3641
+ re,
3642
3642
  {
3643
3643
  scope: "attr",
3644
3644
  match: r + e.lookahead(":"),
@@ -3651,7 +3651,7 @@ function Jo(t) {
3651
3651
  keywords: "return throw case",
3652
3652
  relevance: 0,
3653
3653
  contains: [
3654
- G,
3654
+ H,
3655
3655
  t.REGEXP_MODE,
3656
3656
  {
3657
3657
  className: "function",
@@ -3827,10 +3827,10 @@ function Xs(t) {
3827
3827
  className: "meta",
3828
3828
  begin: "@" + r
3829
3829
  }, m = (M, I, Q) => {
3830
- const G = M.contains.findIndex((W) => W.label === I);
3831
- if (G === -1)
3830
+ const H = M.contains.findIndex((G) => G.label === I);
3831
+ if (H === -1)
3832
3832
  throw new Error("can not find mode to replace");
3833
- M.contains.splice(G, 1, Q);
3833
+ M.contains.splice(H, 1, Q);
3834
3834
  };
3835
3835
  Object.assign(n.keywords, d), n.exports.PARAMS_CONTAINS.push(p);
3836
3836
  const b = n.contains.find((M) => M.scope === "attr"), O = Object.assign(
@@ -3852,8 +3852,8 @@ function Xs(t) {
3852
3852
  O
3853
3853
  // Added for optional property assignment highlighting
3854
3854
  ]), m(n, "shebang", t.SHEBANG()), m(n, "use_strict", o);
3855
- const x = n.contains.find((M) => M.label === "func.def");
3856
- return x.relevance = 0, Object.assign(n, {
3855
+ const w = n.contains.find((M) => M.label === "func.def");
3856
+ return w.relevance = 0, Object.assign(n, {
3857
3857
  name: "TypeScript",
3858
3858
  aliases: [
3859
3859
  "ts",
@@ -4037,13 +4037,13 @@ function ti(t) {
4037
4037
  return;
4038
4038
  }
4039
4039
  T === ">" && (n(f, { after: _ }) || u.ignoreMatch());
4040
- let B;
4041
- const re = f.input.substring(_);
4042
- if (B = re.match(/^\s*=/)) {
4040
+ let W;
4041
+ const ee = f.input.substring(_);
4042
+ if (W = ee.match(/^\s*=/)) {
4043
4043
  u.ignoreMatch();
4044
4044
  return;
4045
4045
  }
4046
- if ((B = re.match(/^\s+extends\s+/)) && B.index === 0) {
4046
+ if ((W = ee.match(/^\s+extends\s+/)) && W.index === 0) {
4047
4047
  u.ignoreMatch();
4048
4048
  return;
4049
4049
  }
@@ -4090,7 +4090,7 @@ function ti(t) {
4090
4090
  ],
4091
4091
  subLanguage: "xml"
4092
4092
  }
4093
- }, x = {
4093
+ }, w = {
4094
4094
  begin: ".?css`",
4095
4095
  end: "",
4096
4096
  starts: {
@@ -4122,7 +4122,7 @@ function ti(t) {
4122
4122
  t.BACKSLASH_ESCAPE,
4123
4123
  b
4124
4124
  ]
4125
- }, G = {
4125
+ }, H = {
4126
4126
  className: "comment",
4127
4127
  variants: [
4128
4128
  t.COMMENT(
@@ -4167,11 +4167,11 @@ function ti(t) {
4167
4167
  t.C_BLOCK_COMMENT_MODE,
4168
4168
  t.C_LINE_COMMENT_MODE
4169
4169
  ]
4170
- }, W = [
4170
+ }, G = [
4171
4171
  t.APOS_STRING_MODE,
4172
4172
  t.QUOTE_STRING_MODE,
4173
4173
  O,
4174
- x,
4174
+ w,
4175
4175
  M,
4176
4176
  I,
4177
4177
  // Skip numbers when they are part of a variable name
@@ -4181,7 +4181,7 @@ function ti(t) {
4181
4181
  // See https://github.com/highlightjs/highlight.js/issues/3288
4182
4182
  // hljs.REGEXP_MODE
4183
4183
  ];
4184
- b.contains = W.concat({
4184
+ b.contains = G.concat({
4185
4185
  // we need to pair up {} inside our subst to prevent
4186
4186
  // it from ending too early by matching another }
4187
4187
  begin: /\{/,
@@ -4189,9 +4189,9 @@ function ti(t) {
4189
4189
  keywords: o,
4190
4190
  contains: [
4191
4191
  "self"
4192
- ].concat(W)
4192
+ ].concat(G)
4193
4193
  });
4194
- const $ = [].concat(G, b.contains), K = $.concat([
4194
+ const $ = [].concat(H, b.contains), K = $.concat([
4195
4195
  // eat recursive parens in sub expressions
4196
4196
  {
4197
4197
  begin: /(\s*)\(/,
@@ -4242,7 +4242,7 @@ function ti(t) {
4242
4242
  }
4243
4243
  }
4244
4244
  ]
4245
- }, ne = {
4245
+ }, re = {
4246
4246
  relevance: 0,
4247
4247
  match: e.either(
4248
4248
  // Hard coded exceptions
@@ -4369,7 +4369,7 @@ function ti(t) {
4369
4369
  aliases: ["js", "jsx", "mjs", "cjs"],
4370
4370
  keywords: o,
4371
4371
  // this will be extended by TypeScript
4372
- exports: { PARAMS_CONTAINS: K, CLASS_REFERENCE: ne },
4372
+ exports: { PARAMS_CONTAINS: K, CLASS_REFERENCE: re },
4373
4373
  illegal: /#(?![$_A-z])/,
4374
4374
  contains: [
4375
4375
  t.SHEBANG({
@@ -4381,14 +4381,14 @@ function ti(t) {
4381
4381
  t.APOS_STRING_MODE,
4382
4382
  t.QUOTE_STRING_MODE,
4383
4383
  O,
4384
- x,
4384
+ w,
4385
4385
  M,
4386
4386
  I,
4387
- G,
4387
+ H,
4388
4388
  // Skip numbers when they are part of a variable name
4389
4389
  { match: /\$\d+/ },
4390
4390
  m,
4391
- ne,
4391
+ re,
4392
4392
  {
4393
4393
  scope: "attr",
4394
4394
  match: r + e.lookahead(":"),
@@ -4401,7 +4401,7 @@ function ti(t) {
4401
4401
  keywords: "return throw case",
4402
4402
  relevance: 0,
4403
4403
  contains: [
4404
- G,
4404
+ H,
4405
4405
  t.REGEXP_MODE,
4406
4406
  {
4407
4407
  className: "function",
@@ -5782,7 +5782,7 @@ function ni(t) {
5782
5782
  ], O = t.SHEBANG({
5783
5783
  binary: `(${b.join("|")})`,
5784
5784
  relevance: 10
5785
- }), x = {
5785
+ }), w = {
5786
5786
  className: "function",
5787
5787
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
5788
5788
  returnBegin: !0,
@@ -5809,7 +5809,7 @@ function ni(t) {
5809
5809
  ], I = [
5810
5810
  "true",
5811
5811
  "false"
5812
- ], Q = { match: /(\/[a-z._-]+)+/ }, G = [
5812
+ ], Q = { match: /(\/[a-z._-]+)+/ }, H = [
5813
5813
  "break",
5814
5814
  "cd",
5815
5815
  "continue",
@@ -5828,7 +5828,7 @@ function ni(t) {
5828
5828
  "trap",
5829
5829
  "umask",
5830
5830
  "unset"
5831
- ], W = [
5831
+ ], G = [
5832
5832
  "alias",
5833
5833
  "bind",
5834
5834
  "builtin",
@@ -6036,8 +6036,8 @@ function ni(t) {
6036
6036
  keyword: M,
6037
6037
  literal: I,
6038
6038
  built_in: [
6039
+ ...H,
6039
6040
  ...G,
6040
- ...W,
6041
6041
  // Shell modifiers
6042
6042
  "set",
6043
6043
  "shopt",
@@ -6050,7 +6050,7 @@ function ni(t) {
6050
6050
  // to catch known shells and boost relevancy
6051
6051
  t.SHEBANG(),
6052
6052
  // to catch unknown shells but still highlight the shebang
6053
- x,
6053
+ w,
6054
6054
  m,
6055
6055
  a,
6056
6056
  l,
@@ -6143,7 +6143,7 @@ function ri(t) {
6143
6143
  excludeEnd: !0,
6144
6144
  keywords: e,
6145
6145
  relevance: 0
6146
- }, x = {
6146
+ }, w = {
6147
6147
  begin: /\{/,
6148
6148
  end: /\}/,
6149
6149
  contains: [O],
@@ -6231,7 +6231,7 @@ function ri(t) {
6231
6231
  begin: t.C_NUMBER_RE + "\\b",
6232
6232
  relevance: 0
6233
6233
  },
6234
- x,
6234
+ w,
6235
6235
  M,
6236
6236
  a,
6237
6237
  l
@@ -6296,10 +6296,10 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6296
6296
  part: {}
6297
6297
  },
6298
6298
  setup(t) {
6299
- const e = t, n = se(!1), r = te(() => e.part.state.status), s = te(() => {
6299
+ const e = t, n = se(!1), r = ne(() => e.part.state.status), s = ne(() => {
6300
6300
  const b = e.part.state;
6301
6301
  return b.status === "running" && b.title || b.status === "completed" && b.title || e.part.tool;
6302
- }), a = te(() => {
6302
+ }), a = ne(() => {
6303
6303
  switch (r.value) {
6304
6304
  case "completed":
6305
6305
  return "text-fm-color-typo-success";
@@ -6310,7 +6310,7 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6310
6310
  default:
6311
6311
  return "text-fm-color-typo-tertiary";
6312
6312
  }
6313
- }), l = te(() => {
6313
+ }), l = ne(() => {
6314
6314
  switch (r.value) {
6315
6315
  case "completed":
6316
6316
  return "bg-fm-color-system-success-300";
@@ -6321,47 +6321,47 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6321
6321
  default:
6322
6322
  return "bg-fm-color-neutral-gray-300";
6323
6323
  }
6324
- }), o = te(() => r.value === "completed" ? { name: "check", color: "typo-success" } : r.value === "error" ? { name: "close", color: "typo-error" } : { name: "more_horiz", color: "typo-secondary" }), i = te(() => JSON.stringify(e.part.state.input, null, 2)), d = te(() => as(i.value, "json")), p = te(() => {
6324
+ }), o = ne(() => r.value === "completed" ? { name: "check", color: "typo-success" } : r.value === "error" ? { name: "close", color: "typo-error" } : { name: "more_horiz", color: "typo-secondary" }), i = ne(() => JSON.stringify(e.part.state.input, null, 2)), d = ne(() => as(i.value, "json")), p = ne(() => {
6325
6325
  const b = e.part.state;
6326
6326
  return b.status === "completed" ? b.output : b.status === "error" ? b.error : null;
6327
- }), m = te(() => p.value ? as(p.value, "plaintext") : "");
6327
+ }), m = ne(() => p.value ? as(p.value, "plaintext") : "");
6328
6328
  return (b, O) => {
6329
- const x = Me("FmIcon");
6330
- return C(), H("div", {
6329
+ const w = Me("FmIcon");
6330
+ return C(), j("div", {
6331
6331
  class: Ee(["my-[3px] min-w-0 max-w-full overflow-hidden rounded-md border bg-fm-color-neutral-white/70", r.value === "error" ? "border-fm-color-system-error-200" : "border-fm-color-neutral-gray-100"])
6332
6332
  }, [
6333
- w("button", {
6333
+ x("button", {
6334
6334
  class: "flex w-full min-w-0 cursor-pointer items-center gap-[5px] border-0 bg-transparent px-[6px] py-[3px] text-left text-fm-color-typo-secondary transition hover:bg-fm-color-neutral-gray-50",
6335
6335
  type: "button",
6336
6336
  onClick: O[0] || (O[0] = (M) => n.value = !n.value)
6337
6337
  }, [
6338
- ae(x, {
6338
+ ae(w, {
6339
6339
  name: o.value.name,
6340
6340
  color: o.value.color,
6341
6341
  size: "sm"
6342
6342
  }, null, 8, ["name", "color"]),
6343
- w("span", ml, Z(s.value), 1),
6344
- w("span", bl, Z(t.part.tool), 1),
6345
- w("span", {
6343
+ x("span", ml, Z(s.value), 1),
6344
+ x("span", bl, Z(t.part.tool), 1),
6345
+ x("span", {
6346
6346
  class: Ee(["inline-flex shrink-0 items-center gap-[4px] text-[10px] font-medium leading-[14px]", a.value])
6347
6347
  }, [
6348
- w("span", {
6348
+ x("span", {
6349
6349
  class: Ee(["h-[5px] w-[5px] rounded-full", l.value])
6350
6350
  }, null, 2),
6351
- on(" " + Z(r.value), 1)
6351
+ Wt(" " + Z(r.value), 1)
6352
6352
  ], 2)
6353
6353
  ]),
6354
- n.value ? (C(), H("div", yl, [
6355
- w("div", null, [
6356
- O[1] || (O[1] = w("div", { class: "mb-[3px] text-[10px] font-semibold uppercase leading-[14px] text-fm-color-typo-tertiary" }, "Input", -1)),
6357
- w("pre", {
6354
+ n.value ? (C(), j("div", yl, [
6355
+ x("div", null, [
6356
+ O[1] || (O[1] = x("div", { class: "mb-[3px] text-[10px] font-semibold uppercase leading-[14px] text-fm-color-typo-tertiary" }, "Input", -1)),
6357
+ x("pre", {
6358
6358
  class: "tool-card__block hljs",
6359
6359
  innerHTML: d.value
6360
6360
  }, null, 8, xl)
6361
6361
  ]),
6362
- p.value ? (C(), H("div", _l, [
6363
- w("div", wl, Z(r.value === "error" ? "Error" : "Output"), 1),
6364
- w("pre", {
6362
+ p.value ? (C(), j("div", _l, [
6363
+ x("div", wl, Z(r.value === "error" ? "Error" : "Output"), 1),
6364
+ x("pre", {
6365
6365
  class: "tool-card__block hljs",
6366
6366
  innerHTML: m.value
6367
6367
  }, null, 8, vl)
@@ -6382,19 +6382,19 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6382
6382
  message: {}
6383
6383
  },
6384
6384
  setup(t) {
6385
- const e = t, n = te(() => e.message.role === "user"), r = te(() => e.message.parts.filter((a) => a.kind !== "reasoning")), s = te(() => !n.value && e.message.busy && r.value.length === 0);
6385
+ const e = t, n = ne(() => e.message.role === "user"), r = ne(() => e.message.parts.filter((a) => a.kind !== "reasoning")), s = ne(() => !n.value && e.message.busy && r.value.length === 0);
6386
6386
  return (a, l) => {
6387
6387
  const o = Me("FmCircularProgress");
6388
- return C(), H("div", {
6388
+ return C(), j("div", {
6389
6389
  class: Ee(["flex max-w-[92%] min-w-0 flex-col", n.value ? "items-end self-end" : "items-start self-start"])
6390
6390
  }, [
6391
- w("div", {
6391
+ x("div", {
6392
6392
  class: Ee(["min-w-[2em] max-w-full overflow-hidden rounded-lg px-[10px] py-[6px] fm-typo-en-body-md-400", n.value ? "bg-fm-color-primary text-fm-color-typo-white" : "bg-fm-color-neutral-gray-100 text-fm-color-typo-primary"])
6393
6393
  }, [
6394
- (C(!0), H(Ze, null, st(r.value, (i) => (C(), H(Ze, {
6394
+ (C(!0), j(Ze, null, st(r.value, (i) => (C(), j(Ze, {
6395
6395
  key: i.id
6396
6396
  }, [
6397
- i.kind === "text" ? (C(), H("div", {
6397
+ i.kind === "text" ? (C(), j("div", {
6398
6398
  key: 0,
6399
6399
  class: "md-content",
6400
6400
  innerHTML: X(gl)(i.text)
@@ -6403,14 +6403,14 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6403
6403
  part: i
6404
6404
  }, null, 8, ["part"])) : de("", !0)
6405
6405
  ], 64))), 128)),
6406
- s.value ? (C(), H("div", Sl, [
6406
+ s.value ? (C(), j("div", Sl, [
6407
6407
  ae(o, {
6408
6408
  size: "md",
6409
6409
  color: "neutral-gray-300"
6410
6410
  }),
6411
- l[0] || (l[0] = w("span", null, "Thinking…", -1))
6411
+ l[0] || (l[0] = x("span", null, "Thinking…", -1))
6412
6412
  ])) : de("", !0),
6413
- t.message.errorText ? (C(), H("div", Al, Z(t.message.errorText), 1)) : de("", !0)
6413
+ t.message.errorText ? (C(), j("div", Al, Z(t.message.errorText), 1)) : de("", !0)
6414
6414
  ], 2)
6415
6415
  ], 2);
6416
6416
  };
@@ -6424,7 +6424,7 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6424
6424
  chat: {}
6425
6425
  },
6426
6426
  setup(t) {
6427
- const e = t, n = se(""), r = se(null), s = se(!0), a = te(
6427
+ const e = t, n = se(""), r = se(null), s = se(!0), a = ne(
6428
6428
  () => e.chat.messagesOrder.map((m) => e.chat.messagesByKey[m]).filter((m) => !!m)
6429
6429
  );
6430
6430
  function l() {
@@ -6447,47 +6447,47 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6447
6447
  function i(m) {
6448
6448
  m.key === "Enter" && !m.shiftKey && (m.preventDefault(), o());
6449
6449
  }
6450
- const d = te(() => e.chat.status === "ready" ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : e.chat.status === "error" ? "bg-fm-color-system-error-100 text-fm-color-typo-error" : e.chat.status === "idle" ? "bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary" : "bg-fm-color-system-warning-100 text-fm-color-typo-warning"), p = te(() => e.chat.status === "idle" ? e.chat.statusText : e.chat.readOnly ? "Archived session history." : "Ask the agent to change something in the app on the right.");
6450
+ const d = ne(() => e.chat.status === "ready" ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : e.chat.status === "error" ? "bg-fm-color-system-error-100 text-fm-color-typo-error" : e.chat.status === "idle" ? "bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary" : "bg-fm-color-system-warning-100 text-fm-color-typo-warning"), p = ne(() => e.chat.status === "idle" ? e.chat.statusText : e.chat.readOnly ? "Archived session history." : "Ask the agent to change something in the app on the right.");
6451
6451
  return (m, b) => {
6452
- const O = Me("FmIcon"), x = Me("FmCircularProgress"), M = Me("FmButton");
6453
- return C(), H("div", Il, [
6454
- w("header", Ol, [
6455
- w("div", Cl, [
6452
+ const O = Me("FmIcon"), w = Me("FmCircularProgress"), M = Me("FmButton");
6453
+ return C(), j("div", Il, [
6454
+ x("header", Ol, [
6455
+ x("div", Cl, [
6456
6456
  ae(O, {
6457
6457
  name: "smart_toy",
6458
6458
  color: "primary",
6459
6459
  size: "md"
6460
6460
  }),
6461
- b[1] || (b[1] = w("div", { class: "truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Miniprogram agent", -1))
6461
+ b[1] || (b[1] = x("div", { class: "truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Miniprogram agent", -1))
6462
6462
  ]),
6463
- w("span", {
6463
+ x("span", {
6464
6464
  class: Ee(["inline-flex shrink-0 items-center gap-6 rounded-full px-8 py-4 fm-typo-en-body-xs-600", d.value])
6465
6465
  }, [
6466
- t.chat.status === "starting" ? (C(), je(x, {
6466
+ t.chat.status === "starting" ? (C(), je(w, {
6467
6467
  key: 0,
6468
6468
  size: "md",
6469
6469
  color: "system-warning-300"
6470
6470
  })) : de("", !0),
6471
- on(" " + Z(t.chat.statusText), 1)
6471
+ Wt(" " + Z(t.chat.statusText), 1)
6472
6472
  ], 2)
6473
6473
  ]),
6474
- w("div", {
6474
+ x("div", {
6475
6475
  ref_key: "listEl",
6476
6476
  ref: r,
6477
6477
  class: "flex min-w-0 flex-1 flex-col gap-[10px] overflow-y-auto overflow-x-hidden p-16",
6478
6478
  onScroll: l
6479
6479
  }, [
6480
- (C(!0), H(Ze, null, st(a.value, (I) => (C(), je(Nl, {
6480
+ (C(!0), j(Ze, null, st(a.value, (I) => (C(), je(Nl, {
6481
6481
  key: I.key,
6482
6482
  message: I
6483
6483
  }, null, 8, ["message"]))), 128)),
6484
- t.chat.messagesOrder.length === 0 && (t.chat.status === "ready" || t.chat.status === "idle") ? (C(), H("div", Ml, Z(p.value), 1)) : de("", !0)
6484
+ t.chat.messagesOrder.length === 0 && (t.chat.status === "ready" || t.chat.status === "idle") ? (C(), j("div", Ml, Z(p.value), 1)) : de("", !0)
6485
6485
  ], 544),
6486
- w("form", {
6486
+ x("form", {
6487
6487
  class: "flex min-w-0 shrink-0 items-end gap-8 border-t border-fm-color-neutral-gray-100 p-12",
6488
6488
  onSubmit: ln(o, ["prevent"])
6489
6489
  }, [
6490
- ps(w("textarea", {
6490
+ ps(x("textarea", {
6491
6491
  "onUpdate:modelValue": b[0] || (b[0] = (I) => n.value = I),
6492
6492
  placeholder: "Ask the agent to change something...",
6493
6493
  rows: "1",
@@ -6510,13 +6510,13 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6510
6510
  }), $l = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" }, Dl = { class: "flex shrink-0 items-center gap-8 border-b border-fm-color-neutral-gray-100 px-12 py-8 max-[900px]:flex-wrap" }, zl = ["href"], Bl = {
6511
6511
  key: 0,
6512
6512
  class: "preview__annotation-panel flex flex-col overflow-hidden rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white shadow-lg"
6513
- }, Ul = { class: "flex items-center justify-between gap-12 border-b border-fm-color-neutral-gray-100 px-12 py-8" }, Fl = { class: "min-w-0 truncate fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, jl = { class: "flex shrink-0 items-center gap-6" }, Hl = { class: "flex min-h-0 flex-col gap-8 overflow-y-auto p-12" }, Gl = { class: "flex min-w-0 items-center gap-6" }, Wl = { class: "shrink-0 rounded-full bg-fm-color-neutral-gray-100 px-8 py-2 fm-typo-en-body-xs-600 text-fm-color-typo-secondary" }, ql = { class: "min-w-0 flex-1 truncate fm-typo-en-body-sm-400 text-fm-color-typo-primary" }, Zl = ["onUpdate:modelValue"], Kl = {
6513
+ }, Ul = { class: "flex h-[44px] items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-[10px]" }, Fl = { class: "min-w-0 truncate fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, jl = { class: "flex shrink-0 items-center gap-4" }, Hl = ["disabled"], Gl = { class: "flex min-h-0 flex-col gap-6 overflow-y-auto p-[8px]" }, Wl = { class: "flex min-w-0 items-center gap-6" }, ql = { class: "inline-flex h-[24px] min-w-[24px] shrink-0 items-center justify-center rounded-full bg-fm-color-neutral-gray-100 px-[6px] text-[12px] font-semibold leading-[16px] text-fm-color-typo-secondary" }, Zl = { class: "min-w-0 flex-1 truncate fm-typo-en-body-sm-400 text-fm-color-typo-primary" }, Kl = ["onClick"], Vl = ["onUpdate:modelValue"], Yl = {
6514
6514
  key: 1,
6515
6515
  class: "preview__device-wrap"
6516
- }, Vl = { class: "preview__device" }, Yl = ["src"], Xl = {
6516
+ }, Xl = { class: "preview__device" }, Ql = ["src"], Jl = {
6517
6517
  key: 2,
6518
6518
  class: "preview__placeholder"
6519
- }, sn = 20, Ql = 0.35, Jl = /* @__PURE__ */ Ot({
6519
+ }, an = 20, ec = 0.35, tc = /* @__PURE__ */ Ot({
6520
6520
  __name: "PreviewPanel",
6521
6521
  props: {
6522
6522
  chat: {}
@@ -6532,10 +6532,10 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6532
6532
  ], b = m.map((u) => ({
6533
6533
  label: `${u.label} · ${u.width}×${u.height}`,
6534
6534
  value: u.key
6535
- })), O = te(
6535
+ })), O = ne(
6536
6536
  () => m.find((u) => u.key === r.value) ?? m[0]
6537
- ), x = te(() => {
6538
- const u = O.value.width + sn, _ = O.value.height + sn;
6537
+ ), w = ne(() => {
6538
+ const u = O.value.width + an, _ = O.value.height + an;
6539
6539
  return {
6540
6540
  "--device-width": `${O.value.width}px`,
6541
6541
  "--device-height": `${O.value.height}px`,
@@ -6543,23 +6543,23 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6543
6543
  "--preview-stage-width": `${u * o.value}px`,
6544
6544
  "--preview-stage-height": `${_ * o.value}px`
6545
6545
  };
6546
- }), M = te(
6546
+ }), M = ne(
6547
6547
  () => e.chat.status === "ready" && i.value.some((u) => u.feedback.trim())
6548
- ), I = te(() => e.chat.status === "error" ? e.chat.statusText : e.chat.status === "starting" ? "Cloning repo, installing dependencies, starting dev server…" : e.chat.readOnly ? "Resume this workspace to start a live preview." : e.chat.statusText || "Start a workspace to get a live preview.");
6548
+ ), I = ne(() => e.chat.status === "error" ? e.chat.statusText : e.chat.status === "starting" ? "Cloning repo, installing dependencies, starting dev server…" : e.chat.readOnly ? "Resume this workspace to start a live preview." : e.chat.statusText || "Start a workspace to get a live preview.");
6549
6549
  function Q(u) {
6550
6550
  return u === "ready" ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : u === "fallback" ? "bg-fm-color-system-warning-100 text-fm-color-typo-warning" : "bg-fm-color-system-info-100 text-fm-color-typo-info";
6551
6551
  }
6552
- function G(u, _ = 160) {
6552
+ function H(u, _ = 160) {
6553
6553
  if (!u) return;
6554
6554
  const T = u.replace(/\s+/g, " ").trim();
6555
6555
  if (T)
6556
6556
  return T.length > _ ? `${T.slice(0, _ - 1)}…` : T;
6557
6557
  }
6558
- function W(u) {
6558
+ function G(u) {
6559
6559
  const _ = {};
6560
- for (const [T, B] of Object.entries(u)) {
6561
- const re = G(B, 120);
6562
- re && (_[T] = re);
6560
+ for (const [T, W] of Object.entries(u)) {
6561
+ const ee = H(W, 120);
6562
+ ee && (_[T] = ee);
6563
6563
  }
6564
6564
  return Object.keys(_).length ? _ : void 0;
6565
6565
  }
@@ -6567,9 +6567,9 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6567
6567
  if (u)
6568
6568
  return {
6569
6569
  t: u.tag,
6570
- sel: G(u.selector, 240),
6571
- txt: G(u.text, 180),
6572
- attr: W(u.attrs),
6570
+ sel: H(u.selector, 240),
6571
+ txt: H(u.text, 180),
6572
+ attr: G(u.attrs),
6573
6573
  rect: u.rect,
6574
6574
  css: {
6575
6575
  c: u.computed.color,
@@ -6595,18 +6595,18 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6595
6595
  function fe() {
6596
6596
  return window.matchMedia("(max-width: 900px)").matches ? 16 : 24;
6597
6597
  }
6598
- function ne() {
6598
+ function re() {
6599
6599
  const u = l.value;
6600
6600
  if (!u) return;
6601
- const _ = fe() * 2, T = Math.max(0, u.clientWidth - _), B = Math.max(0, u.clientHeight - _), re = O.value.width + sn, ue = O.value.height + sn, V = Math.min(1, T / re, B / ue);
6602
- o.value = Number(Math.max(Ql, V).toFixed(4));
6601
+ const _ = fe() * 2, T = Math.max(0, u.clientWidth - _), W = Math.max(0, u.clientHeight - _), ee = O.value.width + an, ue = O.value.height + an, V = Math.min(1, T / ee, W / ue);
6602
+ o.value = Number(Math.max(ec, V).toFixed(4));
6603
6603
  }
6604
6604
  function _e(u) {
6605
- var B;
6606
- if (u.source !== ((B = a.value) == null ? void 0 : B.contentWindow)) return;
6605
+ var W;
6606
+ if (u.source !== ((W = a.value) == null ? void 0 : W.contentWindow)) return;
6607
6607
  const _ = u.data;
6608
6608
  if (_.source !== "opencode-preview-bridge" || _.type !== "inspect-point-result") return;
6609
- const T = i.value.find((re) => re.id === _.requestId);
6609
+ const T = i.value.find((ee) => ee.id === _.requestId);
6610
6610
  !T || !_.payload || (T.payload = _.payload, T.status = "ready");
6611
6611
  }
6612
6612
  function ge(u) {
@@ -6630,7 +6630,7 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6630
6630
  }
6631
6631
  function we(u) {
6632
6632
  if (!s.value) return;
6633
- const T = u.currentTarget.getBoundingClientRect(), B = o.value || 1, re = Math.max(0, Math.min(T.width, u.clientX - T.left)), ue = Math.max(0, Math.min(T.height, u.clientY - T.top)), V = Math.max(0, Math.min(O.value.width, re / B)), Be = Math.max(0, Math.min(O.value.height, ue / B)), Ue = {
6633
+ const T = u.currentTarget.getBoundingClientRect(), W = o.value || 1, ee = Math.max(0, Math.min(T.width, u.clientX - T.left)), ue = Math.max(0, Math.min(T.height, u.clientY - T.top)), V = Math.max(0, Math.min(O.value.width, ee / W)), Be = Math.max(0, Math.min(O.value.height, ue / W)), Ue = {
6634
6634
  id: d++,
6635
6635
  feedback: "",
6636
6636
  device: O.value,
@@ -6653,21 +6653,21 @@ const ml = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6653
6653
  function D(u) {
6654
6654
  if (!u) return "No element metadata";
6655
6655
  const _ = u.text || u.attrs["aria-label"] || u.attrs.alt || u.selector;
6656
- return `${u.tag}${_ ? ` · ${G(_, 80)}` : ""}`;
6656
+ return `${u.tag}${_ ? ` · ${H(_, 80)}` : ""}`;
6657
6657
  }
6658
6658
  function A(u) {
6659
- var B, re;
6660
- const _ = K(((B = u.payload) == null ? void 0 : B.url) ?? e.chat.previewUrl) ?? "preview", T = D(((re = u.payload) == null ? void 0 : re.element) ?? null);
6661
- return `- #${u.id} ${T} @ ${_} (${u.device.width}x${u.device.height}): ${G(u.feedback, 140)}`;
6659
+ var W, ee;
6660
+ const _ = K(((W = u.payload) == null ? void 0 : W.url) ?? e.chat.previewUrl) ?? "preview", T = D(((ee = u.payload) == null ? void 0 : ee.element) ?? null);
6661
+ return `- #${u.id} ${T} @ ${_} (${u.device.width}x${u.device.height}): ${H(u.feedback, 140)}`;
6662
6662
  }
6663
6663
  function g(u) {
6664
- var T, B, re, ue, V;
6664
+ var T, W, ee, ue, V;
6665
6665
  const _ = ((T = u.payload) == null ? void 0 : T.element) ?? null;
6666
6666
  return {
6667
6667
  id: u.id,
6668
6668
  note: u.feedback.trim(),
6669
- route: K(((B = u.payload) == null ? void 0 : B.url) ?? e.chat.previewUrl),
6670
- title: G((re = u.payload) == null ? void 0 : re.title, 80),
6669
+ route: K(((W = u.payload) == null ? void 0 : W.url) ?? e.chat.previewUrl),
6670
+ title: H((ee = u.payload) == null ? void 0 : ee.title, 80),
6671
6671
  device: `${u.device.width}x${u.device.height}`,
6672
6672
  xy: [u.point.x, u.point.y],
6673
6673
  pct: [u.pointPct.x, u.pointPct.y],
@@ -6695,17 +6695,17 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6695
6695
  !u.length || e.chat.status !== "ready" || (e.chat.sendMessage(E(u)), i.value = i.value.filter((_) => !_.feedback.trim()), s.value = !1);
6696
6696
  }
6697
6697
  return hs(() => {
6698
- window.addEventListener("message", _e), window.addEventListener("resize", ne), Bn(() => {
6699
- ne(), l.value && typeof ResizeObserver < "u" && (p = new ResizeObserver(ne), p.observe(l.value));
6698
+ window.addEventListener("message", _e), window.addEventListener("resize", re), Bn(() => {
6699
+ re(), l.value && typeof ResizeObserver < "u" && (p = new ResizeObserver(re), p.observe(l.value));
6700
6700
  });
6701
6701
  }), Oi(() => {
6702
- window.removeEventListener("message", _e), window.removeEventListener("resize", ne), p == null || p.disconnect();
6702
+ window.removeEventListener("message", _e), window.removeEventListener("resize", re), p == null || p.disconnect();
6703
6703
  }), Gt(r, () => {
6704
- Bn(ne);
6704
+ Bn(re);
6705
6705
  }), (u, _) => {
6706
- const T = Me("FmSelect"), B = Me("FmButton"), re = Me("FmIcon"), ue = Me("FmCircularProgress");
6707
- return C(), H("div", $l, [
6708
- w("header", Dl, [
6706
+ const T = Me("FmSelect"), W = Me("FmButton"), ee = Me("FmIcon"), ue = Me("FmCircularProgress");
6707
+ return C(), j("div", $l, [
6708
+ x("header", Dl, [
6709
6709
  ae(T, {
6710
6710
  modelValue: r.value,
6711
6711
  "onUpdate:modelValue": _[0] || (_[0] = (V) => r.value = V),
@@ -6715,7 +6715,7 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6715
6715
  disabled: !e.chat.previewUrl,
6716
6716
  placeholder: "Device"
6717
6717
  }, null, 8, ["modelValue", "items", "disabled"]),
6718
- ae(B, {
6718
+ ae(W, {
6719
6719
  size: "md",
6720
6720
  variant: s.value ? "primary" : "secondary",
6721
6721
  icon: "edit_note",
@@ -6723,104 +6723,122 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6723
6723
  disabled: !e.chat.previewUrl,
6724
6724
  onClick: _[1] || (_[1] = (V) => s.value = !s.value)
6725
6725
  }, null, 8, ["variant", "disabled"]),
6726
- ae(B, {
6726
+ ae(W, {
6727
6727
  size: "md",
6728
6728
  variant: "tertiary",
6729
6729
  icon: "refresh",
6730
6730
  disabled: !e.chat.previewUrl,
6731
6731
  onClick: q
6732
6732
  }, null, 8, ["disabled"]),
6733
- w("a", {
6733
+ x("a", {
6734
6734
  class: Ee(["inline-flex h-[36px] w-[36px] shrink-0 items-center justify-center rounded-lg text-fm-color-typo-primary no-underline transition hover:bg-fm-color-neutral-gray-100", { "pointer-events-none text-fm-color-typo-disabled": !e.chat.previewUrl }]),
6735
6735
  href: e.chat.previewUrl ?? void 0,
6736
6736
  target: "_blank",
6737
6737
  rel: "noopener",
6738
6738
  "aria-label": "Open preview"
6739
6739
  }, [
6740
- ae(re, {
6740
+ ae(ee, {
6741
6741
  name: "open_in_new",
6742
6742
  size: "md",
6743
6743
  color: e.chat.previewUrl ? "typo-primary" : "typo-disabled"
6744
6744
  }, null, 8, ["color"])
6745
6745
  ], 10, zl)
6746
6746
  ]),
6747
- w("div", {
6747
+ x("div", {
6748
6748
  ref_key: "previewBodyEl",
6749
6749
  ref: l,
6750
6750
  class: "preview__body"
6751
6751
  }, [
6752
- i.value.length ? (C(), H("section", Bl, [
6753
- w("div", Ul, [
6754
- w("span", Fl, Z(i.value.length) + " annotation" + Z(i.value.length === 1 ? "" : "s"), 1),
6755
- w("div", jl, [
6756
- ae(B, {
6757
- size: "md",
6758
- variant: "tertiary",
6759
- label: "Clear",
6752
+ i.value.length ? (C(), j("section", Bl, [
6753
+ x("div", Ul, [
6754
+ x("span", Fl, Z(i.value.length) + " annotation" + Z(i.value.length === 1 ? "" : "s"), 1),
6755
+ x("div", jl, [
6756
+ x("button", {
6757
+ type: "button",
6758
+ class: "preview__mini-icon-button",
6759
+ "aria-label": "Clear annotations",
6760
6760
  onClick: v
6761
- }),
6762
- ae(B, {
6763
- size: "md",
6764
- label: "Send to Agent",
6765
- disabled: !M.value,
6766
- loading: t.chat.sending,
6761
+ }, [
6762
+ ae(ee, {
6763
+ name: "delete_sweep",
6764
+ size: "sm",
6765
+ color: "typo-secondary"
6766
+ })
6767
+ ]),
6768
+ x("button", {
6769
+ type: "button",
6770
+ class: "preview__mini-primary-button",
6771
+ disabled: !M.value || t.chat.sending,
6767
6772
  onClick: f
6768
- }, null, 8, ["disabled", "loading"])
6773
+ }, [
6774
+ ae(ee, {
6775
+ name: "send",
6776
+ size: "sm",
6777
+ color: "typo-white"
6778
+ }),
6779
+ _[3] || (_[3] = Wt(" Send ", -1))
6780
+ ], 8, Hl)
6769
6781
  ])
6770
6782
  ]),
6771
- w("div", Hl, [
6772
- (C(!0), H(Ze, null, st(i.value, (V) => {
6783
+ x("div", Gl, [
6784
+ (C(!0), j(Ze, null, st(i.value, (V) => {
6773
6785
  var Be;
6774
- return C(), H("div", {
6786
+ return C(), j("div", {
6775
6787
  key: V.id,
6776
- class: "flex min-w-0 flex-col gap-6 rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white p-8"
6788
+ class: "flex min-w-0 flex-col gap-6 rounded-md border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white p-[8px]"
6777
6789
  }, [
6778
- w("div", Gl, [
6779
- w("span", Wl, "#" + Z(V.id), 1),
6780
- w("span", ql, Z(D(((Be = V.payload) == null ? void 0 : Be.element) ?? null)), 1),
6781
- w("span", {
6782
- class: Ee(["shrink-0 rounded-full px-8 py-2 fm-typo-en-body-xs-600", Q(V.status)])
6790
+ x("div", Wl, [
6791
+ x("span", ql, "#" + Z(V.id), 1),
6792
+ x("span", Zl, Z(D(((Be = V.payload) == null ? void 0 : Be.element) ?? null)), 1),
6793
+ x("span", {
6794
+ class: Ee(["shrink-0 rounded-full px-[6px] py-[1px] text-[12px] font-semibold leading-[18px]", Q(V.status)])
6783
6795
  }, Z(V.status), 3),
6784
- ae(B, {
6785
- size: "md",
6786
- variant: "tertiary",
6787
- label: "Remove",
6796
+ x("button", {
6797
+ type: "button",
6798
+ class: "preview__mini-icon-button",
6799
+ "aria-label": "Remove annotation",
6788
6800
  onClick: (Ue) => me(V.id)
6789
- }, null, 8, ["onClick"])
6801
+ }, [
6802
+ ae(ee, {
6803
+ name: "close",
6804
+ size: "sm",
6805
+ color: "typo-secondary"
6806
+ })
6807
+ ], 8, Kl)
6790
6808
  ]),
6791
- ps(w("textarea", {
6809
+ ps(x("textarea", {
6792
6810
  "onUpdate:modelValue": (Ue) => V.feedback = Ue,
6793
6811
  rows: "2",
6794
6812
  placeholder: "Describe what should change here…",
6795
- class: "min-h-[40px] max-h-[96px] w-full resize-y rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white px-10 py-8 fm-typo-en-body-sm-400 text-fm-color-typo-primary outline-none transition placeholder:text-fm-color-typo-tertiary focus:border-fm-color-primary"
6796
- }, null, 8, Zl), [
6813
+ class: "min-h-[36px] max-h-[88px] w-full resize-y rounded-md border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white px-[10px] py-[7px] fm-typo-en-body-sm-400 text-fm-color-typo-primary outline-none transition placeholder:text-fm-color-typo-tertiary focus:border-fm-color-primary"
6814
+ }, null, 8, Vl), [
6797
6815
  [fs, V.feedback]
6798
6816
  ])
6799
6817
  ]);
6800
6818
  }), 128))
6801
6819
  ])
6802
6820
  ])) : de("", !0),
6803
- e.chat.previewUrl ? (C(), H("div", Kl, [
6804
- w("div", {
6821
+ e.chat.previewUrl ? (C(), j("div", Yl, [
6822
+ x("div", {
6805
6823
  class: "preview__device-stage",
6806
- style: On(x.value)
6824
+ style: On(w.value)
6807
6825
  }, [
6808
- w("div", Vl, [
6809
- _[3] || (_[3] = w("div", { class: "preview__speaker" }, null, -1)),
6810
- (C(), H("iframe", {
6826
+ x("div", Xl, [
6827
+ _[4] || (_[4] = x("div", { class: "preview__speaker" }, null, -1)),
6828
+ (C(), j("iframe", {
6811
6829
  ref_key: "iframeEl",
6812
6830
  ref: a,
6813
6831
  key: `${n.value}-${r.value}`,
6814
6832
  src: e.chat.previewUrl,
6815
6833
  class: "preview__frame",
6816
6834
  title: "brand-app-poc preview"
6817
- }, null, 8, Yl)),
6818
- s.value ? (C(), H("div", {
6835
+ }, null, 8, Ql)),
6836
+ s.value ? (C(), j("div", {
6819
6837
  key: 0,
6820
6838
  class: "preview__annotation-layer",
6821
6839
  onClick: we
6822
6840
  }, [
6823
- (C(!0), H(Ze, null, st(i.value, (V) => (C(), H("button", {
6841
+ (C(!0), j(Ze, null, st(i.value, (V) => (C(), j("button", {
6824
6842
  key: V.id,
6825
6843
  type: "button",
6826
6844
  class: "preview__pin",
@@ -6829,7 +6847,7 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6829
6847
  }, ["stop"]))
6830
6848
  }, Z(V.id), 5))), 128))
6831
6849
  ])) : de("", !0),
6832
- (C(!0), H(Ze, null, st(s.value ? [] : i.value, (V) => (C(), H("button", {
6850
+ (C(!0), j(Ze, null, st(s.value ? [] : i.value, (V) => (C(), j("button", {
6833
6851
  key: V.id,
6834
6852
  type: "button",
6835
6853
  class: "preview__pin preview__pin--readonly",
@@ -6837,19 +6855,19 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6837
6855
  }, Z(V.id), 5))), 128))
6838
6856
  ])
6839
6857
  ], 4)
6840
- ])) : (C(), H("div", Xl, [
6858
+ ])) : (C(), j("div", Jl, [
6841
6859
  e.chat.status === "starting" ? (C(), je(ue, {
6842
6860
  key: 0,
6843
6861
  size: "xxl",
6844
6862
  color: "primary"
6845
6863
  })) : de("", !0),
6846
- w("p", null, Z(I.value), 1)
6864
+ x("p", null, Z(I.value), 1)
6847
6865
  ]))
6848
6866
  ], 512)
6849
6867
  ]);
6850
6868
  };
6851
6869
  }
6852
- }), ec = /* @__PURE__ */ Kn(Jl, [["__scopeId", "data-v-fb9443d3"]]), tc = { class: "flex justify-end gap-8" }, nc = /* @__PURE__ */ Ot({
6870
+ }), nc = /* @__PURE__ */ Kn(tc, [["__scopeId", "data-v-c6df641c"]]), rc = { class: "flex justify-end gap-8" }, sc = /* @__PURE__ */ Ot({
6853
6871
  __name: "RenameSessionDialog",
6854
6872
  props: {
6855
6873
  initialTitle: {}
@@ -6867,7 +6885,7 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6867
6885
  default: Sr(() => [
6868
6886
  ae(p, { class: "w-[360px] space-y-16 p-16" }, {
6869
6887
  default: Sr(() => [
6870
- o[2] || (o[2] = w("div", { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Rename workspace", -1)),
6888
+ o[2] || (o[2] = x("div", { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Rename workspace", -1)),
6871
6889
  ae(i, {
6872
6890
  modelValue: s.value,
6873
6891
  "onUpdate:modelValue": o[0] || (o[0] = (b) => s.value = b),
@@ -6875,7 +6893,7 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6875
6893
  placeholder: "e.g. Homepage banner redesign",
6876
6894
  rules: [(b) => !!b.trim() || "Name is required"]
6877
6895
  }, null, 8, ["modelValue", "rules"]),
6878
- w("div", tc, [
6896
+ x("div", rc, [
6879
6897
  ae(d, {
6880
6898
  label: "Cancel",
6881
6899
  variant: "tertiary",
@@ -6896,40 +6914,40 @@ Use these preview annotations to make the requested UI changes. The hidden comme
6896
6914
  };
6897
6915
  }
6898
6916
  }), qn = "69cde0740c0106001ca83dff";
6899
- function rc(t) {
6917
+ function ic(t) {
6900
6918
  return t.replace(/\/+$/, "");
6901
6919
  }
6902
- function sc() {
6903
- return rc("https://miniprogram-v2-control-plane.feedme-dev.workers.dev");
6920
+ function ac() {
6921
+ return ic("https://miniprogram-v2-control-plane.feedme-dev.workers.dev");
6904
6922
  }
6905
6923
  function jt(t) {
6906
- const e = sc();
6924
+ const e = ac();
6907
6925
  return e ? `${e}${t.startsWith("/") ? t : `/${t}`}` : t;
6908
6926
  }
6909
- function Kt() {
6927
+ function Vt() {
6910
6928
  return Zn().currentBusiness.value;
6911
6929
  }
6912
6930
  function hn() {
6913
- const t = Kt();
6931
+ const t = Vt();
6914
6932
  return (t == null ? void 0 : t._id) ?? (t == null ? void 0 : t.id) ?? qn;
6915
6933
  }
6916
- function ic() {
6917
- const t = Kt();
6934
+ function oc() {
6935
+ const t = Vt();
6918
6936
  return (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.slug) ?? hn();
6919
6937
  }
6920
6938
  function os() {
6921
6939
  var t;
6922
- return (t = Kt()) == null ? void 0 : t.slug;
6940
+ return (t = Vt()) == null ? void 0 : t.slug;
6923
6941
  }
6924
- function ac() {
6925
- const t = Kt();
6942
+ function lc() {
6943
+ const t = Vt();
6926
6944
  return (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.slug) ?? hn();
6927
6945
  }
6928
- function oc() {
6929
- const t = Kt();
6946
+ function cc() {
6947
+ const t = Vt();
6930
6948
  return (t == null ? void 0 : t.country) ?? (t == null ? void 0 : t.countryCode) ?? (t == null ? void 0 : t.country_code);
6931
6949
  }
6932
- function lc(t) {
6950
+ function uc(t) {
6933
6951
  return new Promise((e) => window.setTimeout(e, t));
6934
6952
  }
6935
6953
  function ls() {
@@ -6940,7 +6958,7 @@ async function ii() {
6940
6958
  let t = ls();
6941
6959
  const e = Date.now() + 5e3;
6942
6960
  for (; !t && Date.now() < e; )
6943
- await lc(100), t = ls();
6961
+ await uc(100), t = ls();
6944
6962
  return t ? `Bearer ${t}` : null;
6945
6963
  }
6946
6964
  async function Ht(t, e = {}) {
@@ -6965,42 +6983,42 @@ async function $e(t, e = {}) {
6965
6983
  window.clearTimeout(s);
6966
6984
  }
6967
6985
  }
6968
- const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseValidator: r, sseDefaultRetryDelay: s, sseMaxRetryAttempts: a, sseMaxRetryDelay: l, sseSleepFn: o, url: i, ...d }) => {
6986
+ const dc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseValidator: r, sseDefaultRetryDelay: s, sseMaxRetryAttempts: a, sseMaxRetryDelay: l, sseSleepFn: o, url: i, ...d }) => {
6969
6987
  let p;
6970
- const m = o ?? ((x) => new Promise((M) => setTimeout(M, x)));
6988
+ const m = o ?? ((w) => new Promise((M) => setTimeout(M, w)));
6971
6989
  return { stream: async function* () {
6972
- let x = s ?? 3e3, M = 0;
6990
+ let w = s ?? 3e3, M = 0;
6973
6991
  const I = d.signal ?? new AbortController().signal;
6974
6992
  for (; !I.aborted; ) {
6975
6993
  M++;
6976
6994
  const Q = d.headers instanceof Headers ? d.headers : new Headers(d.headers);
6977
6995
  p !== void 0 && Q.set("Last-Event-ID", p);
6978
6996
  try {
6979
- const G = await fetch(i, { ...d, headers: Q, signal: I });
6980
- if (!G.ok)
6981
- throw new Error(`SSE failed: ${G.status} ${G.statusText}`);
6982
- if (!G.body)
6997
+ const H = await fetch(i, { ...d, headers: Q, signal: I });
6998
+ if (!H.ok)
6999
+ throw new Error(`SSE failed: ${H.status} ${H.statusText}`);
7000
+ if (!H.body)
6983
7001
  throw new Error("No body in SSE response");
6984
- const W = G.body.pipeThrough(new TextDecoderStream()).getReader();
7002
+ const G = H.body.pipeThrough(new TextDecoderStream()).getReader();
6985
7003
  let $ = "";
6986
7004
  const K = () => {
6987
7005
  try {
6988
- W.cancel();
7006
+ G.cancel();
6989
7007
  } catch {
6990
7008
  }
6991
7009
  };
6992
7010
  I.addEventListener("abort", K);
6993
7011
  try {
6994
7012
  for (; ; ) {
6995
- const { done: q, value: fe } = await W.read();
7013
+ const { done: q, value: fe } = await G.read();
6996
7014
  if (q)
6997
7015
  break;
6998
7016
  $ += fe;
6999
- const ne = $.split(`
7017
+ const re = $.split(`
7000
7018
 
7001
7019
  `);
7002
- $ = ne.pop() ?? "";
7003
- for (const _e of ne) {
7020
+ $ = re.pop() ?? "";
7021
+ for (const _e of re) {
7004
7022
  const ge = _e.split(`
7005
7023
  `), we = [];
7006
7024
  let me;
@@ -7013,7 +7031,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7013
7031
  p = A.replace(/^id:\s*/, "");
7014
7032
  else if (A.startsWith("retry:")) {
7015
7033
  const g = Number.parseInt(A.replace(/^retry:\s*/, ""), 10);
7016
- Number.isNaN(g) || (x = g);
7034
+ Number.isNaN(g) || (w = g);
7017
7035
  }
7018
7036
  let v, D = !1;
7019
7037
  if (we.length) {
@@ -7029,29 +7047,29 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7029
7047
  data: v,
7030
7048
  event: me,
7031
7049
  id: p,
7032
- retry: x
7050
+ retry: w
7033
7051
  }), we.length && (yield v);
7034
7052
  }
7035
7053
  }
7036
7054
  } finally {
7037
- I.removeEventListener("abort", K), W.releaseLock();
7055
+ I.removeEventListener("abort", K), G.releaseLock();
7038
7056
  }
7039
7057
  break;
7040
- } catch (G) {
7041
- if (t == null || t(G), a !== void 0 && M >= a)
7058
+ } catch (H) {
7059
+ if (t == null || t(H), a !== void 0 && M >= a)
7042
7060
  break;
7043
- const W = Math.min(x * 2 ** (M - 1), l ?? 3e4);
7044
- await m(W);
7061
+ const G = Math.min(w * 2 ** (M - 1), l ?? 3e4);
7062
+ await m(G);
7045
7063
  }
7046
7064
  }
7047
7065
  }() };
7048
- }, uc = async (t, e) => {
7066
+ }, pc = async (t, e) => {
7049
7067
  const n = typeof e == "function" ? await e(t) : e;
7050
7068
  if (n)
7051
7069
  return t.scheme === "bearer" ? `Bearer ${n}` : t.scheme === "basic" ? `Basic ${btoa(n)}` : n;
7052
- }, dc = {
7070
+ }, fc = {
7053
7071
  bodySerializer: (t) => JSON.stringify(t, (e, n) => typeof n == "bigint" ? n.toString() : n)
7054
- }, pc = (t) => {
7072
+ }, hc = (t) => {
7055
7073
  switch (t) {
7056
7074
  case "label":
7057
7075
  return ".";
@@ -7062,7 +7080,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7062
7080
  default:
7063
7081
  return "&";
7064
7082
  }
7065
- }, fc = (t) => {
7083
+ }, gc = (t) => {
7066
7084
  switch (t) {
7067
7085
  case "form":
7068
7086
  return ",";
@@ -7073,7 +7091,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7073
7091
  default:
7074
7092
  return ",";
7075
7093
  }
7076
- }, hc = (t) => {
7094
+ }, mc = (t) => {
7077
7095
  switch (t) {
7078
7096
  case "label":
7079
7097
  return ".";
@@ -7086,7 +7104,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7086
7104
  }
7087
7105
  }, ai = ({ allowReserved: t, explode: e, name: n, style: r, value: s }) => {
7088
7106
  if (!e) {
7089
- const o = (t ? s : s.map((i) => encodeURIComponent(i))).join(fc(r));
7107
+ const o = (t ? s : s.map((i) => encodeURIComponent(i))).join(gc(r));
7090
7108
  switch (r) {
7091
7109
  case "label":
7092
7110
  return `.${o}`;
@@ -7098,7 +7116,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7098
7116
  return `${n}=${o}`;
7099
7117
  }
7100
7118
  }
7101
- const a = pc(r), l = s.map((o) => r === "label" || r === "simple" ? t ? o : encodeURIComponent(o) : yn({
7119
+ const a = hc(r), l = s.map((o) => r === "label" || r === "simple" ? t ? o : encodeURIComponent(o) : yn({
7102
7120
  allowReserved: t,
7103
7121
  name: n,
7104
7122
  value: o
@@ -7130,15 +7148,15 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7130
7148
  return d;
7131
7149
  }
7132
7150
  }
7133
- const l = hc(r), o = Object.entries(s).map(([i, d]) => yn({
7151
+ const l = mc(r), o = Object.entries(s).map(([i, d]) => yn({
7134
7152
  allowReserved: t,
7135
7153
  name: r === "deepObject" ? `${n}[${i}]` : i,
7136
7154
  value: d
7137
7155
  })).join(l);
7138
7156
  return r === "label" || r === "matrix" ? l + o : o;
7139
- }, gc = /\{[^{}]+\}/g, mc = ({ path: t, url: e }) => {
7157
+ }, bc = /\{[^{}]+\}/g, yc = ({ path: t, url: e }) => {
7140
7158
  let n = e;
7141
- const r = e.match(gc);
7159
+ const r = e.match(bc);
7142
7160
  if (r)
7143
7161
  for (const s of r) {
7144
7162
  let a = !1, l = s.substring(1, s.length - 1), o = "simple";
@@ -7171,10 +7189,10 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7171
7189
  n = n.replace(s, d);
7172
7190
  }
7173
7191
  return n;
7174
- }, bc = ({ baseUrl: t, path: e, query: n, querySerializer: r, url: s }) => {
7192
+ }, xc = ({ baseUrl: t, path: e, query: n, querySerializer: r, url: s }) => {
7175
7193
  const a = s.startsWith("/") ? s : `/${s}`;
7176
7194
  let l = (t ?? "") + a;
7177
- e && (l = mc({ path: e, url: l }));
7195
+ e && (l = yc({ path: e, url: l }));
7178
7196
  let o = n ? r(n) : "";
7179
7197
  return o.startsWith("?") && (o = o.substring(1)), o && (l += `?${o}`), l;
7180
7198
  }, li = ({ allowReserved: t, array: e, object: n } = {}) => (s) => {
@@ -7213,7 +7231,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7213
7231
  }
7214
7232
  }
7215
7233
  return a.join("&");
7216
- }, yc = (t) => {
7234
+ }, _c = (t) => {
7217
7235
  var n;
7218
7236
  if (!t)
7219
7237
  return "stream";
@@ -7228,14 +7246,14 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7228
7246
  if (e.startsWith("text/"))
7229
7247
  return "text";
7230
7248
  }
7231
- }, xc = (t, e) => {
7249
+ }, wc = (t, e) => {
7232
7250
  var n, r;
7233
7251
  return e ? !!(t.headers.has(e) || (n = t.query) != null && n[e] || (r = t.headers.get("Cookie")) != null && r.includes(`${e}=`)) : !1;
7234
- }, _c = async ({ security: t, ...e }) => {
7252
+ }, vc = async ({ security: t, ...e }) => {
7235
7253
  for (const n of t) {
7236
- if (xc(e, n.name))
7254
+ if (wc(e, n.name))
7237
7255
  continue;
7238
- const r = await uc(n, e.auth);
7256
+ const r = await pc(n, e.auth);
7239
7257
  if (!r)
7240
7258
  continue;
7241
7259
  const s = n.name ?? "Authorization";
@@ -7252,7 +7270,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7252
7270
  break;
7253
7271
  }
7254
7272
  }
7255
- }, cs = (t) => bc({
7273
+ }, cs = (t) => xc({
7256
7274
  baseUrl: t.baseUrl,
7257
7275
  path: t.path,
7258
7276
  query: t.query,
@@ -7280,7 +7298,7 @@ const cc = ({ onSseError: t, onSseEvent: e, responseTransformer: n, responseVali
7280
7298
  };
7281
7299
  class zn {
7282
7300
  constructor() {
7283
- U(this, "_fns");
7301
+ B(this, "_fns");
7284
7302
  this._fns = [];
7285
7303
  }
7286
7304
  clear() {
@@ -7305,11 +7323,11 @@ class zn {
7305
7323
  return this._fns = [...this._fns, e], this._fns.length - 1;
7306
7324
  }
7307
7325
  }
7308
- const wc = () => ({
7326
+ const kc = () => ({
7309
7327
  error: new zn(),
7310
7328
  request: new zn(),
7311
7329
  response: new zn()
7312
- }), vc = li({
7330
+ }), Ec = li({
7313
7331
  allowReserved: !1,
7314
7332
  array: {
7315
7333
  explode: !0,
@@ -7319,17 +7337,17 @@ const wc = () => ({
7319
7337
  explode: !0,
7320
7338
  style: "deepObject"
7321
7339
  }
7322
- }), kc = {
7340
+ }), Tc = {
7323
7341
  "Content-Type": "application/json"
7324
7342
  }, ui = (t = {}) => ({
7325
- ...dc,
7326
- headers: kc,
7343
+ ...fc,
7344
+ headers: Tc,
7327
7345
  parseAs: "auto",
7328
- querySerializer: vc,
7346
+ querySerializer: Ec,
7329
7347
  ...t
7330
7348
  }), di = (t = {}) => {
7331
7349
  let e = us(ui(), t);
7332
- const n = () => ({ ...e }), r = (i) => (e = us(e, i), n()), s = wc(), a = async (i) => {
7350
+ const n = () => ({ ...e }), r = (i) => (e = us(e, i), n()), s = kc(), a = async (i) => {
7333
7351
  const d = {
7334
7352
  ...e,
7335
7353
  ...i,
@@ -7337,7 +7355,7 @@ const wc = () => ({
7337
7355
  headers: ci(e.headers, i.headers),
7338
7356
  serializedBody: void 0
7339
7357
  };
7340
- d.security && await _c({
7358
+ d.security && await vc({
7341
7359
  ...d,
7342
7360
  security: d.security
7343
7361
  }), d.requestValidator && await d.requestValidator(d), d.body && d.bodySerializer && (d.serializedBody = d.bodySerializer(d.body)), (d.serializedBody === void 0 || d.serializedBody === "") && d.headers.delete("Content-Type");
@@ -7353,20 +7371,20 @@ const wc = () => ({
7353
7371
  for (const $ of s.request._fns)
7354
7372
  $ && (b = await $(b, d));
7355
7373
  const O = d.fetch;
7356
- let x = await O(b);
7374
+ let w = await O(b);
7357
7375
  for (const $ of s.response._fns)
7358
- $ && (x = await $(x, b, d));
7376
+ $ && (w = await $(w, b, d));
7359
7377
  const M = {
7360
7378
  request: b,
7361
- response: x
7379
+ response: w
7362
7380
  };
7363
- if (x.ok) {
7364
- if (x.status === 204 || x.headers.get("Content-Length") === "0")
7381
+ if (w.ok) {
7382
+ if (w.status === 204 || w.headers.get("Content-Length") === "0")
7365
7383
  return d.responseStyle === "data" ? {} : {
7366
7384
  data: {},
7367
7385
  ...M
7368
7386
  };
7369
- const $ = (d.parseAs === "auto" ? yc(x.headers.get("Content-Type")) : d.parseAs) ?? "json";
7387
+ const $ = (d.parseAs === "auto" ? _c(w.headers.get("Content-Type")) : d.parseAs) ?? "json";
7370
7388
  let K;
7371
7389
  switch ($) {
7372
7390
  case "arrayBuffer":
@@ -7374,11 +7392,11 @@ const wc = () => ({
7374
7392
  case "formData":
7375
7393
  case "json":
7376
7394
  case "text":
7377
- K = await x[$]();
7395
+ K = await w[$]();
7378
7396
  break;
7379
7397
  case "stream":
7380
- return d.responseStyle === "data" ? x.body : {
7381
- data: x.body,
7398
+ return d.responseStyle === "data" ? w.body : {
7399
+ data: w.body,
7382
7400
  ...M
7383
7401
  };
7384
7402
  }
@@ -7387,27 +7405,27 @@ const wc = () => ({
7387
7405
  ...M
7388
7406
  };
7389
7407
  }
7390
- const I = await x.text();
7408
+ const I = await w.text();
7391
7409
  let Q;
7392
7410
  try {
7393
7411
  Q = JSON.parse(I);
7394
7412
  } catch {
7395
7413
  }
7396
- const G = Q ?? I;
7397
- let W = G;
7414
+ const H = Q ?? I;
7415
+ let G = H;
7398
7416
  for (const $ of s.error._fns)
7399
- $ && (W = await $(G, x, b, d));
7400
- if (W = W || {}, d.throwOnError)
7401
- throw W;
7417
+ $ && (G = await $(H, w, b, d));
7418
+ if (G = G || {}, d.throwOnError)
7419
+ throw G;
7402
7420
  return d.responseStyle === "data" ? void 0 : {
7403
- error: W,
7421
+ error: G,
7404
7422
  ...M
7405
7423
  };
7406
7424
  }, o = (i) => {
7407
7425
  const d = (p) => l({ ...p, method: i });
7408
7426
  return d.sse = async (p) => {
7409
7427
  const { opts: m, url: b } = await a(p);
7410
- return cc({
7428
+ return dc({
7411
7429
  ...m,
7412
7430
  body: m.body,
7413
7431
  headers: m.headers,
@@ -7432,16 +7450,16 @@ const wc = () => ({
7432
7450
  setConfig: r,
7433
7451
  trace: o("TRACE")
7434
7452
  };
7435
- }, Ec = di(ui({
7453
+ }, Sc = di(ui({
7436
7454
  baseUrl: "http://localhost:4096"
7437
7455
  }));
7438
7456
  class ye {
7439
7457
  constructor(e) {
7440
- U(this, "_client", Ec);
7458
+ B(this, "_client", Sc);
7441
7459
  e != null && e.client && (this._client = e.client);
7442
7460
  }
7443
7461
  }
7444
- class Tc extends ye {
7462
+ class Ac extends ye {
7445
7463
  /**
7446
7464
  * Get events
7447
7465
  */
@@ -7452,7 +7470,7 @@ class Tc extends ye {
7452
7470
  });
7453
7471
  }
7454
7472
  }
7455
- class Sc extends ye {
7473
+ class Rc extends ye {
7456
7474
  /**
7457
7475
  * List all projects
7458
7476
  */
@@ -7472,7 +7490,7 @@ class Sc extends ye {
7472
7490
  });
7473
7491
  }
7474
7492
  }
7475
- class Ac extends ye {
7493
+ class Nc extends ye {
7476
7494
  /**
7477
7495
  * List all PTY sessions
7478
7496
  */
@@ -7536,7 +7554,7 @@ class Ac extends ye {
7536
7554
  });
7537
7555
  }
7538
7556
  }
7539
- class Rc extends ye {
7557
+ class Ic extends ye {
7540
7558
  /**
7541
7559
  * Get config info
7542
7560
  */
@@ -7569,7 +7587,7 @@ class Rc extends ye {
7569
7587
  });
7570
7588
  }
7571
7589
  }
7572
- class Nc extends ye {
7590
+ class Oc extends ye {
7573
7591
  /**
7574
7592
  * List all tool IDs (including built-in and dynamically registered)
7575
7593
  */
@@ -7589,7 +7607,7 @@ class Nc extends ye {
7589
7607
  });
7590
7608
  }
7591
7609
  }
7592
- class Ic extends ye {
7610
+ class Cc extends ye {
7593
7611
  /**
7594
7612
  * Dispose the current instance
7595
7613
  */
@@ -7600,7 +7618,7 @@ class Ic extends ye {
7600
7618
  });
7601
7619
  }
7602
7620
  }
7603
- class Oc extends ye {
7621
+ class Mc extends ye {
7604
7622
  /**
7605
7623
  * Get the current path
7606
7624
  */
@@ -7611,7 +7629,7 @@ class Oc extends ye {
7611
7629
  });
7612
7630
  }
7613
7631
  }
7614
- class Cc extends ye {
7632
+ class Lc extends ye {
7615
7633
  /**
7616
7634
  * Get VCS info for the current instance
7617
7635
  */
@@ -7622,7 +7640,7 @@ class Cc extends ye {
7622
7640
  });
7623
7641
  }
7624
7642
  }
7625
- class Mc extends ye {
7643
+ class Pc extends ye {
7626
7644
  /**
7627
7645
  * List all sessions
7628
7646
  */
@@ -7871,7 +7889,7 @@ class Mc extends ye {
7871
7889
  });
7872
7890
  }
7873
7891
  }
7874
- class Lc extends ye {
7892
+ class $c extends ye {
7875
7893
  /**
7876
7894
  * List all commands
7877
7895
  */
@@ -7882,7 +7900,7 @@ class Lc extends ye {
7882
7900
  });
7883
7901
  }
7884
7902
  }
7885
- class Pc extends ye {
7903
+ class Dc extends ye {
7886
7904
  /**
7887
7905
  * Authorize a provider using OAuth
7888
7906
  */
@@ -7910,10 +7928,10 @@ class Pc extends ye {
7910
7928
  });
7911
7929
  }
7912
7930
  }
7913
- class $c extends ye {
7931
+ class zc extends ye {
7914
7932
  constructor() {
7915
7933
  super(...arguments);
7916
- U(this, "oauth", new Pc({ client: this._client }));
7934
+ B(this, "oauth", new Dc({ client: this._client }));
7917
7935
  }
7918
7936
  /**
7919
7937
  * List all providers
@@ -7934,7 +7952,7 @@ class $c extends ye {
7934
7952
  });
7935
7953
  }
7936
7954
  }
7937
- class Dc extends ye {
7955
+ class Bc extends ye {
7938
7956
  /**
7939
7957
  * Find text in files
7940
7958
  */
@@ -7963,7 +7981,7 @@ class Dc extends ye {
7963
7981
  });
7964
7982
  }
7965
7983
  }
7966
- class zc extends ye {
7984
+ class Uc extends ye {
7967
7985
  /**
7968
7986
  * List files and directories
7969
7987
  */
@@ -7992,7 +8010,7 @@ class zc extends ye {
7992
8010
  });
7993
8011
  }
7994
8012
  }
7995
- class Bc extends ye {
8013
+ class Fc extends ye {
7996
8014
  /**
7997
8015
  * Write a log entry to the server logs
7998
8016
  */
@@ -8071,10 +8089,10 @@ class pi extends ye {
8071
8089
  });
8072
8090
  }
8073
8091
  }
8074
- class Uc extends ye {
8092
+ class jc extends ye {
8075
8093
  constructor() {
8076
8094
  super(...arguments);
8077
- U(this, "auth", new pi({ client: this._client }));
8095
+ B(this, "auth", new pi({ client: this._client }));
8078
8096
  }
8079
8097
  /**
8080
8098
  * Get MCP server status
@@ -8117,7 +8135,7 @@ class Uc extends ye {
8117
8135
  });
8118
8136
  }
8119
8137
  }
8120
- class Fc extends ye {
8138
+ class Hc extends ye {
8121
8139
  /**
8122
8140
  * Get LSP server status
8123
8141
  */
@@ -8128,7 +8146,7 @@ class Fc extends ye {
8128
8146
  });
8129
8147
  }
8130
8148
  }
8131
- class jc extends ye {
8149
+ class Gc extends ye {
8132
8150
  /**
8133
8151
  * Get formatter status
8134
8152
  */
@@ -8139,7 +8157,7 @@ class jc extends ye {
8139
8157
  });
8140
8158
  }
8141
8159
  }
8142
- class Hc extends ye {
8160
+ class Wc extends ye {
8143
8161
  /**
8144
8162
  * Get the next TUI request from the queue
8145
8163
  */
@@ -8163,10 +8181,10 @@ class Hc extends ye {
8163
8181
  });
8164
8182
  }
8165
8183
  }
8166
- class Gc extends ye {
8184
+ class qc extends ye {
8167
8185
  constructor() {
8168
8186
  super(...arguments);
8169
- U(this, "control", new Hc({ client: this._client }));
8187
+ B(this, "control", new Wc({ client: this._client }));
8170
8188
  }
8171
8189
  /**
8172
8190
  * Append prompt to the TUI
@@ -8275,7 +8293,7 @@ class Gc extends ye {
8275
8293
  });
8276
8294
  }
8277
8295
  }
8278
- class Wc extends ye {
8296
+ class Zc extends ye {
8279
8297
  /**
8280
8298
  * Get events
8281
8299
  */
@@ -8286,29 +8304,29 @@ class Wc extends ye {
8286
8304
  });
8287
8305
  }
8288
8306
  }
8289
- class qc extends ye {
8307
+ class Kc extends ye {
8290
8308
  constructor() {
8291
8309
  super(...arguments);
8292
- U(this, "global", new Tc({ client: this._client }));
8293
- U(this, "project", new Sc({ client: this._client }));
8294
- U(this, "pty", new Ac({ client: this._client }));
8295
- U(this, "config", new Rc({ client: this._client }));
8296
- U(this, "tool", new Nc({ client: this._client }));
8297
- U(this, "instance", new Ic({ client: this._client }));
8298
- U(this, "path", new Oc({ client: this._client }));
8299
- U(this, "vcs", new Cc({ client: this._client }));
8300
- U(this, "session", new Mc({ client: this._client }));
8301
- U(this, "command", new Lc({ client: this._client }));
8302
- U(this, "provider", new $c({ client: this._client }));
8303
- U(this, "find", new Dc({ client: this._client }));
8304
- U(this, "file", new zc({ client: this._client }));
8305
- U(this, "app", new Bc({ client: this._client }));
8306
- U(this, "mcp", new Uc({ client: this._client }));
8307
- U(this, "lsp", new Fc({ client: this._client }));
8308
- U(this, "formatter", new jc({ client: this._client }));
8309
- U(this, "tui", new Gc({ client: this._client }));
8310
- U(this, "auth", new pi({ client: this._client }));
8311
- U(this, "event", new Wc({ client: this._client }));
8310
+ B(this, "global", new Ac({ client: this._client }));
8311
+ B(this, "project", new Rc({ client: this._client }));
8312
+ B(this, "pty", new Nc({ client: this._client }));
8313
+ B(this, "config", new Ic({ client: this._client }));
8314
+ B(this, "tool", new Oc({ client: this._client }));
8315
+ B(this, "instance", new Cc({ client: this._client }));
8316
+ B(this, "path", new Mc({ client: this._client }));
8317
+ B(this, "vcs", new Lc({ client: this._client }));
8318
+ B(this, "session", new Pc({ client: this._client }));
8319
+ B(this, "command", new $c({ client: this._client }));
8320
+ B(this, "provider", new zc({ client: this._client }));
8321
+ B(this, "find", new Bc({ client: this._client }));
8322
+ B(this, "file", new Uc({ client: this._client }));
8323
+ B(this, "app", new Fc({ client: this._client }));
8324
+ B(this, "mcp", new jc({ client: this._client }));
8325
+ B(this, "lsp", new Hc({ client: this._client }));
8326
+ B(this, "formatter", new Gc({ client: this._client }));
8327
+ B(this, "tui", new qc({ client: this._client }));
8328
+ B(this, "auth", new pi({ client: this._client }));
8329
+ B(this, "event", new Zc({ client: this._client }));
8312
8330
  }
8313
8331
  /**
8314
8332
  * Respond to a permission request
@@ -8324,7 +8342,7 @@ class qc extends ye {
8324
8342
  });
8325
8343
  }
8326
8344
  }
8327
- function Zc(t, e, n, r) {
8345
+ function Vc(t, e, n, r) {
8328
8346
  var a;
8329
8347
  if (!(r != null && r.throwOnError) || t instanceof Error)
8330
8348
  return t;
@@ -8343,14 +8361,14 @@ function ds(t, e) {
8343
8361
  const n = (t == null ? void 0 : t.method) ?? "?", r = (t == null ? void 0 : t.url) ?? "?", s = e == null ? void 0 : e.status, a = e == null ? void 0 : e.statusText;
8344
8362
  return `${n} ${r}${s ? " → " + s : ""}${a ? " " + a : ""}`;
8345
8363
  }
8346
- function Kc(t, e) {
8364
+ function Yc(t, e) {
8347
8365
  if (t)
8348
8366
  return e && (t === e || t === encodeURIComponent(e)) ? e : t;
8349
8367
  }
8350
- function Vc(t, e) {
8368
+ function Xc(t, e) {
8351
8369
  if (t.method !== "GET" && t.method !== "HEAD")
8352
8370
  return t;
8353
- const n = Kc(t.headers.get("x-opencode-directory"), e);
8371
+ const n = Yc(t.headers.get("x-opencode-directory"), e);
8354
8372
  if (!n)
8355
8373
  return t;
8356
8374
  const r = new URL(t.url);
@@ -8358,7 +8376,7 @@ function Vc(t, e) {
8358
8376
  const s = new Request(r, t);
8359
8377
  return s.headers.delete("x-opencode-directory"), s;
8360
8378
  }
8361
- function Yc(t) {
8379
+ function Qc(t) {
8362
8380
  t != null && t.fetch || (t = {
8363
8381
  ...t,
8364
8382
  fetch: (r) => (r.timeout = !1, fetch(r))
@@ -8367,9 +8385,9 @@ function Yc(t) {
8367
8385
  "x-opencode-directory": encodeURIComponent(t.directory)
8368
8386
  });
8369
8387
  const e = di(t);
8370
- return e.interceptors.request.use((n) => Vc(n, t == null ? void 0 : t.directory)), e.interceptors.error.use(Zc), new qc({ client: e });
8388
+ return e.interceptors.request.use((n) => Xc(n, t == null ? void 0 : t.directory)), e.interceptors.error.use(Vc), new Kc({ client: e });
8371
8389
  }
8372
- const Xc = 200;
8390
+ const Jc = 200;
8373
8391
  function Bt(t) {
8374
8392
  if (t && typeof t == "object" && "name" in t && "data" in t) {
8375
8393
  const { name: e, data: n } = t, r = typeof n.message == "string" ? n.message : void 0;
@@ -8377,10 +8395,10 @@ function Bt(t) {
8377
8395
  }
8378
8396
  return "Unknown error";
8379
8397
  }
8380
- function Qc(t) {
8398
+ function eu(t) {
8381
8399
  return t.type === "text" ? { kind: "text", id: t.id, text: t.text } : t.type === "reasoning" ? { kind: "reasoning", id: t.id, text: t.text } : t.type === "tool" ? { kind: "tool", id: t.id, tool: t.tool, state: t.state } : null;
8382
8400
  }
8383
- function Jc() {
8401
+ function tu() {
8384
8402
  const t = se("idle"), e = se("No workspace selected"), n = se(null), r = se(!1), s = se(null), a = se(null), l = se(!1), o = se(!1), i = se([]), d = Un({}), p = se(0);
8385
8403
  let m = null, b = 0;
8386
8404
  function O() {
@@ -8388,7 +8406,7 @@ function Jc() {
8388
8406
  for (const v of Object.keys(d)) delete d[v];
8389
8407
  p.value++;
8390
8408
  }
8391
- function x(v = "No workspace selected") {
8409
+ function w(v = "No workspace selected") {
8392
8410
  b++, m = null, t.value = "idle", e.value = v, n.value = null, r.value = !1, s.value = null, a.value = null, l.value = !0, o.value = !1, O();
8393
8411
  }
8394
8412
  function M(v, D) {
@@ -8405,7 +8423,7 @@ function Jc() {
8405
8423
  return d[v] = g, i.value.push(v), p.value++, g;
8406
8424
  }
8407
8425
  function I(v, D) {
8408
- const A = Qc(D);
8426
+ const A = eu(D);
8409
8427
  if (!A) return;
8410
8428
  const g = v.parts.findIndex((E) => E.id === A.id);
8411
8429
  g === -1 ? v.parts.push(A) : v.parts[g] = A, p.value++;
@@ -8415,7 +8433,7 @@ function Jc() {
8415
8433
  const D = M(v.id, v.role);
8416
8434
  v.role === "assistant" ? (D.busy = !v.time.completed, v.error && (D.errorText = Bt(v.error))) : D.busy = !1;
8417
8435
  }
8418
- function G(v, D = {}) {
8436
+ function H(v, D = {}) {
8419
8437
  O();
8420
8438
  for (const { info: A, parts: g } of [...v].sort((E, f) => E.info.time.created - f.info.time.created)) {
8421
8439
  const E = M(A.id, A.role);
@@ -8423,14 +8441,14 @@ function Jc() {
8423
8441
  for (const f of g) I(E, f);
8424
8442
  }
8425
8443
  }
8426
- async function W(v) {
8444
+ async function G(v) {
8427
8445
  if (!m) return;
8428
8446
  const { data: D, error: A } = await m.session.messages({
8429
8447
  path: { id: v },
8430
- query: { limit: Xc }
8448
+ query: { limit: Jc }
8431
8449
  });
8432
8450
  if (A) throw new Error(Bt(A));
8433
- G(D ?? []);
8451
+ H(D ?? []);
8434
8452
  }
8435
8453
  async function $(v, D) {
8436
8454
  const A = await Ht(
@@ -8438,7 +8456,7 @@ function Jc() {
8438
8456
  );
8439
8457
  if (!A.ok) throw new Error(await A.text());
8440
8458
  const g = await A.json();
8441
- G(g.messages ?? [], { forceIdle: !0 });
8459
+ H(g.messages ?? [], { forceIdle: !0 });
8442
8460
  }
8443
8461
  function K(v) {
8444
8462
  if (v.sessionID !== s.value) return;
@@ -8455,7 +8473,7 @@ function Jc() {
8455
8473
  const u = f.parts.find((_) => _.id === A);
8456
8474
  u && (u.kind === "text" || u.kind === "reasoning") ? u.text += E : u || f.parts.push({ kind: "text", id: A, text: E }), p.value++;
8457
8475
  }
8458
- function ne(v) {
8476
+ function re(v) {
8459
8477
  return new Promise((D) => window.setTimeout(D, v));
8460
8478
  }
8461
8479
  async function _e(v) {
@@ -8488,13 +8506,13 @@ function Jc() {
8488
8506
  if (v !== b) return;
8489
8507
  e.value = `Event stream reconnecting: ${A instanceof Error ? A.message : String(A)}`;
8490
8508
  }
8491
- D++, D >= 3 && (o.value = !0), await ne(1e3), v === b && t.value === "ready" && !o.value && (e.value = "Ready");
8509
+ D++, D >= 3 && (o.value = !0), await re(1e3), v === b && t.value === "ready" && !o.value && (e.value = "Ready");
8492
8510
  }
8493
8511
  }
8494
8512
  function ge(v, D) {
8495
8513
  let A = !0;
8496
8514
  return (async () => {
8497
- for (; A && (await ne(2e3), !!A); )
8515
+ for (; A && (await re(2e3), !!A); )
8498
8516
  try {
8499
8517
  const g = await Ht(
8500
8518
  jt(`/api/projects/${v}/sessions/${D}/start-status`)
@@ -8530,18 +8548,18 @@ function Jc() {
8530
8548
  if (!g.ok) throw new Error(await g.text());
8531
8549
  const { previewUrl: E, sessionId: f, rawOpencodeSessionId: u } = await g.json();
8532
8550
  n.value = E;
8533
- const _ = u ?? f, T = await ii(), B = {
8551
+ const _ = u ?? f, T = await ii(), W = {
8534
8552
  "x-miniprogram-business-id": v.businessId ?? "",
8535
8553
  "x-miniprogram-session-id": f
8536
8554
  };
8537
- T && (B.Authorization = T), m = Yc({
8555
+ T && (W.Authorization = T), m = Qc({
8538
8556
  baseUrl: jt("/api/opencode"),
8539
- headers: B,
8540
- fetch: (re) => {
8541
- const ue = new Request(re);
8557
+ headers: W,
8558
+ fetch: (ee) => {
8559
+ const ue = new Request(ee);
8542
8560
  return ue.headers.set("x-miniprogram-business-id", v.businessId ?? ""), ue.headers.set("x-miniprogram-session-id", f), ue.timeout = !1, Ht(ue);
8543
8561
  }
8544
- }), s.value = _, await W(_), b++, _e(b), t.value = "ready", e.value = "Ready";
8562
+ }), s.value = _, await G(_), b++, _e(b), t.value = "ready", e.value = "Ready";
8545
8563
  } catch (A) {
8546
8564
  t.value = "error", e.value = `Failed to start: ${A instanceof Error ? A.message : String(A)}`;
8547
8565
  } finally {
@@ -8577,26 +8595,26 @@ function Jc() {
8577
8595
  messagesByKey: d,
8578
8596
  revision: p,
8579
8597
  init: we,
8580
- reset: x,
8598
+ reset: w,
8581
8599
  sendMessage: me
8582
8600
  });
8583
8601
  }
8584
- function eu() {
8585
- const t = se(hn() || qn), e = se(null), n = se([]), r = se([]), s = se(!1), a = se("Project ready"), l = se(null), o = se(null), i = se(null), d = te(() => r.value[0] ?? null), p = te(
8602
+ function nu() {
8603
+ const t = se(hn() || qn), e = se(null), n = se([]), r = se([]), s = se(!1), a = se("Project ready"), l = se(null), o = se(null), i = se(null), d = ne(() => r.value[0] ?? null), p = ne(
8586
8604
  () => r.value.find((f) => f.id === l.value) ?? d.value
8587
- ), m = te(() => {
8605
+ ), m = ne(() => {
8588
8606
  var f;
8589
8607
  return ((f = p.value) == null ? void 0 : f.build_status) ?? null;
8590
- }), b = te(() => {
8608
+ }), b = ne(() => {
8591
8609
  var f;
8592
8610
  return ((f = p.value) == null ? void 0 : f.build_logs_url) ?? null;
8593
- }), O = te(() => {
8611
+ }), O = ne(() => {
8594
8612
  var f;
8595
8613
  return ((f = e.value) == null ? void 0 : f.provisioningStatus) === "ready";
8596
- }), x = te(() => {
8614
+ }), w = ne(() => {
8597
8615
  var f;
8598
8616
  return ((f = e.value) == null ? void 0 : f.provisioningStatus) === "provisioning";
8599
- }), M = te(() => {
8617
+ }), M = ne(() => {
8600
8618
  var f;
8601
8619
  return ((f = e.value) == null ? void 0 : f.provisioningStatus) === "failed";
8602
8620
  });
@@ -8608,7 +8626,7 @@ function eu() {
8608
8626
  const f = await $e(`/api/projects/${t.value}`);
8609
8627
  return e.value = f, f.provisioningStatus === "not_started" ? a.value = "Project setup required" : f.provisioningStatus === "provisioning" ? a.value = "Setting up project" : f.provisioningStatus === "failed" ? a.value = "Project setup failed" : a.value = "Project ready", f;
8610
8628
  }
8611
- async function G() {
8629
+ async function H() {
8612
8630
  I(), s.value = !0, a.value = "Setting up project";
8613
8631
  try {
8614
8632
  const f = await $e(
@@ -8617,8 +8635,8 @@ function eu() {
8617
8635
  method: "POST",
8618
8636
  body: JSON.stringify({
8619
8637
  businessSlug: os(),
8620
- businessName: ac(),
8621
- country: oc()
8638
+ businessName: lc(),
8639
+ country: cc()
8622
8640
  }),
8623
8641
  signal: AbortSignal.timeout(18e4)
8624
8642
  }
@@ -8631,7 +8649,7 @@ function eu() {
8631
8649
  s.value = !1;
8632
8650
  }
8633
8651
  }
8634
- async function W() {
8652
+ async function G() {
8635
8653
  I(), a.value = "Loading sessions";
8636
8654
  try {
8637
8655
  const f = await $e(
@@ -8678,14 +8696,14 @@ function eu() {
8678
8696
  signal: AbortSignal.timeout(18e4)
8679
8697
  }
8680
8698
  );
8681
- return a.value = `Created ${u.sessionId}`, await W(), u;
8699
+ return a.value = `Created ${u.sessionId}`, await G(), u;
8682
8700
  } catch (u) {
8683
8701
  throw a.value = u instanceof Error ? u.message : String(u), u;
8684
8702
  } finally {
8685
8703
  s.value = !1;
8686
8704
  }
8687
8705
  }
8688
- async function ne(f) {
8706
+ async function re(f) {
8689
8707
  return I(), $e(
8690
8708
  `/api/projects/${t.value}/sessions/${f}/changes`,
8691
8709
  { signal: AbortSignal.timeout(6e4) }
@@ -8703,7 +8721,7 @@ function eu() {
8703
8721
  signal: AbortSignal.timeout(18e4)
8704
8722
  }
8705
8723
  );
8706
- return a.value = `Resumed ${f}`, await W(), u;
8724
+ return a.value = `Resumed ${f}`, await G(), u;
8707
8725
  } catch (u) {
8708
8726
  throw a.value = u instanceof Error ? u.message : String(u), u;
8709
8727
  } finally {
@@ -8713,16 +8731,16 @@ function eu() {
8713
8731
  async function ge(f, u) {
8714
8732
  const _ = u.trim();
8715
8733
  if (!_) return;
8716
- const T = n.value.find((B) => B.id === f);
8734
+ const T = n.value.find((W) => W.id === f);
8717
8735
  T && (T.title = _);
8718
8736
  try {
8719
8737
  await $e(`/api/projects/${t.value}/sessions/${f}`, {
8720
8738
  method: "PATCH",
8721
8739
  body: JSON.stringify({ title: _ })
8722
8740
  }), a.value = "Renamed workspace";
8723
- } catch (B) {
8724
- throw a.value = B instanceof Error ? B.message : String(B), await W().catch(() => {
8725
- }), B;
8741
+ } catch (W) {
8742
+ throw a.value = W instanceof Error ? W.message : String(W), await G().catch(() => {
8743
+ }), W;
8726
8744
  }
8727
8745
  }
8728
8746
  async function we(f, u = "save") {
@@ -8732,7 +8750,7 @@ function eu() {
8732
8750
  method: "POST",
8733
8751
  body: JSON.stringify({ codeAction: u }),
8734
8752
  signal: AbortSignal.timeout(18e4)
8735
- }), a.value = `Archived ${f}`, await W();
8753
+ }), a.value = `Archived ${f}`, await G();
8736
8754
  } finally {
8737
8755
  s.value = !1;
8738
8756
  }
@@ -8818,16 +8836,16 @@ function eu() {
8818
8836
  activeBuildStatus: m,
8819
8837
  activeBuildLogsUrl: b,
8820
8838
  isProvisioned: O,
8821
- isProvisioning: x,
8839
+ isProvisioning: w,
8822
8840
  provisioningFailed: M,
8823
8841
  syncBusiness: I,
8824
8842
  refreshProject: Q,
8825
- provisionProject: G,
8826
- refreshSessions: W,
8843
+ provisionProject: H,
8844
+ refreshSessions: G,
8827
8845
  refreshReleases: $,
8828
8846
  selectRelease: q,
8829
8847
  createSession: fe,
8830
- sessionChanges: ne,
8848
+ sessionChanges: re,
8831
8849
  resumeSession: _e,
8832
8850
  renameSession: ge,
8833
8851
  archive: we,
@@ -8838,98 +8856,98 @@ function eu() {
8838
8856
  rollbackToRelease: E
8839
8857
  });
8840
8858
  }
8841
- const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-color-neutral-white text-fm-color-typo-primary max-[960px]:h-auto max-[960px]:min-h-full max-[960px]:flex-col" }, nu = { class: "flex w-[256px] shrink-0 flex-col gap-[20px] overflow-y-auto border-r border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-[16px] max-[960px]:w-full max-[960px]:border-b max-[960px]:border-r-0" }, ru = { class: "flex flex-col gap-[4px]" }, su = { class: "min-w-0" }, iu = { class: "m-0 break-words fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, au = { class: "flex flex-col gap-[4px]" }, ou = ["onClick"], lu = { class: "min-w-0 flex-1 truncate fm-typo-en-body-md-600" }, cu = {
8859
+ const ru = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-color-neutral-white text-fm-color-typo-primary max-[960px]:h-auto max-[960px]:min-h-full max-[960px]:flex-col" }, su = { class: "flex w-[256px] shrink-0 flex-col gap-[20px] overflow-y-auto border-r border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-[16px] max-[960px]:w-full max-[960px]:border-b max-[960px]:border-r-0" }, iu = { class: "flex flex-col gap-[4px]" }, au = { class: "min-w-0" }, ou = { class: "m-0 break-words fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, lu = { class: "flex flex-col gap-[4px]" }, cu = ["onClick"], uu = { class: "min-w-0 flex-1 truncate fm-typo-en-body-md-600" }, du = {
8842
8860
  key: 0,
8843
8861
  class: "rounded-full bg-fm-color-neutral-gray-100 px-[8px] py-[2px] fm-typo-en-body-xs-600 text-fm-color-typo-secondary"
8844
- }, uu = { class: "mt-auto flex flex-col gap-[8px]" }, du = {
8862
+ }, pu = { class: "mt-auto flex flex-col gap-[8px]" }, fu = {
8845
8863
  key: 0,
8846
8864
  class: "m-0 flex items-center gap-[6px] rounded-md bg-fm-color-neutral-gray-100 px-[10px] py-[6px] fm-typo-en-body-xs-400 text-fm-color-typo-secondary"
8847
- }, pu = { class: "min-w-0 truncate" }, fu = {
8865
+ }, hu = { class: "min-w-0 truncate" }, gu = {
8848
8866
  key: 0,
8849
8867
  class: "flex min-w-0 flex-1 flex-col overflow-auto bg-fm-color-neutral-white"
8850
- }, hu = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, gu = { class: "flex w-full max-w-[760px] flex-col gap-16 p-24" }, mu = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-16" }, bu = { class: "flex items-center justify-between gap-16" }, yu = { class: "min-w-0" }, xu = { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, _u = { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, wu = {
8868
+ }, mu = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, bu = { class: "flex w-full max-w-[760px] flex-col gap-16 p-24" }, yu = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-16" }, xu = { class: "flex items-center justify-between gap-16" }, _u = { class: "min-w-0" }, wu = { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, vu = { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ku = {
8851
8869
  key: 0,
8852
8870
  class: "m-0 mt-12 break-words fm-typo-en-body-sm-400 text-fm-color-typo-error"
8853
- }, vu = {
8871
+ }, Eu = {
8854
8872
  key: 1,
8855
8873
  class: "flex min-w-0 flex-1 flex-col max-[960px]:min-h-[720px]"
8856
- }, ku = { class: "relative flex h-[52px] shrink-0 items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-16" }, Eu = { class: "min-w-0 truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Tu = { class: "flex shrink-0 items-center gap-4" }, Su = { class: "absolute left-16 top-[52px] z-20 max-h-[360px] w-[320px] overflow-y-auto rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white py-[4px] shadow-lg" }, Au = ["onClick"], Ru = { class: "min-w-0 flex-1" }, Nu = { class: "truncate fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Iu = { class: "mt-2 truncate fm-typo-en-body-xs-400 text-fm-color-typo-tertiary" }, Ou = {
8874
+ }, Tu = { class: "relative flex h-[52px] shrink-0 items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-16" }, Su = { class: "min-w-0 truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Au = { class: "flex shrink-0 items-center gap-4" }, Ru = { class: "absolute left-16 top-[52px] z-20 max-h-[360px] w-[320px] overflow-y-auto rounded-lg border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white py-[4px] shadow-lg" }, Nu = ["onClick"], Iu = { class: "min-w-0 flex-1" }, Ou = { class: "truncate fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Cu = { class: "mt-2 truncate fm-typo-en-body-xs-400 text-fm-color-typo-tertiary" }, Mu = {
8857
8875
  key: 0,
8858
8876
  class: "px-[12px] py-[10px] fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
8859
- }, Cu = {
8877
+ }, Lu = {
8860
8878
  key: 0,
8861
8879
  class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-system-warning-300 bg-fm-color-system-warning-50 px-16 py-8"
8862
- }, Mu = { class: "min-w-0 truncate fm-typo-en-body-sm-400 text-fm-color-typo-warning" }, Lu = { class: "flex min-h-0 min-w-0 flex-1" }, Pu = {
8880
+ }, Pu = { class: "min-w-0 truncate fm-typo-en-body-sm-400 text-fm-color-typo-warning" }, $u = { class: "flex min-h-0 min-w-0 flex-1" }, Du = {
8863
8881
  key: 2,
8864
8882
  class: "flex min-w-0 flex-1 flex-col overflow-auto bg-fm-color-neutral-white"
8865
- }, $u = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, Du = { class: "flex w-full max-w-[920px] flex-col gap-24 p-24" }, zu = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white" }, Bu = { class: "flex flex-col gap-16 p-16" }, Uu = { class: "flex items-center justify-between gap-16" }, Fu = { class: "min-w-0" }, ju = { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Hu = { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gu = { class: "flex shrink-0 items-center gap-6" }, Wu = {
8883
+ }, zu = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, Bu = { class: "flex w-full max-w-[920px] flex-col gap-24 p-24" }, Uu = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white" }, Fu = { class: "flex flex-col gap-16 p-16" }, ju = { class: "flex items-center justify-between gap-16" }, Hu = { class: "min-w-0" }, Gu = { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Wu = { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qu = { class: "flex shrink-0 items-center gap-6" }, Zu = {
8866
8884
  key: 0,
8867
8885
  class: "rounded-[4px] bg-fm-color-primary px-[6px] py-[1px] text-[11px] font-semibold leading-[16px] text-fm-color-typo-white"
8868
- }, qu = { class: "flex flex-wrap items-center gap-8" }, Zu = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white" }, Ku = { class: "flex items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-16 py-12" }, Vu = { class: "flex items-center gap-12" }, Yu = {
8886
+ }, Ku = { class: "flex flex-wrap items-center gap-8" }, Vu = { class: "rounded-lg border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white" }, Yu = { class: "flex items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-16 py-12" }, Xu = { class: "flex items-center gap-12" }, Qu = {
8869
8887
  key: 0,
8870
8888
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
8871
- }, Xu = { class: "font-semibold text-fm-color-typo-primary" }, Qu = {
8889
+ }, Ju = { class: "font-semibold text-fm-color-typo-primary" }, ed = {
8872
8890
  key: 0,
8873
8891
  class: "p-16 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
8874
- }, Ju = {
8892
+ }, td = {
8875
8893
  key: 1,
8876
8894
  class: "divide-y divide-fm-color-neutral-gray-100"
8877
- }, ed = ["onClick"], td = { class: "flex min-w-0 flex-wrap items-center gap-[6px]" }, nd = { class: "truncate fm-typo-en-body-md-600 text-fm-color-typo-primary" }, rd = { class: "mt-4 flex min-w-0 flex-wrap items-center gap-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, sd = {
8895
+ }, nd = ["onClick"], rd = { class: "flex min-w-0 flex-wrap items-center gap-[6px]" }, sd = { class: "truncate fm-typo-en-body-md-600 text-fm-color-typo-primary" }, id = { class: "mt-4 flex min-w-0 flex-wrap items-center gap-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ad = {
8878
8896
  key: 0,
8879
8897
  class: "inline-flex items-center gap-[4px]"
8880
- }, id = { class: "flex shrink-0 flex-wrap items-center justify-end gap-4" }, ad = { class: "rounded-lg border border-fm-color-system-warning-300 bg-fm-color-neutral-white" }, od = { class: "flex items-center justify-between gap-16 p-16" }, ld = {
8898
+ }, od = { class: "flex shrink-0 flex-wrap items-center justify-end gap-4" }, ld = { class: "rounded-lg border border-fm-color-system-warning-300 bg-fm-color-neutral-white" }, cd = { class: "flex items-center justify-between gap-16 p-16" }, ud = {
8881
8899
  key: 3,
8882
8900
  class: "flex min-w-0 flex-1 flex-col overflow-auto bg-fm-color-neutral-white"
8883
- }, cd = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, ud = { class: "flex w-full max-w-[920px] flex-col gap-8 p-24" }, dd = ["onClick", "onKeydown"], pd = { class: "min-w-0" }, fd = { class: "flex min-w-0 flex-wrap items-center gap-[6px]" }, hd = { class: "truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, gd = {
8901
+ }, dd = { class: "flex shrink-0 items-center justify-between gap-16 border-b border-fm-color-neutral-gray-100 px-24 py-16" }, pd = { class: "flex w-full max-w-[920px] flex-col gap-8 p-24" }, fd = ["onClick", "onKeydown"], hd = { class: "min-w-0" }, gd = { class: "flex min-w-0 flex-wrap items-center gap-[6px]" }, md = { class: "truncate fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bd = {
8884
8902
  key: 0,
8885
8903
  class: "shrink-0 rounded-[4px] bg-fm-color-primary px-[6px] py-[1px] text-[11px] font-semibold leading-[16px] text-fm-color-typo-white"
8886
- }, md = {
8904
+ }, yd = {
8887
8905
  key: 1,
8888
8906
  class: "shrink-0 rounded-[4px] bg-fm-color-neutral-gray-100 px-[6px] py-[1px] text-[11px] font-medium leading-[16px] text-fm-color-typo-secondary"
8889
- }, bd = { class: "mt-4 flex flex-wrap items-center gap-x-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yd = {
8907
+ }, xd = { class: "mt-4 flex flex-wrap items-center gap-x-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _d = {
8890
8908
  key: 0,
8891
8909
  class: "mt-4 truncate fm-typo-en-body-sm-400 text-fm-color-typo-error"
8892
- }, xd = { class: "flex shrink-0 items-center gap-4" }, _d = {
8910
+ }, wd = { class: "flex shrink-0 items-center gap-4" }, vd = {
8893
8911
  key: 0,
8894
8912
  class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 p-24 text-center fm-typo-en-body-md-400 text-fm-color-typo-secondary"
8895
- }, Sd = /* @__PURE__ */ Ot({
8913
+ }, Rd = /* @__PURE__ */ Ot({
8896
8914
  __name: "ControlPlaneView",
8897
8915
  setup(t) {
8898
- const e = Zn(), n = Jc(), r = eu(), s = Li(), a = se("workspace"), l = se(!1), o = te(() => r.sessions.find((y) => y.status === "active") ?? null), i = te(() => ic()), d = se(!1), p = se(!1), m = te(
8916
+ const e = Zn(), n = tu(), r = nu(), s = Li(), a = se("workspace"), l = se(!1), o = ne(() => r.sessions.find((y) => y.status === "active") ?? null), i = ne(() => oc()), d = se(!1), p = se(!1), m = ne(
8899
8917
  () => r.sessions.find((y) => y.id === n.workspaceSessionId) ?? o.value
8900
- ), b = te(
8918
+ ), b = ne(
8901
8919
  () => m.value ? ft(m.value) : "Workspace"
8902
- ), O = te(() => {
8920
+ ), O = ne(() => {
8903
8921
  const y = r.latestRelease;
8904
8922
  return y ? y.is_live === 1 ? "Latest release is live" : y.build_status === "succeeded" ? "Release ready to go live" : y.build_status === "failed" ? "Build failed" : "Release build in progress" : "No release has been built yet";
8905
- }), x = te(() => {
8923
+ }), w = ne(() => {
8906
8924
  const y = r.latestRelease;
8907
8925
  if (!y) return "Build the active workspace to create a release preview.";
8908
- const F = y.source_commit_sha.slice(0, 7), ee = y.build_status ? `Build ${y.build_status}` : "No build status";
8909
- return `${y.id} · ${ee} · ${F}`;
8910
- }), M = te(() => {
8926
+ const U = y.source_commit_sha.slice(0, 7), te = y.build_status ? `Build ${y.build_status}` : "No build status";
8927
+ return `${y.id} · ${te} · ${U}`;
8928
+ }), M = ne(() => {
8911
8929
  var y;
8912
8930
  return ((y = r.latestRelease) == null ? void 0 : y.build_status) ?? null;
8913
- }), I = te(() => {
8931
+ }), I = ne(() => {
8914
8932
  var y;
8915
8933
  return ((y = r.latestRelease) == null ? void 0 : y.build_logs_url) ?? null;
8916
- }), Q = te(() => r.releases.find((y) => y.is_live === 1) ?? null), G = te(() => {
8934
+ }), Q = ne(() => r.releases.find((y) => y.is_live === 1) ?? null), H = ne(() => {
8917
8935
  var y;
8918
8936
  return ((y = r.project) == null ? void 0 : y.provisioningError) ?? null;
8919
- }), W = te(() => r.busy || l.value), $ = te(() => !!(o.value && r.isProvisioned && !W.value)), K = [
8937
+ }), G = ne(() => r.busy || l.value), $ = ne(() => !!(o.value && r.isProvisioned && !G.value)), K = [
8920
8938
  { key: "workspace", label: "Workspace", icon: "space_dashboard" },
8921
8939
  { key: "releases", label: "Releases", icon: "rocket_launch" },
8922
8940
  { key: "sessions", label: "Sessions", icon: "history" }
8923
8941
  ];
8924
8942
  async function q() {
8925
- if (r.syncBusiness(), await r.refreshProject().catch((F) => {
8926
- r.statusText = F instanceof Error ? F.message : String(F);
8943
+ if (r.syncBusiness(), await r.refreshProject().catch((U) => {
8944
+ r.statusText = U instanceof Error ? U.message : String(U);
8927
8945
  }), !r.isProvisioned) {
8928
8946
  r.sessions = [], r.releases = [];
8929
8947
  return;
8930
8948
  }
8931
- if (await r.refreshSessions().catch((F) => {
8932
- r.statusText = F instanceof Error ? F.message : String(F);
8949
+ if (await r.refreshSessions().catch((U) => {
8950
+ r.statusText = U instanceof Error ? U.message : String(U);
8933
8951
  }), await r.refreshReleases().catch(() => {
8934
8952
  }), o.value) {
8935
8953
  await n.init({
@@ -8960,14 +8978,14 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
8960
8978
  );
8961
8979
  async function fe(y = "save") {
8962
8980
  if (!r.isProvisioned) return;
8963
- const F = await r.createSession({ archiveCodeAction: y });
8964
- a.value = "workspace", p.value = !1, await n.init({ businessId: r.businessId, sessionId: F.sessionId });
8981
+ const U = await r.createSession({ archiveCodeAction: y });
8982
+ a.value = "workspace", p.value = !1, await n.init({ businessId: r.businessId, sessionId: U.sessionId });
8965
8983
  }
8966
- async function ne() {
8984
+ async function re() {
8967
8985
  await r.provisionProject(), await q();
8968
8986
  }
8969
8987
  async function _e() {
8970
- if (!(!r.isProvisioned || W.value)) {
8988
+ if (!(!r.isProvisioned || G.value)) {
8971
8989
  if (!o.value) {
8972
8990
  await fe();
8973
8991
  return;
@@ -9044,14 +9062,14 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9044
9062
  const y = n.workspaceSessionId;
9045
9063
  y && (await r.resumeSession(y), p.value = !1, await n.init({ businessId: r.businessId, sessionId: y }));
9046
9064
  }
9047
- function B(y) {
9065
+ function W(y) {
9048
9066
  s.open({
9049
9067
  title: "Rename workspace",
9050
- dialogComponent: nc,
9068
+ dialogComponent: sc,
9051
9069
  dialogComponentProps: {
9052
9070
  initialTitle: y.title,
9053
- onSubmit: (F) => {
9054
- s.close(), F !== y.title && r.renameSession(y.id, F).catch(() => {
9071
+ onSubmit: (U) => {
9072
+ s.close(), U !== y.title && r.renameSession(y.id, U).catch(() => {
9055
9073
  });
9056
9074
  },
9057
9075
  onClose: () => s.close()
@@ -9062,15 +9080,15 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9062
9080
  () => n.disconnected,
9063
9081
  async (y) => {
9064
9082
  if (!y || n.readOnly) return;
9065
- const F = n.workspaceSessionId;
9066
- if (!F) return;
9083
+ const U = n.workspaceSessionId;
9084
+ if (!U) return;
9067
9085
  await r.refreshSessions().catch(() => {
9068
9086
  });
9069
- const ee = r.sessions.find((et) => et.id === F);
9070
- ee && ee.status !== "active" && (p.value = !0, await n.init({ businessId: r.businessId, sessionId: F, readOnly: !0 }));
9087
+ const te = r.sessions.find((et) => et.id === U);
9088
+ te && te.status !== "active" && (p.value = !0, await n.init({ businessId: r.businessId, sessionId: U, readOnly: !0 }));
9071
9089
  }
9072
9090
  );
9073
- function re(y) {
9091
+ function ee(y) {
9074
9092
  return y === "active" ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : y === "needs_attention" ? "bg-fm-color-system-warning-100 text-fm-color-typo-warning" : y === "none" ? "bg-fm-color-neutral-gray-100 text-fm-color-typo-tertiary" : "bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary";
9075
9093
  }
9076
9094
  function ue(y) {
@@ -9089,95 +9107,95 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9089
9107
  return y.status === "active" ? "Active workspace" : y.status === "needs_attention" ? "Needs attention" : "Archived workspace";
9090
9108
  }
9091
9109
  function ft(y) {
9092
- var F;
9093
- return ((F = y.title) == null ? void 0 : F.trim()) || pt(y);
9110
+ var U;
9111
+ return ((U = y.title) == null ? void 0 : U.trim()) || pt(y);
9094
9112
  }
9095
9113
  function it(y) {
9096
9114
  if (!y) return "No timestamp";
9097
- const F = new Date(y);
9098
- return Number.isNaN(F.getTime()) ? "No timestamp" : new Intl.DateTimeFormat(void 0, {
9115
+ const U = new Date(y);
9116
+ return Number.isNaN(U.getTime()) ? "No timestamp" : new Intl.DateTimeFormat(void 0, {
9099
9117
  month: "short",
9100
9118
  day: "numeric",
9101
9119
  hour: "2-digit",
9102
9120
  minute: "2-digit"
9103
- }).format(F);
9121
+ }).format(U);
9104
9122
  }
9105
- return (y, F) => {
9123
+ return (y, U) => {
9106
9124
  var Ke, tt, z, at, he;
9107
- const ee = Me("FmIcon"), et = Me("FmCircularProgress"), j = Me("FmButton");
9108
- return C(), H("div", tu, [
9109
- w("aside", nu, [
9110
- w("header", ru, [
9111
- w("div", su, [
9112
- w("h1", iu, Z(i.value), 1)
9125
+ const te = Me("FmIcon"), et = Me("FmCircularProgress"), F = Me("FmButton");
9126
+ return C(), j("div", ru, [
9127
+ x("aside", su, [
9128
+ x("header", iu, [
9129
+ x("div", au, [
9130
+ x("h1", ou, Z(i.value), 1)
9113
9131
  ])
9114
9132
  ]),
9115
- w("nav", au, [
9116
- (C(), H(Ze, null, st(K, (k) => w("button", {
9133
+ x("nav", lu, [
9134
+ (C(), j(Ze, null, st(K, (k) => x("button", {
9117
9135
  key: k.key,
9118
9136
  type: "button",
9119
9137
  class: Ee(["flex h-[40px] w-full cursor-pointer items-center gap-[10px] rounded-lg border-0 px-[10px] text-left transition", a.value === k.key ? "bg-fm-color-system-warning-100 text-fm-color-primary" : "bg-transparent text-fm-color-typo-secondary hover:bg-fm-color-neutral-gray-100 hover:text-fm-color-typo-primary"]),
9120
9138
  onClick: (Re) => a.value = k.key
9121
9139
  }, [
9122
- ae(ee, {
9140
+ ae(te, {
9123
9141
  name: k.icon,
9124
9142
  color: a.value === k.key ? "primary" : "typo-secondary",
9125
9143
  size: "md"
9126
9144
  }, null, 8, ["name", "color"]),
9127
- w("span", lu, Z(k.label), 1),
9128
- k.key === "sessions" ? (C(), H("span", cu, Z(X(r).sessions.length), 1)) : de("", !0)
9129
- ], 10, ou)), 64))
9145
+ x("span", uu, Z(k.label), 1),
9146
+ k.key === "sessions" ? (C(), j("span", du, Z(X(r).sessions.length), 1)) : de("", !0)
9147
+ ], 10, cu)), 64))
9130
9148
  ]),
9131
- w("div", uu, [
9132
- X(r).statusText ? (C(), H("p", du, [
9133
- W.value ? (C(), je(et, {
9149
+ x("div", pu, [
9150
+ X(r).statusText ? (C(), j("p", fu, [
9151
+ G.value ? (C(), je(et, {
9134
9152
  key: 0,
9135
9153
  size: "md",
9136
9154
  color: "typo-secondary"
9137
9155
  })) : de("", !0),
9138
- w("span", pu, Z(X(r).statusText), 1)
9156
+ x("span", hu, Z(X(r).statusText), 1)
9139
9157
  ])) : de("", !0),
9140
- X(r).isProvisioned ? de("", !0) : (C(), je(j, {
9158
+ X(r).isProvisioned ? de("", !0) : (C(), je(F, {
9141
9159
  key: 1,
9142
9160
  icon: "source",
9143
9161
  label: "Set up v2 project",
9144
9162
  loading: X(r).busy,
9145
- onClick: ne
9163
+ onClick: re
9146
9164
  }, null, 8, ["loading"])),
9147
- ae(j, {
9165
+ ae(F, {
9148
9166
  icon: "add",
9149
9167
  label: "New workspace",
9150
- disabled: !X(r).isProvisioned || W.value,
9151
- loading: W.value,
9168
+ disabled: !X(r).isProvisioned || G.value,
9169
+ loading: G.value,
9152
9170
  onClick: _e
9153
9171
  }, null, 8, ["disabled", "loading"])
9154
9172
  ])
9155
9173
  ]),
9156
- X(r).isProvisioned ? a.value === "workspace" ? (C(), H("main", vu, [
9157
- w("div", ku, [
9158
- w("button", {
9174
+ X(r).isProvisioned ? a.value === "workspace" ? (C(), j("main", Eu, [
9175
+ x("div", Tu, [
9176
+ x("button", {
9159
9177
  type: "button",
9160
9178
  class: "flex min-w-0 cursor-pointer items-center gap-[6px] rounded-md border-0 bg-transparent px-[8px] py-[6px] text-left hover:bg-fm-color-neutral-gray-100",
9161
- onClick: F[0] || (F[0] = (k) => d.value = !d.value)
9179
+ onClick: U[0] || (U[0] = (k) => d.value = !d.value)
9162
9180
  }, [
9163
- ae(ee, {
9181
+ ae(te, {
9164
9182
  name: "space_dashboard",
9165
9183
  color: "primary",
9166
9184
  size: "md"
9167
9185
  }),
9168
- w("span", Eu, Z(b.value), 1),
9169
- m.value ? (C(), H("span", {
9186
+ x("span", Su, Z(b.value), 1),
9187
+ m.value ? (C(), j("span", {
9170
9188
  key: 0,
9171
- class: Ee(["shrink-0 rounded-full px-[8px] py-[2px] fm-typo-en-body-xs-600", re(m.value.status)])
9189
+ class: Ee(["shrink-0 rounded-full px-[8px] py-[2px] fm-typo-en-body-xs-600", ee(m.value.status)])
9172
9190
  }, Z(m.value.status), 3)) : de("", !0),
9173
- ae(ee, {
9191
+ ae(te, {
9174
9192
  name: "expand_more",
9175
9193
  color: "typo-secondary",
9176
9194
  size: "md"
9177
9195
  })
9178
9196
  ]),
9179
- w("div", Tu, [
9180
- m.value && m.value.status === "active" ? (C(), je(j, {
9197
+ x("div", Au, [
9198
+ m.value && m.value.status === "active" ? (C(), je(F, {
9181
9199
  key: 0,
9182
9200
  icon: "build",
9183
9201
  label: "Build release",
@@ -9186,63 +9204,63 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9186
9204
  loading: X(r).busy,
9187
9205
  onClick: ge
9188
9206
  }, null, 8, ["disabled", "loading"])) : de("", !0),
9189
- m.value && m.value.status === "active" ? (C(), je(j, {
9207
+ m.value && m.value.status === "active" ? (C(), je(F, {
9190
9208
  key: 1,
9191
9209
  icon: "edit",
9192
9210
  variant: "tertiary",
9193
- onClick: F[1] || (F[1] = (k) => B(m.value))
9211
+ onClick: U[1] || (U[1] = (k) => W(m.value))
9194
9212
  })) : de("", !0)
9195
9213
  ]),
9196
- d.value ? (C(), H(Ze, { key: 0 }, [
9197
- w("div", {
9214
+ d.value ? (C(), j(Ze, { key: 0 }, [
9215
+ x("div", {
9198
9216
  class: "fixed inset-0 z-10",
9199
- onClick: F[2] || (F[2] = (k) => d.value = !1)
9217
+ onClick: U[2] || (U[2] = (k) => d.value = !1)
9200
9218
  }),
9201
- w("div", Su, [
9202
- (C(!0), H(Ze, null, st(X(r).sessions, (k) => (C(), H("button", {
9219
+ x("div", Ru, [
9220
+ (C(!0), j(Ze, null, st(X(r).sessions, (k) => (C(), j("button", {
9203
9221
  key: k.id,
9204
9222
  type: "button",
9205
9223
  class: Ee(["flex w-full cursor-pointer items-center gap-8 border-0 bg-transparent px-[12px] py-[8px] text-left hover:bg-fm-color-neutral-gray-100", k.id === X(n).workspaceSessionId ? "bg-fm-color-system-warning-50" : ""]),
9206
9224
  onClick: (Re) => u(k)
9207
9225
  }, [
9208
- w("div", Ru, [
9209
- w("div", Nu, Z(ft(k)), 1),
9210
- w("div", Iu, Z(it(k.updated_at)), 1)
9226
+ x("div", Iu, [
9227
+ x("div", Ou, Z(ft(k)), 1),
9228
+ x("div", Cu, Z(it(k.updated_at)), 1)
9211
9229
  ]),
9212
- w("span", {
9213
- class: Ee(["shrink-0 rounded-full px-[6px] py-[1px] fm-typo-en-body-xs-600", re(k.status)])
9230
+ x("span", {
9231
+ class: Ee(["shrink-0 rounded-full px-[6px] py-[1px] fm-typo-en-body-xs-600", ee(k.status)])
9214
9232
  }, Z(k.status), 3)
9215
- ], 10, Au))), 128)),
9216
- X(r).sessions.length ? de("", !0) : (C(), H("div", Ou, " No workspaces yet. "))
9233
+ ], 10, Nu))), 128)),
9234
+ X(r).sessions.length ? de("", !0) : (C(), j("div", Mu, " No workspaces yet. "))
9217
9235
  ])
9218
9236
  ], 64)) : de("", !0)
9219
9237
  ]),
9220
- X(n).readOnly ? (C(), H("div", Cu, [
9221
- w("span", Mu, Z(p.value ? "This workspace was archived after being idle. Resume it to keep working with the agent." : "You are viewing an archived workspace. Resume it to continue working with the agent."), 1),
9222
- ae(j, {
9238
+ X(n).readOnly ? (C(), j("div", Lu, [
9239
+ x("span", Pu, Z(p.value ? "This workspace was archived after being idle. Resume it to keep working with the agent." : "You are viewing an archived workspace. Resume it to continue working with the agent."), 1),
9240
+ ae(F, {
9223
9241
  label: "Resume workspace",
9224
9242
  icon: "restart_alt",
9225
9243
  loading: X(r).busy,
9226
9244
  onClick: T
9227
9245
  }, null, 8, ["loading"])
9228
9246
  ])) : de("", !0),
9229
- w("div", Lu, [
9247
+ x("div", $u, [
9230
9248
  ae(Pl, {
9231
9249
  chat: X(n),
9232
9250
  class: "w-[min(440px,42vw)] shrink-0 border-r border-fm-color-neutral-gray-100 max-[960px]:w-[40%]"
9233
9251
  }, null, 8, ["chat"]),
9234
- ae(ec, {
9252
+ ae(nc, {
9235
9253
  chat: X(n),
9236
9254
  class: "min-w-0 flex-1"
9237
9255
  }, null, 8, ["chat"])
9238
9256
  ])
9239
- ])) : a.value === "releases" ? (C(), H("main", Pu, [
9240
- w("header", $u, [
9241
- F[5] || (F[5] = w("div", { class: "min-w-0" }, [
9242
- w("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Releases"),
9243
- w("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Build from the active workspace, preview the release, then publish when it is ready. ")
9257
+ ])) : a.value === "releases" ? (C(), j("main", Du, [
9258
+ x("header", zu, [
9259
+ U[5] || (U[5] = x("div", { class: "min-w-0" }, [
9260
+ x("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Releases"),
9261
+ x("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Build from the active workspace, preview the release, then publish when it is ready. ")
9244
9262
  ], -1)),
9245
- ae(j, {
9263
+ ae(F, {
9246
9264
  label: "Build release",
9247
9265
  icon: "build",
9248
9266
  disabled: !$.value,
@@ -9250,40 +9268,40 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9250
9268
  onClick: ge
9251
9269
  }, null, 8, ["disabled", "loading"])
9252
9270
  ]),
9253
- w("div", Du, [
9254
- w("section", zu, [
9255
- F[6] || (F[6] = w("div", { class: "border-b border-fm-color-neutral-gray-100 px-16 py-12" }, [
9256
- w("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Latest release")
9271
+ x("div", Bu, [
9272
+ x("section", Uu, [
9273
+ U[6] || (U[6] = x("div", { class: "border-b border-fm-color-neutral-gray-100 px-16 py-12" }, [
9274
+ x("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Latest release")
9257
9275
  ], -1)),
9258
- w("div", Bu, [
9259
- w("div", Uu, [
9260
- w("div", Fu, [
9261
- w("p", ju, Z(O.value), 1),
9262
- w("p", Hu, Z(x.value), 1)
9276
+ x("div", Fu, [
9277
+ x("div", ju, [
9278
+ x("div", Hu, [
9279
+ x("p", Gu, Z(O.value), 1),
9280
+ x("p", Wu, Z(w.value), 1)
9263
9281
  ]),
9264
- w("div", Gu, [
9265
- ((at = X(r).latestRelease) == null ? void 0 : at.id) === ((he = Q.value) == null ? void 0 : he.id) ? (C(), H("span", Wu, " Live ")) : de("", !0),
9266
- w("span", {
9282
+ x("div", qu, [
9283
+ ((at = X(r).latestRelease) == null ? void 0 : at.id) === ((he = Q.value) == null ? void 0 : he.id) ? (C(), j("span", Zu, " Live ")) : de("", !0),
9284
+ x("span", {
9267
9285
  class: Ee(["rounded-[4px] px-[6px] py-[1px] text-[11px] font-semibold leading-[16px]", ue(M.value)])
9268
9286
  }, Z(M.value ?? "empty"), 3)
9269
9287
  ])
9270
9288
  ]),
9271
- w("div", qu, [
9272
- ae(j, {
9289
+ x("div", Ku, [
9290
+ ae(F, {
9273
9291
  label: "Set live",
9274
9292
  icon: "publish",
9275
9293
  disabled: !X(r).latestRelease || M.value !== "succeeded" || X(r).latestRelease.is_live === 1 || X(r).busy,
9276
9294
  loading: X(r).busy,
9277
9295
  onClick: D
9278
9296
  }, null, 8, ["disabled", "loading"]),
9279
- ae(j, {
9297
+ ae(F, {
9280
9298
  label: "Open preview",
9281
9299
  icon: "open_in_new",
9282
9300
  variant: "secondary",
9283
9301
  disabled: !X(r).latestRelease || M.value !== "succeeded",
9284
9302
  onClick: me
9285
9303
  }, null, 8, ["disabled"]),
9286
- I.value ? (C(), je(j, {
9304
+ I.value ? (C(), je(F, {
9287
9305
  key: 0,
9288
9306
  label: "Build logs",
9289
9307
  icon: "open_in_new",
@@ -9293,70 +9311,70 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9293
9311
  ])
9294
9312
  ])
9295
9313
  ]),
9296
- w("section", Zu, [
9297
- w("div", Ku, [
9298
- F[8] || (F[8] = w("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Recent releases", -1)),
9299
- w("div", Vu, [
9300
- Q.value ? (C(), H("div", Yu, [
9301
- F[7] || (F[7] = on(" Live: ", -1)),
9302
- w("span", Xu, Z(Q.value.id), 1)
9314
+ x("section", Vu, [
9315
+ x("div", Yu, [
9316
+ U[8] || (U[8] = x("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Recent releases", -1)),
9317
+ x("div", Xu, [
9318
+ Q.value ? (C(), j("div", Qu, [
9319
+ U[7] || (U[7] = Wt(" Live: ", -1)),
9320
+ x("span", Ju, Z(Q.value.id), 1)
9303
9321
  ])) : de("", !0),
9304
- ae(j, {
9322
+ ae(F, {
9305
9323
  label: "Refresh",
9306
9324
  icon: "refresh",
9307
9325
  variant: "tertiary",
9308
9326
  loading: X(r).busy,
9309
- onClick: F[3] || (F[3] = (k) => X(r).refreshReleases())
9327
+ onClick: U[3] || (U[3] = (k) => X(r).refreshReleases())
9310
9328
  }, null, 8, ["loading"])
9311
9329
  ])
9312
9330
  ]),
9313
- X(r).releases.length === 0 ? (C(), H("div", Qu, " No releases have been created yet. ")) : (C(), H("div", Ju, [
9314
- (C(!0), H(Ze, null, st(X(r).releases, (k) => (C(), H("div", {
9331
+ X(r).releases.length === 0 ? (C(), j("div", ed, " No releases have been created yet. ")) : (C(), j("div", td, [
9332
+ (C(!0), j(Ze, null, st(X(r).releases, (k) => (C(), j("div", {
9315
9333
  key: k.id,
9316
9334
  class: Ee(["flex items-center gap-16 px-16 py-12", Ue(k)])
9317
9335
  }, [
9318
- w("button", {
9336
+ x("button", {
9319
9337
  type: "button",
9320
9338
  class: "min-w-0 flex-1 cursor-pointer border-0 bg-transparent p-0 text-left",
9321
9339
  onClick: (Re) => A(k)
9322
9340
  }, [
9323
- w("div", td, [
9324
- w("span", nd, Z(k.id), 1),
9325
- w("span", {
9341
+ x("div", rd, [
9342
+ x("span", sd, Z(k.id), 1),
9343
+ x("span", {
9326
9344
  class: Ee(["rounded-[4px] px-[5px] py-0 text-[11px] font-medium leading-[16px]", Be(k)])
9327
9345
  }, Z(V(k)), 3),
9328
- w("span", {
9346
+ x("span", {
9329
9347
  class: Ee(["rounded-[4px] px-[5px] py-0 text-[11px] font-medium leading-[16px]", ue(k.build_status)])
9330
9348
  }, Z(k.build_status ?? "no build"), 3)
9331
9349
  ]),
9332
- w("div", rd, [
9333
- w("span", null, Z(it(k.created_at)), 1),
9334
- w("span", null, Z(k.source_commit_sha.slice(0, 7)), 1),
9335
- k.created_from_session_id ? (C(), H("span", sd, [
9336
- ae(ee, {
9350
+ x("div", id, [
9351
+ x("span", null, Z(it(k.created_at)), 1),
9352
+ x("span", null, Z(k.source_commit_sha.slice(0, 7)), 1),
9353
+ k.created_from_session_id ? (C(), j("span", ad, [
9354
+ ae(te, {
9337
9355
  name: "space_dashboard",
9338
9356
  color: "typo-tertiary",
9339
9357
  size: "sm"
9340
9358
  }),
9341
- on(" " + Z(k.session_title || "Workspace build"), 1)
9359
+ Wt(" " + Z(k.session_title || "Workspace build"), 1)
9342
9360
  ])) : de("", !0)
9343
9361
  ])
9344
- ], 8, ed),
9345
- w("div", id, [
9346
- ae(j, {
9362
+ ], 8, nd),
9363
+ x("div", od, [
9364
+ ae(F, {
9347
9365
  icon: "open_in_new",
9348
9366
  variant: "tertiary",
9349
9367
  disabled: !["preview", "published", "rolled_back"].includes(k.status),
9350
9368
  onClick: (Re) => g(k)
9351
9369
  }, null, 8, ["disabled", "onClick"]),
9352
- ae(j, {
9370
+ ae(F, {
9353
9371
  label: "Set live",
9354
9372
  variant: "tertiary",
9355
9373
  disabled: k.build_status !== "succeeded" || k.is_live === 1 || X(r).busy,
9356
9374
  loading: X(r).busy && k.id === X(r).activeReleaseId,
9357
9375
  onClick: (Re) => f(k)
9358
9376
  }, null, 8, ["disabled", "loading", "onClick"]),
9359
- k.build_logs_url ? (C(), je(j, {
9377
+ k.build_logs_url ? (C(), je(F, {
9360
9378
  key: 0,
9361
9379
  icon: "receipt_long",
9362
9380
  variant: "tertiary",
@@ -9366,13 +9384,13 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9366
9384
  ], 2))), 128))
9367
9385
  ]))
9368
9386
  ]),
9369
- w("section", ad, [
9370
- w("div", od, [
9371
- F[9] || (F[9] = w("div", { class: "min-w-0" }, [
9372
- w("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Fallback"),
9373
- w("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Restore the merchant back to the current v1 miniprogram. ")
9387
+ x("section", ld, [
9388
+ x("div", cd, [
9389
+ U[9] || (U[9] = x("div", { class: "min-w-0" }, [
9390
+ x("h3", { class: "m-0 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, "Fallback"),
9391
+ x("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Restore the merchant back to the current v1 miniprogram. ")
9374
9392
  ], -1)),
9375
- ae(j, {
9393
+ ae(F, {
9376
9394
  label: "Rollback to v1",
9377
9395
  variant: "secondary",
9378
9396
  "border-color": "system-warning-300",
@@ -9383,22 +9401,22 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9383
9401
  ])
9384
9402
  ])
9385
9403
  ])
9386
- ])) : (C(), H("main", ld, [
9387
- w("header", cd, [
9388
- F[10] || (F[10] = w("div", { class: "min-w-0" }, [
9389
- w("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Sessions"),
9390
- w("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Switch between active and archived workspaces without exposing internal identifiers. ")
9404
+ ])) : (C(), j("main", ud, [
9405
+ x("header", dd, [
9406
+ U[10] || (U[10] = x("div", { class: "min-w-0" }, [
9407
+ x("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Sessions"),
9408
+ x("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Switch between active and archived workspaces without exposing internal identifiers. ")
9391
9409
  ], -1)),
9392
- ae(j, {
9410
+ ae(F, {
9393
9411
  label: "New workspace",
9394
9412
  icon: "add",
9395
- disabled: !X(r).isProvisioned || W.value,
9396
- loading: W.value,
9413
+ disabled: !X(r).isProvisioned || G.value,
9414
+ loading: G.value,
9397
9415
  onClick: _e
9398
9416
  }, null, 8, ["disabled", "loading"])
9399
9417
  ]),
9400
- w("div", ud, [
9401
- (C(!0), H(Ze, null, st(X(r).sessions, (k) => (C(), H("div", {
9418
+ x("div", pd, [
9419
+ (C(!0), j(Ze, null, st(X(r).sessions, (k) => (C(), j("div", {
9402
9420
  key: k.id,
9403
9421
  role: "button",
9404
9422
  tabindex: "0",
@@ -9406,66 +9424,66 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9406
9424
  onClick: (Re) => u(k),
9407
9425
  onKeydown: Ci((Re) => u(k), ["enter"])
9408
9426
  }, [
9409
- w("div", pd, [
9410
- w("div", fd, [
9411
- w("span", hd, Z(ft(k)), 1),
9412
- k.has_live_release ? (C(), H("span", gd, " Live ")) : k.release_count > 0 ? (C(), H("span", md, Z(k.release_count) + " release" + Z(k.release_count > 1 ? "s" : ""), 1)) : de("", !0)
9427
+ x("div", hd, [
9428
+ x("div", gd, [
9429
+ x("span", md, Z(ft(k)), 1),
9430
+ k.has_live_release ? (C(), j("span", bd, " Live ")) : k.release_count > 0 ? (C(), j("span", yd, Z(k.release_count) + " release" + Z(k.release_count > 1 ? "s" : ""), 1)) : de("", !0)
9413
9431
  ]),
9414
- w("div", bd, [
9415
- w("span", null, "Updated " + Z(it(k.updated_at)), 1)
9432
+ x("div", xd, [
9433
+ x("span", null, "Updated " + Z(it(k.updated_at)), 1)
9416
9434
  ]),
9417
- k.status === "needs_attention" && k.attention_error ? (C(), H("div", yd, Z(k.attention_action) + ": " + Z(k.attention_error), 1)) : de("", !0)
9435
+ k.status === "needs_attention" && k.attention_error ? (C(), j("div", _d, Z(k.attention_action) + ": " + Z(k.attention_error), 1)) : de("", !0)
9418
9436
  ]),
9419
- w("div", xd, [
9420
- w("span", {
9421
- class: Ee(["rounded-full px-8 py-2 fm-typo-en-body-xs-600", re(k.status)])
9437
+ x("div", wd, [
9438
+ x("span", {
9439
+ class: Ee(["rounded-full px-8 py-2 fm-typo-en-body-xs-600", ee(k.status)])
9422
9440
  }, Z(k.status), 3),
9423
- ae(j, {
9441
+ ae(F, {
9424
9442
  icon: "edit",
9425
9443
  variant: "tertiary",
9426
- onClick: ln((Re) => B(k), ["stop"])
9444
+ onClick: ln((Re) => W(k), ["stop"])
9427
9445
  }, null, 8, ["onClick"]),
9428
- k.status !== "active" ? (C(), je(j, {
9446
+ k.status !== "active" ? (C(), je(F, {
9429
9447
  key: 0,
9430
9448
  label: "Resume",
9431
9449
  variant: "tertiary",
9432
9450
  disabled: X(r).busy,
9433
9451
  onClick: ln((Re) => _(k), ["stop"])
9434
9452
  }, null, 8, ["disabled", "onClick"])) : de("", !0),
9435
- ae(ee, {
9453
+ ae(te, {
9436
9454
  name: "chevron_right",
9437
9455
  color: "typo-secondary",
9438
9456
  size: "md"
9439
9457
  })
9440
9458
  ])
9441
- ], 42, dd))), 128)),
9442
- X(r).sessions.length ? de("", !0) : (C(), H("div", _d, " No workspace history yet. "))
9459
+ ], 42, fd))), 128)),
9460
+ X(r).sessions.length ? de("", !0) : (C(), j("div", vd, " No workspace history yet. "))
9443
9461
  ])
9444
- ])) : (C(), H("main", fu, [
9445
- w("header", hu, [
9446
- F[4] || (F[4] = w("div", { class: "min-w-0" }, [
9447
- w("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Set up v2 project"),
9448
- w("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Create the merchant app repository and prepare workspace previews. Live traffic stays on v1 until a release is published. ")
9462
+ ])) : (C(), j("main", gu, [
9463
+ x("header", mu, [
9464
+ U[4] || (U[4] = x("div", { class: "min-w-0" }, [
9465
+ x("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Set up v2 project"),
9466
+ x("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Create the merchant app repository and prepare workspace previews. Live traffic stays on v1 until a release is published. ")
9449
9467
  ], -1)),
9450
- ae(j, {
9468
+ ae(F, {
9451
9469
  icon: "source",
9452
9470
  label: "Set up project",
9453
9471
  loading: X(r).busy,
9454
- onClick: ne
9472
+ onClick: re
9455
9473
  }, null, 8, ["loading"])
9456
9474
  ]),
9457
- w("div", gu, [
9458
- w("section", mu, [
9459
- w("div", bu, [
9460
- w("div", yu, [
9461
- w("p", xu, Z(((Ke = X(r).project) == null ? void 0 : Ke.provisioningStatus) === "failed" ? "Setup failed" : "Project is not set up yet"), 1),
9462
- w("p", _u, Z(((tt = X(r).project) == null ? void 0 : tt.repoName) ?? "miniprogram repository"), 1)
9475
+ x("div", bu, [
9476
+ x("section", yu, [
9477
+ x("div", xu, [
9478
+ x("div", _u, [
9479
+ x("p", wu, Z(((Ke = X(r).project) == null ? void 0 : Ke.provisioningStatus) === "failed" ? "Setup failed" : "Project is not set up yet"), 1),
9480
+ x("p", vu, Z(((tt = X(r).project) == null ? void 0 : tt.repoName) ?? "miniprogram repository"), 1)
9463
9481
  ]),
9464
- w("span", {
9482
+ x("span", {
9465
9483
  class: Ee(["shrink-0 rounded-full px-8 py-2 fm-typo-en-body-xs-600", X(r).provisioningFailed ? "bg-fm-color-system-error-100 text-fm-color-typo-error" : "bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary"])
9466
9484
  }, Z(((z = X(r).project) == null ? void 0 : z.provisioningStatus) ?? "not_started"), 3)
9467
9485
  ]),
9468
- G.value ? (C(), H("p", wu, Z(G.value), 1)) : de("", !0)
9486
+ H.value ? (C(), j("p", ku, Z(H.value), 1)) : de("", !0)
9469
9487
  ])
9470
9488
  ])
9471
9489
  ]))
@@ -9474,5 +9492,5 @@ const tu = { class: "flex h-full min-h-0 w-full min-w-0 overflow-hidden bg-fm-co
9474
9492
  }
9475
9493
  });
9476
9494
  export {
9477
- Sd as default
9495
+ Rd as default
9478
9496
  };