@vue-skuilder/common-ui 0.2.33 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MarkdownRenderer-kStoDRNE.mjs → MarkdownRenderer-U_iPiA2x.mjs} +219 -216
- package/dist/MarkdownRenderer-U_iPiA2x.mjs.map +1 -0
- package/dist/admin/admin.css +1 -1
- package/dist/admin/common-ui-admin.es.js +24754 -638
- package/dist/admin/common-ui-admin.es.js.map +1 -1
- package/dist/admin/components/EChart.vue.d.ts +14 -0
- package/dist/admin/components/EChart.vue.d.ts.map +1 -0
- package/dist/admin/components/LearnerDiagnostics.vue.d.ts +3 -3
- package/dist/admin/components/LearnerDiagnostics.vue.d.ts.map +1 -1
- package/dist/admin/components/LearnerTagElo.vue.d.ts +14 -0
- package/dist/admin/components/LearnerTagElo.vue.d.ts.map +1 -0
- package/dist/admin/index.d.ts +1 -0
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/common-ui.es.js +3 -3
- package/dist/common-ui.es.js.map +1 -1
- package/dist/common-ui.umd.js +2 -2
- package/dist/common-ui.umd.js.map +1 -1
- package/dist/components/CourseCardBrowser.vue.d.ts +3 -3
- package/dist/components/CourseInformation.vue.d.ts +3 -3
- package/dist/components/PaginatingToolbar.vue.d.ts +3 -3
- package/dist/components/SkMouseTrapToolTip.vue.d.ts +1 -1
- package/dist/composables/CompositionViewable.d.ts +2 -2
- package/dist/composables/CompositionViewable.d.ts.map +1 -1
- package/dist/composables/Displayable.d.ts +6 -1
- package/dist/composables/Displayable.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/admin/components/EChart.vue +59 -0
- package/src/admin/components/LearnerDiagnostics.vue +8 -4
- package/src/admin/components/LearnerTagElo.vue +563 -0
- package/src/admin/index.ts +1 -0
- package/src/composables/CompositionViewable.ts +11 -5
- package/src/composables/Displayable.ts +7 -1
- package/dist/MarkdownRenderer-kStoDRNE.mjs.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s,
|
|
2
|
-
import
|
|
3
|
-
import { log as
|
|
4
|
-
import { defineStore as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, customRef as c, defineComponent as l, getCurrentInstance as u, h as d, inject as f, markRaw as p, mergeProps as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, resolveComponent as x, resolveDynamicComponent as S, toDisplayString as C, vModelText as w, watch as T, withCtx as E, withDirectives as D, withKeys as O } from "vue";
|
|
2
|
+
import k from "moment";
|
|
3
|
+
import { log as A } from "@vue-skuilder/common";
|
|
4
|
+
import { defineStore as ee, setActivePinia as j } from "pinia";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var
|
|
6
|
+
var M = Object.create, N = Object.defineProperty, __name = (e, t) => N(e, "name", {
|
|
7
7
|
value: t,
|
|
8
8
|
configurable: !0
|
|
9
|
-
}),
|
|
9
|
+
}), te = Object.getOwnPropertyDescriptor, P = Object.getOwnPropertyNames, ne = Object.getPrototypeOf, re = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __exportAll = (e, t) => {
|
|
10
10
|
let n = {};
|
|
11
|
-
for (var r in e)
|
|
11
|
+
for (var r in e) N(n, r, {
|
|
12
12
|
get: e[r],
|
|
13
13
|
enumerable: !0
|
|
14
14
|
});
|
|
15
|
-
return t ||
|
|
15
|
+
return t || N(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
16
16
|
}, __copyProps = (e, t, n, r) => {
|
|
17
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
17
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = P(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !re.call(e, s) && s !== n && N(e, s, {
|
|
18
18
|
get: ((e) => t[e]).bind(null, s),
|
|
19
|
-
enumerable: !(r =
|
|
19
|
+
enumerable: !(r = te(t, s)) || r.enumerable
|
|
20
20
|
});
|
|
21
21
|
return e;
|
|
22
|
-
}, __toESM = (e, t, n) => (n = e == null ? {} :
|
|
22
|
+
}, __toESM = (e, t, n) => (n = e == null ? {} : M(ne(e)), __copyProps(t || !e || !e.__esModule ? N(n, "default", {
|
|
23
23
|
value: e,
|
|
24
24
|
enumerable: !0
|
|
25
25
|
}) : n, e)), F = /* @__PURE__ */ __name((e, t) => {
|
|
26
26
|
let n = e.__vccOpts || e;
|
|
27
27
|
for (let [e, r] of t) n[e] = r;
|
|
28
28
|
return n;
|
|
29
|
-
}, "default"),
|
|
29
|
+
}, "default"), ie = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
30
30
|
(function(e, n, r) {
|
|
31
31
|
if (!e) return;
|
|
32
32
|
for (var i = {
|
|
@@ -328,14 +328,14 @@ function _defineProperty(e, t, n) {
|
|
|
328
328
|
}
|
|
329
329
|
//#endregion
|
|
330
330
|
//#region src/utils/SkldrMouseTrap.ts
|
|
331
|
-
var
|
|
331
|
+
var ae = /* @__PURE__ */ __toESM(ie());
|
|
332
332
|
function inputElementIsFocused() {
|
|
333
333
|
let e = document.activeElement;
|
|
334
334
|
return e instanceof HTMLInputElement && (e.type === "checkbox" || e.type === "radio") ? !1 : e instanceof HTMLElement && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT" || e.isContentEditable);
|
|
335
335
|
}
|
|
336
336
|
var I = class SkldrMouseTrap {
|
|
337
337
|
constructor() {
|
|
338
|
-
_defineProperty(this, "mouseTrap", void 0), _defineProperty(this, "hotkeys", void 0), this.mouseTrap = new
|
|
338
|
+
_defineProperty(this, "mouseTrap", void 0), _defineProperty(this, "hotkeys", void 0), this.mouseTrap = new ae.default(), this.mouseTrap.stopCallback = () => !1, this.hotkeys = [];
|
|
339
339
|
}
|
|
340
340
|
static get commands() {
|
|
341
341
|
return SkldrMouseTrap.instance().hotkeys.map((e) => ({
|
|
@@ -371,46 +371,49 @@ var I = class SkldrMouseTrap {
|
|
|
371
371
|
_defineProperty(I, "_instance", void 0);
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/composables/CompositionViewable.ts
|
|
374
|
-
function useViewable(e,
|
|
375
|
-
let
|
|
376
|
-
log: (e, ...t) => console.log(`[${
|
|
377
|
-
error: (e, ...t) => console.error(`[${
|
|
378
|
-
warn: (e, ...t) => console.warn(`[${
|
|
379
|
-
},
|
|
374
|
+
function useViewable(e, t, n) {
|
|
375
|
+
let r = y(k.utc()), i = y([]), a = {
|
|
376
|
+
log: (e, ...t) => console.log(`[${n}]: `, e, ...t),
|
|
377
|
+
error: (e, ...t) => console.error(`[${n}]: `, e, ...t),
|
|
378
|
+
warn: (e, ...t) => console.warn(`[${n}]: `, e, ...t)
|
|
379
|
+
}, o = c(() => ({
|
|
380
|
+
get: () => Math.abs(k.utc().diff(r.value, "milliseconds")),
|
|
381
|
+
set: () => {}
|
|
382
|
+
})), getURL = (t, n = 0) => {
|
|
380
383
|
try {
|
|
381
384
|
if (e.data[n]?.[t]) return URL.createObjectURL(e.data[n][t]);
|
|
382
385
|
} catch (e) {
|
|
383
|
-
|
|
386
|
+
a.error("Error creating URL for item:", t, e);
|
|
384
387
|
}
|
|
385
388
|
return "";
|
|
386
389
|
}, emitResponse = (e) => {
|
|
387
|
-
|
|
390
|
+
t("emitResponse", e);
|
|
388
391
|
};
|
|
389
392
|
return {
|
|
390
|
-
startTime:
|
|
391
|
-
hotKeys:
|
|
392
|
-
timeSpent:
|
|
393
|
-
logger:
|
|
393
|
+
startTime: r,
|
|
394
|
+
hotKeys: i,
|
|
395
|
+
timeSpent: o,
|
|
396
|
+
logger: a,
|
|
394
397
|
getURL,
|
|
395
398
|
emitResponse
|
|
396
399
|
};
|
|
397
400
|
}
|
|
398
401
|
function useQuestionView(e) {
|
|
399
|
-
let t =
|
|
402
|
+
let t = y(0), n = y(0), r = y([]), i = y(3), a = y(2), o = y(), submitAnswer = (t, i, a) => {
|
|
400
403
|
if (e.logger.log("submitAnswer called..."), !o.value) throw Error("Question not initialized");
|
|
401
404
|
r.value.push([t, i ?? ""]);
|
|
402
|
-
let s = o.value.evaluate(t,
|
|
403
|
-
e.logger.log(`evaluation of answer ${t}:`,
|
|
404
|
-
let
|
|
405
|
-
...
|
|
405
|
+
let s = e.timeSpent.value, c = o.value.evaluate(t, s);
|
|
406
|
+
e.logger.log(`evaluation of answer ${t}:`, c);
|
|
407
|
+
let l = {
|
|
408
|
+
...c,
|
|
406
409
|
priorAttemps: n.value,
|
|
407
410
|
courseID: "",
|
|
408
411
|
cardID: "",
|
|
409
|
-
timeSpent:
|
|
412
|
+
timeSpent: s,
|
|
410
413
|
timeStamp: e.startTime.value,
|
|
411
414
|
userAnswer: t
|
|
412
415
|
};
|
|
413
|
-
return a?.deferAdvance !== void 0 && (
|
|
416
|
+
return a?.deferAdvance !== void 0 && (l.deferAdvance = a.deferAdvance), c.isCorrect || n.value++, e.emitResponse(l), l;
|
|
414
417
|
};
|
|
415
418
|
return {
|
|
416
419
|
priorSessionViews: t,
|
|
@@ -427,14 +430,14 @@ function isQuestionView(e) {
|
|
|
427
430
|
}
|
|
428
431
|
//#endregion
|
|
429
432
|
//#region src/plugins/pinia.ts
|
|
430
|
-
var
|
|
431
|
-
|
|
432
|
-
}, getPinia = () =>
|
|
433
|
+
var oe = null, setPinia = (e) => {
|
|
434
|
+
oe = e;
|
|
435
|
+
}, getPinia = () => oe, se = { install(e, t) {
|
|
433
436
|
let n = t?.pinia;
|
|
434
437
|
n && setPinia(n);
|
|
435
438
|
} }, useCardPreviewModeStore = () => {
|
|
436
439
|
let e = getPinia();
|
|
437
|
-
return e &&
|
|
440
|
+
return e && j(e), ee("previewMode", {
|
|
438
441
|
state: () => ({ previewMode: !1 }),
|
|
439
442
|
actions: { setPreviewMode(e) {
|
|
440
443
|
this.previewMode = e;
|
|
@@ -443,7 +446,7 @@ var ae = null, setPinia = (e) => {
|
|
|
443
446
|
return this.previewMode;
|
|
444
447
|
} }
|
|
445
448
|
})();
|
|
446
|
-
},
|
|
449
|
+
}, ce = l({
|
|
447
450
|
name: "UserInput",
|
|
448
451
|
data() {
|
|
449
452
|
return {
|
|
@@ -475,20 +478,20 @@ var ae = null, setPinia = (e) => {
|
|
|
475
478
|
let n = e.$parent;
|
|
476
479
|
if (!n) {
|
|
477
480
|
let e = "\nUserInput.submit() has failed.\nThe input element has no QuestionView ancestor element.";
|
|
478
|
-
throw
|
|
481
|
+
throw A(e), Error(e);
|
|
479
482
|
}
|
|
480
483
|
if (e = n, t++, t > 100) {
|
|
481
484
|
let e = "\nUserInput.submit() has failed.\nExceeded maximum ancestor lookup depth.";
|
|
482
|
-
throw
|
|
485
|
+
throw A(e), Error(e);
|
|
483
486
|
}
|
|
484
487
|
}
|
|
485
488
|
if (!e) throw Error("No QuestionView ancestor found");
|
|
486
489
|
return e;
|
|
487
490
|
}
|
|
488
491
|
}
|
|
489
|
-
}),
|
|
492
|
+
}), le = l({
|
|
490
493
|
name: "UserInputString",
|
|
491
|
-
extends:
|
|
494
|
+
extends: ce,
|
|
492
495
|
props: { icon: {
|
|
493
496
|
type: Boolean,
|
|
494
497
|
required: !1
|
|
@@ -500,28 +503,28 @@ var ae = null, setPinia = (e) => {
|
|
|
500
503
|
this.$refs.input?.focus();
|
|
501
504
|
},
|
|
502
505
|
methods: {}
|
|
503
|
-
}),
|
|
506
|
+
}), ue = { class: "user-input-container" }, de = ["autofocus"];
|
|
504
507
|
function _sfc_render$2(e, t, n, r, o, s) {
|
|
505
|
-
return
|
|
508
|
+
return v(), i("span", ue, [D(a("input", {
|
|
506
509
|
"onUpdate:modelValue": t[0] || (t[0] = (t) => e.answer = t),
|
|
507
510
|
autofocus: e.autofocus,
|
|
508
511
|
type: "text",
|
|
509
512
|
class: "user-input-string",
|
|
510
513
|
ref: "input",
|
|
511
|
-
onKeyup: t[1] || (t[1] =
|
|
512
|
-
}, null, 40,
|
|
514
|
+
onKeyup: t[1] || (t[1] = O((t) => e.submitAnswer(e.answer), ["enter"]))
|
|
515
|
+
}, null, 40, de), [[w, e.answer]])]);
|
|
513
516
|
}
|
|
514
517
|
__name(_sfc_render$2, "_sfc_render");
|
|
515
|
-
var
|
|
518
|
+
var fe = /* @__PURE__ */ F(le, [["render", _sfc_render$2], ["__scopeId", "data-v-aa14961f"]]), pe = l({
|
|
516
519
|
name: "FillInInput",
|
|
517
|
-
components: { UserInputString:
|
|
520
|
+
components: { UserInputString: fe },
|
|
518
521
|
props: { text: {
|
|
519
522
|
type: String,
|
|
520
523
|
required: !0
|
|
521
524
|
} },
|
|
522
525
|
setup(e) {
|
|
523
|
-
let n =
|
|
524
|
-
return
|
|
526
|
+
let n = y("text"), r = y(""), i = t(() => e.text.split("||").length > 1);
|
|
527
|
+
return _(() => {
|
|
525
528
|
console.log(`fillinCreated w/ text: ${e.text}`), r.value = e.text.substring(2, e.text.length - 2), console.log(`fillin text trimmed to: ${r.value}`), r.value.split("||").length > 1 && (n.value = "radio");
|
|
526
529
|
}), {
|
|
527
530
|
inputType: n,
|
|
@@ -529,13 +532,13 @@ var de = /* @__PURE__ */ F(ce, [["render", _sfc_render$2], ["__scopeId", "data-v
|
|
|
529
532
|
processedText: r
|
|
530
533
|
};
|
|
531
534
|
}
|
|
532
|
-
}),
|
|
535
|
+
}), me = {
|
|
533
536
|
key: 0,
|
|
534
537
|
class: "text-h5 underline"
|
|
535
538
|
};
|
|
536
539
|
function _sfc_render$1(e, t, r, a, o, s) {
|
|
537
|
-
let c =
|
|
538
|
-
return e.radioType ? (
|
|
540
|
+
let c = x("user-input-string");
|
|
541
|
+
return e.radioType ? (v(), i("span", me, "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0")) : (v(), n(c, {
|
|
539
542
|
key: 1,
|
|
540
543
|
id: "input",
|
|
541
544
|
icon: !1,
|
|
@@ -544,7 +547,7 @@ function _sfc_render$1(e, t, r, a, o, s) {
|
|
|
544
547
|
}, null, 8, ["value"]));
|
|
545
548
|
}
|
|
546
549
|
__name(_sfc_render$1, "_sfc_render");
|
|
547
|
-
var
|
|
550
|
+
var he = /* @__PURE__ */ F(pe, [["render", _sfc_render$1], ["__scopeId", "data-v-486ac035"]]);
|
|
548
551
|
//#endregion
|
|
549
552
|
//#region ../../node_modules/marked/lib/marked.esm.js
|
|
550
553
|
function _getDefaults() {
|
|
@@ -633,85 +636,85 @@ var z = {
|
|
|
633
636
|
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
634
637
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
635
638
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
636
|
-
},
|
|
637
|
-
blockquote: edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",
|
|
638
|
-
code:
|
|
639
|
-
def:
|
|
640
|
-
fences:
|
|
641
|
-
heading:
|
|
639
|
+
}, ge = /^(?:[ \t]*(?:\n|$))+/, _e = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ve = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, B = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, V = /(?:[*+-]|\d{1,9}[.)])/, be = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, xe = edit(be).replace(/bull/g, V).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Se = edit(be).replace(/bull/g, V).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), H = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ce = /^[^\n]+/, U = /(?!\s*\])(?:\\.|[^\[\]\\])+/, we = edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", U).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Te = edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, V).getRegex(), W = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ee = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, De = edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ee).replace("tag", W).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Oe = edit(H).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", W).getRegex(), ke = {
|
|
640
|
+
blockquote: edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Oe).getRegex(),
|
|
641
|
+
code: _e,
|
|
642
|
+
def: we,
|
|
643
|
+
fences: ve,
|
|
644
|
+
heading: ye,
|
|
642
645
|
hr: B,
|
|
643
|
-
html:
|
|
644
|
-
lheading: be,
|
|
645
|
-
list: we,
|
|
646
|
-
newline: he,
|
|
647
|
-
paragraph: De,
|
|
648
|
-
table: R,
|
|
649
|
-
text: Se
|
|
650
|
-
}, ke = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", W).getRegex(), Ae = {
|
|
651
|
-
...Oe,
|
|
646
|
+
html: De,
|
|
652
647
|
lheading: xe,
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
648
|
+
list: Te,
|
|
649
|
+
newline: ge,
|
|
650
|
+
paragraph: Oe,
|
|
651
|
+
table: R,
|
|
652
|
+
text: Ce
|
|
653
|
+
}, Ae = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", W).getRegex(), je = {
|
|
654
|
+
...ke,
|
|
655
|
+
lheading: Se,
|
|
656
|
+
table: Ae,
|
|
657
|
+
paragraph: edit(H).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ae).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", W).getRegex()
|
|
658
|
+
}, Me = {
|
|
659
|
+
...ke,
|
|
660
|
+
html: edit("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ee).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
658
661
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
659
662
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
660
663
|
fences: R,
|
|
661
664
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
662
|
-
paragraph: edit(H).replace("hr", B).replace("heading", " *#{1,6} *[^\n]").replace("lheading",
|
|
663
|
-
},
|
|
665
|
+
paragraph: edit(H).replace("hr", B).replace("heading", " *#{1,6} *[^\n]").replace("lheading", xe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
666
|
+
}, Ne = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Pe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Fe = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, G = /[\p{P}\p{S}]/u, Le = /[\s\p{P}\p{S}]/u, Re = /[^\s\p{P}\p{S}]/u, ze = edit(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Le).getRegex(), Be = /(?!~)[\p{P}\p{S}]/u, Ve = /(?!~)[\s\p{P}\p{S}]/u, He = /(?:[^\s\p{P}\p{S}]|~)/u, Ue = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, We = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ge = edit(We, "u").replace(/punct/g, G).getRegex(), Ke = edit(We, "u").replace(/punct/g, Be).getRegex(), qe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Je = edit(qe, "gu").replace(/notPunctSpace/g, Re).replace(/punctSpace/g, Le).replace(/punct/g, G).getRegex(), Ye = edit(qe, "gu").replace(/notPunctSpace/g, He).replace(/punctSpace/g, Ve).replace(/punct/g, Be).getRegex(), Xe = edit("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Re).replace(/punctSpace/g, Le).replace(/punct/g, G).getRegex(), Ze = edit(/\\(punct)/, "gu").replace(/punct/g, G).getRegex(), Qe = edit(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), $e = edit(Ee).replace("(?:-->|$)", "-->").getRegex(), et = edit("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", $e).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), K = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, tt = edit(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", K).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), nt = edit(/^!?\[(label)\]\[(ref)\]/).replace("label", K).replace("ref", U).getRegex(), rt = edit(/^!?\[(ref)\](?:\[\])?/).replace("ref", U).getRegex(), it = {
|
|
664
667
|
_backpedal: R,
|
|
665
|
-
anyPunctuation:
|
|
666
|
-
autolink:
|
|
667
|
-
blockSkip:
|
|
668
|
-
br:
|
|
669
|
-
code:
|
|
668
|
+
anyPunctuation: Ze,
|
|
669
|
+
autolink: Qe,
|
|
670
|
+
blockSkip: Ue,
|
|
671
|
+
br: Fe,
|
|
672
|
+
code: Pe,
|
|
670
673
|
del: R,
|
|
671
|
-
emStrongLDelim:
|
|
672
|
-
emStrongRDelimAst:
|
|
673
|
-
emStrongRDelimUnd:
|
|
674
|
-
escape:
|
|
675
|
-
link:
|
|
676
|
-
nolink:
|
|
677
|
-
punctuation:
|
|
678
|
-
reflink:
|
|
679
|
-
reflinkSearch: edit("reflink|nolink(?!\\()", "g").replace("reflink",
|
|
680
|
-
tag:
|
|
681
|
-
text:
|
|
674
|
+
emStrongLDelim: Ge,
|
|
675
|
+
emStrongRDelimAst: Je,
|
|
676
|
+
emStrongRDelimUnd: Xe,
|
|
677
|
+
escape: Ne,
|
|
678
|
+
link: tt,
|
|
679
|
+
nolink: rt,
|
|
680
|
+
punctuation: ze,
|
|
681
|
+
reflink: nt,
|
|
682
|
+
reflinkSearch: edit("reflink|nolink(?!\\()", "g").replace("reflink", nt).replace("nolink", rt).getRegex(),
|
|
683
|
+
tag: et,
|
|
684
|
+
text: Ie,
|
|
682
685
|
url: R
|
|
683
|
-
},
|
|
684
|
-
...
|
|
686
|
+
}, at = {
|
|
687
|
+
...it,
|
|
685
688
|
link: edit(/^!?\[(label)\]\((.*?)\)/).replace("label", K).getRegex(),
|
|
686
689
|
reflink: edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", K).getRegex()
|
|
687
|
-
},
|
|
688
|
-
...
|
|
689
|
-
emStrongRDelimAst:
|
|
690
|
-
emStrongLDelim:
|
|
690
|
+
}, ot = {
|
|
691
|
+
...it,
|
|
692
|
+
emStrongRDelimAst: Ye,
|
|
693
|
+
emStrongLDelim: Ke,
|
|
691
694
|
url: edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
692
695
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
693
696
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
694
697
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
695
|
-
},
|
|
696
|
-
...
|
|
697
|
-
br: edit(
|
|
698
|
-
text: edit(
|
|
698
|
+
}, st = {
|
|
699
|
+
...ot,
|
|
700
|
+
br: edit(Fe).replace("{2,}", "*").getRegex(),
|
|
701
|
+
text: edit(ot.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
699
702
|
}, q = {
|
|
700
|
-
normal:
|
|
701
|
-
gfm:
|
|
702
|
-
pedantic:
|
|
703
|
+
normal: ke,
|
|
704
|
+
gfm: je,
|
|
705
|
+
pedantic: Me
|
|
703
706
|
}, J = {
|
|
704
|
-
normal:
|
|
705
|
-
gfm:
|
|
706
|
-
breaks:
|
|
707
|
-
pedantic:
|
|
708
|
-
},
|
|
707
|
+
normal: it,
|
|
708
|
+
gfm: ot,
|
|
709
|
+
breaks: st,
|
|
710
|
+
pedantic: at
|
|
711
|
+
}, ct = {
|
|
709
712
|
"&": "&",
|
|
710
713
|
"<": "<",
|
|
711
714
|
">": ">",
|
|
712
715
|
"\"": """,
|
|
713
716
|
"'": "'"
|
|
714
|
-
}, getEscapeReplacement = (e) =>
|
|
717
|
+
}, getEscapeReplacement = (e) => ct[e];
|
|
715
718
|
function escape(e, t) {
|
|
716
719
|
if (t) {
|
|
717
720
|
if (z.escapeTest.test(e)) return e.replace(z.escapeReplace, getEscapeReplacement);
|
|
@@ -1865,7 +1868,7 @@ marked.options = marked.setOptions = function(e) {
|
|
|
1865
1868
|
}, marked.walkTokens = function(e, t) {
|
|
1866
1869
|
return Z.walkTokens(e, t);
|
|
1867
1870
|
}, marked.parseInline = Z.parseInline, marked.Parser = X, marked.parser = X.parse, marked.Renderer = _Renderer, marked.TextRenderer = _TextRenderer, marked.Lexer = Y, marked.lexer = Y.lex, marked.Tokenizer = _Tokenizer, marked.Hooks = _Hooks, marked.parse = marked, marked.options, marked.setOptions, marked.use, marked.walkTokens, marked.parseInline, X.parse;
|
|
1868
|
-
var
|
|
1871
|
+
var lt = Y.lex;
|
|
1869
1872
|
//#endregion
|
|
1870
1873
|
//#region src/components/cardRendering/MarkdownRendererHelpers.ts
|
|
1871
1874
|
function splitByDelimiters(e, t, n) {
|
|
@@ -1900,7 +1903,7 @@ function splitParagraphToken(e) {
|
|
|
1900
1903
|
text: n[e],
|
|
1901
1904
|
raw: r[e]
|
|
1902
1905
|
};
|
|
1903
|
-
isComponent(i) ? t.push(i) :
|
|
1906
|
+
isComponent(i) ? t.push(i) : lt(r[e]).forEach((e) => {
|
|
1904
1907
|
e.type === "paragraph" ? t = t.concat(e.tokens) : t.push(e);
|
|
1905
1908
|
});
|
|
1906
1909
|
}
|
|
@@ -1942,14 +1945,14 @@ function parseComponentToken(e) {
|
|
|
1942
1945
|
}
|
|
1943
1946
|
//#endregion
|
|
1944
1947
|
//#region src/components/cardRendering/AudioAutoPlayer.vue?vue&type=script&setup=true&lang.ts
|
|
1945
|
-
var
|
|
1948
|
+
var ut = 500, dt = /* @__PURE__ */ F(/* @__PURE__ */ l({
|
|
1946
1949
|
__name: "AudioAutoPlayer",
|
|
1947
1950
|
props: { src: {} },
|
|
1948
1951
|
setup(e) {
|
|
1949
|
-
let t = e, r =
|
|
1952
|
+
let t = e, r = y([]), i = y([]), a = y(!1), c = null, stop = () => {
|
|
1950
1953
|
a.value = !1, setTimeout(() => {
|
|
1951
1954
|
c = null;
|
|
1952
|
-
},
|
|
1955
|
+
}, ut), i.value.forEach(clearTimeout), console.log("Audio stopping..."), r.value.forEach((e) => {
|
|
1953
1956
|
e.paused || (e.pause(), e.currentTime = 0);
|
|
1954
1957
|
});
|
|
1955
1958
|
}, downloadFinished = (e) => {
|
|
@@ -1968,12 +1971,12 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
1968
1971
|
a.value = !1;
|
|
1969
1972
|
}, r.value[e].duration * 1e3), setTimeout(() => {
|
|
1970
1973
|
c = null;
|
|
1971
|
-
}, r.value[e].duration * 1e3 +
|
|
1974
|
+
}, r.value[e].duration * 1e3 + ut);
|
|
1972
1975
|
else setTimeout(playByIndex, 100, e);
|
|
1973
1976
|
}, play = () => {
|
|
1974
|
-
c === null || c ===
|
|
1977
|
+
c === null || c === u() ? (c = u(), a.value = !0, playByIndex(0)) : setTimeout(play, 100);
|
|
1975
1978
|
};
|
|
1976
|
-
return
|
|
1979
|
+
return _(() => {
|
|
1977
1980
|
c = null, typeof t.src == "string" ? r.value.push(new Audio(t.src)) : t.src.forEach((e) => {
|
|
1978
1981
|
r.value.push(new Audio(e));
|
|
1979
1982
|
});
|
|
@@ -1983,19 +1986,19 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
1983
1986
|
command: "Replay Audio"
|
|
1984
1987
|
}];
|
|
1985
1988
|
I.addBinding(e), play();
|
|
1986
|
-
}),
|
|
1989
|
+
}), g(() => {
|
|
1987
1990
|
I.removeBinding("up"), stop();
|
|
1988
1991
|
}), (e, t) => {
|
|
1989
|
-
let r =
|
|
1990
|
-
return
|
|
1992
|
+
let r = x("v-icon"), i = x("v-btn");
|
|
1993
|
+
return v(), n(i, {
|
|
1991
1994
|
size: "large",
|
|
1992
1995
|
icon: "",
|
|
1993
1996
|
color: a.value ? "primary lighten-3" : "primary",
|
|
1994
|
-
class:
|
|
1997
|
+
class: h({ playing: a.value }),
|
|
1995
1998
|
onClick: play
|
|
1996
1999
|
}, {
|
|
1997
|
-
default:
|
|
1998
|
-
default:
|
|
2000
|
+
default: E(() => [s(r, null, {
|
|
2001
|
+
default: E(() => t[0] || (t[0] = [o("mdi-volume-high")])),
|
|
1999
2002
|
_: 1
|
|
2000
2003
|
})]),
|
|
2001
2004
|
_: 1
|
|
@@ -2841,7 +2844,7 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
2841
2844
|
return Object.assign(e, E), e;
|
|
2842
2845
|
}, P = HLJS({});
|
|
2843
2846
|
P.newInstance = () => HLJS({}), t.exports = P, P.HighlightJS = P, P.default = P;
|
|
2844
|
-
})))())).default,
|
|
2847
|
+
})))())).default, ft = l({
|
|
2845
2848
|
props: {
|
|
2846
2849
|
code: {
|
|
2847
2850
|
type: String,
|
|
@@ -2861,8 +2864,8 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
2861
2864
|
}
|
|
2862
2865
|
},
|
|
2863
2866
|
setup: function(e) {
|
|
2864
|
-
var n =
|
|
2865
|
-
|
|
2867
|
+
var n = y(e.language);
|
|
2868
|
+
T((function() {
|
|
2866
2869
|
return e.language;
|
|
2867
2870
|
}), (function(e) {
|
|
2868
2871
|
n.value = e;
|
|
@@ -2890,25 +2893,25 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
2890
2893
|
};
|
|
2891
2894
|
},
|
|
2892
2895
|
render: function() {
|
|
2893
|
-
return
|
|
2896
|
+
return d("pre", {}, [d("code", {
|
|
2894
2897
|
class: this.className,
|
|
2895
2898
|
innerHTML: this.highlightedCode,
|
|
2896
2899
|
tabindex: "0"
|
|
2897
2900
|
})]);
|
|
2898
2901
|
}
|
|
2899
|
-
}),
|
|
2902
|
+
}), pt = {
|
|
2900
2903
|
install: function(e) {
|
|
2901
|
-
e.component("highlightjs",
|
|
2904
|
+
e.component("highlightjs", ft);
|
|
2902
2905
|
},
|
|
2903
|
-
component:
|
|
2904
|
-
},
|
|
2906
|
+
component: ft
|
|
2907
|
+
}, mt = "[A-Za-z$_][0-9A-Za-z$_]*", ht = /* @__PURE__ */ "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.using".split("."), gt = [
|
|
2905
2908
|
"true",
|
|
2906
2909
|
"false",
|
|
2907
2910
|
"null",
|
|
2908
2911
|
"undefined",
|
|
2909
2912
|
"NaN",
|
|
2910
2913
|
"Infinity"
|
|
2911
|
-
],
|
|
2914
|
+
], _t = /* @__PURE__ */ "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".split("."), vt = [
|
|
2912
2915
|
"Error",
|
|
2913
2916
|
"EvalError",
|
|
2914
2917
|
"InternalError",
|
|
@@ -2917,7 +2920,7 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
2917
2920
|
"SyntaxError",
|
|
2918
2921
|
"TypeError",
|
|
2919
2922
|
"URIError"
|
|
2920
|
-
],
|
|
2923
|
+
], yt = [
|
|
2921
2924
|
"setInterval",
|
|
2922
2925
|
"setTimeout",
|
|
2923
2926
|
"clearInterval",
|
|
@@ -2935,7 +2938,7 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
2935
2938
|
"encodeURIComponent",
|
|
2936
2939
|
"escape",
|
|
2937
2940
|
"unescape"
|
|
2938
|
-
],
|
|
2941
|
+
], bt = [
|
|
2939
2942
|
"arguments",
|
|
2940
2943
|
"this",
|
|
2941
2944
|
"super",
|
|
@@ -2946,12 +2949,12 @@ var lt = 500, ut = /* @__PURE__ */ F(/* @__PURE__ */ c({
|
|
|
2946
2949
|
"sessionStorage",
|
|
2947
2950
|
"module",
|
|
2948
2951
|
"global"
|
|
2949
|
-
],
|
|
2952
|
+
], xt = [].concat(yt, _t, vt);
|
|
2950
2953
|
function javascript$1(e) {
|
|
2951
2954
|
let t = e.regex, hasClosingTag = (e, { after: t }) => {
|
|
2952
2955
|
let n = "</" + e[0].slice(1);
|
|
2953
2956
|
return e.input.indexOf(n, t) !== -1;
|
|
2954
|
-
}, n =
|
|
2957
|
+
}, n = mt, r = {
|
|
2955
2958
|
begin: "<>",
|
|
2956
2959
|
end: "</>"
|
|
2957
2960
|
}, i = /<[A-Za-z0-9\\._:-]+\s*\/>/, a = {
|
|
@@ -2975,11 +2978,11 @@ function javascript$1(e) {
|
|
|
2975
2978
|
}
|
|
2976
2979
|
}
|
|
2977
2980
|
}, o = {
|
|
2978
|
-
$pattern:
|
|
2979
|
-
keyword:
|
|
2980
|
-
literal:
|
|
2981
|
-
built_in:
|
|
2982
|
-
"variable.language":
|
|
2981
|
+
$pattern: mt,
|
|
2982
|
+
keyword: ht,
|
|
2983
|
+
literal: gt,
|
|
2984
|
+
built_in: xt,
|
|
2985
|
+
"variable.language": bt
|
|
2983
2986
|
}, s = "[0-9](_?[0-9])*", c = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", u = {
|
|
2984
2987
|
className: "number",
|
|
2985
2988
|
variants: [
|
|
@@ -3126,7 +3129,7 @@ function javascript$1(e) {
|
|
|
3126
3129
|
relevance: 0,
|
|
3127
3130
|
match: t.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]*)*/),
|
|
3128
3131
|
className: "title.class",
|
|
3129
|
-
keywords: { _: [...
|
|
3132
|
+
keywords: { _: [..._t, ...vt] }
|
|
3130
3133
|
}, C = {
|
|
3131
3134
|
label: "use_strict",
|
|
3132
3135
|
className: "meta",
|
|
@@ -3156,7 +3159,7 @@ function javascript$1(e) {
|
|
|
3156
3159
|
}
|
|
3157
3160
|
let E = {
|
|
3158
3161
|
match: t.concat(/\b/, noneOf([
|
|
3159
|
-
...
|
|
3162
|
+
...yt,
|
|
3160
3163
|
"super",
|
|
3161
3164
|
"import"
|
|
3162
3165
|
].map((e) => `${e}\\s*\\(`)), n, t.lookahead(/\s*\(/)),
|
|
@@ -3337,14 +3340,14 @@ function javascript$1(e) {
|
|
|
3337
3340
|
__name(javascript$1, "javascript");
|
|
3338
3341
|
//#endregion
|
|
3339
3342
|
//#region ../../node_modules/highlight.js/es/languages/typescript.js
|
|
3340
|
-
var $ = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
3343
|
+
var $ = "[A-Za-z$_][0-9A-Za-z$_]*", St = /* @__PURE__ */ "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.using".split("."), Ct = [
|
|
3341
3344
|
"true",
|
|
3342
3345
|
"false",
|
|
3343
3346
|
"null",
|
|
3344
3347
|
"undefined",
|
|
3345
3348
|
"NaN",
|
|
3346
3349
|
"Infinity"
|
|
3347
|
-
],
|
|
3350
|
+
], wt = /* @__PURE__ */ "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".split("."), Tt = [
|
|
3348
3351
|
"Error",
|
|
3349
3352
|
"EvalError",
|
|
3350
3353
|
"InternalError",
|
|
@@ -3353,7 +3356,7 @@ var $ = "[A-Za-z$_][0-9A-Za-z$_]*", xt = /* @__PURE__ */ "as.in.of.if.for.while.
|
|
|
3353
3356
|
"SyntaxError",
|
|
3354
3357
|
"TypeError",
|
|
3355
3358
|
"URIError"
|
|
3356
|
-
],
|
|
3359
|
+
], Et = [
|
|
3357
3360
|
"setInterval",
|
|
3358
3361
|
"setTimeout",
|
|
3359
3362
|
"clearInterval",
|
|
@@ -3371,7 +3374,7 @@ var $ = "[A-Za-z$_][0-9A-Za-z$_]*", xt = /* @__PURE__ */ "as.in.of.if.for.while.
|
|
|
3371
3374
|
"encodeURIComponent",
|
|
3372
3375
|
"escape",
|
|
3373
3376
|
"unescape"
|
|
3374
|
-
],
|
|
3377
|
+
], Dt = [
|
|
3375
3378
|
"arguments",
|
|
3376
3379
|
"this",
|
|
3377
3380
|
"super",
|
|
@@ -3382,7 +3385,7 @@ var $ = "[A-Za-z$_][0-9A-Za-z$_]*", xt = /* @__PURE__ */ "as.in.of.if.for.while.
|
|
|
3382
3385
|
"sessionStorage",
|
|
3383
3386
|
"module",
|
|
3384
3387
|
"global"
|
|
3385
|
-
],
|
|
3388
|
+
], Ot = [].concat(Et, wt, Tt);
|
|
3386
3389
|
function javascript(e) {
|
|
3387
3390
|
let t = e.regex, hasClosingTag = (e, { after: t }) => {
|
|
3388
3391
|
let n = "</" + e[0].slice(1);
|
|
@@ -3412,10 +3415,10 @@ function javascript(e) {
|
|
|
3412
3415
|
}
|
|
3413
3416
|
}, o = {
|
|
3414
3417
|
$pattern: $,
|
|
3415
|
-
keyword:
|
|
3416
|
-
literal:
|
|
3417
|
-
built_in:
|
|
3418
|
-
"variable.language":
|
|
3418
|
+
keyword: St,
|
|
3419
|
+
literal: Ct,
|
|
3420
|
+
built_in: Ot,
|
|
3421
|
+
"variable.language": Dt
|
|
3419
3422
|
}, s = "[0-9](_?[0-9])*", c = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", u = {
|
|
3420
3423
|
className: "number",
|
|
3421
3424
|
variants: [
|
|
@@ -3562,7 +3565,7 @@ function javascript(e) {
|
|
|
3562
3565
|
relevance: 0,
|
|
3563
3566
|
match: t.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]*)*/),
|
|
3564
3567
|
className: "title.class",
|
|
3565
|
-
keywords: { _: [...
|
|
3568
|
+
keywords: { _: [...wt, ...Tt] }
|
|
3566
3569
|
}, C = {
|
|
3567
3570
|
label: "use_strict",
|
|
3568
3571
|
className: "meta",
|
|
@@ -3592,7 +3595,7 @@ function javascript(e) {
|
|
|
3592
3595
|
}
|
|
3593
3596
|
let E = {
|
|
3594
3597
|
match: t.concat(/\b/, noneOf([
|
|
3595
|
-
...
|
|
3598
|
+
...Et,
|
|
3596
3599
|
"super",
|
|
3597
3600
|
"import"
|
|
3598
3601
|
].map((e) => `${e}\\s*\\(`)), n, t.lookahead(/\s*\(/)),
|
|
@@ -3807,7 +3810,7 @@ function typescript(e) {
|
|
|
3807
3810
|
begin: /^\s*['"]use strict['"]/
|
|
3808
3811
|
}, c = {
|
|
3809
3812
|
$pattern: $,
|
|
3810
|
-
keyword:
|
|
3813
|
+
keyword: St.concat([
|
|
3811
3814
|
"type",
|
|
3812
3815
|
"interface",
|
|
3813
3816
|
"public",
|
|
@@ -3821,9 +3824,9 @@ function typescript(e) {
|
|
|
3821
3824
|
"override",
|
|
3822
3825
|
"satisfies"
|
|
3823
3826
|
]),
|
|
3824
|
-
literal:
|
|
3825
|
-
built_in:
|
|
3826
|
-
"variable.language":
|
|
3827
|
+
literal: Ct,
|
|
3828
|
+
built_in: Ot.concat(i),
|
|
3829
|
+
"variable.language": Dt
|
|
3827
3830
|
}, l = {
|
|
3828
3831
|
className: "meta",
|
|
3829
3832
|
begin: "@" + r
|
|
@@ -3887,7 +3890,7 @@ var MODES = (e) => ({
|
|
|
3887
3890
|
className: "attr",
|
|
3888
3891
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
3889
3892
|
}
|
|
3890
|
-
}),
|
|
3893
|
+
}), kt = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), At = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), jt = [...kt, ...At], Mt = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Nt = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), Pt = [
|
|
3891
3894
|
"after",
|
|
3892
3895
|
"backdrop",
|
|
3893
3896
|
"before",
|
|
@@ -3902,7 +3905,7 @@ var MODES = (e) => ({
|
|
|
3902
3905
|
"selection",
|
|
3903
3906
|
"slotted",
|
|
3904
3907
|
"spelling-error"
|
|
3905
|
-
].sort().reverse(),
|
|
3908
|
+
].sort().reverse(), Ft = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
|
|
3906
3909
|
function css(e) {
|
|
3907
3910
|
let t = e.regex, n = MODES(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i = /@-?\w[\w]*(-\w+)*/, a = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE];
|
|
3908
3911
|
return {
|
|
@@ -3928,12 +3931,12 @@ function css(e) {
|
|
|
3928
3931
|
n.ATTRIBUTE_SELECTOR_MODE,
|
|
3929
3932
|
{
|
|
3930
3933
|
className: "selector-pseudo",
|
|
3931
|
-
variants: [{ begin: ":(" +
|
|
3934
|
+
variants: [{ begin: ":(" + Nt.join("|") + ")" }, { begin: ":(:)?(" + Pt.join("|") + ")" }]
|
|
3932
3935
|
},
|
|
3933
3936
|
n.CSS_VARIABLE,
|
|
3934
3937
|
{
|
|
3935
3938
|
className: "attribute",
|
|
3936
|
-
begin: "\\b(" +
|
|
3939
|
+
begin: "\\b(" + Ft.join("|") + ")\\b"
|
|
3937
3940
|
},
|
|
3938
3941
|
{
|
|
3939
3942
|
begin: /:/,
|
|
@@ -3975,7 +3978,7 @@ function css(e) {
|
|
|
3975
3978
|
keywords: {
|
|
3976
3979
|
$pattern: /[a-z-]+/,
|
|
3977
3980
|
keyword: "and or not only",
|
|
3978
|
-
attribute:
|
|
3981
|
+
attribute: Mt.join(" ")
|
|
3979
3982
|
},
|
|
3980
3983
|
contains: [
|
|
3981
3984
|
{
|
|
@@ -3989,7 +3992,7 @@ function css(e) {
|
|
|
3989
3992
|
},
|
|
3990
3993
|
{
|
|
3991
3994
|
className: "selector-tag",
|
|
3992
|
-
begin: "\\b(" +
|
|
3995
|
+
begin: "\\b(" + jt.join("|") + ")\\b"
|
|
3993
3996
|
}
|
|
3994
3997
|
]
|
|
3995
3998
|
};
|
|
@@ -4740,10 +4743,10 @@ function python(e) {
|
|
|
4740
4743
|
}
|
|
4741
4744
|
//#endregion
|
|
4742
4745
|
//#region src/components/cardRendering/CodeBlockRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
4743
|
-
var
|
|
4746
|
+
var It = { class: "code-block-wrapper pa-2" }, Lt = {
|
|
4744
4747
|
key: 0,
|
|
4745
4748
|
class: "language-indicator"
|
|
4746
|
-
},
|
|
4749
|
+
}, Rt = /* @__PURE__ */ l({
|
|
4747
4750
|
__name: "CodeBlockRenderer",
|
|
4748
4751
|
props: {
|
|
4749
4752
|
code: {
|
|
@@ -4757,31 +4760,31 @@ var Ft = { class: "code-block-wrapper pa-2" }, It = {
|
|
|
4757
4760
|
},
|
|
4758
4761
|
setup(e) {
|
|
4759
4762
|
Q.registerLanguage("js", javascript$1), Q.registerLanguage("javascript", javascript$1), Q.registerLanguage("ts", typescript), Q.registerLanguage("typescript", typescript), Q.registerLanguage("css", css), Q.registerLanguage("html", xml), Q.registerLanguage("bash", bash), Q.registerLanguage("sh", bash), Q.registerLanguage("json", json), Q.registerLanguage("go", go), Q.registerLanguage("golang", go), Q.registerLanguage("python", python);
|
|
4760
|
-
let t =
|
|
4761
|
-
return t && t.appContext.app.component("highlightjs",
|
|
4762
|
-
let a =
|
|
4763
|
-
return
|
|
4763
|
+
let t = u();
|
|
4764
|
+
return t && t.appContext.app.component("highlightjs", pt.component), (t, n) => {
|
|
4765
|
+
let a = x("highlightjs");
|
|
4766
|
+
return v(), i("div", It, [e.language ? (v(), i("div", Lt, C(e.language), 1)) : r("", !0), s(a, {
|
|
4764
4767
|
language: e.language,
|
|
4765
4768
|
code: e.code
|
|
4766
4769
|
}, null, 8, ["language", "code"])]);
|
|
4767
4770
|
};
|
|
4768
4771
|
}
|
|
4769
|
-
}),
|
|
4772
|
+
}), zt = { key: 0 }, Bt = { key: 0 }, Vt = { key: 0 }, Ht = {
|
|
4770
4773
|
key: 1,
|
|
4771
4774
|
class: "error--text"
|
|
4772
|
-
},
|
|
4775
|
+
}, Ut = { key: 1 }, Wt = { key: 2 }, Gt = { key: 1 }, Kt = { key: 1 }, qt = {
|
|
4773
4776
|
key: 0,
|
|
4774
4777
|
class: "text-h2"
|
|
4775
|
-
},
|
|
4778
|
+
}, Jt = {
|
|
4776
4779
|
key: 1,
|
|
4777
4780
|
class: "text-h3"
|
|
4778
|
-
},
|
|
4781
|
+
}, Yt = {
|
|
4779
4782
|
key: 2,
|
|
4780
4783
|
class: "text-h4"
|
|
4781
|
-
},
|
|
4784
|
+
}, Xt = { key: 3 }, Zt = { key: 4 }, Qt = { key: 5 }, $t = { key: 2 }, en = {
|
|
4782
4785
|
key: 3,
|
|
4783
4786
|
class: "text-h5"
|
|
4784
|
-
},
|
|
4787
|
+
}, tn = { key: 0 }, nn = ["href", "title"], rn = { key: 5 }, an = { key: 6 }, on = { key: 7 }, sn = ["src", "alt"], cn = { key: 9 }, ln = { key: 10 }, un = { key: 11 }, dn = ["align"], fn = ["innerHTML"], pn = ["innerHTML"], mn = { key: 16 }, hn = { key: 17 }, gn = { key: 18 }, _n = /* @__PURE__ */ F(/* @__PURE__ */ l({
|
|
4785
4788
|
__name: "MdTokenRenderer",
|
|
4786
4789
|
props: {
|
|
4787
4790
|
token: {
|
|
@@ -4795,8 +4798,8 @@ var Ft = { class: "code-block-wrapper pa-2" }, It = {
|
|
|
4795
4798
|
}
|
|
4796
4799
|
},
|
|
4797
4800
|
setup(t, { expose: o }) {
|
|
4798
|
-
let s =
|
|
4799
|
-
fillIn:
|
|
4801
|
+
let s = f("markdownComponents", {}), c = {
|
|
4802
|
+
fillIn: p(he),
|
|
4800
4803
|
...s
|
|
4801
4804
|
};
|
|
4802
4805
|
function isComponent$1(e) {
|
|
@@ -4849,115 +4852,115 @@ var Ft = { class: "code-block-wrapper pa-2" }, It = {
|
|
|
4849
4852
|
components: c,
|
|
4850
4853
|
getComponent
|
|
4851
4854
|
}), (o, s) => {
|
|
4852
|
-
let c =
|
|
4853
|
-
return isText(t.token) ? (
|
|
4855
|
+
let c = x("md-token-renderer", !0);
|
|
4856
|
+
return isText(t.token) ? (v(), i("span", zt, [!t.token.tokens || t.token.tokens.length === 0 ? (v(), i("span", Bt, [isComponent$1(t.token) ? (v(), i("span", Vt, [!t.last && getComponent(parsedComponent(t.token).is) ? (v(), n(S(getComponent(parsedComponent(t.token).is)), m({
|
|
4854
4857
|
key: 0,
|
|
4855
4858
|
text: parsedComponent(t.token).text
|
|
4856
|
-
}, parsedComponent(t.token).props), null, 16, ["text"])) : !t.last && !getComponent(parsedComponent(t.token).is) ? (
|
|
4859
|
+
}, parsedComponent(t.token).props), null, 16, ["text"])) : !t.last && !getComponent(parsedComponent(t.token).is) ? (v(), i("span", Ht, " [Unknown component: " + C(parsedComponent(t.token).is) + "] ", 1)) : r("", !0)])) : containsComponent$1(t.token) ? (v(), i("span", Ut, [(v(!0), i(e, null, b(splitTextToken$1(t.token), (e, t) => (v(), n(c, {
|
|
4857
4860
|
key: t,
|
|
4858
4861
|
token: e
|
|
4859
|
-
}, null, 8, ["token"]))), 128))])) : (
|
|
4862
|
+
}, null, 8, ["token"]))), 128))])) : (v(), i("span", Wt, C(decodeBasicEntities(t.token.text)), 1))])) : t.token.tokens && t.token.tokens.length !== 0 ? (v(), i("span", Gt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4860
4863
|
key: t,
|
|
4861
4864
|
token: e
|
|
4862
|
-
}, null, 8, ["token"]))), 128))])) : r("", !0)])) : t.token.type === "heading" ? (
|
|
4865
|
+
}, null, 8, ["token"]))), 128))])) : r("", !0)])) : t.token.type === "heading" ? (v(), i("span", Kt, [t.token.depth === 1 ? (v(), i("h1", qt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4863
4866
|
key: t,
|
|
4864
4867
|
token: e
|
|
4865
|
-
}, null, 8, ["token"]))), 128))])) : t.token.depth === 2 ? (
|
|
4868
|
+
}, null, 8, ["token"]))), 128))])) : t.token.depth === 2 ? (v(), i("h2", Jt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4866
4869
|
key: t,
|
|
4867
4870
|
token: e
|
|
4868
|
-
}, null, 8, ["token"]))), 128))])) : t.token.depth === 3 ? (
|
|
4871
|
+
}, null, 8, ["token"]))), 128))])) : t.token.depth === 3 ? (v(), i("h3", Yt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4869
4872
|
key: t,
|
|
4870
4873
|
token: e
|
|
4871
|
-
}, null, 8, ["token"]))), 128))])) : t.token.depth === 4 ? (
|
|
4874
|
+
}, null, 8, ["token"]))), 128))])) : t.token.depth === 4 ? (v(), i("h4", Xt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4872
4875
|
key: t,
|
|
4873
4876
|
token: e
|
|
4874
|
-
}, null, 8, ["token"]))), 128))])) : t.token.depth === 5 ? (
|
|
4877
|
+
}, null, 8, ["token"]))), 128))])) : t.token.depth === 5 ? (v(), i("h5", Zt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4875
4878
|
key: t,
|
|
4876
4879
|
token: e
|
|
4877
|
-
}, null, 8, ["token"]))), 128))])) : t.token.depth === 6 ? (
|
|
4880
|
+
}, null, 8, ["token"]))), 128))])) : t.token.depth === 6 ? (v(), i("h6", Qt, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4878
4881
|
key: t,
|
|
4879
4882
|
token: e
|
|
4880
|
-
}, null, 8, ["token"]))), 128))])) : r("", !0)])) : t.token.type === "strong" ? (
|
|
4883
|
+
}, null, 8, ["token"]))), 128))])) : r("", !0)])) : t.token.type === "strong" ? (v(), i("strong", $t, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4881
4884
|
key: t,
|
|
4882
4885
|
token: e
|
|
4883
|
-
}, null, 8, ["token"]))), 128))])) : t.token.type === "paragraph" ? (
|
|
4886
|
+
}, null, 8, ["token"]))), 128))])) : t.token.type === "paragraph" ? (v(), i("p", en, [containsComponent$1(t.token) ? (v(), i("span", tn, [(v(!0), i(e, null, b(splitParagraphToken$1(t.token), (e, r) => (v(), n(c, {
|
|
4884
4887
|
key: r,
|
|
4885
4888
|
token: e,
|
|
4886
4889
|
last: t.last && t.token.tokens.length === 1 && r === splitParagraphToken$1(t.token).length - 1
|
|
4887
|
-
}, null, 8, ["token", "last"]))), 128))])) : (
|
|
4890
|
+
}, null, 8, ["token", "last"]))), 128))])) : (v(!0), i(e, { key: 1 }, b(t.token.tokens, (e, r) => (v(), n(c, {
|
|
4888
4891
|
key: r,
|
|
4889
4892
|
token: e,
|
|
4890
4893
|
last: t.last && t.token.tokens.length === 1
|
|
4891
|
-
}, null, 8, ["token", "last"]))), 128))])) : t.token.type === "link" ? (
|
|
4894
|
+
}, null, 8, ["token", "last"]))), 128))])) : t.token.type === "link" ? (v(), i("a", {
|
|
4892
4895
|
key: 4,
|
|
4893
4896
|
href: t.token.href,
|
|
4894
4897
|
title: t.token.title
|
|
4895
|
-
}, [(
|
|
4898
|
+
}, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4896
4899
|
key: t,
|
|
4897
4900
|
token: e
|
|
4898
|
-
}, null, 8, ["token"]))), 128))], 8,
|
|
4901
|
+
}, null, 8, ["token"]))), 128))], 8, nn)) : t.token.type === "list" && t.token.ordered === !1 ? (v(), i("ul", rn, [(v(!0), i(e, null, b(t.token.items, (e, t) => (v(), n(c, {
|
|
4899
4902
|
key: t,
|
|
4900
4903
|
token: e
|
|
4901
|
-
}, null, 8, ["token"]))), 128))])) : t.token.type === "list" && t.token.ordered === !0 ? (
|
|
4904
|
+
}, null, 8, ["token"]))), 128))])) : t.token.type === "list" && t.token.ordered === !0 ? (v(), i("ol", an, [(v(!0), i(e, null, b(t.token.items, (e, t) => (v(), n(c, {
|
|
4902
4905
|
key: t,
|
|
4903
4906
|
token: e
|
|
4904
|
-
}, null, 8, ["token"]))), 128))])) : t.token.type === "list_item" ? (
|
|
4907
|
+
}, null, 8, ["token"]))), 128))])) : t.token.type === "list_item" ? (v(), i("li", on, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4905
4908
|
key: t,
|
|
4906
4909
|
token: e
|
|
4907
|
-
}, null, 8, ["token"]))), 128))])) : t.token.type === "image" ? (
|
|
4910
|
+
}, null, 8, ["token"]))), 128))])) : t.token.type === "image" ? (v(), i("img", {
|
|
4908
4911
|
key: 8,
|
|
4909
4912
|
src: t.token.href,
|
|
4910
4913
|
alt: t.token.title
|
|
4911
|
-
}, null, 8,
|
|
4914
|
+
}, null, 8, sn)) : t.token.type === "hr" ? (v(), i("hr", cn)) : t.token.type === "br" ? (v(), i("br", ln)) : t.token.type === "del" ? (v(), i("del", un)) : t.token.type === "table" ? (v(), i("table", {
|
|
4912
4915
|
key: 12,
|
|
4913
4916
|
align: t.token.align
|
|
4914
|
-
}, [a("thead", null, [(
|
|
4917
|
+
}, [a("thead", null, [(v(!0), i(e, null, b(t.token.header, (e, t) => (v(), i("th", { key: t }, C(e.text), 1))), 128))]), a("tbody", null, [(v(!0), i(e, null, b(t.token.rows, (t, n) => (v(), i("tr", { key: n }, [(v(!0), i(e, null, b(t, (e, t) => (v(), i("td", { key: t }, C(e.text), 1))), 128))]))), 128))])], 8, dn)) : t.token.type === "html" ? (v(), i("span", {
|
|
4915
4918
|
key: 13,
|
|
4916
4919
|
innerHTML: t.token.raw
|
|
4917
|
-
}, null, 8,
|
|
4920
|
+
}, null, 8, fn)) : t.token.type === "code" ? (v(), n(Rt, {
|
|
4918
4921
|
key: 14,
|
|
4919
4922
|
code: t.token.text,
|
|
4920
4923
|
language: t.token.lang
|
|
4921
|
-
}, null, 8, ["code", "language"])) : t.token.type === "codespan" ? (
|
|
4924
|
+
}, null, 8, ["code", "language"])) : t.token.type === "codespan" ? (v(), i("code", {
|
|
4922
4925
|
key: 15,
|
|
4923
4926
|
class: "codespan",
|
|
4924
4927
|
innerHTML: t.token.text
|
|
4925
|
-
}, null, 8,
|
|
4928
|
+
}, null, 8, pn)) : t.token.type === "blockquote" ? (v(), i("blockquote", mn, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4926
4929
|
key: t,
|
|
4927
4930
|
token: e
|
|
4928
|
-
}, null, 8, ["token"]))), 128))])) : t.token.type === "escape" ? (
|
|
4931
|
+
}, null, 8, ["token"]))), 128))])) : t.token.type === "escape" ? (v(), i("span", hn, C(t.token.text), 1)) : t.token.type === "em" ? (v(), i("em", gn, [(v(!0), i(e, null, b(t.token.tokens, (e, t) => (v(), n(c, {
|
|
4929
4932
|
key: t,
|
|
4930
4933
|
token: e
|
|
4931
4934
|
}, null, 8, ["token"]))), 128))])) : r("", !0);
|
|
4932
4935
|
};
|
|
4933
4936
|
}
|
|
4934
|
-
}), [["__scopeId", "data-v-de3eebd6"]]),
|
|
4937
|
+
}), [["__scopeId", "data-v-de3eebd6"]]), vn = l({
|
|
4935
4938
|
name: "MarkdownRenderer",
|
|
4936
4939
|
components: {
|
|
4937
|
-
MdTokenRenderer:
|
|
4938
|
-
AudioAutoPlayer:
|
|
4940
|
+
MdTokenRenderer: _n,
|
|
4941
|
+
AudioAutoPlayer: dt
|
|
4939
4942
|
},
|
|
4940
4943
|
props: { md: {
|
|
4941
4944
|
type: String,
|
|
4942
4945
|
required: !0
|
|
4943
4946
|
} },
|
|
4944
4947
|
computed: { tokens() {
|
|
4945
|
-
return
|
|
4948
|
+
return lt(this.md);
|
|
4946
4949
|
} }
|
|
4947
|
-
}),
|
|
4950
|
+
}), yn = /* @__PURE__ */ __exportAll({ default: () => bn });
|
|
4948
4951
|
function _sfc_render(t, a, o, s, c, l) {
|
|
4949
|
-
let u =
|
|
4950
|
-
return
|
|
4952
|
+
let u = x("md-token-renderer"), d = x("audio-auto-player");
|
|
4953
|
+
return v(), i("div", null, [(v(!0), i(e, null, b(t.tokens, (e, a) => (v(), i("span", { key: a }, [e.type ? (v(), n(u, {
|
|
4951
4954
|
key: 0,
|
|
4952
4955
|
token: e,
|
|
4953
4956
|
last: a === t.tokens.length - 1
|
|
4954
|
-
}, null, 8, ["token", "last"])) : e.audio ? (
|
|
4957
|
+
}, null, 8, ["token", "last"])) : e.audio ? (v(), n(d, {
|
|
4955
4958
|
key: 1,
|
|
4956
4959
|
src: e.audio
|
|
4957
4960
|
}, null, 8, ["src"])) : r("", !0)]))), 128))]);
|
|
4958
4961
|
}
|
|
4959
|
-
var
|
|
4962
|
+
var bn = /* @__PURE__ */ F(vn, [["render", _sfc_render]]);
|
|
4960
4963
|
//#endregion
|
|
4961
|
-
export { I as C, __name as E, useViewable as S, F as T, useCardPreviewModeStore as _,
|
|
4964
|
+
export { I as C, __name as E, useViewable as S, F as T, useCardPreviewModeStore as _, dt as a, isQuestionView as b, isInlineComponent as c, splitByDelimiters as d, splitParagraphToken as f, ce as g, fe as h, Rt as i, parseComponentSyntax as l, he as m, yn as n, containsComponent as o, splitTextToken as p, _n as r, isComponent as s, bn as t, parseComponentToken as u, getPinia as v, _defineProperty as w, useQuestionView as x, se as y };
|
|
4962
4965
|
|
|
4963
|
-
//# sourceMappingURL=MarkdownRenderer-
|
|
4966
|
+
//# sourceMappingURL=MarkdownRenderer-U_iPiA2x.mjs.map
|