@ai-accounts/vue-styled 0.3.17 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-accounts-vue-styled.cjs.js +2 -2
- package/dist/ai-accounts-vue-styled.js +494 -461
- package/dist/components/AccountWizard.vue.d.ts.map +1 -1
- package/dist/components/AiChatSelector.vue.d.ts.map +1 -1
- package/dist/components/AllModeResponses.vue.d.ts.map +1 -1
- package/dist/components/ChatBubble.vue.d.ts +1 -1
- package/dist/components/LoginStream.vue.d.ts +1 -1
- package/dist/components/OnboardingFlow.vue.d.ts.map +1 -1
- package/dist/components/forceFreshAccountPrompt.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/assistantLabel.d.ts +1 -1
- package/dist/utils/assistantLabel.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Fd = Object.defineProperty;
|
|
2
2
|
var Bd = (t, e, n) => e in t ? Fd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
3
|
+
var he = (t, e, n) => Bd(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { defineComponent as Ue, ref as V, computed as K, watch as De, onUnmounted as Rn, openBlock as g, createElementBlock as R, createElementVNode as d, createCommentVNode as w, createStaticVNode as Gd, toDisplayString as y, normalizeClass as Me, createTextVNode as Ce, withModifiers as Pt, withDirectives as it, vModelText as It, Fragment as de, renderList as Oe, vModelDynamic as Yd, onMounted as un, unref as Q, inject as kn, nextTick as Ft, onBeforeUnmount as qd, createVNode as fo, vModelRadio as Ko, Transition as zd, withCtx as Cn, createBlock as ze, vModelSelect as Hd, vModelCheckbox as Vd, renderSlot as xt, reactive as Wd, mergeProps as $d, normalizeStyle as Ro, watchEffect as Kd } from "vue";
|
|
5
5
|
import { useBackendRegistry as J_, useAiAccounts as yn, useLoginSession as Qd, useOnboarding as Xd, useSmartChat as Zd, useSmartScroll as Jd } from "@ai-accounts/vue-headless";
|
|
6
6
|
function jd(t, e, n) {
|
|
@@ -47,7 +47,7 @@ const eu = {
|
|
|
47
47
|
}, gu = { class: "aia-menu-section__title" }, Su = { class: "aia-menu-options" }, Tu = ["onClick"], bu = { class: "aia-menu-option__num" }, fu = { class: "aia-menu-option__body" }, Ru = { class: "aia-menu-option__label" }, Cu = {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: "aia-menu-option__desc"
|
|
50
|
-
}, Nu = { class: "aia-text-section__label" },
|
|
50
|
+
}, Nu = { class: "aia-text-section__label" }, vu = { class: "aia-text-section__row" }, hu = ["type", "placeholder", "disabled"], Ou = ["disabled"], Au = {
|
|
51
51
|
key: 4,
|
|
52
52
|
class: "aia-submit-error"
|
|
53
53
|
}, yu = {
|
|
@@ -149,16 +149,16 @@ const eu = {
|
|
|
149
149
|
i.value = `Could not submit your selection: ${L}. The login session may have ended; cancel and start again.`;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const h = K(() => {
|
|
153
153
|
var L;
|
|
154
154
|
const F = (L = e.session.urlPrompt.value) == null ? void 0 : L.url;
|
|
155
155
|
if (!F) return "";
|
|
156
|
-
const k = e.backendKind === "
|
|
156
|
+
const k = e.backendKind === "antigravity" || e.backendKind === "codex" ? "google" : e.backendKind === "claude" ? "claude" : "none";
|
|
157
157
|
return k === "none" ? F : jd(F, e.email ?? "", k);
|
|
158
158
|
});
|
|
159
159
|
let b = "";
|
|
160
160
|
De(
|
|
161
|
-
() =>
|
|
161
|
+
() => h.value,
|
|
162
162
|
(F) => {
|
|
163
163
|
F && F !== b && (b = F, window.open(F, "_blank", "noopener"));
|
|
164
164
|
},
|
|
@@ -168,7 +168,7 @@ const eu = {
|
|
|
168
168
|
let M = null;
|
|
169
169
|
async function Y() {
|
|
170
170
|
var k;
|
|
171
|
-
const F =
|
|
171
|
+
const F = h.value;
|
|
172
172
|
if (F)
|
|
173
173
|
try {
|
|
174
174
|
(k = navigator == null ? void 0 : navigator.clipboard) != null && k.writeText && await navigator.clipboard.writeText(F), T.value = !0, A.value = !0, M && clearTimeout(M), M = setTimeout(() => {
|
|
@@ -190,14 +190,14 @@ const eu = {
|
|
|
190
190
|
], -1)
|
|
191
191
|
])])) : w("", !0),
|
|
192
192
|
t.session.urlPrompt.value ? (g(), R("div", nu, [
|
|
193
|
-
k[12] || (k[12] = Gd('<div class="aia-url-badge" data-v-
|
|
193
|
+
k[12] || (k[12] = Gd('<div class="aia-url-badge" data-v-76f71aff><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16" data-v-76f71aff><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" data-v-76f71aff></path><polyline points="15 3 21 3 21 9" data-v-76f71aff></polyline><line x1="10" y1="14" x2="21" y2="3" data-v-76f71aff></line></svg><span data-v-76f71aff>A browser window should have opened. If not, click the link below:</span></div>', 1)),
|
|
194
194
|
d("a", {
|
|
195
|
-
href:
|
|
195
|
+
href: h.value,
|
|
196
196
|
target: "_blank",
|
|
197
197
|
rel: "noopener",
|
|
198
198
|
class: "aia-url-link",
|
|
199
199
|
"data-tour": "wiz-login-url"
|
|
200
|
-
}, y(
|
|
200
|
+
}, y(h.value), 9, au),
|
|
201
201
|
d("div", ru, [
|
|
202
202
|
d("button", {
|
|
203
203
|
type: "button",
|
|
@@ -321,7 +321,7 @@ const eu = {
|
|
|
321
321
|
onSubmit: Pt(f, ["prevent"])
|
|
322
322
|
}, [
|
|
323
323
|
d("label", Nu, y(t.session.textPrompt.value.prompt), 1),
|
|
324
|
-
d("div",
|
|
324
|
+
d("div", vu, [
|
|
325
325
|
k[14] || (k[14] = d("span", { class: "aia-text-section__prompt" }, ">", -1)),
|
|
326
326
|
it(d("input", {
|
|
327
327
|
"onUpdate:modelValue": k[1] || (k[1] = (L) => n.value = L),
|
|
@@ -331,7 +331,7 @@ const eu = {
|
|
|
331
331
|
autocomplete: "off",
|
|
332
332
|
autofocus: "",
|
|
333
333
|
disabled: s.value
|
|
334
|
-
}, null, 8,
|
|
334
|
+
}, null, 8, hu), [
|
|
335
335
|
[Yd, n.value]
|
|
336
336
|
]),
|
|
337
337
|
d("button", {
|
|
@@ -438,7 +438,7 @@ const eu = {
|
|
|
438
438
|
for (const [a, r] of e)
|
|
439
439
|
n[a] = r;
|
|
440
440
|
return n;
|
|
441
|
-
}, Uu = /* @__PURE__ */ Fe(Pu, [["__scopeId", "data-v-
|
|
441
|
+
}, Uu = /* @__PURE__ */ Fe(Pu, [["__scopeId", "data-v-76f71aff"]]), Fu = { class: "aia-backend-picker" }, Bu = ["onClick"], Gu = ["src", "alt"], Yu = { class: "aia-backend-info" }, qu = {
|
|
442
442
|
key: 0,
|
|
443
443
|
class: "aia-installed"
|
|
444
444
|
}, zu = {
|
|
@@ -512,11 +512,11 @@ const eu = {
|
|
|
512
512
|
key: 3,
|
|
513
513
|
class: "wizard-step",
|
|
514
514
|
"data-tour": "wiz-cli"
|
|
515
|
-
}, Np = { class: "step-body" },
|
|
515
|
+
}, Np = { class: "step-body" }, vp = {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "status-card status-ok",
|
|
518
518
|
"data-tour": "wiz-cli-status"
|
|
519
|
-
},
|
|
519
|
+
}, hp = { class: "status-info" }, Op = { class: "status-title" }, Ap = { class: "status-detail" }, yp = { class: "status-icon" }, Ip = {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "spinner-sm"
|
|
522
522
|
}, Dp = {
|
|
@@ -606,7 +606,7 @@ const eu = {
|
|
|
606
606
|
}, fm = {
|
|
607
607
|
key: 2,
|
|
608
608
|
class: "proxy-device-auth"
|
|
609
|
-
}, Rm = { class: "proxy-url-badge" }, Cm = { key: 0 }, Nm = { key: 1 },
|
|
609
|
+
}, Rm = { class: "proxy-url-badge" }, Cm = { key: 0 }, Nm = { key: 1 }, vm = ["href"], hm = {
|
|
610
610
|
key: 1,
|
|
611
611
|
class: "proxy-device-code-card"
|
|
612
612
|
}, Om = { class: "proxy-device-code-value" }, Am = {
|
|
@@ -671,7 +671,7 @@ const eu = {
|
|
|
671
671
|
},
|
|
672
672
|
emits: ["close", "saved", "skip", "addAnother", "done"],
|
|
673
673
|
setup(t, { emit: e }) {
|
|
674
|
-
const n = (O,
|
|
674
|
+
const n = (O, v) => ({
|
|
675
675
|
"accountWizard.addAccount": "Add Account",
|
|
676
676
|
"accountWizard.stepSubscription": "Subscription",
|
|
677
677
|
"accountWizard.stepCliSetup": "CLI Setup",
|
|
@@ -766,7 +766,7 @@ const eu = {
|
|
|
766
766
|
"accountWizard.tour.done.add.message": "Click here to add another account on the same backend (e.g. a second Claude account).",
|
|
767
767
|
"accountWizard.tour.done.nextBackend.title": "Move to the next backend",
|
|
768
768
|
"accountWizard.tour.done.nextBackend.message": "Click here to advance the tour to the next backend (Codex / Antigravity / OpenCode)."
|
|
769
|
-
})[O] ?? O, a = t, r = (O,
|
|
769
|
+
})[O] ?? O, a = t, r = (O, v) => a.translate ? a.translate(O, v) : n(O), o = e, { client: i, emit: s } = yn(), _ = J_(), c = Qd(), l = V(a.initialBackendKind ?? ""), u = K(
|
|
770
770
|
() => l.value ? _.get(l.value) : void 0
|
|
771
771
|
), m = K(
|
|
772
772
|
() => {
|
|
@@ -785,13 +785,13 @@ const eu = {
|
|
|
785
785
|
"setTourTitle",
|
|
786
786
|
() => {
|
|
787
787
|
}
|
|
788
|
-
), C = V("subscription"), I = ["claude", "codex", "
|
|
788
|
+
), C = V("subscription"), I = ["claude", "codex", "antigravity", "kimi"], h = K(
|
|
789
789
|
() => I.includes(
|
|
790
790
|
l.value ?? ""
|
|
791
791
|
)
|
|
792
792
|
), b = K(() => {
|
|
793
793
|
const O = ["subscription", "cli", "login"];
|
|
794
|
-
return
|
|
794
|
+
return h.value && O.push("proxy"), O.push("plan"), O;
|
|
795
795
|
}), T = {
|
|
796
796
|
subscription: "setup",
|
|
797
797
|
cli: "setup",
|
|
@@ -805,12 +805,12 @@ const eu = {
|
|
|
805
805
|
finish: r("accountWizard.phaseFinish")
|
|
806
806
|
})), Y = K(() => T[C.value]), U = K(() => A.indexOf(Y.value));
|
|
807
807
|
function F() {
|
|
808
|
-
const O = b.value,
|
|
809
|
-
|
|
808
|
+
const O = b.value, v = O.indexOf(C.value);
|
|
809
|
+
v >= 0 && v < O.length - 1 ? C.value = O[v + 1] : C.value === O[O.length - 1] && (C.value = "done");
|
|
810
810
|
}
|
|
811
811
|
function k() {
|
|
812
|
-
const O = b.value,
|
|
813
|
-
|
|
812
|
+
const O = b.value, v = O.indexOf(C.value);
|
|
813
|
+
v > 0 && (C.value = O[v - 1]);
|
|
814
814
|
}
|
|
815
815
|
const L = V(""), J = V(""), re = V(""), Ne = K(() => L.value !== "");
|
|
816
816
|
function ue() {
|
|
@@ -827,17 +827,20 @@ const eu = {
|
|
|
827
827
|
const ne = {
|
|
828
828
|
claude: ".claude",
|
|
829
829
|
codex: ".codex",
|
|
830
|
-
// ``
|
|
831
|
-
// is "Antigravity". The config dir stays ~/.
|
|
832
|
-
|
|
830
|
+
// ``antigravity`` kind is unchanged internally — only the user-facing label
|
|
831
|
+
// is "Antigravity". The config dir stays ~/.antigravity (no DB/config migration).
|
|
832
|
+
antigravity: ".antigravity",
|
|
833
833
|
opencode: ".opencode",
|
|
834
834
|
openrouter: ".openrouter",
|
|
835
835
|
openai_compat: ".openai_compat",
|
|
836
|
-
kimi: ".kimi"
|
|
836
|
+
kimi: ".kimi",
|
|
837
|
+
// Goose stores its config under ~/.config/goose (XDG). Aider/Crush fall back
|
|
838
|
+
// to the generic ~/.<kind> default — their isolation is via HOME / CRUSH_GLOBAL_*.
|
|
839
|
+
goose: ".config/goose"
|
|
837
840
|
};
|
|
838
841
|
function _e(O) {
|
|
839
|
-
const
|
|
840
|
-
return `~/${ne[
|
|
842
|
+
const v = O || "";
|
|
843
|
+
return `~/${ne[v] || (v ? `.${v}` : ".backend")}`;
|
|
841
844
|
}
|
|
842
845
|
function j() {
|
|
843
846
|
if (G.value) return;
|
|
@@ -846,28 +849,29 @@ const eu = {
|
|
|
846
849
|
D.value = _e(l.value);
|
|
847
850
|
return;
|
|
848
851
|
}
|
|
849
|
-
const
|
|
850
|
-
D.value = `~/${P}-${
|
|
852
|
+
const v = W(O), P = ne[l.value || ""] || (l.value ? `.${l.value}` : ".backend");
|
|
853
|
+
D.value = `~/${P}-${v}`;
|
|
851
854
|
}
|
|
852
855
|
function Ae(O) {
|
|
853
|
-
const
|
|
854
|
-
return
|
|
856
|
+
const v = J.value.trim();
|
|
857
|
+
return v || O && O.trim() || "default";
|
|
855
858
|
}
|
|
856
859
|
K(() => {
|
|
857
860
|
const O = J.value.trim();
|
|
858
861
|
if (!O) return "";
|
|
859
|
-
const
|
|
862
|
+
const v = {
|
|
860
863
|
claude: "ANTHROPIC",
|
|
861
864
|
codex: "OPENAI",
|
|
862
|
-
|
|
865
|
+
antigravity: "GOOGLE",
|
|
863
866
|
opencode: "OPENCODE",
|
|
864
867
|
openrouter: "OPENROUTER",
|
|
865
868
|
openai_compat: "OPENAI",
|
|
866
|
-
kimi: "KIMI"
|
|
867
|
-
|
|
869
|
+
kimi: "KIMI",
|
|
870
|
+
deepseek: "DEEPSEEK"
|
|
871
|
+
}, P = l.value || "", ce = v[P] || (P ? P.toUpperCase() : "BACKEND"), Ve = W(O).replace(/-/g, "_").toUpperCase();
|
|
868
872
|
return `${ce}_API_KEY_${Ve}`;
|
|
869
873
|
});
|
|
870
|
-
const le = ["openrouter", "openai_compat", "
|
|
874
|
+
const le = ["openrouter", "openai_compat", "antigravity", "kimi", "deepseek"], ge = K(
|
|
871
875
|
() => le.includes(
|
|
872
876
|
l.value ?? ""
|
|
873
877
|
)
|
|
@@ -913,7 +917,7 @@ const eu = {
|
|
|
913
917
|
async function ot() {
|
|
914
918
|
try {
|
|
915
919
|
const O = await i.listBackends();
|
|
916
|
-
Be.value = (O.items || []).filter((
|
|
920
|
+
Be.value = (O.items || []).filter((v) => v.kind === "claude").length;
|
|
917
921
|
} catch {
|
|
918
922
|
Be.value = 0;
|
|
919
923
|
}
|
|
@@ -930,8 +934,8 @@ const eu = {
|
|
|
930
934
|
const H = V("");
|
|
931
935
|
De(C, async (O) => {
|
|
932
936
|
if (C.value === "login" && c.status.value === "idle") {
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
937
|
+
const v = u.value;
|
|
938
|
+
if (v && v.login_flows.length > 1 && pe.value === null)
|
|
935
939
|
return;
|
|
936
940
|
await ie();
|
|
937
941
|
}
|
|
@@ -953,20 +957,20 @@ const eu = {
|
|
|
953
957
|
});
|
|
954
958
|
H.value = P.id;
|
|
955
959
|
}
|
|
956
|
-
const
|
|
960
|
+
const v = pe.value ?? st(O);
|
|
957
961
|
s({
|
|
958
962
|
type: "wizard.step",
|
|
959
963
|
backendKind: O.kind,
|
|
960
964
|
step: "login.start"
|
|
961
|
-
}), await c.start(H.value,
|
|
962
|
-
} catch (
|
|
963
|
-
const P =
|
|
964
|
-
console.warn("[AccountWizard] login failed:",
|
|
965
|
+
}), await c.start(H.value, v, B(O));
|
|
966
|
+
} catch (v) {
|
|
967
|
+
const P = v instanceof Error ? v.message : String(v);
|
|
968
|
+
console.warn("[AccountWizard] login failed:", v), $e.value = `Could not start the login flow: ${P}. Check that the sidecar is running on :20001 and that the ${O.kind} backend metadata is reachable.`;
|
|
965
969
|
}
|
|
966
970
|
}
|
|
967
971
|
function st(O) {
|
|
968
|
-
const
|
|
969
|
-
return
|
|
972
|
+
const v = O.login_flows.map((P) => P.kind);
|
|
973
|
+
return v.includes("cli_browser") ? "cli_browser" : v.includes("oauth_device") ? "oauth_device" : "api_key";
|
|
970
974
|
}
|
|
971
975
|
const Ke = K(() => pe.value ?? (u.value ? st(u.value) : "cli_browser")), et = K(
|
|
972
976
|
() => {
|
|
@@ -1118,7 +1122,7 @@ const eu = {
|
|
|
1118
1122
|
// Install message also tells the user they can Skip below if they
|
|
1119
1123
|
// don't need the proxy — same screen, no need for a separate substep.
|
|
1120
1124
|
messageKey: "accountWizard.tour.proxy.install.message",
|
|
1121
|
-
done: () => at.value &&
|
|
1125
|
+
done: () => at.value && ht.value
|
|
1122
1126
|
},
|
|
1123
1127
|
{
|
|
1124
1128
|
selector: '[data-tour="wiz-proxy-start"]',
|
|
@@ -1127,7 +1131,7 @@ const eu = {
|
|
|
1127
1131
|
// bypass the proxy without us pointing at the Skip button after the
|
|
1128
1132
|
// button's label has already changed to "Continue".
|
|
1129
1133
|
messageKey: "accountWizard.tour.proxy.start.message",
|
|
1130
|
-
done: () =>
|
|
1134
|
+
done: () => ve.value !== "idle"
|
|
1131
1135
|
},
|
|
1132
1136
|
{
|
|
1133
1137
|
selector: '[data-tour="wiz-proxy-callback"]',
|
|
@@ -1137,7 +1141,7 @@ const eu = {
|
|
|
1137
1141
|
// terminal state — after success we advance to the Continue substep,
|
|
1138
1142
|
// after error/skipped we likewise advance (the user will use Back/Skip
|
|
1139
1143
|
// to recover, both still rendered).
|
|
1140
|
-
done: () =>
|
|
1144
|
+
done: () => ve.value === "success" || ve.value === "skipped" || ve.value === "error"
|
|
1141
1145
|
},
|
|
1142
1146
|
{
|
|
1143
1147
|
// The Skip button's label flips to "Continue" once registration
|
|
@@ -1184,10 +1188,10 @@ const eu = {
|
|
|
1184
1188
|
}, _t = V(0), oe = K(() => {
|
|
1185
1189
|
var P, ce;
|
|
1186
1190
|
const O = Nt[C.value] ?? [];
|
|
1187
|
-
let
|
|
1188
|
-
for (;
|
|
1189
|
-
|
|
1190
|
-
return O[
|
|
1191
|
+
let v = _t.value;
|
|
1192
|
+
for (; v < O.length - 1 && ((ce = (P = O[v]) == null ? void 0 : P.done) == null ? void 0 : ce.call(P)) === !0; )
|
|
1193
|
+
v++;
|
|
1194
|
+
return O[v] ?? null;
|
|
1191
1195
|
}), dt = V(!1);
|
|
1192
1196
|
let pt = !1;
|
|
1193
1197
|
function St() {
|
|
@@ -1197,14 +1201,14 @@ const eu = {
|
|
|
1197
1201
|
typeof document < "u" && document.removeEventListener("visibilitychange", St);
|
|
1198
1202
|
}), De(
|
|
1199
1203
|
() => {
|
|
1200
|
-
var O,
|
|
1201
|
-
return ((
|
|
1204
|
+
var O, v;
|
|
1205
|
+
return ((v = (O = oe.value) == null ? void 0 : O.done) == null ? void 0 : v.call(O)) ?? !1;
|
|
1202
1206
|
},
|
|
1203
1207
|
(O) => {
|
|
1204
1208
|
var P, ce;
|
|
1205
1209
|
if (!O) return;
|
|
1206
|
-
const
|
|
1207
|
-
for (; _t.value <
|
|
1210
|
+
const v = Nt[C.value] ?? [];
|
|
1211
|
+
for (; _t.value < v.length - 1 && ((ce = (P = v[_t.value]) == null ? void 0 : P.done) == null ? void 0 : ce.call(P)) === !0; )
|
|
1208
1212
|
_t.value++;
|
|
1209
1213
|
}
|
|
1210
1214
|
);
|
|
@@ -1218,22 +1222,22 @@ const eu = {
|
|
|
1218
1222
|
p(`[data-tour="wiz-${C.value}"]`), E(null), f(null);
|
|
1219
1223
|
return;
|
|
1220
1224
|
}
|
|
1221
|
-
const
|
|
1225
|
+
const v = O;
|
|
1222
1226
|
let P = null;
|
|
1223
1227
|
for (let ce = 0; ce < 20; ce++) {
|
|
1224
|
-
if (ee.value || oe.value !==
|
|
1228
|
+
if (ee.value || oe.value !== v) return;
|
|
1225
1229
|
if (P = typeof document < "u" ? document.querySelector(O.selector) : null, P && P.getBoundingClientRect().width > 0) break;
|
|
1226
1230
|
await new Promise((Ve) => setTimeout(Ve, 50));
|
|
1227
1231
|
}
|
|
1228
|
-
ee.value || oe.value !==
|
|
1232
|
+
ee.value || oe.value !== v || (p(P ? O.selector : `[data-tour="wiz-${C.value}"]`), E(r(O.messageKey)), f(O.titleKey ? r(O.titleKey) : null));
|
|
1229
1233
|
}
|
|
1230
1234
|
De(oe, (O) => {
|
|
1231
1235
|
wt.value || qt(O);
|
|
1232
1236
|
});
|
|
1233
1237
|
async function xe(O) {
|
|
1234
|
-
const
|
|
1238
|
+
const v = `[data-tour="wiz-${O}"]`;
|
|
1235
1239
|
for (let P = 0; P < 60; P++) {
|
|
1236
|
-
if (ee.value || typeof document < "u" && document.querySelector(
|
|
1240
|
+
if (ee.value || typeof document < "u" && document.querySelector(v)) return;
|
|
1237
1241
|
await new Promise((ce) => setTimeout(ce, 50));
|
|
1238
1242
|
}
|
|
1239
1243
|
}
|
|
@@ -1241,12 +1245,12 @@ const eu = {
|
|
|
1241
1245
|
var P, ce;
|
|
1242
1246
|
if (ee.value || (wt.value = !0, p('[data-tour="account-wizard"]'), E(null), f(null), _t.value = 0, dt.value = !1, await xe(O), ee.value || C.value !== O) || (await Ft(), ee.value || C.value !== O)) return;
|
|
1243
1247
|
wt.value = !1;
|
|
1244
|
-
const
|
|
1245
|
-
for (; _t.value <
|
|
1248
|
+
const v = Nt[O] ?? [];
|
|
1249
|
+
for (; _t.value < v.length - 1 && ((ce = (P = v[_t.value]) == null ? void 0 : P.done) == null ? void 0 : ce.call(P)) === !0; )
|
|
1246
1250
|
_t.value++;
|
|
1247
1251
|
qt(oe.value);
|
|
1248
1252
|
});
|
|
1249
|
-
const
|
|
1253
|
+
const ve = V("idle"), Qe = V(""), yt = V(""), Tt = V(""), vt = V(""), bt = V(""), Dt = V(null);
|
|
1250
1254
|
let He = null;
|
|
1251
1255
|
function tt() {
|
|
1252
1256
|
He !== null && (clearInterval(He), He = null);
|
|
@@ -1256,20 +1260,20 @@ const eu = {
|
|
|
1256
1260
|
const O = Dt.value;
|
|
1257
1261
|
He = setInterval(async () => {
|
|
1258
1262
|
try {
|
|
1259
|
-
const
|
|
1260
|
-
|
|
1261
|
-
} catch (
|
|
1262
|
-
console.warn("[AccountWizard] cliproxy login status poll failed:",
|
|
1263
|
+
const v = await i.cliproxyLoginStatus(O);
|
|
1264
|
+
v.state === "completed" ? (ve.value = "success", Qe.value = v.message || "API proxy login completed", tt()) : (v.state === "failed" || v.state === "timeout") && (ve.value = "error", Qe.value = v.message, tt());
|
|
1265
|
+
} catch (v) {
|
|
1266
|
+
console.warn("[AccountWizard] cliproxy login status poll failed:", v);
|
|
1263
1267
|
}
|
|
1264
1268
|
}, 2e3);
|
|
1265
1269
|
}
|
|
1266
|
-
const
|
|
1270
|
+
const ht = V(!1), Ot = V(!1), nt = V(null), at = V(!1);
|
|
1267
1271
|
async function Zt() {
|
|
1268
1272
|
try {
|
|
1269
1273
|
const O = await i.cliproxyStatus();
|
|
1270
|
-
|
|
1274
|
+
ht.value = O.installed;
|
|
1271
1275
|
} catch (O) {
|
|
1272
|
-
console.warn("[AccountWizard] cliproxy status check failed:", O),
|
|
1276
|
+
console.warn("[AccountWizard] cliproxy status check failed:", O), ht.value = !1;
|
|
1273
1277
|
} finally {
|
|
1274
1278
|
at.value = !0;
|
|
1275
1279
|
}
|
|
@@ -1278,7 +1282,7 @@ const eu = {
|
|
|
1278
1282
|
Ot.value = !0, nt.value = null;
|
|
1279
1283
|
try {
|
|
1280
1284
|
const O = await i.cliproxyInstall();
|
|
1281
|
-
nt.value = O, O.success && (
|
|
1285
|
+
nt.value = O, O.success && (ht.value = !0);
|
|
1282
1286
|
} catch (O) {
|
|
1283
1287
|
nt.value = {
|
|
1284
1288
|
success: !1,
|
|
@@ -1292,31 +1296,31 @@ const eu = {
|
|
|
1292
1296
|
}
|
|
1293
1297
|
}
|
|
1294
1298
|
function zt() {
|
|
1295
|
-
tt(),
|
|
1299
|
+
tt(), ve.value = "idle", Qe.value = "", yt.value = "", Tt.value = "", vt.value = "", bt.value = "", Dt.value = null;
|
|
1296
1300
|
}
|
|
1297
1301
|
async function jt() {
|
|
1298
1302
|
var O;
|
|
1299
1303
|
if (l.value) {
|
|
1300
|
-
|
|
1304
|
+
ve.value = "running", Qe.value = `Registering ${m.value} account with API proxy…`, bt.value = "";
|
|
1301
1305
|
try {
|
|
1302
|
-
const
|
|
1306
|
+
const v = await i.cliproxyLoginBegin(
|
|
1303
1307
|
l.value,
|
|
1304
1308
|
((O = D.value) == null ? void 0 : O.trim()) || void 0
|
|
1305
1309
|
);
|
|
1306
|
-
Qe.value =
|
|
1307
|
-
} catch (
|
|
1308
|
-
|
|
1310
|
+
Qe.value = v.message, v.status === "imported" ? ve.value = "success" : v.status === "started" && v.oauth_url ? (ve.value = "device_auth", yt.value = v.oauth_url, Tt.value = v.device_code ?? "", Dt.value = v.session_id ?? null, window.open(v.oauth_url, "_blank", "noopener"), v.device_code ? Qe.value = `Open the URL and enter code ${v.device_code}. We'll detect completion automatically.` : Qe.value = "Complete OAuth in the browser; paste the callback URL below if it fails to redirect", Dt.value && Xt()) : v.status === "skipped" ? ve.value = "skipped" : ve.value = "error";
|
|
1311
|
+
} catch (v) {
|
|
1312
|
+
ve.value = "error", Qe.value = v instanceof Error ? v.message : String(v);
|
|
1309
1313
|
}
|
|
1310
1314
|
}
|
|
1311
1315
|
}
|
|
1312
1316
|
async function en() {
|
|
1313
|
-
if (
|
|
1317
|
+
if (vt.value.trim()) {
|
|
1314
1318
|
bt.value = "";
|
|
1315
1319
|
try {
|
|
1316
1320
|
const O = await i.cliproxyCallbackForward(
|
|
1317
|
-
|
|
1321
|
+
vt.value.trim()
|
|
1318
1322
|
);
|
|
1319
|
-
O.status === "completed" ? (
|
|
1323
|
+
O.status === "completed" ? (ve.value = "success", Qe.value = "API proxy login completed") : bt.value = O.message;
|
|
1320
1324
|
} catch (O) {
|
|
1321
1325
|
bt.value = O instanceof Error ? O.message : String(O);
|
|
1322
1326
|
}
|
|
@@ -1327,7 +1331,7 @@ const eu = {
|
|
|
1327
1331
|
try {
|
|
1328
1332
|
const O = u.value;
|
|
1329
1333
|
if (!O) throw new Error("No backend metadata available");
|
|
1330
|
-
const
|
|
1334
|
+
const v = {
|
|
1331
1335
|
...q(),
|
|
1332
1336
|
plan: ct.value || void 0,
|
|
1333
1337
|
is_default: qe.value
|
|
@@ -1335,13 +1339,13 @@ const eu = {
|
|
|
1335
1339
|
if (H.value)
|
|
1336
1340
|
await i.updateBackend(H.value, {
|
|
1337
1341
|
display_name: Ae(O.display_name),
|
|
1338
|
-
config:
|
|
1342
|
+
config: v
|
|
1339
1343
|
});
|
|
1340
1344
|
else {
|
|
1341
1345
|
const P = await i.createBackend({
|
|
1342
1346
|
kind: O.kind,
|
|
1343
1347
|
display_name: Ae(O.display_name),
|
|
1344
|
-
config:
|
|
1348
|
+
config: v
|
|
1345
1349
|
});
|
|
1346
1350
|
H.value = P.id;
|
|
1347
1351
|
}
|
|
@@ -1372,7 +1376,7 @@ const eu = {
|
|
|
1372
1376
|
function z() {
|
|
1373
1377
|
l.value && s({ type: "wizard.closed", backendKind: l.value, reason: "skip" }), o("skip");
|
|
1374
1378
|
}
|
|
1375
|
-
return (O,
|
|
1379
|
+
return (O, v) => (g(), R("div", Wu, [
|
|
1376
1380
|
d("div", $u, [
|
|
1377
1381
|
d("h3", null, y(r("accountWizard.addAccount")), 1),
|
|
1378
1382
|
d("button", {
|
|
@@ -1382,7 +1386,7 @@ const eu = {
|
|
|
1382
1386
|
]),
|
|
1383
1387
|
l.value ? C.value !== "done" ? (g(), R(de, { key: 1 }, [
|
|
1384
1388
|
ut.value ? (g(), R("div", Zu, [
|
|
1385
|
-
|
|
1389
|
+
v[12] || (v[12] = d("svg", {
|
|
1386
1390
|
viewBox: "0 0 24 24",
|
|
1387
1391
|
fill: "none",
|
|
1388
1392
|
stroke: "currentColor",
|
|
@@ -1408,7 +1412,7 @@ const eu = {
|
|
|
1408
1412
|
})
|
|
1409
1413
|
], -1)),
|
|
1410
1414
|
d("div", null, [
|
|
1411
|
-
|
|
1415
|
+
v[11] || (v[11] = d("strong", null, "macOS Keychain limitation:", -1)),
|
|
1412
1416
|
Ce(" Claude CLI on macOS stores its credential in a single shared Keychain entry, so logging in here will replace your existing Claude credential (" + y(Be.value) + " account" + y(Be.value === 1 ? "" : "s") + ' registered). The previous account row will appear "ready" but actually point at this new login. ', 1)
|
|
1413
1417
|
])
|
|
1414
1418
|
])) : w("", !0),
|
|
@@ -1421,7 +1425,7 @@ const eu = {
|
|
|
1421
1425
|
}])
|
|
1422
1426
|
}, [
|
|
1423
1427
|
d("span", ju, [
|
|
1424
|
-
U.value > ce ? (g(), R("svg", ep, [...
|
|
1428
|
+
U.value > ce ? (g(), R("svg", ep, [...v[13] || (v[13] = [
|
|
1425
1429
|
d("polyline", { points: "20 6 9 17 4 12" }, null, -1)
|
|
1426
1430
|
])])) : (g(), R(de, { key: 1 }, [
|
|
1427
1431
|
Ce(y(ce + 1), 1)
|
|
@@ -1432,9 +1436,9 @@ const eu = {
|
|
|
1432
1436
|
])
|
|
1433
1437
|
], 64)) : w("", !0) : (g(), R("div", Ku, [
|
|
1434
1438
|
d("div", Qu, [
|
|
1435
|
-
|
|
1439
|
+
v[10] || (v[10] = d("p", { class: "step-question" }, "Select a backend to connect:", -1)),
|
|
1436
1440
|
fo(Vu, {
|
|
1437
|
-
onPick:
|
|
1441
|
+
onPick: v[0] || (v[0] = (P) => {
|
|
1438
1442
|
l.value = P, ye();
|
|
1439
1443
|
})
|
|
1440
1444
|
})
|
|
@@ -1455,7 +1459,7 @@ const eu = {
|
|
|
1455
1459
|
}, [
|
|
1456
1460
|
it(d("input", {
|
|
1457
1461
|
type: "radio",
|
|
1458
|
-
"onUpdate:modelValue":
|
|
1462
|
+
"onUpdate:modelValue": v[1] || (v[1] = (P) => L.value = P),
|
|
1459
1463
|
value: "yes"
|
|
1460
1464
|
}, null, 512), [
|
|
1461
1465
|
[Ko, L.value]
|
|
@@ -1470,7 +1474,7 @@ const eu = {
|
|
|
1470
1474
|
}, [
|
|
1471
1475
|
it(d("input", {
|
|
1472
1476
|
type: "radio",
|
|
1473
|
-
"onUpdate:modelValue":
|
|
1477
|
+
"onUpdate:modelValue": v[2] || (v[2] = (P) => L.value = P),
|
|
1474
1478
|
value: "no"
|
|
1475
1479
|
}, null, 512), [
|
|
1476
1480
|
[Ko, L.value]
|
|
@@ -1487,11 +1491,11 @@ const eu = {
|
|
|
1487
1491
|
d("div", pp, [
|
|
1488
1492
|
d("label", mp, [
|
|
1489
1493
|
Ce(y(r("accountWizard.accountName")) + " ", 1),
|
|
1490
|
-
|
|
1494
|
+
v[14] || (v[14] = d("span", { class: "optional" }, "(optional)", -1))
|
|
1491
1495
|
]),
|
|
1492
1496
|
it(d("input", {
|
|
1493
1497
|
id: "wiz-name",
|
|
1494
|
-
"onUpdate:modelValue":
|
|
1498
|
+
"onUpdate:modelValue": v[3] || (v[3] = (P) => J.value = P),
|
|
1495
1499
|
type: "text",
|
|
1496
1500
|
placeholder: r("accountWizard.accountNamePlaceholder"),
|
|
1497
1501
|
autofocus: "",
|
|
@@ -1505,7 +1509,7 @@ const eu = {
|
|
|
1505
1509
|
d("label", Tp, y(r("accountWizard.email")), 1),
|
|
1506
1510
|
it(d("input", {
|
|
1507
1511
|
id: "wiz-email",
|
|
1508
|
-
"onUpdate:modelValue":
|
|
1512
|
+
"onUpdate:modelValue": v[4] || (v[4] = (P) => re.value = P),
|
|
1509
1513
|
type: "email",
|
|
1510
1514
|
placeholder: r("accountWizard.emailPlaceholder")
|
|
1511
1515
|
}, null, 8, bp), [
|
|
@@ -1530,7 +1534,7 @@ const eu = {
|
|
|
1530
1534
|
onClick: ue
|
|
1531
1535
|
}, [
|
|
1532
1536
|
Ce(y(L.value === "no" ? r("accountWizard.noSkip") : r("accountWizard.continueBtn")) + " ", 1),
|
|
1533
|
-
|
|
1537
|
+
v[15] || (v[15] = d("svg", {
|
|
1534
1538
|
viewBox: "0 0 24 24",
|
|
1535
1539
|
fill: "none",
|
|
1536
1540
|
stroke: "currentColor",
|
|
@@ -1545,8 +1549,8 @@ const eu = {
|
|
|
1545
1549
|
])) : w("", !0),
|
|
1546
1550
|
l.value && C.value === "cli" ? (g(), R("div", Cp, [
|
|
1547
1551
|
d("div", Np, [
|
|
1548
|
-
ge.value ? (g(), R("div",
|
|
1549
|
-
|
|
1552
|
+
ge.value ? (g(), R("div", vp, [
|
|
1553
|
+
v[16] || (v[16] = d("div", { class: "status-icon" }, [
|
|
1550
1554
|
d("svg", {
|
|
1551
1555
|
viewBox: "0 0 24 24",
|
|
1552
1556
|
fill: "none",
|
|
@@ -1559,7 +1563,7 @@ const eu = {
|
|
|
1559
1563
|
d("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
1560
1564
|
])
|
|
1561
1565
|
], -1)),
|
|
1562
|
-
d("div",
|
|
1566
|
+
d("div", hp, [
|
|
1563
1567
|
d("span", Op, y(m.value), 1),
|
|
1564
1568
|
d("span", Ap, y(r("accountWizard.noCliRequired")), 1)
|
|
1565
1569
|
])
|
|
@@ -1569,10 +1573,10 @@ const eu = {
|
|
|
1569
1573
|
"data-tour": "wiz-cli-status"
|
|
1570
1574
|
}, [
|
|
1571
1575
|
d("div", yp, [
|
|
1572
|
-
se.value ? (g(), R("div", Ip)) : $.value ? (g(), R("svg", Dp, [...
|
|
1576
|
+
se.value ? (g(), R("div", Ip)) : $.value ? (g(), R("svg", Dp, [...v[17] || (v[17] = [
|
|
1573
1577
|
d("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }, null, -1),
|
|
1574
1578
|
d("polyline", { points: "22 4 12 14.01 9 11.01" }, null, -1)
|
|
1575
|
-
])])) : (g(), R("svg", Mp, [...
|
|
1579
|
+
])])) : (g(), R("svg", Mp, [...v[18] || (v[18] = [
|
|
1576
1580
|
d("circle", {
|
|
1577
1581
|
cx: "12",
|
|
1578
1582
|
cy: "12",
|
|
@@ -1612,10 +1616,10 @@ const eu = {
|
|
|
1612
1616
|
d("div", qp, y(r("accountWizard.configPath")), 1),
|
|
1613
1617
|
d("div", zp, [
|
|
1614
1618
|
it(d("input", {
|
|
1615
|
-
"onUpdate:modelValue":
|
|
1619
|
+
"onUpdate:modelValue": v[5] || (v[5] = (P) => D.value = P),
|
|
1616
1620
|
type: "text",
|
|
1617
1621
|
placeholder: `e.g., ~/.${l.value}-personal`,
|
|
1618
|
-
onInput:
|
|
1622
|
+
onInput: v[6] || (v[6] = (P) => G.value = !0)
|
|
1619
1623
|
}, null, 40, Hp), [
|
|
1620
1624
|
[It, D.value]
|
|
1621
1625
|
])
|
|
@@ -1629,7 +1633,7 @@ const eu = {
|
|
|
1629
1633
|
class: "btn btn-secondary",
|
|
1630
1634
|
onClick: k
|
|
1631
1635
|
}, [
|
|
1632
|
-
|
|
1636
|
+
v[19] || (v[19] = d("svg", {
|
|
1633
1637
|
viewBox: "0 0 24 24",
|
|
1634
1638
|
fill: "none",
|
|
1635
1639
|
stroke: "currentColor",
|
|
@@ -1647,7 +1651,7 @@ const eu = {
|
|
|
1647
1651
|
onClick: F
|
|
1648
1652
|
}, [
|
|
1649
1653
|
Ce(y(r("accountWizard.continueBtn")) + " ", 1),
|
|
1650
|
-
|
|
1654
|
+
v[20] || (v[20] = d("svg", {
|
|
1651
1655
|
viewBox: "0 0 24 24",
|
|
1652
1656
|
fill: "none",
|
|
1653
1657
|
stroke: "currentColor",
|
|
@@ -1663,7 +1667,7 @@ const eu = {
|
|
|
1663
1667
|
l.value && C.value === "login" ? (g(), R("div", $p, [
|
|
1664
1668
|
d("div", Kp, [
|
|
1665
1669
|
et.value && u.value && pe.value === null && me.value === "idle" ? (g(), R("div", Qp, [
|
|
1666
|
-
|
|
1670
|
+
v[21] || (v[21] = d("h4", { class: "login-method-picker__heading" }, "Choose a login method", -1)),
|
|
1667
1671
|
d("p", Xp, " Pick how you want to authenticate " + y(m.value) + ". You can switch later if your first choice doesn't work. ", 1),
|
|
1668
1672
|
d("div", Zp, [
|
|
1669
1673
|
(g(!0), R(de, null, Oe(u.value.login_flows, (P) => (g(), R("button", {
|
|
@@ -1678,7 +1682,7 @@ const eu = {
|
|
|
1678
1682
|
])
|
|
1679
1683
|
])) : w("", !0),
|
|
1680
1684
|
et.value && u.value && (pe.value !== null || me.value !== "idle") ? (g(), R("div", tm, [
|
|
1681
|
-
|
|
1685
|
+
v[22] || (v[22] = d("span", { class: "login-flow-switcher__label" }, "Login method:", -1)),
|
|
1682
1686
|
d("div", nm, [
|
|
1683
1687
|
(g(!0), R(de, null, Oe(u.value.login_flows, (P) => (g(), R("button", {
|
|
1684
1688
|
key: P.kind,
|
|
@@ -1691,14 +1695,14 @@ const eu = {
|
|
|
1691
1695
|
])
|
|
1692
1696
|
])) : w("", !0),
|
|
1693
1697
|
$e.value ? (g(), R("div", rm, [
|
|
1694
|
-
|
|
1698
|
+
v[23] || (v[23] = d("strong", null, "Login could not start.", -1)),
|
|
1695
1699
|
d("p", null, y($e.value), 1),
|
|
1696
1700
|
d("button", {
|
|
1697
1701
|
class: "btn btn-secondary",
|
|
1698
1702
|
onClick: ie
|
|
1699
1703
|
}, " Retry ")
|
|
1700
1704
|
])) : (me.value === "idle" || me.value === "connecting") && !(et.value && pe.value === null) ? (g(), R("div", im, [
|
|
1701
|
-
|
|
1705
|
+
v[24] || (v[24] = d("div", { class: "spinner-sm" }, null, -1)),
|
|
1702
1706
|
d("span", null, y(r("accountWizard.startingLogin")), 1)
|
|
1703
1707
|
])) : me.value === "streaming" ? (g(), ze(Uu, {
|
|
1704
1708
|
key: 4,
|
|
@@ -1706,7 +1710,7 @@ const eu = {
|
|
|
1706
1710
|
"backend-kind": l.value,
|
|
1707
1711
|
email: re.value
|
|
1708
1712
|
}, null, 8, ["session", "backend-kind", "email"])) : me.value === "completed" ? (g(), R("div", om, [
|
|
1709
|
-
|
|
1713
|
+
v[25] || (v[25] = d("svg", {
|
|
1710
1714
|
viewBox: "0 0 24 24",
|
|
1711
1715
|
fill: "none",
|
|
1712
1716
|
stroke: "currentColor",
|
|
@@ -1719,7 +1723,7 @@ const eu = {
|
|
|
1719
1723
|
d("span", null, y(r("accountWizard.loginCompleted")), 1)
|
|
1720
1724
|
])) : me.value === "error" ? (g(), R(de, { key: 6 }, [
|
|
1721
1725
|
d("div", sm, [
|
|
1722
|
-
|
|
1726
|
+
v[26] || (v[26] = d("svg", {
|
|
1723
1727
|
viewBox: "0 0 24 24",
|
|
1724
1728
|
fill: "none",
|
|
1725
1729
|
stroke: "currentColor",
|
|
@@ -1759,7 +1763,7 @@ const eu = {
|
|
|
1759
1763
|
class: "btn btn-secondary",
|
|
1760
1764
|
onClick: k
|
|
1761
1765
|
}, [
|
|
1762
|
-
|
|
1766
|
+
v[27] || (v[27] = d("svg", {
|
|
1763
1767
|
viewBox: "0 0 24 24",
|
|
1764
1768
|
fill: "none",
|
|
1765
1769
|
stroke: "currentColor",
|
|
@@ -1776,7 +1780,7 @@ const eu = {
|
|
|
1776
1780
|
onClick: F
|
|
1777
1781
|
}, [
|
|
1778
1782
|
Ce(y(me.value === "idle" ? r("common.skip") : r("accountWizard.continueBtn")) + " ", 1),
|
|
1779
|
-
|
|
1783
|
+
v[28] || (v[28] = d("svg", {
|
|
1780
1784
|
viewBox: "0 0 24 24",
|
|
1781
1785
|
fill: "none",
|
|
1782
1786
|
stroke: "currentColor",
|
|
@@ -1791,8 +1795,8 @@ const eu = {
|
|
|
1791
1795
|
])) : w("", !0),
|
|
1792
1796
|
l.value && C.value === "proxy" ? (g(), R("div", cm, [
|
|
1793
1797
|
d("div", _m, [
|
|
1794
|
-
at.value && !
|
|
1795
|
-
|
|
1798
|
+
at.value && !ht.value ? (g(), R("div", dm, [
|
|
1799
|
+
v[30] || (v[30] = d("p", { class: "step-description" }, " CLIProxyAPI is not installed. Install it to expose this account through an OpenAI-compatible endpoint for other tools. ", -1)),
|
|
1796
1800
|
d("button", {
|
|
1797
1801
|
class: "btn btn-primary",
|
|
1798
1802
|
"data-tour": "wiz-proxy-install",
|
|
@@ -1804,26 +1808,26 @@ const eu = {
|
|
|
1804
1808
|
], 8, um),
|
|
1805
1809
|
nt.value ? (g(), R("div", mm, [
|
|
1806
1810
|
nt.value.success ? (g(), R("p", Em, " Installed" + y(nt.value.binary_path ? ` at ${nt.value.binary_path}` : ""), 1)) : (g(), R("div", gm, [
|
|
1807
|
-
|
|
1811
|
+
v[29] || (v[29] = d("p", { class: "error-text" }, "Install failed", -1)),
|
|
1808
1812
|
nt.value.stderr ? (g(), R("pre", Sm, y(nt.value.stderr), 1)) : w("", !0)
|
|
1809
1813
|
]))
|
|
1810
1814
|
])) : w("", !0)
|
|
1811
|
-
])) :
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
+
])) : ht.value ? (g(), R("div", Tm, [
|
|
1816
|
+
v[39] || (v[39] = d("h4", { class: "proxy-heading" }, "Register with API proxy", -1)),
|
|
1817
|
+
v[40] || (v[40] = d("p", { class: "step-description" }, " Optional: register this account with CLIProxyAPI so other tools can reach it through an OpenAI-compatible endpoint. ", -1)),
|
|
1818
|
+
ve.value === "idle" ? (g(), R("button", {
|
|
1815
1819
|
key: 0,
|
|
1816
1820
|
class: "btn btn-primary",
|
|
1817
1821
|
"data-tour": "wiz-proxy-start",
|
|
1818
1822
|
onClick: jt
|
|
1819
1823
|
}, " Start proxy registration ")) : w("", !0),
|
|
1820
|
-
|
|
1821
|
-
|
|
1824
|
+
ve.value === "running" ? (g(), R("div", bm, [
|
|
1825
|
+
v[31] || (v[31] = d("div", { class: "spinner-sm" }, null, -1)),
|
|
1822
1826
|
d("span", null, y(Qe.value), 1)
|
|
1823
1827
|
])) : w("", !0),
|
|
1824
|
-
|
|
1828
|
+
ve.value === "device_auth" ? (g(), R("div", fm, [
|
|
1825
1829
|
d("div", Rm, [
|
|
1826
|
-
|
|
1830
|
+
v[33] || (v[33] = d("svg", {
|
|
1827
1831
|
viewBox: "0 0 24 24",
|
|
1828
1832
|
fill: "none",
|
|
1829
1833
|
stroke: "currentColor",
|
|
@@ -1840,7 +1844,7 @@ const eu = {
|
|
|
1840
1844
|
y2: "3"
|
|
1841
1845
|
})
|
|
1842
1846
|
], -1)),
|
|
1843
|
-
Tt.value ? (g(), R("span", Cm, " Open the URL below, sign in, and enter the device code. We'll detect completion automatically. ")) : (g(), R("span", Nm, [...
|
|
1847
|
+
Tt.value ? (g(), R("span", Cm, " Open the URL below, sign in, and enter the device code. We'll detect completion automatically. ")) : (g(), R("span", Nm, [...v[32] || (v[32] = [
|
|
1844
1848
|
Ce(" A browser window should have opened. Sign in, then the page will redirect to ", -1),
|
|
1845
1849
|
d("code", null, "localhost", -1),
|
|
1846
1850
|
Ce(" — that redirect will fail (this is normal). Copy the full URL from the browser address bar and paste it below. ", -1)
|
|
@@ -1852,36 +1856,36 @@ const eu = {
|
|
|
1852
1856
|
target: "_blank",
|
|
1853
1857
|
rel: "noopener",
|
|
1854
1858
|
class: "proxy-oauth-link"
|
|
1855
|
-
}, y(yt.value), 9,
|
|
1856
|
-
Tt.value ? (g(), R("div",
|
|
1857
|
-
|
|
1859
|
+
}, y(yt.value), 9, vm)) : w("", !0),
|
|
1860
|
+
Tt.value ? (g(), R("div", hm, [
|
|
1861
|
+
v[34] || (v[34] = d("span", { class: "proxy-device-code-label" }, "Your device code:", -1)),
|
|
1858
1862
|
d("code", Om, y(Tt.value), 1)
|
|
1859
1863
|
])) : w("", !0),
|
|
1860
|
-
Tt.value ? (g(), R("div", Am, [...
|
|
1864
|
+
Tt.value ? (g(), R("div", Am, [...v[35] || (v[35] = [
|
|
1861
1865
|
d("div", { class: "spinner-sm" }, null, -1),
|
|
1862
1866
|
d("span", null, "Waiting for you to enter the code…", -1)
|
|
1863
1867
|
])])) : (g(), R("div", ym, [
|
|
1864
|
-
|
|
1868
|
+
v[36] || (v[36] = d("p", { class: "proxy-callback-hint" }, "If the redirect to localhost fails, paste the callback URL:", -1)),
|
|
1865
1869
|
d("div", Im, [
|
|
1866
1870
|
it(d("input", {
|
|
1867
|
-
"onUpdate:modelValue":
|
|
1871
|
+
"onUpdate:modelValue": v[7] || (v[7] = (P) => vt.value = P),
|
|
1868
1872
|
class: "proxy-callback-input",
|
|
1869
1873
|
type: "url",
|
|
1870
1874
|
placeholder: "http://localhost:54545/callback?code=..."
|
|
1871
1875
|
}, null, 512), [
|
|
1872
|
-
[It,
|
|
1876
|
+
[It, vt.value]
|
|
1873
1877
|
]),
|
|
1874
1878
|
d("button", {
|
|
1875
1879
|
class: "btn btn-primary btn-sm",
|
|
1876
1880
|
onClick: en,
|
|
1877
|
-
disabled: !
|
|
1881
|
+
disabled: !vt.value.trim()
|
|
1878
1882
|
}, " Submit ", 8, Dm)
|
|
1879
1883
|
]),
|
|
1880
1884
|
bt.value ? (g(), R("p", Mm, y(bt.value), 1)) : w("", !0)
|
|
1881
1885
|
]))
|
|
1882
1886
|
])) : w("", !0),
|
|
1883
|
-
|
|
1884
|
-
|
|
1887
|
+
ve.value === "success" ? (g(), R("div", Lm, [
|
|
1888
|
+
v[37] || (v[37] = d("svg", {
|
|
1885
1889
|
viewBox: "0 0 24 24",
|
|
1886
1890
|
fill: "none",
|
|
1887
1891
|
stroke: "currentColor",
|
|
@@ -1893,16 +1897,16 @@ const eu = {
|
|
|
1893
1897
|
], -1)),
|
|
1894
1898
|
d("span", null, y(Qe.value || "Registered successfully"), 1)
|
|
1895
1899
|
])) : w("", !0),
|
|
1896
|
-
|
|
1900
|
+
ve.value === "skipped" ? (g(), R("div", xm, [
|
|
1897
1901
|
d("p", null, y(Qe.value), 1),
|
|
1898
1902
|
d("button", {
|
|
1899
1903
|
class: "btn btn-outline btn-sm",
|
|
1900
1904
|
onClick: zt
|
|
1901
1905
|
}, "Retry")
|
|
1902
1906
|
])) : w("", !0),
|
|
1903
|
-
|
|
1907
|
+
ve.value === "error" ? (g(), R("div", wm, [
|
|
1904
1908
|
d("p", km, [
|
|
1905
|
-
|
|
1909
|
+
v[38] || (v[38] = d("strong", null, "Error:", -1)),
|
|
1906
1910
|
Ce(" " + y(Qe.value), 1)
|
|
1907
1911
|
]),
|
|
1908
1912
|
d("button", {
|
|
@@ -1910,7 +1914,7 @@ const eu = {
|
|
|
1910
1914
|
onClick: zt
|
|
1911
1915
|
}, "Retry")
|
|
1912
1916
|
])) : w("", !0)
|
|
1913
|
-
])) : (g(), R("div", Pm, [...
|
|
1917
|
+
])) : (g(), R("div", Pm, [...v[41] || (v[41] = [
|
|
1914
1918
|
d("div", { class: "spinner-sm" }, null, -1),
|
|
1915
1919
|
d("span", null, "Checking CLIProxyAPI status…", -1)
|
|
1916
1920
|
])]))
|
|
@@ -1920,7 +1924,7 @@ const eu = {
|
|
|
1920
1924
|
class: "btn btn-secondary",
|
|
1921
1925
|
onClick: k
|
|
1922
1926
|
}, [
|
|
1923
|
-
|
|
1927
|
+
v[42] || (v[42] = d("svg", {
|
|
1924
1928
|
viewBox: "0 0 24 24",
|
|
1925
1929
|
fill: "none",
|
|
1926
1930
|
stroke: "currentColor",
|
|
@@ -1937,8 +1941,8 @@ const eu = {
|
|
|
1937
1941
|
"data-tour": "wiz-proxy-skip",
|
|
1938
1942
|
onClick: F
|
|
1939
1943
|
}, [
|
|
1940
|
-
Ce(y(
|
|
1941
|
-
|
|
1944
|
+
Ce(y(ve.value === "success" ? r("accountWizard.continueBtn") : r("common.skip")) + " ", 1),
|
|
1945
|
+
v[43] || (v[43] = d("svg", {
|
|
1942
1946
|
viewBox: "0 0 24 24",
|
|
1943
1947
|
fill: "none",
|
|
1944
1948
|
stroke: "currentColor",
|
|
@@ -1971,7 +1975,7 @@ const eu = {
|
|
|
1971
1975
|
d("label", Zm, y(r("accountWizard.plan")), 1),
|
|
1972
1976
|
it(d("select", {
|
|
1973
1977
|
id: "wiz-plan",
|
|
1974
|
-
"onUpdate:modelValue":
|
|
1978
|
+
"onUpdate:modelValue": v[8] || (v[8] = (P) => ct.value = P)
|
|
1975
1979
|
}, [
|
|
1976
1980
|
d("option", Jm, y(r("accountWizard.selectPlan")), 1),
|
|
1977
1981
|
(g(!0), R(de, null, Oe(lt.value, (P) => (g(), R("option", {
|
|
@@ -1986,7 +1990,7 @@ const eu = {
|
|
|
1986
1990
|
d("label", null, [
|
|
1987
1991
|
it(d("input", {
|
|
1988
1992
|
type: "checkbox",
|
|
1989
|
-
"onUpdate:modelValue":
|
|
1993
|
+
"onUpdate:modelValue": v[9] || (v[9] = (P) => qe.value = P)
|
|
1990
1994
|
}, null, 512), [
|
|
1991
1995
|
[Vd, qe.value]
|
|
1992
1996
|
]),
|
|
@@ -2000,7 +2004,7 @@ const eu = {
|
|
|
2000
2004
|
class: "btn btn-secondary",
|
|
2001
2005
|
onClick: k
|
|
2002
2006
|
}, [
|
|
2003
|
-
|
|
2007
|
+
v[44] || (v[44] = d("svg", {
|
|
2004
2008
|
viewBox: "0 0 24 24",
|
|
2005
2009
|
fill: "none",
|
|
2006
2010
|
stroke: "currentColor",
|
|
@@ -2025,7 +2029,7 @@ const eu = {
|
|
|
2025
2029
|
])) : w("", !0),
|
|
2026
2030
|
l.value && C.value === "done" ? (g(), R("div", iE, [
|
|
2027
2031
|
d("div", oE, [
|
|
2028
|
-
|
|
2032
|
+
v[45] || (v[45] = d("div", { class: "done-icon" }, [
|
|
2029
2033
|
d("svg", {
|
|
2030
2034
|
viewBox: "0 0 24 24",
|
|
2031
2035
|
fill: "none",
|
|
@@ -2056,7 +2060,7 @@ const eu = {
|
|
|
2056
2060
|
])) : w("", !0)
|
|
2057
2061
|
]));
|
|
2058
2062
|
}
|
|
2059
|
-
}),
|
|
2063
|
+
}), Sv = /* @__PURE__ */ Fe(lE, [["__scopeId", "data-v-19d6fb06"]]), cE = { class: "aia-onboarding" }, _E = { class: "aia-onboarding__header" }, dE = {
|
|
2060
2064
|
key: 0,
|
|
2061
2065
|
class: "aia-onboarding__welcome"
|
|
2062
2066
|
}, uE = {
|
|
@@ -2080,7 +2084,7 @@ const eu = {
|
|
|
2080
2084
|
}, CE = {
|
|
2081
2085
|
key: 4,
|
|
2082
2086
|
class: "aia-onboarding__oauth-challenge"
|
|
2083
|
-
}, NE = ["href"],
|
|
2087
|
+
}, NE = ["href"], vE = { class: "aia-code-display" }, hE = {
|
|
2084
2088
|
key: 5,
|
|
2085
2089
|
class: "aia-onboarding__status"
|
|
2086
2090
|
}, OE = {
|
|
@@ -2101,13 +2105,21 @@ const eu = {
|
|
|
2101
2105
|
const n = t, a = e, r = Xd({ client: n.client }), o = V(""), i = V("api_key"), s = [
|
|
2102
2106
|
{ id: "claude", display: "Claude" },
|
|
2103
2107
|
{ id: "opencode", display: "OpenCode" },
|
|
2104
|
-
{ id: "
|
|
2105
|
-
{ id: "codex", display: "Codex" }
|
|
2108
|
+
{ id: "antigravity", display: "Antigravity" },
|
|
2109
|
+
{ id: "codex", display: "Codex" },
|
|
2110
|
+
{ id: "deepseek", display: "DeepSeek" },
|
|
2111
|
+
{ id: "goose", display: "Goose" },
|
|
2112
|
+
{ id: "aider", display: "Aider" },
|
|
2113
|
+
{ id: "crush", display: "Crush" }
|
|
2106
2114
|
], _ = {
|
|
2107
2115
|
claude: ["api_key"],
|
|
2108
2116
|
opencode: ["api_key"],
|
|
2109
|
-
|
|
2110
|
-
codex: ["api_key", "oauth_device"]
|
|
2117
|
+
antigravity: ["api_key", "oauth_device"],
|
|
2118
|
+
codex: ["api_key", "oauth_device"],
|
|
2119
|
+
deepseek: ["api_key"],
|
|
2120
|
+
goose: ["api_key"],
|
|
2121
|
+
aider: ["api_key"],
|
|
2122
|
+
crush: ["api_key"]
|
|
2111
2123
|
}, c = K(() => n.kinds ?? s), l = K(
|
|
2112
2124
|
() => n.supportedFlowsByKind ?? _
|
|
2113
2125
|
), u = K(() => {
|
|
@@ -2143,7 +2155,7 @@ const eu = {
|
|
|
2143
2155
|
const b = (T = r.oauthChallenge.value) == null ? void 0 : T.user_code;
|
|
2144
2156
|
b && typeof navigator < "u" && navigator.clipboard && navigator.clipboard.writeText(b);
|
|
2145
2157
|
}
|
|
2146
|
-
function
|
|
2158
|
+
function h(b) {
|
|
2147
2159
|
var T, A;
|
|
2148
2160
|
return (A = (T = r.kinds.value) == null ? void 0 : T.find((M) => M.id === b)) == null ? void 0 : A.detection;
|
|
2149
2161
|
}
|
|
@@ -2169,14 +2181,14 @@ const eu = {
|
|
|
2169
2181
|
key: U.id,
|
|
2170
2182
|
type: "button",
|
|
2171
2183
|
class: Me(["aia-kind-card", {
|
|
2172
|
-
"aia-kind-card--installed": (F =
|
|
2173
|
-
"aia-kind-card--missing":
|
|
2184
|
+
"aia-kind-card--installed": (F = h(U.id)) == null ? void 0 : F.installed,
|
|
2185
|
+
"aia-kind-card--missing": h(U.id) && !((k = h(U.id)) != null && k.installed)
|
|
2174
2186
|
}]),
|
|
2175
|
-
disabled: !((L =
|
|
2187
|
+
disabled: !((L = h(U.id)) != null && L.installed),
|
|
2176
2188
|
onClick: (re) => p(U.id)
|
|
2177
2189
|
}, [
|
|
2178
2190
|
d("span", EE, y(U.display), 1),
|
|
2179
|
-
(J =
|
|
2191
|
+
(J = h(U.id)) != null && J.installed ? (g(), R("span", gE, " Installed ")) : (g(), R("span", SE, " Not installed "))
|
|
2180
2192
|
], 10, mE);
|
|
2181
2193
|
}), 128))
|
|
2182
2194
|
])) : Q(r).state.value === "entering_credential" ? (g(), R("div", TE, [
|
|
@@ -2231,7 +2243,7 @@ const eu = {
|
|
|
2231
2243
|
rel: "noopener noreferrer",
|
|
2232
2244
|
class: "aia-onboarding__oauth-uri"
|
|
2233
2245
|
}, y((M = Q(r).oauthChallenge.value) == null ? void 0 : M.verification_uri), 9, NE),
|
|
2234
|
-
d("div",
|
|
2246
|
+
d("div", vE, [
|
|
2235
2247
|
d("code", null, y((Y = Q(r).oauthChallenge.value) == null ? void 0 : Y.user_code), 1),
|
|
2236
2248
|
d("button", {
|
|
2237
2249
|
type: "button",
|
|
@@ -2246,7 +2258,7 @@ const eu = {
|
|
|
2246
2258
|
onClick: T[3] || (T[3] = //@ts-ignore
|
|
2247
2259
|
(...U) => Q(r).cancelOAuth && Q(r).cancelOAuth(...U))
|
|
2248
2260
|
}, "Cancel")
|
|
2249
|
-
])) : Q(r).state.value === "validating" ? (g(), R("div",
|
|
2261
|
+
])) : Q(r).state.value === "validating" ? (g(), R("div", hE, " Validating credential… ")) : Q(r).state.value === "done" ? (g(), R("div", OE, [
|
|
2250
2262
|
xt(b.$slots, "success", {}, () => [
|
|
2251
2263
|
T[11] || (T[11] = d("p", null, "✓ Connected successfully", -1))
|
|
2252
2264
|
], !0)
|
|
@@ -2261,7 +2273,7 @@ const eu = {
|
|
|
2261
2273
|
]);
|
|
2262
2274
|
};
|
|
2263
2275
|
}
|
|
2264
|
-
}),
|
|
2276
|
+
}), Tv = /* @__PURE__ */ Fe(yE, [["__scopeId", "data-v-43800d8a"]]), IE = ["value", "type", "onInput"], DE = { class: "aia-actions" }, ME = ["disabled"], LE = {
|
|
2265
2277
|
key: 0,
|
|
2266
2278
|
class: "aia-error"
|
|
2267
2279
|
}, xE = /* @__PURE__ */ Ue({
|
|
@@ -2335,7 +2347,7 @@ const eu = {
|
|
|
2335
2347
|
s.value ? (g(), R("p", LE, y(s.value), 1)) : w("", !0)
|
|
2336
2348
|
], 32));
|
|
2337
2349
|
}
|
|
2338
|
-
}),
|
|
2350
|
+
}), bv = /* @__PURE__ */ Fe(xE, [["__scopeId", "data-v-56b7b8c3"]]), wE = { class: "aia-chat-message__role" }, kE = { class: "aia-chat-message__content" }, PE = {
|
|
2339
2351
|
key: 0,
|
|
2340
2352
|
class: "aia-chat-message__meta"
|
|
2341
2353
|
}, UE = { key: 0 }, FE = { key: 1 }, BE = { key: 2 }, GE = /* @__PURE__ */ Ue({
|
|
@@ -2422,7 +2434,7 @@ const eu = {
|
|
|
2422
2434
|
])
|
|
2423
2435
|
]));
|
|
2424
2436
|
}
|
|
2425
|
-
}),
|
|
2437
|
+
}), fv = /* @__PURE__ */ Fe(WE, [["__scopeId", "data-v-2904376c"]]);
|
|
2426
2438
|
function Ao() {
|
|
2427
2439
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
2428
2440
|
}
|
|
@@ -2445,7 +2457,7 @@ var $E = (() => {
|
|
|
2445
2457
|
return !1;
|
|
2446
2458
|
}
|
|
2447
2459
|
})(), Je = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, KE = /^(?:[ \t]*(?:\n|$))+/, QE = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, XE = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, pn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ZE = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, yo = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ed = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, td = Ee(ed).replace(/bull/g, yo).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(), JE = Ee(ed).replace(/bull/g, yo).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(), Io = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, jE = /^[^\n]+/, Do = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, eg = Ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Do).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), tg = Ee(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, yo).getRegex(), In = "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", Mo = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ng = Ee("^ {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", Mo).replace("tag", In).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), nd = Ee(Io).replace("hr", pn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex(), ag = Ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", nd).getRegex(), Lo = { blockquote: ag, code: QE, def: eg, fences: XE, heading: ZE, hr: pn, html: ng, lheading: td, list: tg, newline: KE, paragraph: nd, table: kt, text: jE }, Xo = Ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", pn).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", In).getRegex(), rg = { ...Lo, lheading: JE, table: Xo, paragraph: Ee(Io).replace("hr", pn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Xo).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", In).getRegex() }, ig = { ...Lo, html: Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Mo).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: kt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Ee(Io).replace("hr", pn).replace("heading", ` *#{1,6} *[^
|
|
2448
|
-
]`).replace("lheading", td).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, og = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, sg = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ad = /^( {2,}|\\)\n(?!\s*$)/, lg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, Dn = /[\s\p{P}\p{S}]/u, xo = /[^\s\p{P}\p{S}]/u, cg = Ee(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Dn).getRegex(), rd = /(?!~)[\p{P}\p{S}]/u, _g = /(?!~)[\s\p{P}\p{S}]/u, dg = /(?:[^\s\p{P}\p{S}]|~)/u, ug = Ee(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", $E ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), id = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, pg = Ee(id, "u").replace(/punct/g, Qt).getRegex(), mg = Ee(id, "u").replace(/punct/g, rd).getRegex(), od = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Eg = Ee(od, "gu").replace(/notPunctSpace/g, xo).replace(/punctSpace/g, Dn).replace(/punct/g, Qt).getRegex(), gg = Ee(od, "gu").replace(/notPunctSpace/g, dg).replace(/punctSpace/g, _g).replace(/punct/g, rd).getRegex(), Sg = Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xo).replace(/punctSpace/g, Dn).replace(/punct/g, Qt).getRegex(), Tg = Ee(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Qt).getRegex(), bg = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", fg = Ee(bg, "gu").replace(/notPunctSpace/g, xo).replace(/punctSpace/g, Dn).replace(/punct/g, Qt).getRegex(), Rg = Ee(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), Cg = Ee(/^<(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(), Ng = Ee(Mo).replace("(?:-->|$)", "-->").getRegex(),
|
|
2460
|
+
]`).replace("lheading", td).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, og = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, sg = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ad = /^( {2,}|\\)\n(?!\s*$)/, lg = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, Dn = /[\s\p{P}\p{S}]/u, xo = /[^\s\p{P}\p{S}]/u, cg = Ee(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Dn).getRegex(), rd = /(?!~)[\p{P}\p{S}]/u, _g = /(?!~)[\s\p{P}\p{S}]/u, dg = /(?:[^\s\p{P}\p{S}]|~)/u, ug = Ee(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", $E ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), id = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, pg = Ee(id, "u").replace(/punct/g, Qt).getRegex(), mg = Ee(id, "u").replace(/punct/g, rd).getRegex(), od = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Eg = Ee(od, "gu").replace(/notPunctSpace/g, xo).replace(/punctSpace/g, Dn).replace(/punct/g, Qt).getRegex(), gg = Ee(od, "gu").replace(/notPunctSpace/g, dg).replace(/punctSpace/g, _g).replace(/punct/g, rd).getRegex(), Sg = Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xo).replace(/punctSpace/g, Dn).replace(/punct/g, Qt).getRegex(), Tg = Ee(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Qt).getRegex(), bg = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", fg = Ee(bg, "gu").replace(/notPunctSpace/g, xo).replace(/punctSpace/g, Dn).replace(/punct/g, Qt).getRegex(), Rg = Ee(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), Cg = Ee(/^<(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(), Ng = Ee(Mo).replace("(?:-->|$)", "-->").getRegex(), vg = Ee("^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", Ng).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Nn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, hg = Ee(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Nn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), sd = Ee(/^!?\[(label)\]\[(ref)\]/).replace("label", Nn).replace("ref", Do).getRegex(), ld = Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref", Do).getRegex(), Og = Ee("reflink|nolink(?!\\()", "g").replace("reflink", sd).replace("nolink", ld).getRegex(), Zo = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, wo = { _backpedal: kt, anyPunctuation: Rg, autolink: Cg, blockSkip: ug, br: ad, code: sg, del: kt, delLDelim: kt, delRDelim: kt, emStrongLDelim: pg, emStrongRDelimAst: Eg, emStrongRDelimUnd: Sg, escape: og, link: hg, nolink: ld, punctuation: cg, reflink: sd, reflinkSearch: Og, tag: vg, text: lg, url: kt }, Ag = { ...wo, link: Ee(/^!?\[(label)\]\((.*?)\)/).replace("label", Nn).getRegex(), reflink: Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Nn).getRegex() }, Co = { ...wo, emStrongRDelimAst: gg, emStrongLDelim: mg, delLDelim: Tg, delRDelim: fg, url: Ee(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Zo).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: Ee(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Zo).getRegex() }, yg = { ...Co, br: Ee(ad).replace("{2,}", "*").getRegex(), text: Ee(Co.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, gn = { normal: Lo, gfm: rg, pedantic: ig }, nn = { normal: wo, gfm: Co, breaks: yg, pedantic: Ag }, Ig = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Jo = (t) => Ig[t];
|
|
2449
2461
|
function At(t, e) {
|
|
2450
2462
|
if (e) {
|
|
2451
2463
|
if (Je.escapeTest.test(t)) return t.replace(Je.escapeReplace, Jo);
|
|
@@ -2522,11 +2534,11 @@ function Lg(t, e, n) {
|
|
|
2522
2534
|
}).join(`
|
|
2523
2535
|
`);
|
|
2524
2536
|
}
|
|
2525
|
-
var
|
|
2537
|
+
var vn = class {
|
|
2526
2538
|
constructor(t) {
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2539
|
+
he(this, "options");
|
|
2540
|
+
he(this, "rules");
|
|
2541
|
+
he(this, "lexer");
|
|
2530
2542
|
this.options = t || Gt;
|
|
2531
2543
|
}
|
|
2532
2544
|
space(t) {
|
|
@@ -2620,15 +2632,15 @@ ${l}` : l;
|
|
|
2620
2632
|
`, 1)[0], f = !p.trim(), C = 0;
|
|
2621
2633
|
if (this.options.pedantic ? (C = 2, m = p.trimStart()) : f ? C = e[1].length + 1 : (C = p.search(this.rules.other.nonSpaceChar), C = C > 4 ? 1 : C, m = p.slice(C), C += e[1].length), f && this.rules.other.blankLine.test(E) && (u += E + `
|
|
2622
2634
|
`, t = t.substring(E.length + 1), l = !0), !l) {
|
|
2623
|
-
let I = this.rules.other.nextBulletRegex(C),
|
|
2635
|
+
let I = this.rules.other.nextBulletRegex(C), h = this.rules.other.hrRegex(C), b = this.rules.other.fencesBeginRegex(C), T = this.rules.other.headingBeginRegex(C), A = this.rules.other.htmlBeginRegex(C), M = this.rules.other.blockquoteBeginRegex(C);
|
|
2624
2636
|
for (; t; ) {
|
|
2625
2637
|
let Y = t.split(`
|
|
2626
2638
|
`, 1)[0], U;
|
|
2627
|
-
if (E = Y, this.options.pedantic ? (E = E.replace(this.rules.other.listReplaceNesting, " "), U = E) : U = E.replace(this.rules.other.tabCharGlobal, " "), b.test(E) || T.test(E) || A.test(E) || M.test(E) || I.test(E) ||
|
|
2639
|
+
if (E = Y, this.options.pedantic ? (E = E.replace(this.rules.other.listReplaceNesting, " "), U = E) : U = E.replace(this.rules.other.tabCharGlobal, " "), b.test(E) || T.test(E) || A.test(E) || M.test(E) || I.test(E) || h.test(E)) break;
|
|
2628
2640
|
if (U.search(this.rules.other.nonSpaceChar) >= C || !E.trim()) m += `
|
|
2629
2641
|
` + U.slice(C);
|
|
2630
2642
|
else {
|
|
2631
|
-
if (f || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || b.test(p) || T.test(p) ||
|
|
2643
|
+
if (f || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || b.test(p) || T.test(p) || h.test(p)) break;
|
|
2632
2644
|
m += `
|
|
2633
2645
|
` + E;
|
|
2634
2646
|
}
|
|
@@ -2846,12 +2858,12 @@ ${l}` : l;
|
|
|
2846
2858
|
}
|
|
2847
2859
|
}, ft = class No {
|
|
2848
2860
|
constructor(e) {
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Gt, this.options.tokenizer = this.options.tokenizer || new
|
|
2861
|
+
he(this, "tokens");
|
|
2862
|
+
he(this, "options");
|
|
2863
|
+
he(this, "state");
|
|
2864
|
+
he(this, "inlineQueue");
|
|
2865
|
+
he(this, "tokenizer");
|
|
2866
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Gt, this.options.tokenizer = this.options.tokenizer || new vn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
2855
2867
|
let n = { other: Je, block: gn.normal, inline: nn.normal };
|
|
2856
2868
|
this.options.pedantic ? (n.block = gn.pedantic, n.inline = nn.pedantic) : this.options.gfm && (n.block = gn.gfm, this.options.breaks ? n.inline = nn.breaks : n.inline = nn.gfm), this.tokenizer.rules = n;
|
|
2857
2869
|
}
|
|
@@ -3034,8 +3046,8 @@ ${l}` : l;
|
|
|
3034
3046
|
let E = e;
|
|
3035
3047
|
if ((m = this.options.extensions) != null && m.startInline) {
|
|
3036
3048
|
let f = 1 / 0, C = e.slice(1), I;
|
|
3037
|
-
this.options.extensions.startInline.forEach((
|
|
3038
|
-
I =
|
|
3049
|
+
this.options.extensions.startInline.forEach((h) => {
|
|
3050
|
+
I = h.call({ lexer: this }, C), typeof I == "number" && I >= 0 && (f = Math.min(f, I));
|
|
3039
3051
|
}), f < 1 / 0 && f >= 0 && (E = e.substring(0, f + 1));
|
|
3040
3052
|
}
|
|
3041
3053
|
if (p = this.tokenizer.inlineText(E)) {
|
|
@@ -3054,10 +3066,10 @@ ${l}` : l;
|
|
|
3054
3066
|
}
|
|
3055
3067
|
return n;
|
|
3056
3068
|
}
|
|
3057
|
-
},
|
|
3069
|
+
}, hn = class {
|
|
3058
3070
|
constructor(t) {
|
|
3059
|
-
|
|
3060
|
-
|
|
3071
|
+
he(this, "options");
|
|
3072
|
+
he(this, "parser");
|
|
3061
3073
|
this.options = t || Gt;
|
|
3062
3074
|
}
|
|
3063
3075
|
space(t) {
|
|
@@ -3203,18 +3215,18 @@ ${t}</tr>
|
|
|
3203
3215
|
checkbox({ raw: t }) {
|
|
3204
3216
|
return t;
|
|
3205
3217
|
}
|
|
3206
|
-
}, Rt = class
|
|
3218
|
+
}, Rt = class vo {
|
|
3207
3219
|
constructor(e) {
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
this.options = e || Gt, this.options.renderer = this.options.renderer || new
|
|
3220
|
+
he(this, "options");
|
|
3221
|
+
he(this, "renderer");
|
|
3222
|
+
he(this, "textRenderer");
|
|
3223
|
+
this.options = e || Gt, this.options.renderer = this.options.renderer || new hn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ko();
|
|
3212
3224
|
}
|
|
3213
3225
|
static parse(e, n) {
|
|
3214
|
-
return new
|
|
3226
|
+
return new vo(n).parse(e);
|
|
3215
3227
|
}
|
|
3216
3228
|
static parseInline(e, n) {
|
|
3217
|
-
return new
|
|
3229
|
+
return new vo(n).parseInline(e);
|
|
3218
3230
|
}
|
|
3219
3231
|
parse(e) {
|
|
3220
3232
|
var a, r;
|
|
@@ -3358,8 +3370,8 @@ ${t}</tr>
|
|
|
3358
3370
|
}
|
|
3359
3371
|
}, fn, ln = (fn = class {
|
|
3360
3372
|
constructor(t) {
|
|
3361
|
-
|
|
3362
|
-
|
|
3373
|
+
he(this, "options");
|
|
3374
|
+
he(this, "block");
|
|
3363
3375
|
this.options = t || Gt;
|
|
3364
3376
|
}
|
|
3365
3377
|
preprocess(t) {
|
|
@@ -3380,18 +3392,18 @@ ${t}</tr>
|
|
|
3380
3392
|
provideParser(t = this.block) {
|
|
3381
3393
|
return t ? Rt.parse : Rt.parseInline;
|
|
3382
3394
|
}
|
|
3383
|
-
},
|
|
3395
|
+
}, he(fn, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), he(fn, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), fn), xg = class {
|
|
3384
3396
|
constructor(...t) {
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3397
|
+
he(this, "defaults", Ao());
|
|
3398
|
+
he(this, "options", this.setOptions);
|
|
3399
|
+
he(this, "parse", this.parseMarkdown(!0));
|
|
3400
|
+
he(this, "parseInline", this.parseMarkdown(!1));
|
|
3401
|
+
he(this, "Parser", Rt);
|
|
3402
|
+
he(this, "Renderer", hn);
|
|
3403
|
+
he(this, "TextRenderer", ko);
|
|
3404
|
+
he(this, "Lexer", ft);
|
|
3405
|
+
he(this, "Tokenizer", vn);
|
|
3406
|
+
he(this, "Hooks", ln);
|
|
3395
3407
|
this.use(...t);
|
|
3396
3408
|
}
|
|
3397
3409
|
walkTokens(t, e) {
|
|
@@ -3439,7 +3451,7 @@ ${t}</tr>
|
|
|
3439
3451
|
}
|
|
3440
3452
|
"childTokens" in r && r.childTokens && (e.childTokens[r.name] = r.childTokens);
|
|
3441
3453
|
}), a.extensions = e), n.renderer) {
|
|
3442
|
-
let r = this.defaults.renderer || new
|
|
3454
|
+
let r = this.defaults.renderer || new hn(this.defaults);
|
|
3443
3455
|
for (let o in n.renderer) {
|
|
3444
3456
|
if (!(o in r)) throw new Error(`renderer '${o}' does not exist`);
|
|
3445
3457
|
if (["options", "parser"].includes(o)) continue;
|
|
@@ -3452,7 +3464,7 @@ ${t}</tr>
|
|
|
3452
3464
|
a.renderer = r;
|
|
3453
3465
|
}
|
|
3454
3466
|
if (n.tokenizer) {
|
|
3455
|
-
let r = this.defaults.tokenizer || new
|
|
3467
|
+
let r = this.defaults.tokenizer || new vn(this.defaults);
|
|
3456
3468
|
for (let o in n.tokenizer) {
|
|
3457
3469
|
if (!(o in r)) throw new Error(`tokenizer '${o}' does not exist`);
|
|
3458
3470
|
if (["options", "rules", "lexer"].includes(o)) continue;
|
|
@@ -3559,11 +3571,11 @@ Te.walkTokens = function(t, e) {
|
|
|
3559
3571
|
Te.parseInline = Bt.parseInline;
|
|
3560
3572
|
Te.Parser = Rt;
|
|
3561
3573
|
Te.parser = Rt.parse;
|
|
3562
|
-
Te.Renderer =
|
|
3574
|
+
Te.Renderer = hn;
|
|
3563
3575
|
Te.TextRenderer = ko;
|
|
3564
3576
|
Te.Lexer = ft;
|
|
3565
3577
|
Te.lexer = ft.lex;
|
|
3566
|
-
Te.Tokenizer =
|
|
3578
|
+
Te.Tokenizer = vn;
|
|
3567
3579
|
Te.Hooks = ln;
|
|
3568
3580
|
Te.parse = Te;
|
|
3569
3581
|
Te.options;
|
|
@@ -4214,8 +4226,8 @@ function NS(t) {
|
|
|
4214
4226
|
return Lt(t, { variants: null }, e);
|
|
4215
4227
|
})), t.cachedVariants ? t.cachedVariants : bd(t) ? Lt(t, { starts: t.starts ? Lt(t.starts) : null }) : Object.isFrozen(t) ? Lt(t) : t;
|
|
4216
4228
|
}
|
|
4217
|
-
var
|
|
4218
|
-
class
|
|
4229
|
+
var vS = "11.11.1";
|
|
4230
|
+
class hS extends Error {
|
|
4219
4231
|
constructor(e, n) {
|
|
4220
4232
|
super(e), this.name = "HTMLInjectionError", this.html = n;
|
|
4221
4233
|
}
|
|
@@ -4500,7 +4512,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _e = D, ne = G), W ==
|
|
|
4500
4512
|
return;
|
|
4501
4513
|
}
|
|
4502
4514
|
if (D.children.length > 0 && (s.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(D)), s.throwUnescapedHTML))
|
|
4503
|
-
throw new
|
|
4515
|
+
throw new hS(
|
|
4504
4516
|
"One of your code blocks includes unescaped HTML.",
|
|
4505
4517
|
D.innerHTML
|
|
4506
4518
|
);
|
|
@@ -4522,7 +4534,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _e = D, ne = G), W ==
|
|
|
4522
4534
|
const I = () => {
|
|
4523
4535
|
T(), Ht("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
4524
4536
|
};
|
|
4525
|
-
function
|
|
4537
|
+
function h() {
|
|
4526
4538
|
T(), Ht("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
4527
4539
|
}
|
|
4528
4540
|
let b = !1;
|
|
@@ -4605,7 +4617,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _e = D, ne = G), W ==
|
|
|
4605
4617
|
highlightBlock: ue,
|
|
4606
4618
|
configure: C,
|
|
4607
4619
|
initHighlighting: I,
|
|
4608
|
-
initHighlightingOnLoad:
|
|
4620
|
+
initHighlightingOnLoad: h,
|
|
4609
4621
|
registerLanguage: A,
|
|
4610
4622
|
unregisterLanguage: M,
|
|
4611
4623
|
listLanguages: Y,
|
|
@@ -4619,7 +4631,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _e = D, ne = G), W ==
|
|
|
4619
4631
|
r = !1;
|
|
4620
4632
|
}, t.safeMode = function() {
|
|
4621
4633
|
r = !0;
|
|
4622
|
-
}, t.versionString =
|
|
4634
|
+
}, t.versionString = vS, t.regex = {
|
|
4623
4635
|
concat: Yt,
|
|
4624
4636
|
lookahead: dd,
|
|
4625
4637
|
either: Uo,
|
|
@@ -6206,7 +6218,7 @@ function US() {
|
|
|
6206
6218
|
"signed",
|
|
6207
6219
|
"const",
|
|
6208
6220
|
"static"
|
|
6209
|
-
],
|
|
6221
|
+
], h = [
|
|
6210
6222
|
"any",
|
|
6211
6223
|
"auto_ptr",
|
|
6212
6224
|
"barrier",
|
|
@@ -6376,7 +6388,7 @@ function US() {
|
|
|
6376
6388
|
"true"
|
|
6377
6389
|
],
|
|
6378
6390
|
built_in: ["_Pragma"],
|
|
6379
|
-
_type_hints:
|
|
6391
|
+
_type_hints: h
|
|
6380
6392
|
}, Y = {
|
|
6381
6393
|
className: "function.dispatch",
|
|
6382
6394
|
relevance: 0,
|
|
@@ -7724,10 +7736,10 @@ function YS() {
|
|
|
7724
7736
|
}
|
|
7725
7737
|
return Xn = t, Xn;
|
|
7726
7738
|
}
|
|
7727
|
-
var Zn,
|
|
7739
|
+
var Zn, vs;
|
|
7728
7740
|
function qS() {
|
|
7729
|
-
if (
|
|
7730
|
-
|
|
7741
|
+
if (vs) return Zn;
|
|
7742
|
+
vs = 1;
|
|
7731
7743
|
function t(e) {
|
|
7732
7744
|
const n = { begin: "`[\\s\\S]" };
|
|
7733
7745
|
return {
|
|
@@ -7795,10 +7807,10 @@ function qS() {
|
|
|
7795
7807
|
}
|
|
7796
7808
|
return Zn = t, Zn;
|
|
7797
7809
|
}
|
|
7798
|
-
var Jn,
|
|
7810
|
+
var Jn, hs;
|
|
7799
7811
|
function zS() {
|
|
7800
|
-
if (
|
|
7801
|
-
|
|
7812
|
+
if (hs) return Jn;
|
|
7813
|
+
hs = 1;
|
|
7802
7814
|
function t(e) {
|
|
7803
7815
|
const n = "ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With", a = [
|
|
7804
7816
|
"EndRegion",
|
|
@@ -8363,7 +8375,7 @@ function $S() {
|
|
|
8363
8375
|
], I = [
|
|
8364
8376
|
"true",
|
|
8365
8377
|
"false"
|
|
8366
|
-
],
|
|
8378
|
+
], h = { match: /(\/[a-z._-]+)+/ }, b = [
|
|
8367
8379
|
"break",
|
|
8368
8380
|
"cd",
|
|
8369
8381
|
"continue",
|
|
@@ -8608,7 +8620,7 @@ function $S() {
|
|
|
8608
8620
|
m,
|
|
8609
8621
|
i,
|
|
8610
8622
|
s,
|
|
8611
|
-
|
|
8623
|
+
h,
|
|
8612
8624
|
_,
|
|
8613
8625
|
c,
|
|
8614
8626
|
l,
|
|
@@ -9079,7 +9091,7 @@ function ZS() {
|
|
|
9079
9091
|
literal: "true false NULL",
|
|
9080
9092
|
// TODO: apply hinting work similar to what was done in cpp.js
|
|
9081
9093
|
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
|
9082
|
-
},
|
|
9094
|
+
}, h = [
|
|
9083
9095
|
m,
|
|
9084
9096
|
_,
|
|
9085
9097
|
a,
|
|
@@ -9105,12 +9117,12 @@ function ZS() {
|
|
|
9105
9117
|
}
|
|
9106
9118
|
],
|
|
9107
9119
|
keywords: I,
|
|
9108
|
-
contains:
|
|
9120
|
+
contains: h.concat([
|
|
9109
9121
|
{
|
|
9110
9122
|
begin: /\(/,
|
|
9111
9123
|
end: /\)/,
|
|
9112
9124
|
keywords: I,
|
|
9113
|
-
contains:
|
|
9125
|
+
contains: h.concat(["self"]),
|
|
9114
9126
|
relevance: 0
|
|
9115
9127
|
}
|
|
9116
9128
|
]),
|
|
@@ -9187,7 +9199,7 @@ function ZS() {
|
|
|
9187
9199
|
contains: [].concat(
|
|
9188
9200
|
b,
|
|
9189
9201
|
T,
|
|
9190
|
-
|
|
9202
|
+
h,
|
|
9191
9203
|
[
|
|
9192
9204
|
m,
|
|
9193
9205
|
{
|
|
@@ -9710,7 +9722,7 @@ function nT() {
|
|
|
9710
9722
|
}, I = {
|
|
9711
9723
|
endsWithParent: !0,
|
|
9712
9724
|
relevance: 0
|
|
9713
|
-
},
|
|
9725
|
+
}, h = {
|
|
9714
9726
|
keywords: o,
|
|
9715
9727
|
className: "name",
|
|
9716
9728
|
begin: a,
|
|
@@ -9748,7 +9760,7 @@ function nT() {
|
|
|
9748
9760
|
};
|
|
9749
9761
|
return C.contains = [
|
|
9750
9762
|
T,
|
|
9751
|
-
|
|
9763
|
+
h,
|
|
9752
9764
|
I
|
|
9753
9765
|
], I.contains = b, E.contains = b, {
|
|
9754
9766
|
name: "Clojure",
|
|
@@ -10077,7 +10089,7 @@ function iT() {
|
|
|
10077
10089
|
}
|
|
10078
10090
|
];
|
|
10079
10091
|
f.contains = C;
|
|
10080
|
-
const I = s.inherit(s.TITLE_MODE, { begin: E }),
|
|
10092
|
+
const I = s.inherit(s.TITLE_MODE, { begin: E }), h = "(\\(.*\\)\\s*)?\\B[-=]>", b = {
|
|
10081
10093
|
className: "params",
|
|
10082
10094
|
begin: "\\([^\\(]",
|
|
10083
10095
|
returnBegin: !0,
|
|
@@ -10125,7 +10137,7 @@ function iT() {
|
|
|
10125
10137
|
s.HASH_COMMENT_MODE,
|
|
10126
10138
|
{
|
|
10127
10139
|
className: "function",
|
|
10128
|
-
begin: "^\\s*" + E + "\\s*=\\s*" +
|
|
10140
|
+
begin: "^\\s*" + E + "\\s*=\\s*" + h,
|
|
10129
10141
|
end: "[-=]>",
|
|
10130
10142
|
returnBegin: !0,
|
|
10131
10143
|
contains: [
|
|
@@ -10140,7 +10152,7 @@ function iT() {
|
|
|
10140
10152
|
contains: [
|
|
10141
10153
|
{
|
|
10142
10154
|
className: "function",
|
|
10143
|
-
begin:
|
|
10155
|
+
begin: h,
|
|
10144
10156
|
end: "[-=]>",
|
|
10145
10157
|
returnBegin: !0,
|
|
10146
10158
|
contains: [b]
|
|
@@ -10920,7 +10932,7 @@ function lT() {
|
|
|
10920
10932
|
"weak_ptr",
|
|
10921
10933
|
"wstring",
|
|
10922
10934
|
"wstring_view"
|
|
10923
|
-
],
|
|
10935
|
+
], h = [
|
|
10924
10936
|
"abort",
|
|
10925
10937
|
"abs",
|
|
10926
10938
|
"acos",
|
|
@@ -11038,7 +11050,7 @@ function lT() {
|
|
|
11038
11050
|
relevance: 0,
|
|
11039
11051
|
keywords: {
|
|
11040
11052
|
// Only for relevance, not highlighting.
|
|
11041
|
-
_hint:
|
|
11053
|
+
_hint: h
|
|
11042
11054
|
},
|
|
11043
11055
|
begin: n.concat(
|
|
11044
11056
|
/\b/,
|
|
@@ -11334,10 +11346,10 @@ function _T() {
|
|
|
11334
11346
|
],
|
|
11335
11347
|
keywords: s
|
|
11336
11348
|
};
|
|
11337
|
-
function u(
|
|
11349
|
+
function u(h, b) {
|
|
11338
11350
|
const T = [
|
|
11339
11351
|
{
|
|
11340
|
-
begin:
|
|
11352
|
+
begin: h,
|
|
11341
11353
|
end: b
|
|
11342
11354
|
}
|
|
11343
11355
|
];
|
|
@@ -11806,7 +11818,7 @@ function dT() {
|
|
|
11806
11818
|
c,
|
|
11807
11819
|
e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
|
|
11808
11820
|
];
|
|
11809
|
-
const
|
|
11821
|
+
const h = { variants: [
|
|
11810
11822
|
l,
|
|
11811
11823
|
C,
|
|
11812
11824
|
f,
|
|
@@ -11866,7 +11878,7 @@ function dT() {
|
|
|
11866
11878
|
end: "$",
|
|
11867
11879
|
keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
|
|
11868
11880
|
},
|
|
11869
|
-
|
|
11881
|
+
h,
|
|
11870
11882
|
c,
|
|
11871
11883
|
{
|
|
11872
11884
|
beginKeywords: "class interface",
|
|
@@ -11957,7 +11969,7 @@ function dT() {
|
|
|
11957
11969
|
keywords: s,
|
|
11958
11970
|
relevance: 0,
|
|
11959
11971
|
contains: [
|
|
11960
|
-
|
|
11972
|
+
h,
|
|
11961
11973
|
c,
|
|
11962
11974
|
e.C_BLOCK_COMMENT_MODE
|
|
11963
11975
|
]
|
|
@@ -12971,7 +12983,7 @@ function mT() {
|
|
|
12971
12983
|
begin: "'(" + p + "|.)",
|
|
12972
12984
|
end: "'",
|
|
12973
12985
|
illegal: "."
|
|
12974
|
-
},
|
|
12986
|
+
}, h = {
|
|
12975
12987
|
className: "string",
|
|
12976
12988
|
begin: '"',
|
|
12977
12989
|
contains: [{
|
|
@@ -13025,7 +13037,7 @@ function mT() {
|
|
|
13025
13037
|
e.C_BLOCK_COMMENT_MODE,
|
|
13026
13038
|
k,
|
|
13027
13039
|
A,
|
|
13028
|
-
|
|
13040
|
+
h,
|
|
13029
13041
|
b,
|
|
13030
13042
|
T,
|
|
13031
13043
|
M,
|
|
@@ -13040,9 +13052,9 @@ function mT() {
|
|
|
13040
13052
|
}
|
|
13041
13053
|
return Na = t, Na;
|
|
13042
13054
|
}
|
|
13043
|
-
var
|
|
13055
|
+
var va, Zs;
|
|
13044
13056
|
function ET() {
|
|
13045
|
-
if (Zs) return
|
|
13057
|
+
if (Zs) return va;
|
|
13046
13058
|
Zs = 1;
|
|
13047
13059
|
function t(e) {
|
|
13048
13060
|
const n = e.regex, a = {
|
|
@@ -13204,8 +13216,8 @@ function ET() {
|
|
|
13204
13216
|
u,
|
|
13205
13217
|
m,
|
|
13206
13218
|
p
|
|
13207
|
-
].forEach((
|
|
13208
|
-
|
|
13219
|
+
].forEach((h) => {
|
|
13220
|
+
h.contains = h.contains.concat(E);
|
|
13209
13221
|
}), E = E.concat(l, u), {
|
|
13210
13222
|
name: "Markdown",
|
|
13211
13223
|
aliases: [
|
|
@@ -13257,11 +13269,11 @@ function ET() {
|
|
|
13257
13269
|
]
|
|
13258
13270
|
};
|
|
13259
13271
|
}
|
|
13260
|
-
return
|
|
13272
|
+
return va = t, va;
|
|
13261
13273
|
}
|
|
13262
|
-
var
|
|
13274
|
+
var ha, Js;
|
|
13263
13275
|
function gT() {
|
|
13264
|
-
if (Js) return
|
|
13276
|
+
if (Js) return ha;
|
|
13265
13277
|
Js = 1;
|
|
13266
13278
|
function t(e) {
|
|
13267
13279
|
const n = {
|
|
@@ -13509,7 +13521,7 @@ function gT() {
|
|
|
13509
13521
|
]
|
|
13510
13522
|
};
|
|
13511
13523
|
}
|
|
13512
|
-
return
|
|
13524
|
+
return ha = t, ha;
|
|
13513
13525
|
}
|
|
13514
13526
|
var Oa, js;
|
|
13515
13527
|
function ST() {
|
|
@@ -14186,7 +14198,7 @@ function NT() {
|
|
|
14186
14198
|
return La = t, La;
|
|
14187
14199
|
}
|
|
14188
14200
|
var xa, ol;
|
|
14189
|
-
function
|
|
14201
|
+
function vT() {
|
|
14190
14202
|
if (ol) return xa;
|
|
14191
14203
|
ol = 1;
|
|
14192
14204
|
function t(e) {
|
|
@@ -14314,7 +14326,7 @@ function hT() {
|
|
|
14314
14326
|
return xa = t, xa;
|
|
14315
14327
|
}
|
|
14316
14328
|
var wa, sl;
|
|
14317
|
-
function
|
|
14329
|
+
function hT() {
|
|
14318
14330
|
if (sl) return wa;
|
|
14319
14331
|
sl = 1;
|
|
14320
14332
|
function t(e) {
|
|
@@ -14539,7 +14551,7 @@ function AT() {
|
|
|
14539
14551
|
)
|
|
14540
14552
|
}
|
|
14541
14553
|
]
|
|
14542
|
-
},
|
|
14554
|
+
}, h = {
|
|
14543
14555
|
className: "string",
|
|
14544
14556
|
contains: [
|
|
14545
14557
|
e.BACKSLASH_ESCAPE,
|
|
@@ -14603,7 +14615,7 @@ function AT() {
|
|
|
14603
14615
|
beginKeywords: "defimpl defmodule defprotocol defrecord",
|
|
14604
14616
|
end: /\bdo\b|$|;/
|
|
14605
14617
|
}), A = [
|
|
14606
|
-
|
|
14618
|
+
h,
|
|
14607
14619
|
I,
|
|
14608
14620
|
C,
|
|
14609
14621
|
f,
|
|
@@ -14615,7 +14627,7 @@ function AT() {
|
|
|
14615
14627
|
className: "symbol",
|
|
14616
14628
|
begin: ":(?![\\s:])",
|
|
14617
14629
|
contains: [
|
|
14618
|
-
|
|
14630
|
+
h,
|
|
14619
14631
|
{ begin: r }
|
|
14620
14632
|
],
|
|
14621
14633
|
relevance: 0
|
|
@@ -15356,7 +15368,7 @@ function LT() {
|
|
|
15356
15368
|
p
|
|
15357
15369
|
];
|
|
15358
15370
|
_.contains[1].contains = I, c.contains = I, m.contains[1].contains = I;
|
|
15359
|
-
const
|
|
15371
|
+
const h = [
|
|
15360
15372
|
"-module",
|
|
15361
15373
|
"-record",
|
|
15362
15374
|
"-undef",
|
|
@@ -15418,7 +15430,7 @@ function LT() {
|
|
|
15418
15430
|
returnBegin: !0,
|
|
15419
15431
|
keywords: {
|
|
15420
15432
|
$pattern: "-" + e.IDENT_RE,
|
|
15421
|
-
keyword:
|
|
15433
|
+
keyword: h.map((T) => `${T}|1.5`).join(" ")
|
|
15422
15434
|
},
|
|
15423
15435
|
contains: [
|
|
15424
15436
|
b,
|
|
@@ -16894,7 +16906,7 @@ function UT() {
|
|
|
16894
16906
|
}),
|
|
16895
16907
|
s.C_LINE_COMMENT_MODE
|
|
16896
16908
|
]
|
|
16897
|
-
},
|
|
16909
|
+
}, h = /[a-zA-Z_](\w|')*/, b = {
|
|
16898
16910
|
scope: "variable",
|
|
16899
16911
|
begin: /``/,
|
|
16900
16912
|
end: /``/
|
|
@@ -16995,7 +17007,7 @@ function UT() {
|
|
|
16995
17007
|
// prevents matching the following: `match s.stype with`
|
|
16996
17008
|
/type/,
|
|
16997
17009
|
/\s+/,
|
|
16998
|
-
|
|
17010
|
+
h
|
|
16999
17011
|
],
|
|
17000
17012
|
beginScope: {
|
|
17001
17013
|
2: "keyword",
|
|
@@ -17721,10 +17733,10 @@ function YT() {
|
|
|
17721
17733
|
}
|
|
17722
17734
|
return Xa = t, Xa;
|
|
17723
17735
|
}
|
|
17724
|
-
var Za,
|
|
17736
|
+
var Za, vl;
|
|
17725
17737
|
function qT() {
|
|
17726
|
-
if (
|
|
17727
|
-
|
|
17738
|
+
if (vl) return Za;
|
|
17739
|
+
vl = 1;
|
|
17728
17740
|
function t(e) {
|
|
17729
17741
|
return {
|
|
17730
17742
|
name: "GLSL",
|
|
@@ -17755,10 +17767,10 @@ function qT() {
|
|
|
17755
17767
|
}
|
|
17756
17768
|
return Za = t, Za;
|
|
17757
17769
|
}
|
|
17758
|
-
var Ja,
|
|
17770
|
+
var Ja, hl;
|
|
17759
17771
|
function zT() {
|
|
17760
|
-
if (
|
|
17761
|
-
|
|
17772
|
+
if (hl) return Ja;
|
|
17773
|
+
hl = 1;
|
|
17762
17774
|
function t(e) {
|
|
17763
17775
|
return {
|
|
17764
17776
|
name: "GML",
|
|
@@ -21743,7 +21755,7 @@ function XT() {
|
|
|
21743
21755
|
begin: /\w+/
|
|
21744
21756
|
}
|
|
21745
21757
|
]
|
|
21746
|
-
},
|
|
21758
|
+
}, h = {
|
|
21747
21759
|
contains: [
|
|
21748
21760
|
e.NUMBER_MODE,
|
|
21749
21761
|
e.QUOTE_STRING_MODE,
|
|
@@ -21760,20 +21772,20 @@ function XT() {
|
|
|
21760
21772
|
}, b = e.inherit(p, {
|
|
21761
21773
|
className: "name",
|
|
21762
21774
|
keywords: a,
|
|
21763
|
-
starts: e.inherit(
|
|
21775
|
+
starts: e.inherit(h, { end: /\)/ })
|
|
21764
21776
|
});
|
|
21765
21777
|
f.contains = [b];
|
|
21766
21778
|
const T = e.inherit(p, {
|
|
21767
21779
|
keywords: a,
|
|
21768
21780
|
className: "name",
|
|
21769
|
-
starts: e.inherit(
|
|
21781
|
+
starts: e.inherit(h, { end: /\}\}/ })
|
|
21770
21782
|
}), A = e.inherit(p, {
|
|
21771
21783
|
keywords: a,
|
|
21772
21784
|
className: "name"
|
|
21773
21785
|
}), M = e.inherit(p, {
|
|
21774
21786
|
className: "name",
|
|
21775
21787
|
keywords: a,
|
|
21776
|
-
starts: e.inherit(
|
|
21788
|
+
starts: e.inherit(h, { end: /\}\}/ })
|
|
21777
21789
|
});
|
|
21778
21790
|
return {
|
|
21779
21791
|
name: "Handlebars",
|
|
@@ -22388,7 +22400,7 @@ function tb() {
|
|
|
22388
22400
|
keywords: r,
|
|
22389
22401
|
begin: a,
|
|
22390
22402
|
starts: C
|
|
22391
|
-
},
|
|
22403
|
+
}, h = [
|
|
22392
22404
|
f,
|
|
22393
22405
|
_,
|
|
22394
22406
|
m,
|
|
@@ -22404,7 +22416,7 @@ function tb() {
|
|
|
22404
22416
|
e.COMMENT("comment", ""),
|
|
22405
22417
|
I,
|
|
22406
22418
|
C
|
|
22407
|
-
], C.contains =
|
|
22419
|
+
], C.contains = h, u.contains = h, {
|
|
22408
22420
|
name: "Hy",
|
|
22409
22421
|
aliases: ["hylang"],
|
|
22410
22422
|
illegal: /\S/,
|
|
@@ -23199,12 +23211,12 @@ function sb() {
|
|
|
23199
23211
|
literal: n,
|
|
23200
23212
|
built_in: s,
|
|
23201
23213
|
"variable.language": i
|
|
23202
|
-
}, I = "[0-9](_?[0-9])*",
|
|
23214
|
+
}, I = "[0-9](_?[0-9])*", h = `\\.(${I})`, b = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", T = {
|
|
23203
23215
|
className: "number",
|
|
23204
23216
|
variants: [
|
|
23205
23217
|
// DecimalLiteral
|
|
23206
|
-
{ begin: `(\\b(${b})((${
|
|
23207
|
-
{ begin: `\\b(${b})\\b((${
|
|
23218
|
+
{ begin: `(\\b(${b})((${h})|\\.)?|(${h}))[eE][+-]?(${I})\\b` },
|
|
23219
|
+
{ begin: `\\b(${b})\\b((${h})\\b|\\.)?|(${h})\\b` },
|
|
23208
23220
|
// DecimalBigIntegerLiteral
|
|
23209
23221
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
23210
23222
|
// NonDecimalIntegerLiteral
|
|
@@ -24671,7 +24683,7 @@ function mb() {
|
|
|
24671
24683
|
}, I = {
|
|
24672
24684
|
begin: /\s+/,
|
|
24673
24685
|
relevance: 0
|
|
24674
|
-
},
|
|
24686
|
+
}, h = [f], b = [C], T = function(L, J) {
|
|
24675
24687
|
return {
|
|
24676
24688
|
contains: [I],
|
|
24677
24689
|
starts: {
|
|
@@ -24701,7 +24713,7 @@ function mb() {
|
|
|
24701
24713
|
},
|
|
24702
24714
|
relevance: 0
|
|
24703
24715
|
},
|
|
24704
|
-
T(
|
|
24716
|
+
T(h, J)
|
|
24705
24717
|
);
|
|
24706
24718
|
}, Y = (L = "string") => e.END_SAME_AS_BEGIN({
|
|
24707
24719
|
className: L,
|
|
@@ -24741,8 +24753,8 @@ function mb() {
|
|
|
24741
24753
|
"verb",
|
|
24742
24754
|
"lstinline"
|
|
24743
24755
|
].map((L) => A(L, { contains: [Y()] })),
|
|
24744
|
-
A("mint", T(
|
|
24745
|
-
A("mintinline", T(
|
|
24756
|
+
A("mint", T(h, { contains: [Y()] })),
|
|
24757
|
+
A("mintinline", T(h, { contains: [
|
|
24746
24758
|
F(),
|
|
24747
24759
|
Y()
|
|
24748
24760
|
] })),
|
|
@@ -24757,7 +24769,7 @@ function mb() {
|
|
|
24757
24769
|
"\\*"
|
|
24758
24770
|
].map((L) => [
|
|
24759
24771
|
M("verbatim" + L, U("verbatim" + L)),
|
|
24760
|
-
M("filecontents" + L, T(
|
|
24772
|
+
M("filecontents" + L, T(h, U("filecontents" + L))),
|
|
24761
24773
|
...[
|
|
24762
24774
|
"",
|
|
24763
24775
|
"B",
|
|
@@ -24766,7 +24778,7 @@ function mb() {
|
|
|
24766
24778
|
(J) => M(J + "Verbatim" + L, T(b, U(J + "Verbatim" + L)))
|
|
24767
24779
|
)
|
|
24768
24780
|
])),
|
|
24769
|
-
M("minted", T(b, T(
|
|
24781
|
+
M("minted", T(b, T(h, U("minted"))))
|
|
24770
24782
|
];
|
|
24771
24783
|
return {
|
|
24772
24784
|
name: "LaTeX",
|
|
@@ -24779,9 +24791,9 @@ function mb() {
|
|
|
24779
24791
|
}
|
|
24780
24792
|
return Nr = t, Nr;
|
|
24781
24793
|
}
|
|
24782
|
-
var
|
|
24794
|
+
var vr, Zl;
|
|
24783
24795
|
function Eb() {
|
|
24784
|
-
if (Zl) return
|
|
24796
|
+
if (Zl) return vr;
|
|
24785
24797
|
Zl = 1;
|
|
24786
24798
|
function t(e) {
|
|
24787
24799
|
return {
|
|
@@ -24804,11 +24816,11 @@ function Eb() {
|
|
|
24804
24816
|
]
|
|
24805
24817
|
};
|
|
24806
24818
|
}
|
|
24807
|
-
return
|
|
24819
|
+
return vr = t, vr;
|
|
24808
24820
|
}
|
|
24809
|
-
var
|
|
24821
|
+
var hr, Jl;
|
|
24810
24822
|
function gb() {
|
|
24811
|
-
if (Jl) return
|
|
24823
|
+
if (Jl) return hr;
|
|
24812
24824
|
Jl = 1;
|
|
24813
24825
|
function t(e) {
|
|
24814
24826
|
const n = /([A-Za-z_][A-Za-z_0-9]*)?/, r = {
|
|
@@ -24894,7 +24906,7 @@ function gb() {
|
|
|
24894
24906
|
]
|
|
24895
24907
|
};
|
|
24896
24908
|
}
|
|
24897
|
-
return
|
|
24909
|
+
return hr = t, hr;
|
|
24898
24910
|
}
|
|
24899
24911
|
var Or, jl;
|
|
24900
24912
|
function Sb() {
|
|
@@ -25698,7 +25710,7 @@ function Sb() {
|
|
|
25698
25710
|
"zoom"
|
|
25699
25711
|
].sort().reverse(), _ = o.concat(i).sort().reverse();
|
|
25700
25712
|
function c(l) {
|
|
25701
|
-
const u = t(l), m = _, p = "and or not only", E = "[\\w-]+", f = "(" + E + "|@\\{" + E + "\\})", C = [], I = [],
|
|
25713
|
+
const u = t(l), m = _, p = "and or not only", E = "[\\w-]+", f = "(" + E + "|@\\{" + E + "\\})", C = [], I = [], h = function(re) {
|
|
25702
25714
|
return {
|
|
25703
25715
|
// Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
|
|
25704
25716
|
className: "string",
|
|
@@ -25725,8 +25737,8 @@ function Sb() {
|
|
|
25725
25737
|
I.push(
|
|
25726
25738
|
l.C_LINE_COMMENT_MODE,
|
|
25727
25739
|
l.C_BLOCK_COMMENT_MODE,
|
|
25728
|
-
|
|
25729
|
-
|
|
25740
|
+
h("'"),
|
|
25741
|
+
h('"'),
|
|
25730
25742
|
u.CSS_NUMBER_MODE,
|
|
25731
25743
|
// fixme: it does not include dot for numbers like .5em :(
|
|
25732
25744
|
{
|
|
@@ -26391,7 +26403,7 @@ function fb() {
|
|
|
26391
26403
|
contains: ["self"].concat(C)
|
|
26392
26404
|
}
|
|
26393
26405
|
]
|
|
26394
|
-
},
|
|
26406
|
+
}, h = { begin: "(#=>|=>|\\|>>|-?->|!->)" }, b = {
|
|
26395
26407
|
variants: [
|
|
26396
26408
|
{ match: [
|
|
26397
26409
|
/class\s+/,
|
|
@@ -26418,7 +26430,7 @@ function fb() {
|
|
|
26418
26430
|
contains: C.concat([
|
|
26419
26431
|
s.COMMENT("\\/\\*", "\\*\\/"),
|
|
26420
26432
|
s.HASH_COMMENT_MODE,
|
|
26421
|
-
|
|
26433
|
+
h,
|
|
26422
26434
|
// relevance booster
|
|
26423
26435
|
{
|
|
26424
26436
|
className: "function",
|
|
@@ -26666,7 +26678,7 @@ function Nb() {
|
|
|
26666
26678
|
return Lr = t, Lr;
|
|
26667
26679
|
}
|
|
26668
26680
|
var xr, oc;
|
|
26669
|
-
function
|
|
26681
|
+
function vb() {
|
|
26670
26682
|
if (oc) return xr;
|
|
26671
26683
|
oc = 1;
|
|
26672
26684
|
function t(e) {
|
|
@@ -26736,7 +26748,7 @@ function hb() {
|
|
|
26736
26748
|
return xr = t, xr;
|
|
26737
26749
|
}
|
|
26738
26750
|
var wr, sc;
|
|
26739
|
-
function
|
|
26751
|
+
function hb() {
|
|
26740
26752
|
if (sc) return wr;
|
|
26741
26753
|
sc = 1;
|
|
26742
26754
|
const t = [
|
|
@@ -34000,7 +34012,7 @@ function vb() {
|
|
|
34000
34012
|
] }, I = {
|
|
34001
34013
|
className: "named-character",
|
|
34002
34014
|
begin: /\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/
|
|
34003
|
-
},
|
|
34015
|
+
}, h = {
|
|
34004
34016
|
className: "operator",
|
|
34005
34017
|
relevance: 0,
|
|
34006
34018
|
begin: /[+\-*/,;.:@~=><&|_`'^?!%]+/
|
|
@@ -34045,7 +34057,7 @@ function vb() {
|
|
|
34045
34057
|
I,
|
|
34046
34058
|
n.QUOTE_STRING_MODE,
|
|
34047
34059
|
p,
|
|
34048
|
-
|
|
34060
|
+
h,
|
|
34049
34061
|
A
|
|
34050
34062
|
]
|
|
34051
34063
|
};
|
|
@@ -34683,22 +34695,22 @@ function Lb() {
|
|
|
34683
34695
|
// valid but infrequent and weird
|
|
34684
34696
|
/#/
|
|
34685
34697
|
// valid but infrequent and weird
|
|
34686
|
-
], p = (C, I,
|
|
34687
|
-
const b =
|
|
34698
|
+
], p = (C, I, h = "\\1") => {
|
|
34699
|
+
const b = h === "\\1" ? h : n.concat(h, I);
|
|
34688
34700
|
return n.concat(
|
|
34689
34701
|
n.concat("(?:", C, ")"),
|
|
34690
34702
|
I,
|
|
34691
34703
|
/(?:\\.|[^\\\/])*?/,
|
|
34692
34704
|
b,
|
|
34693
34705
|
/(?:\\.|[^\\\/])*?/,
|
|
34694
|
-
|
|
34706
|
+
h,
|
|
34695
34707
|
r
|
|
34696
34708
|
);
|
|
34697
|
-
}, E = (C, I,
|
|
34709
|
+
}, E = (C, I, h) => n.concat(
|
|
34698
34710
|
n.concat("(?:", C, ")"),
|
|
34699
34711
|
I,
|
|
34700
34712
|
/(?:\\.|[^\\\/])*?/,
|
|
34701
|
-
|
|
34713
|
+
h,
|
|
34702
34714
|
r
|
|
34703
34715
|
), f = [
|
|
34704
34716
|
c,
|
|
@@ -36187,7 +36199,7 @@ function Gb() {
|
|
|
36187
36199
|
}, I = {
|
|
36188
36200
|
scope: "char.escape",
|
|
36189
36201
|
match: /'''/
|
|
36190
|
-
},
|
|
36202
|
+
}, h = {
|
|
36191
36203
|
scope: "char.escape",
|
|
36192
36204
|
match: /\\(?!\$)./
|
|
36193
36205
|
}, b = {
|
|
@@ -36200,7 +36212,7 @@ function Gb() {
|
|
|
36200
36212
|
f,
|
|
36201
36213
|
C,
|
|
36202
36214
|
I,
|
|
36203
|
-
|
|
36215
|
+
h
|
|
36204
36216
|
]
|
|
36205
36217
|
},
|
|
36206
36218
|
{
|
|
@@ -36209,7 +36221,7 @@ function Gb() {
|
|
|
36209
36221
|
contains: [
|
|
36210
36222
|
E,
|
|
36211
36223
|
C,
|
|
36212
|
-
|
|
36224
|
+
h
|
|
36213
36225
|
]
|
|
36214
36226
|
}
|
|
36215
36227
|
]
|
|
@@ -36288,10 +36300,10 @@ function Yb() {
|
|
|
36288
36300
|
}
|
|
36289
36301
|
return Xr = t, Xr;
|
|
36290
36302
|
}
|
|
36291
|
-
var Zr,
|
|
36303
|
+
var Zr, vc;
|
|
36292
36304
|
function qb() {
|
|
36293
|
-
if (
|
|
36294
|
-
|
|
36305
|
+
if (vc) return Zr;
|
|
36306
|
+
vc = 1;
|
|
36295
36307
|
function t(e) {
|
|
36296
36308
|
const n = e.regex, a = [
|
|
36297
36309
|
"ADMINTOOLS",
|
|
@@ -36805,10 +36817,10 @@ function qb() {
|
|
|
36805
36817
|
}
|
|
36806
36818
|
return Zr = t, Zr;
|
|
36807
36819
|
}
|
|
36808
|
-
var Jr,
|
|
36820
|
+
var Jr, hc;
|
|
36809
36821
|
function zb() {
|
|
36810
|
-
if (
|
|
36811
|
-
|
|
36822
|
+
if (hc) return Jr;
|
|
36823
|
+
hc = 1;
|
|
36812
36824
|
function t(e) {
|
|
36813
36825
|
const n = {
|
|
36814
36826
|
className: "built_in",
|
|
@@ -37685,7 +37697,7 @@ function Xb() {
|
|
|
37685
37697
|
"false",
|
|
37686
37698
|
"null",
|
|
37687
37699
|
"true"
|
|
37688
|
-
],
|
|
37700
|
+
], h = [
|
|
37689
37701
|
// Magic constants:
|
|
37690
37702
|
// <https://www.php.net/manual/en/language.constants.predefined.php>
|
|
37691
37703
|
"__CLASS__",
|
|
@@ -37881,7 +37893,7 @@ function Xb() {
|
|
|
37881
37893
|
"static",
|
|
37882
37894
|
"stdClass"
|
|
37883
37895
|
], A = {
|
|
37884
|
-
keyword:
|
|
37896
|
+
keyword: h,
|
|
37885
37897
|
literal: ((ue) => {
|
|
37886
37898
|
const D = [];
|
|
37887
37899
|
return ue.forEach((G) => {
|
|
@@ -37978,7 +37990,7 @@ function Xb() {
|
|
|
37978
37990
|
match: [
|
|
37979
37991
|
/\b/,
|
|
37980
37992
|
// to prevent keywords from being confused as the function title
|
|
37981
|
-
n.concat("(?!fn\\b|function\\b|", M(
|
|
37993
|
+
n.concat("(?!fn\\b|function\\b|", M(h).join("\\b|"), "|", M(b).join("\\b|"), "\\b)"),
|
|
37982
37994
|
r,
|
|
37983
37995
|
n.concat(E, "*"),
|
|
37984
37996
|
n.lookahead(/(?=\()/)
|
|
@@ -38444,7 +38456,7 @@ function ef() {
|
|
|
38444
38456
|
begin: /(using|assembly|command|module|namespace|type)/
|
|
38445
38457
|
}
|
|
38446
38458
|
]
|
|
38447
|
-
},
|
|
38459
|
+
}, h = { variants: [
|
|
38448
38460
|
// PS literals are pretty verbose so it's a good idea to accent them a bit.
|
|
38449
38461
|
{
|
|
38450
38462
|
className: "operator",
|
|
@@ -38527,7 +38539,7 @@ function ef() {
|
|
|
38527
38539
|
f,
|
|
38528
38540
|
C,
|
|
38529
38541
|
I,
|
|
38530
|
-
|
|
38542
|
+
h,
|
|
38531
38543
|
M
|
|
38532
38544
|
)
|
|
38533
38545
|
};
|
|
@@ -39657,7 +39669,7 @@ function cf() {
|
|
|
39657
39669
|
endsWithParent: !0
|
|
39658
39670
|
}
|
|
39659
39671
|
]
|
|
39660
|
-
},
|
|
39672
|
+
}, h = {
|
|
39661
39673
|
className: "params",
|
|
39662
39674
|
variants: [
|
|
39663
39675
|
// Exclude params in functions without params
|
|
@@ -39724,7 +39736,7 @@ function cf() {
|
|
|
39724
39736
|
1: "keyword",
|
|
39725
39737
|
3: "title.function"
|
|
39726
39738
|
},
|
|
39727
|
-
contains: [
|
|
39739
|
+
contains: [h]
|
|
39728
39740
|
},
|
|
39729
39741
|
{
|
|
39730
39742
|
variants: [
|
|
@@ -39759,7 +39771,7 @@ function cf() {
|
|
|
39759
39771
|
end: /(?=#)|$/,
|
|
39760
39772
|
contains: [
|
|
39761
39773
|
C,
|
|
39762
|
-
|
|
39774
|
+
h,
|
|
39763
39775
|
m
|
|
39764
39776
|
]
|
|
39765
39777
|
}
|
|
@@ -40340,9 +40352,9 @@ function Ef() {
|
|
|
40340
40352
|
}
|
|
40341
40353
|
return Ni = t, Ni;
|
|
40342
40354
|
}
|
|
40343
|
-
var
|
|
40355
|
+
var vi, Zc;
|
|
40344
40356
|
function gf() {
|
|
40345
|
-
if (Zc) return
|
|
40357
|
+
if (Zc) return vi;
|
|
40346
40358
|
Zc = 1;
|
|
40347
40359
|
function t(e) {
|
|
40348
40360
|
const n = "[a-zA-Z-_][^\\n{]+\\{", a = {
|
|
@@ -40410,11 +40422,11 @@ function gf() {
|
|
|
40410
40422
|
]
|
|
40411
40423
|
};
|
|
40412
40424
|
}
|
|
40413
|
-
return
|
|
40425
|
+
return vi = t, vi;
|
|
40414
40426
|
}
|
|
40415
|
-
var
|
|
40427
|
+
var hi, Jc;
|
|
40416
40428
|
function Sf() {
|
|
40417
|
-
if (Jc) return
|
|
40429
|
+
if (Jc) return hi;
|
|
40418
40430
|
Jc = 1;
|
|
40419
40431
|
function t(e) {
|
|
40420
40432
|
const n = "foreach do while for if from to step else on-error and or not in", a = "global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime", r = "add remove enable disable set get print export edit find run debug error info warning", o = "true false yes no nothing nil null", i = "traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw", s = {
|
|
@@ -40553,7 +40565,7 @@ function Sf() {
|
|
|
40553
40565
|
]
|
|
40554
40566
|
};
|
|
40555
40567
|
}
|
|
40556
|
-
return
|
|
40568
|
+
return hi = t, hi;
|
|
40557
40569
|
}
|
|
40558
40570
|
var Oi, jc;
|
|
40559
40571
|
function Tf() {
|
|
@@ -41888,7 +41900,7 @@ function Nf() {
|
|
|
41888
41900
|
return Mi = t, Mi;
|
|
41889
41901
|
}
|
|
41890
41902
|
var Li, i_;
|
|
41891
|
-
function
|
|
41903
|
+
function vf() {
|
|
41892
41904
|
if (i_) return Li;
|
|
41893
41905
|
i_ = 1;
|
|
41894
41906
|
function t(e) {
|
|
@@ -41950,7 +41962,7 @@ function hf() {
|
|
|
41950
41962
|
return Li = t, Li;
|
|
41951
41963
|
}
|
|
41952
41964
|
var xi, o_;
|
|
41953
|
-
function
|
|
41965
|
+
function hf() {
|
|
41954
41966
|
if (o_) return xi;
|
|
41955
41967
|
o_ = 1;
|
|
41956
41968
|
const t = (c) => ({
|
|
@@ -46315,7 +46327,7 @@ function Mf() {
|
|
|
46315
46327
|
scope: "operator",
|
|
46316
46328
|
match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
46317
46329
|
relevance: 0
|
|
46318
|
-
},
|
|
46330
|
+
}, h = {
|
|
46319
46331
|
match: n.concat(/\b/, n.either(...E), /\s*\(/),
|
|
46320
46332
|
relevance: 0,
|
|
46321
46333
|
keywords: { built_in: E }
|
|
@@ -46357,7 +46369,7 @@ function Mf() {
|
|
|
46357
46369
|
match: b(s)
|
|
46358
46370
|
},
|
|
46359
46371
|
T,
|
|
46360
|
-
|
|
46372
|
+
h,
|
|
46361
46373
|
C,
|
|
46362
46374
|
r,
|
|
46363
46375
|
o,
|
|
@@ -48248,11 +48260,11 @@ function Uf() {
|
|
|
48248
48260
|
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
|
48249
48261
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
48250
48262
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
48251
|
-
),
|
|
48263
|
+
), h = r(
|
|
48252
48264
|
I,
|
|
48253
48265
|
/\d/,
|
|
48254
48266
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
48255
|
-
), b = n(I,
|
|
48267
|
+
), b = n(I, h, "*"), T = n(/[A-Z]/, h, "*"), A = [
|
|
48256
48268
|
"attached",
|
|
48257
48269
|
"autoclosure",
|
|
48258
48270
|
n(/convention\(/, r("swift", "block", "c"), /\)/),
|
|
@@ -48461,7 +48473,7 @@ function Uf() {
|
|
|
48461
48473
|
match: /\$\d+/
|
|
48462
48474
|
}, pe = {
|
|
48463
48475
|
className: "variable",
|
|
48464
|
-
match: `\\$${
|
|
48476
|
+
match: `\\$${h}+`
|
|
48465
48477
|
}, ie = [
|
|
48466
48478
|
H,
|
|
48467
48479
|
$e,
|
|
@@ -48498,7 +48510,7 @@ function Uf() {
|
|
|
48498
48510
|
{
|
|
48499
48511
|
// Common Apple frameworks, for relevance boost
|
|
48500
48512
|
className: "type",
|
|
48501
|
-
match: n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,
|
|
48513
|
+
match: n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, h, "+")
|
|
48502
48514
|
},
|
|
48503
48515
|
{
|
|
48504
48516
|
// Type identifier
|
|
@@ -48988,8 +49000,8 @@ function Bf() {
|
|
|
48988
49000
|
C,
|
|
48989
49001
|
i,
|
|
48990
49002
|
s
|
|
48991
|
-
],
|
|
48992
|
-
return
|
|
49003
|
+
], h = [...I];
|
|
49004
|
+
return h.pop(), h.push(_), E.contains = h, {
|
|
48993
49005
|
name: "YAML",
|
|
48994
49006
|
case_insensitive: !0,
|
|
48995
49007
|
aliases: ["yml"],
|
|
@@ -49295,10 +49307,10 @@ function qf() {
|
|
|
49295
49307
|
}
|
|
49296
49308
|
return Xi = t, Xi;
|
|
49297
49309
|
}
|
|
49298
|
-
var Zi,
|
|
49310
|
+
var Zi, v_;
|
|
49299
49311
|
function zf() {
|
|
49300
|
-
if (
|
|
49301
|
-
|
|
49312
|
+
if (v_) return Zi;
|
|
49313
|
+
v_ = 1;
|
|
49302
49314
|
function t(e) {
|
|
49303
49315
|
const n = {
|
|
49304
49316
|
className: "number",
|
|
@@ -49458,10 +49470,10 @@ function zf() {
|
|
|
49458
49470
|
}
|
|
49459
49471
|
return Zi = t, Zi;
|
|
49460
49472
|
}
|
|
49461
|
-
var Ji,
|
|
49473
|
+
var Ji, h_;
|
|
49462
49474
|
function Hf() {
|
|
49463
|
-
if (
|
|
49464
|
-
|
|
49475
|
+
if (h_) return Ji;
|
|
49476
|
+
h_ = 1;
|
|
49465
49477
|
function t(e) {
|
|
49466
49478
|
const n = e.regex, a = [
|
|
49467
49479
|
"absolute_url",
|
|
@@ -49884,11 +49896,11 @@ function Vf() {
|
|
|
49884
49896
|
literal: n,
|
|
49885
49897
|
built_in: s,
|
|
49886
49898
|
"variable.language": i
|
|
49887
|
-
},
|
|
49899
|
+
}, h = "[0-9](_?[0-9])*", b = `\\.(${h})`, T = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
|
|
49888
49900
|
className: "number",
|
|
49889
49901
|
variants: [
|
|
49890
49902
|
// DecimalLiteral
|
|
49891
|
-
{ begin: `(\\b(${T})((${b})|\\.)?|(${b}))[eE][+-]?(${
|
|
49903
|
+
{ begin: `(\\b(${T})((${b})|\\.)?|(${b}))[eE][+-]?(${h})\\b` },
|
|
49892
49904
|
{ begin: `\\b(${T})\\b((${b})\\b|\\.)?|(${b})\\b` },
|
|
49893
49905
|
// DecimalBigIntegerLiteral
|
|
49894
49906
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
@@ -50383,7 +50395,7 @@ function Vf() {
|
|
|
50383
50395
|
className: "meta",
|
|
50384
50396
|
relevance: 10,
|
|
50385
50397
|
begin: /^\s*['"]use strict['"]/
|
|
50386
|
-
},
|
|
50398
|
+
}, h = [
|
|
50387
50399
|
"type",
|
|
50388
50400
|
// "namespace",
|
|
50389
50401
|
"interface",
|
|
@@ -50399,7 +50411,7 @@ function Vf() {
|
|
|
50399
50411
|
"satisfies"
|
|
50400
50412
|
], b = {
|
|
50401
50413
|
$pattern: t,
|
|
50402
|
-
keyword: e.concat(
|
|
50414
|
+
keyword: e.concat(h),
|
|
50403
50415
|
literal: n,
|
|
50404
50416
|
built_in: s.concat(E),
|
|
50405
50417
|
"variable.language": i
|
|
@@ -51905,7 +51917,7 @@ function eR() {
|
|
|
51905
51917
|
match: /\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,
|
|
51906
51918
|
scope: "title.class",
|
|
51907
51919
|
keywords: { _: s }
|
|
51908
|
-
}, I = e.C_NUMBER_MODE,
|
|
51920
|
+
}, I = e.C_NUMBER_MODE, h = {
|
|
51909
51921
|
match: [
|
|
51910
51922
|
a,
|
|
51911
51923
|
/\s*/,
|
|
@@ -52020,7 +52032,7 @@ function eR() {
|
|
|
52020
52032
|
e.C_BLOCK_COMMENT_MODE,
|
|
52021
52033
|
C,
|
|
52022
52034
|
u,
|
|
52023
|
-
|
|
52035
|
+
h,
|
|
52024
52036
|
l,
|
|
52025
52037
|
c,
|
|
52026
52038
|
m,
|
|
@@ -52783,8 +52795,8 @@ N.registerLanguage("dns", fT());
|
|
|
52783
52795
|
N.registerLanguage("dockerfile", RT());
|
|
52784
52796
|
N.registerLanguage("dos", CT());
|
|
52785
52797
|
N.registerLanguage("dsconfig", NT());
|
|
52786
|
-
N.registerLanguage("dts",
|
|
52787
|
-
N.registerLanguage("dust",
|
|
52798
|
+
N.registerLanguage("dts", vT());
|
|
52799
|
+
N.registerLanguage("dust", hT());
|
|
52788
52800
|
N.registerLanguage("ebnf", OT());
|
|
52789
52801
|
N.registerLanguage("elixir", AT());
|
|
52790
52802
|
N.registerLanguage("elm", yT());
|
|
@@ -52837,8 +52849,8 @@ N.registerLanguage("livescript", fb());
|
|
|
52837
52849
|
N.registerLanguage("llvm", Rb());
|
|
52838
52850
|
N.registerLanguage("lsl", Cb());
|
|
52839
52851
|
N.registerLanguage("lua", Nb());
|
|
52840
|
-
N.registerLanguage("makefile",
|
|
52841
|
-
N.registerLanguage("mathematica",
|
|
52852
|
+
N.registerLanguage("makefile", vb());
|
|
52853
|
+
N.registerLanguage("mathematica", hb());
|
|
52842
52854
|
N.registerLanguage("matlab", Ob());
|
|
52843
52855
|
N.registerLanguage("maxima", Ab());
|
|
52844
52856
|
N.registerLanguage("mel", yb());
|
|
@@ -52890,8 +52902,8 @@ N.registerLanguage("rust", ff());
|
|
|
52890
52902
|
N.registerLanguage("sas", Rf());
|
|
52891
52903
|
N.registerLanguage("scala", Cf());
|
|
52892
52904
|
N.registerLanguage("scheme", Nf());
|
|
52893
|
-
N.registerLanguage("scilab",
|
|
52894
|
-
N.registerLanguage("scss",
|
|
52905
|
+
N.registerLanguage("scilab", vf());
|
|
52906
|
+
N.registerLanguage("scss", hf());
|
|
52895
52907
|
N.registerLanguage("shell", Of());
|
|
52896
52908
|
N.registerLanguage("smali", Af());
|
|
52897
52909
|
N.registerLanguage("smalltalk", yf());
|
|
@@ -52942,7 +52954,7 @@ let {
|
|
|
52942
52954
|
seal: Et,
|
|
52943
52955
|
create: Wt
|
|
52944
52956
|
} = Object, {
|
|
52945
|
-
apply:
|
|
52957
|
+
apply: ho,
|
|
52946
52958
|
construct: Oo
|
|
52947
52959
|
} = typeof Reflect < "u" && Reflect;
|
|
52948
52960
|
je || (je = function(e) {
|
|
@@ -52951,7 +52963,7 @@ je || (je = function(e) {
|
|
|
52951
52963
|
Et || (Et = function(e) {
|
|
52952
52964
|
return e;
|
|
52953
52965
|
});
|
|
52954
|
-
|
|
52966
|
+
ho || (ho = function(e, n) {
|
|
52955
52967
|
for (var a = arguments.length, r = new Array(a > 2 ? a - 2 : 0), o = 2; o < a; o++)
|
|
52956
52968
|
r[o - 2] = arguments[o];
|
|
52957
52969
|
return e.apply(n, r);
|
|
@@ -52967,7 +52979,7 @@ function ke(t) {
|
|
|
52967
52979
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
52968
52980
|
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
52969
52981
|
a[r - 1] = arguments[r];
|
|
52970
|
-
return
|
|
52982
|
+
return ho(t, e, a);
|
|
52971
52983
|
};
|
|
52972
52984
|
}
|
|
52973
52985
|
function mR(t) {
|
|
@@ -53055,23 +53067,23 @@ function SR(t) {
|
|
|
53055
53067
|
return !1;
|
|
53056
53068
|
}
|
|
53057
53069
|
}
|
|
53058
|
-
const W_ = je(["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"]), go = je(["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"]), So = je(["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"]), TR = je(["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"]), To = je(["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"]), bR = je(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $_ = je(["#text"]), K_ = je(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "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"]), bo = je(["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"]), Q_ = je(["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"]), bn = je(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), fR = Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm), RR = Et(/<%[\w\W]*|[\w\W]*%>/gm), CR = Et(/\$\{[\w\W]*/gm), NR = Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),
|
|
53070
|
+
const W_ = je(["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"]), go = je(["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"]), So = je(["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"]), TR = je(["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"]), To = je(["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"]), bR = je(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $_ = je(["#text"]), K_ = je(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "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"]), bo = je(["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"]), Q_ = je(["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"]), bn = je(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), fR = Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm), RR = Et(/<%[\w\W]*|[\w\W]*%>/gm), CR = Et(/\$\{[\w\W]*/gm), NR = Et(/^data-[\-\w.\u00B7-\uFFFF]+$/), vR = Et(/^aria-[\-\w]+$/), Cd = Et(
|
|
53059
53071
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
53060
53072
|
// eslint-disable-line no-useless-escape
|
|
53061
|
-
),
|
|
53073
|
+
), hR = Et(/^(?:\w+script|data):/i), OR = Et(
|
|
53062
53074
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
53063
53075
|
// eslint-disable-line no-control-regex
|
|
53064
53076
|
), Nd = Et(/^html$/i), AR = Et(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
53065
53077
|
var X_ = /* @__PURE__ */ Object.freeze({
|
|
53066
53078
|
__proto__: null,
|
|
53067
|
-
ARIA_ATTR:
|
|
53079
|
+
ARIA_ATTR: vR,
|
|
53068
53080
|
ATTR_WHITESPACE: OR,
|
|
53069
53081
|
CUSTOM_ELEMENT: AR,
|
|
53070
53082
|
DATA_ATTR: NR,
|
|
53071
53083
|
DOCTYPE_NAME: Nd,
|
|
53072
53084
|
ERB_EXPR: RR,
|
|
53073
53085
|
IS_ALLOWED_URI: Cd,
|
|
53074
|
-
IS_SCRIPT_OR_DATA:
|
|
53086
|
+
IS_SCRIPT_OR_DATA: hR,
|
|
53075
53087
|
MUSTACHE_EXPR: fR,
|
|
53076
53088
|
TMPLIT_EXPR: CR
|
|
53077
53089
|
});
|
|
@@ -53116,9 +53128,9 @@ const sn = {
|
|
|
53116
53128
|
uponSanitizeShadowNode: []
|
|
53117
53129
|
};
|
|
53118
53130
|
};
|
|
53119
|
-
function
|
|
53131
|
+
function vd() {
|
|
53120
53132
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yR();
|
|
53121
|
-
const e = (X) =>
|
|
53133
|
+
const e = (X) => vd(X);
|
|
53122
53134
|
if (e.version = "3.4.2", e.removed = [], !t || !t.document || t.document.nodeType !== sn.document || !t.Element)
|
|
53123
53135
|
return e.isSupported = !1, e;
|
|
53124
53136
|
let {
|
|
@@ -53134,7 +53146,7 @@ function hd() {
|
|
|
53134
53146
|
HTMLFormElement: u,
|
|
53135
53147
|
DOMParser: m,
|
|
53136
53148
|
trustedTypes: p
|
|
53137
|
-
} = t, E = _.prototype, f = $t(E, "cloneNode"), C = $t(E, "remove"), I = $t(E, "nextSibling"),
|
|
53149
|
+
} = t, E = _.prototype, f = $t(E, "cloneNode"), C = $t(E, "remove"), I = $t(E, "nextSibling"), h = $t(E, "childNodes"), b = $t(E, "parentNode");
|
|
53138
53150
|
if (typeof i == "function") {
|
|
53139
53151
|
const X = n.createElement("template");
|
|
53140
53152
|
X.content && X.content.ownerDocument && (n = X.content.ownerDocument);
|
|
@@ -53214,12 +53226,12 @@ function hd() {
|
|
|
53214
53226
|
const pt = ae({}, ["title", "style", "font", "a", "script"]);
|
|
53215
53227
|
let St = null;
|
|
53216
53228
|
const wt = ["application/xhtml+xml", "text/html"], qt = "text/html";
|
|
53217
|
-
let xe = null,
|
|
53229
|
+
let xe = null, ve = null;
|
|
53218
53230
|
const Qe = n.createElement("form"), yt = function(S) {
|
|
53219
53231
|
return S instanceof RegExp || S instanceof Function;
|
|
53220
53232
|
}, Tt = function() {
|
|
53221
53233
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
53222
|
-
if (
|
|
53234
|
+
if (ve && ve === S)
|
|
53223
53235
|
return;
|
|
53224
53236
|
(!S || typeof S != "object") && (S = {}), S = rt(S), St = // eslint-disable-next-line unicorn/prefer-includes
|
|
53225
53237
|
wt.indexOf(S.PARSER_MEDIA_TYPE) === -1 ? qt : S.PARSER_MEDIA_TYPE, xe = St === "application/xhtml+xml" ? Eo : cn, j = we(S, "ALLOWED_TAGS") && Ze(S.ALLOWED_TAGS) ? ae({}, S.ALLOWED_TAGS, xe) : Ae, le = we(S, "ALLOWED_ATTR") && Ze(S.ALLOWED_ATTR) ? ae({}, S.ALLOWED_ATTR, xe) : ge, Nt = we(S, "ALLOWED_NAMESPACES") && Ze(S.ALLOWED_NAMESPACES) ? ae({}, S.ALLOWED_NAMESPACES, Eo) : _t, Ye = we(S, "ADD_URI_SAFE_ATTR") && Ze(S.ADD_URI_SAFE_ATTR) ? ae(rt(Ct), S.ADD_URI_SAFE_ATTR, xe) : Ct, ee = we(S, "ADD_DATA_URI_TAGS") && Ze(S.ADD_DATA_URI_TAGS) ? ae(rt(me), S.ADD_DATA_URI_TAGS, xe) : me, q = we(S, "FORBID_CONTENTS") && Ze(S.FORBID_CONTENTS) ? ae({}, S.FORBID_CONTENTS, xe) : Z, be = we(S, "FORBID_TAGS") && Ze(S.FORBID_TAGS) ? ae({}, S.FORBID_TAGS, xe) : rt({}), se = we(S, "FORBID_ATTR") && Ze(S.FORBID_ATTR) ? ae({}, S.FORBID_ATTR, xe) : rt({}), B = we(S, "USE_PROFILES") ? S.USE_PROFILES && typeof S.USE_PROFILES == "object" ? rt(S.USE_PROFILES) : S.USE_PROFILES : !1, Se = S.ALLOW_ARIA_ATTR !== !1, fe = S.ALLOW_DATA_ATTR !== !1, ye = S.ALLOW_UNKNOWN_PROTOCOLS || !1, Re = S.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = S.SAFE_FOR_TEMPLATES || !1, Be = S.SAFE_FOR_XML !== !1, Le = S.WHOLE_DOCUMENT || !1, H = S.RETURN_DOM || !1, $e = S.RETURN_DOM_FRAGMENT || !1, pe = S.RETURN_TRUSTED_TYPE || !1, ot = S.FORCE_BODY || !1, ie = S.SANITIZE_DOM !== !1, st = S.SANITIZE_NAMED_PROPS || !1, et = S.KEEP_CONTENT !== !1, Ge = S.IN_PLACE || !1, _e = SR(S.ALLOWED_URI_REGEXP) ? S.ALLOWED_URI_REGEXP : Cd, Xe = typeof S.NAMESPACE == "string" ? S.NAMESPACE : qe, oe = we(S, "MATHML_TEXT_INTEGRATION_POINTS") && S.MATHML_TEXT_INTEGRATION_POINTS && typeof S.MATHML_TEXT_INTEGRATION_POINTS == "object" ? rt(S.MATHML_TEXT_INTEGRATION_POINTS) : ae({}, ["mi", "mo", "mn", "ms", "mtext"]), dt = we(S, "HTML_INTEGRATION_POINTS") && S.HTML_INTEGRATION_POINTS && typeof S.HTML_INTEGRATION_POINTS == "object" ? rt(S.HTML_INTEGRATION_POINTS) : ae({}, ["annotation-xml"]);
|
|
@@ -53232,15 +53244,15 @@ function hd() {
|
|
|
53232
53244
|
T = S.TRUSTED_TYPES_POLICY, A = T.createHTML("");
|
|
53233
53245
|
} else
|
|
53234
53246
|
T === void 0 && (T = IR(p, r)), T !== null && typeof A == "string" && (A = T.createHTML(""));
|
|
53235
|
-
je && je(S),
|
|
53236
|
-
},
|
|
53247
|
+
je && je(S), ve = S;
|
|
53248
|
+
}, vt = ae({}, [...go, ...So, ...TR]), bt = ae({}, [...To, ...bR]), Dt = function(S) {
|
|
53237
53249
|
let x = b(S);
|
|
53238
53250
|
(!x || !x.tagName) && (x = {
|
|
53239
53251
|
namespaceURI: Xe,
|
|
53240
53252
|
tagName: "template"
|
|
53241
53253
|
});
|
|
53242
53254
|
const z = cn(S.tagName), O = cn(x.tagName);
|
|
53243
|
-
return Nt[S.namespaceURI] ? S.namespaceURI === ct ? x.namespaceURI === qe ? z === "svg" : x.namespaceURI === lt ? z === "svg" && (O === "annotation-xml" || oe[O]) : !!
|
|
53255
|
+
return Nt[S.namespaceURI] ? S.namespaceURI === ct ? x.namespaceURI === qe ? z === "svg" : x.namespaceURI === lt ? z === "svg" && (O === "annotation-xml" || oe[O]) : !!vt[z] : S.namespaceURI === lt ? x.namespaceURI === qe ? z === "math" : x.namespaceURI === ct ? z === "math" && dt[O] : !!bt[z] : S.namespaceURI === qe ? x.namespaceURI === ct && !dt[O] || x.namespaceURI === lt && !oe[O] ? !1 : !bt[z] && (pt[z] || !vt[z]) : !!(St === "application/xhtml+xml" && Nt[S.namespaceURI]) : !1;
|
|
53244
53256
|
}, He = function(S) {
|
|
53245
53257
|
rn(e.removed, {
|
|
53246
53258
|
element: S
|
|
@@ -53295,9 +53307,9 @@ function hd() {
|
|
|
53295
53307
|
} catch {
|
|
53296
53308
|
}
|
|
53297
53309
|
}
|
|
53298
|
-
const
|
|
53299
|
-
return S && z &&
|
|
53300
|
-
},
|
|
53310
|
+
const v = x.body || x.documentElement;
|
|
53311
|
+
return S && z && v.insertBefore(n.createTextNode(z), v.childNodes[0] || null), Xe === qe ? F.call(x, Le ? "html" : "body")[0] : Le ? x.documentElement : v;
|
|
53312
|
+
}, ht = function(S) {
|
|
53301
53313
|
return Y.call(
|
|
53302
53314
|
S.ownerDocument || S,
|
|
53303
53315
|
S,
|
|
@@ -53312,7 +53324,7 @@ function hd() {
|
|
|
53312
53324
|
};
|
|
53313
53325
|
function at(X, S, x) {
|
|
53314
53326
|
an(X, (z) => {
|
|
53315
|
-
z.call(e, S, x,
|
|
53327
|
+
z.call(e, S, x, ve);
|
|
53316
53328
|
});
|
|
53317
53329
|
}
|
|
53318
53330
|
const Zt = function(S) {
|
|
@@ -53329,11 +53341,11 @@ function hd() {
|
|
|
53329
53341
|
if (!be[z] && jt(z) && ($.tagNameCheck instanceof RegExp && We($.tagNameCheck, z) || $.tagNameCheck instanceof Function && $.tagNameCheck(z)))
|
|
53330
53342
|
return !1;
|
|
53331
53343
|
if (et && !q[z]) {
|
|
53332
|
-
const O = b(S) || S.parentNode,
|
|
53333
|
-
if (
|
|
53334
|
-
const P =
|
|
53344
|
+
const O = b(S) || S.parentNode, v = h(S) || S.childNodes;
|
|
53345
|
+
if (v && O) {
|
|
53346
|
+
const P = v.length;
|
|
53335
53347
|
for (let ce = P - 1; ce >= 0; --ce) {
|
|
53336
|
-
const Ve = f(
|
|
53348
|
+
const Ve = f(v[ce], !0);
|
|
53337
53349
|
O.insertBefore(Ve, I(S));
|
|
53338
53350
|
}
|
|
53339
53351
|
}
|
|
@@ -53391,11 +53403,11 @@ function hd() {
|
|
|
53391
53403
|
};
|
|
53392
53404
|
let O = x.length;
|
|
53393
53405
|
for (; O--; ) {
|
|
53394
|
-
const
|
|
53406
|
+
const v = x[O], {
|
|
53395
53407
|
name: P,
|
|
53396
53408
|
namespaceURI: ce,
|
|
53397
53409
|
value: Ve
|
|
53398
|
-
} =
|
|
53410
|
+
} = v, mt = xe(P), mn = Ve;
|
|
53399
53411
|
let Pe = P === "value" ? mn : dR(mn);
|
|
53400
53412
|
if (z.attrName = mt, z.attrValue = Pe, z.keepAttr = !0, z.forceKeepAttr = void 0, at(L.uponSanitizeAttribute, S, z), Pe = z.attrValue, st && (mt === "id" || mt === "name") && z_(Pe, Ke) !== 0 && (tt(P, S), Pe = Ke + Pe), Be && We(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Pe)) {
|
|
53401
53413
|
tt(P, S);
|
|
@@ -53444,13 +53456,13 @@ function hd() {
|
|
|
53444
53456
|
at(L.afterSanitizeAttributes, S, null);
|
|
53445
53457
|
}, tn = function(S) {
|
|
53446
53458
|
let x = null;
|
|
53447
|
-
const z =
|
|
53459
|
+
const z = ht(S);
|
|
53448
53460
|
for (at(L.beforeSanitizeShadowDOM, S, null); x = z.nextNode(); )
|
|
53449
53461
|
at(L.uponSanitizeShadowNode, x, null), Zt(x), en(x), x.content instanceof o && tn(x.content);
|
|
53450
53462
|
at(L.afterSanitizeShadowDOM, S, null);
|
|
53451
53463
|
};
|
|
53452
53464
|
return e.sanitize = function(X) {
|
|
53453
|
-
let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, z = null, O = null,
|
|
53465
|
+
let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, z = null, O = null, v = null;
|
|
53454
53466
|
if (gt = !X, gt && (X = "<!-->"), typeof X != "string" && !nt(X) && (X = gR(X), typeof X != "string"))
|
|
53455
53467
|
throw Tn("dirty is not a string, aborting");
|
|
53456
53468
|
if (!e.isSupported)
|
|
@@ -53472,7 +53484,7 @@ function hd() {
|
|
|
53472
53484
|
return H ? null : pe ? A : "";
|
|
53473
53485
|
}
|
|
53474
53486
|
x && ot && He(x.firstChild);
|
|
53475
|
-
const P =
|
|
53487
|
+
const P = ht(Ge ? X : x);
|
|
53476
53488
|
for (; O = P.nextNode(); )
|
|
53477
53489
|
Zt(O), en(O), O.content instanceof o && tn(O.content);
|
|
53478
53490
|
if (Ge)
|
|
@@ -53486,11 +53498,11 @@ function hd() {
|
|
|
53486
53498
|
}), x.innerHTML = Ve;
|
|
53487
53499
|
}
|
|
53488
53500
|
if ($e)
|
|
53489
|
-
for (
|
|
53490
|
-
|
|
53501
|
+
for (v = U.call(x.ownerDocument); x.firstChild; )
|
|
53502
|
+
v.appendChild(x.firstChild);
|
|
53491
53503
|
else
|
|
53492
|
-
|
|
53493
|
-
return (le.shadowroot || le.shadowrootmode) && (
|
|
53504
|
+
v = x;
|
|
53505
|
+
return (le.shadowroot || le.shadowrootmode) && (v = k.call(a, v, !0)), v;
|
|
53494
53506
|
}
|
|
53495
53507
|
let ce = Le ? x.outerHTML : x.innerHTML;
|
|
53496
53508
|
return Le && j["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && We(Nd, x.ownerDocument.doctype.name) && (ce = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
|
|
@@ -53501,9 +53513,9 @@ function hd() {
|
|
|
53501
53513
|
let X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
53502
53514
|
Tt(X), ut = !0;
|
|
53503
53515
|
}, e.clearConfig = function() {
|
|
53504
|
-
|
|
53516
|
+
ve = null, ut = !1;
|
|
53505
53517
|
}, e.isValidAttribute = function(X, S, x) {
|
|
53506
|
-
|
|
53518
|
+
ve || Tt({});
|
|
53507
53519
|
const z = xe(X), O = xe(S);
|
|
53508
53520
|
return Jt(z, O, x);
|
|
53509
53521
|
}, e.addHook = function(X, S) {
|
|
@@ -53520,7 +53532,7 @@ function hd() {
|
|
|
53520
53532
|
L = Z_();
|
|
53521
53533
|
}, e;
|
|
53522
53534
|
}
|
|
53523
|
-
var DR =
|
|
53535
|
+
var DR = vd();
|
|
53524
53536
|
const MR = { class: "message-actions" }, LR = ["title"], xR = {
|
|
53525
53537
|
key: 0,
|
|
53526
53538
|
class: "action-icon",
|
|
@@ -53689,11 +53701,18 @@ ${u.content}`).join(`
|
|
|
53689
53701
|
])) : w("", !0)
|
|
53690
53702
|
]));
|
|
53691
53703
|
}
|
|
53692
|
-
}),
|
|
53704
|
+
}), hd = /* @__PURE__ */ Fe(YR, [["__scopeId", "data-v-519341e8"]]), qR = {
|
|
53693
53705
|
claude: "Claude",
|
|
53694
53706
|
codex: "Codex",
|
|
53695
|
-
|
|
53696
|
-
opencode: "OpenCode"
|
|
53707
|
+
antigravity: "Antigravity",
|
|
53708
|
+
opencode: "OpenCode",
|
|
53709
|
+
deepseek: "DeepSeek",
|
|
53710
|
+
goose: "Goose",
|
|
53711
|
+
aider: "Aider",
|
|
53712
|
+
crush: "Crush",
|
|
53713
|
+
openai_compat: "OpenAI-compatible",
|
|
53714
|
+
openrouter: "OpenRouter",
|
|
53715
|
+
kimi: "Kimi"
|
|
53697
53716
|
};
|
|
53698
53717
|
function Go(t) {
|
|
53699
53718
|
return !t || t === "auto" ? "" : qR[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -53793,13 +53812,13 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
53793
53812
|
innerHTML: a.value
|
|
53794
53813
|
}, null, 8, jR)
|
|
53795
53814
|
]),
|
|
53796
|
-
t.showActions ? (g(), ze(
|
|
53815
|
+
t.showActions ? (g(), ze(hd, $d({
|
|
53797
53816
|
key: 0,
|
|
53798
53817
|
content: t.content
|
|
53799
53818
|
}, t.allMessages !== void 0 ? { allMessages: t.allMessages } : {}), null, 16, ["content"])) : w("", !0)
|
|
53800
53819
|
], 2));
|
|
53801
53820
|
}
|
|
53802
|
-
}), An = /* @__PURE__ */ Fe(eC, [["__scopeId", "data-v-
|
|
53821
|
+
}), An = /* @__PURE__ */ Fe(eC, [["__scopeId", "data-v-fe84dfc8"]]), tC = { class: "aia-controls" }, nC = { class: "aia-controls__group" }, aC = ["value"], rC = ["value"], iC = { class: "aia-controls__group" }, oC = ["disabled", "value"], sC = { value: "" }, lC = ["value"], cC = { class: "aia-controls__group" }, _C = ["disabled", "value"], dC = { value: "" }, uC = ["value"], pC = { class: "aia-controls__group aia-controls__group--mode" }, mC = { class: "aia-controls__modes" }, EC = ["onClick"], gC = /* @__PURE__ */ Ue({
|
|
53803
53822
|
__name: "ChatControls",
|
|
53804
53823
|
props: {
|
|
53805
53824
|
chatMode: {},
|
|
@@ -53922,7 +53941,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
53922
53941
|
}, y(t.isStreaming ? "..." : "Send"), 9, fC)
|
|
53923
53942
|
]));
|
|
53924
53943
|
}
|
|
53925
|
-
}), CC = /* @__PURE__ */ Fe(RC, [["__scopeId", "data-v-51976e76"]]), NC = { class: "aia-responses" },
|
|
53944
|
+
}), CC = /* @__PURE__ */ Fe(RC, [["__scopeId", "data-v-51976e76"]]), NC = { class: "aia-responses" }, vC = { class: "aia-responses__summary-count" }, hC = ["open"], OC = { class: "aia-resp__header" }, AC = {
|
|
53926
53945
|
key: 0,
|
|
53927
53946
|
class: "aia-resp__account"
|
|
53928
53947
|
}, yC = ["innerHTML"], IC = {
|
|
@@ -53968,8 +53987,15 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
53968
53987
|
const e = t, n = {
|
|
53969
53988
|
claude: { bg: "rgba(139,92,246,0.15)", fg: "#a78bfa", label: "Claude" },
|
|
53970
53989
|
codex: { bg: "rgba(16,185,129,0.15)", fg: "#34d399", label: "Codex" },
|
|
53971
|
-
|
|
53972
|
-
opencode: { bg: "rgba(251,191,36,0.15)", fg: "#fbbf24", label: "OpenCode" }
|
|
53990
|
+
antigravity: { bg: "rgba(96,165,250,0.15)", fg: "#60a5fa", label: "Antigravity" },
|
|
53991
|
+
opencode: { bg: "rgba(251,191,36,0.15)", fg: "#fbbf24", label: "OpenCode" },
|
|
53992
|
+
deepseek: { bg: "rgba(59,130,246,0.15)", fg: "#3b82f6", label: "DeepSeek" },
|
|
53993
|
+
goose: { bg: "rgba(249,115,22,0.15)", fg: "#f97316", label: "Goose" },
|
|
53994
|
+
aider: { bg: "rgba(20,184,166,0.15)", fg: "#14b8a6", label: "Aider" },
|
|
53995
|
+
crush: { bg: "rgba(239,68,68,0.15)", fg: "#ef4444", label: "Crush" },
|
|
53996
|
+
openai_compat: { bg: "rgba(34,211,238,0.15)", fg: "#22d3ee", label: "OpenAI-compatible" },
|
|
53997
|
+
openrouter: { bg: "rgba(129,140,248,0.15)", fg: "#818cf8", label: "OpenRouter" },
|
|
53998
|
+
kimi: { bg: "rgba(232,121,249,0.15)", fg: "#e879f9", label: "Kimi" }
|
|
53973
53999
|
};
|
|
53974
54000
|
function a(m) {
|
|
53975
54001
|
return m ? n[m] ?? { bg: "rgba(161,161,170,0.15)", fg: "#a1a1aa", label: m } : { bg: "rgba(161,161,170,0.15)", fg: "#a1a1aa", label: "Backend" };
|
|
@@ -54050,7 +54076,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54050
54076
|
d("polyline", { points: "9 18 15 12 9 6" }, null, -1)
|
|
54051
54077
|
])], 2)),
|
|
54052
54078
|
p[2] || (p[2] = d("span", { class: "aia-responses__summary-label" }, "Individual Responses", -1)),
|
|
54053
|
-
d("span",
|
|
54079
|
+
d("span", vC, y(c.value), 1)
|
|
54054
54080
|
])) : w("", !0),
|
|
54055
54081
|
!t.summaryHeader || _.value ? (g(!0), R(de, { key: 1 }, Oe(i.value, ([E, f]) => (g(), R("div", {
|
|
54056
54082
|
key: E,
|
|
@@ -54104,11 +54130,11 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54104
54130
|
d("code", kC, y(f.error), 1)
|
|
54105
54131
|
])
|
|
54106
54132
|
])) : w("", !0)
|
|
54107
|
-
], 8,
|
|
54133
|
+
], 8, hC)
|
|
54108
54134
|
], 6))), 128)) : w("", !0)
|
|
54109
54135
|
]));
|
|
54110
54136
|
}
|
|
54111
|
-
}), Od = /* @__PURE__ */ Fe(PC, [["__scopeId", "data-v-
|
|
54137
|
+
}), Od = /* @__PURE__ */ Fe(PC, [["__scopeId", "data-v-364ac9d5"]]), UC = { class: "aia-synth__header" }, FC = {
|
|
54112
54138
|
key: 0,
|
|
54113
54139
|
class: "aia-synth__sparkle",
|
|
54114
54140
|
"aria-hidden": "true"
|
|
@@ -54351,31 +54377,31 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54351
54377
|
), r = K(
|
|
54352
54378
|
() => n.showActions ?? n.density === "detailed"
|
|
54353
54379
|
), o = e, i = Zd(), s = Jd(), { client: _ } = yn(), c = K(() => (Go(i.selectedBackend.value) || "Assistant").charAt(0).toUpperCase()), l = V([]), u = V({}), m = K(
|
|
54354
|
-
() => Array.from(new Set(l.value.map((
|
|
54355
|
-
const b = l.value.filter((T) => T.kind ===
|
|
54380
|
+
() => Array.from(new Set(l.value.map((h) => h.kind))).map((h) => {
|
|
54381
|
+
const b = l.value.filter((T) => T.kind === h);
|
|
54356
54382
|
return {
|
|
54357
|
-
kind:
|
|
54358
|
-
displayName:
|
|
54383
|
+
kind: h,
|
|
54384
|
+
displayName: h,
|
|
54359
54385
|
// Account dropdown shows display_name (typically the email); the id
|
|
54360
54386
|
// is what gets sent to the API as account_id.
|
|
54361
54387
|
accounts: b.map((T) => ({ id: T.id, label: T.display_name || T.id })),
|
|
54362
|
-
models: u.value[
|
|
54388
|
+
models: u.value[h] ?? []
|
|
54363
54389
|
};
|
|
54364
54390
|
})
|
|
54365
54391
|
);
|
|
54366
|
-
async function p(
|
|
54367
|
-
if (!u.value[
|
|
54392
|
+
async function p(h) {
|
|
54393
|
+
if (!u.value[h.kind])
|
|
54368
54394
|
try {
|
|
54369
|
-
const { items: b } = await _.listModels(
|
|
54370
|
-
u.value = { ...u.value, [
|
|
54395
|
+
const { items: b } = await _.listModels(h.id);
|
|
54396
|
+
u.value = { ...u.value, [h.kind]: b.map((T) => T.id) };
|
|
54371
54397
|
} catch {
|
|
54372
54398
|
}
|
|
54373
54399
|
}
|
|
54374
54400
|
async function E() {
|
|
54375
|
-
if (await Promise.all(l.value.filter((
|
|
54376
|
-
for (const
|
|
54377
|
-
if (
|
|
54378
|
-
i.selectedModel.value =
|
|
54401
|
+
if (await Promise.all(l.value.filter((h) => h.status === "ready").map(p)), !i.selectedModel.value) {
|
|
54402
|
+
for (const h of m.value)
|
|
54403
|
+
if (h.models.length > 0) {
|
|
54404
|
+
i.selectedModel.value = h.models[0], i.selectedBackend.value || (i.selectedBackend.value = h.kind);
|
|
54379
54405
|
break;
|
|
54380
54406
|
}
|
|
54381
54407
|
}
|
|
@@ -54384,25 +54410,25 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54384
54410
|
i.setConfigParser(n.configParser ?? null);
|
|
54385
54411
|
}), un(async () => {
|
|
54386
54412
|
try {
|
|
54387
|
-
const
|
|
54388
|
-
l.value =
|
|
54413
|
+
const h = await _.listBackends();
|
|
54414
|
+
l.value = h.items ?? [], await E();
|
|
54389
54415
|
} catch {
|
|
54390
54416
|
}
|
|
54391
54417
|
}), De(
|
|
54392
54418
|
() => [i.selectedBackend.value, i.selectedAccount.value],
|
|
54393
|
-
([
|
|
54394
|
-
i.sessionId.value && (
|
|
54419
|
+
([h, b], [T, A]) => {
|
|
54420
|
+
i.sessionId.value && (h !== T || b !== A) && i.resetSession();
|
|
54395
54421
|
}
|
|
54396
54422
|
);
|
|
54397
|
-
function f(
|
|
54423
|
+
function f(h, b = null) {
|
|
54398
54424
|
if (b) {
|
|
54399
54425
|
const A = l.value.find((M) => M.id === b);
|
|
54400
54426
|
if (A) return A;
|
|
54401
54427
|
}
|
|
54402
|
-
const T =
|
|
54428
|
+
const T = h ? l.value.filter((A) => A.kind === h) : l.value;
|
|
54403
54429
|
return T.find((A) => A.status === "ready") ?? T[0] ?? null;
|
|
54404
54430
|
}
|
|
54405
|
-
async function C(
|
|
54431
|
+
async function C(h) {
|
|
54406
54432
|
if (!i.sessionId.value) {
|
|
54407
54433
|
if (l.value.length === 0)
|
|
54408
54434
|
try {
|
|
@@ -54434,13 +54460,13 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54434
54460
|
return;
|
|
54435
54461
|
}
|
|
54436
54462
|
}
|
|
54437
|
-
await i.send(
|
|
54463
|
+
await i.send(h);
|
|
54438
54464
|
}
|
|
54439
54465
|
async function I() {
|
|
54440
|
-
const
|
|
54441
|
-
o("finalize",
|
|
54466
|
+
const h = await i.finalize();
|
|
54467
|
+
o("finalize", h);
|
|
54442
54468
|
}
|
|
54443
|
-
return (
|
|
54469
|
+
return (h, b) => (g(), R("div", oN, [
|
|
54444
54470
|
t.density === "detailed" ? (g(), ze(SC, {
|
|
54445
54471
|
key: 0,
|
|
54446
54472
|
"chat-mode": Q(i).chatMode.value,
|
|
@@ -54502,7 +54528,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54502
54528
|
_: 2
|
|
54503
54529
|
}, 1032, ["id", "type", "label", "timestamp", "is-expanded", "onToggle"]))), 128))
|
|
54504
54530
|
])) : w("", !0),
|
|
54505
|
-
|
|
54531
|
+
h.$slots.finalization ? xt(h.$slots, "finalization", {
|
|
54506
54532
|
key: 5,
|
|
54507
54533
|
state: { canFinalize: Q(i).canFinalize, isFinalizing: Q(i).isFinalizing }
|
|
54508
54534
|
}, void 0, !0) : Q(i).canFinalize.value && t.entityLabel ? (g(), ze(ZC, {
|
|
@@ -54530,7 +54556,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54530
54556
|
}, null, 8, ["placeholder", "is-streaming"]))
|
|
54531
54557
|
]));
|
|
54532
54558
|
}
|
|
54533
|
-
}),
|
|
54559
|
+
}), Rv = /* @__PURE__ */ Fe(mN, [["__scopeId", "data-v-4cb169c3"]]), EN = { class: "aia-chat-selector" }, gN = { class: "aia-chat-selector__group" }, SN = ["value", "disabled"], TN = ["value"], bN = { class: "aia-chat-selector__group" }, fN = ["value", "disabled"], RN = ["value"], CN = { class: "aia-chat-selector__group" }, NN = ["value", "disabled"], vN = ["value"], hN = {
|
|
54534
54560
|
key: 0,
|
|
54535
54561
|
class: "aia-chat-selector__group aia-chat-selector__mode-group"
|
|
54536
54562
|
}, ON = ["value", "checked", "onChange"], AN = /* @__PURE__ */ Ue({
|
|
@@ -54557,8 +54583,15 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54557
54583
|
return {
|
|
54558
54584
|
claude: "Claude",
|
|
54559
54585
|
codex: "Codex",
|
|
54560
|
-
|
|
54561
|
-
opencode: "OpenCode"
|
|
54586
|
+
antigravity: "Antigravity",
|
|
54587
|
+
opencode: "OpenCode",
|
|
54588
|
+
deepseek: "DeepSeek",
|
|
54589
|
+
goose: "Goose",
|
|
54590
|
+
aider: "Aider",
|
|
54591
|
+
crush: "Crush",
|
|
54592
|
+
openai_compat: "OpenAI-compatible",
|
|
54593
|
+
openrouter: "OpenRouter",
|
|
54594
|
+
kimi: "Kimi"
|
|
54562
54595
|
}[b.kind] ?? b.kind;
|
|
54563
54596
|
}
|
|
54564
54597
|
const u = K(() => n.backend === "auto" ? [] : i.value.filter((b) => b.kind === n.backend)), m = K(
|
|
@@ -54596,7 +54629,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54596
54629
|
const T = b.target.value;
|
|
54597
54630
|
a("update:accountId", T || null);
|
|
54598
54631
|
}
|
|
54599
|
-
function
|
|
54632
|
+
function h(b) {
|
|
54600
54633
|
const T = b.target.value;
|
|
54601
54634
|
a("update:model", T || null);
|
|
54602
54635
|
}
|
|
@@ -54637,16 +54670,16 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54637
54670
|
class: "aia-chat-selector__select aia-chat-selector__select--model",
|
|
54638
54671
|
value: t.model || "",
|
|
54639
54672
|
disabled: E.value || p.value.length === 0,
|
|
54640
|
-
onChange:
|
|
54673
|
+
onChange: h
|
|
54641
54674
|
}, [
|
|
54642
54675
|
T[4] || (T[4] = d("option", { value: "" }, "Auto", -1)),
|
|
54643
54676
|
(g(!0), R(de, null, Oe(p.value, (A) => (g(), R("option", {
|
|
54644
54677
|
key: A,
|
|
54645
54678
|
value: A
|
|
54646
|
-
}, y(A), 9,
|
|
54679
|
+
}, y(A), 9, vN))), 128))
|
|
54647
54680
|
], 40, NN)
|
|
54648
54681
|
]),
|
|
54649
|
-
t.chatMode ? (g(), R("div",
|
|
54682
|
+
t.chatMode ? (g(), R("div", hN, [
|
|
54650
54683
|
T[6] || (T[6] = d("span", {
|
|
54651
54684
|
class: "aia-chat-selector__mode-separator",
|
|
54652
54685
|
"aria-hidden": "true"
|
|
@@ -54668,7 +54701,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54668
54701
|
xt(b.$slots, "trailing", {}, void 0, !0)
|
|
54669
54702
|
]));
|
|
54670
54703
|
}
|
|
54671
|
-
}), yN = /* @__PURE__ */ Fe(AN, [["__scopeId", "data-v-
|
|
54704
|
+
}), yN = /* @__PURE__ */ Fe(AN, [["__scopeId", "data-v-849c31dc"]]), IN = { class: "chat-panel" }, DN = {
|
|
54672
54705
|
key: 1,
|
|
54673
54706
|
class: "cli-runner-toggle"
|
|
54674
54707
|
}, MN = ["aria-pressed", "title"], LN = { class: "cli-runner-toggle__label" }, xN = {
|
|
@@ -54726,17 +54759,17 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54726
54759
|
emits: ["update:inputMessage", "send", "keydown", "finalize", "update:selectedBackend", "update:selectedAccountId", "update:selectedModel", "update:chatMode", "update:useCliRunner"],
|
|
54727
54760
|
setup(t, { emit: e }) {
|
|
54728
54761
|
const n = t, a = e, r = V(null), o = K(() => Go(n.selectedBackend) || "Assistant"), i = K(() => n.messages ?? []), s = K(() => n.inputMessage ?? ""), _ = K(() => n.assistantIconPaths ?? []), c = K(
|
|
54729
|
-
() => i.value.map((
|
|
54762
|
+
() => i.value.map((h) => {
|
|
54730
54763
|
const b = {
|
|
54731
|
-
role:
|
|
54732
|
-
content:
|
|
54764
|
+
role: h.role,
|
|
54765
|
+
content: h.content
|
|
54733
54766
|
};
|
|
54734
|
-
return
|
|
54767
|
+
return h.timestamp && (b.timestamp = h.timestamp), b;
|
|
54735
54768
|
})
|
|
54736
54769
|
), l = V(!0);
|
|
54737
54770
|
function u() {
|
|
54738
|
-
const
|
|
54739
|
-
return
|
|
54771
|
+
const h = r.value;
|
|
54772
|
+
return h ? h.scrollHeight - h.scrollTop - h.clientHeight <= KN : !0;
|
|
54740
54773
|
}
|
|
54741
54774
|
function m() {
|
|
54742
54775
|
n.useSmartScroll && (l.value = u());
|
|
@@ -54757,28 +54790,28 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54757
54790
|
const f = K(() => n.useSmartScroll && !l.value);
|
|
54758
54791
|
De(() => i.value.length, p), De(() => n.streamingContent, p), De(
|
|
54759
54792
|
() => n.isProcessing,
|
|
54760
|
-
(
|
|
54761
|
-
|
|
54793
|
+
(h) => {
|
|
54794
|
+
h && p();
|
|
54762
54795
|
}
|
|
54763
54796
|
), De(
|
|
54764
54797
|
() => {
|
|
54765
54798
|
if (!n.backendResponses) return 0;
|
|
54766
|
-
let
|
|
54799
|
+
let h = 0;
|
|
54767
54800
|
for (const b of n.backendResponses.values())
|
|
54768
|
-
|
|
54769
|
-
return
|
|
54801
|
+
h += b.content.length;
|
|
54802
|
+
return h;
|
|
54770
54803
|
},
|
|
54771
54804
|
p
|
|
54772
54805
|
), De(() => {
|
|
54773
|
-
var
|
|
54774
|
-
return ((b = (
|
|
54806
|
+
var h, b;
|
|
54807
|
+
return ((b = (h = n.synthesisState) == null ? void 0 : h.content) == null ? void 0 : b.length) ?? 0;
|
|
54775
54808
|
}, p);
|
|
54776
|
-
function C(
|
|
54777
|
-
const b =
|
|
54809
|
+
function C(h) {
|
|
54810
|
+
const b = h.target;
|
|
54778
54811
|
a("update:inputMessage", b.value), b.style.height = "auto", b.style.height = Math.min(b.scrollHeight, 120) + "px";
|
|
54779
54812
|
}
|
|
54780
54813
|
const I = K(() => n.processGroups ? Array.from(n.processGroups.entries()) : []);
|
|
54781
|
-
return (
|
|
54814
|
+
return (h, b) => (g(), R("div", IN, [
|
|
54782
54815
|
t.showBackendSelector ? (g(), ze(yN, {
|
|
54783
54816
|
key: 0,
|
|
54784
54817
|
backend: t.selectedBackend ?? "auto",
|
|
@@ -54791,11 +54824,11 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54791
54824
|
"onUpdate:chatMode": b[3] || (b[3] = (T) => a("update:chatMode", T))
|
|
54792
54825
|
}, {
|
|
54793
54826
|
trailing: Cn(() => [
|
|
54794
|
-
xt(
|
|
54827
|
+
xt(h.$slots, "selector-trailing", {}, void 0, !0)
|
|
54795
54828
|
]),
|
|
54796
54829
|
_: 3
|
|
54797
54830
|
}, 8, ["backend", "account-id", "model", "chat-mode"])) : w("", !0),
|
|
54798
|
-
xt(
|
|
54831
|
+
xt(h.$slots, "header-extra", {}, void 0, !0),
|
|
54799
54832
|
t.hideCliRunnerToggle ? w("", !0) : (g(), R("div", DN, [
|
|
54800
54833
|
d("button", {
|
|
54801
54834
|
type: "button",
|
|
@@ -54814,7 +54847,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54814
54847
|
ref: r,
|
|
54815
54848
|
onScroll: m
|
|
54816
54849
|
}, [
|
|
54817
|
-
xt(
|
|
54850
|
+
xt(h.$slots, "welcome", {}, () => [
|
|
54818
54851
|
i.value.length === 0 && !t.isProcessing ? (g(), R("div", xN, [
|
|
54819
54852
|
d("div", {
|
|
54820
54853
|
class: Me(["welcome-icon", { connecting: !t.conversationId }])
|
|
@@ -54843,7 +54876,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54843
54876
|
"avatar-paths": _.value,
|
|
54844
54877
|
"skip-transition": i.value.length > 10 && A < i.value.length - 5
|
|
54845
54878
|
}, null, 8, ["role", "content", "timestamp", "backend", "model", "avatar-paths", "skip-transition"]),
|
|
54846
|
-
!t.isProcessing || A < i.value.length - 1 ? (g(), ze(
|
|
54879
|
+
!t.isProcessing || A < i.value.length - 1 ? (g(), ze(hd, {
|
|
54847
54880
|
key: 0,
|
|
54848
54881
|
content: T.content,
|
|
54849
54882
|
"all-messages": A === i.value.length - 1 ? c.value : []
|
|
@@ -54965,7 +54998,7 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54965
54998
|
]))
|
|
54966
54999
|
]));
|
|
54967
55000
|
}
|
|
54968
|
-
}),
|
|
55001
|
+
}), Cv = /* @__PURE__ */ Fe(QN, [["__scopeId", "data-v-7d947b88"]]), XN = {
|
|
54969
55002
|
class: "aia-chat-mode-selector",
|
|
54970
55003
|
role: "radiogroup",
|
|
54971
55004
|
"aria-label": "Chat mode"
|
|
@@ -54996,12 +55029,12 @@ const VR = { class: "aia-bubble__avatar" }, WR = {
|
|
|
54996
55029
|
}, y(i.label), 11, ZN)), 64))
|
|
54997
55030
|
]));
|
|
54998
55031
|
}
|
|
54999
|
-
}),
|
|
55032
|
+
}), Nv = /* @__PURE__ */ Fe(JN, [["__scopeId", "data-v-c2599533"]]), vv = "0.4.0";
|
|
55000
55033
|
export {
|
|
55001
|
-
|
|
55002
|
-
|
|
55003
|
-
|
|
55004
|
-
|
|
55034
|
+
bv as AccountEditForm,
|
|
55035
|
+
Sv as AccountWizard,
|
|
55036
|
+
Rv as AiChatPanel,
|
|
55037
|
+
Cv as AiChatPanelManaged,
|
|
55005
55038
|
yN as AiChatSelector,
|
|
55006
55039
|
Od as AllModeResponses,
|
|
55007
55040
|
Vu as BackendPicker,
|
|
@@ -55009,14 +55042,14 @@ export {
|
|
|
55009
55042
|
SC as ChatControls,
|
|
55010
55043
|
CC as ChatInput,
|
|
55011
55044
|
Qo as ChatMessage,
|
|
55012
|
-
|
|
55013
|
-
|
|
55045
|
+
Nv as ChatModeSelector,
|
|
55046
|
+
fv as ChatPanel,
|
|
55014
55047
|
Ad as CompoundSynthesis,
|
|
55015
55048
|
ZC as FinalizationBanner,
|
|
55016
55049
|
Uu as LoginStream,
|
|
55017
|
-
|
|
55018
|
-
|
|
55050
|
+
hd as MessageActions,
|
|
55051
|
+
Tv as OnboardingFlow,
|
|
55019
55052
|
yd as ProcessGroup,
|
|
55020
55053
|
jd as forceFreshAccountPrompt,
|
|
55021
|
-
|
|
55054
|
+
vv as version
|
|
55022
55055
|
};
|