@n8n/chat 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/chat.js +98 -92
- package/chat.umd.js +2 -2
- package/package.json +1 -1
- package/style.css +1 -10
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ This is an embeddable Chat widget for n8n. It allows the execution of AI-Powered
|
|
|
4
4
|
## Pre-requisites
|
|
5
5
|
Create a n8n workflow which you want to execute via chat. The workflow has to be triggered using a **Webhook** node and return data using the **Respond to Webhook** node.
|
|
6
6
|
|
|
7
|
+
Open the **Webhook** node and add your domain to the **Domain Allowlist** field. This makes sure that only requests from your domain are accepted.
|
|
8
|
+
|
|
7
9
|
[See example workflow](/resources/workflow.json)
|
|
8
10
|
|
|
9
11
|
> Make sure the workflow is **Active.**
|
|
@@ -19,6 +21,8 @@ We use the `Switch` node to handle the different actions.
|
|
|
19
21
|
|
|
20
22
|
## Installation
|
|
21
23
|
|
|
24
|
+
Open the **Webhook** node and replace `YOUR_PRODUCTION_WEBHOOK_URL` with your production URL. This is the URL that the Chat widget will use to send requests to.
|
|
25
|
+
|
|
22
26
|
### a. CDN Embed
|
|
23
27
|
Add the following code to your HTML page.
|
|
24
28
|
|
|
@@ -164,6 +168,48 @@ createChat({
|
|
|
164
168
|
- **Description**: Whether to display the "Powered by n8n" footer in the Chat window.
|
|
165
169
|
|
|
166
170
|
|
|
171
|
+
## Customization
|
|
172
|
+
The Chat window is entirely customizable using CSS variables.
|
|
173
|
+
|
|
174
|
+
```css
|
|
175
|
+
:root {
|
|
176
|
+
--chat--color-primary: #e74266;
|
|
177
|
+
--chat--color-primary-shade-50: #db4061;
|
|
178
|
+
--chat--color-primary-shade-100: #cf3c5c;
|
|
179
|
+
--chat--color-secondary: #20b69e;
|
|
180
|
+
--chat--color-secondary-shade-50: #1ca08a;
|
|
181
|
+
--chat--color-white: #ffffff;
|
|
182
|
+
--chat--color-light: #f2f4f8;
|
|
183
|
+
--chat--color-light-shade-50: #e6e9f1;
|
|
184
|
+
--chat--color-light-shade-100: #c2c5cc;
|
|
185
|
+
--chat--color-medium: #d2d4d9;
|
|
186
|
+
--chat--color-dark: #101330;
|
|
187
|
+
--chat--color-disabled: #777980;
|
|
188
|
+
--chat--color-typing: #404040;
|
|
189
|
+
|
|
190
|
+
--chat--spacing: 1rem;
|
|
191
|
+
--chat--border-radius: 0.25rem;
|
|
192
|
+
--chat--transition-duration: 0.15s;
|
|
193
|
+
|
|
194
|
+
--chat--window--width: 400px;
|
|
195
|
+
--chat--window--height: 600px;
|
|
196
|
+
|
|
197
|
+
--chat--textarea--height: 50px;
|
|
198
|
+
|
|
199
|
+
--chat--message--bot--background: var(--chat--color-white);
|
|
200
|
+
--chat--message--bot--color: var(--chat--color-dark);
|
|
201
|
+
--chat--message--user--background: var(--chat--color-secondary);
|
|
202
|
+
--chat--message--user--color: var(--chat--color-white);
|
|
203
|
+
--chat--message--pre--background: rgba(0, 0, 0, 0.05);
|
|
204
|
+
|
|
205
|
+
--chat--toggle--background: var(--chat--color-primary);
|
|
206
|
+
--chat--toggle--hover--background: var(--chat--color-primary-shade-50);
|
|
207
|
+
--chat--toggle--active--background: var(--chat--color-primary-shade-100);
|
|
208
|
+
--chat--toggle--color: var(--chat--color-white);
|
|
209
|
+
--chat--toggle--size: 64px;
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
167
213
|
## Caveats
|
|
168
214
|
|
|
169
215
|
### Fullscreen mode
|
package/chat.js
CHANGED
|
@@ -1099,10 +1099,10 @@ const nc = { class: "chat-get-started" }, rc = /* @__PURE__ */ ae({
|
|
|
1099
1099
|
]));
|
|
1100
1100
|
}
|
|
1101
1101
|
});
|
|
1102
|
-
const oc = {}, sc = { class: "chat-powered-by" }, cc = /* @__PURE__ */ te("a", { href: "https://n8n.io" }, "n8n", -1);
|
|
1102
|
+
const oc = {}, sc = { class: "chat-powered-by" }, cc = /* @__PURE__ */ te("a", { href: "https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by" }, "n8n", -1);
|
|
1103
1103
|
function ic(t, e) {
|
|
1104
1104
|
return F(), W("div", sc, [
|
|
1105
|
-
Ur("Powered by "),
|
|
1105
|
+
Ur(" Powered by "),
|
|
1106
1106
|
cc
|
|
1107
1107
|
]);
|
|
1108
1108
|
}
|
|
@@ -5942,14 +5942,14 @@ function Bo(t, e, n = Xj) {
|
|
|
5942
5942
|
function o(s, c) {
|
|
5943
5943
|
e && (c = c.map((i) => i.toLowerCase())), c.forEach(function(i) {
|
|
5944
5944
|
const a = i.split("|");
|
|
5945
|
-
r[a[0]] = [s,
|
|
5945
|
+
r[a[0]] = [s, e8(a[0], a[1])];
|
|
5946
5946
|
});
|
|
5947
5947
|
}
|
|
5948
5948
|
}
|
|
5949
|
-
function
|
|
5950
|
-
return e ? Number(e) :
|
|
5949
|
+
function e8(t, e) {
|
|
5950
|
+
return e ? Number(e) : t8(t) ? 0 : 1;
|
|
5951
5951
|
}
|
|
5952
|
-
function
|
|
5952
|
+
function t8(t) {
|
|
5953
5953
|
return Qj.includes(t.toLowerCase());
|
|
5954
5954
|
}
|
|
5955
5955
|
const Ir = {}, qe = (t) => {
|
|
@@ -5966,7 +5966,7 @@ function $o(t, e, { key: n }) {
|
|
|
5966
5966
|
c[i + r] = o[i], s[i + r] = !0, r += Io(e[i - 1]);
|
|
5967
5967
|
t[n] = c, t[n]._emit = s, t[n]._multi = !0;
|
|
5968
5968
|
}
|
|
5969
|
-
function
|
|
5969
|
+
function n8(t) {
|
|
5970
5970
|
if (Array.isArray(t.begin)) {
|
|
5971
5971
|
if (t.skip || t.excludeBegin || t.returnBegin)
|
|
5972
5972
|
throw qe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), St;
|
|
@@ -5975,7 +5975,7 @@ function nH(t) {
|
|
|
5975
5975
|
$o(t, t.begin, { key: "beginScope" }), t.begin = qn(t.begin, { joinWith: "" });
|
|
5976
5976
|
}
|
|
5977
5977
|
}
|
|
5978
|
-
function
|
|
5978
|
+
function r8(t) {
|
|
5979
5979
|
if (Array.isArray(t.end)) {
|
|
5980
5980
|
if (t.skip || t.excludeEnd || t.returnEnd)
|
|
5981
5981
|
throw qe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), St;
|
|
@@ -5984,13 +5984,13 @@ function rH(t) {
|
|
|
5984
5984
|
$o(t, t.end, { key: "endScope" }), t.end = qn(t.end, { joinWith: "" });
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
|
-
function
|
|
5987
|
+
function o8(t) {
|
|
5988
5988
|
t.scope && typeof t.scope == "object" && t.scope !== null && (t.beginScope = t.scope, delete t.scope);
|
|
5989
5989
|
}
|
|
5990
|
-
function
|
|
5991
|
-
|
|
5990
|
+
function s8(t) {
|
|
5991
|
+
o8(t), typeof t.beginScope == "string" && (t.beginScope = { _wrap: t.beginScope }), typeof t.endScope == "string" && (t.endScope = { _wrap: t.endScope }), n8(t), r8(t);
|
|
5992
5992
|
}
|
|
5993
|
-
function
|
|
5993
|
+
function c8(t) {
|
|
5994
5994
|
function e(c, i) {
|
|
5995
5995
|
return new RegExp(
|
|
5996
5996
|
rt(c),
|
|
@@ -6069,7 +6069,7 @@ function cH(t) {
|
|
|
6069
6069
|
// do this early so compiler extensions generally don't have to worry about
|
|
6070
6070
|
// the distinction between match/begin
|
|
6071
6071
|
Jj,
|
|
6072
|
-
|
|
6072
|
+
s8,
|
|
6073
6073
|
Yj
|
|
6074
6074
|
].forEach((u) => u(c, i)), t.compilerExtensions.forEach((u) => u(c, i)), c.__beforeBegin = null, [
|
|
6075
6075
|
Zj,
|
|
@@ -6084,7 +6084,7 @@ function cH(t) {
|
|
|
6084
6084
|
/** @type {RegExp | string} */
|
|
6085
6085
|
c.illegal
|
|
6086
6086
|
)), c.contains || (c.contains = []), c.contains = [].concat(...c.contains.map(function(u) {
|
|
6087
|
-
return
|
|
6087
|
+
return i8(u === "self" ? c : u);
|
|
6088
6088
|
})), c.contains.forEach(function(u) {
|
|
6089
6089
|
s(
|
|
6090
6090
|
/** @type Mode */
|
|
@@ -6103,18 +6103,18 @@ function cH(t) {
|
|
|
6103
6103
|
function zo(t) {
|
|
6104
6104
|
return t ? t.endsWithParent || zo(t.starts) : !1;
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function i8(t) {
|
|
6107
6107
|
return t.variants && !t.cachedVariants && (t.cachedVariants = t.variants.map(function(e) {
|
|
6108
6108
|
return ye(t, { variants: null }, e);
|
|
6109
6109
|
})), t.cachedVariants ? t.cachedVariants : zo(t) ? ye(t, { starts: t.starts ? ye(t.starts) : null }) : Object.isFrozen(t) ? ye(t) : t;
|
|
6110
6110
|
}
|
|
6111
|
-
var
|
|
6112
|
-
class
|
|
6111
|
+
var a8 = "11.8.0";
|
|
6112
|
+
class l8 extends Error {
|
|
6113
6113
|
constructor(e, n) {
|
|
6114
6114
|
super(e), this.name = "HTMLInjectionError", this.html = n;
|
|
6115
6115
|
}
|
|
6116
6116
|
}
|
|
6117
|
-
const cn = No, Mr = ye, Fr = Symbol("nomatch"),
|
|
6117
|
+
const cn = No, Mr = ye, Fr = Symbol("nomatch"), u8 = 7, Uo = function(t) {
|
|
6118
6118
|
const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
|
|
6119
6119
|
let o = !0;
|
|
6120
6120
|
const s = "Could not find the language '{}', did you forget to load/include a language module?", c = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -6173,7 +6173,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6173
6173
|
const $ = fe.case_insensitive ? D[0].toLowerCase() : D[0], Y = X(R, $);
|
|
6174
6174
|
if (Y) {
|
|
6175
6175
|
const [_e, ts] = Y;
|
|
6176
|
-
if (J.addText(O), O = "", H[$] = (H[$] || 0) + 1, H[$] <=
|
|
6176
|
+
if (J.addText(O), O = "", H[$] = (H[$] || 0) + 1, H[$] <= u8 && (ft += ts), _e.startsWith("_"))
|
|
6177
6177
|
O += D[0];
|
|
6178
6178
|
else {
|
|
6179
6179
|
const ns = fe.classNameAliases[_e] || _e;
|
|
@@ -6295,7 +6295,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6295
6295
|
const fe = U(d);
|
|
6296
6296
|
if (!fe)
|
|
6297
6297
|
throw qe(s.replace("{}", d)), new Error('Unknown language: "' + d + '"');
|
|
6298
|
-
const es =
|
|
6298
|
+
const es = c8(fe);
|
|
6299
6299
|
let Ut = "", R = M || es;
|
|
6300
6300
|
const Fn = {}, J = new i.__emitter(i);
|
|
6301
6301
|
Xo();
|
|
@@ -6393,7 +6393,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6393
6393
|
"before:highlightElement",
|
|
6394
6394
|
{ el: d, language: N }
|
|
6395
6395
|
), d.children.length > 0 && (i.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)), i.throwUnescapedHTML))
|
|
6396
|
-
throw new
|
|
6396
|
+
throw new l8(
|
|
6397
6397
|
"One of your code blocks includes unescaped HTML.",
|
|
6398
6398
|
d.innerHTML
|
|
6399
6399
|
);
|
|
@@ -6513,7 +6513,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6513
6513
|
o = !1;
|
|
6514
6514
|
}, t.safeMode = function() {
|
|
6515
6515
|
o = !0;
|
|
6516
|
-
}, t.versionString =
|
|
6516
|
+
}, t.versionString = a8, t.regex = {
|
|
6517
6517
|
concat: Le,
|
|
6518
6518
|
lookahead: Oo,
|
|
6519
6519
|
either: Tn,
|
|
@@ -6525,10 +6525,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6525
6525
|
return Object.assign(t, mt), t;
|
|
6526
6526
|
}, He = Uo({});
|
|
6527
6527
|
He.newInstance = () => Uo({});
|
|
6528
|
-
var
|
|
6528
|
+
var f8 = He;
|
|
6529
6529
|
He.HighlightJS = He;
|
|
6530
6530
|
He.default = He;
|
|
6531
|
-
const Dt = /* @__PURE__ */ ao(
|
|
6531
|
+
const Dt = /* @__PURE__ */ ao(f8), dn = /* @__PURE__ */ ae({
|
|
6532
6532
|
__name: "Message",
|
|
6533
6533
|
props: {
|
|
6534
6534
|
message: {
|
|
@@ -6563,11 +6563,11 @@ const Dt = /* @__PURE__ */ ao(fH), dn = /* @__PURE__ */ ae({
|
|
|
6563
6563
|
], 2));
|
|
6564
6564
|
}
|
|
6565
6565
|
});
|
|
6566
|
-
const
|
|
6566
|
+
const p8 = /* @__PURE__ */ te("div", { class: "chat-message-typing-body" }, [
|
|
6567
6567
|
/* @__PURE__ */ te("span", { class: "chat-message-typing-circle" }),
|
|
6568
6568
|
/* @__PURE__ */ te("span", { class: "chat-message-typing-circle" }),
|
|
6569
6569
|
/* @__PURE__ */ te("span", { class: "chat-message-typing-circle" })
|
|
6570
|
-
], -1),
|
|
6570
|
+
], -1), h8 = /* @__PURE__ */ ae({
|
|
6571
6571
|
__name: "MessageTyping",
|
|
6572
6572
|
props: {
|
|
6573
6573
|
animation: {
|
|
@@ -6591,48 +6591,48 @@ const pH = /* @__PURE__ */ te("div", { class: "chat-message-typing-body" }, [
|
|
|
6591
6591
|
message: n
|
|
6592
6592
|
}, {
|
|
6593
6593
|
default: Te(() => [
|
|
6594
|
-
|
|
6594
|
+
p8
|
|
6595
6595
|
]),
|
|
6596
6596
|
_: 1
|
|
6597
6597
|
}, 8, ["class"]));
|
|
6598
6598
|
}
|
|
6599
6599
|
});
|
|
6600
|
-
var _t,
|
|
6601
|
-
function
|
|
6600
|
+
var _t, d8 = new Uint8Array(16);
|
|
6601
|
+
function g8() {
|
|
6602
6602
|
if (!_t && (_t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !_t))
|
|
6603
6603
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6604
|
-
return _t(
|
|
6604
|
+
return _t(d8);
|
|
6605
6605
|
}
|
|
6606
|
-
const
|
|
6607
|
-
function
|
|
6608
|
-
return typeof t == "string" &&
|
|
6606
|
+
const m8 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
6607
|
+
function _8(t) {
|
|
6608
|
+
return typeof t == "string" && m8.test(t);
|
|
6609
6609
|
}
|
|
6610
6610
|
var K = [];
|
|
6611
6611
|
for (var an = 0; an < 256; ++an)
|
|
6612
6612
|
K.push((an + 256).toString(16).substr(1));
|
|
6613
|
-
function
|
|
6613
|
+
function b8(t) {
|
|
6614
6614
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = (K[t[e + 0]] + K[t[e + 1]] + K[t[e + 2]] + K[t[e + 3]] + "-" + K[t[e + 4]] + K[t[e + 5]] + "-" + K[t[e + 6]] + K[t[e + 7]] + "-" + K[t[e + 8]] + K[t[e + 9]] + "-" + K[t[e + 10]] + K[t[e + 11]] + K[t[e + 12]] + K[t[e + 13]] + K[t[e + 14]] + K[t[e + 15]]).toLowerCase();
|
|
6615
|
-
if (!
|
|
6615
|
+
if (!_8(n))
|
|
6616
6616
|
throw TypeError("Stringified UUID is invalid");
|
|
6617
6617
|
return n;
|
|
6618
6618
|
}
|
|
6619
6619
|
function Ke(t, e, n) {
|
|
6620
6620
|
t = t || {};
|
|
6621
|
-
var r = t.random || (t.rng ||
|
|
6621
|
+
var r = t.random || (t.rng || g8)();
|
|
6622
6622
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
|
|
6623
6623
|
n = n || 0;
|
|
6624
6624
|
for (var o = 0; o < 16; ++o)
|
|
6625
6625
|
e[n + o] = r[o];
|
|
6626
6626
|
return e;
|
|
6627
6627
|
}
|
|
6628
|
-
return
|
|
6628
|
+
return b8(r);
|
|
6629
6629
|
}
|
|
6630
|
-
async function
|
|
6630
|
+
async function v8() {
|
|
6631
6631
|
return "";
|
|
6632
6632
|
}
|
|
6633
6633
|
async function Vo(...t) {
|
|
6634
6634
|
var r;
|
|
6635
|
-
const e = await
|
|
6635
|
+
const e = await v8();
|
|
6636
6636
|
return await (await fetch(t[0], {
|
|
6637
6637
|
...t[1],
|
|
6638
6638
|
mode: "cors",
|
|
@@ -6654,7 +6654,7 @@ async function Ho(t, e = {}, n = {}) {
|
|
|
6654
6654
|
body: JSON.stringify(e)
|
|
6655
6655
|
});
|
|
6656
6656
|
}
|
|
6657
|
-
async function
|
|
6657
|
+
async function k8(t, e) {
|
|
6658
6658
|
var r, o;
|
|
6659
6659
|
return (((r = e.webhookConfig) == null ? void 0 : r.method) === "POST" ? Ho : jo)(
|
|
6660
6660
|
`${e.webhookUrl}`,
|
|
@@ -6667,7 +6667,7 @@ async function kH(t, e) {
|
|
|
6667
6667
|
}
|
|
6668
6668
|
);
|
|
6669
6669
|
}
|
|
6670
|
-
async function
|
|
6670
|
+
async function y8(t, e, n) {
|
|
6671
6671
|
var o, s;
|
|
6672
6672
|
return (((o = n.webhookConfig) == null ? void 0 : o.method) === "POST" ? Ho : jo)(
|
|
6673
6673
|
`${n.webhookUrl}`,
|
|
@@ -6700,7 +6700,7 @@ const Nn = Vs("chat", () => {
|
|
|
6700
6700
|
e.value.push(l), r.value = !0, Re(() => {
|
|
6701
6701
|
Oe.emit("scrollToBottom");
|
|
6702
6702
|
});
|
|
6703
|
-
const u = await
|
|
6703
|
+
const u = await y8(
|
|
6704
6704
|
a,
|
|
6705
6705
|
n.value,
|
|
6706
6706
|
t
|
|
@@ -6715,7 +6715,7 @@ const Nn = Vs("chat", () => {
|
|
|
6715
6715
|
});
|
|
6716
6716
|
}
|
|
6717
6717
|
async function c() {
|
|
6718
|
-
const a = localStorage.getItem(Gn) ?? Ke(), l = await
|
|
6718
|
+
const a = localStorage.getItem(Gn) ?? Ke(), l = await k8(a, t), u = (/* @__PURE__ */ new Date()).toISOString();
|
|
6719
6719
|
return e.value = ((l == null ? void 0 : l.data) || []).map((f, p) => ({
|
|
6720
6720
|
id: `${p}`,
|
|
6721
6721
|
text: f.kwargs.content,
|
|
@@ -6735,7 +6735,7 @@ const Nn = Vs("chat", () => {
|
|
|
6735
6735
|
startNewSession: i,
|
|
6736
6736
|
sendMessage: s
|
|
6737
6737
|
};
|
|
6738
|
-
}),
|
|
6738
|
+
}), x8 = { class: "chat-messages-list" }, E8 = /* @__PURE__ */ ae({
|
|
6739
6739
|
__name: "MessagesList",
|
|
6740
6740
|
props: {
|
|
6741
6741
|
messages: {
|
|
@@ -6745,7 +6745,7 @@ const Nn = Vs("chat", () => {
|
|
|
6745
6745
|
},
|
|
6746
6746
|
setup(t) {
|
|
6747
6747
|
const e = Nn(), { initialMessages: n, waitingForResponse: r } = so(e);
|
|
6748
|
-
return (o, s) => (F(), W("div",
|
|
6748
|
+
return (o, s) => (F(), W("div", x8, [
|
|
6749
6749
|
(F(!0), W(Pn, null, Bn(G(n), (c) => (F(), ee(dn, {
|
|
6750
6750
|
key: c.id,
|
|
6751
6751
|
message: c
|
|
@@ -6754,24 +6754,24 @@ const Nn = Vs("chat", () => {
|
|
|
6754
6754
|
key: c.id,
|
|
6755
6755
|
message: c
|
|
6756
6756
|
}, null, 8, ["message"]))), 128)),
|
|
6757
|
-
G(r) ? (F(), ee(
|
|
6757
|
+
G(r) ? (F(), ee(h8, { key: 0 })) : ze("", !0)
|
|
6758
6758
|
]));
|
|
6759
6759
|
}
|
|
6760
6760
|
});
|
|
6761
|
-
const
|
|
6761
|
+
const w8 = {
|
|
6762
6762
|
viewBox: "0 0 24 24",
|
|
6763
6763
|
width: "1.2em",
|
|
6764
6764
|
height: "1.2em"
|
|
6765
|
-
},
|
|
6765
|
+
}, A8 = /* @__PURE__ */ te("path", {
|
|
6766
6766
|
fill: "currentColor",
|
|
6767
6767
|
d: "m2 21l21-9L2 3v7l15 2l-15 2v7Z"
|
|
6768
|
-
}, null, -1),
|
|
6769
|
-
|
|
6768
|
+
}, null, -1), C8 = [
|
|
6769
|
+
A8
|
|
6770
6770
|
];
|
|
6771
|
-
function
|
|
6772
|
-
return F(), W("svg",
|
|
6771
|
+
function S8(t, e) {
|
|
6772
|
+
return F(), W("svg", w8, C8);
|
|
6773
6773
|
}
|
|
6774
|
-
const
|
|
6774
|
+
const D8 = { name: "mdi-send", render: S8 }, T8 = { class: "chat-input" }, q8 = ["placeholder", "onKeydown"], R8 = ["disabled"], N8 = /* @__PURE__ */ ae({
|
|
6775
6775
|
__name: "Input",
|
|
6776
6776
|
setup(t) {
|
|
6777
6777
|
const e = Nn(), { waitingForResponse: n } = so(e), { t: r } = Rt(), o = ve(""), s = xe(() => o.value === "" || n.value);
|
|
@@ -6784,13 +6784,13 @@ const DH = { name: "mdi-send", render: SH }, TH = { class: "chat-input" }, qH =
|
|
|
6784
6784
|
async function i(a) {
|
|
6785
6785
|
a.shiftKey || await c(a);
|
|
6786
6786
|
}
|
|
6787
|
-
return (a, l) => (F(), W("div",
|
|
6787
|
+
return (a, l) => (F(), W("div", T8, [
|
|
6788
6788
|
jr(te("textarea", {
|
|
6789
6789
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => o.value = u),
|
|
6790
6790
|
rows: "1",
|
|
6791
6791
|
placeholder: G(r)("inputPlaceholder"),
|
|
6792
6792
|
onKeydown: us(i, ["enter"])
|
|
6793
|
-
}, null, 40,
|
|
6793
|
+
}, null, 40, q8), [
|
|
6794
6794
|
[fs, o.value]
|
|
6795
6795
|
]),
|
|
6796
6796
|
te("button", {
|
|
@@ -6798,11 +6798,11 @@ const DH = { name: "mdi-send", render: SH }, TH = { class: "chat-input" }, qH =
|
|
|
6798
6798
|
class: "chat-input-send-button",
|
|
6799
6799
|
onClick: c
|
|
6800
6800
|
}, [
|
|
6801
|
-
Ue(G(
|
|
6801
|
+
Ue(G(D8), {
|
|
6802
6802
|
height: "32",
|
|
6803
6803
|
width: "32"
|
|
6804
6804
|
})
|
|
6805
|
-
], 8,
|
|
6805
|
+
], 8, R8)
|
|
6806
6806
|
]));
|
|
6807
6807
|
}
|
|
6808
6808
|
});
|
|
@@ -6824,7 +6824,7 @@ const Go = /* @__PURE__ */ ae({
|
|
|
6824
6824
|
a();
|
|
6825
6825
|
}), (u, f) => (F(), ee(Xs, { class: "chat-wrapper" }, ps({
|
|
6826
6826
|
default: Te(() => [
|
|
6827
|
-
G(c) ? (F(), ee(
|
|
6827
|
+
G(c) ? (F(), ee(E8, {
|
|
6828
6828
|
key: 1,
|
|
6829
6829
|
messages: G(s)
|
|
6830
6830
|
}, null, 8, ["messages"])) : (F(), ee(rc, {
|
|
@@ -6845,39 +6845,39 @@ const Go = /* @__PURE__ */ ae({
|
|
|
6845
6845
|
i.value ? {
|
|
6846
6846
|
name: "footer",
|
|
6847
6847
|
fn: Te(() => [
|
|
6848
|
-
G(c) ? (F(), ee(
|
|
6848
|
+
G(c) ? (F(), ee(N8, { key: 0 })) : (F(), ee(fc, { key: 1 }))
|
|
6849
6849
|
]),
|
|
6850
6850
|
key: "1"
|
|
6851
6851
|
} : void 0
|
|
6852
6852
|
]), 1024));
|
|
6853
6853
|
}
|
|
6854
|
-
}),
|
|
6854
|
+
}), O8 = {
|
|
6855
6855
|
viewBox: "0 0 24 24",
|
|
6856
6856
|
width: "1.2em",
|
|
6857
6857
|
height: "1.2em"
|
|
6858
|
-
},
|
|
6858
|
+
}, I8 = /* @__PURE__ */ te("path", {
|
|
6859
6859
|
fill: "currentColor",
|
|
6860
6860
|
d: "M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"
|
|
6861
|
-
}, null, -1),
|
|
6862
|
-
|
|
6861
|
+
}, null, -1), L8 = [
|
|
6862
|
+
I8
|
|
6863
6863
|
];
|
|
6864
|
-
function
|
|
6865
|
-
return F(), W("svg",
|
|
6864
|
+
function M8(t, e) {
|
|
6865
|
+
return F(), W("svg", O8, L8);
|
|
6866
6866
|
}
|
|
6867
|
-
const
|
|
6867
|
+
const F8 = { name: "mdi-chat", render: M8 }, P8 = {
|
|
6868
6868
|
viewBox: "0 0 24 24",
|
|
6869
6869
|
width: "1.2em",
|
|
6870
6870
|
height: "1.2em"
|
|
6871
|
-
},
|
|
6871
|
+
}, B8 = /* @__PURE__ */ te("path", {
|
|
6872
6872
|
fill: "currentColor",
|
|
6873
6873
|
d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"
|
|
6874
|
-
}, null, -1), $
|
|
6875
|
-
|
|
6874
|
+
}, null, -1), $8 = [
|
|
6875
|
+
B8
|
|
6876
6876
|
];
|
|
6877
|
-
function
|
|
6878
|
-
return F(), W("svg",
|
|
6877
|
+
function z8(t, e) {
|
|
6878
|
+
return F(), W("svg", P8, $8);
|
|
6879
6879
|
}
|
|
6880
|
-
const
|
|
6880
|
+
const U8 = { name: "mdi-chevron-down", render: z8 }, V8 = { class: "chat-window-wrapper" }, j8 = { class: "chat-window" }, H8 = /* @__PURE__ */ ae({
|
|
6881
6881
|
__name: "ChatWindow",
|
|
6882
6882
|
setup(t) {
|
|
6883
6883
|
const e = ve(!1);
|
|
@@ -6886,10 +6886,10 @@ const UH = { name: "mdi-chevron-down", render: zH }, VH = { class: "chat-window-
|
|
|
6886
6886
|
Oe.emit("scrollToBottom");
|
|
6887
6887
|
});
|
|
6888
6888
|
}
|
|
6889
|
-
return (r, o) => (F(), W("div",
|
|
6889
|
+
return (r, o) => (F(), W("div", V8, [
|
|
6890
6890
|
Ue($n, { name: "chat-window-transition" }, {
|
|
6891
6891
|
default: Te(() => [
|
|
6892
|
-
jr(te("div",
|
|
6892
|
+
jr(te("div", j8, [
|
|
6893
6893
|
Ue(Go)
|
|
6894
6894
|
], 512), [
|
|
6895
6895
|
[hs, e.value]
|
|
@@ -6906,11 +6906,11 @@ const UH = { name: "mdi-chevron-down", render: zH }, VH = { class: "chat-window-
|
|
|
6906
6906
|
mode: "out-in"
|
|
6907
6907
|
}, {
|
|
6908
6908
|
default: Te(() => [
|
|
6909
|
-
e.value ? (F(), ee(G(
|
|
6909
|
+
e.value ? (F(), ee(G(U8), {
|
|
6910
6910
|
key: 1,
|
|
6911
6911
|
height: "32",
|
|
6912
6912
|
width: "32"
|
|
6913
|
-
})) : (F(), ee(G(
|
|
6913
|
+
})) : (F(), ee(G(F8), {
|
|
6914
6914
|
key: 0,
|
|
6915
6915
|
height: "32",
|
|
6916
6916
|
width: "32"
|
|
@@ -6922,7 +6922,7 @@ const UH = { name: "mdi-chevron-down", render: zH }, VH = { class: "chat-window-
|
|
|
6922
6922
|
]));
|
|
6923
6923
|
}
|
|
6924
6924
|
});
|
|
6925
|
-
function
|
|
6925
|
+
function G8(t) {
|
|
6926
6926
|
const e = t.regex, n = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, o = {
|
|
6927
6927
|
className: "symbol",
|
|
6928
6928
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -7138,7 +7138,7 @@ function GH(t) {
|
|
|
7138
7138
|
]
|
|
7139
7139
|
};
|
|
7140
7140
|
}
|
|
7141
|
-
const Pr = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
7141
|
+
const Pr = "[A-Za-z$_][0-9A-Za-z$_]*", Z8 = [
|
|
7142
7142
|
"as",
|
|
7143
7143
|
// for exports
|
|
7144
7144
|
"in",
|
|
@@ -7181,7 +7181,7 @@ const Pr = "[A-Za-z$_][0-9A-Za-z$_]*", ZH = [
|
|
|
7181
7181
|
"from",
|
|
7182
7182
|
"export",
|
|
7183
7183
|
"extends"
|
|
7184
|
-
],
|
|
7184
|
+
], W8 = [
|
|
7185
7185
|
"true",
|
|
7186
7186
|
"false",
|
|
7187
7187
|
"null",
|
|
@@ -7265,7 +7265,7 @@ const Pr = "[A-Za-z$_][0-9A-Za-z$_]*", ZH = [
|
|
|
7265
7265
|
"encodeURIComponent",
|
|
7266
7266
|
"escape",
|
|
7267
7267
|
"unescape"
|
|
7268
|
-
],
|
|
7268
|
+
], J8 = [
|
|
7269
7269
|
"arguments",
|
|
7270
7270
|
"this",
|
|
7271
7271
|
"super",
|
|
@@ -7277,12 +7277,12 @@ const Pr = "[A-Za-z$_][0-9A-Za-z$_]*", ZH = [
|
|
|
7277
7277
|
"module",
|
|
7278
7278
|
"global"
|
|
7279
7279
|
// Node.js
|
|
7280
|
-
],
|
|
7280
|
+
], K8 = [].concat(
|
|
7281
7281
|
Jo,
|
|
7282
7282
|
Zo,
|
|
7283
7283
|
Wo
|
|
7284
7284
|
);
|
|
7285
|
-
function
|
|
7285
|
+
function Y8(t) {
|
|
7286
7286
|
const e = t.regex, n = (b, { after: N }) => {
|
|
7287
7287
|
const M = "</" + b[0].slice(1);
|
|
7288
7288
|
return b.input.indexOf(M, N) !== -1;
|
|
@@ -7323,10 +7323,10 @@ function YH(t) {
|
|
|
7323
7323
|
}
|
|
7324
7324
|
}, i = {
|
|
7325
7325
|
$pattern: Pr,
|
|
7326
|
-
keyword:
|
|
7327
|
-
literal:
|
|
7328
|
-
built_in:
|
|
7329
|
-
"variable.language":
|
|
7326
|
+
keyword: Z8,
|
|
7327
|
+
literal: W8,
|
|
7328
|
+
built_in: K8,
|
|
7329
|
+
"variable.language": J8
|
|
7330
7330
|
}, a = "[0-9](_?[0-9])*", l = `\\.(${a})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", f = {
|
|
7331
7331
|
className: "number",
|
|
7332
7332
|
variants: [
|
|
@@ -7789,17 +7789,23 @@ function YH(t) {
|
|
|
7789
7789
|
]
|
|
7790
7790
|
};
|
|
7791
7791
|
}
|
|
7792
|
-
const
|
|
7792
|
+
const Q8 = /* @__PURE__ */ ae({
|
|
7793
7793
|
__name: "App",
|
|
7794
7794
|
props: {},
|
|
7795
7795
|
setup(t) {
|
|
7796
7796
|
const { options: e } = ct(), n = xe(() => e.mode === "fullscreen");
|
|
7797
7797
|
return gn(() => {
|
|
7798
|
-
Dt.registerLanguage("xml",
|
|
7799
|
-
}), (r, o) => n.value ? (F(), ee(G(Go), {
|
|
7798
|
+
Dt.registerLanguage("xml", G8), Dt.registerLanguage("javascript", Y8);
|
|
7799
|
+
}), (r, o) => n.value ? (F(), ee(G(Go), {
|
|
7800
|
+
key: 0,
|
|
7801
|
+
class: "n8n-chat"
|
|
7802
|
+
})) : (F(), ee(G(H8), {
|
|
7803
|
+
key: 1,
|
|
7804
|
+
class: "n8n-chat"
|
|
7805
|
+
}));
|
|
7800
7806
|
}
|
|
7801
7807
|
});
|
|
7802
|
-
function
|
|
7808
|
+
function eH(t) {
|
|
7803
7809
|
var o, s;
|
|
7804
7810
|
const e = {
|
|
7805
7811
|
...Je,
|
|
@@ -7822,9 +7828,9 @@ function eG(t) {
|
|
|
7822
7828
|
}
|
|
7823
7829
|
}, n = e.target ?? ec;
|
|
7824
7830
|
typeof n == "string" && Js(n);
|
|
7825
|
-
const r = ds(
|
|
7831
|
+
const r = ds(Q8);
|
|
7826
7832
|
return r.use(Bs()), r.provide(io, e), r.mount(n), r;
|
|
7827
7833
|
}
|
|
7828
7834
|
export {
|
|
7829
|
-
|
|
7835
|
+
eH as createChat
|
|
7830
7836
|
};
|
package/chat.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ Only state can be modified.`);c[0]="$state",De=!1,r.set(s,c,r.state.value),De=!0
|
|
|
9
9
|
Found in store "${v.$id}".`),y&&s&&n.hydrate&&n.hydrate(v.$state,y),l=!0,f=!0,v}function Ko(t,e,n){let r,o;const s=typeof e=="function";if(typeof t=="string")r=t,o=s?n:e;else if(o=t,r=t.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function c(i,a){const l=u.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Be&&Be._testing?null:i)||(l?u.inject(bn,null):null),i&&Fe(i),process.env.NODE_ENV!=="production"&&!Be)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
10
10
|
const pinia = createPinia()
|
|
11
11
|
app.use(pinia)
|
|
12
|
-
This will fail in production.`);i=Be,i._s.has(r)||(s?Tt(r,e,o,i):Nn(r,o,i),process.env.NODE_ENV!=="production"&&(c._pinia=i));const f=i._s.get(r);if(process.env.NODE_ENV!=="production"&&a){const p="__hot:"+r,h=s?Tt(p,e,o,i,!0):Nn(p,X({},o),i,!0);a._hotUpdate(h),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ke){const p=u.getCurrentInstance();if(p&&p.proxy&&!a){const h=p.proxy,d="_pStores"in h?h._pStores:h._pStores={};d[r]=f}}return f}return c.$id=r,c}function Ln(t){{t=u.toRaw(t);const e={};for(const n in t){const r=t[n];(u.isRef(r)||u.isReactive(r))&&(e[n]=u.toRef(t,n))}return e}}const zl="",On=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Yo={},Qo={class:"chat-button"};function Xo(t,e){return u.openBlock(),u.createElementBlock("button",Qo,[u.renderSlot(t.$slots,"default")])}const es=On(Yo,[["render",Xo]]);function ts(){const t=new Map;function e(o,s){const c=t.get(o);c&&c.splice(c.indexOf(s)>>>0,1)}function n(o,s){let c=t.get(o);return c?c.push(s):c=[s],t.set(o,c),()=>e(o,s)}function r(o,s){const c=t.get(o);c&&c.slice().forEach(async i=>{await i(s)})}return{on:n,off:e,emit:r}}function ns(t){if(!document.querySelector(t)){const n=document.createElement("div");t.startsWith("#")&&(n.id=t.replace("#","")),t.startsWith(".")&&n.classList.add(t.replace(".","")),document.body.appendChild(n)}}const ke=ts(),rs={class:"chat-layout"},os={key:0,class:"chat-header"},ss={key:2,class:"chat-footer"},cs=u.defineComponent({__name:"Layout",setup(t){const e=u.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return u.onMounted(()=>{ke.on("scrollToBottom",n),window.addEventListener("resize",n)}),u.onBeforeUnmount(()=>{ke.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(u.openBlock(),u.createElementBlock("main",rs,[r.$slots.header?(u.openBlock(),u.createElementBlock("div",os,[u.renderSlot(r.$slots,"header")])):u.createCommentVNode("",!0),r.$slots.default?(u.openBlock(),u.createElementBlock("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[u.renderSlot(r.$slots,"default")],512)):u.createCommentVNode("",!0),r.$slots.footer?(u.openBlock(),u.createElementBlock("div",ss,[u.renderSlot(r.$slots,"footer")])):u.createCommentVNode("",!0)]))}}),Gl="",Ue={webhookUrl:"http://localhost:5678",webhookConfig:{method:"GET",headers:{}},target:"#n8n-chat",mode:"window",defaultLanguage:"en",initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question.."}},theme:{},poweredBy:!0},is="#n8n-chat",In="n8n-chat/sessionId",Mn=Symbol("ChatOptions");function Ve(){return{options:u.inject(Mn)}}function tt(){const{options:t}=Ve(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var s,c;return((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])==null?void 0:c[o])??o}function r(o){var s,c;return!!((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&c[o])}return{t:n,te:r}}const as={class:"chat-get-started"},ls=u.defineComponent({__name:"GetStarted",setup(t){const{t:e}=tt();return(n,r)=>(u.openBlock(),u.createElementBlock("div",as,[u.createVNode(es,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(e)("getStarted")),1)]),_:1})]))}}),jl="",Zl="",us={},fs={class:"chat-powered-by"},ps=u.createElementVNode("a",{href:"https://n8n.io"},"n8n",-1);function hs(t,e){return u.openBlock(),u.createElementBlock("div",fs,[u.createTextVNode("Powered by "),ps])}const ds=On(us,[["render",hs]]),gs={class:"chat-get-started-footer"},ms={key:0},bs=u.defineComponent({__name:"GetStartedFooter",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt();return(o,s)=>(u.openBlock(),u.createElementBlock("div",gs,[u.unref(r)("footer")?(u.openBlock(),u.createElementBlock("div",ms,u.toDisplayString(u.unref(n)("footer")),1)):u.createCommentVNode("",!0),u.unref(e).poweredBy?(u.openBlock(),u.createBlock(ds,{key:1})):u.createCommentVNode("",!0)]))}}),Wl="";function Bn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _s(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var F={},Fn={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
12
|
+
This will fail in production.`);i=Be,i._s.has(r)||(s?Tt(r,e,o,i):Nn(r,o,i),process.env.NODE_ENV!=="production"&&(c._pinia=i));const f=i._s.get(r);if(process.env.NODE_ENV!=="production"&&a){const p="__hot:"+r,h=s?Tt(p,e,o,i,!0):Nn(p,X({},o),i,!0);a._hotUpdate(h),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ke){const p=u.getCurrentInstance();if(p&&p.proxy&&!a){const h=p.proxy,d="_pStores"in h?h._pStores:h._pStores={};d[r]=f}}return f}return c.$id=r,c}function Ln(t){{t=u.toRaw(t);const e={};for(const n in t){const r=t[n];(u.isRef(r)||u.isReactive(r))&&(e[n]=u.toRef(t,n))}return e}}const zl="",On=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Yo={},Qo={class:"chat-button"};function Xo(t,e){return u.openBlock(),u.createElementBlock("button",Qo,[u.renderSlot(t.$slots,"default")])}const es=On(Yo,[["render",Xo]]);function ts(){const t=new Map;function e(o,s){const c=t.get(o);c&&c.splice(c.indexOf(s)>>>0,1)}function n(o,s){let c=t.get(o);return c?c.push(s):c=[s],t.set(o,c),()=>e(o,s)}function r(o,s){const c=t.get(o);c&&c.slice().forEach(async i=>{await i(s)})}return{on:n,off:e,emit:r}}function ns(t){if(!document.querySelector(t)){const n=document.createElement("div");t.startsWith("#")&&(n.id=t.replace("#","")),t.startsWith(".")&&n.classList.add(t.replace(".","")),document.body.appendChild(n)}}const ke=ts(),rs={class:"chat-layout"},os={key:0,class:"chat-header"},ss={key:2,class:"chat-footer"},cs=u.defineComponent({__name:"Layout",setup(t){const e=u.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return u.onMounted(()=>{ke.on("scrollToBottom",n),window.addEventListener("resize",n)}),u.onBeforeUnmount(()=>{ke.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(u.openBlock(),u.createElementBlock("main",rs,[r.$slots.header?(u.openBlock(),u.createElementBlock("div",os,[u.renderSlot(r.$slots,"header")])):u.createCommentVNode("",!0),r.$slots.default?(u.openBlock(),u.createElementBlock("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[u.renderSlot(r.$slots,"default")],512)):u.createCommentVNode("",!0),r.$slots.footer?(u.openBlock(),u.createElementBlock("div",ss,[u.renderSlot(r.$slots,"footer")])):u.createCommentVNode("",!0)]))}}),Gl="",Ue={webhookUrl:"http://localhost:5678",webhookConfig:{method:"GET",headers:{}},target:"#n8n-chat",mode:"window",defaultLanguage:"en",initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question.."}},theme:{},poweredBy:!0},is="#n8n-chat",In="n8n-chat/sessionId",Mn=Symbol("ChatOptions");function Ve(){return{options:u.inject(Mn)}}function tt(){const{options:t}=Ve(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var s,c;return((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])==null?void 0:c[o])??o}function r(o){var s,c;return!!((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&c[o])}return{t:n,te:r}}const as={class:"chat-get-started"},ls=u.defineComponent({__name:"GetStarted",setup(t){const{t:e}=tt();return(n,r)=>(u.openBlock(),u.createElementBlock("div",as,[u.createVNode(es,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(e)("getStarted")),1)]),_:1})]))}}),jl="",Zl="",us={},fs={class:"chat-powered-by"},ps=u.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1);function hs(t,e){return u.openBlock(),u.createElementBlock("div",fs,[u.createTextVNode(" Powered by "),ps])}const ds=On(us,[["render",hs]]),gs={class:"chat-get-started-footer"},ms={key:0},bs=u.defineComponent({__name:"GetStartedFooter",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt();return(o,s)=>(u.openBlock(),u.createElementBlock("div",gs,[u.unref(r)("footer")?(u.openBlock(),u.createElementBlock("div",ms,u.toDisplayString(u.unref(n)("footer")),1)):u.createCommentVNode("",!0),u.unref(e).poweredBy?(u.openBlock(),u.createBlock(ds,{key:1})):u.createCommentVNode("",!0)]))}}),Wl="";function Bn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _s(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var F={},Fn={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
13
13
|
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},Rt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Te={},Pn={};function ks(t){var e,n,r=Pn[t];if(r)return r;for(r=Pn[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function nt(t,e,n){var r,o,s,c,i,a="";for(typeof e!="string"&&(n=e,e=nt.defaultChars),typeof n>"u"&&(n=!0),i=ks(e),r=0,o=t.length;r<o;r++){if(s=t.charCodeAt(r),n&&s===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){a+=t.slice(r,r+3),r+=2;continue}if(s<128){a+=i[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<o&&(c=t.charCodeAt(r+1),c>=56320&&c<=57343)){a+=encodeURIComponent(t[r]+t[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[r])}return a}nt.defaultChars=";/?:@&=+$,-_.!~*'()#",nt.componentChars="-_.!~*'()";var ys=nt,Un={};function ws(t){var e,n,r=Un[t];if(r)return r;for(r=Un[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function rt(t,e){var n;return typeof e!="string"&&(e=rt.defaultChars),n=ws(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,c,i,a,l,f,p="";for(o=0,s=r.length;o<s;o+=3){if(c=parseInt(r.slice(o+1,o+3),16),c<128){p+=n[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(r.slice(o+4,o+6),16),(i&192)===128)){f=c<<6&1984|i&63,f<128?p+="��":p+=String.fromCharCode(f),o+=3;continue}if((c&240)===224&&o+6<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),(i&192)===128&&(a&192)===128)){f=c<<12&61440|i<<6&4032|a&63,f<2048||f>=55296&&f<=57343?p+="���":p+=String.fromCharCode(f),o+=6;continue}if((c&248)===240&&o+9<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),l=parseInt(r.slice(o+10,o+12),16),(i&192)===128&&(a&192)===128&&(l&192)===128)){f=c<<18&1835008|i<<12&258048|a<<6&4032|l&63,f<65536||f>1114111?p+="����":(f-=65536,p+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),o+=9;continue}p+="�"}return p})}rt.defaultChars=";/?:@&=+$,#",rt.componentChars="";var xs=rt,Es=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function ot(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var vs=/^([a-z0-9.+-]+:)/i,As=/:[0-9]*$/,Cs=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ss=["<",">",'"',"`"," ","\r",`
|
|
14
14
|
`," "],Ds=["{","}","|","\\","^","`"].concat(Ss),qs=["'"].concat(Ds),Vn=["%","/","?",";","#"].concat(qs),$n=["/","?","#"],Ts=255,zn=/^[+a-z0-9A-Z_-]{0,63}$/,Rs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gn={javascript:!0,"javascript:":!0},Hn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ns(t,e){if(t&&t instanceof ot)return t;var n=new ot;return n.parse(t,e),n}ot.prototype.parse=function(t,e){var n,r,o,s,c,i=t;if(i=i.trim(),!e&&t.split("#").length===1){var a=Cs.exec(i);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=vs.exec(i);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,i=i.substr(l.length)),(e||l||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=i.substr(0,2)==="//",c&&!(l&&Gn[l])&&(i=i.substr(2),this.slashes=!0)),!Gn[l]&&(c||l&&!Hn[l])){var f=-1;for(n=0;n<$n.length;n++)s=i.indexOf($n[n]),s!==-1&&(f===-1||s<f)&&(f=s);var p,h;for(f===-1?h=i.lastIndexOf("@"):h=i.lastIndexOf("@",f),h!==-1&&(p=i.slice(0,h),i=i.slice(h+1),this.auth=p),f=-1,n=0;n<Vn.length;n++)s=i.indexOf(Vn[n]),s!==-1&&(f===-1||s<f)&&(f=s);f===-1&&(f=i.length),i[f-1]===":"&&f--;var d=i.slice(0,f);i=i.slice(f),this.parseHost(d),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var E=this.hostname.split(/\./);for(n=0,r=E.length;n<r;n++){var D=E[n];if(D&&!D.match(zn)){for(var C="",w=0,S=D.length;w<S;w++)D.charCodeAt(w)>127?C+="x":C+=D[w];if(!C.match(zn)){var T=E.slice(0,n),R=E.slice(n+1),x=D.match(Rs);x&&(T.push(x[1]),R.unshift(x[2])),R.length&&(i=R.join(".")+i),this.hostname=T.join(".");break}}}}this.hostname.length>Ts&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var v=i.indexOf("#");v!==-1&&(this.hash=i.substr(v),i=i.slice(0,v));var V=i.indexOf("?");return V!==-1&&(this.search=i.substr(V),i=i.slice(0,V)),i&&(this.pathname=i),Hn[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ot.prototype.parseHost=function(t){var e=As.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Ls=Ns;Te.encode=ys,Te.decode=xs,Te.format=Es,Te.parse=Ls;var ye={},Nt,jn;function Zn(){return jn||(jn=1,Nt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Nt}var Lt,Wn;function Jn(){return Wn||(Wn=1,Lt=/[\0-\x1F\x7F-\x9F]/),Lt}var Ot,Kn;function Os(){return Kn||(Kn=1,Ot=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ot}var It,Yn;function Qn(){return Yn||(Yn=1,It=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),It}var Xn;function Is(){return Xn||(Xn=1,ye.Any=Zn(),ye.Cc=Jn(),ye.Cf=Os(),ye.P=Rt,ye.Z=Qn()),ye}(function(t){function e(_){return Object.prototype.toString.call(_)}function n(_){return e(_)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(_,P){return r.call(_,P)}function s(_){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function(g){_[g]=I[g]})}}),_}function c(_,P,I){return[].concat(_.slice(0,P),I,_.slice(P+1))}function i(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function a(_){if(_>65535){_-=65536;var P=55296+(_>>10),I=56320+(_&1023);return String.fromCharCode(P,I)}return String.fromCharCode(_)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,f=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(l.source+"|"+f.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=Fn;function y(_,P){var I=0;return o(d,P)?d[P]:P.charCodeAt(0)===35&&h.test(P)&&(I=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),i(I))?a(I):_}function E(_){return _.indexOf("\\")<0?_:_.replace(l,"$1")}function D(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(p,function(P,I,g){return I||y(P,g)})}var C=/[&<>"]/,w=/[&<>"]/g,S={"&":"&","<":"<",">":">",'"':"""};function T(_){return S[_]}function R(_){return C.test(_)?_.replace(w,T):_}var x=/[.?*+^$[\]\\(){}|-]/g;function v(_){return _.replace(x,"\\$&")}function V(_){switch(_){case 9:case 32:return!0}return!1}function $(_){if(_>=8192&&_<=8202)return!0;switch(_){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var m=Rt;function b(_){return m.test(_)}function M(_){switch(_){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(_){return _=_.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(_=_.replace(/ẞ/g,"ß")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Te,t.lib.ucmicro=Is(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=E,t.unescapeAll=D,t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=R,t.arrayReplaceAt=c,t.isSpace=V,t.isWhiteSpace=$,t.isMdAsciiPunct=M,t.isPunctChar=b,t.escapeRE=v,t.normalizeReference=G})(F);var st={},Ms=function(e,n,r){var o,s,c,i,a=-1,l=e.posMax,f=e.pos;for(e.pos=n+1,o=1;e.pos<l;){if(c=e.src.charCodeAt(e.pos),c===93&&(o--,o===0)){s=!0;break}if(i=e.pos,e.md.inline.skipToken(e),c===91){if(i===e.pos-1)o++;else if(r)return e.pos=f,-1}}return s&&(a=e.pos),e.pos=f,a},er=F.unescapeAll,Bs=function(e,n,r){var o,s,c=0,i=n,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(o=e.charCodeAt(n),o===10||o===60)return a;if(o===62)return a.pos=n+1,a.str=er(e.slice(i+1,n)),a.ok=!0,a;if(o===92&&n+1<r){n+=2;continue}n++}return a}for(s=0;n<r&&(o=e.charCodeAt(n),!(o===32||o<32||o===127));){if(o===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(o===40&&(s++,s>32))return a;if(o===41){if(s===0)break;s--}n++}return i===n||s!==0||(a.str=er(e.slice(i,n)),a.lines=c,a.pos=n,a.ok=!0),a},Fs=F.unescapeAll,Ps=function(e,n,r){var o,s,c=0,i=n,a={ok:!1,pos:0,lines:0,str:""};if(n>=r||(s=e.charCodeAt(n),s!==34&&s!==39&&s!==40))return a;for(n++,s===40&&(s=41);n<r;){if(o=e.charCodeAt(n),o===s)return a.pos=n+1,a.lines=c,a.str=Fs(e.slice(i+1,n)),a.ok=!0,a;if(o===40&&s===41)return a;o===10?c++:o===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&c++),n++}return a};st.parseLinkLabel=Ms,st.parseLinkDestination=Bs,st.parseLinkTitle=Ps;var Us=F.assign,Vs=F.unescapeAll,we=F.escapeHtml,ce={};ce.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+we(t[e].content)+"</code>"},ce.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+we(t[e].content)+`</code></pre>
|
|
15
15
|
`},ce.fence=function(t,e,n,r,o){var s=t[e],c=s.info?Vs(s.info).trim():"",i="",a="",l,f,p,h,d;return c&&(p=c.split(/(\s+)/g),i=p[0],a=p.slice(2).join("")),n.highlight?l=n.highlight(s.content,i,a)||we(s.content):l=we(s.content),l.indexOf("<pre")===0?l+`
|
|
@@ -26,4 +26,4 @@ This will fail in production.`);i=Be,i._s.has(r)||(s?Tt(r,e,o,i):Nn(r,o,i),proce
|
|
|
26
26
|
`);return r},Re.prototype.render=function(t,e,n){var r,o,s,c="",i=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?c+=this.renderInline(t[r].children,e,n):typeof i[s]<"u"?c+=i[t[r].type](t,r,e,n,this):c+=this.renderToken(t,r,e,n);return c};var $s=Re;function re(){this.__rules__=[],this.__cache__=null}re.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},re.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},re.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null},re.prototype.before=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},re.prototype.after=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},re.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},re.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},re.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},re.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},re.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Mt=re,zs=/\r\n?|\n/g,Gs=/\0/g,Hs=function(e){var n;n=e.src.replace(zs,`
|
|
27
27
|
`),n=n.replace(Gs,"�"),e.src=n},js=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Zs=function(e){var n=e.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Ws=F.arrayReplaceAt;function Js(t){return/^<a[>\s]/i.test(t)}function Ks(t){return/^<\/a\s*>/i.test(t)}var Ys=function(e){var n,r,o,s,c,i,a,l,f,p,h,d,y,E,D,C,w=e.tokens,S;if(e.md.options.linkify){for(r=0,o=w.length;r<o;r++)if(!(w[r].type!=="inline"||!e.md.linkify.pretest(w[r].content)))for(s=w[r].children,y=0,n=s.length-1;n>=0;n--){if(i=s[n],i.type==="link_close"){for(n--;s[n].level!==i.level&&s[n].type!=="link_open";)n--;continue}if(i.type==="html_inline"&&(Js(i.content)&&y>0&&y--,Ks(i.content)&&y++),!(y>0)&&i.type==="text"&&e.md.linkify.test(i.content)){for(f=i.content,S=e.md.linkify.match(f),a=[],d=i.level,h=0,l=0;l<S.length;l++)E=S[l].url,D=e.md.normalizeLink(E),e.md.validateLink(D)&&(C=S[l].text,S[l].schema?S[l].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),p=S[l].index,p>h&&(c=new e.Token("text","",0),c.content=f.slice(h,p),c.level=d,a.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",D]],c.level=d++,c.markup="linkify",c.info="auto",a.push(c),c=new e.Token("text","",0),c.content=C,c.level=d,a.push(c),c=new e.Token("link_close","a",-1),c.level=--d,c.markup="linkify",c.info="auto",a.push(c),h=S[l].lastIndex);h<f.length&&(c=new e.Token("text","",0),c.content=f.slice(h),c.level=d,a.push(c)),w[r].children=s=Ws(s,n,a)}}}},tr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qs=/\((c|tm|r|p)\)/i,Xs=/\((c|tm|r|p)\)/ig,ec={c:"©",r:"®",p:"§",tm:"™"};function tc(t,e){return ec[e.toLowerCase()]}function nc(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(Xs,tc)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function rc(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&tr.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var oc=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Qs.test(e.tokens[n].content)&&nc(e.tokens[n].children),tr.test(e.tokens[n].content)&&rc(e.tokens[n].children))},nr=F.isWhiteSpace,rr=F.isPunctChar,or=F.isMdAsciiPunct,sc=/['"]/,sr=/['"]/g,cr="’";function ct(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function cc(t,e){var n,r,o,s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x;for(T=[],n=0;n<t.length;n++){for(r=t[n],a=t[n].level,w=T.length-1;w>=0&&!(T[w].level<=a);w--);if(T.length=w+1,r.type==="text"){o=r.content,c=0,i=o.length;e:for(;c<i&&(sr.lastIndex=c,s=sr.exec(o),!!s);){if(D=C=!0,c=s.index+1,S=s[0]==="'",f=32,s.index-1>=0)f=o.charCodeAt(s.index-1);else for(w=n-1;w>=0&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w--)if(t[w].content){f=t[w].content.charCodeAt(t[w].content.length-1);break}if(p=32,c<i)p=o.charCodeAt(c);else for(w=n+1;w<t.length&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w++)if(t[w].content){p=t[w].content.charCodeAt(0);break}if(h=or(f)||rr(String.fromCharCode(f)),d=or(p)||rr(String.fromCharCode(p)),y=nr(f),E=nr(p),E?D=!1:d&&(y||h||(D=!1)),y?C=!1:h&&(E||d||(C=!1)),p===34&&s[0]==='"'&&f>=48&&f<=57&&(C=D=!1),D&&C&&(D=h,C=d),!D&&!C){S&&(r.content=ct(r.content,s.index,cr));continue}if(C){for(w=T.length-1;w>=0&&(l=T[w],!(T[w].level<a));w--)if(l.single===S&&T[w].level===a){l=T[w],S?(R=e.md.options.quotes[2],x=e.md.options.quotes[3]):(R=e.md.options.quotes[0],x=e.md.options.quotes[1]),r.content=ct(r.content,s.index,x),t[l.token].content=ct(t[l.token].content,l.pos,R),c+=x.length-1,l.token===n&&(c+=R.length-1),o=r.content,i=o.length,T.length=w;continue e}}D?T.push({token:n,pos:s.index,single:S,level:a}):C&&S&&(r.content=ct(r.content,s.index,cr))}}}}var ic=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!sc.test(e.tokens[n].content)||cc(e.tokens[n].children,e)};function Ne(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ne.prototype.attrIndex=function(e){var n,r,o;if(!this.attrs)return-1;for(n=this.attrs,r=0,o=n.length;r<o;r++)if(n[r][0]===e)return r;return-1},Ne.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ne.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},Ne.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},Ne.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var Bt=Ne,ac=Bt;function ir(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}ir.prototype.Token=ac;var lc=ir,uc=Mt,Ft=[["normalize",Hs],["block",js],["inline",Zs],["linkify",Ys],["replacements",oc],["smartquotes",ic]];function Pt(){this.ruler=new uc;for(var t=0;t<Ft.length;t++)this.ruler.push(Ft[t][0],Ft[t][1])}Pt.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},Pt.prototype.State=lc;var fc=Pt,Ut=F.isSpace;function Vt(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function ar(t){var e=[],n=0,r=t.length,o,s=!1,c=0,i="";for(o=t.charCodeAt(n);n<r;)o===124&&(s?(i+=t.substring(c,n-1),c=n):(e.push(i+t.substring(c,n)),i="",c=n+1)),s=o===92,n++,o=t.charCodeAt(n);return e.push(i+t.substring(c)),e}var pc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x;if(n+2>r||(f=n+1,e.sCount[f]<e.blkIndent)||e.sCount[f]-e.blkIndent>=4||(i=e.bMarks[f]+e.tShift[f],i>=e.eMarks[f])||(R=e.src.charCodeAt(i++),R!==124&&R!==45&&R!==58)||i>=e.eMarks[f]||(x=e.src.charCodeAt(i++),x!==124&&x!==45&&x!==58&&!Ut(x))||R===45&&Ut(x))return!1;for(;i<e.eMarks[f];){if(s=e.src.charCodeAt(i),s!==124&&s!==45&&s!==58&&!Ut(s))return!1;i++}for(c=Vt(e,n+1),p=c.split("|"),y=[],a=0;a<p.length;a++){if(E=p[a].trim(),!E){if(a===0||a===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?y.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?y.push("left"):y.push("")}if(c=Vt(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=ar(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),h=p.length,h===0||h!==y.length))return!1;if(o)return!0;for(w=e.parentType,e.parentType="table",T=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=D=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],a=0;a<p.length;a++)d=e.push("th_open","th",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=p[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),f=n+2;f<r&&!(e.sCount[f]<e.blkIndent);f++){for(S=!1,a=0,l=T.length;a<l;a++)if(T[a](e,f,r,!0)){S=!0;break}if(S||(c=Vt(e,f).trim(),!c)||e.sCount[f]-e.blkIndent>=4)break;for(p=ar(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f===n+2&&(d=e.push("tbody_open","tbody",1),d.map=C=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[f,f+1],a=0;a<h;a++)d=e.push("td_open","td",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=p[a]?p[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return C&&(d=e.push("tbody_close","tbody",-1),C[1]=f),d=e.push("table_close","table",-1),D[1]=f,e.parentType=w,e.line=f,!0},hc=function(e,n,r){var o,s,c;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,c=e.push("code_block","code",0),c.content=e.getLines(n,s,4+e.blkIndent,!1)+`
|
|
28
28
|
`,c.map=[n,e.line],!0},dc=function(e,n,r,o){var s,c,i,a,l,f,p,h=!1,d=e.bMarks[n]+e.tShift[n],y=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>y||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(l=d,d=e.skipChars(d,s),c=d-l,c<3)||(p=e.src.slice(l,d),i=e.src.slice(d,y),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(d=l=e.bMarks[a]+e.tShift[a],y=e.eMarks[a],d<y&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-l<c)&&(d=e.skipSpaces(d),!(d<y)))){h=!0;break}return c=e.sCount[n],e.line=a+(h?1:0),f=e.push("fence","code",0),f.info=i,f.content=e.getLines(n+1,a,c,!0),f.markup=p,f.map=[n,e.line],!0},lr=F.isSpace,gc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x,v,V,$=e.lineMax,m=e.bMarks[n]+e.tShift[n],b=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(m++)!==62)return!1;if(o)return!0;for(a=d=e.sCount[n]+1,e.src.charCodeAt(m)===32?(m++,a++,d++,s=!1,T=!0):e.src.charCodeAt(m)===9?(T=!0,(e.bsCount[n]+d)%4===3?(m++,a++,d++,s=!1):s=!0):T=!1,y=[e.bMarks[n]],e.bMarks[n]=m;m<b&&(c=e.src.charCodeAt(m),lr(c));){c===9?d+=4-(d+e.bsCount[n]+(s?1:0))%4:d++;m++}for(E=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(T?1:0),f=m>=b,w=[e.sCount[n]],e.sCount[n]=d-a,S=[e.tShift[n]],e.tShift[n]=m-e.bMarks[n],x=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",h=n+1;h<r&&(V=e.sCount[h]<e.blkIndent,m=e.bMarks[h]+e.tShift[h],b=e.eMarks[h],!(m>=b));h++){if(e.src.charCodeAt(m++)===62&&!V){for(a=d=e.sCount[h]+1,e.src.charCodeAt(m)===32?(m++,a++,d++,s=!1,T=!0):e.src.charCodeAt(m)===9?(T=!0,(e.bsCount[h]+d)%4===3?(m++,a++,d++,s=!1):s=!0):T=!1,y.push(e.bMarks[h]),e.bMarks[h]=m;m<b&&(c=e.src.charCodeAt(m),lr(c));){c===9?d+=4-(d+e.bsCount[h]+(s?1:0))%4:d++;m++}f=m>=b,E.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(T?1:0),w.push(e.sCount[h]),e.sCount[h]=d-a,S.push(e.tShift[h]),e.tShift[h]=m-e.bMarks[h];continue}if(f)break;for(R=!1,i=0,l=x.length;i<l;i++)if(x[i](e,h,r,!0)){R=!0;break}if(R){e.lineMax=h,e.blkIndent!==0&&(y.push(e.bMarks[h]),E.push(e.bsCount[h]),S.push(e.tShift[h]),w.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}y.push(e.bMarks[h]),E.push(e.bsCount[h]),S.push(e.tShift[h]),w.push(e.sCount[h]),e.sCount[h]=-1}for(D=e.blkIndent,e.blkIndent=0,v=e.push("blockquote_open","blockquote",1),v.markup=">",v.map=p=[n,0],e.md.block.tokenize(e,n,h),v=e.push("blockquote_close","blockquote",-1),v.markup=">",e.lineMax=$,e.parentType=C,p[1]=e.line,i=0;i<S.length;i++)e.bMarks[i+n]=y[i],e.tShift[i+n]=S[i],e.sCount[i+n]=w[i],e.bsCount[i+n]=E[i];return e.blkIndent=D,!0},mc=F.isSpace,bc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(c=1;l<f;){if(i=e.src.charCodeAt(l++),i!==s&&!mc(i))return!1;i===s&&c++}return c<3?!1:(o||(e.line=n+1,a=e.push("hr","hr",0),a.map=[n,e.line],a.markup=Array(c+1).join(String.fromCharCode(s))),!0)},ur=F.isSpace;function fr(t,e){var n,r,o,s;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(s=t.src.charCodeAt(r),!ur(s))?-1:r}function pr(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,s=t.eMarks[e];if(o+1>=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<s&&(n=t.src.charCodeAt(o),!ur(n))?-1:o}function _c(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var kc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x,v,V,$,m,b,M,G,_,P,I,g=!1,k=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(g=!0),(b=pr(e,n))>=0){if(p=!0,G=e.bMarks[n]+e.tShift[n],C=Number(e.src.slice(G,b-1)),g&&C!==1)return!1}else if((b=fr(e,n))>=0)p=!1;else return!1;if(g&&e.skipSpaces(b)>=e.eMarks[n])return!1;if(D=e.src.charCodeAt(b-1),o)return!0;for(E=e.tokens.length,p?(I=e.push("ordered_list_open","ol",1),C!==1&&(I.attrs=[["start",C]])):I=e.push("bullet_list_open","ul",1),I.map=y=[n,0],I.markup=String.fromCharCode(D),S=n,M=!1,P=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";S<r;){for(m=b,w=e.eMarks[S],f=T=e.sCount[S]+b-(e.bMarks[n]+e.tShift[n]);m<w;){if(s=e.src.charCodeAt(m),s===9)T+=4-(T+e.bsCount[S])%4;else if(s===32)T++;else break;m++}if(c=m,c>=w?l=1:l=T-f,l>4&&(l=1),a=f+l,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(D),I.map=h=[n,0],p&&(I.info=e.src.slice(G,b-1)),$=e.tight,V=e.tShift[n],v=e.sCount[n],R=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=T,c>=w&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||M)&&(k=!1),M=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[n]=V,e.sCount[n]=v,e.tight=$,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(D),S=n=e.line,h[1]=S,c=e.bMarks[n],S>=r||e.sCount[S]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(_=!1,i=0,d=P.length;i<d;i++)if(P[i](e,S,r,!0)){_=!0;break}if(_)break;if(p){if(b=pr(e,S),b<0)break;G=e.bMarks[S]+e.tShift[S]}else if(b=fr(e,S),b<0)break;if(D!==e.src.charCodeAt(b-1))break}return p?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(D),y[1]=S,e.line=S,e.parentType=x,k&&_c(e,E),!0},yc=F.normalizeReference,it=F.isSpace,wc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R=0,x=e.bMarks[n]+e.tShift[n],v=e.eMarks[n],V=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<v;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===v||e.src.charCodeAt(x+1)!==58)return!1;break}for(a=e.lineMax,S=e.md.block.ruler.getRules("reference"),y=e.parentType,e.parentType="reference";V<a&&!e.isEmpty(V);V++)if(!(e.sCount[V]-e.blkIndent>3)&&!(e.sCount[V]<0)){for(w=!1,f=0,p=S.length;f<p;f++)if(S[f](e,V,a,!0)){w=!0;break}if(w)break}for(C=e.getLines(n,V,e.blkIndent,!1).trim(),v=C.length,x=1;x<v;x++){if(s=C.charCodeAt(x),s===91)return!1;if(s===93){d=x;break}else s===10?R++:s===92&&(x++,x<v&&C.charCodeAt(x)===10&&R++)}if(d<0||C.charCodeAt(d+1)!==58)return!1;for(x=d+2;x<v;x++)if(s=C.charCodeAt(x),s===10)R++;else if(!it(s))break;if(E=e.md.helpers.parseLinkDestination(C,x,v),!E.ok||(l=e.md.normalizeLink(E.str),!e.md.validateLink(l)))return!1;for(x=E.pos,R+=E.lines,c=x,i=R,D=x;x<v;x++)if(s=C.charCodeAt(x),s===10)R++;else if(!it(s))break;for(E=e.md.helpers.parseLinkTitle(C,x,v),x<v&&D!==x&&E.ok?(T=E.str,x=E.pos,R+=E.lines):(T="",x=c,R=i);x<v&&(s=C.charCodeAt(x),!!it(s));)x++;if(x<v&&C.charCodeAt(x)!==10&&T)for(T="",x=c,R=i;x<v&&(s=C.charCodeAt(x),!!it(s));)x++;return x<v&&C.charCodeAt(x)!==10||(h=yc(C.slice(1,d)),!h)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:T,href:l}),e.parentType=y,e.line=n+R+1),!0)},xc=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at={},Ec="[a-zA-Z_:][a-zA-Z0-9:._-]*",vc="[^\"'=<>`\\x00-\\x20]+",Ac="'[^']*'",Cc='"[^"]*"',Sc="(?:"+vc+"|"+Ac+"|"+Cc+")",Dc="(?:\\s+"+Ec+"(?:\\s*=\\s*"+Sc+")?)",hr="<[A-Za-z][A-Za-z0-9\\-]*"+Dc+"*\\s*\\/?>",dr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qc="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Tc="<[?][\\s\\S]*?[?]>",Rc="<![A-Z]+\\s+[^>]*>",Nc="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Lc=new RegExp("^(?:"+hr+"|"+dr+"|"+qc+"|"+Tc+"|"+Rc+"|"+Nc+")"),Oc=new RegExp("^(?:"+hr+"|"+dr+")");at.HTML_TAG_RE=Lc,at.HTML_OPEN_CLOSE_TAG_RE=Oc;var Ic=xc,Mc=at.HTML_OPEN_CLOSE_TAG_RE,Le=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ic.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mc.source+"\\s*$"),/^$/,!1]],Bc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(a=e.src.slice(l,f),s=0;s<Le.length&&!Le[s][0].test(a);s++);if(s===Le.length)return!1;if(o)return Le[s][2];if(c=n+1,!Le[s][1].test(a)){for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],f=e.eMarks[c],a=e.src.slice(l,f),Le[s][1].test(a)){a.length!==0&&c++;break}}return e.line=c,i=e.push("html_block","",0),i.map=[n,c],i.content=e.getLines(n,c,e.blkIndent,!0),!0},gr=F.isSpace,Fc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=f))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<f&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<f&&!gr(s)?!1:(o||(f=e.skipSpacesBack(f,l),i=e.skipCharsBack(f,35,l),i>l&&gr(e.src.charCodeAt(i-1))&&(f=i),e.line=n+1,a=e.push("heading_open","h"+String(c),1),a.markup="########".slice(0,c),a.map=[n,e.line],a=e.push("inline","",0),a.content=e.src.slice(l,f).trim(),a.map=[n,e.line],a.children=[],a=e.push("heading_close","h"+String(c),-1),a.markup="########".slice(0,c)),!0)},Pc=function(e,n,r){var o,s,c,i,a,l,f,p,h,d=n+1,y,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(y=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d],f=e.eMarks[d],l<f&&(h=e.src.charCodeAt(l),(h===45||h===61)&&(l=e.skipChars(l,h),l=e.skipSpaces(l),l>=f)))){p=h===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,c=0,i=E.length;c<i;c++)if(E[c](e,d,r,!0)){s=!0;break}if(s)break}}return p?(o=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,a=e.push("heading_open","h"+String(p),1),a.markup=String.fromCharCode(h),a.map=[n,e.line],a=e.push("inline","",0),a.content=o,a.map=[n,e.line-1],a.children=[],a=e.push("heading_close","h"+String(p),-1),a.markup=String.fromCharCode(h),e.parentType=y,!0):!1},Uc=function(e,n){var r,o,s,c,i,a,l=n+1,f=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<p&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(o=!1,s=0,c=f.length;s<c;s++)if(f[s](e,l,p,!0)){o=!0;break}if(o)break}return r=e.getLines(n,l,e.blkIndent,!1).trim(),e.line=l,i=e.push("paragraph_open","p",1),i.map=[n,e.line],i=e.push("inline","",0),i.content=r,i.map=[n,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=a,!0},mr=Bt,lt=F.isSpace;function ie(t,e,n,r){var o,s,c,i,a,l,f,p;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,p=!1,c=i=l=f=0,a=s.length;i<a;i++){if(o=s.charCodeAt(i),!p)if(lt(o)){l++,o===9?f+=4-f%4:f++;continue}else p=!0;(o===10||i===a-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),p=!1,l=0,f=0,c=i+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ie.prototype.push=function(t,e,n){var r=new mr(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ie.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ie.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ie.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!lt(n));e++);return e},ie.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!lt(this.src.charCodeAt(--e)))return e+1;return e},ie.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},ie.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},ie.prototype.getLines=function(e,n,r,o){var s,c,i,a,l,f,p,h=e;if(e>=n)return"";for(f=new Array(n-e),s=0;h<n;h++,s++){for(c=0,p=a=this.bMarks[h],h+1<n||o?l=this.eMarks[h]+1:l=this.eMarks[h];a<l&&c<r;){if(i=this.src.charCodeAt(a),lt(i))i===9?c+=4-(c+this.bsCount[h])%4:c++;else if(a-p<this.tShift[h])c++;else break;a++}c>r?f[s]=new Array(c-r+1).join(" ")+this.src.slice(a,l):f[s]=this.src.slice(a,l)}return f.join("")},ie.prototype.Token=mr;var Vc=ie,$c=Mt,ut=[["table",pc,["paragraph","reference"]],["code",hc],["fence",dc,["paragraph","reference","blockquote","list"]],["blockquote",gc,["paragraph","reference","blockquote","list"]],["hr",bc,["paragraph","reference","blockquote","list"]],["list",kc,["paragraph","reference","blockquote"]],["reference",wc],["html_block",Bc,["paragraph","reference","blockquote"]],["heading",Fc,["paragraph","reference","blockquote"]],["lheading",Pc],["paragraph",Uc]];function ft(){this.ruler=new $c;for(var t=0;t<ut.length;t++)this.ruler.push(ut[t][0],ut[t][1],{alt:(ut[t][2]||[]).slice()})}ft.prototype.tokenize=function(t,e,n){for(var r,o,s=this.ruler.getRules(""),c=s.length,i=e,a=!1,l=t.md.options.maxNesting;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n||t.sCount[i]<t.blkIndent));){if(t.level>=l){t.line=n;break}for(o=0;o<c&&(r=s[o](t,i,n,!1),!r);o++);t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),i=t.line,i<n&&t.isEmpty(i)&&(a=!0,i++,t.line=i)}},ft.prototype.parse=function(t,e,n,r){var o;t&&(o=new this.State(t,e,n,r),this.tokenize(o,o.line,o.lineMax))},ft.prototype.State=Vc;var zc=ft;function Gc(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Hc=function(e,n){for(var r=e.pos;r<e.posMax&&!Gc(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},jc=F.isSpace,Zc=function(e,n){var r,o,s,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(r=e.pending.length-1,o=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(c++;c<o&&jc(e.src.charCodeAt(c));)c++;return e.pos=c,!0},Wc=F.isSpace,$t=[],br=0;br<256;br++)$t.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){$t[t.charCodeAt(0)]=1});var Jc=function(e,n){var r,o=e.pos,s=e.posMax;if(e.src.charCodeAt(o)!==92)return!1;if(o++,o<s){if(r=e.src.charCodeAt(o),r<256&&$t[r]!==0)return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),o++;o<s&&(r=e.src.charCodeAt(o),!!Wc(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},Kc=function(e,n){var r,o,s,c,i,a,l,f,p=e.pos,h=e.src.charCodeAt(p);if(h!==96)return!1;for(r=p,p++,o=e.posMax;p<o&&e.src.charCodeAt(p)===96;)p++;if(s=e.src.slice(r,p),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=r)return n||(e.pending+=s),e.pos+=l,!0;for(i=a=p;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(f=a-i,f===l)return n||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(p,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[f]=i}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=l,!0},pt={};pt.tokenize=function(e,n){var r,o,s,c,i,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==126||(o=e.scanDelims(e.pos,!0),c=o.length,i=String.fromCharCode(l),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=i,c--),r=0;r<c;r+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function _r(t,e){var n,r,o,s,c,i=[],a=e.length;for(n=0;n<a;n++)o=e[n],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1));for(;i.length;){for(n=i.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(c=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=c)}}pt.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(_r(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&_r(e,r[n].delimiters)};var ht={};ht.tokenize=function(e,n){var r,o,s,c=e.pos,i=e.src.charCodeAt(c);if(n||i!==95&&i!==42)return!1;for(o=e.scanDelims(e.pos,i===42),r=0;r<o.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function kr(t,e){var n,r,o,s,c,i,a=e.length;for(n=a-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="",s=t.tokens[o.token],s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?c+c:c,s.content="",i&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}ht.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(kr(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&kr(e,r[n].delimiters)};var Yc=F.normalizeReference,zt=F.isSpace,Qc=function(e,n){var r,o,s,c,i,a,l,f,p,h="",d="",y=e.pos,E=e.posMax,D=e.pos,C=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(a=c+1,a<E&&e.src.charCodeAt(a)===40){for(C=!1,a++;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);if(a>=E)return!1;if(D=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(h=e.md.normalizeLink(l.str),e.md.validateLink(h)?a=l.pos:h="",D=a;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<E&&D!==a&&l.ok)for(d=l.str,a=l.pos;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);}(a>=E||e.src.charCodeAt(a)!==41)&&(C=!0),a++}if(C){if(typeof e.env.references>"u")return!1;if(a<E&&e.src.charCodeAt(a)===91?(D=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(D,a++):a=c+1):a=c+1,s||(s=e.src.slice(i,c)),f=e.env.references[Yc(s)],!f)return e.pos=y,!1;h=f.href,d=f.title}return n||(e.pos=i,e.posMax=c,p=e.push("link_open","a",1),p.attrs=r=[["href",h]],d&&r.push(["title",d]),e.md.inline.tokenize(e),p=e.push("link_close","a",-1)),e.pos=a,e.posMax=E,!0},Xc=F.normalizeReference,Gt=F.isSpace,ei=function(e,n){var r,o,s,c,i,a,l,f,p,h,d,y,E,D="",C=e.pos,w=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(l=i+1,l<w&&e.src.charCodeAt(l)===40){for(l++;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);if(l>=w)return!1;for(E=l,p=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),p.ok&&(D=e.md.normalizeLink(p.str),e.md.validateLink(D)?l=p.pos:D=""),E=l;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);if(p=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<w&&E!==l&&p.ok)for(h=p.str,l=p.pos;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);else h="";if(l>=w||e.src.charCodeAt(l)!==41)return e.pos=C,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<w&&e.src.charCodeAt(l)===91?(E=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(E,l++):l=i+1):l=i+1,c||(c=e.src.slice(a,i)),f=e.env.references[Xc(c)],!f)return e.pos=C,!1;D=f.href,h=f.title}return n||(s=e.src.slice(a,i),e.md.inline.parse(s,e.md,e.env,y=[]),d=e.push("image","img",0),d.attrs=r=[["src",D],["alt",""]],d.children=y,d.content=s,h&&r.push(["title",h])),e.pos=l,e.posMax=w,!0},ti=/^([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])?)*)$/,ni=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ri=function(e,n){var r,o,s,c,i,a,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(i=e.pos,a=e.posMax;;){if(++l>=a||(c=e.src.charCodeAt(l),c===60))return!1;if(c===62)break}return r=e.src.slice(i+1,l),ni.test(r)?(o=e.md.normalizeLink(r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):ti.test(r)?(o=e.md.normalizeLink("mailto:"+r),e.md.validateLink(o)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},oi=at.HTML_TAG_RE;function si(t){var e=t|32;return e>=97&&e<=122}var ci=function(e,n){var r,o,s,c,i=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(i)!==60||i+2>=s)||(r=e.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!si(r))||(o=e.src.slice(i).match(oi),!o)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(i,i+o[0].length)),e.pos+=o[0].length,!0)},yr=Fn,ii=F.has,ai=F.isValidEntityCode,wr=F.fromCodePoint,li=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ui=/^&([a-z][a-z0-9]{1,31});/i,fi=function(e,n){var r,o,s,c=e.pos,i=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<i){if(r=e.src.charCodeAt(c+1),r===35){if(s=e.src.slice(c).match(li),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=ai(o)?wr(o):wr(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(ui),s&&ii(yr,s[1]))return n||(e.pending+=yr[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function xr(t,e){var n,r,o,s,c,i,a,l,f={},p=e.length;if(p){var h=0,d=-2,y=[];for(n=0;n<p;n++)if(o=e[n],y.push(0),(e[h].marker!==o.marker||d!==o.token-1)&&(h=n),d=o.token,o.length=o.length||0,!!o.close){for(f.hasOwnProperty(o.marker)||(f[o.marker]=[-1,-1,-1,-1,-1,-1]),c=f[o.marker][(o.open?3:0)+o.length%3],r=h-y[h]-1,i=r;r>c;r-=y[r]+1)if(s=e[r],s.marker===o.marker&&s.open&&s.end<0&&(a=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(a=!0),!a)){l=r>0&&!e[r-1].open?y[r-1]+1:0,y[n]=n-r+l,y[r]=l,o.open=!1,s.end=n,s.close=!1,i=-1,d=-2;break}i!==-1&&(f[o.marker][(o.open?3:0)+(o.length||0)%3]=i)}}}var pi=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(xr(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&xr(e,r[n].delimiters)},hi=function(e){var n,r,o=0,s=e.tokens,c=e.tokens.length;for(n=r=0;n<c;n++)s[n].nesting<0&&o--,s[n].level=o,s[n].nesting>0&&o++,s[n].type==="text"&&n+1<c&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)},Ht=Bt,Er=F.isWhiteSpace,vr=F.isPunctChar,Ar=F.isMdAsciiPunct;function $e(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}$e.prototype.pushPending=function(){var t=new Ht("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},$e.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Ht(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},$e.prototype.scanDelims=function(t,e){var n=t,r,o,s,c,i,a,l,f,p,h=!0,d=!0,y=this.posMax,E=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<y&&this.src.charCodeAt(n)===E;)n++;return s=n-t,o=n<y?this.src.charCodeAt(n):32,l=Ar(r)||vr(String.fromCharCode(r)),p=Ar(o)||vr(String.fromCharCode(o)),a=Er(r),f=Er(o),f?h=!1:p&&(a||l||(h=!1)),a?d=!1:l&&(f||p||(d=!1)),e?(c=h,i=d):(c=h&&(!d||l),i=d&&(!h||p)),{can_open:c,can_close:i,length:s}},$e.prototype.Token=Ht;var di=$e,Cr=Mt,jt=[["text",Hc],["newline",Zc],["escape",Jc],["backticks",Kc],["strikethrough",pt.tokenize],["emphasis",ht.tokenize],["link",Qc],["image",ei],["autolink",ri],["html_inline",ci],["entity",fi]],Zt=[["balance_pairs",pi],["strikethrough",pt.postProcess],["emphasis",ht.postProcess],["text_collapse",hi]];function ze(){var t;for(this.ruler=new Cr,t=0;t<jt.length;t++)this.ruler.push(jt[t][0],jt[t][1]);for(this.ruler2=new Cr,t=0;t<Zt.length;t++)this.ruler2.push(Zt[t][0],Zt[t][1])}ze.prototype.skipToken=function(t){var e,n,r=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,i=t.cache;if(typeof i[r]<"u"){t.pos=i[r];return}if(t.level<c)for(n=0;n<s&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,i[r]=t.pos},ze.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),o=r.length,s=t.posMax,c=t.md.options.maxNesting;t.pos<s;){if(t.level<c)for(n=0;n<o&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},ze.prototype.parse=function(t,e,n,r){var o,s,c,i=new this.State(t,e,n,r);for(this.tokenize(i),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](i)},ze.prototype.State=di;var gi=ze,Wt,Sr;function mi(){return Sr||(Sr=1,Wt=function(t){var e={};e.src_Any=Zn().source,e.src_Cc=Jn().source,e.src_Z=Qn().source,e.src_P=Rt.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Wt}function Jt(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function dt(t){return Object.prototype.toString.call(t)}function bi(t){return dt(t)==="[object String]"}function _i(t){return dt(t)==="[object Object]"}function ki(t){return dt(t)==="[object RegExp]"}function Dr(t){return dt(t)==="[object Function]"}function yi(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var qr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wi(t){return Object.keys(t||{}).reduce(function(e,n){return e||qr.hasOwnProperty(n)},!1)}var xi={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Ei="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",vi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ai(t){t.__index__=-1,t.__text_cache__=""}function Ci(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Tr(){return function(t,e){e.normalize(t)}}function gt(t){var e=t.re=mi()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Ei),n.push(e.src_xn),e.src_tlds=n.join("|");function r(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(t.__schemas__).forEach(function(i){var a=t.__schemas__[i];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[i]=l,_i(a)){ki(a.validate)?l.validate=Ci(a.validate):Dr(a.validate)?l.validate=a.validate:s(i,a),Dr(a.normalize)?l.normalize=a.normalize:a.normalize?s(i,a):l.normalize=Tr();return}if(bi(a)){o.push(i);return}s(i,a)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Tr()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(yi).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Ai(t)}function Si(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function Rr(t,e){var n=new Si(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ee(t,e){if(!(this instanceof ee))return new ee(t,e);e||wi(t)&&(e=t,t={}),this.__opts__=Jt({},qr,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jt({},xi,t),this.__compiled__={},this.__tlds__=vi,this.__tlds_replaced__=!1,this.re={},gt(this)}ee.prototype.add=function(e,n){return this.__schemas__[e]=n,gt(this),this},ee.prototype.set=function(e){return this.__opts__=Jt(this.__opts__,e),this},ee.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,o,s,c,i,a,l,f;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(n=a.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],a.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=r.index+r[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=e.indexOf("@"),f>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=i))),this.__index__>=0},ee.prototype.pretest=function(e){return this.re.pretest.test(e)},ee.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},ee.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Rr(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(Rr(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},ee.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,s){return r!==s[o-1]}).reverse(),gt(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,gt(this),this)},ee.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},ee.prototype.onCompile=function(){};var Di=ee;const Oe=2147483647,ae=36,Kt=1,Ge=26,qi=38,Ti=700,Nr=72,Lr=128,Or="-",Ri=/^xn--/,Ni=/[^\0-\x7E]/,Li=/[\x2E\u3002\uFF0E\uFF61]/g,Oi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Yt=ae-Kt,le=Math.floor,Qt=String.fromCharCode;function xe(t){throw new RangeError(Oi[t])}function Ii(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Ir(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(Li,".");const o=t.split("."),s=Ii(o,e).join(".");return r+s}function Xt(t){const e=[];let n=0;const r=t.length;for(;n<r;){const o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}const Mr=t=>String.fromCodePoint(...t),Mi=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:ae},Br=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Fr=function(t,e,n){let r=0;for(t=n?le(t/Ti):t>>1,t+=le(t/e);t>Yt*Ge>>1;r+=ae)t=le(t/Yt);return le(r+(Yt+1)*t/(t+qi))},en=function(t){const e=[],n=t.length;let r=0,o=Lr,s=Nr,c=t.lastIndexOf(Or);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&xe("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<n;){let a=r;for(let f=1,p=ae;;p+=ae){i>=n&&xe("invalid-input");const h=Mi(t.charCodeAt(i++));(h>=ae||h>le((Oe-r)/f))&&xe("overflow"),r+=h*f;const d=p<=s?Kt:p>=s+Ge?Ge:p-s;if(h<d)break;const y=ae-d;f>le(Oe/y)&&xe("overflow"),f*=y}const l=e.length+1;s=Fr(r-a,l,a==0),le(r/l)>Oe-o&&xe("overflow"),o+=le(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},tn=function(t){const e=[];t=Xt(t);let n=t.length,r=Lr,o=0,s=Nr;for(const a of t)a<128&&e.push(Qt(a));let c=e.length,i=c;for(c&&e.push(Or);i<n;){let a=Oe;for(const f of t)f>=r&&f<a&&(a=f);const l=i+1;a-r>le((Oe-o)/l)&&xe("overflow"),o+=(a-r)*l,r=a;for(const f of t)if(f<r&&++o>Oe&&xe("overflow"),f===r){let p=o;for(let h=ae;;h+=ae){const d=h<=s?Kt:h>=s+Ge?Ge:h-s;if(p<d)break;const y=p-d,E=ae-d;e.push(Qt(Br(d+y%E,0))),p=le(y/E)}e.push(Qt(Br(p,0))),s=Fr(o,l,i===c),o=0,++i}++o,++r}return e.join("")},Pr=function(t){return Ir(t,function(e){return Ri.test(e)?en(e.slice(4).toLowerCase()):e})},Ur=function(t){return Ir(t,function(e){return Ni.test(e)?"xn--"+tn(e):e})},Bi=_s(Object.freeze(Object.defineProperty({__proto__:null,decode:en,default:{version:"2.1.0",ucs2:{decode:Xt,encode:Mr},decode:en,encode:tn,toASCII:Ur,toUnicode:Pr},encode:tn,toASCII:Ur,toUnicode:Pr,ucs2decode:Xt,ucs2encode:Mr},Symbol.toStringTag,{value:"Module"})));var Fi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Pi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},Ui={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},He=F,Vi=st,$i=$s,zi=fc,Gi=zc,Hi=gi,ji=Di,Ee=Te,Vr=Bi,Zi={default:Fi,zero:Pi,commonmark:Ui},Wi=/^(vbscript|javascript|file|data):/,Ji=/^data:image\/(gif|png|jpeg|webp);/;function Ki(t){var e=t.trim().toLowerCase();return Wi.test(e)?!!Ji.test(e):!0}var $r=["http:","https:","mailto:"];function Yi(t){var e=Ee.parse(t,!0);if(e.hostname&&(!e.protocol||$r.indexOf(e.protocol)>=0))try{e.hostname=Vr.toASCII(e.hostname)}catch{}return Ee.encode(Ee.format(e))}function Qi(t){var e=Ee.parse(t,!0);if(e.hostname&&(!e.protocol||$r.indexOf(e.protocol)>=0))try{e.hostname=Vr.toUnicode(e.hostname)}catch{}return Ee.decode(Ee.format(e),Ee.decode.defaultChars+"%")}function te(t,e){if(!(this instanceof te))return new te(t,e);e||He.isString(t)||(e=t||{},t="default"),this.inline=new Hi,this.block=new Gi,this.core=new zi,this.renderer=new $i,this.linkify=new ji,this.validateLink=Ki,this.normalizeLink=Yi,this.normalizeLinkText=Qi,this.utils=He,this.helpers=He.assign({},Vi),this.options={},this.configure(t),e&&this.set(e)}te.prototype.set=function(t){return He.assign(this.options,t),this},te.prototype.configure=function(t){var e=this,n;if(He.isString(t)&&(n=t,t=Zi[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},te.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},te.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},te.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},te.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},te.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},te.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},te.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Xi=te,ea=Xi;const ta=Bn(ea);var na=u.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1}},data:function(){return{md:null}},computed:{content:function(){var t,e=this.source;return(t=this.md)===null||t===void 0?void 0:t.render(e)}},created:function(){var t;this.md=new ta((t=this.options)!==null&&t!==void 0?t:{})},render:function(){return u.h("div",{innerHTML:this.content})}});const ra=na;function zr(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&zr(n)}),t}class Gr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Hr(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ge(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const oa="</span>",jr=t=>!!t.scope,sa=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class ca{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Hr(e)}openNode(e){if(!jr(e))return;const n=sa(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){jr(e)&&(this.buffer+=oa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Zr=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class nn{constructor(){this.rootNode=Zr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=Zr({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{nn._collapse(n)}))}}class ia extends nn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new ca(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function je(t){return t?typeof t=="string"?t:t.source:null}function Wr(t){return ve("(?=",t,")")}function aa(t){return ve("(?:",t,")*")}function la(t){return ve("(?:",t,")?")}function ve(...t){return t.map(n=>je(n)).join("")}function ua(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function rn(...t){return"("+(ua(t).capture?"":"?:")+t.map(r=>je(r)).join("|")+")"}function Jr(t){return new RegExp(t.toString()+"|").exec("").length-1}function fa(t,e){const n=t&&t.exec(e);return n&&n.index===0}const pa=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function on(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=je(r),c="";for(;s.length>0;){const i=pa.exec(s);if(!i){c+=s;break}c+=s.substring(0,i.index),s=s.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?c+="\\"+String(Number(i[1])+o):(c+=i[0],i[0]==="("&&n++)}return c}).map(r=>`(${r})`).join(e)}const ha=/\b\B/,Kr="[a-zA-Z]\\w*",sn="[a-zA-Z_]\\w*",Yr="\\b\\d+(\\.\\d+)?",Qr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Xr="\\b(0b[01]+)",da="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ga=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=ve(e,/.*\b/,t.binary,/\b.*/)),ge({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Ze={begin:"\\\\[\\s\\S]",relevance:0},ma={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ze]},ba={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ze]},_a={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},mt=function(t,e,n={}){const r=ge({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=rn("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:ve(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ka=mt("//","$"),ya=mt("/\\*","\\*/"),wa=mt("#","$"),xa={scope:"number",begin:Yr,relevance:0},Ea={scope:"number",begin:Qr,relevance:0},va={scope:"number",begin:Xr,relevance:0},Aa={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Ze,{begin:/\[/,end:/\]/,relevance:0,contains:[Ze]}]}]},Ca={scope:"title",begin:Kr,relevance:0},Sa={scope:"title",begin:sn,relevance:0},Da={begin:"\\.\\s*"+sn,relevance:0};var bt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:ha,IDENT_RE:Kr,UNDERSCORE_IDENT_RE:sn,NUMBER_RE:Yr,C_NUMBER_RE:Qr,BINARY_NUMBER_RE:Xr,RE_STARTERS_RE:da,SHEBANG:ga,BACKSLASH_ESCAPE:Ze,APOS_STRING_MODE:ma,QUOTE_STRING_MODE:ba,PHRASAL_WORDS_MODE:_a,COMMENT:mt,C_LINE_COMMENT_MODE:ka,C_BLOCK_COMMENT_MODE:ya,HASH_COMMENT_MODE:wa,NUMBER_MODE:xa,C_NUMBER_MODE:Ea,BINARY_NUMBER_MODE:va,REGEXP_MODE:Aa,TITLE_MODE:Ca,UNDERSCORE_TITLE_MODE:Sa,METHOD_GUARD:Da,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function qa(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function Ta(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Ra(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=qa,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Na(t,e){Array.isArray(t.illegal)&&(t.illegal=rn(...t.illegal))}function La(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function Oa(t,e){t.relevance===void 0&&(t.relevance=1)}const Ia=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=ve(n.beforeMatch,Wr(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},Ma=["of","and","for","in","not","or","if","then","parent","list","value"],Ba="keyword";function eo(t,e,n=Ba){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,eo(t[s],e,s))}),r;function o(s,c){e&&(c=c.map(i=>i.toLowerCase())),c.forEach(function(i){const a=i.split("|");r[a[0]]=[s,Fa(a[0],a[1])]})}}function Fa(t,e){return e?Number(e):Pa(t)?0:1}function Pa(t){return Ma.includes(t.toLowerCase())}const to={},Ae=t=>{console.error(t)},no=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Ie=(t,e)=>{to[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),to[`${t}/${e}`]=!0)},_t=new Error;function ro(t,e,{key:n}){let r=0;const o=t[n],s={},c={};for(let i=1;i<=e.length;i++)c[i+r]=o[i],s[i+r]=!0,r+=Jr(e[i-1]);t[n]=c,t[n]._emit=s,t[n]._multi=!0}function Ua(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_t;if(typeof t.beginScope!="object"||t.beginScope===null)throw Ae("beginScope must be object"),_t;ro(t,t.begin,{key:"beginScope"}),t.begin=on(t.begin,{joinWith:""})}}function Va(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_t;if(typeof t.endScope!="object"||t.endScope===null)throw Ae("endScope must be object"),_t;ro(t,t.end,{key:"endScope"}),t.end=on(t.end,{joinWith:""})}}function $a(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function za(t){$a(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Ua(t),Va(t)}function Ga(t){function e(c,i){return new RegExp(je(c),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(i?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,i]),this.matchAt+=Jr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(a=>a[1]);this.matcherRe=e(on(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(i);if(!a)return null;const l=a.findIndex((p,h)=>h>0&&p!==void 0),f=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,f)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const a=new n;return this.rules.slice(i).forEach(([l,f])=>a.addRule(l,f)),a.compile(),this.multiRegexes[i]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,a){this.rules.push([i,a]),a.type==="begin"&&this.count++}exec(i){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(i);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,l=f.exec(i)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(c){const i=new r;return c.contains.forEach(a=>i.addRule(a.begin,{rule:a,type:"begin"})),c.terminatorEnd&&i.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&i.addRule(c.illegal,{type:"illegal"}),i}function s(c,i){const a=c;if(c.isCompiled)return a;[Ta,La,za,Ia].forEach(f=>f(c,i)),t.compilerExtensions.forEach(f=>f(c,i)),c.__beforeBegin=null,[Ra,Na,Oa].forEach(f=>f(c,i)),c.isCompiled=!0;let l=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),l=c.keywords.$pattern,delete c.keywords.$pattern),l=l||/\w+/,c.keywords&&(c.keywords=eo(c.keywords,t.case_insensitive)),a.keywordPatternRe=e(l,!0),i&&(c.begin||(c.begin=/\B|\b/),a.beginRe=e(a.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(a.endRe=e(a.end)),a.terminatorEnd=je(a.end)||"",c.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(c.end?"|":"")+i.terminatorEnd)),c.illegal&&(a.illegalRe=e(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(f){return Ha(f==="self"?c:f)})),c.contains.forEach(function(f){s(f,a)}),c.starts&&s(c.starts,i),a.matcher=o(a),a}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ge(t.classNameAliases||{}),s(t)}function oo(t){return t?t.endsWithParent||oo(t.starts):!1}function Ha(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ge(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:oo(t)?ge(t,{starts:t.starts?ge(t.starts):null}):Object.isFrozen(t)?ge(t):t}var ja="11.8.0";class Za extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const cn=Hr,so=ge,co=Symbol("nomatch"),Wa=7,io=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ia};function a(g){return i.noHighlightRe.test(g)}function l(g){let k=g.className+" ";k+=g.parentNode?g.parentNode.className:"";const L=i.languageDetectRe.exec(k);if(L){const B=$(L[1]);return B||(no(s.replace("{}",L[1])),no("Falling back to no-highlight mode for this block.",g)),B?L[1]:"no-highlight"}return k.split(/\s+/).find(B=>a(B)||$(B))}function f(g,k,L){let B="",H="";typeof k=="object"?(B=g,L=k.ignoreIllegals,H=k.language):(Ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ie("10.7.0",`Please use highlight(code, options) instead.
|
|
29
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),H=g,B=k),L===void 0&&(L=!0);const Y={code:B,language:H};P("before:highlight",Y);const oe=Y.result?Y.result:p(Y.language,Y.code,L);return oe.code=Y.code,P("after:highlight",oe),oe}function p(g,k,L,B){const H=Object.create(null);function Y(A,q){return A.keywords[q]}function oe(){if(!N.keywords){W.addText(z);return}let A=0;N.keywordPatternRe.lastIndex=0;let q=N.keywordPatternRe.exec(z),O="";for(;q;){O+=z.substring(A,q.index);const U=fe.case_insensitive?q[0].toLowerCase():q[0],K=Y(N,U);if(K){const[he,Ul]=K;if(W.addText(O),O="",H[U]=(H[U]||0)+1,H[U]<=Wa&&(Et+=Ul),he.startsWith("_"))O+=q[0];else{const Vl=fe.classNameAliases[he]||he;ue(q[0],Vl)}}else O+=q[0];A=N.keywordPatternRe.lastIndex,q=N.keywordPatternRe.exec(z)}O+=z.substring(A),W.addText(O)}function wt(){if(z==="")return;let A=null;if(typeof N.subLanguage=="string"){if(!e[N.subLanguage]){W.addText(z);return}A=p(N.subLanguage,z,!0,wo[N.subLanguage]),wo[N.subLanguage]=A._top}else A=d(z,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(Et+=A.relevance),W.__addSublanguage(A._emitter,A.language)}function Q(){N.subLanguage!=null?wt():oe(),z=""}function ue(A,q){A!==""&&(W.startScope(q),W.addText(A),W.endScope())}function bo(A,q){let O=1;const U=q.length-1;for(;O<=U;){if(!A._emit[O]){O++;continue}const K=fe.classNameAliases[A[O]]||A[O],he=q[O];K?ue(he,K):(z=he,oe(),z=""),O++}}function _o(A,q){return A.scope&&typeof A.scope=="string"&&W.openNode(fe.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(ue(z,fe.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),z=""):A.beginScope._multi&&(bo(A.beginScope,q),z="")),N=Object.create(A,{parent:{value:N}}),N}function ko(A,q,O){let U=fa(A.endRe,O);if(U){if(A["on:end"]){const K=new Gr(A);A["on:end"](q,K),K.isMatchIgnored&&(U=!1)}if(U){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return ko(A.parent,q,O)}function Il(A){return N.matcher.regexIndex===0?(z+=A[0],1):(hn=!0,0)}function Ml(A){const q=A[0],O=A.rule,U=new Gr(O),K=[O.__beforeBegin,O["on:begin"]];for(const he of K)if(he&&(he(A,U),U.isMatchIgnored))return Il(q);return O.skip?z+=q:(O.excludeBegin&&(z+=q),Q(),!O.returnBegin&&!O.excludeBegin&&(z=q)),_o(O,A),O.returnBegin?0:q.length}function Bl(A){const q=A[0],O=k.substring(A.index),U=ko(N,A,O);if(!U)return co;const K=N;N.endScope&&N.endScope._wrap?(Q(),ue(q,N.endScope._wrap)):N.endScope&&N.endScope._multi?(Q(),bo(N.endScope,A)):K.skip?z+=q:(K.returnEnd||K.excludeEnd||(z+=q),Q(),K.excludeEnd&&(z=q));do N.scope&&W.closeNode(),!N.skip&&!N.subLanguage&&(Et+=N.relevance),N=N.parent;while(N!==U.parent);return U.starts&&_o(U.starts,A),K.returnEnd?0:q.length}function Fl(){const A=[];for(let q=N;q!==fe;q=q.parent)q.scope&&A.unshift(q.scope);A.forEach(q=>W.openNode(q))}let xt={};function yo(A,q){const O=q&&q[0];if(z+=A,O==null)return Q(),0;if(xt.type==="begin"&&q.type==="end"&&xt.index===q.index&&O===""){if(z+=k.slice(q.index,q.index+1),!o){const U=new Error(`0 width match regex (${g})`);throw U.languageName=g,U.badRule=xt.rule,U}return 1}if(xt=q,q.type==="begin")return Ml(q);if(q.type==="illegal"&&!L){const U=new Error('Illegal lexeme "'+O+'" for mode "'+(N.scope||"<unnamed>")+'"');throw U.mode=N,U}else if(q.type==="end"){const U=Bl(q);if(U!==co)return U}if(q.type==="illegal"&&O==="")return 1;if(pn>1e5&&pn>q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=O,O.length}const fe=$(g);if(!fe)throw Ae(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const Pl=Ga(fe);let fn="",N=B||Pl;const wo={},W=new i.__emitter(i);Fl();let z="",Et=0,Ce=0,pn=0,hn=!1;try{if(fe.__emitTokens)fe.__emitTokens(k,W);else{for(N.matcher.considerAll();;){pn++,hn?hn=!1:N.matcher.considerAll(),N.matcher.lastIndex=Ce;const A=N.matcher.exec(k);if(!A)break;const q=k.substring(Ce,A.index),O=yo(q,A);Ce=A.index+O}yo(k.substring(Ce))}return W.finalize(),fn=W.toHTML(),{language:g,value:fn,relevance:Et,illegal:!1,_emitter:W,_top:N}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:g,value:cn(k),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:Ce,context:k.slice(Ce-100,Ce+100),mode:A.mode,resultSoFar:fn},_emitter:W};if(o)return{language:g,value:cn(k),illegal:!1,relevance:0,errorRaised:A,_emitter:W,_top:N};throw A}}function h(g){const k={value:cn(g),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return k._emitter.addText(g),k}function d(g,k){k=k||i.languages||Object.keys(e);const L=h(g),B=k.filter($).filter(b).map(Q=>p(Q,g,!1));B.unshift(L);const H=B.sort((Q,ue)=>{if(Q.relevance!==ue.relevance)return ue.relevance-Q.relevance;if(Q.language&&ue.language){if($(Q.language).supersetOf===ue.language)return 1;if($(ue.language).supersetOf===Q.language)return-1}return 0}),[Y,oe]=H,wt=Y;return wt.secondBest=oe,wt}function y(g,k,L){const B=k&&n[k]||L;g.classList.add("hljs"),g.classList.add(`language-${B}`)}function E(g){let k=null;const L=l(g);if(a(L))return;if(P("before:highlightElement",{el:g,language:L}),g.children.length>0&&(i.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(g)),i.throwUnescapedHTML))throw new Za("One of your code blocks includes unescaped HTML.",g.innerHTML);k=g;const B=k.textContent,H=L?f(B,{language:L,ignoreIllegals:!0}):d(B);g.innerHTML=H.value,y(g,L,H.language),g.result={language:H.language,re:H.relevance,relevance:H.relevance},H.secondBest&&(g.secondBest={language:H.secondBest.language,relevance:H.secondBest.relevance}),P("after:highlightElement",{el:g,result:H,text:B})}function D(g){i=so(i,g)}const C=()=>{T(),Ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function w(){T(),Ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let S=!1;function T(){if(document.readyState==="loading"){S=!0;return}document.querySelectorAll(i.cssSelector).forEach(E)}function R(){S&&T()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function x(g,k){let L=null;try{L=k(t)}catch(B){if(Ae("Language definition for '{}' could not be registered.".replace("{}",g)),o)Ae(B);else throw B;L=c}L.name||(L.name=g),e[g]=L,L.rawDefinition=k.bind(null,t),L.aliases&&m(L.aliases,{languageName:g})}function v(g){delete e[g];for(const k of Object.keys(n))n[k]===g&&delete n[k]}function V(){return Object.keys(e)}function $(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function m(g,{languageName:k}){typeof g=="string"&&(g=[g]),g.forEach(L=>{n[L.toLowerCase()]=k})}function b(g){const k=$(g);return k&&!k.disableAutodetect}function M(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=k=>{g["before:highlightBlock"](Object.assign({block:k.el},k))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=k=>{g["after:highlightBlock"](Object.assign({block:k.el},k))})}function G(g){M(g),r.push(g)}function _(g){const k=r.indexOf(g);k!==-1&&r.splice(k,1)}function P(g,k){const L=g;r.forEach(function(B){B[L]&&B[L](k)})}function I(g){return Ie("10.7.0","highlightBlock will be removed entirely in v12.0"),Ie("10.7.0","Please use highlightElement now."),E(g)}Object.assign(t,{highlight:f,highlightAuto:d,highlightAll:T,highlightElement:E,highlightBlock:I,configure:D,initHighlighting:C,initHighlightingOnLoad:w,registerLanguage:x,unregisterLanguage:v,listLanguages:V,getLanguage:$,registerAliases:m,autoDetection:b,inherit:so,addPlugin:G,removePlugin:_}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ja,t.regex={concat:ve,lookahead:Wr,either:rn,optional:la,anyNumberOfTimes:aa};for(const g in bt)typeof bt[g]=="object"&&zr(bt[g]);return Object.assign(t,bt),t},Me=io({});Me.newInstance=()=>io({});var Ja=Me;Me.HighlightJS=Me,Me.default=Me;const kt=Bn(Ja),an=u.defineComponent({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=u.toRefs(e),r=u.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&kt.getLanguage(c))try{return kt.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-message",r.value])},[u.renderSlot(s.$slots,"default",{},()=>[u.createVNode(u.unref(ra),{class:"chat-message-markdown",source:u.unref(n).text,options:o},null,8,["source"])])],2))}}),bH="",Ka=u.createElementVNode("div",{class:"chat-message-typing-body"},[u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),Ya=u.defineComponent({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=u.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(u.openBlock(),u.createBlock(u.unref(an),{class:u.normalizeClass(r.value),message:n},{default:u.withCtx(()=>[Ka]),_:1},8,["class"]))}}),_H="";var yt,Qa=new Uint8Array(16);function Xa(){if(!yt&&(yt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yt(Qa)}const el=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function tl(t){return typeof t=="string"&&el.test(t)}for(var Z=[],ln=0;ln<256;++ln)Z.push((ln+256).toString(16).substr(1));function nl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Z[t[e+0]]+Z[t[e+1]]+Z[t[e+2]]+Z[t[e+3]]+"-"+Z[t[e+4]]+Z[t[e+5]]+"-"+Z[t[e+6]]+Z[t[e+7]]+"-"+Z[t[e+8]]+Z[t[e+9]]+"-"+Z[t[e+10]]+Z[t[e+11]]+Z[t[e+12]]+Z[t[e+13]]+Z[t[e+14]]+Z[t[e+15]]).toLowerCase();if(!tl(n))throw TypeError("Stringified UUID is invalid");return n}function We(t,e,n){t=t||{};var r=t.random||(t.rng||Xa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return nl(r)}async function rl(){return""}async function ao(...t){var r;const e=await rl();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function lo(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),ao(r,{...n,method:"GET"})}async function uo(t,e={},n={}){return ao(t,{...n,method:"POST",body:JSON.stringify(e)})}async function ol(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?uo:lo)(`${e.webhookUrl}`,{action:"loadPreviousSession",sessionId:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function sl(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?uo:lo)(`${n.webhookUrl}`,{action:"sendMessage",sessionId:e,message:t},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const un=Ko("chat",()=>{const{options:t}=Ve(),e=u.ref([]),n=u.ref(null),r=u.ref(!1),o=u.computed(()=>(t.initialMessages??[]).map(a=>({id:We(),text:a,sender:"bot",createdAt:new Date().toISOString()})));async function s(a){const l={id:We(),text:a,sender:"user",createdAt:new Date().toISOString()};e.value.push(l),r.value=!0,u.nextTick(()=>{ke.emit("scrollToBottom")});const f=await sl(a,n.value,t),p={id:We(),text:f.output,sender:"bot",createdAt:new Date().toISOString()};e.value.push(p),r.value=!1,u.nextTick(()=>{ke.emit("scrollToBottom")})}async function c(){const a=localStorage.getItem(In)??We(),l=await ol(a,t),f=new Date().toISOString();return e.value=((l==null?void 0:l.data)||[]).map((p,h)=>({id:`${h}`,text:p.kwargs.content,sender:p.id.includes("HumanMessage")?"user":"bot",createdAt:f})),e.value.length&&(n.value=a),a}async function i(){n.value=We(),localStorage.setItem(In,n.value)}return{initialMessages:o,messages:e,currentSessionId:n,waitingForResponse:r,loadPreviousSession:c,startNewSession:i,sendMessage:s}}),cl={class:"chat-messages-list"},il=u.defineComponent({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=un(),{initialMessages:n,waitingForResponse:r}=Ln(e);return(o,s)=>(u.openBlock(),u.createElementBlock("div",cl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(n),c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.messages,c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),u.unref(r)?(u.openBlock(),u.createBlock(Ya,{key:0})):u.createCommentVNode("",!0)]))}}),kH="",al={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ll=[u.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function ul(t,e){return u.openBlock(),u.createElementBlock("svg",al,ll)}const fl={name:"mdi-send",render:ul},pl={class:"chat-input"},hl=["placeholder","onKeydown"],dl=["disabled"],gl=u.defineComponent({__name:"Input",setup(t){const e=un(),{waitingForResponse:n}=Ln(e),{t:r}=tt(),o=u.ref(""),s=u.computed(()=>o.value===""||n.value);async function c(a){if(a.preventDefault(),s.value)return;const l=o.value;o.value="",await e.sendMessage(l)}async function i(a){a.shiftKey||await c(a)}return(a,l)=>(u.openBlock(),u.createElementBlock("div",pl,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f),rows:"1",placeholder:u.unref(r)("inputPlaceholder"),onKeydown:u.withKeys(i,["enter"])},null,40,hl),[[u.vModelText,o.value]]),u.createElementVNode("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[u.createVNode(u.unref(fl),{height:"32",width:"32"})],8,dl)]))}}),wH="",fo=u.defineComponent({__name:"Chat",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt(),o=un(),{messages:s,currentSessionId:c}=u.toRefs(o),i=u.computed(()=>!!e.poweredBy||r("footer")||!!c.value);async function a(){await o.loadPreviousSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}async function l(){o.startNewSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}return u.onMounted(()=>{a()}),(f,p)=>(u.openBlock(),u.createBlock(cs,{class:"chat-wrapper"},u.createSlots({default:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(il,{key:1,messages:u.unref(s)},null,8,["messages"])):(u.openBlock(),u.createBlock(ls,{key:0,"onClick:button":l}))]),_:2},[u.unref(c)?void 0:{name:"header",fn:u.withCtx(()=>[u.createElementVNode("h1",null,u.toDisplayString(u.unref(n)("title")),1),u.createElementVNode("p",null,u.toDisplayString(u.unref(n)("subtitle")),1)]),key:"0"},i.value?{name:"footer",fn:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(gl,{key:0})):(u.openBlock(),u.createBlock(bs,{key:1}))]),key:"1"}:void 0]),1024))}}),ml={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bl=[u.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"},null,-1)];function _l(t,e){return u.openBlock(),u.createElementBlock("svg",ml,bl)}const kl={name:"mdi-chat",render:_l},yl={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},wl=[u.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1)];function xl(t,e){return u.openBlock(),u.createElementBlock("svg",yl,wl)}const El={name:"mdi-chevron-down",render:xl},vl={class:"chat-window-wrapper"},Al={class:"chat-window"},Cl=u.defineComponent({__name:"ChatWindow",setup(t){const e=u.ref(!1);function n(){e.value=!e.value,e.value&&u.nextTick(()=>{ke.emit("scrollToBottom")})}return(r,o)=>(u.openBlock(),u.createElementBlock("div",vl,[u.createVNode(u.Transition,{name:"chat-window-transition"},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("div",Al,[u.createVNode(fo)],512),[[u.vShow,e.value]])]),_:1}),u.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[u.createVNode(u.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:u.withCtx(()=>[e.value?(u.openBlock(),u.createBlock(u.unref(El),{key:1,height:"32",width:"32"})):(u.openBlock(),u.createBlock(u.unref(kl),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),vH="";function Sl(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(s,{begin:/\(/,end:/\)/}),i=t.inherit(t.APOS_STRING_MODE,{className:"string"}),a=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,a,i,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,c,a,i]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const po="[A-Za-z$_][0-9A-Za-z$_]*",Dl=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],ql=["true","false","null","undefined","NaN","Infinity"],ho=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],go=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Tl=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rl=[].concat(mo,ho,go);function Nl(t){const e=t.regex,n=(k,{after:L})=>{const B="</"+k[0].slice(1);return k.input.indexOf(B,L)!==-1},r=po,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,L)=>{const B=k[0].length+k.index,H=k.input[B];if(H==="<"||H===","){L.ignoreMatch();return}H===">"&&(n(k,{after:B})||L.ignoreMatch());let Y;const oe=k.input.substring(B);if(Y=oe.match(/^\s*=/)){L.ignoreMatch();return}if((Y=oe.match(/^\s+extends\s+/))&&Y.index===0){L.ignoreMatch();return}}},i={$pattern:po,keyword:Dl,literal:ql,built_in:Rl,"variable.language":Tl},a="[0-9](_?[0-9])*",l=`\\.(${a})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${f})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${f})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,h]},w={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},S=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,{match:/\$\d+/},p];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(S)});const T=[].concat(w,h.contains),R=T.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(T)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R},v={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},V={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ho,...go]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},b={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(k){return e.concat("(?!",k.join("|"),")")}const G={match:e.concat(/\b/,M([...mo,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},_={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},P={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",g={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,w,{match:/\$\d+/},p,V,{className:"attr",begin:r+e.lookahead(":"),relevance:0},g,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[w,t.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},_,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},G,b,v,P,{match:/\$[(.]/}]}}const Ll=u.defineComponent({__name:"App",props:{},setup(t){const{options:e}=Ve(),n=u.computed(()=>e.mode==="fullscreen");return u.onMounted(()=>{kt.registerLanguage("xml",Sl),kt.registerLanguage("javascript",Nl)}),(r,o)=>n.value?(u.openBlock(),u.createBlock(u.unref(fo),{key:0})):(u.openBlock(),u.createBlock(u.unref(Cl),{key:1}))}});function Ol(t){var o,s;const e={...Ue,...t,webhookConfig:{...Ue.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Ue.i18n,...t==null?void 0:t.i18n,en:{...(o=Ue.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Ue.theme,...t==null?void 0:t.theme}},n=e.target??is;typeof n=="string"&&ns(n);const r=u.createApp(Ll);return r.use(jo()),r.provide(Mn,e),r.mount(n),r}me.createChat=Ol,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|
|
29
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),H=g,B=k),L===void 0&&(L=!0);const Y={code:B,language:H};P("before:highlight",Y);const oe=Y.result?Y.result:p(Y.language,Y.code,L);return oe.code=Y.code,P("after:highlight",oe),oe}function p(g,k,L,B){const H=Object.create(null);function Y(A,q){return A.keywords[q]}function oe(){if(!N.keywords){W.addText(z);return}let A=0;N.keywordPatternRe.lastIndex=0;let q=N.keywordPatternRe.exec(z),O="";for(;q;){O+=z.substring(A,q.index);const U=fe.case_insensitive?q[0].toLowerCase():q[0],K=Y(N,U);if(K){const[he,Ul]=K;if(W.addText(O),O="",H[U]=(H[U]||0)+1,H[U]<=Wa&&(Et+=Ul),he.startsWith("_"))O+=q[0];else{const Vl=fe.classNameAliases[he]||he;ue(q[0],Vl)}}else O+=q[0];A=N.keywordPatternRe.lastIndex,q=N.keywordPatternRe.exec(z)}O+=z.substring(A),W.addText(O)}function wt(){if(z==="")return;let A=null;if(typeof N.subLanguage=="string"){if(!e[N.subLanguage]){W.addText(z);return}A=p(N.subLanguage,z,!0,wo[N.subLanguage]),wo[N.subLanguage]=A._top}else A=d(z,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(Et+=A.relevance),W.__addSublanguage(A._emitter,A.language)}function Q(){N.subLanguage!=null?wt():oe(),z=""}function ue(A,q){A!==""&&(W.startScope(q),W.addText(A),W.endScope())}function bo(A,q){let O=1;const U=q.length-1;for(;O<=U;){if(!A._emit[O]){O++;continue}const K=fe.classNameAliases[A[O]]||A[O],he=q[O];K?ue(he,K):(z=he,oe(),z=""),O++}}function _o(A,q){return A.scope&&typeof A.scope=="string"&&W.openNode(fe.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(ue(z,fe.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),z=""):A.beginScope._multi&&(bo(A.beginScope,q),z="")),N=Object.create(A,{parent:{value:N}}),N}function ko(A,q,O){let U=fa(A.endRe,O);if(U){if(A["on:end"]){const K=new Gr(A);A["on:end"](q,K),K.isMatchIgnored&&(U=!1)}if(U){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return ko(A.parent,q,O)}function Il(A){return N.matcher.regexIndex===0?(z+=A[0],1):(hn=!0,0)}function Ml(A){const q=A[0],O=A.rule,U=new Gr(O),K=[O.__beforeBegin,O["on:begin"]];for(const he of K)if(he&&(he(A,U),U.isMatchIgnored))return Il(q);return O.skip?z+=q:(O.excludeBegin&&(z+=q),Q(),!O.returnBegin&&!O.excludeBegin&&(z=q)),_o(O,A),O.returnBegin?0:q.length}function Bl(A){const q=A[0],O=k.substring(A.index),U=ko(N,A,O);if(!U)return co;const K=N;N.endScope&&N.endScope._wrap?(Q(),ue(q,N.endScope._wrap)):N.endScope&&N.endScope._multi?(Q(),bo(N.endScope,A)):K.skip?z+=q:(K.returnEnd||K.excludeEnd||(z+=q),Q(),K.excludeEnd&&(z=q));do N.scope&&W.closeNode(),!N.skip&&!N.subLanguage&&(Et+=N.relevance),N=N.parent;while(N!==U.parent);return U.starts&&_o(U.starts,A),K.returnEnd?0:q.length}function Fl(){const A=[];for(let q=N;q!==fe;q=q.parent)q.scope&&A.unshift(q.scope);A.forEach(q=>W.openNode(q))}let xt={};function yo(A,q){const O=q&&q[0];if(z+=A,O==null)return Q(),0;if(xt.type==="begin"&&q.type==="end"&&xt.index===q.index&&O===""){if(z+=k.slice(q.index,q.index+1),!o){const U=new Error(`0 width match regex (${g})`);throw U.languageName=g,U.badRule=xt.rule,U}return 1}if(xt=q,q.type==="begin")return Ml(q);if(q.type==="illegal"&&!L){const U=new Error('Illegal lexeme "'+O+'" for mode "'+(N.scope||"<unnamed>")+'"');throw U.mode=N,U}else if(q.type==="end"){const U=Bl(q);if(U!==co)return U}if(q.type==="illegal"&&O==="")return 1;if(pn>1e5&&pn>q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=O,O.length}const fe=$(g);if(!fe)throw Ae(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const Pl=Ga(fe);let fn="",N=B||Pl;const wo={},W=new i.__emitter(i);Fl();let z="",Et=0,Ce=0,pn=0,hn=!1;try{if(fe.__emitTokens)fe.__emitTokens(k,W);else{for(N.matcher.considerAll();;){pn++,hn?hn=!1:N.matcher.considerAll(),N.matcher.lastIndex=Ce;const A=N.matcher.exec(k);if(!A)break;const q=k.substring(Ce,A.index),O=yo(q,A);Ce=A.index+O}yo(k.substring(Ce))}return W.finalize(),fn=W.toHTML(),{language:g,value:fn,relevance:Et,illegal:!1,_emitter:W,_top:N}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:g,value:cn(k),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:Ce,context:k.slice(Ce-100,Ce+100),mode:A.mode,resultSoFar:fn},_emitter:W};if(o)return{language:g,value:cn(k),illegal:!1,relevance:0,errorRaised:A,_emitter:W,_top:N};throw A}}function h(g){const k={value:cn(g),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return k._emitter.addText(g),k}function d(g,k){k=k||i.languages||Object.keys(e);const L=h(g),B=k.filter($).filter(b).map(Q=>p(Q,g,!1));B.unshift(L);const H=B.sort((Q,ue)=>{if(Q.relevance!==ue.relevance)return ue.relevance-Q.relevance;if(Q.language&&ue.language){if($(Q.language).supersetOf===ue.language)return 1;if($(ue.language).supersetOf===Q.language)return-1}return 0}),[Y,oe]=H,wt=Y;return wt.secondBest=oe,wt}function y(g,k,L){const B=k&&n[k]||L;g.classList.add("hljs"),g.classList.add(`language-${B}`)}function E(g){let k=null;const L=l(g);if(a(L))return;if(P("before:highlightElement",{el:g,language:L}),g.children.length>0&&(i.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(g)),i.throwUnescapedHTML))throw new Za("One of your code blocks includes unescaped HTML.",g.innerHTML);k=g;const B=k.textContent,H=L?f(B,{language:L,ignoreIllegals:!0}):d(B);g.innerHTML=H.value,y(g,L,H.language),g.result={language:H.language,re:H.relevance,relevance:H.relevance},H.secondBest&&(g.secondBest={language:H.secondBest.language,relevance:H.secondBest.relevance}),P("after:highlightElement",{el:g,result:H,text:B})}function D(g){i=so(i,g)}const C=()=>{T(),Ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function w(){T(),Ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let S=!1;function T(){if(document.readyState==="loading"){S=!0;return}document.querySelectorAll(i.cssSelector).forEach(E)}function R(){S&&T()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function x(g,k){let L=null;try{L=k(t)}catch(B){if(Ae("Language definition for '{}' could not be registered.".replace("{}",g)),o)Ae(B);else throw B;L=c}L.name||(L.name=g),e[g]=L,L.rawDefinition=k.bind(null,t),L.aliases&&m(L.aliases,{languageName:g})}function v(g){delete e[g];for(const k of Object.keys(n))n[k]===g&&delete n[k]}function V(){return Object.keys(e)}function $(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function m(g,{languageName:k}){typeof g=="string"&&(g=[g]),g.forEach(L=>{n[L.toLowerCase()]=k})}function b(g){const k=$(g);return k&&!k.disableAutodetect}function M(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=k=>{g["before:highlightBlock"](Object.assign({block:k.el},k))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=k=>{g["after:highlightBlock"](Object.assign({block:k.el},k))})}function G(g){M(g),r.push(g)}function _(g){const k=r.indexOf(g);k!==-1&&r.splice(k,1)}function P(g,k){const L=g;r.forEach(function(B){B[L]&&B[L](k)})}function I(g){return Ie("10.7.0","highlightBlock will be removed entirely in v12.0"),Ie("10.7.0","Please use highlightElement now."),E(g)}Object.assign(t,{highlight:f,highlightAuto:d,highlightAll:T,highlightElement:E,highlightBlock:I,configure:D,initHighlighting:C,initHighlightingOnLoad:w,registerLanguage:x,unregisterLanguage:v,listLanguages:V,getLanguage:$,registerAliases:m,autoDetection:b,inherit:so,addPlugin:G,removePlugin:_}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ja,t.regex={concat:ve,lookahead:Wr,either:rn,optional:la,anyNumberOfTimes:aa};for(const g in bt)typeof bt[g]=="object"&&zr(bt[g]);return Object.assign(t,bt),t},Me=io({});Me.newInstance=()=>io({});var Ja=Me;Me.HighlightJS=Me,Me.default=Me;const kt=Bn(Ja),an=u.defineComponent({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=u.toRefs(e),r=u.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&kt.getLanguage(c))try{return kt.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-message",r.value])},[u.renderSlot(s.$slots,"default",{},()=>[u.createVNode(u.unref(ra),{class:"chat-message-markdown",source:u.unref(n).text,options:o},null,8,["source"])])],2))}}),bH="",Ka=u.createElementVNode("div",{class:"chat-message-typing-body"},[u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),Ya=u.defineComponent({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=u.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(u.openBlock(),u.createBlock(u.unref(an),{class:u.normalizeClass(r.value),message:n},{default:u.withCtx(()=>[Ka]),_:1},8,["class"]))}}),_H="";var yt,Qa=new Uint8Array(16);function Xa(){if(!yt&&(yt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yt(Qa)}const el=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function tl(t){return typeof t=="string"&&el.test(t)}for(var Z=[],ln=0;ln<256;++ln)Z.push((ln+256).toString(16).substr(1));function nl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Z[t[e+0]]+Z[t[e+1]]+Z[t[e+2]]+Z[t[e+3]]+"-"+Z[t[e+4]]+Z[t[e+5]]+"-"+Z[t[e+6]]+Z[t[e+7]]+"-"+Z[t[e+8]]+Z[t[e+9]]+"-"+Z[t[e+10]]+Z[t[e+11]]+Z[t[e+12]]+Z[t[e+13]]+Z[t[e+14]]+Z[t[e+15]]).toLowerCase();if(!tl(n))throw TypeError("Stringified UUID is invalid");return n}function We(t,e,n){t=t||{};var r=t.random||(t.rng||Xa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return nl(r)}async function rl(){return""}async function ao(...t){var r;const e=await rl();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function lo(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),ao(r,{...n,method:"GET"})}async function uo(t,e={},n={}){return ao(t,{...n,method:"POST",body:JSON.stringify(e)})}async function ol(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?uo:lo)(`${e.webhookUrl}`,{action:"loadPreviousSession",sessionId:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function sl(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?uo:lo)(`${n.webhookUrl}`,{action:"sendMessage",sessionId:e,message:t},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const un=Ko("chat",()=>{const{options:t}=Ve(),e=u.ref([]),n=u.ref(null),r=u.ref(!1),o=u.computed(()=>(t.initialMessages??[]).map(a=>({id:We(),text:a,sender:"bot",createdAt:new Date().toISOString()})));async function s(a){const l={id:We(),text:a,sender:"user",createdAt:new Date().toISOString()};e.value.push(l),r.value=!0,u.nextTick(()=>{ke.emit("scrollToBottom")});const f=await sl(a,n.value,t),p={id:We(),text:f.output,sender:"bot",createdAt:new Date().toISOString()};e.value.push(p),r.value=!1,u.nextTick(()=>{ke.emit("scrollToBottom")})}async function c(){const a=localStorage.getItem(In)??We(),l=await ol(a,t),f=new Date().toISOString();return e.value=((l==null?void 0:l.data)||[]).map((p,h)=>({id:`${h}`,text:p.kwargs.content,sender:p.id.includes("HumanMessage")?"user":"bot",createdAt:f})),e.value.length&&(n.value=a),a}async function i(){n.value=We(),localStorage.setItem(In,n.value)}return{initialMessages:o,messages:e,currentSessionId:n,waitingForResponse:r,loadPreviousSession:c,startNewSession:i,sendMessage:s}}),cl={class:"chat-messages-list"},il=u.defineComponent({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=un(),{initialMessages:n,waitingForResponse:r}=Ln(e);return(o,s)=>(u.openBlock(),u.createElementBlock("div",cl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(n),c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.messages,c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),u.unref(r)?(u.openBlock(),u.createBlock(Ya,{key:0})):u.createCommentVNode("",!0)]))}}),kH="",al={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ll=[u.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function ul(t,e){return u.openBlock(),u.createElementBlock("svg",al,ll)}const fl={name:"mdi-send",render:ul},pl={class:"chat-input"},hl=["placeholder","onKeydown"],dl=["disabled"],gl=u.defineComponent({__name:"Input",setup(t){const e=un(),{waitingForResponse:n}=Ln(e),{t:r}=tt(),o=u.ref(""),s=u.computed(()=>o.value===""||n.value);async function c(a){if(a.preventDefault(),s.value)return;const l=o.value;o.value="",await e.sendMessage(l)}async function i(a){a.shiftKey||await c(a)}return(a,l)=>(u.openBlock(),u.createElementBlock("div",pl,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f),rows:"1",placeholder:u.unref(r)("inputPlaceholder"),onKeydown:u.withKeys(i,["enter"])},null,40,hl),[[u.vModelText,o.value]]),u.createElementVNode("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[u.createVNode(u.unref(fl),{height:"32",width:"32"})],8,dl)]))}}),wH="",fo=u.defineComponent({__name:"Chat",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt(),o=un(),{messages:s,currentSessionId:c}=u.toRefs(o),i=u.computed(()=>!!e.poweredBy||r("footer")||!!c.value);async function a(){await o.loadPreviousSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}async function l(){o.startNewSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}return u.onMounted(()=>{a()}),(f,p)=>(u.openBlock(),u.createBlock(cs,{class:"chat-wrapper"},u.createSlots({default:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(il,{key:1,messages:u.unref(s)},null,8,["messages"])):(u.openBlock(),u.createBlock(ls,{key:0,"onClick:button":l}))]),_:2},[u.unref(c)?void 0:{name:"header",fn:u.withCtx(()=>[u.createElementVNode("h1",null,u.toDisplayString(u.unref(n)("title")),1),u.createElementVNode("p",null,u.toDisplayString(u.unref(n)("subtitle")),1)]),key:"0"},i.value?{name:"footer",fn:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(gl,{key:0})):(u.openBlock(),u.createBlock(bs,{key:1}))]),key:"1"}:void 0]),1024))}}),ml={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bl=[u.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"},null,-1)];function _l(t,e){return u.openBlock(),u.createElementBlock("svg",ml,bl)}const kl={name:"mdi-chat",render:_l},yl={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},wl=[u.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1)];function xl(t,e){return u.openBlock(),u.createElementBlock("svg",yl,wl)}const El={name:"mdi-chevron-down",render:xl},vl={class:"chat-window-wrapper"},Al={class:"chat-window"},Cl=u.defineComponent({__name:"ChatWindow",setup(t){const e=u.ref(!1);function n(){e.value=!e.value,e.value&&u.nextTick(()=>{ke.emit("scrollToBottom")})}return(r,o)=>(u.openBlock(),u.createElementBlock("div",vl,[u.createVNode(u.Transition,{name:"chat-window-transition"},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("div",Al,[u.createVNode(fo)],512),[[u.vShow,e.value]])]),_:1}),u.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[u.createVNode(u.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:u.withCtx(()=>[e.value?(u.openBlock(),u.createBlock(u.unref(El),{key:1,height:"32",width:"32"})):(u.openBlock(),u.createBlock(u.unref(kl),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),vH="";function Sl(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(s,{begin:/\(/,end:/\)/}),i=t.inherit(t.APOS_STRING_MODE,{className:"string"}),a=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,a,i,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,c,a,i]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const po="[A-Za-z$_][0-9A-Za-z$_]*",Dl=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],ql=["true","false","null","undefined","NaN","Infinity"],ho=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],go=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Tl=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rl=[].concat(mo,ho,go);function Nl(t){const e=t.regex,n=(k,{after:L})=>{const B="</"+k[0].slice(1);return k.input.indexOf(B,L)!==-1},r=po,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,L)=>{const B=k[0].length+k.index,H=k.input[B];if(H==="<"||H===","){L.ignoreMatch();return}H===">"&&(n(k,{after:B})||L.ignoreMatch());let Y;const oe=k.input.substring(B);if(Y=oe.match(/^\s*=/)){L.ignoreMatch();return}if((Y=oe.match(/^\s+extends\s+/))&&Y.index===0){L.ignoreMatch();return}}},i={$pattern:po,keyword:Dl,literal:ql,built_in:Rl,"variable.language":Tl},a="[0-9](_?[0-9])*",l=`\\.(${a})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${f})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${f})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,h]},w={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},S=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,{match:/\$\d+/},p];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(S)});const T=[].concat(w,h.contains),R=T.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(T)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R},v={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},V={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ho,...go]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},b={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(k){return e.concat("(?!",k.join("|"),")")}const G={match:e.concat(/\b/,M([...mo,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},_={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},P={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",g={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,w,{match:/\$\d+/},p,V,{className:"attr",begin:r+e.lookahead(":"),relevance:0},g,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[w,t.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},_,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},G,b,v,P,{match:/\$[(.]/}]}}const Ll=u.defineComponent({__name:"App",props:{},setup(t){const{options:e}=Ve(),n=u.computed(()=>e.mode==="fullscreen");return u.onMounted(()=>{kt.registerLanguage("xml",Sl),kt.registerLanguage("javascript",Nl)}),(r,o)=>n.value?(u.openBlock(),u.createBlock(u.unref(fo),{key:0,class:"n8n-chat"})):(u.openBlock(),u.createBlock(u.unref(Cl),{key:1,class:"n8n-chat"}))}});function Ol(t){var o,s;const e={...Ue,...t,webhookConfig:{...Ue.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Ue.i18n,...t==null?void 0:t.i18n,en:{...(o=Ue.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Ue.theme,...t==null?void 0:t.theme}},n=e.target??is;typeof n=="string"&&ns(n);const r=u.createApp(Ll);return r.use(jo()),r.provide(Mn,e),r.mount(n),r}me.createChat=Ol,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
2
|
-
Theme: GitHub
|
|
3
|
-
Description: Light theme as seen on github.com
|
|
4
|
-
Author: github.com
|
|
5
|
-
Maintainer: @Hirse
|
|
6
|
-
Updated: 2021-05-15
|
|
7
|
-
|
|
8
|
-
Outdated base version: https://github.com/primer/github-syntax-light
|
|
9
|
-
Current colors taken from GitHub's CSS
|
|
10
|
-
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}:root{--chat--color-primary: #e74266;--chat--color-primary-shade-50: #db4061;--chat--color-primary-shade-100: #cf3c5c;--chat--color-secondary: #20b69e;--chat--color-secondary-shade-50: #1ca08a;--chat--color-white: #ffffff;--chat--color-light: #f2f4f8;--chat--color-light-shade-50: #e6e9f1;--chat--color-light-shade-100: #c2c5cc;--chat--color-medium: #d2d4d9;--chat--color-dark: #101330;--chat--color-disabled: #777980;--chat--color-typing: #404040;--chat--spacing: 1rem;--chat--border-radius: .25rem;--chat--transition-duration: .15s;--chat--window--width: 400px;--chat--window--height: 600px;--chat--textarea--height: 50px;--chat--message--bot--background: var(--chat--color-white);--chat--message--bot--color: var(--chat--color-dark);--chat--message--user--background: var(--chat--color-secondary);--chat--message--user--color: var(--chat--color-white);--chat--message--pre--background: rgba(0, 0, 0, .05);--chat--toggle--background: var(--chat--color-primary);--chat--toggle--hover--background: var(--chat--color-primary-shade-50);--chat--toggle--active--background: var(--chat--color-primary-shade-100);--chat--toggle--color: var(--chat--color-white);--chat--toggle--size: 64px}.chat-button{display:inline-flex;text-align:center;vertical-align:middle;-webkit-user-select:none;user-select:none;color:var(--chat--button--color, var(--chat--color-light));background-color:var(--chat--button--background, var(--chat--color-primary));border:1px solid transparent;padding:var(--chat--button--padding, calc(var(--chat--spacing) * 1 / 2) var(--chat--spacing));font-size:1rem;line-height:1.5;border-radius:var(--chat--button--border-radius, var(--chat--border-radius));transition:color var(--chat--transition-duration) ease-in-out,background-color var(--chat--transition-duration) ease-in-out,border-color var(--chat--transition-duration) ease-in-out,box-shadow var(--chat--transition-duration) ease-in-out;cursor:pointer}.chat-button:hover{color:var(--chat--button--hover--color, var(--chat--color-light));background-color:var(--chat--button--hover--background, var(--chat--color-primary-shade-50));text-decoration:none}.chat-button:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.chat-button:disabled{opacity:.65}.chat-layout{width:100%;height:100%;display:flex;overflow-y:auto;flex-direction:column;font-family:var(--chat--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif)}.chat-layout .chat-header{padding:var(--chat--header--padding, var(--chat--spacing));background:var(--chat--header--background, var(--chat--color-dark));color:var(--chat--header--color, var(--chat--color-light))}.chat-layout .chat-body{background:var(--chat--body--background, var(--chat--color-light));flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;min-height:100px}.chat-layout .chat-footer{border-top:1px solid var(--chat--color-light-shade-100);background:var(--chat--footer--background, var(--chat--color-light));color:var(--chat--footer--color, var(--chat--color-dark))}.chat-get-started{padding-top:var(--chat--spacing);padding-bottom:var(--chat--spacing);display:flex;justify-content:center;align-items:center;height:100%}.chat-powered-by{text-align:center}.chat-powered-by a{color:var(--chat--color-primary);text-decoration:none}.chat-get-started-footer{padding:var(--chat--spacing)}.chat-message{display:block;max-width:80%;padding:var(--chat--message--padding, var(--chat--spacing));border-radius:var(--chat--message--border-radius, var(--chat--border-radius))}.chat-message+.chat-message{margin-top:var(--chat--message--margin-bottom, calc(var(--chat--spacing) * .5))}.chat-message.chat-message-from-bot{background-color:var(--chat--message--bot--background);color:var(--chat--message--bot--color);border-bottom-left-radius:0}.chat-message.chat-message-from-user{background-color:var(--chat--message--user--background);color:var(--chat--message--user--color);margin-left:auto;border-bottom-right-radius:0}.chat-message>.chat-message-markdown{display:block;box-sizing:border-box}.chat-message>.chat-message-markdown>*:first-child{margin-top:0}.chat-message>.chat-message-markdown>*:last-child{margin-bottom:0}.chat-message>.chat-message-markdown pre{font-family:inherit;font-size:inherit;margin:0;white-space:pre-wrap;box-sizing:border-box;padding:var(--chat--spacing);background:var(--chat--message--pre--background);border-radius:var(--chat--border-radius)}.chat-message-typing{max-width:80px}.chat-message-typing.chat-message-typing-animation-scaling .chat-message-typing-circle{animation:chat-message-typing-animation-scaling .8s ease-in-out infinite;animation-delay:3.6s}.chat-message-typing.chat-message-typing-animation-bouncing .chat-message-typing-circle{animation:chat-message-typing-animation-bouncing .8s ease-in-out infinite;animation-delay:3.6s}.chat-message-typing .chat-message-typing-body{display:flex;justify-content:center;align-items:center}.chat-message-typing .chat-message-typing-circle{display:block;height:10px;width:10px;border-radius:50%;background-color:var(--chat--color-typing);margin:3px}.chat-message-typing .chat-message-typing-circle:nth-child(1){animation-delay:0ms}.chat-message-typing .chat-message-typing-circle:nth-child(2){animation-delay:333ms}.chat-message-typing .chat-message-typing-circle:nth-child(3){animation-delay:666ms}@keyframes chat-message-typing-animation-scaling{0%{transform:scale(1)}33%{transform:scale(1)}50%{transform:scale(1.4)}to{transform:scale(1)}}@keyframes chat-message-typing-animation-bouncing{0%{transform:translateY(0)}33%{transform:translateY(0)}50%{transform:translateY(-10px)}to{transform:translateY(0)}}.chat-messages-list{margin-top:auto;display:block;padding:var(--chat--messages-list--padding, var(--chat--spacing))}.chat-input{display:flex;justify-content:center;align-items:center;width:100%}.chat-input textarea{font-family:inherit;font-size:inherit;width:100%;border:0;padding:var(--chat--spacing);max-height:var(--chat--textarea--height);resize:none}.chat-input .chat-input-send-button{height:var(--chat--textarea--height);width:var(--chat--textarea--height);background:white;cursor:pointer;color:var(--chat--color-secondary);border:0;font-size:24px;display:inline-flex;align-items:center;justify-content:center;transition:color var(--chat--transition-duration) ease}.chat-input .chat-input-send-button:hover,.chat-input .chat-input-send-button:focus{color:var(--chat--color-secondary-shade-50)}.chat-input .chat-input-send-button[disabled]{cursor:default;color:var(--chat--color-disabled)}.chat-window-wrapper{position:fixed;display:flex;flex-direction:column;bottom:var(--chat--window--bottom, var(--chat--spacing));right:var(--chat--window--right, var(--chat--spacing));z-index:var(--chat--window--z-index, 9999);max-width:calc(100% - var(--chat--window--right, var(--chat--spacing)) * 2);max-height:calc(100% - var(--chat--window--bottom, var(--chat--spacing)) * 2)}.chat-window-wrapper .chat-window{display:flex;width:var(--chat--window--width);height:var(--chat--window--height);max-width:100%;max-height:100%;border:var(--chat--window--border, 1px solid var(--chat--color-light-shade-100));border-radius:var(--chat--window--border-radius, var(--chat--border-radius));margin-bottom:var(--chat--window--margin-bottom, var(--chat--spacing));overflow:hidden;transform-origin:bottom right}.chat-window-wrapper .chat-window .chat-layout{width:auto;height:auto;flex:1}.chat-window-wrapper .chat-window-toggle{flex:0 0 auto;background:var(--chat--toggle--background);color:var(--chat--toggle--color);cursor:pointer;width:var(--chat--toggle--width, var(--chat--toggle--size));height:var(--chat--toggle--height, var(--chat--toggle--size));border-radius:var(--chat--toggle--border-radius, 50%);display:inline-flex;align-items:center;justify-content:center;margin-left:auto;transition:transform var(--chat--transition-duration) ease,background var(--chat--transition-duration) ease}.chat-window-wrapper .chat-window-toggle:hover,.chat-window-wrapper .chat-window-toggle:focus{transform:scale(1.05);background:var(--chat--toggle--hover--background)}.chat-window-wrapper .chat-window-toggle:active{transform:scale(.95);background:var(--chat--toggle--active--background)}.chat-window-transition-enter-active,.chat-window-transition-leave-active{transition:transform var(--chat--transition-duration) ease,opacity var(--chat--transition-duration) ease}.chat-window-transition-enter-from,.chat-window-transition-leave-to{transform:scale(0);opacity:0}.chat-window-toggle-transition-enter-active,.chat-window-toggle-transition-leave-active{transition:opacity var(--chat--transition-duration) ease}.chat-window-toggle-transition-enter-from,.chat-window-toggle-transition-leave-to{opacity:0}
|
|
1
|
+
.n8n-chat pre code.hljs{display:block;overflow-x:auto;padding:1em}.n8n-chat code.hljs{padding:3px 5px}.n8n-chat .hljs{color:#24292e;background:#fff}.n8n-chat .hljs-doctag,.n8n-chat .hljs-keyword,.n8n-chat .hljs-meta .hljs-keyword,.n8n-chat .hljs-template-tag,.n8n-chat .hljs-template-variable,.n8n-chat .hljs-type,.n8n-chat .hljs-variable.language_{color:#d73a49}.n8n-chat .hljs-title,.n8n-chat .hljs-title.class_,.n8n-chat .hljs-title.class_.inherited__,.n8n-chat .hljs-title.function_{color:#6f42c1}.n8n-chat .hljs-attr,.n8n-chat .hljs-attribute,.n8n-chat .hljs-literal,.n8n-chat .hljs-meta,.n8n-chat .hljs-number,.n8n-chat .hljs-operator,.n8n-chat .hljs-selector-attr,.n8n-chat .hljs-selector-class,.n8n-chat .hljs-selector-id,.n8n-chat .hljs-variable{color:#005cc5}.n8n-chat .hljs-meta .hljs-string,.n8n-chat .hljs-regexp,.n8n-chat .hljs-string{color:#032f62}.n8n-chat .hljs-built_in,.n8n-chat .hljs-symbol{color:#e36209}.n8n-chat .hljs-code,.n8n-chat .hljs-comment,.n8n-chat .hljs-formula{color:#6a737d}.n8n-chat .hljs-name,.n8n-chat .hljs-quote,.n8n-chat .hljs-selector-pseudo,.n8n-chat .hljs-selector-tag{color:#22863a}.n8n-chat .hljs-subst{color:#24292e}.n8n-chat .hljs-section{color:#005cc5;font-weight:700}.n8n-chat .hljs-bullet{color:#735c0f}.n8n-chat .hljs-emphasis{color:#24292e;font-style:italic}.n8n-chat .hljs-strong{color:#24292e;font-weight:700}.n8n-chat .hljs-addition{color:#22863a;background-color:#f0fff4}.n8n-chat .hljs-deletion{color:#b31d28;background-color:#ffeef0}:root{--chat--color-primary: #e74266;--chat--color-primary-shade-50: #db4061;--chat--color-primary-shade-100: #cf3c5c;--chat--color-secondary: #20b69e;--chat--color-secondary-shade-50: #1ca08a;--chat--color-white: #ffffff;--chat--color-light: #f2f4f8;--chat--color-light-shade-50: #e6e9f1;--chat--color-light-shade-100: #c2c5cc;--chat--color-medium: #d2d4d9;--chat--color-dark: #101330;--chat--color-disabled: #777980;--chat--color-typing: #404040;--chat--spacing: 1rem;--chat--border-radius: .25rem;--chat--transition-duration: .15s;--chat--window--width: 400px;--chat--window--height: 600px;--chat--textarea--height: 50px;--chat--message--bot--background: var(--chat--color-white);--chat--message--bot--color: var(--chat--color-dark);--chat--message--user--background: var(--chat--color-secondary);--chat--message--user--color: var(--chat--color-white);--chat--message--pre--background: rgba(0, 0, 0, .05);--chat--toggle--background: var(--chat--color-primary);--chat--toggle--hover--background: var(--chat--color-primary-shade-50);--chat--toggle--active--background: var(--chat--color-primary-shade-100);--chat--toggle--color: var(--chat--color-white);--chat--toggle--size: 64px}.chat-button{display:inline-flex;text-align:center;vertical-align:middle;-webkit-user-select:none;user-select:none;color:var(--chat--button--color, var(--chat--color-light));background-color:var(--chat--button--background, var(--chat--color-primary));border:1px solid transparent;padding:var(--chat--button--padding, calc(var(--chat--spacing) * 1 / 2) var(--chat--spacing));font-size:1rem;line-height:1.5;border-radius:var(--chat--button--border-radius, var(--chat--border-radius));transition:color var(--chat--transition-duration) ease-in-out,background-color var(--chat--transition-duration) ease-in-out,border-color var(--chat--transition-duration) ease-in-out,box-shadow var(--chat--transition-duration) ease-in-out;cursor:pointer}.chat-button:hover{color:var(--chat--button--hover--color, var(--chat--color-light));background-color:var(--chat--button--hover--background, var(--chat--color-primary-shade-50));text-decoration:none}.chat-button:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.chat-button:disabled{opacity:.65}.chat-layout{width:100%;height:100%;display:flex;overflow-y:auto;flex-direction:column;font-family:var(--chat--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif)}.chat-layout .chat-header{padding:var(--chat--header--padding, var(--chat--spacing));background:var(--chat--header--background, var(--chat--color-dark));color:var(--chat--header--color, var(--chat--color-light))}.chat-layout .chat-body{background:var(--chat--body--background, var(--chat--color-light));flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;min-height:100px}.chat-layout .chat-footer{border-top:1px solid var(--chat--color-light-shade-100);background:var(--chat--footer--background, var(--chat--color-light));color:var(--chat--footer--color, var(--chat--color-dark))}.chat-get-started{padding-top:var(--chat--spacing);padding-bottom:var(--chat--spacing);display:flex;justify-content:center;align-items:center;height:100%}.chat-powered-by{text-align:center}.chat-powered-by a{color:var(--chat--color-primary);text-decoration:none}.chat-get-started-footer{padding:var(--chat--spacing)}.chat-message{display:block;max-width:80%;padding:var(--chat--message--padding, var(--chat--spacing));border-radius:var(--chat--message--border-radius, var(--chat--border-radius))}.chat-message+.chat-message{margin-top:var(--chat--message--margin-bottom, calc(var(--chat--spacing) * .5))}.chat-message.chat-message-from-bot{background-color:var(--chat--message--bot--background);color:var(--chat--message--bot--color);border-bottom-left-radius:0}.chat-message.chat-message-from-user{background-color:var(--chat--message--user--background);color:var(--chat--message--user--color);margin-left:auto;border-bottom-right-radius:0}.chat-message>.chat-message-markdown{display:block;box-sizing:border-box}.chat-message>.chat-message-markdown>*:first-child{margin-top:0}.chat-message>.chat-message-markdown>*:last-child{margin-bottom:0}.chat-message>.chat-message-markdown pre{font-family:inherit;font-size:inherit;margin:0;white-space:pre-wrap;box-sizing:border-box;padding:var(--chat--spacing);background:var(--chat--message--pre--background);border-radius:var(--chat--border-radius)}.chat-message-typing{max-width:80px}.chat-message-typing.chat-message-typing-animation-scaling .chat-message-typing-circle{animation:chat-message-typing-animation-scaling .8s ease-in-out infinite;animation-delay:3.6s}.chat-message-typing.chat-message-typing-animation-bouncing .chat-message-typing-circle{animation:chat-message-typing-animation-bouncing .8s ease-in-out infinite;animation-delay:3.6s}.chat-message-typing .chat-message-typing-body{display:flex;justify-content:center;align-items:center}.chat-message-typing .chat-message-typing-circle{display:block;height:10px;width:10px;border-radius:50%;background-color:var(--chat--color-typing);margin:3px}.chat-message-typing .chat-message-typing-circle:nth-child(1){animation-delay:0ms}.chat-message-typing .chat-message-typing-circle:nth-child(2){animation-delay:333ms}.chat-message-typing .chat-message-typing-circle:nth-child(3){animation-delay:666ms}@keyframes chat-message-typing-animation-scaling{0%{transform:scale(1)}33%{transform:scale(1)}50%{transform:scale(1.4)}to{transform:scale(1)}}@keyframes chat-message-typing-animation-bouncing{0%{transform:translateY(0)}33%{transform:translateY(0)}50%{transform:translateY(-10px)}to{transform:translateY(0)}}.chat-messages-list{margin-top:auto;display:block;padding:var(--chat--messages-list--padding, var(--chat--spacing))}.chat-input{display:flex;justify-content:center;align-items:center;width:100%}.chat-input textarea{font-family:inherit;font-size:inherit;width:100%;border:0;padding:var(--chat--spacing);max-height:var(--chat--textarea--height);resize:none}.chat-input .chat-input-send-button{height:var(--chat--textarea--height);width:var(--chat--textarea--height);background:white;cursor:pointer;color:var(--chat--color-secondary);border:0;font-size:24px;display:inline-flex;align-items:center;justify-content:center;transition:color var(--chat--transition-duration) ease}.chat-input .chat-input-send-button:hover,.chat-input .chat-input-send-button:focus{color:var(--chat--color-secondary-shade-50)}.chat-input .chat-input-send-button[disabled]{cursor:default;color:var(--chat--color-disabled)}.chat-window-wrapper{position:fixed;display:flex;flex-direction:column;bottom:var(--chat--window--bottom, var(--chat--spacing));right:var(--chat--window--right, var(--chat--spacing));z-index:var(--chat--window--z-index, 9999);max-width:calc(100% - var(--chat--window--right, var(--chat--spacing)) * 2);max-height:calc(100% - var(--chat--window--bottom, var(--chat--spacing)) * 2)}.chat-window-wrapper .chat-window{display:flex;width:var(--chat--window--width);height:var(--chat--window--height);max-width:100%;max-height:100%;border:var(--chat--window--border, 1px solid var(--chat--color-light-shade-100));border-radius:var(--chat--window--border-radius, var(--chat--border-radius));margin-bottom:var(--chat--window--margin-bottom, var(--chat--spacing));overflow:hidden;transform-origin:bottom right}.chat-window-wrapper .chat-window .chat-layout{width:auto;height:auto;flex:1}.chat-window-wrapper .chat-window-toggle{flex:0 0 auto;background:var(--chat--toggle--background);color:var(--chat--toggle--color);cursor:pointer;width:var(--chat--toggle--width, var(--chat--toggle--size));height:var(--chat--toggle--height, var(--chat--toggle--size));border-radius:var(--chat--toggle--border-radius, 50%);display:inline-flex;align-items:center;justify-content:center;margin-left:auto;transition:transform var(--chat--transition-duration) ease,background var(--chat--transition-duration) ease}.chat-window-wrapper .chat-window-toggle:hover,.chat-window-wrapper .chat-window-toggle:focus{transform:scale(1.05);background:var(--chat--toggle--hover--background)}.chat-window-wrapper .chat-window-toggle:active{transform:scale(.95);background:var(--chat--toggle--active--background)}.chat-window-transition-enter-active,.chat-window-transition-leave-active{transition:transform var(--chat--transition-duration) ease,opacity var(--chat--transition-duration) ease}.chat-window-transition-enter-from,.chat-window-transition-leave-to{transform:scale(0);opacity:0}.chat-window-toggle-transition-enter-active,.chat-window-toggle-transition-leave-active{transition:opacity var(--chat--transition-duration) ease}.chat-window-toggle-transition-enter-from,.chat-window-toggle-transition-leave-to{opacity:0}
|