@linto-ai/transcript-ui-webcomponent 0.9.22 → 0.9.23-unstable.202609181617
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/{highlight-BOTcN5V7.js → highlight-BL5JP0oD.js} +2 -2
- package/dist/{highlight-BOTcN5V7.js.map → highlight-BL5JP0oD.js.map} +1 -1
- package/dist/{index-DhBFBHeE.js → index-FoYxoCOv.js} +750 -590
- package/dist/index-FoYxoCOv.js.map +1 -0
- package/dist/linto-editor.iife.js +626 -466
- package/dist/linto-editor.iife.js.map +1 -1
- package/dist/linto-editor.js +1 -1
- package/package.json +10 -10
- package/dist/index-DhBFBHeE.js.map +0 -1
|
@@ -114,10 +114,10 @@ function normalizeStyle(value) {
|
|
|
114
114
|
}
|
|
115
115
|
const listDelimiterRE = /;(?![^(]*\))/g;
|
|
116
116
|
const propertyDelimiterRE = /:([^]+)/;
|
|
117
|
-
const styleCommentRE =
|
|
117
|
+
const styleCommentRE = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;
|
|
118
118
|
function parseStringStyle(cssText) {
|
|
119
119
|
const ret = {};
|
|
120
|
-
cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
|
|
120
|
+
cssText.replace(styleCommentRE, (match) => match.startsWith("/*") ? "" : match).split(listDelimiterRE).forEach((item) => {
|
|
121
121
|
if (item) {
|
|
122
122
|
const tmp = item.split(propertyDelimiterRE);
|
|
123
123
|
tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
|
|
@@ -161,22 +161,22 @@ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
|
161
161
|
function includeBooleanAttr(value) {
|
|
162
162
|
return !!value || value === "";
|
|
163
163
|
}
|
|
164
|
-
function looseCompareArrays(a2, b2) {
|
|
164
|
+
function looseCompareArrays(a2, b2, seen) {
|
|
165
165
|
if (a2.length !== b2.length) return false;
|
|
166
166
|
let equal = true;
|
|
167
167
|
for (let i2 = 0; equal && i2 < a2.length; i2++) {
|
|
168
|
-
equal = looseEqual(a2[i2], b2[i2]);
|
|
168
|
+
equal = looseEqual(a2[i2], b2[i2], seen);
|
|
169
169
|
}
|
|
170
170
|
return equal;
|
|
171
171
|
}
|
|
172
|
-
function looseCompareCollections(a2, b2) {
|
|
172
|
+
function looseCompareCollections(a2, b2, seen) {
|
|
173
173
|
if (a2.size !== b2.size) return false;
|
|
174
174
|
const candidates = Array.from(b2);
|
|
175
175
|
const matched = new Uint8Array(candidates.length);
|
|
176
176
|
for (const item of a2) {
|
|
177
177
|
let index = -1;
|
|
178
178
|
for (let i2 = 0; i2 < candidates.length; i2++) {
|
|
179
|
-
if (!matched[i2] && looseEqual(item, candidates[i2])) {
|
|
179
|
+
if (!matched[i2] && looseEqual(item, candidates[i2], seen)) {
|
|
180
180
|
index = i2;
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
@@ -186,7 +186,47 @@ function looseCompareCollections(a2, b2) {
|
|
|
186
186
|
}
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function looseCompareObjects(a2, b2, seen) {
|
|
190
|
+
let aValidType = isMap(a2);
|
|
191
|
+
let bValidType = isMap(b2);
|
|
192
|
+
if (aValidType || bValidType) {
|
|
193
|
+
return aValidType && bValidType ? looseCompareCollections(a2, b2, seen) : false;
|
|
194
|
+
}
|
|
195
|
+
aValidType = isSet(a2);
|
|
196
|
+
bValidType = isSet(b2);
|
|
197
|
+
if (aValidType || bValidType) {
|
|
198
|
+
return aValidType && bValidType ? looseCompareCollections(a2, b2, seen) : false;
|
|
199
|
+
}
|
|
200
|
+
const aKeysCount = Object.keys(a2).length;
|
|
201
|
+
const bKeysCount = Object.keys(b2).length;
|
|
202
|
+
if (aKeysCount !== bKeysCount) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
for (const key in a2) {
|
|
206
|
+
const aHasKey = a2.hasOwnProperty(key);
|
|
207
|
+
const bHasKey = b2.hasOwnProperty(key);
|
|
208
|
+
if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a2[key], b2[key], seen)) {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return String(a2) === String(b2);
|
|
213
|
+
}
|
|
214
|
+
function looseCompareNested(a2, b2, seen, compare) {
|
|
215
|
+
if (!seen) {
|
|
216
|
+
seen = [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map()];
|
|
217
|
+
}
|
|
218
|
+
const [seenA, seenB] = seen;
|
|
219
|
+
if (seenA.has(a2) || seenB.has(b2)) {
|
|
220
|
+
return seenA.get(a2) === b2 && seenB.get(b2) === a2;
|
|
221
|
+
}
|
|
222
|
+
seenA.set(a2, b2);
|
|
223
|
+
seenB.set(b2, a2);
|
|
224
|
+
const equal = compare(a2, b2, seen);
|
|
225
|
+
seenA.delete(a2);
|
|
226
|
+
seenB.delete(b2);
|
|
227
|
+
return equal;
|
|
228
|
+
}
|
|
229
|
+
function looseEqual(a2, b2, seen) {
|
|
190
230
|
if (a2 === b2) return true;
|
|
191
231
|
let aValidType = isDate(a2);
|
|
192
232
|
let bValidType = isDate(b2);
|
|
@@ -201,7 +241,7 @@ function looseEqual(a2, b2) {
|
|
|
201
241
|
aValidType = isArray(a2);
|
|
202
242
|
bValidType = isArray(b2);
|
|
203
243
|
if (aValidType || bValidType) {
|
|
204
|
-
return aValidType && bValidType ?
|
|
244
|
+
return aValidType && bValidType ? looseCompareNested(a2, b2, seen, looseCompareArrays) : false;
|
|
205
245
|
}
|
|
206
246
|
aValidType = isObject$1(a2);
|
|
207
247
|
bValidType = isObject$1(b2);
|
|
@@ -209,28 +249,7 @@ function looseEqual(a2, b2) {
|
|
|
209
249
|
if (!aValidType || !bValidType) {
|
|
210
250
|
return false;
|
|
211
251
|
}
|
|
212
|
-
|
|
213
|
-
bValidType = isMap(b2);
|
|
214
|
-
if (aValidType || bValidType) {
|
|
215
|
-
return aValidType && bValidType ? looseCompareCollections(a2, b2) : false;
|
|
216
|
-
}
|
|
217
|
-
aValidType = isSet(a2);
|
|
218
|
-
bValidType = isSet(b2);
|
|
219
|
-
if (aValidType || bValidType) {
|
|
220
|
-
return aValidType && bValidType ? looseCompareCollections(a2, b2) : false;
|
|
221
|
-
}
|
|
222
|
-
const aKeysCount = Object.keys(a2).length;
|
|
223
|
-
const bKeysCount = Object.keys(b2).length;
|
|
224
|
-
if (aKeysCount !== bKeysCount) {
|
|
225
|
-
return false;
|
|
226
|
-
}
|
|
227
|
-
for (const key in a2) {
|
|
228
|
-
const aHasKey = a2.hasOwnProperty(key);
|
|
229
|
-
const bHasKey = b2.hasOwnProperty(key);
|
|
230
|
-
if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a2[key], b2[key])) {
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
252
|
+
return looseCompareNested(a2, b2, seen, looseCompareObjects);
|
|
234
253
|
}
|
|
235
254
|
return String(a2) === String(b2);
|
|
236
255
|
}
|
|
@@ -305,14 +324,14 @@ class EffectScope {
|
|
|
305
324
|
pause() {
|
|
306
325
|
if (this._active) {
|
|
307
326
|
this._isPaused = true;
|
|
308
|
-
let i2,
|
|
327
|
+
let i2, l4;
|
|
309
328
|
if (this.scopes) {
|
|
310
329
|
const scopes = this.scopes.slice();
|
|
311
|
-
for (i2 = 0,
|
|
330
|
+
for (i2 = 0, l4 = scopes.length; i2 < l4; i2++) {
|
|
312
331
|
scopes[i2].pause();
|
|
313
332
|
}
|
|
314
333
|
}
|
|
315
|
-
for (i2 = 0,
|
|
334
|
+
for (i2 = 0, l4 = this.effects.length; i2 < l4; i2++) {
|
|
316
335
|
this.effects[i2].pause();
|
|
317
336
|
}
|
|
318
337
|
}
|
|
@@ -324,15 +343,15 @@ class EffectScope {
|
|
|
324
343
|
if (this._active) {
|
|
325
344
|
if (this._isPaused) {
|
|
326
345
|
this._isPaused = false;
|
|
327
|
-
let i2,
|
|
346
|
+
let i2, l4;
|
|
328
347
|
if (this.scopes) {
|
|
329
348
|
const scopes = this.scopes.slice();
|
|
330
|
-
for (i2 = 0,
|
|
349
|
+
for (i2 = 0, l4 = scopes.length; i2 < l4; i2++) {
|
|
331
350
|
scopes[i2].resume();
|
|
332
351
|
}
|
|
333
352
|
}
|
|
334
353
|
const effects = this.effects.slice();
|
|
335
|
-
for (i2 = 0,
|
|
354
|
+
for (i2 = 0, l4 = effects.length; i2 < l4; i2++) {
|
|
336
355
|
effects[i2].resume();
|
|
337
356
|
}
|
|
338
357
|
}
|
|
@@ -383,18 +402,18 @@ class EffectScope {
|
|
|
383
402
|
stop(fromParent) {
|
|
384
403
|
if (this._active) {
|
|
385
404
|
this._active = false;
|
|
386
|
-
let i2,
|
|
387
|
-
for (i2 = 0,
|
|
405
|
+
let i2, l4;
|
|
406
|
+
for (i2 = 0, l4 = this.effects.length; i2 < l4; i2++) {
|
|
388
407
|
this.effects[i2].stop();
|
|
389
408
|
}
|
|
390
409
|
this.effects.length = 0;
|
|
391
|
-
for (i2 = 0,
|
|
410
|
+
for (i2 = 0, l4 = this.cleanups.length; i2 < l4; i2++) {
|
|
392
411
|
this.cleanups[i2]();
|
|
393
412
|
}
|
|
394
413
|
this.cleanups.length = 0;
|
|
395
414
|
if (this.scopes) {
|
|
396
415
|
const scopes = this.scopes.slice();
|
|
397
|
-
for (i2 = 0,
|
|
416
|
+
for (i2 = 0, l4 = scopes.length; i2 < l4; i2++) {
|
|
398
417
|
scopes[i2].stop(true);
|
|
399
418
|
}
|
|
400
419
|
this.scopes.length = 0;
|
|
@@ -654,8 +673,8 @@ function removeSub(link, soft = false) {
|
|
|
654
673
|
dep.subs = prevSub;
|
|
655
674
|
if (!prevSub && dep.computed) {
|
|
656
675
|
dep.computed.flags &= -5;
|
|
657
|
-
for (let
|
|
658
|
-
removeSub(
|
|
676
|
+
for (let l4 = dep.computed.deps; l4; l4 = l4.nextDep) {
|
|
677
|
+
removeSub(l4, true);
|
|
659
678
|
}
|
|
660
679
|
}
|
|
661
680
|
}
|
|
@@ -778,8 +797,8 @@ function addSub(link) {
|
|
|
778
797
|
const computed2 = link.dep.computed;
|
|
779
798
|
if (computed2 && !link.dep.subs) {
|
|
780
799
|
computed2.flags |= 4 | 16;
|
|
781
|
-
for (let
|
|
782
|
-
addSub(
|
|
800
|
+
for (let l4 = computed2.deps; l4; l4 = l4.nextDep) {
|
|
801
|
+
addSub(l4);
|
|
783
802
|
}
|
|
784
803
|
}
|
|
785
804
|
const currentTail = link.dep.subs;
|
|
@@ -887,7 +906,9 @@ function reactiveReadArray(array) {
|
|
|
887
906
|
const raw = /* @__PURE__ */ toRaw(array);
|
|
888
907
|
if (raw === array) return raw;
|
|
889
908
|
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
890
|
-
|
|
909
|
+
if (/* @__PURE__ */ isShallow(array)) return raw;
|
|
910
|
+
if (!/* @__PURE__ */ isReadonly(array)) return raw.map(toReactive);
|
|
911
|
+
return /* @__PURE__ */ isReactive(array) ? raw.map((item) => toReadonly(toReactive(item))) : raw.map(toReadonly);
|
|
891
912
|
}
|
|
892
913
|
function shallowReadArray(arr) {
|
|
893
914
|
track(arr = /* @__PURE__ */ toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
@@ -3484,7 +3505,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
3484
3505
|
source = shallowReadArray(source);
|
|
3485
3506
|
}
|
|
3486
3507
|
ret = new Array(source.length);
|
|
3487
|
-
for (let i2 = 0,
|
|
3508
|
+
for (let i2 = 0, l4 = source.length; i2 < l4; i2++) {
|
|
3488
3509
|
ret[i2] = renderItem(
|
|
3489
3510
|
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i2])) : toReactive(source[i2]) : source[i2],
|
|
3490
3511
|
i2,
|
|
@@ -3508,7 +3529,7 @@ function renderList(source, renderItem, cache, index) {
|
|
|
3508
3529
|
} else {
|
|
3509
3530
|
const keys = Object.keys(source);
|
|
3510
3531
|
ret = new Array(keys.length);
|
|
3511
|
-
for (let i2 = 0,
|
|
3532
|
+
for (let i2 = 0, l4 = keys.length; i2 < l4; i2++) {
|
|
3512
3533
|
const key = keys[i2];
|
|
3513
3534
|
ret[i2] = renderItem(source[key], key, i2, cached && cached[i2]);
|
|
3514
3535
|
}
|
|
@@ -4973,6 +4994,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4973
4994
|
optimized = false;
|
|
4974
4995
|
n2.dynamicChildren = null;
|
|
4975
4996
|
}
|
|
4997
|
+
if (n2.dynamicChildren && n1 && n1.dynamicChildren && n1.dynamicChildren.hasOnce) {
|
|
4998
|
+
if (n2.dynamicChildren === EMPTY_ARR) {
|
|
4999
|
+
n2.dynamicChildren = [];
|
|
5000
|
+
}
|
|
5001
|
+
n2.dynamicChildren.hasOnce = true;
|
|
5002
|
+
}
|
|
4976
5003
|
const { type, ref: ref3, shapeFlag } = n2;
|
|
4977
5004
|
switch (type) {
|
|
4978
5005
|
case Text:
|
|
@@ -5525,6 +5552,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5525
5552
|
const instance = n2.component = n1.component;
|
|
5526
5553
|
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
5527
5554
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
5555
|
+
n2.el = n1.el;
|
|
5528
5556
|
updateComponentPreRender(instance, n2, optimized);
|
|
5529
5557
|
return;
|
|
5530
5558
|
} else {
|
|
@@ -5586,7 +5614,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5586
5614
|
instance.isMounted = true;
|
|
5587
5615
|
initialVNode = container = anchor = null;
|
|
5588
5616
|
} else {
|
|
5589
|
-
let { next: next2, bu, u:
|
|
5617
|
+
let { next: next2, bu, u: u2, parent, vnode } = instance;
|
|
5590
5618
|
{
|
|
5591
5619
|
const nonHydratedAsyncRoot = locateNonHydratedAsyncRoot(instance);
|
|
5592
5620
|
if (nonHydratedAsyncRoot) {
|
|
@@ -5636,8 +5664,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5636
5664
|
if (originNext === null) {
|
|
5637
5665
|
updateHOCHostEl(instance, nextTree.el);
|
|
5638
5666
|
}
|
|
5639
|
-
if (
|
|
5640
|
-
queuePostRenderEffect(
|
|
5667
|
+
if (u2) {
|
|
5668
|
+
queuePostRenderEffect(u2, parentSuspense);
|
|
5641
5669
|
}
|
|
5642
5670
|
if (vnodeHook = next2.props && next2.props.onVnodeUpdated) {
|
|
5643
5671
|
queuePostRenderEffect(
|
|
@@ -5792,9 +5820,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5792
5820
|
};
|
|
5793
5821
|
const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
|
|
5794
5822
|
let i2 = 0;
|
|
5795
|
-
const
|
|
5823
|
+
const l22 = c2.length;
|
|
5796
5824
|
let e1 = c1.length - 1;
|
|
5797
|
-
let e22 =
|
|
5825
|
+
let e22 = l22 - 1;
|
|
5798
5826
|
while (i2 <= e1 && i2 <= e22) {
|
|
5799
5827
|
const n1 = c1[i2];
|
|
5800
5828
|
const n2 = c2[i2] = optimized ? cloneIfMounted(c2[i2]) : normalizeVNode(c2[i2]);
|
|
@@ -5839,7 +5867,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5839
5867
|
if (i2 > e1) {
|
|
5840
5868
|
if (i2 <= e22) {
|
|
5841
5869
|
const nextPos = e22 + 1;
|
|
5842
|
-
const anchor = nextPos <
|
|
5870
|
+
const anchor = nextPos < l22 ? c2[nextPos].el : parentAnchor;
|
|
5843
5871
|
while (i2 <= e22) {
|
|
5844
5872
|
patch(
|
|
5845
5873
|
null,
|
|
@@ -5870,7 +5898,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5870
5898
|
keyToNewIndexMap.set(nextChild.key, i2);
|
|
5871
5899
|
}
|
|
5872
5900
|
}
|
|
5873
|
-
let
|
|
5901
|
+
let j;
|
|
5874
5902
|
let patched = 0;
|
|
5875
5903
|
const toBePatched = e22 - s2 + 1;
|
|
5876
5904
|
let moved = false;
|
|
@@ -5887,9 +5915,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5887
5915
|
if (prevChild.key != null) {
|
|
5888
5916
|
newIndex = keyToNewIndexMap.get(prevChild.key);
|
|
5889
5917
|
} else {
|
|
5890
|
-
for (
|
|
5891
|
-
if (newIndexToOldIndexMap[
|
|
5892
|
-
newIndex =
|
|
5918
|
+
for (j = s2; j <= e22; j++) {
|
|
5919
|
+
if (newIndexToOldIndexMap[j - s2] === 0 && isSameVNodeType(prevChild, c2[j])) {
|
|
5920
|
+
newIndex = j;
|
|
5893
5921
|
break;
|
|
5894
5922
|
}
|
|
5895
5923
|
}
|
|
@@ -5918,12 +5946,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5918
5946
|
}
|
|
5919
5947
|
}
|
|
5920
5948
|
const increasingNewIndexSequence = moved ? getSequence(newIndexToOldIndexMap) : EMPTY_ARR;
|
|
5921
|
-
|
|
5949
|
+
j = increasingNewIndexSequence.length - 1;
|
|
5922
5950
|
for (i2 = toBePatched - 1; i2 >= 0; i2--) {
|
|
5923
5951
|
const nextIndex = s2 + i2;
|
|
5924
5952
|
const nextChild = c2[nextIndex];
|
|
5925
5953
|
const anchorVNode = c2[nextIndex + 1];
|
|
5926
|
-
const anchor = nextIndex + 1 <
|
|
5954
|
+
const anchor = nextIndex + 1 < l22 ? (
|
|
5927
5955
|
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
5928
5956
|
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
5929
5957
|
) : parentAnchor;
|
|
@@ -5940,10 +5968,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5940
5968
|
optimized
|
|
5941
5969
|
);
|
|
5942
5970
|
} else if (moved) {
|
|
5943
|
-
if (
|
|
5971
|
+
if (j < 0 || i2 !== increasingNewIndexSequence[j]) {
|
|
5944
5972
|
move(nextChild, container, anchor, 2);
|
|
5945
5973
|
} else {
|
|
5946
|
-
|
|
5974
|
+
j--;
|
|
5947
5975
|
}
|
|
5948
5976
|
}
|
|
5949
5977
|
}
|
|
@@ -6034,7 +6062,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6034
6062
|
cacheIndex,
|
|
6035
6063
|
memo
|
|
6036
6064
|
} = vnode;
|
|
6037
|
-
if (patchFlag === -2) {
|
|
6065
|
+
if (patchFlag === -2 || dynamicChildren && dynamicChildren.hasOnce) {
|
|
6038
6066
|
optimized = false;
|
|
6039
6067
|
}
|
|
6040
6068
|
if (ref3 != null) {
|
|
@@ -6042,7 +6070,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6042
6070
|
setRef(ref3, null, parentSuspense, vnode, true);
|
|
6043
6071
|
resetTracking();
|
|
6044
6072
|
}
|
|
6045
|
-
if (cacheIndex != null) {
|
|
6073
|
+
if (cacheIndex != null && (!vnode.ctx || vnode.ctx === parentComponent)) {
|
|
6046
6074
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
6047
6075
|
}
|
|
6048
6076
|
if (shapeFlag & 256) {
|
|
@@ -6115,6 +6143,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6115
6143
|
}
|
|
6116
6144
|
if (type === Static) {
|
|
6117
6145
|
removeStaticNode(vnode);
|
|
6146
|
+
if (transition && !transition.persisted && transition.afterLeave) {
|
|
6147
|
+
transition.afterLeave();
|
|
6148
|
+
}
|
|
6118
6149
|
return;
|
|
6119
6150
|
}
|
|
6120
6151
|
const performRemove = () => {
|
|
@@ -6155,6 +6186,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6155
6186
|
if (job) {
|
|
6156
6187
|
job.flags |= 8;
|
|
6157
6188
|
unmount(subTree, instance, parentSuspense, doRemove);
|
|
6189
|
+
} else if (instance.vnode.el && subTree) {
|
|
6190
|
+
subTree.transition = instance.vnode.transition;
|
|
6191
|
+
unmount(subTree, instance, parentSuspense, doRemove);
|
|
6158
6192
|
}
|
|
6159
6193
|
if (um) {
|
|
6160
6194
|
queuePostRenderEffect(um, parentSuspense);
|
|
@@ -6270,39 +6304,39 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
6270
6304
|
function getSequence(arr) {
|
|
6271
6305
|
const p2 = arr.slice();
|
|
6272
6306
|
const result = [0];
|
|
6273
|
-
let i2,
|
|
6307
|
+
let i2, j, u2, v2, c2;
|
|
6274
6308
|
const len = arr.length;
|
|
6275
6309
|
for (i2 = 0; i2 < len; i2++) {
|
|
6276
6310
|
const arrI = arr[i2];
|
|
6277
6311
|
if (arrI !== 0) {
|
|
6278
|
-
|
|
6279
|
-
if (arr[
|
|
6280
|
-
p2[i2] =
|
|
6312
|
+
j = result[result.length - 1];
|
|
6313
|
+
if (arr[j] < arrI) {
|
|
6314
|
+
p2[i2] = j;
|
|
6281
6315
|
result.push(i2);
|
|
6282
6316
|
continue;
|
|
6283
6317
|
}
|
|
6284
|
-
|
|
6318
|
+
u2 = 0;
|
|
6285
6319
|
v2 = result.length - 1;
|
|
6286
|
-
while (
|
|
6287
|
-
c2 =
|
|
6320
|
+
while (u2 < v2) {
|
|
6321
|
+
c2 = u2 + v2 >> 1;
|
|
6288
6322
|
if (arr[result[c2]] < arrI) {
|
|
6289
|
-
|
|
6323
|
+
u2 = c2 + 1;
|
|
6290
6324
|
} else {
|
|
6291
6325
|
v2 = c2;
|
|
6292
6326
|
}
|
|
6293
6327
|
}
|
|
6294
|
-
if (arrI < arr[result[
|
|
6295
|
-
if (
|
|
6296
|
-
p2[i2] = result[
|
|
6328
|
+
if (arrI < arr[result[u2]]) {
|
|
6329
|
+
if (u2 > 0) {
|
|
6330
|
+
p2[i2] = result[u2 - 1];
|
|
6297
6331
|
}
|
|
6298
|
-
result[
|
|
6332
|
+
result[u2] = i2;
|
|
6299
6333
|
}
|
|
6300
6334
|
}
|
|
6301
6335
|
}
|
|
6302
|
-
|
|
6303
|
-
v2 = result[
|
|
6304
|
-
while (
|
|
6305
|
-
result[
|
|
6336
|
+
u2 = result.length;
|
|
6337
|
+
v2 = result[u2 - 1];
|
|
6338
|
+
while (u2-- > 0) {
|
|
6339
|
+
result[u2] = v2;
|
|
6306
6340
|
v2 = p2[v2];
|
|
6307
6341
|
}
|
|
6308
6342
|
return result;
|
|
@@ -6568,7 +6602,8 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
6568
6602
|
el: vnode.el,
|
|
6569
6603
|
anchor: vnode.anchor,
|
|
6570
6604
|
ctx: vnode.ctx,
|
|
6571
|
-
ce: vnode.ce
|
|
6605
|
+
ce: vnode.ce,
|
|
6606
|
+
cacheIndex: vnode.cacheIndex
|
|
6572
6607
|
};
|
|
6573
6608
|
if (transition && cloneTransition) {
|
|
6574
6609
|
setTransitionHooks(
|
|
@@ -6982,8 +7017,8 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
6982
7017
|
function h$2(type, propsOrChildren, children) {
|
|
6983
7018
|
try {
|
|
6984
7019
|
setBlockTracking(-1);
|
|
6985
|
-
const
|
|
6986
|
-
if (
|
|
7020
|
+
const l4 = arguments.length;
|
|
7021
|
+
if (l4 === 2) {
|
|
6987
7022
|
if (isObject$1(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
6988
7023
|
if (isVNode(propsOrChildren)) {
|
|
6989
7024
|
return createVNode(type, null, [propsOrChildren]);
|
|
@@ -6993,9 +7028,9 @@ function h$2(type, propsOrChildren, children) {
|
|
|
6993
7028
|
return createVNode(type, null, propsOrChildren);
|
|
6994
7029
|
}
|
|
6995
7030
|
} else {
|
|
6996
|
-
if (
|
|
7031
|
+
if (l4 > 3) {
|
|
6997
7032
|
children = Array.prototype.slice.call(arguments, 2);
|
|
6998
|
-
} else if (
|
|
7033
|
+
} else if (l4 === 3 && isVNode(children)) {
|
|
6999
7034
|
children = [children];
|
|
7000
7035
|
}
|
|
7001
7036
|
return createVNode(type, propsOrChildren, children);
|
|
@@ -7029,7 +7064,7 @@ function isMemoSame(cached, memo) {
|
|
|
7029
7064
|
}
|
|
7030
7065
|
return true;
|
|
7031
7066
|
}
|
|
7032
|
-
const version = "3.5.
|
|
7067
|
+
const version = "3.5.43";
|
|
7033
7068
|
let policy = void 0;
|
|
7034
7069
|
const tt$1 = typeof window !== "undefined" && window.trustedTypes;
|
|
7035
7070
|
if (tt$1) {
|
|
@@ -8414,7 +8449,7 @@ function setSelected(el, value) {
|
|
|
8414
8449
|
if (isMultiple && !isArrayValue && !isSet(value)) {
|
|
8415
8450
|
return;
|
|
8416
8451
|
}
|
|
8417
|
-
for (let i2 = 0,
|
|
8452
|
+
for (let i2 = 0, l4 = el.options.length; i2 < l4; i2++) {
|
|
8418
8453
|
const option = el.options[i2];
|
|
8419
8454
|
const optionValue = getValue(option);
|
|
8420
8455
|
if (isMultiple) {
|
|
@@ -8527,7 +8562,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
8527
8562
|
}
|
|
8528
8563
|
const eventKey = hyphenate(event.key);
|
|
8529
8564
|
if (modifiers.some(
|
|
8530
|
-
(
|
|
8565
|
+
(k) => k === eventKey || keyNames[k] === eventKey
|
|
8531
8566
|
)) {
|
|
8532
8567
|
return fn(event);
|
|
8533
8568
|
}
|
|
@@ -9177,7 +9212,7 @@ function renderWaveform(channels, ctx) {
|
|
|
9177
9212
|
const start = Math.floor(i2 * scale);
|
|
9178
9213
|
const end = Math.max(start + 1, Math.floor((i2 + step * 2) * scale));
|
|
9179
9214
|
let sum = 0;
|
|
9180
|
-
for (let
|
|
9215
|
+
for (let j = start; j < end; j++) sum += Math.abs(channel[j] ?? 0);
|
|
9181
9216
|
const value = sum / (end - start);
|
|
9182
9217
|
let x2 = i2;
|
|
9183
9218
|
let y3 = value * (height / 2);
|
|
@@ -10518,7 +10553,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10518
10553
|
highlighted.value = null;
|
|
10519
10554
|
return;
|
|
10520
10555
|
}
|
|
10521
|
-
const { highlightCode } = await import("./highlight-
|
|
10556
|
+
const { highlightCode } = await import("./highlight-BL5JP0oD.js");
|
|
10522
10557
|
if (run === seq) highlighted.value = highlightCode(code, lang ?? "");
|
|
10523
10558
|
},
|
|
10524
10559
|
{ immediate: true }
|
|
@@ -10680,9 +10715,9 @@ const _hoisted_3$m = {
|
|
|
10680
10715
|
class: "form-field__required",
|
|
10681
10716
|
"aria-hidden": "true"
|
|
10682
10717
|
};
|
|
10683
|
-
const _hoisted_4$
|
|
10684
|
-
const _hoisted_5$
|
|
10685
|
-
const _hoisted_6$
|
|
10718
|
+
const _hoisted_4$e = { class: "form-field__input-wrapper" };
|
|
10719
|
+
const _hoisted_5$c = ["id", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"];
|
|
10720
|
+
const _hoisted_6$b = ["value"];
|
|
10686
10721
|
const _hoisted_7$5 = ["type", "id", "disabled", "readonly", "placeholder", "autocomplete", "required", "aria-required", "aria-invalid", "aria-describedby"];
|
|
10687
10722
|
const _hoisted_8$3 = {
|
|
10688
10723
|
key: 3,
|
|
@@ -10694,7 +10729,7 @@ const _hoisted_9$3 = {
|
|
|
10694
10729
|
"aria-hidden": "true"
|
|
10695
10730
|
};
|
|
10696
10731
|
const _hoisted_10$3 = ["id"];
|
|
10697
|
-
const _hoisted_11$
|
|
10732
|
+
const _hoisted_11$1 = { class: "form-field__error" };
|
|
10698
10733
|
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
10699
10734
|
__name: "FormInput",
|
|
10700
10735
|
props: {
|
|
@@ -10815,7 +10850,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10815
10850
|
], 8, _hoisted_2$t),
|
|
10816
10851
|
renderSlot(_ctx.$slots, "content-after-label", {}, void 0, true)
|
|
10817
10852
|
])) : createCommentVNode("", true),
|
|
10818
|
-
createBaseVNode("div", _hoisted_4$
|
|
10853
|
+
createBaseVNode("div", _hoisted_4$e, [
|
|
10819
10854
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
10820
10855
|
_ctx.$slots["custom-input"] ? renderSlot(_ctx.$slots, "custom-input", {
|
|
10821
10856
|
id: id.value,
|
|
@@ -10841,9 +10876,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10841
10876
|
return openBlock(), createElementBlock("option", {
|
|
10842
10877
|
key: opt.value,
|
|
10843
10878
|
value: opt.value
|
|
10844
|
-
}, toDisplayString(opt.label), 9, _hoisted_6$
|
|
10879
|
+
}, toDisplayString(opt.label), 9, _hoisted_6$b);
|
|
10845
10880
|
}), 128))
|
|
10846
|
-
], 16, _hoisted_5$
|
|
10881
|
+
], 16, _hoisted_5$c)), [
|
|
10847
10882
|
[vModelSelect, draft.value]
|
|
10848
10883
|
]) : withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
10849
10884
|
key: 2,
|
|
@@ -10896,7 +10931,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10896
10931
|
id: `${id.value}-error`,
|
|
10897
10932
|
class: "form-field__info"
|
|
10898
10933
|
}, [
|
|
10899
|
-
createBaseVNode("span", _hoisted_11$
|
|
10934
|
+
createBaseVNode("span", _hoisted_11$1, toDisplayString(errorMessage.value), 1)
|
|
10900
10935
|
], 8, _hoisted_10$3)) : createCommentVNode("", true)
|
|
10901
10936
|
], 2);
|
|
10902
10937
|
};
|
|
@@ -12708,11 +12743,11 @@ function focusFirst$1(candidates) {
|
|
|
12708
12743
|
function isPointInPolygon(point, polygon) {
|
|
12709
12744
|
const { x: x2, y: y3 } = point;
|
|
12710
12745
|
let inside = false;
|
|
12711
|
-
for (let i2 = 0,
|
|
12746
|
+
for (let i2 = 0, j = polygon.length - 1; i2 < polygon.length; j = i2++) {
|
|
12712
12747
|
const xi = polygon[i2].x;
|
|
12713
12748
|
const yi = polygon[i2].y;
|
|
12714
|
-
const xj = polygon[
|
|
12715
|
-
const yj = polygon[
|
|
12749
|
+
const xj = polygon[j].x;
|
|
12750
|
+
const yj = polygon[j].y;
|
|
12716
12751
|
const intersect = yi > y3 !== yj > y3 && x2 < (xj - xi) * (y3 - yi) / (yj - yi) + xi;
|
|
12717
12752
|
if (intersect) inside = !inside;
|
|
12718
12753
|
}
|
|
@@ -18315,120 +18350,146 @@ function A() {
|
|
|
18315
18350
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
18316
18351
|
}
|
|
18317
18352
|
var T = A();
|
|
18318
|
-
function
|
|
18319
|
-
T =
|
|
18353
|
+
function U(l4) {
|
|
18354
|
+
T = l4;
|
|
18320
18355
|
}
|
|
18321
18356
|
var E$1 = { exec: () => null };
|
|
18322
|
-
function I(
|
|
18357
|
+
function I(l4) {
|
|
18323
18358
|
let e3 = [];
|
|
18324
18359
|
return (t2) => {
|
|
18325
|
-
let n2 = Math.max(0, Math.min(3, t2 - 1)),
|
|
18326
|
-
return
|
|
18360
|
+
let n2 = Math.max(0, Math.min(3, t2 - 1)), i2 = e3[n2];
|
|
18361
|
+
return i2 || (i2 = l4(n2), e3[n2] = i2), i2;
|
|
18327
18362
|
};
|
|
18328
18363
|
}
|
|
18329
|
-
function
|
|
18330
|
-
let t2 = typeof
|
|
18364
|
+
function d$2(l4, e3 = "") {
|
|
18365
|
+
let t2 = typeof l4 == "string" ? l4 : l4.source, n2 = { replace: (i2, r2) => {
|
|
18331
18366
|
let o2 = typeof r2 == "string" ? r2 : r2.source;
|
|
18332
|
-
return o2 = o2.replace(m$1.caret, "$1"), t2 = t2.replace(
|
|
18367
|
+
return o2 = o2.replace(m$1.caret, "$1"), t2 = t2.replace(i2, o2), n2;
|
|
18333
18368
|
}, getRegex: () => new RegExp(t2, e3) };
|
|
18334
18369
|
return n2;
|
|
18335
18370
|
}
|
|
18336
|
-
var
|
|
18371
|
+
var we = ((l4 = "") => {
|
|
18337
18372
|
try {
|
|
18338
|
-
return !!new RegExp("(?<=1)(?<!1)" +
|
|
18373
|
+
return !!new RegExp("(?<=1)(?<!1)" + l4);
|
|
18339
18374
|
} catch {
|
|
18340
18375
|
return false;
|
|
18341
18376
|
}
|
|
18342
|
-
})(), m$1 = { codeRemoveIndent: /^(?: {
|
|
18343
|
-
]`).replace("lheading",
|
|
18344
|
-
var
|
|
18345
|
-
function R(
|
|
18377
|
+
})(), m$1 = { codeRemoveIndent: /^(?: {0,3}\t| {1,4})/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, endingSpaceTabChar: /[ \t]$/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l4) => new RegExp(`^( {0,3}${l4})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: I((l4) => new RegExp(`^ {0,${l4}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: I((l4) => new RegExp(`^ {0,${l4}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)), fencesBeginRegex: I((l4) => new RegExp(`^ {0,${l4}}(?:\`\`\`|~~~)`)), headingBeginRegex: I((l4) => new RegExp(`^ {0,${l4}}#`)), htmlBeginRegex: I((l4) => new RegExp(`^ {0,${l4}}(?:</?(?:${H})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`, "i")), blockquoteBeginRegex: I((l4) => new RegExp(`^ {0,${l4}}>`)) }, ye = /^(?:[ \t]*(?:\n|$))+/, Pe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Se = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, v$1 = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _e = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, K = / {0,3}(?:[*+-]|\d{1,9}[.)])/, le = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ue = d$2(le).replace(/bull/g, K).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), $e = d$2(le).replace(/bull/g, K).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), W = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Le = /^[^\n]+/, X = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ze = d$2(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", X).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ee = d$2(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, K).getRegex(), H = "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", J = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Me = d$2("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", J).replace("tag", H).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pe = (l4) => d$2(W).replace("hr", v$1).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", l4).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex(), Ae = pe(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Ie = pe(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Ce = d$2(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ie).getRegex(), V = { blockquote: Ce, code: Pe, def: ze, fences: Se, heading: _e, hr: v$1, html: Me, lheading: ue, list: Ee, newline: ye, paragraph: Ae, table: E$1, text: Le }, ie = d$2("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", v$1).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex(), Be = { ...V, lheading: $e, table: ie, paragraph: d$2(W).replace("hr", v$1).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ie).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex() }, De = { ...V, html: d$2(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", J).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E$1, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d$2(W).replace("hr", v$1).replace("heading", ` *#{1,6} *[^
|
|
18378
|
+
]`).replace("lheading", ue).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, qe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ve = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ce = /^( {2,}|\\)\n(?!\s*$)[ \t]*/, He = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, _ = /[\p{P}\p{S}]/u, C$1 = /[\s\p{P}\p{S}]/u, Z = /[^\s\p{P}\p{S}]/u, Ze = d$2(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, C$1).getRegex(), Ge = /[\p{Pi}\p{Ps}"']/u, he = /(?!~)[\p{P}\p{S}]/u, Qe = /(?!~)[\s\p{P}\p{S}]/u, Ne = /(?:[^\s\p{P}\p{S}]|~)/u, je = d$2(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", we ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), de = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ue = d$2(de, "u").replace(/punct/g, _).getRegex(), Fe = d$2(de, "u").replace(/punct/g, he).getRegex(), Ke = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, We = d$2(Ke, "u").replace(/openQuote/g, Ge).replace(/punct/g, _).getRegex(), ke = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xe = d$2(ke, "gu").replace(/notPunctSpace/g, Z).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), Je = d$2(ke, "gu").replace(/notPunctSpace/g, Ne).replace(/punctSpace/g, Qe).replace(/punct/g, he).getRegex(), Ve = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Ye = d$2(Ve, "gu").replace(/notPunctSpace/g, Z).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), et = d$2("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Z).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), tt = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", nt = d$2(tt, "gu").replace(/notPunctSpace/g, Z).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), rt = d$2(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, _).getRegex(), st = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", it = d$2(st, "gu").replace(/notPunctSpace/g, Z).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), ot = d$2(/\\(punct)/, "gu").replace(/punct/g, _).getRegex(), at = d$2(/^<(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(), lt = d$2(J).replace("(?:-->|$)", "-->").getRegex(), ut = d$2("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", lt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), ge = /\[(?:\\[\s\S]|[^\[\]\\])*\]/, N = d$2(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets", ge).getRegex(), pt = d$2(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", N).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ct = d$2(/^!?\[(label)\]\[(ref)\]/).replace("label", N).replace("ref", X).getRegex(), ht = d$2(/^!?\[(ref)\](?:\[\])?/).replace("ref", X).getRegex(), oe = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/, dt = d$2(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets", ge).getRegex(), kt = d$2("reflink|nolink(?!\\()", "g").replace("reflink", d$2(/^!?\[(label)\]\[(ref)\]/).replace("label", dt).replace("ref", oe).getRegex()).replace("nolink", d$2(/^!?\[(ref)\](?:\[\])?/).replace("ref", oe).getRegex()).getRegex(), ae = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Y = { _backpedal: E$1, anyPunctuation: ot, autolink: at, blockSkip: je, br: ce, code: ve, del: E$1, delLDelim: E$1, delRDelim: E$1, emStrongLDelim: Ue, emStrongRDelimAst: Xe, emStrongRDelimUnd: et, escape: qe, link: pt, nolink: ht, punctuation: Ze, reflink: ct, reflinkSearch: kt, tag: ut, text: He, url: E$1 }, gt = { ...Y, emStrongLDelim: We, emStrongRDelimAst: Ye, emStrongRDelimUnd: nt, link: d$2(/^!?\[(label)\]\((.*?)\)/).replace("label", N).getRegex(), reflink: d$2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", N).getRegex() }, F = { ...Y, emStrongRDelimAst: Je, emStrongLDelim: Fe, delLDelim: rt, delRDelim: it, url: d$2(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ae).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d$2(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ae).getRegex() }, ft = { ...F, br: d$2(ce).replace("{2,}", "*").getRegex(), text: d$2(F.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, G = { normal: V, gfm: Be, pedantic: De }, B = { normal: Y, gfm: F, breaks: ft, pedantic: gt };
|
|
18379
|
+
var mt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, fe = (l4) => mt[l4];
|
|
18380
|
+
function R(l4, e3) {
|
|
18346
18381
|
if (e3) {
|
|
18347
|
-
if (m$1.escapeTest.test(
|
|
18348
|
-
} else if (m$1.escapeTestNoEncode.test(
|
|
18349
|
-
return
|
|
18382
|
+
if (m$1.escapeTest.test(l4)) return l4.replace(m$1.escapeReplace, fe);
|
|
18383
|
+
} else if (m$1.escapeTestNoEncode.test(l4)) return l4.replace(m$1.escapeReplaceNoEncode, fe);
|
|
18384
|
+
return l4;
|
|
18350
18385
|
}
|
|
18351
|
-
function
|
|
18386
|
+
function ee(l4) {
|
|
18352
18387
|
try {
|
|
18353
|
-
|
|
18388
|
+
l4 = encodeURI(l4).replace(m$1.percentDecode, "%");
|
|
18354
18389
|
} catch {
|
|
18355
18390
|
return null;
|
|
18356
18391
|
}
|
|
18357
|
-
return
|
|
18392
|
+
return l4;
|
|
18358
18393
|
}
|
|
18359
|
-
function
|
|
18360
|
-
let t2 =
|
|
18361
|
-
let
|
|
18362
|
-
for (; --a2 >= 0 &&
|
|
18363
|
-
return
|
|
18364
|
-
}), n2 = t2.split(m$1.splitPipe),
|
|
18394
|
+
function te(l4, e3) {
|
|
18395
|
+
let t2 = l4.replace(m$1.findPipe, (r2, o2, s2) => {
|
|
18396
|
+
let u2 = false, a2 = o2;
|
|
18397
|
+
for (; --a2 >= 0 && s2[a2] === "\\"; ) u2 = !u2;
|
|
18398
|
+
return u2 ? "|" : " |";
|
|
18399
|
+
}), n2 = t2.split(m$1.splitPipe), i2 = 0;
|
|
18365
18400
|
if (n2[0].trim() || n2.shift(), n2.length > 0 && !n2.at(-1)?.trim() && n2.pop(), e3) if (n2.length > e3) n2.splice(e3);
|
|
18366
18401
|
else for (; n2.length < e3; ) n2.push("");
|
|
18367
|
-
for (;
|
|
18402
|
+
for (; i2 < n2.length; i2++) n2[i2] = n2[i2].trim().replace(m$1.slashPipe, "|");
|
|
18368
18403
|
return n2;
|
|
18369
18404
|
}
|
|
18370
|
-
function $(
|
|
18371
|
-
let n2 =
|
|
18405
|
+
function $(l4, e3, t2) {
|
|
18406
|
+
let n2 = l4.length;
|
|
18372
18407
|
if (n2 === 0) return "";
|
|
18373
|
-
let
|
|
18374
|
-
for (;
|
|
18375
|
-
let r2 =
|
|
18376
|
-
if (r2 === e3 && true)
|
|
18408
|
+
let i2 = 0;
|
|
18409
|
+
for (; i2 < n2; ) {
|
|
18410
|
+
let r2 = l4.charAt(n2 - i2 - 1);
|
|
18411
|
+
if (r2 === e3 && true) i2++;
|
|
18377
18412
|
else break;
|
|
18378
18413
|
}
|
|
18379
|
-
return
|
|
18414
|
+
return l4.slice(0, n2 - i2);
|
|
18380
18415
|
}
|
|
18381
|
-
function
|
|
18382
|
-
let e3 =
|
|
18416
|
+
function ne(l4) {
|
|
18417
|
+
let e3 = l4.split(`
|
|
18383
18418
|
`), t2 = e3.length - 1;
|
|
18384
18419
|
for (; t2 >= 0 && m$1.blankLine.test(e3[t2]); ) t2--;
|
|
18385
|
-
return e3.length - t2 <= 2 ?
|
|
18420
|
+
return e3.length - t2 <= 2 ? l4 : e3.slice(0, t2 + 1).join(`
|
|
18386
18421
|
`);
|
|
18387
18422
|
}
|
|
18388
|
-
function
|
|
18389
|
-
|
|
18423
|
+
function D(l4) {
|
|
18424
|
+
return l4.toLowerCase().toUpperCase().toLowerCase();
|
|
18425
|
+
}
|
|
18426
|
+
function me(l4, e3) {
|
|
18427
|
+
if (l4.indexOf(e3[1]) === -1) return -1;
|
|
18390
18428
|
let t2 = 0;
|
|
18391
|
-
for (let n2 = 0; n2 <
|
|
18392
|
-
else if (
|
|
18393
|
-
else if (
|
|
18429
|
+
for (let n2 = 0; n2 < l4.length; n2++) if (l4[n2] === "\\") n2++;
|
|
18430
|
+
else if (l4[n2] === e3[0]) t2++;
|
|
18431
|
+
else if (l4[n2] === e3[1] && (t2--, t2 < 0)) return n2;
|
|
18394
18432
|
return t2 > 0 ? -2 : -1;
|
|
18395
18433
|
}
|
|
18396
|
-
function
|
|
18434
|
+
function xe(l4, e3 = 0) {
|
|
18397
18435
|
let t2 = e3, n2 = "";
|
|
18398
|
-
for (let
|
|
18436
|
+
for (let i2 of l4) if (i2 === " ") {
|
|
18399
18437
|
let r2 = 4 - t2 % 4;
|
|
18400
18438
|
n2 += " ".repeat(r2), t2 += r2;
|
|
18401
|
-
} else n2 +=
|
|
18439
|
+
} else n2 += i2, t2++;
|
|
18402
18440
|
return n2;
|
|
18403
18441
|
}
|
|
18404
|
-
function
|
|
18405
|
-
let r2 = e3.href, o2 = e3.title || null,
|
|
18442
|
+
function be(l4, e3, t2, n2, i2) {
|
|
18443
|
+
let r2 = e3.href, o2 = e3.title || null, s2 = l4[1].replace(i2.other.outputLinkReplace, "$1"), u2 = l4[0].charAt(0) === "!";
|
|
18406
18444
|
n2.state.inLink = true;
|
|
18407
18445
|
let a2 = n2.state.linkEmitted, p2 = n2.state.inRawBlock;
|
|
18408
18446
|
n2.state.linkEmitted = false;
|
|
18409
|
-
let c2 = n2.inlineTokens(
|
|
18410
|
-
if (n2.state.linkEmitted = a2, n2.state.inLink = false, !
|
|
18447
|
+
let c2 = n2.inlineTokens(s2), h2 = n2.state.linkEmitted;
|
|
18448
|
+
if (n2.state.linkEmitted = a2, n2.state.inLink = false, !u2) {
|
|
18411
18449
|
if (h2) {
|
|
18412
18450
|
n2.state.inRawBlock = p2;
|
|
18413
18451
|
return;
|
|
18414
18452
|
}
|
|
18415
18453
|
n2.state.linkEmitted = true;
|
|
18416
18454
|
}
|
|
18417
|
-
return { type:
|
|
18455
|
+
return { type: u2 ? "image" : "link", raw: t2, href: r2, title: o2, text: s2, tokens: c2 };
|
|
18418
18456
|
}
|
|
18419
|
-
function
|
|
18420
|
-
let n2 =
|
|
18457
|
+
function xt(l4, e3, t2) {
|
|
18458
|
+
let n2 = l4.match(t2.other.indentCodeCompensation);
|
|
18421
18459
|
if (n2 === null) return e3;
|
|
18422
|
-
let
|
|
18460
|
+
let i2 = n2[1];
|
|
18423
18461
|
return e3.split(`
|
|
18424
18462
|
`).map((r2) => {
|
|
18425
18463
|
let o2 = r2.match(t2.other.beginningSpace);
|
|
18426
18464
|
if (o2 === null) return r2;
|
|
18427
|
-
let [
|
|
18428
|
-
return r2.slice(Math.min(
|
|
18465
|
+
let [s2] = o2;
|
|
18466
|
+
return r2.slice(Math.min(s2.length, i2.length));
|
|
18429
18467
|
}).join(`
|
|
18430
18468
|
`);
|
|
18431
18469
|
}
|
|
18470
|
+
function Re(l4, e3, t2, n2) {
|
|
18471
|
+
if (!e3.includes("<")) return false;
|
|
18472
|
+
for (let i2 = 0; i2 < e3.length; i2++) {
|
|
18473
|
+
if (e3[i2] === "\\") {
|
|
18474
|
+
i2++;
|
|
18475
|
+
continue;
|
|
18476
|
+
}
|
|
18477
|
+
if (e3[i2] === "`") {
|
|
18478
|
+
let s2 = n2.inline.code.exec(e3.slice(i2));
|
|
18479
|
+
if (s2) {
|
|
18480
|
+
i2 += s2[0].length - 1;
|
|
18481
|
+
continue;
|
|
18482
|
+
}
|
|
18483
|
+
}
|
|
18484
|
+
if (e3[i2] !== "<") continue;
|
|
18485
|
+
let r2 = l4.slice(t2 + i2), o2 = n2.inline.tag.exec(r2) || n2.inline.autolink.exec(r2);
|
|
18486
|
+
if (o2) {
|
|
18487
|
+
if (o2[0].length > e3.length - i2) return true;
|
|
18488
|
+
i2 += o2[0].length - 1;
|
|
18489
|
+
}
|
|
18490
|
+
}
|
|
18491
|
+
return false;
|
|
18492
|
+
}
|
|
18432
18493
|
var y$1 = class y {
|
|
18433
18494
|
options;
|
|
18434
18495
|
rules;
|
|
@@ -18443,15 +18504,15 @@ var y$1 = class y {
|
|
|
18443
18504
|
code(e3) {
|
|
18444
18505
|
let t2 = this.rules.block.code.exec(e3);
|
|
18445
18506
|
if (t2) {
|
|
18446
|
-
let n2 = this.options.pedantic ? t2[0] :
|
|
18447
|
-
return { type: "code", raw: n2, codeBlockStyle: "indented", text:
|
|
18507
|
+
let n2 = this.options.pedantic ? t2[0] : ne(t2[0]), i2 = n2.replace(this.rules.other.codeRemoveIndent, "");
|
|
18508
|
+
return { type: "code", raw: n2, codeBlockStyle: "indented", text: i2 };
|
|
18448
18509
|
}
|
|
18449
18510
|
}
|
|
18450
18511
|
fences(e3) {
|
|
18451
18512
|
let t2 = this.rules.block.fences.exec(e3);
|
|
18452
18513
|
if (t2) {
|
|
18453
|
-
let n2 = t2[0],
|
|
18454
|
-
return { type: "code", raw: n2, lang: t2[2] ? t2[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t2[2], text:
|
|
18514
|
+
let n2 = t2[0], i2 = xt(n2, t2[3] || "", this.rules);
|
|
18515
|
+
return { type: "code", raw: n2, lang: t2[2] ? t2[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t2[2], text: i2 };
|
|
18455
18516
|
}
|
|
18456
18517
|
}
|
|
18457
18518
|
heading(e3) {
|
|
@@ -18459,8 +18520,8 @@ var y$1 = class y {
|
|
|
18459
18520
|
if (t2) {
|
|
18460
18521
|
let n2 = t2[2].trim();
|
|
18461
18522
|
if (this.rules.other.endingHash.test(n2)) {
|
|
18462
|
-
let
|
|
18463
|
-
(this.options.pedantic || !
|
|
18523
|
+
let i2 = $(n2, "#");
|
|
18524
|
+
(this.options.pedantic || !i2 || this.rules.other.endingSpaceTabChar.test(i2)) && (n2 = i2.trim());
|
|
18464
18525
|
}
|
|
18465
18526
|
return { type: "heading", raw: $(t2[0], `
|
|
18466
18527
|
`), depth: t2[1].length, text: n2, tokens: this.lexer.inline(n2) };
|
|
@@ -18476,77 +18537,77 @@ var y$1 = class y {
|
|
|
18476
18537
|
if (t2) {
|
|
18477
18538
|
let n2 = $(t2[0], `
|
|
18478
18539
|
`).split(`
|
|
18479
|
-
`),
|
|
18540
|
+
`), i2 = "", r2 = "", o2 = [];
|
|
18480
18541
|
for (; n2.length > 0; ) {
|
|
18481
|
-
let
|
|
18482
|
-
for (a2 = 0; a2 < n2.length; a2++) if (this.rules.other.blockquoteStart.test(n2[a2]))
|
|
18483
|
-
else if (!
|
|
18542
|
+
let s2 = false, u2 = [], a2;
|
|
18543
|
+
for (a2 = 0; a2 < n2.length; a2++) if (this.rules.other.blockquoteStart.test(n2[a2])) u2.push(n2[a2]), s2 = true;
|
|
18544
|
+
else if (!s2) u2.push(n2[a2]);
|
|
18484
18545
|
else break;
|
|
18485
18546
|
n2 = n2.slice(a2);
|
|
18486
|
-
let p2 =
|
|
18547
|
+
let p2 = u2.join(`
|
|
18487
18548
|
`), c2 = p2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
18488
18549
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
18489
|
-
|
|
18550
|
+
i2 = i2 ? `${i2}
|
|
18490
18551
|
${p2}` : p2, r2 = r2 ? `${r2}
|
|
18491
18552
|
${c2}` : c2;
|
|
18492
18553
|
let h2 = this.lexer.state.top;
|
|
18493
18554
|
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, o2, true), this.lexer.state.top = h2, n2.length === 0) break;
|
|
18494
|
-
let
|
|
18495
|
-
if (
|
|
18496
|
-
if (
|
|
18497
|
-
let O =
|
|
18555
|
+
let k = o2.at(-1);
|
|
18556
|
+
if (k?.type === "code") break;
|
|
18557
|
+
if (k?.type === "blockquote") {
|
|
18558
|
+
let O = k, g2 = n2.join(`
|
|
18498
18559
|
`), w2 = O.raw + `
|
|
18499
18560
|
` + g2.replace(this.rules.other.blockquoteSetextReplace2, ""), z = this.blockquote(w2);
|
|
18500
|
-
o2[o2.length - 1] = z,
|
|
18561
|
+
o2[o2.length - 1] = z, i2 = `${i2}
|
|
18501
18562
|
${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
18502
18563
|
break;
|
|
18503
|
-
} else if (
|
|
18504
|
-
let O =
|
|
18564
|
+
} else if (k?.type === "list") {
|
|
18565
|
+
let O = k, g2 = O.raw + `
|
|
18505
18566
|
` + n2.join(`
|
|
18506
18567
|
`), w2 = this.list(g2);
|
|
18507
|
-
o2[o2.length - 1] = w2,
|
|
18568
|
+
o2[o2.length - 1] = w2, i2 = i2.substring(0, i2.length - k.raw.length) + w2.raw, r2 = r2.substring(0, r2.length - O.raw.length) + w2.raw, n2 = g2.substring(o2.at(-1).raw.length).split(`
|
|
18508
18569
|
`);
|
|
18509
18570
|
continue;
|
|
18510
18571
|
}
|
|
18511
18572
|
}
|
|
18512
|
-
return { type: "blockquote", raw:
|
|
18573
|
+
return { type: "blockquote", raw: i2, tokens: o2, text: r2 };
|
|
18513
18574
|
}
|
|
18514
18575
|
}
|
|
18515
18576
|
list(e3) {
|
|
18516
18577
|
let t2 = this.rules.block.list.exec(e3);
|
|
18517
18578
|
if (t2) {
|
|
18518
|
-
let n2 = t2[1].trim(),
|
|
18519
|
-
n2 =
|
|
18520
|
-
let o2 = this.rules.other.listItemRegex(n2),
|
|
18579
|
+
let n2 = t2[1].trim(), i2 = n2.length > 1, r2 = { type: "list", raw: "", ordered: i2, start: i2 ? +n2.slice(0, -1) : "", loose: false, items: [] };
|
|
18580
|
+
n2 = i2 ? `\\d{1,9}\\${n2.slice(-1)}` : `\\${n2}`, this.options.pedantic && (n2 = i2 ? n2 : "[*+-]");
|
|
18581
|
+
let o2 = this.rules.other.listItemRegex(n2), s2 = false;
|
|
18521
18582
|
for (; e3; ) {
|
|
18522
18583
|
let a2 = false, p2 = "", c2 = "";
|
|
18523
18584
|
if (!(t2 = o2.exec(e3)) || this.rules.block.hr.test(e3)) break;
|
|
18524
18585
|
p2 = t2[0], e3 = e3.substring(p2.length);
|
|
18525
|
-
let h2 =
|
|
18526
|
-
`, 1)[0], t2[1].length),
|
|
18586
|
+
let h2 = xe(t2[2].split(`
|
|
18587
|
+
`, 1)[0], t2[1].length), k = e3.split(`
|
|
18527
18588
|
`, 1)[0], O = !h2.trim(), g2 = 0;
|
|
18528
|
-
if (this.options.pedantic ? (g2 = 2, c2 = h2.trimStart()) : O ? g2 = t2[1].length + 1 : (g2 = h2.search(this.rules.other.nonSpaceChar), g2 = g2 > 4 ? 1 : g2, c2 = h2.slice(g2), g2 += t2[1].length), O && this.rules.other.blankLine.test(
|
|
18529
|
-
`, e3 = e3.substring(
|
|
18530
|
-
let w2 = this.rules.other.nextBulletRegex(g2), z = this.rules.other.hrRegex(g2),
|
|
18589
|
+
if (this.options.pedantic ? (g2 = 2, c2 = h2.trimStart()) : O ? g2 = t2[1].length + 1 : (g2 = h2.search(this.rules.other.nonSpaceChar), g2 = g2 > 4 ? 1 : g2, c2 = h2.slice(g2), g2 += t2[1].length), O && this.rules.other.blankLine.test(k) && (p2 += k + `
|
|
18590
|
+
`, e3 = e3.substring(k.length + 1), a2 = true), !a2) {
|
|
18591
|
+
let w2 = this.rules.other.nextBulletRegex(g2), z = this.rules.other.hrRegex(g2), re = this.rules.other.fencesBeginRegex(g2), se = this.rules.other.headingBeginRegex(g2), Te = this.rules.other.htmlBeginRegex(g2), Oe = this.rules.other.blockquoteBeginRegex(g2);
|
|
18531
18592
|
for (; e3; ) {
|
|
18532
|
-
let
|
|
18533
|
-
`, 1)[0],
|
|
18534
|
-
if (
|
|
18535
|
-
if (
|
|
18536
|
-
` +
|
|
18593
|
+
let j = e3.split(`
|
|
18594
|
+
`, 1)[0], q;
|
|
18595
|
+
if (k = j, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), q = k) : q = k.replace(this.rules.other.tabCharGlobal, " "), re.test(k) || se.test(k) || Te.test(k) || Oe.test(k) || w2.test(k) || z.test(k)) break;
|
|
18596
|
+
if (q.search(this.rules.other.nonSpaceChar) >= g2 || !k.trim()) c2 += `
|
|
18597
|
+
` + q.slice(g2);
|
|
18537
18598
|
else {
|
|
18538
|
-
if (O || h2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 ||
|
|
18599
|
+
if (O || h2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || re.test(h2) || se.test(h2) || z.test(h2)) break;
|
|
18539
18600
|
c2 += `
|
|
18540
|
-
` +
|
|
18601
|
+
` + k;
|
|
18541
18602
|
}
|
|
18542
|
-
O = !
|
|
18543
|
-
`, e3 = e3.substring(
|
|
18603
|
+
O = !k.trim(), p2 += j + `
|
|
18604
|
+
`, e3 = e3.substring(j.length + 1), h2 = q.slice(g2);
|
|
18544
18605
|
}
|
|
18545
18606
|
}
|
|
18546
|
-
r2.loose || (
|
|
18607
|
+
r2.loose || (s2 ? r2.loose = true : this.rules.other.doubleBlankLine.test(p2) && (s2 = true)), r2.items.push({ type: "list_item", raw: p2, task: !!this.options.gfm && this.rules.other.listIsTask.test(c2), loose: false, text: c2, tokens: [] }), r2.raw += p2;
|
|
18547
18608
|
}
|
|
18548
|
-
let
|
|
18549
|
-
if (
|
|
18609
|
+
let u2 = r2.items.at(-1);
|
|
18610
|
+
if (u2) u2.raw = u2.raw.trimEnd(), u2.text = u2.text.trimEnd();
|
|
18550
18611
|
else return;
|
|
18551
18612
|
r2.raw = r2.raw.trimEnd();
|
|
18552
18613
|
for (let a2 of r2.items) if (this.lexer.state.top = false, a2.tokens = this.lexer.blockTokens(a2.text, []), !r2.loose) {
|
|
@@ -18578,28 +18639,28 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
|
18578
18639
|
html(e3) {
|
|
18579
18640
|
let t2 = this.rules.block.html.exec(e3);
|
|
18580
18641
|
if (t2) {
|
|
18581
|
-
let n2 =
|
|
18642
|
+
let n2 = ne(t2[0]);
|
|
18582
18643
|
return { type: "html", block: true, raw: n2, pre: t2[1] === "pre" || t2[1] === "script" || t2[1] === "style", text: n2 };
|
|
18583
18644
|
}
|
|
18584
18645
|
}
|
|
18585
18646
|
def(e3) {
|
|
18586
18647
|
let t2 = this.rules.block.def.exec(e3);
|
|
18587
18648
|
if (t2) {
|
|
18588
|
-
let n2 = t2[1]
|
|
18649
|
+
let n2 = D(t2[1]).replace(this.rules.other.multipleSpaceGlobal, " "), i2 = t2[2] ? t2[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r2 = t2[3] ? t2[3].substring(1, t2[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t2[3];
|
|
18589
18650
|
return { type: "def", tag: n2, raw: $(t2[0], `
|
|
18590
|
-
`), href:
|
|
18651
|
+
`), href: i2, title: r2 };
|
|
18591
18652
|
}
|
|
18592
18653
|
}
|
|
18593
18654
|
table(e3) {
|
|
18594
18655
|
let t2 = this.rules.block.table.exec(e3);
|
|
18595
18656
|
if (!t2 || !this.rules.other.tableDelimiter.test(t2[2])) return;
|
|
18596
|
-
let n2 =
|
|
18657
|
+
let n2 = te(t2[1]), i2 = t2[2].replace(this.rules.other.tableAlignChars, "").split("|"), r2 = t2[3]?.trim() ? t2[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
18597
18658
|
`) : [], o2 = { type: "table", raw: $(t2[0], `
|
|
18598
18659
|
`), header: [], align: [], rows: [] };
|
|
18599
|
-
if (n2.length ===
|
|
18600
|
-
for (let
|
|
18601
|
-
for (let
|
|
18602
|
-
for (let
|
|
18660
|
+
if (n2.length === i2.length) {
|
|
18661
|
+
for (let s2 of i2) this.rules.other.tableAlignRight.test(s2) ? o2.align.push("right") : this.rules.other.tableAlignCenter.test(s2) ? o2.align.push("center") : this.rules.other.tableAlignLeft.test(s2) ? o2.align.push("left") : o2.align.push(null);
|
|
18662
|
+
for (let s2 = 0; s2 < n2.length; s2++) o2.header.push({ text: n2[s2], tokens: this.lexer.inline(n2[s2]), header: true, align: o2.align[s2] });
|
|
18663
|
+
for (let s2 of r2) o2.rows.push(te(s2, o2.header.length).map((u2, a2) => ({ text: u2, tokens: this.lexer.inline(u2), header: false, align: o2.align[a2] })));
|
|
18603
18664
|
return o2;
|
|
18604
18665
|
}
|
|
18605
18666
|
}
|
|
@@ -18634,59 +18695,63 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
|
18634
18695
|
link(e3) {
|
|
18635
18696
|
let t2 = this.rules.inline.link.exec(e3);
|
|
18636
18697
|
if (t2) {
|
|
18637
|
-
let n2 = t2[
|
|
18638
|
-
if (!this.options.pedantic && this.rules
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
if (
|
|
18698
|
+
let n2 = t2[0].charAt(0) === "!" ? 2 : 1;
|
|
18699
|
+
if (!this.options.pedantic && Re(e3, t2[1], n2, this.rules)) return;
|
|
18700
|
+
let i2 = t2[2].trim();
|
|
18701
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(i2)) {
|
|
18702
|
+
if (!this.rules.other.endAngleBracket.test(i2)) return;
|
|
18703
|
+
let s2 = $(i2.slice(0, -1), "\\");
|
|
18704
|
+
if ((i2.length - s2.length) % 2 === 0) return;
|
|
18642
18705
|
} else {
|
|
18643
|
-
let
|
|
18644
|
-
if (
|
|
18645
|
-
if (
|
|
18646
|
-
let
|
|
18647
|
-
t2[2] = t2[2].substring(0,
|
|
18706
|
+
let s2 = me(t2[2], "()");
|
|
18707
|
+
if (s2 === -2) return;
|
|
18708
|
+
if (s2 > -1) {
|
|
18709
|
+
let a2 = (t2[0].indexOf("!") === 0 ? 5 : 4) + t2[1].length + s2;
|
|
18710
|
+
t2[2] = t2[2].substring(0, s2), t2[0] = t2[0].substring(0, a2).trim(), t2[3] = "";
|
|
18648
18711
|
}
|
|
18649
18712
|
}
|
|
18650
|
-
let
|
|
18713
|
+
let r2 = t2[2], o2 = "";
|
|
18651
18714
|
if (this.options.pedantic) {
|
|
18652
|
-
let
|
|
18653
|
-
|
|
18654
|
-
} else
|
|
18655
|
-
return
|
|
18715
|
+
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
18716
|
+
s2 && (r2 = s2[1], o2 = s2[3]);
|
|
18717
|
+
} else o2 = t2[3] ? t2[3].slice(1, -1) : "";
|
|
18718
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(i2) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), be(t2, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: o2 && o2.replace(this.rules.inline.anyPunctuation, "$1") }, t2[0], this.lexer, this.rules);
|
|
18656
18719
|
}
|
|
18657
18720
|
}
|
|
18658
18721
|
reflink(e3, t2) {
|
|
18659
18722
|
let n2;
|
|
18660
18723
|
if ((n2 = this.rules.inline.reflink.exec(e3)) || (n2 = this.rules.inline.nolink.exec(e3))) {
|
|
18661
|
-
let
|
|
18662
|
-
if (!
|
|
18663
|
-
|
|
18664
|
-
|
|
18724
|
+
let i2 = n2[0].charAt(0) === "!" ? 2 : 1;
|
|
18725
|
+
if (!this.options.pedantic && Re(e3, n2[1], i2, this.rules)) return;
|
|
18726
|
+
let r2 = (n2[2] || n2[1]).replace(this.rules.other.multipleSpaceGlobal, " "), o2 = t2[D(r2)];
|
|
18727
|
+
if (!o2) {
|
|
18728
|
+
let s2 = n2[0].charAt(0);
|
|
18729
|
+
return { type: "text", raw: s2, text: s2 };
|
|
18665
18730
|
}
|
|
18666
|
-
return
|
|
18731
|
+
return be(n2, o2, n2[0], this.lexer, this.rules);
|
|
18667
18732
|
}
|
|
18668
18733
|
}
|
|
18669
18734
|
emStrong(e3, t2, n2 = "") {
|
|
18670
|
-
let
|
|
18671
|
-
if (!
|
|
18672
|
-
if (!(
|
|
18673
|
-
let o2 = [...
|
|
18674
|
-
for (
|
|
18675
|
-
if (
|
|
18676
|
-
if (
|
|
18677
|
-
a2 +=
|
|
18735
|
+
let i2 = this.rules.inline.emStrongLDelim.exec(e3);
|
|
18736
|
+
if (!i2 || !i2[1] && !i2[2] && !i2[3] && !i2[4] || i2[4] && n2.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
18737
|
+
if (!(i2[1] || i2[3] || "") || !n2 || this.rules.inline.punctuation.exec(n2)) {
|
|
18738
|
+
let o2 = [...i2[0]].length - 1, s2, u2, a2 = o2, p2 = 0, c2 = i2[0][0], h2 = n2 === c2, k = c2 === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
18739
|
+
for (k.lastIndex = 0, t2 = t2.slice(-1 * e3.length + o2); (i2 = k.exec(t2)) !== null; ) {
|
|
18740
|
+
if (s2 = i2[1] || i2[2] || i2[3] || i2[4] || i2[5] || i2[6], !s2) continue;
|
|
18741
|
+
if (u2 = [...s2].length, i2[3] || i2[4]) {
|
|
18742
|
+
a2 += u2;
|
|
18678
18743
|
continue;
|
|
18679
|
-
} else if (
|
|
18680
|
-
if (o2 % 3 && !((o2 +
|
|
18681
|
-
p2 +=
|
|
18744
|
+
} else if (i2[5] || i2[6]) {
|
|
18745
|
+
if (o2 % 3 && !((o2 + u2) % 3)) {
|
|
18746
|
+
p2 += u2;
|
|
18682
18747
|
continue;
|
|
18683
18748
|
}
|
|
18684
18749
|
if (h2) break;
|
|
18685
18750
|
}
|
|
18686
|
-
if (a2 -=
|
|
18687
|
-
|
|
18688
|
-
let O = [...
|
|
18689
|
-
if (Math.min(o2,
|
|
18751
|
+
if (a2 -= u2, a2 > 0) continue;
|
|
18752
|
+
u2 = Math.min(u2, u2 + a2 + p2);
|
|
18753
|
+
let O = [...i2[0]][0].length, g2 = e3.slice(0, o2 + i2.index + O + u2);
|
|
18754
|
+
if (Math.min(o2, u2) % 2) {
|
|
18690
18755
|
let z = g2.slice(1, -1);
|
|
18691
18756
|
return { type: "em", raw: g2, text: z, tokens: this.lexer.inlineTokens(z) };
|
|
18692
18757
|
}
|
|
@@ -18698,8 +18763,8 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
|
18698
18763
|
codespan(e3) {
|
|
18699
18764
|
let t2 = this.rules.inline.code.exec(e3);
|
|
18700
18765
|
if (t2) {
|
|
18701
|
-
let n2 = t2[2].replace(this.rules.other.newLineCharGlobal, " "),
|
|
18702
|
-
return
|
|
18766
|
+
let n2 = t2[2].replace(this.rules.other.newLineCharGlobal, " "), i2 = this.rules.other.nonSpaceChar.test(n2), r2 = this.rules.other.startingSpaceChar.test(n2) && this.rules.other.endingSpaceChar.test(n2);
|
|
18767
|
+
return i2 && r2 && (n2 = n2.substring(1, n2.length - 1)), { type: "codespan", raw: t2[0], text: n2 };
|
|
18703
18768
|
}
|
|
18704
18769
|
}
|
|
18705
18770
|
br(e3) {
|
|
@@ -18707,43 +18772,43 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
|
18707
18772
|
if (t2) return { type: "br", raw: t2[0] };
|
|
18708
18773
|
}
|
|
18709
18774
|
del(e3, t2, n2 = "") {
|
|
18710
|
-
let
|
|
18711
|
-
if (!
|
|
18712
|
-
if (!(
|
|
18713
|
-
let o2 = [...
|
|
18714
|
-
for (p2.lastIndex = 0, t2 = t2.slice(-1 * e3.length + o2); (
|
|
18715
|
-
if (
|
|
18716
|
-
if (
|
|
18717
|
-
a2 +=
|
|
18775
|
+
let i2 = this.rules.inline.delLDelim.exec(e3);
|
|
18776
|
+
if (!i2) return;
|
|
18777
|
+
if (!(i2[1] || "") || !n2 || this.rules.inline.punctuation.exec(n2)) {
|
|
18778
|
+
let o2 = [...i2[0]].length - 1, s2, u2, a2 = o2, p2 = this.rules.inline.delRDelim;
|
|
18779
|
+
for (p2.lastIndex = 0, t2 = t2.slice(-1 * e3.length + o2); (i2 = p2.exec(t2)) !== null; ) {
|
|
18780
|
+
if (s2 = i2[1] || i2[2] || i2[3] || i2[4] || i2[5] || i2[6], !s2 || (u2 = [...s2].length, u2 !== o2)) continue;
|
|
18781
|
+
if (i2[3] || i2[4]) {
|
|
18782
|
+
a2 += u2;
|
|
18718
18783
|
continue;
|
|
18719
18784
|
}
|
|
18720
|
-
if (a2 -=
|
|
18721
|
-
|
|
18722
|
-
let c2 = [...
|
|
18723
|
-
return { type: "del", raw: h2, text:
|
|
18785
|
+
if (a2 -= u2, a2 > 0) continue;
|
|
18786
|
+
u2 = Math.min(u2, u2 + a2);
|
|
18787
|
+
let c2 = [...i2[0]][0].length, h2 = e3.slice(0, o2 + i2.index + c2 + u2), k = h2.slice(o2, -o2);
|
|
18788
|
+
return { type: "del", raw: h2, text: k, tokens: this.lexer.inlineTokens(k) };
|
|
18724
18789
|
}
|
|
18725
18790
|
}
|
|
18726
18791
|
}
|
|
18727
18792
|
autolink(e3) {
|
|
18728
18793
|
let t2 = this.rules.inline.autolink.exec(e3);
|
|
18729
18794
|
if (t2) {
|
|
18730
|
-
let n2,
|
|
18731
|
-
return t2[2] === "@" ? (n2 = t2[1],
|
|
18795
|
+
let n2, i2;
|
|
18796
|
+
return t2[2] === "@" ? (n2 = t2[1], i2 = "mailto:" + n2) : (n2 = t2[1], i2 = n2), { type: "link", raw: t2[0], text: n2, href: i2, autolink: true, tokens: [{ type: "text", raw: n2, text: n2 }] };
|
|
18732
18797
|
}
|
|
18733
18798
|
}
|
|
18734
18799
|
url(e3) {
|
|
18735
18800
|
let t2;
|
|
18736
18801
|
if (t2 = this.rules.inline.url.exec(e3)) {
|
|
18737
|
-
let n2,
|
|
18738
|
-
if (t2[2] === "@") n2 = t2[0],
|
|
18802
|
+
let n2, i2;
|
|
18803
|
+
if (t2[2] === "@") n2 = t2[0], i2 = "mailto:" + n2;
|
|
18739
18804
|
else {
|
|
18740
18805
|
let r2;
|
|
18741
18806
|
do
|
|
18742
18807
|
r2 = t2[0], t2[0] = this.rules.inline._backpedal.exec(t2[0])?.[0] ?? "";
|
|
18743
18808
|
while (r2 !== t2[0]);
|
|
18744
|
-
n2 = t2[0], t2[1] === "www." ?
|
|
18809
|
+
n2 = t2[0], t2[1] === "www." ? i2 = "http://" + t2[0] : i2 = t2[0];
|
|
18745
18810
|
}
|
|
18746
|
-
return { type: "link", raw: t2[0], text: n2, href:
|
|
18811
|
+
return { type: "link", raw: t2[0], text: n2, href: i2, autolink: true, tokens: [{ type: "text", raw: n2, text: n2 }] };
|
|
18747
18812
|
}
|
|
18748
18813
|
}
|
|
18749
18814
|
inlineText(e3) {
|
|
@@ -18754,7 +18819,7 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
|
18754
18819
|
}
|
|
18755
18820
|
}
|
|
18756
18821
|
};
|
|
18757
|
-
var x = class
|
|
18822
|
+
var x = class l {
|
|
18758
18823
|
tokens;
|
|
18759
18824
|
options;
|
|
18760
18825
|
state;
|
|
@@ -18762,17 +18827,17 @@ var x = class u {
|
|
|
18762
18827
|
tokenizer;
|
|
18763
18828
|
constructor(e3) {
|
|
18764
18829
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e3 || T, this.options.tokenizer = this.options.tokenizer || new y$1(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, linkEmitted: false, top: true };
|
|
18765
|
-
let t2 = { other: m$1, block:
|
|
18766
|
-
this.options.pedantic ? (t2.block =
|
|
18830
|
+
let t2 = { other: m$1, block: G.normal, inline: B.normal };
|
|
18831
|
+
this.options.pedantic ? (t2.block = G.pedantic, t2.inline = B.pedantic) : this.options.gfm && (t2.block = G.gfm, this.options.breaks ? t2.inline = B.breaks : t2.inline = B.gfm), this.tokenizer.rules = t2;
|
|
18767
18832
|
}
|
|
18768
18833
|
static get rules() {
|
|
18769
|
-
return { block:
|
|
18834
|
+
return { block: G, inline: B };
|
|
18770
18835
|
}
|
|
18771
18836
|
static lex(e3, t2) {
|
|
18772
|
-
return new
|
|
18837
|
+
return new l(t2).lex(e3);
|
|
18773
18838
|
}
|
|
18774
18839
|
static lexInline(e3, t2) {
|
|
18775
|
-
return new
|
|
18840
|
+
return new l(t2).inlineTokens(e3);
|
|
18776
18841
|
}
|
|
18777
18842
|
lex(e3) {
|
|
18778
18843
|
e3 = e3.replace(m$1.carriageReturn, `
|
|
@@ -18785,29 +18850,29 @@ var x = class u {
|
|
|
18785
18850
|
}
|
|
18786
18851
|
blockTokens(e3, t2 = [], n2 = false) {
|
|
18787
18852
|
this.tokenizer.lexer = this, this.options.pedantic && (e3 = e3.replace(m$1.tabCharGlobal, " ").replace(m$1.spaceLine, ""));
|
|
18788
|
-
let
|
|
18853
|
+
let i2 = 1 / 0;
|
|
18789
18854
|
for (; e3; ) {
|
|
18790
|
-
if (e3.length <
|
|
18855
|
+
if (e3.length < i2) i2 = e3.length;
|
|
18791
18856
|
else {
|
|
18792
18857
|
this.infiniteLoopError(e3.charCodeAt(0));
|
|
18793
18858
|
break;
|
|
18794
18859
|
}
|
|
18795
18860
|
let r2;
|
|
18796
|
-
if (this.options.extensions?.block?.some((
|
|
18861
|
+
if (this.options.extensions?.block?.some((s2) => (r2 = s2.call({ lexer: this }, e3, t2)) ? (e3 = e3.substring(r2.raw.length), t2.push(r2), true) : false)) continue;
|
|
18797
18862
|
if (r2 = this.tokenizer.space(e3)) {
|
|
18798
18863
|
e3 = e3.substring(r2.raw.length);
|
|
18799
|
-
let
|
|
18800
|
-
r2.raw.length === 1 &&
|
|
18864
|
+
let s2 = t2.at(-1);
|
|
18865
|
+
r2.raw.length === 1 && s2 !== void 0 ? s2.raw += `
|
|
18801
18866
|
` : t2.push(r2);
|
|
18802
18867
|
continue;
|
|
18803
18868
|
}
|
|
18804
18869
|
if (r2 = this.tokenizer.code(e3)) {
|
|
18805
18870
|
e3 = e3.substring(r2.raw.length);
|
|
18806
|
-
let
|
|
18807
|
-
|
|
18871
|
+
let s2 = t2.at(-1);
|
|
18872
|
+
s2?.type === "paragraph" || s2?.type === "text" ? (s2.raw += (s2.raw.endsWith(`
|
|
18808
18873
|
`) ? "" : `
|
|
18809
|
-
`) + r2.raw,
|
|
18810
|
-
` + r2.text, this.inlineQueue.at(-1).src =
|
|
18874
|
+
`) + r2.raw, s2.text += `
|
|
18875
|
+
` + r2.text, this.inlineQueue.at(-1).src = s2.text) : t2.push(r2);
|
|
18811
18876
|
continue;
|
|
18812
18877
|
}
|
|
18813
18878
|
if (r2 = this.tokenizer.fences(e3)) {
|
|
@@ -18836,11 +18901,11 @@ var x = class u {
|
|
|
18836
18901
|
}
|
|
18837
18902
|
if (r2 = this.tokenizer.def(e3)) {
|
|
18838
18903
|
e3 = e3.substring(r2.raw.length);
|
|
18839
|
-
let
|
|
18840
|
-
|
|
18904
|
+
let s2 = t2.at(-1);
|
|
18905
|
+
s2?.type === "paragraph" || s2?.type === "text" ? (s2.raw += (s2.raw.endsWith(`
|
|
18841
18906
|
`) ? "" : `
|
|
18842
|
-
`) + r2.raw,
|
|
18843
|
-
` + r2.raw, this.inlineQueue.at(-1).src =
|
|
18907
|
+
`) + r2.raw, s2.text += `
|
|
18908
|
+
` + r2.raw, this.inlineQueue.at(-1).src = s2.text) : this.tokens.links[r2.tag] || (this.tokens.links[r2.tag] = { href: r2.href, title: r2.title }, t2.push(r2));
|
|
18844
18909
|
continue;
|
|
18845
18910
|
}
|
|
18846
18911
|
if (r2 = this.tokenizer.table(e3)) {
|
|
@@ -18853,26 +18918,26 @@ var x = class u {
|
|
|
18853
18918
|
}
|
|
18854
18919
|
let o2 = e3;
|
|
18855
18920
|
if (this.options.extensions?.startBlock) {
|
|
18856
|
-
let
|
|
18921
|
+
let s2 = 1 / 0, u2 = e3.slice(1), a2;
|
|
18857
18922
|
this.options.extensions.startBlock.forEach((p2) => {
|
|
18858
|
-
a2 = p2.call({ lexer: this },
|
|
18859
|
-
}),
|
|
18923
|
+
a2 = p2.call({ lexer: this }, u2), typeof a2 == "number" && a2 >= 0 && (s2 = Math.min(s2, a2));
|
|
18924
|
+
}), s2 < 1 / 0 && s2 >= 0 && (o2 = e3.substring(0, s2 + 1));
|
|
18860
18925
|
}
|
|
18861
18926
|
if (this.state.top && (r2 = this.tokenizer.paragraph(o2))) {
|
|
18862
|
-
let
|
|
18863
|
-
n2 &&
|
|
18927
|
+
let s2 = t2.at(-1);
|
|
18928
|
+
n2 && s2?.type === "paragraph" ? (s2.raw += (s2.raw.endsWith(`
|
|
18864
18929
|
`) ? "" : `
|
|
18865
|
-
`) + r2.raw,
|
|
18866
|
-
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
18930
|
+
`) + r2.raw, s2.text += `
|
|
18931
|
+
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s2.text) : t2.push(r2), n2 = o2.length !== e3.length, e3 = e3.substring(r2.raw.length);
|
|
18867
18932
|
continue;
|
|
18868
18933
|
}
|
|
18869
18934
|
if (r2 = this.tokenizer.text(e3)) {
|
|
18870
18935
|
e3 = e3.substring(r2.raw.length);
|
|
18871
|
-
let
|
|
18872
|
-
|
|
18936
|
+
let s2 = t2.at(-1);
|
|
18937
|
+
s2?.type === "text" ? (s2.raw += (s2.raw.endsWith(`
|
|
18873
18938
|
`) ? "" : `
|
|
18874
|
-
`) + r2.raw,
|
|
18875
|
-
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
18939
|
+
`) + r2.raw, s2.text += `
|
|
18940
|
+
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s2.text) : t2.push(r2);
|
|
18876
18941
|
continue;
|
|
18877
18942
|
}
|
|
18878
18943
|
if (e3) {
|
|
@@ -18890,8 +18955,8 @@ var x = class u {
|
|
|
18890
18955
|
let t2 = this.tokenizer.rules.inline.link;
|
|
18891
18956
|
for (let n2 of e3.matchAll(this.tokenizer.rules.inline.blockSkip)) if (t2.test(n2[0]) && e3.charAt(n2.index - 1) !== "!") return true;
|
|
18892
18957
|
for (let n2 of e3.matchAll(this.tokenizer.rules.inline.reflinkSearch)) {
|
|
18893
|
-
let
|
|
18894
|
-
if (!(
|
|
18958
|
+
let i2 = n2[0], r2 = i2.lastIndexOf("[");
|
|
18959
|
+
if (!(i2.charAt(0) === "!" || !Object.hasOwn(this.tokens.links, D(i2.slice(r2 + 1, -1)))) && !(r2 > 1 && this.linkInText(i2.slice(1, r2 - 1)))) return true;
|
|
18895
18960
|
}
|
|
18896
18961
|
return false;
|
|
18897
18962
|
}
|
|
@@ -18899,84 +18964,84 @@ var x = class u {
|
|
|
18899
18964
|
this.tokenizer.lexer = this;
|
|
18900
18965
|
let n2 = e3;
|
|
18901
18966
|
if (this.tokens.links && e3.includes("[")) {
|
|
18902
|
-
let
|
|
18967
|
+
let s2 = this.tokenizer.rules.inline.reflinkSearch, u2 = (a2) => {
|
|
18903
18968
|
let p2 = a2.lastIndexOf("[");
|
|
18904
|
-
if (!Object.hasOwn(this.tokens.links, a2.slice(p2 + 1, -1))) return a2;
|
|
18969
|
+
if (!Object.hasOwn(this.tokens.links, D(a2.slice(p2 + 1, -1)))) return a2;
|
|
18905
18970
|
if (p2 > 1 && a2.charAt(0) !== "!") {
|
|
18906
18971
|
let c2 = a2.slice(1, p2 - 1);
|
|
18907
|
-
if (this.linkInText(c2)) return "[" + c2.replace(
|
|
18972
|
+
if (this.linkInText(c2)) return "[" + c2.replace(s2, u2) + "][" + "a".repeat(a2.length - p2 - 2) + "]";
|
|
18908
18973
|
}
|
|
18909
18974
|
return "[" + "a".repeat(a2.length - 2) + "]";
|
|
18910
18975
|
};
|
|
18911
|
-
n2 = n2.replace(
|
|
18976
|
+
n2 = n2.replace(s2, u2);
|
|
18912
18977
|
}
|
|
18913
|
-
n2 = n2.replace(this.tokenizer.rules.inline.anyPunctuation, (
|
|
18978
|
+
n2 = n2.replace(this.tokenizer.rules.inline.anyPunctuation, (s2) => "+".repeat(s2.length)), n2 = n2.replace(this.tokenizer.rules.inline.blockSkip, (s2, u2, a2) => {
|
|
18914
18979
|
let p2 = a2 ? a2.length : 0;
|
|
18915
|
-
return
|
|
18980
|
+
return s2.slice(0, p2) + "[" + "a".repeat(s2.length - p2 - 2) + "]";
|
|
18916
18981
|
}), n2 = this.options.hooks?.emStrongMask?.call({ lexer: this }, n2) ?? n2;
|
|
18917
|
-
let
|
|
18982
|
+
let i2 = false, r2 = "", o2 = 1 / 0;
|
|
18918
18983
|
for (; e3; ) {
|
|
18919
18984
|
if (e3.length < o2) o2 = e3.length;
|
|
18920
18985
|
else {
|
|
18921
18986
|
this.infiniteLoopError(e3.charCodeAt(0));
|
|
18922
18987
|
break;
|
|
18923
18988
|
}
|
|
18924
|
-
|
|
18925
|
-
let
|
|
18926
|
-
if (this.options.extensions?.inline?.some((a2) => (
|
|
18927
|
-
if (
|
|
18928
|
-
e3 = e3.substring(
|
|
18989
|
+
i2 || (r2 = ""), i2 = false;
|
|
18990
|
+
let s2;
|
|
18991
|
+
if (this.options.extensions?.inline?.some((a2) => (s2 = a2.call({ lexer: this }, e3, t2)) ? (e3 = e3.substring(s2.raw.length), t2.push(s2), true) : false)) continue;
|
|
18992
|
+
if (s2 = this.tokenizer.escape(e3)) {
|
|
18993
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18929
18994
|
continue;
|
|
18930
18995
|
}
|
|
18931
|
-
if (
|
|
18932
|
-
e3 = e3.substring(
|
|
18996
|
+
if (s2 = this.tokenizer.tag(e3)) {
|
|
18997
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18933
18998
|
continue;
|
|
18934
18999
|
}
|
|
18935
|
-
if (
|
|
18936
|
-
e3 = e3.substring(
|
|
19000
|
+
if (s2 = this.tokenizer.link(e3)) {
|
|
19001
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18937
19002
|
continue;
|
|
18938
19003
|
}
|
|
18939
|
-
if (
|
|
18940
|
-
e3 = e3.substring(
|
|
19004
|
+
if (s2 = this.tokenizer.reflink(e3, this.tokens.links)) {
|
|
19005
|
+
e3 = e3.substring(s2.raw.length);
|
|
18941
19006
|
let a2 = t2.at(-1);
|
|
18942
|
-
|
|
19007
|
+
s2.type === "text" && a2?.type === "text" ? (a2.raw += s2.raw, a2.text += s2.text) : t2.push(s2);
|
|
18943
19008
|
continue;
|
|
18944
19009
|
}
|
|
18945
|
-
if (
|
|
18946
|
-
e3 = e3.substring(
|
|
19010
|
+
if (s2 = this.tokenizer.emStrong(e3, n2, r2)) {
|
|
19011
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18947
19012
|
continue;
|
|
18948
19013
|
}
|
|
18949
|
-
if (
|
|
18950
|
-
e3 = e3.substring(
|
|
19014
|
+
if (s2 = this.tokenizer.codespan(e3)) {
|
|
19015
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18951
19016
|
continue;
|
|
18952
19017
|
}
|
|
18953
|
-
if (
|
|
18954
|
-
e3 = e3.substring(
|
|
19018
|
+
if (s2 = this.tokenizer.br(e3)) {
|
|
19019
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18955
19020
|
continue;
|
|
18956
19021
|
}
|
|
18957
|
-
if (
|
|
18958
|
-
e3 = e3.substring(
|
|
19022
|
+
if (s2 = this.tokenizer.del(e3, n2, r2)) {
|
|
19023
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18959
19024
|
continue;
|
|
18960
19025
|
}
|
|
18961
|
-
if (
|
|
18962
|
-
e3 = e3.substring(
|
|
19026
|
+
if (s2 = this.tokenizer.autolink(e3)) {
|
|
19027
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18963
19028
|
continue;
|
|
18964
19029
|
}
|
|
18965
|
-
if (!this.state.inLink && (
|
|
18966
|
-
e3 = e3.substring(
|
|
19030
|
+
if (!this.state.inLink && (s2 = this.tokenizer.url(e3))) {
|
|
19031
|
+
e3 = e3.substring(s2.raw.length), t2.push(s2);
|
|
18967
19032
|
continue;
|
|
18968
19033
|
}
|
|
18969
|
-
let
|
|
19034
|
+
let u2 = e3;
|
|
18970
19035
|
if (this.options.extensions?.startInline) {
|
|
18971
19036
|
let a2 = 1 / 0, p2 = e3.slice(1), c2;
|
|
18972
19037
|
this.options.extensions.startInline.forEach((h2) => {
|
|
18973
19038
|
c2 = h2.call({ lexer: this }, p2), typeof c2 == "number" && c2 >= 0 && (a2 = Math.min(a2, c2));
|
|
18974
|
-
}), a2 < 1 / 0 && a2 >= 0 && (
|
|
19039
|
+
}), a2 < 1 / 0 && a2 >= 0 && (u2 = e3.substring(0, a2 + 1));
|
|
18975
19040
|
}
|
|
18976
|
-
if (
|
|
18977
|
-
e3 = e3.substring(
|
|
19041
|
+
if (s2 = this.tokenizer.inlineText(u2)) {
|
|
19042
|
+
e3 = e3.substring(s2.raw.length), s2.raw.slice(-1) !== "_" && (r2 = s2.raw.slice(-1)), i2 = true;
|
|
18978
19043
|
let a2 = t2.at(-1);
|
|
18979
|
-
a2?.type === "text" ? (a2.raw +=
|
|
19044
|
+
a2?.type === "text" ? (a2.raw += s2.raw, a2.text += s2.text) : t2.push(s2);
|
|
18980
19045
|
continue;
|
|
18981
19046
|
}
|
|
18982
19047
|
if (e3) {
|
|
@@ -19002,9 +19067,9 @@ var P$1 = class P {
|
|
|
19002
19067
|
return "";
|
|
19003
19068
|
}
|
|
19004
19069
|
code({ text: e3, lang: t2, escaped: n2 }) {
|
|
19005
|
-
let
|
|
19070
|
+
let i2 = (t2 || "").match(m$1.notSpaceStart)?.[0], r2 = e3 ? e3.replace(m$1.endingNewline, "") + `
|
|
19006
19071
|
` : "";
|
|
19007
|
-
return
|
|
19072
|
+
return i2 ? '<pre><code class="language-' + R(i2) + '">' + (n2 ? r2 : R(r2, true)) + `</code></pre>
|
|
19008
19073
|
` : "<pre><code>" + (n2 ? r2 : R(r2, true)) + `</code></pre>
|
|
19009
19074
|
`;
|
|
19010
19075
|
}
|
|
@@ -19028,14 +19093,14 @@ ${this.parser.parse(e3)}</blockquote>
|
|
|
19028
19093
|
`;
|
|
19029
19094
|
}
|
|
19030
19095
|
list(e3) {
|
|
19031
|
-
let t2 = e3.ordered, n2 = e3.start,
|
|
19032
|
-
for (let
|
|
19033
|
-
let
|
|
19034
|
-
|
|
19096
|
+
let t2 = e3.ordered, n2 = e3.start, i2 = "";
|
|
19097
|
+
for (let s2 = 0; s2 < e3.items.length; s2++) {
|
|
19098
|
+
let u2 = e3.items[s2];
|
|
19099
|
+
i2 += this.listitem(u2);
|
|
19035
19100
|
}
|
|
19036
19101
|
let r2 = t2 ? "ol" : "ul", o2 = t2 && n2 !== 1 ? ' start="' + n2 + '"' : "";
|
|
19037
19102
|
return "<" + r2 + o2 + `>
|
|
19038
|
-
` +
|
|
19103
|
+
` + i2 + "</" + r2 + `>
|
|
19039
19104
|
`;
|
|
19040
19105
|
}
|
|
19041
19106
|
listitem(e3) {
|
|
@@ -19053,17 +19118,17 @@ ${this.parser.parse(e3)}</blockquote>
|
|
|
19053
19118
|
let t2 = "", n2 = "";
|
|
19054
19119
|
for (let r2 = 0; r2 < e3.header.length; r2++) n2 += this.tablecell(e3.header[r2]);
|
|
19055
19120
|
t2 += this.tablerow({ text: n2 });
|
|
19056
|
-
let
|
|
19121
|
+
let i2 = "";
|
|
19057
19122
|
for (let r2 = 0; r2 < e3.rows.length; r2++) {
|
|
19058
19123
|
let o2 = e3.rows[r2];
|
|
19059
19124
|
n2 = "";
|
|
19060
|
-
for (let
|
|
19061
|
-
|
|
19125
|
+
for (let s2 = 0; s2 < o2.length; s2++) n2 += this.tablecell(o2[s2]);
|
|
19126
|
+
i2 += this.tablerow({ text: n2 });
|
|
19062
19127
|
}
|
|
19063
|
-
return
|
|
19128
|
+
return i2 && (i2 = `<tbody>${i2}</tbody>`), `<table>
|
|
19064
19129
|
<thead>
|
|
19065
19130
|
` + t2 + `</thead>
|
|
19066
|
-
` +
|
|
19131
|
+
` + i2 + `</table>
|
|
19067
19132
|
`;
|
|
19068
19133
|
}
|
|
19069
19134
|
tablerow({ text: e3 }) {
|
|
@@ -19091,16 +19156,16 @@ ${e3}</tr>
|
|
|
19091
19156
|
del({ tokens: e3 }) {
|
|
19092
19157
|
return `<del>${this.parser.parseInline(e3)}</del>`;
|
|
19093
19158
|
}
|
|
19094
|
-
link({ href: e3, title: t2, text: n2, tokens:
|
|
19095
|
-
let o2 = r2 ? R(n2, true) : this.parser.parseInline(
|
|
19096
|
-
if (
|
|
19097
|
-
e3 = R(
|
|
19098
|
-
let
|
|
19099
|
-
return t2 && (
|
|
19159
|
+
link({ href: e3, title: t2, text: n2, tokens: i2, autolink: r2 }) {
|
|
19160
|
+
let o2 = r2 ? R(n2, true) : this.parser.parseInline(i2), s2 = ee(e3);
|
|
19161
|
+
if (s2 === null) return o2;
|
|
19162
|
+
e3 = R(s2, r2);
|
|
19163
|
+
let u2 = '<a href="' + e3 + '"';
|
|
19164
|
+
return t2 && (u2 += ' title="' + R(t2) + '"'), u2 += ">" + o2 + "</a>", u2;
|
|
19100
19165
|
}
|
|
19101
|
-
image({ href: e3, title: t2, text: n2, tokens:
|
|
19102
|
-
|
|
19103
|
-
let r2 =
|
|
19166
|
+
image({ href: e3, title: t2, text: n2, tokens: i2 }) {
|
|
19167
|
+
i2 && (n2 = this.parser.parseInline(i2, this.parser.textRenderer));
|
|
19168
|
+
let r2 = ee(e3);
|
|
19104
19169
|
if (r2 === null) return R(n2);
|
|
19105
19170
|
e3 = r2;
|
|
19106
19171
|
let o2 = `<img src="${R(e3)}" alt="${R(n2)}"`;
|
|
@@ -19142,7 +19207,7 @@ var L = class {
|
|
|
19142
19207
|
return e3;
|
|
19143
19208
|
}
|
|
19144
19209
|
};
|
|
19145
|
-
var b$1 = class
|
|
19210
|
+
var b$1 = class l2 {
|
|
19146
19211
|
options;
|
|
19147
19212
|
renderer;
|
|
19148
19213
|
textRenderer;
|
|
@@ -19150,24 +19215,24 @@ var b$1 = class u2 {
|
|
|
19150
19215
|
this.options = e3 || T, this.options.renderer = this.options.renderer || new P$1(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L();
|
|
19151
19216
|
}
|
|
19152
19217
|
static parse(e3, t2) {
|
|
19153
|
-
return new
|
|
19218
|
+
return new l2(t2).parse(e3);
|
|
19154
19219
|
}
|
|
19155
19220
|
static parseInline(e3, t2) {
|
|
19156
|
-
return new
|
|
19221
|
+
return new l2(t2).parseInline(e3);
|
|
19157
19222
|
}
|
|
19158
19223
|
parse(e3) {
|
|
19159
19224
|
this.renderer.parser = this;
|
|
19160
19225
|
let t2 = "";
|
|
19161
19226
|
for (let n2 = 0; n2 < e3.length; n2++) {
|
|
19162
|
-
let
|
|
19163
|
-
if (this.options.extensions?.renderers?.[
|
|
19164
|
-
let o2 =
|
|
19165
|
-
if (
|
|
19166
|
-
t2 +=
|
|
19227
|
+
let i2 = e3[n2];
|
|
19228
|
+
if (this.options.extensions?.renderers?.[i2.type]) {
|
|
19229
|
+
let o2 = i2, s2 = this.options.extensions.renderers[o2.type].call({ parser: this }, o2);
|
|
19230
|
+
if (s2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "checkbox", "html", "def", "paragraph", "text"].includes(o2.type)) {
|
|
19231
|
+
t2 += s2 || "";
|
|
19167
19232
|
continue;
|
|
19168
19233
|
}
|
|
19169
19234
|
}
|
|
19170
|
-
let r2 =
|
|
19235
|
+
let r2 = i2;
|
|
19171
19236
|
switch (r2.type) {
|
|
19172
19237
|
case "space": {
|
|
19173
19238
|
t2 += this.renderer.space(r2);
|
|
@@ -19229,12 +19294,12 @@ var b$1 = class u2 {
|
|
|
19229
19294
|
parseInline(e3, t2 = this.renderer) {
|
|
19230
19295
|
this.renderer.parser = this;
|
|
19231
19296
|
let n2 = "";
|
|
19232
|
-
for (let
|
|
19233
|
-
let r2 = e3[
|
|
19297
|
+
for (let i2 = 0; i2 < e3.length; i2++) {
|
|
19298
|
+
let r2 = e3[i2];
|
|
19234
19299
|
if (this.options.extensions?.renderers?.[r2.type]) {
|
|
19235
|
-
let
|
|
19236
|
-
if (
|
|
19237
|
-
n2 +=
|
|
19300
|
+
let s2 = this.options.extensions.renderers[r2.type].call({ parser: this }, r2);
|
|
19301
|
+
if (s2 !== false || !["escape", "html", "link", "image", "checkbox", "strong", "em", "codespan", "br", "del", "text"].includes(r2.type)) {
|
|
19302
|
+
n2 += s2 || "";
|
|
19238
19303
|
continue;
|
|
19239
19304
|
}
|
|
19240
19305
|
}
|
|
@@ -19285,9 +19350,9 @@ var b$1 = class u2 {
|
|
|
19285
19350
|
break;
|
|
19286
19351
|
}
|
|
19287
19352
|
default: {
|
|
19288
|
-
let
|
|
19289
|
-
if (this.options.silent) return console.error(
|
|
19290
|
-
throw new Error(
|
|
19353
|
+
let s2 = 'Token with "' + o2.type + '" type was not found.';
|
|
19354
|
+
if (this.options.silent) return console.error(s2), "";
|
|
19355
|
+
throw new Error(s2);
|
|
19291
19356
|
}
|
|
19292
19357
|
}
|
|
19293
19358
|
}
|
|
@@ -19321,7 +19386,7 @@ var S$1 = class S {
|
|
|
19321
19386
|
return e3 ? b$1.parse : b$1.parseInline;
|
|
19322
19387
|
}
|
|
19323
19388
|
};
|
|
19324
|
-
var
|
|
19389
|
+
var Q = class {
|
|
19325
19390
|
defaults = A();
|
|
19326
19391
|
options = this.setOptions;
|
|
19327
19392
|
parse = this.parseMarkdown(true);
|
|
@@ -19337,23 +19402,23 @@ var Z = class {
|
|
|
19337
19402
|
}
|
|
19338
19403
|
walkTokens(e3, t2) {
|
|
19339
19404
|
let n2 = [];
|
|
19340
|
-
for (let
|
|
19405
|
+
for (let i2 of e3) switch (n2 = n2.concat(t2.call(this, i2)), i2.type) {
|
|
19341
19406
|
case "table": {
|
|
19342
|
-
let r2 =
|
|
19407
|
+
let r2 = i2;
|
|
19343
19408
|
for (let o2 of r2.header) n2 = n2.concat(this.walkTokens(o2.tokens, t2));
|
|
19344
|
-
for (let o2 of r2.rows) for (let
|
|
19409
|
+
for (let o2 of r2.rows) for (let s2 of o2) n2 = n2.concat(this.walkTokens(s2.tokens, t2));
|
|
19345
19410
|
break;
|
|
19346
19411
|
}
|
|
19347
19412
|
case "list": {
|
|
19348
|
-
let r2 =
|
|
19413
|
+
let r2 = i2;
|
|
19349
19414
|
n2 = n2.concat(this.walkTokens(r2.items, t2));
|
|
19350
19415
|
break;
|
|
19351
19416
|
}
|
|
19352
19417
|
default: {
|
|
19353
|
-
let r2 =
|
|
19418
|
+
let r2 = i2;
|
|
19354
19419
|
this.defaults.extensions?.childTokens?.[r2.type] ? this.defaults.extensions.childTokens[r2.type].forEach((o2) => {
|
|
19355
|
-
let
|
|
19356
|
-
n2 = n2.concat(this.walkTokens(
|
|
19420
|
+
let s2 = r2[o2].flat(1 / 0);
|
|
19421
|
+
n2 = n2.concat(this.walkTokens(s2, t2));
|
|
19357
19422
|
}) : r2.tokens && (n2 = n2.concat(this.walkTokens(r2.tokens, t2)));
|
|
19358
19423
|
}
|
|
19359
19424
|
}
|
|
@@ -19362,14 +19427,14 @@ var Z = class {
|
|
|
19362
19427
|
use(...e3) {
|
|
19363
19428
|
let t2 = this.defaults.extensions || { renderers: {}, childTokens: {} };
|
|
19364
19429
|
return e3.forEach((n2) => {
|
|
19365
|
-
let
|
|
19366
|
-
if (
|
|
19430
|
+
let i2 = { ...n2 };
|
|
19431
|
+
if (i2.async = this.defaults.async || i2.async || false, n2.extensions && (n2.extensions.forEach((r2) => {
|
|
19367
19432
|
if (!r2.name) throw new Error("extension name required");
|
|
19368
19433
|
if ("renderer" in r2) {
|
|
19369
19434
|
let o2 = t2.renderers[r2.name];
|
|
19370
|
-
o2 ? t2.renderers[r2.name] = function(...
|
|
19371
|
-
let
|
|
19372
|
-
return
|
|
19435
|
+
o2 ? t2.renderers[r2.name] = function(...s2) {
|
|
19436
|
+
let u2 = r2.renderer.apply(this, s2);
|
|
19437
|
+
return u2 === false && (u2 = o2.apply(this, s2)), u2;
|
|
19373
19438
|
} : t2.renderers[r2.name] = r2.renderer;
|
|
19374
19439
|
}
|
|
19375
19440
|
if ("tokenizer" in r2) {
|
|
@@ -19378,64 +19443,64 @@ var Z = class {
|
|
|
19378
19443
|
o2 ? o2.unshift(r2.tokenizer) : t2[r2.level] = [r2.tokenizer], r2.start && (r2.level === "block" ? t2.startBlock ? t2.startBlock.push(r2.start) : t2.startBlock = [r2.start] : r2.level === "inline" && (t2.startInline ? t2.startInline.push(r2.start) : t2.startInline = [r2.start]));
|
|
19379
19444
|
}
|
|
19380
19445
|
"childTokens" in r2 && r2.childTokens && (t2.childTokens[r2.name] = r2.childTokens);
|
|
19381
|
-
}),
|
|
19446
|
+
}), i2.extensions = t2), n2.renderer) {
|
|
19382
19447
|
let r2 = this.defaults.renderer || new P$1(this.defaults);
|
|
19383
19448
|
for (let o2 in n2.renderer) {
|
|
19384
19449
|
if (!(o2 in r2)) throw new Error(`renderer '${o2}' does not exist`);
|
|
19385
19450
|
if (["options", "parser"].includes(o2)) continue;
|
|
19386
|
-
let
|
|
19387
|
-
r2[
|
|
19388
|
-
let c2 =
|
|
19451
|
+
let s2 = o2, u2 = n2.renderer[s2], a2 = r2[s2];
|
|
19452
|
+
r2[s2] = (...p2) => {
|
|
19453
|
+
let c2 = u2.apply(r2, p2);
|
|
19389
19454
|
return c2 === false && (c2 = a2.apply(r2, p2)), c2 || "";
|
|
19390
19455
|
};
|
|
19391
19456
|
}
|
|
19392
|
-
|
|
19457
|
+
i2.renderer = r2;
|
|
19393
19458
|
}
|
|
19394
19459
|
if (n2.tokenizer) {
|
|
19395
19460
|
let r2 = this.defaults.tokenizer || new y$1(this.defaults);
|
|
19396
19461
|
for (let o2 in n2.tokenizer) {
|
|
19397
19462
|
if (!(o2 in r2)) throw new Error(`tokenizer '${o2}' does not exist`);
|
|
19398
19463
|
if (["options", "rules", "lexer"].includes(o2)) continue;
|
|
19399
|
-
let
|
|
19400
|
-
r2[
|
|
19401
|
-
let c2 =
|
|
19464
|
+
let s2 = o2, u2 = n2.tokenizer[s2], a2 = r2[s2];
|
|
19465
|
+
r2[s2] = (...p2) => {
|
|
19466
|
+
let c2 = u2.apply(r2, p2);
|
|
19402
19467
|
return c2 === false && (c2 = a2.apply(r2, p2)), c2;
|
|
19403
19468
|
};
|
|
19404
19469
|
}
|
|
19405
|
-
|
|
19470
|
+
i2.tokenizer = r2;
|
|
19406
19471
|
}
|
|
19407
19472
|
if (n2.hooks) {
|
|
19408
19473
|
let r2 = this.defaults.hooks || new S$1();
|
|
19409
19474
|
for (let o2 in n2.hooks) {
|
|
19410
19475
|
if (!(o2 in r2)) throw new Error(`hook '${o2}' does not exist`);
|
|
19411
19476
|
if (["options", "block"].includes(o2)) continue;
|
|
19412
|
-
let
|
|
19413
|
-
S$1.passThroughHooks.has(o2) ? r2[
|
|
19477
|
+
let s2 = o2, u2 = n2.hooks[s2], a2 = r2[s2];
|
|
19478
|
+
S$1.passThroughHooks.has(o2) ? r2[s2] = (p2) => {
|
|
19414
19479
|
if (this.defaults.async && S$1.passThroughHooksRespectAsync.has(o2)) return (async () => {
|
|
19415
|
-
let h2 = await
|
|
19480
|
+
let h2 = await u2.call(r2, p2);
|
|
19416
19481
|
return a2.call(r2, h2);
|
|
19417
19482
|
})();
|
|
19418
|
-
let c2 =
|
|
19483
|
+
let c2 = u2.call(r2, p2);
|
|
19419
19484
|
return a2.call(r2, c2);
|
|
19420
|
-
} : r2[
|
|
19485
|
+
} : r2[s2] = (...p2) => {
|
|
19421
19486
|
if (this.defaults.async) return (async () => {
|
|
19422
|
-
let h2 = await
|
|
19487
|
+
let h2 = await u2.apply(r2, p2);
|
|
19423
19488
|
return h2 === false && (h2 = await a2.apply(r2, p2)), h2;
|
|
19424
19489
|
})();
|
|
19425
|
-
let c2 =
|
|
19490
|
+
let c2 = u2.apply(r2, p2);
|
|
19426
19491
|
return c2 === false && (c2 = a2.apply(r2, p2)), c2;
|
|
19427
19492
|
};
|
|
19428
19493
|
}
|
|
19429
|
-
|
|
19494
|
+
i2.hooks = r2;
|
|
19430
19495
|
}
|
|
19431
19496
|
if (n2.walkTokens) {
|
|
19432
19497
|
let r2 = this.defaults.walkTokens, o2 = n2.walkTokens;
|
|
19433
|
-
|
|
19434
|
-
let
|
|
19435
|
-
return
|
|
19498
|
+
i2.walkTokens = function(s2) {
|
|
19499
|
+
let u2 = [];
|
|
19500
|
+
return u2.push(o2.call(this, s2)), r2 && (u2 = u2.concat(r2.call(this, s2))), u2;
|
|
19436
19501
|
};
|
|
19437
19502
|
}
|
|
19438
|
-
this.defaults = { ...this.defaults, ...
|
|
19503
|
+
this.defaults = { ...this.defaults, ...i2 };
|
|
19439
19504
|
}), this;
|
|
19440
19505
|
}
|
|
19441
19506
|
setOptions(e3) {
|
|
@@ -19448,25 +19513,25 @@ var Z = class {
|
|
|
19448
19513
|
return b$1.parse(e3, t2 ?? this.defaults);
|
|
19449
19514
|
}
|
|
19450
19515
|
parseMarkdown(e3) {
|
|
19451
|
-
return (n2,
|
|
19452
|
-
let r2 = { ...
|
|
19453
|
-
if (this.defaults.async === true && r2.async === false) return
|
|
19454
|
-
if (typeof n2 > "u" || n2 === null) return
|
|
19455
|
-
if (typeof n2 != "string") return
|
|
19516
|
+
return (n2, i2) => {
|
|
19517
|
+
let r2 = { ...i2 }, o2 = { ...this.defaults, ...r2 }, s2 = this.onError(!!o2.silent, !!o2.async);
|
|
19518
|
+
if (this.defaults.async === true && r2.async === false) return s2(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
19519
|
+
if (typeof n2 > "u" || n2 === null) return s2(new Error("marked(): input parameter is undefined or null"));
|
|
19520
|
+
if (typeof n2 != "string") return s2(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n2) + ", string expected"));
|
|
19456
19521
|
if (o2.hooks && (o2.hooks.options = o2, o2.hooks.block = e3), o2.async) return (async () => {
|
|
19457
|
-
let
|
|
19522
|
+
let u2 = o2.hooks ? await o2.hooks.preprocess(n2) : n2, p2 = await (o2.hooks ? await o2.hooks.provideLexer(e3) : e3 ? x.lex : x.lexInline)(u2, o2), c2 = o2.hooks ? await o2.hooks.processAllTokens(p2) : p2;
|
|
19458
19523
|
o2.walkTokens && await Promise.all(this.walkTokens(c2, o2.walkTokens));
|
|
19459
|
-
let
|
|
19460
|
-
return o2.hooks ? await o2.hooks.postprocess(
|
|
19461
|
-
})().catch(
|
|
19524
|
+
let k = await (o2.hooks ? await o2.hooks.provideParser(e3) : e3 ? b$1.parse : b$1.parseInline)(c2, o2);
|
|
19525
|
+
return o2.hooks ? await o2.hooks.postprocess(k) : k;
|
|
19526
|
+
})().catch(s2);
|
|
19462
19527
|
try {
|
|
19463
19528
|
o2.hooks && (n2 = o2.hooks.preprocess(n2));
|
|
19464
19529
|
let a2 = (o2.hooks ? o2.hooks.provideLexer(e3) : e3 ? x.lex : x.lexInline)(n2, o2);
|
|
19465
19530
|
o2.hooks && (a2 = o2.hooks.processAllTokens(a2)), o2.walkTokens && this.walkTokens(a2, o2.walkTokens);
|
|
19466
19531
|
let c2 = (o2.hooks ? o2.hooks.provideParser(e3) : e3 ? b$1.parse : b$1.parseInline)(a2, o2);
|
|
19467
19532
|
return o2.hooks && (c2 = o2.hooks.postprocess(c2)), c2;
|
|
19468
|
-
} catch (
|
|
19469
|
-
return
|
|
19533
|
+
} catch (u2) {
|
|
19534
|
+
return s2(u2);
|
|
19470
19535
|
}
|
|
19471
19536
|
};
|
|
19472
19537
|
}
|
|
@@ -19474,29 +19539,29 @@ var Z = class {
|
|
|
19474
19539
|
return (n2) => {
|
|
19475
19540
|
if (n2.message += `
|
|
19476
19541
|
Please report this to https://github.com/markedjs/marked.`, e3) {
|
|
19477
|
-
let
|
|
19478
|
-
return t2 ? Promise.resolve(
|
|
19542
|
+
let i2 = "<p>An error occurred:</p><pre>" + R(n2.message + "", true) + "</pre>";
|
|
19543
|
+
return t2 ? Promise.resolve(i2) : i2;
|
|
19479
19544
|
}
|
|
19480
19545
|
if (t2) return Promise.reject(n2);
|
|
19481
19546
|
throw n2;
|
|
19482
19547
|
};
|
|
19483
19548
|
}
|
|
19484
19549
|
};
|
|
19485
|
-
var M = new
|
|
19486
|
-
function f$1(
|
|
19487
|
-
return M.parse(
|
|
19550
|
+
var M = new Q();
|
|
19551
|
+
function f$1(l4, e3) {
|
|
19552
|
+
return M.parse(l4, e3);
|
|
19488
19553
|
}
|
|
19489
|
-
f$1.options = f$1.setOptions = function(
|
|
19490
|
-
return M.setOptions(
|
|
19554
|
+
f$1.options = f$1.setOptions = function(l4) {
|
|
19555
|
+
return M.setOptions(l4), f$1.defaults = M.defaults, U(f$1.defaults), f$1;
|
|
19491
19556
|
};
|
|
19492
19557
|
f$1.getDefaults = A;
|
|
19493
19558
|
f$1.defaults = T;
|
|
19494
|
-
function
|
|
19495
|
-
return M.use(...
|
|
19559
|
+
function bt(...l4) {
|
|
19560
|
+
return M.use(...l4), f$1.defaults = M.defaults, U(f$1.defaults), f$1;
|
|
19496
19561
|
}
|
|
19497
|
-
f$1.use =
|
|
19498
|
-
f$1.walkTokens = function(
|
|
19499
|
-
return M.walkTokens(
|
|
19562
|
+
f$1.use = bt;
|
|
19563
|
+
f$1.walkTokens = function(l4, e3) {
|
|
19564
|
+
return M.walkTokens(l4, e3);
|
|
19500
19565
|
};
|
|
19501
19566
|
f$1.parseInline = M.parseInline;
|
|
19502
19567
|
f$1.Parser = b$1;
|
|
@@ -19522,18 +19587,18 @@ function _arrayLikeToArray(r2, a2) {
|
|
|
19522
19587
|
function _arrayWithHoles(r2) {
|
|
19523
19588
|
if (Array.isArray(r2)) return r2;
|
|
19524
19589
|
}
|
|
19525
|
-
function _iterableToArrayLimit(r2,
|
|
19590
|
+
function _iterableToArrayLimit(r2, l4) {
|
|
19526
19591
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
19527
19592
|
if (null != t2) {
|
|
19528
|
-
var e3, n2, i2,
|
|
19593
|
+
var e3, n2, i2, u2, a2 = [], f2 = true, o2 = false;
|
|
19529
19594
|
try {
|
|
19530
|
-
if (i2 = (t2 = t2.call(r2)).next, 0 ===
|
|
19531
|
-
else for (; !(f2 = (e3 = i2.call(t2)).done) && (a2.push(e3.value), a2.length !==
|
|
19595
|
+
if (i2 = (t2 = t2.call(r2)).next, 0 === l4) ;
|
|
19596
|
+
else for (; !(f2 = (e3 = i2.call(t2)).done) && (a2.push(e3.value), a2.length !== l4); f2 = true) ;
|
|
19532
19597
|
} catch (r3) {
|
|
19533
19598
|
o2 = true, n2 = r3;
|
|
19534
19599
|
} finally {
|
|
19535
19600
|
try {
|
|
19536
|
-
if (!f2 && null != t2.return && (
|
|
19601
|
+
if (!f2 && null != t2.return && (u2 = t2.return(), Object(u2) !== u2)) return;
|
|
19537
19602
|
} finally {
|
|
19538
19603
|
if (o2) throw n2;
|
|
19539
19604
|
}
|
|
@@ -19630,14 +19695,14 @@ function addToSet(set, array) {
|
|
|
19630
19695
|
if (!arrayIsArray(array)) {
|
|
19631
19696
|
return set;
|
|
19632
19697
|
}
|
|
19633
|
-
let
|
|
19634
|
-
while (
|
|
19635
|
-
let element = array[
|
|
19698
|
+
let l4 = array.length;
|
|
19699
|
+
while (l4--) {
|
|
19700
|
+
let element = array[l4];
|
|
19636
19701
|
if (typeof element === "string") {
|
|
19637
19702
|
const lcElement = transformCaseFunc(element);
|
|
19638
19703
|
if (lcElement !== element) {
|
|
19639
19704
|
if (!isFrozen(array)) {
|
|
19640
|
-
array[
|
|
19705
|
+
array[l4] = lcElement;
|
|
19641
19706
|
}
|
|
19642
19707
|
element = lcElement;
|
|
19643
19708
|
}
|
|
@@ -20789,10 +20854,10 @@ function createDOMPurify() {
|
|
|
20789
20854
|
allowedAttributes: ALLOWED_ATTR,
|
|
20790
20855
|
forceKeepAttr: void 0
|
|
20791
20856
|
};
|
|
20792
|
-
let
|
|
20857
|
+
let l4 = attributes.length;
|
|
20793
20858
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
20794
|
-
while (
|
|
20795
|
-
const attr = attributes[
|
|
20859
|
+
while (l4--) {
|
|
20860
|
+
const attr = attributes[l4];
|
|
20796
20861
|
const name = attr.name, namespaceURI = attr.namespaceURI, attrValue = attr.value;
|
|
20797
20862
|
const lcName = transformCaseFunc(name);
|
|
20798
20863
|
const initValue = attrValue;
|
|
@@ -21512,8 +21577,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
21512
21577
|
};
|
|
21513
21578
|
}
|
|
21514
21579
|
});
|
|
21515
|
-
const _style_0$y = "\n.markdown-editor[data-v-
|
|
21516
|
-
const MarkdownEditor = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["styles", [_style_0$y]], ["__scopeId", "data-v-
|
|
21580
|
+
const _style_0$y = "\n.markdown-editor[data-v-d9e8bd29] {\n display: flex;\n flex-direction: column;\n font-family: var(--font-family);\n font-size: var(--font-size-base);\n line-height: var(--line-height);\n color: var(--color-text-primary);\n}\n.markdown-editor__toolbar[data-v-d9e8bd29] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-xs);\n padding: var(--spacing-xs) var(--spacing-md);\n border-bottom: 1px solid var(--color-border);\n background-color: var(--color-surface);\n position: sticky;\n top: var(--document-toolbar-height, 49px);\n z-index: 1;\n}\n.markdown-editor__separator[data-v-d9e8bd29] {\n width: 1px;\n height: 20px;\n background-color: var(--color-border);\n margin: 0 var(--spacing-xs);\n}\n.markdown-editor__content[data-v-d9e8bd29] {\n padding: 4rem clamp(1.5rem, 6rem, 8%);\n outline: none;\n min-height: 200px;\n}\n.markdown-editor__content[data-v-d9e8bd29] > *:first-child {\n margin-top: 0;\n}\n.markdown-editor__content[data-v-d9e8bd29] h1,\n.markdown-editor__content[data-v-d9e8bd29] h2,\n.markdown-editor__content[data-v-d9e8bd29] h3,\n.markdown-editor__content[data-v-d9e8bd29] h4 {\n margin: var(--spacing-lg) 0 var(--spacing-sm);\n font-weight: 700;\n color: var(--color-text-primary);\n}\n.markdown-editor__content[data-v-d9e8bd29] h1 {\n font-size: var(--font-size-xl);\n}\n.markdown-editor__content[data-v-d9e8bd29] h2 {\n font-size: var(--font-size-lg);\n}\n.markdown-editor__content[data-v-d9e8bd29] h3 {\n font-size: var(--font-size-base);\n}\n.markdown-editor__content[data-v-d9e8bd29] h4 {\n font-size: var(--font-size-sm);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--color-text-secondary);\n}\n.markdown-editor__content[data-v-d9e8bd29] p {\n margin: 0 0 var(--spacing-md);\n}\n.markdown-editor__content[data-v-d9e8bd29] ul,\n.markdown-editor__content[data-v-d9e8bd29] ol {\n margin: 0 0 var(--spacing-md);\n padding-left: var(--spacing-lg);\n}\n.markdown-editor__content[data-v-d9e8bd29] li {\n margin: var(--spacing-xs) 0;\n}\n.markdown-editor__content[data-v-d9e8bd29] blockquote {\n margin: var(--spacing-md) 0;\n padding: var(--spacing-sm) var(--spacing-md);\n border-left: 3px solid var(--color-border);\n color: var(--color-text-secondary);\n font-style: italic;\n}\n.markdown-editor__content[data-v-d9e8bd29] code {\n font-family: var(--font-family-mono);\n font-size: 0.9em;\n padding: 1px 4px;\n background-color: var(--color-surface);\n border-radius: var(--radius-sm);\n}\n.markdown-editor__content[data-v-d9e8bd29] pre {\n margin: var(--spacing-md) 0;\n padding: var(--spacing-md);\n background-color: var(--color-surface);\n border-radius: var(--radius-md);\n overflow-x: auto;\n}\n.markdown-editor__content[data-v-d9e8bd29] pre code {\n padding: 0;\n background: none;\n}\n.markdown-editor__content[data-v-d9e8bd29] a {\n color: var(--color-primary);\n text-decoration: underline;\n}\n.markdown-editor__content[data-v-d9e8bd29] hr {\n border: 0;\n border-top: 1px solid var(--color-border);\n margin: var(--spacing-lg) 0;\n}\n.markdown-editor__content[data-v-d9e8bd29] strong {\n font-weight: 700;\n}\n.markdown-editor__content[data-v-d9e8bd29] table {\n border-collapse: collapse;\n margin: var(--spacing-md) 0;\n}\n.markdown-editor__content[data-v-d9e8bd29] th,\n.markdown-editor__content[data-v-d9e8bd29] td {\n border: 1px solid var(--color-border);\n padding: var(--spacing-xs) var(--spacing-sm);\n}\n.markdown-editor__content[data-v-d9e8bd29] th {\n background-color: var(--color-surface);\n font-weight: 600;\n}\n";
|
|
21581
|
+
const MarkdownEditor = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["styles", [_style_0$y]], ["__scopeId", "data-v-d9e8bd29"]]);
|
|
21517
21582
|
const _hoisted_1$z = { class: "markdown-view" };
|
|
21518
21583
|
const _hoisted_2$r = ["innerHTML"];
|
|
21519
21584
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
@@ -21648,11 +21713,11 @@ const _hoisted_2$p = {
|
|
|
21648
21713
|
class: "selectable-list-item__leading"
|
|
21649
21714
|
};
|
|
21650
21715
|
const _hoisted_3$j = { class: "selectable-list-item__label" };
|
|
21651
|
-
const _hoisted_4$
|
|
21716
|
+
const _hoisted_4$d = {
|
|
21652
21717
|
key: 1,
|
|
21653
21718
|
class: "selectable-list-item__trailing"
|
|
21654
21719
|
};
|
|
21655
|
-
const _hoisted_5$
|
|
21720
|
+
const _hoisted_5$b = {
|
|
21656
21721
|
key: 0,
|
|
21657
21722
|
class: "selectable-list-item__actions"
|
|
21658
21723
|
};
|
|
@@ -21689,11 +21754,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21689
21754
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
21690
21755
|
], true)
|
|
21691
21756
|
]),
|
|
21692
|
-
_ctx.$slots.trailing ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
21757
|
+
_ctx.$slots.trailing ? (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
21693
21758
|
renderSlot(_ctx.$slots, "trailing", {}, void 0, true)
|
|
21694
21759
|
])) : createCommentVNode("", true)
|
|
21695
21760
|
], 8, _hoisted_1$x),
|
|
21696
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
21761
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
21697
21762
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
21698
21763
|
])) : createCommentVNode("", true)
|
|
21699
21764
|
], 2);
|
|
@@ -21781,32 +21846,27 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
21781
21846
|
const _style_0$t = "\n.user-avatar[data-v-977a8d17] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background-color: var(--color-primary);\n color: var(--color-white);\n font-size: var(--font-size-xs);\n font-weight: 600;\n user-select: none;\n cursor: default;\n}\n";
|
|
21782
21847
|
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["styles", [_style_0$t]], ["__scopeId", "data-v-977a8d17"]]);
|
|
21783
21848
|
const _hoisted_1$u = ["data-status"];
|
|
21784
|
-
const _hoisted_2$n = {
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
const _hoisted_3$h = { class: "document-article__toolbar-left" };
|
|
21790
|
-
const _hoisted_4$a = { class: "document-article__toolbar-center" };
|
|
21791
|
-
const _hoisted_5$9 = { class: "document-article__toolbar-right" };
|
|
21792
|
-
const _hoisted_6$9 = { class: "document-article__body" };
|
|
21793
|
-
const _hoisted_7$4 = {
|
|
21849
|
+
const _hoisted_2$n = { class: "document-article__toolbar-left" };
|
|
21850
|
+
const _hoisted_3$h = { class: "document-article__toolbar-center" };
|
|
21851
|
+
const _hoisted_4$c = { class: "document-article__toolbar-right" };
|
|
21852
|
+
const _hoisted_5$a = { class: "document-article__body" };
|
|
21853
|
+
const _hoisted_6$a = {
|
|
21794
21854
|
key: 0,
|
|
21795
21855
|
class: "document-article__center document-article__center--processing",
|
|
21796
21856
|
role: "status",
|
|
21797
21857
|
"aria-live": "polite"
|
|
21798
21858
|
};
|
|
21799
|
-
const
|
|
21800
|
-
const
|
|
21859
|
+
const _hoisted_7$4 = ["value"];
|
|
21860
|
+
const _hoisted_8$2 = {
|
|
21801
21861
|
key: 0,
|
|
21802
21862
|
class: "document-article__progress-value"
|
|
21803
21863
|
};
|
|
21804
|
-
const
|
|
21864
|
+
const _hoisted_9$2 = {
|
|
21805
21865
|
key: 1,
|
|
21806
21866
|
class: "document-article__center document-article__center--error",
|
|
21807
21867
|
role: "alert"
|
|
21808
21868
|
};
|
|
21809
|
-
const
|
|
21869
|
+
const _hoisted_10$2 = { class: "document-article__error-text" };
|
|
21810
21870
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
21811
21871
|
__name: "DocumentArticle",
|
|
21812
21872
|
props: {
|
|
@@ -21822,6 +21882,22 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21822
21882
|
const errorText = computed(
|
|
21823
21883
|
() => props.errorMessage || t2("llmService.errorTemporary")
|
|
21824
21884
|
);
|
|
21885
|
+
const articleEl = /* @__PURE__ */ ref(null);
|
|
21886
|
+
const toolbarEl = /* @__PURE__ */ ref(null);
|
|
21887
|
+
let toolbarObserver = null;
|
|
21888
|
+
function publishToolbarHeight() {
|
|
21889
|
+
const height = toolbarEl.value?.offsetHeight ?? 0;
|
|
21890
|
+
articleEl.value?.style.setProperty("--document-toolbar-height", `${height}px`);
|
|
21891
|
+
}
|
|
21892
|
+
onMounted(() => {
|
|
21893
|
+
publishToolbarHeight();
|
|
21894
|
+
if (typeof ResizeObserver === "undefined" || !toolbarEl.value) return;
|
|
21895
|
+
toolbarObserver = new ResizeObserver(publishToolbarHeight);
|
|
21896
|
+
toolbarObserver.observe(toolbarEl.value);
|
|
21897
|
+
});
|
|
21898
|
+
onBeforeUnmount(() => {
|
|
21899
|
+
toolbarObserver?.disconnect();
|
|
21900
|
+
});
|
|
21825
21901
|
const progressValue = computed(() => {
|
|
21826
21902
|
const v2 = props.progress;
|
|
21827
21903
|
if (v2 == null || !Number.isFinite(v2)) return null;
|
|
@@ -21829,22 +21905,30 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21829
21905
|
});
|
|
21830
21906
|
return (_ctx, _cache) => {
|
|
21831
21907
|
return openBlock(), createElementBlock("article", {
|
|
21908
|
+
ref_key: "articleEl",
|
|
21909
|
+
ref: articleEl,
|
|
21832
21910
|
class: "document-article",
|
|
21833
21911
|
"data-status": props.status
|
|
21834
21912
|
}, [
|
|
21835
|
-
_ctx.$slots["toolbar-left"] || _ctx.$slots["toolbar-center"] || _ctx.$slots["toolbar-right"] ? (openBlock(), createElementBlock("div",
|
|
21836
|
-
|
|
21913
|
+
_ctx.$slots["toolbar-left"] || _ctx.$slots["toolbar-center"] || _ctx.$slots["toolbar-right"] ? (openBlock(), createElementBlock("div", {
|
|
21914
|
+
key: 0,
|
|
21915
|
+
ref_key: "toolbarEl",
|
|
21916
|
+
ref: toolbarEl,
|
|
21917
|
+
class: "document-article__toolbar",
|
|
21918
|
+
role: "toolbar"
|
|
21919
|
+
}, [
|
|
21920
|
+
createBaseVNode("div", _hoisted_2$n, [
|
|
21837
21921
|
renderSlot(_ctx.$slots, "toolbar-left", {}, void 0, true)
|
|
21838
21922
|
]),
|
|
21839
|
-
createBaseVNode("div",
|
|
21923
|
+
createBaseVNode("div", _hoisted_3$h, [
|
|
21840
21924
|
renderSlot(_ctx.$slots, "toolbar-center", {}, void 0, true)
|
|
21841
21925
|
]),
|
|
21842
|
-
createBaseVNode("div",
|
|
21926
|
+
createBaseVNode("div", _hoisted_4$c, [
|
|
21843
21927
|
renderSlot(_ctx.$slots, "toolbar-right", {}, void 0, true)
|
|
21844
21928
|
])
|
|
21845
|
-
])) : createCommentVNode("", true),
|
|
21846
|
-
createBaseVNode("div",
|
|
21847
|
-
props.status === "processing" ? (openBlock(), createElementBlock("div",
|
|
21929
|
+
], 512)) : createCommentVNode("", true),
|
|
21930
|
+
createBaseVNode("div", _hoisted_5$a, [
|
|
21931
|
+
props.status === "processing" ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
|
|
21848
21932
|
createVNode(EditorIcon, {
|
|
21849
21933
|
name: "spinner",
|
|
21850
21934
|
spin: "",
|
|
@@ -21854,10 +21938,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21854
21938
|
class: "document-article__progress",
|
|
21855
21939
|
max: 100,
|
|
21856
21940
|
value: progressValue.value ?? void 0
|
|
21857
|
-
}, null, 8,
|
|
21858
|
-
progressValue.value !== null ? (openBlock(), createElementBlock("span",
|
|
21859
|
-
])) : props.status === "error" ? (openBlock(), createElementBlock("div",
|
|
21860
|
-
createBaseVNode("p",
|
|
21941
|
+
}, null, 8, _hoisted_7$4),
|
|
21942
|
+
progressValue.value !== null ? (openBlock(), createElementBlock("span", _hoisted_8$2, toDisplayString(progressValue.value) + "% ", 1)) : createCommentVNode("", true)
|
|
21943
|
+
])) : props.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
21944
|
+
createBaseVNode("p", _hoisted_10$2, toDisplayString(errorText.value), 1),
|
|
21861
21945
|
createVNode(Button, {
|
|
21862
21946
|
variant: "primary",
|
|
21863
21947
|
icon: "refresh-cw",
|
|
@@ -21874,8 +21958,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21874
21958
|
};
|
|
21875
21959
|
}
|
|
21876
21960
|
});
|
|
21877
|
-
const _style_0$s = "\n.document-article[data-v-
|
|
21878
|
-
const DocumentArticle = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["styles", [_style_0$s]], ["__scopeId", "data-v-
|
|
21961
|
+
const _style_0$s = "\n.document-article[data-v-54a8890c] {\n width: min(1088px, calc(100% - 16px));\n max-width: 1088px;\n margin: var(--spacing-lg) auto;\n background-color: var(--color-surface);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-md);\n display: flex;\n flex-direction: column;\n}\n.document-article__toolbar[data-v-54a8890c] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-sm);\n padding: var(--spacing-sm) var(--spacing-md);\n border-bottom: 1px solid var(--color-border);\n position: sticky;\n top: 0;\n background-color: var(--color-surface);\n border-radius: var(--radius-md) var(--radius-md) 0 0;\n z-index: 1;\n}\n.document-article__toolbar-left[data-v-54a8890c],\n.document-article__toolbar-right[data-v-54a8890c] {\n display: flex;\n align-items: center;\n gap: var(--spacing-xs);\n flex-shrink: 0;\n}\n.document-article__toolbar-center[data-v-54a8890c] {\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 0;\n}\n.document-article__body[data-v-54a8890c] {\n flex: 1;\n min-height: 0;\n}\n.document-article__center[data-v-54a8890c] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-sm);\n padding: var(--spacing-xl) var(--spacing-md);\n text-align: center;\n}\n.document-article__center--processing[data-v-54a8890c] {\n color: var(--color-primary);\n}\n.document-article__center--error[data-v-54a8890c] {\n color: var(--color-danger, #d33);\n}\n.document-article__progress[data-v-54a8890c] {\n width: min(280px, 100%);\n height: 6px;\n}\n.document-article__progress-value[data-v-54a8890c] {\n font-size: var(--font-size-xs);\n font-variant-numeric: tabular-nums;\n color: var(--color-text-muted);\n}\n\n/* Phone: the status line takes its own row under the buttons, so nothing\n ever needs to scroll sideways. */\n@media (max-width: 767px) {\n.document-article[data-v-54a8890c] {\n width: calc(100% - 16px);\n margin: var(--spacing-sm) auto;\n}\n.document-article__toolbar-center[data-v-54a8890c] {\n order: 3;\n flex-basis: 100%;\n justify-content: flex-start;\n}\n}\n.document-article__error-text[data-v-54a8890c] {\n margin: 0;\n max-width: 480px;\n font-size: var(--font-size-sm);\n line-height: var(--line-height);\n color: var(--color-text-secondary);\n}\n";
|
|
21962
|
+
const DocumentArticle = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["styles", [_style_0$s]], ["__scopeId", "data-v-54a8890c"]]);
|
|
21879
21963
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
21880
21964
|
__name: "DownloadMenu",
|
|
21881
21965
|
props: {
|
|
@@ -21957,17 +22041,31 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
21957
22041
|
const _hoisted_1$t = ["aria-label"];
|
|
21958
22042
|
const _hoisted_2$m = ["aria-selected", "aria-disabled", "disabled", "onClick"];
|
|
21959
22043
|
const _hoisted_3$g = { class: "tab__label" };
|
|
22044
|
+
const _hoisted_4$b = ["aria-selected", "aria-label"];
|
|
22045
|
+
const _hoisted_5$9 = { class: "tab__label" };
|
|
22046
|
+
const _hoisted_6$9 = { class: "tab__menu-item" };
|
|
21960
22047
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
21961
22048
|
__name: "Tabs",
|
|
21962
22049
|
props: {
|
|
21963
22050
|
tabs: { type: Array },
|
|
21964
22051
|
modelValue: { type: null },
|
|
21965
|
-
ariaLabel: { type: String }
|
|
22052
|
+
ariaLabel: { type: String },
|
|
22053
|
+
collapseFrom: { type: Number }
|
|
21966
22054
|
},
|
|
21967
22055
|
emits: ["update:modelValue"],
|
|
21968
22056
|
setup(__props, { emit: __emit }) {
|
|
21969
22057
|
const props = __props;
|
|
21970
22058
|
const emit2 = __emit;
|
|
22059
|
+
const { t: t2 } = useI18n();
|
|
22060
|
+
const inlineTabs = computed(
|
|
22061
|
+
() => props.collapseFrom === void 0 ? props.tabs : props.tabs.slice(0, props.collapseFrom)
|
|
22062
|
+
);
|
|
22063
|
+
const collapsedTabs = computed(
|
|
22064
|
+
() => props.collapseFrom === void 0 ? [] : props.tabs.slice(props.collapseFrom)
|
|
22065
|
+
);
|
|
22066
|
+
const activeCollapsedTab = computed(
|
|
22067
|
+
() => collapsedTabs.value.find((tab) => tab.value === props.modelValue) ?? null
|
|
22068
|
+
);
|
|
21971
22069
|
function onSelect(tab) {
|
|
21972
22070
|
if (tab.disabled) return;
|
|
21973
22071
|
if (tab.value === props.modelValue) return;
|
|
@@ -21979,7 +22077,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
21979
22077
|
role: "tablist",
|
|
21980
22078
|
"aria-label": __props.ariaLabel
|
|
21981
22079
|
}, [
|
|
21982
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
22080
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(inlineTabs.value, (tab) => {
|
|
21983
22081
|
return openBlock(), createElementBlock("button", {
|
|
21984
22082
|
key: tab.value,
|
|
21985
22083
|
type: "button",
|
|
@@ -22007,13 +22105,64 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
22007
22105
|
_: 2
|
|
22008
22106
|
}, 1024)) : createCommentVNode("", true)
|
|
22009
22107
|
], 10, _hoisted_2$m);
|
|
22010
|
-
}), 128))
|
|
22108
|
+
}), 128)),
|
|
22109
|
+
collapsedTabs.value.length > 0 ? (openBlock(), createBlock(_sfc_main$E, {
|
|
22110
|
+
key: 0,
|
|
22111
|
+
items: collapsedTabs.value,
|
|
22112
|
+
"item-key": (tab) => tab.value,
|
|
22113
|
+
"is-current": (tab) => tab.value === __props.modelValue,
|
|
22114
|
+
align: "end",
|
|
22115
|
+
onSelect
|
|
22116
|
+
}, {
|
|
22117
|
+
trigger: withCtx(() => [
|
|
22118
|
+
createBaseVNode("button", {
|
|
22119
|
+
type: "button",
|
|
22120
|
+
role: "tab",
|
|
22121
|
+
class: normalizeClass(["tab tab--more", { "tab--active": activeCollapsedTab.value !== null }]),
|
|
22122
|
+
"aria-selected": activeCollapsedTab.value !== null,
|
|
22123
|
+
"aria-label": unref(t2)("tabs.moreLabel")
|
|
22124
|
+
}, [
|
|
22125
|
+
createBaseVNode("span", _hoisted_5$9, toDisplayString(activeCollapsedTab.value ? activeCollapsedTab.value.label : unref(t2)("tabs.moreLabel")), 1),
|
|
22126
|
+
activeCollapsedTab.value?.badge ? (openBlock(), createBlock(Badge, {
|
|
22127
|
+
key: 0,
|
|
22128
|
+
class: "tab__badge"
|
|
22129
|
+
}, {
|
|
22130
|
+
default: withCtx(() => [
|
|
22131
|
+
createTextVNode(toDisplayString(activeCollapsedTab.value.badge), 1)
|
|
22132
|
+
]),
|
|
22133
|
+
_: 1
|
|
22134
|
+
})) : createCommentVNode("", true),
|
|
22135
|
+
createVNode(EditorIcon, {
|
|
22136
|
+
name: "chevron-down",
|
|
22137
|
+
size: 14,
|
|
22138
|
+
class: "tab__chevron"
|
|
22139
|
+
})
|
|
22140
|
+
], 10, _hoisted_4$b)
|
|
22141
|
+
]),
|
|
22142
|
+
item: withCtx(({ item }) => [
|
|
22143
|
+
createBaseVNode("span", _hoisted_6$9, [
|
|
22144
|
+
unref(resolveIcon)(item.icon) ? (openBlock(), createBlock(EditorIcon, {
|
|
22145
|
+
key: 0,
|
|
22146
|
+
name: item.icon,
|
|
22147
|
+
size: 16
|
|
22148
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
22149
|
+
createBaseVNode("span", null, toDisplayString(item.label), 1),
|
|
22150
|
+
item.badge ? (openBlock(), createBlock(Badge, { key: 1 }, {
|
|
22151
|
+
default: withCtx(() => [
|
|
22152
|
+
createTextVNode(toDisplayString(item.badge), 1)
|
|
22153
|
+
]),
|
|
22154
|
+
_: 2
|
|
22155
|
+
}, 1024)) : createCommentVNode("", true)
|
|
22156
|
+
])
|
|
22157
|
+
]),
|
|
22158
|
+
_: 1
|
|
22159
|
+
}, 8, ["items", "item-key", "is-current"])) : createCommentVNode("", true)
|
|
22011
22160
|
], 8, _hoisted_1$t);
|
|
22012
22161
|
};
|
|
22013
22162
|
}
|
|
22014
22163
|
});
|
|
22015
|
-
const _style_0$r =
|
|
22016
|
-
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["styles", [_style_0$r]], ["__scopeId", "data-v-
|
|
22164
|
+
const _style_0$r = '\n.tabs[data-v-30747b8d] {\n display: flex;\n align-items: stretch;\n gap: var(--spacing-xs);\n padding: 0 var(--spacing-lg);\n border-bottom: 1px solid var(--color-border);\n background-color: var(--color-surface);\n overflow-x: auto;\n scrollbar-width: thin;\n}\n.transcript-ui-root .tab[data-v-30747b8d] {\n all: unset;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-xs);\n height: 44px;\n padding: 0 var(--spacing-sm);\n font-family: var(--font-family);\n font-size: var(--font-size-sm);\n font-weight: 500;\n color: var(--color-text-secondary);\n cursor: pointer;\n white-space: nowrap;\n border-bottom: 2px solid transparent;\n transition:\n color var(--transition-duration),\n border-color var(--transition-duration);\n}\n.transcript-ui-root .tab[data-v-30747b8d]:hover:not([disabled]) {\n color: var(--color-text-primary);\n}\n.transcript-ui-root .tab[data-v-30747b8d]:focus-visible {\n outline: 2px solid var(--color-primary);\n outline-offset: -2px;\n border-radius: var(--radius-sm);\n}\n.transcript-ui-root .tab--active[data-v-30747b8d] {\n color: var(--color-text-primary);\n border-bottom-color: var(--color-primary);\n}\n.transcript-ui-root .tab[disabled][data-v-30747b8d] {\n opacity: 0.4;\n cursor: not-allowed;\n}\n.tab__icon[data-v-30747b8d] {\n flex-shrink: 0;\n color: currentColor;\n}\n.tab__label[data-v-30747b8d] {\n text-box: cap alphabetic;\n}\n.tab__badge[data-v-30747b8d] {\n margin-left: var(--spacing-xs);\n}\n.tab__chevron[data-v-30747b8d] {\n flex-shrink: 0;\n color: currentColor;\n}\n.tab__menu-item[data-v-30747b8d] {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-xs);\n}\n\n/* Phone: the inline tabs share the width, labels shrink with an ellipsis,\n icons go, nothing scrolls sideways (the rest lives in the "More" menu). */\n@media (max-width: 767px) {\n.tabs[data-v-30747b8d] {\n padding: 0 var(--spacing-sm);\n overflow-x: hidden;\n}\n.transcript-ui-root .tab[data-v-30747b8d] {\n flex: 1;\n min-width: 0;\n justify-content: center;\n padding: 0 var(--spacing-xs);\n font-size: var(--font-size-xs);\n}\n.tab__icon[data-v-30747b8d] {\n display: none;\n}\n.tab__label[data-v-30747b8d] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n}\n';
|
|
22165
|
+
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["styles", [_style_0$r]], ["__scopeId", "data-v-30747b8d"]]);
|
|
22017
22166
|
const TEXT_NODE$1 = 3;
|
|
22018
22167
|
function placeCaretAt(element, offset2) {
|
|
22019
22168
|
element.focus({ preventScroll: true });
|
|
@@ -22134,7 +22283,7 @@ const TurnTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["styles", [_st
|
|
|
22134
22283
|
const _hoisted_1$r = { class: "editor-header" };
|
|
22135
22284
|
const _hoisted_2$l = { class: "header-main" };
|
|
22136
22285
|
const _hoisted_3$f = { class: "document-title" };
|
|
22137
|
-
const _hoisted_4$
|
|
22286
|
+
const _hoisted_4$a = {
|
|
22138
22287
|
key: 0,
|
|
22139
22288
|
class: "document-meta"
|
|
22140
22289
|
};
|
|
@@ -22177,7 +22326,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
22177
22326
|
return openBlock(), createElementBlock("header", _hoisted_1$r, [
|
|
22178
22327
|
createBaseVNode("div", _hoisted_2$l, [
|
|
22179
22328
|
createBaseVNode("h1", _hoisted_3$f, toDisplayString(formattedTitle.value), 1),
|
|
22180
|
-
metaParts.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22329
|
+
metaParts.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
|
|
22181
22330
|
(openBlock(true), createElementBlock(Fragment, null, renderList(metaParts.value, (part, i2) => {
|
|
22182
22331
|
return openBlock(), createElementBlock("span", {
|
|
22183
22332
|
key: i2,
|
|
@@ -22257,6 +22406,23 @@ const _style_0$p = '\n.editor-header[data-v-491cf8ab] {\n display: flex;\n ali
|
|
|
22257
22406
|
const Header = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["styles", [_style_0$p]], ["__scopeId", "data-v-491cf8ab"]]);
|
|
22258
22407
|
const TRANSCRIPTION_TAB = "__transcription__";
|
|
22259
22408
|
const VERBATIM_TAB = "__verbatim__";
|
|
22409
|
+
const MOBILE_BREAKPOINT = "(max-width: 767px)";
|
|
22410
|
+
function useIsMobile() {
|
|
22411
|
+
const isMobile = /* @__PURE__ */ ref(false);
|
|
22412
|
+
let mql = null;
|
|
22413
|
+
function onChange(e3) {
|
|
22414
|
+
isMobile.value = e3.matches;
|
|
22415
|
+
}
|
|
22416
|
+
onMounted(() => {
|
|
22417
|
+
mql = window.matchMedia(MOBILE_BREAKPOINT);
|
|
22418
|
+
isMobile.value = mql.matches;
|
|
22419
|
+
mql.addEventListener("change", onChange);
|
|
22420
|
+
});
|
|
22421
|
+
onBeforeUnmount(() => {
|
|
22422
|
+
mql?.removeEventListener("change", onChange);
|
|
22423
|
+
});
|
|
22424
|
+
return { isMobile };
|
|
22425
|
+
}
|
|
22260
22426
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
22261
22427
|
__name: "TabBar",
|
|
22262
22428
|
props: {
|
|
@@ -22269,6 +22435,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
22269
22435
|
const emit2 = __emit;
|
|
22270
22436
|
const core = useCore();
|
|
22271
22437
|
const { t: t2 } = useI18n();
|
|
22438
|
+
const { isMobile } = useIsMobile();
|
|
22439
|
+
const collapseFrom = computed(() => {
|
|
22440
|
+
if (!isMobile.value) return void 0;
|
|
22441
|
+
return props.showVerbatim ? 2 : 1;
|
|
22442
|
+
});
|
|
22272
22443
|
const tabs = computed(() => {
|
|
22273
22444
|
const services = core.llmServices?.list.value ?? [];
|
|
22274
22445
|
return [
|
|
@@ -22300,8 +22471,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
22300
22471
|
key: 0,
|
|
22301
22472
|
tabs: tabs.value,
|
|
22302
22473
|
"model-value": __props.modelValue,
|
|
22474
|
+
"collapse-from": collapseFrom.value,
|
|
22303
22475
|
"onUpdate:modelValue": onSelect
|
|
22304
|
-
}, null, 8, ["tabs", "model-value"])) : createCommentVNode("", true);
|
|
22476
|
+
}, null, 8, ["tabs", "model-value", "collapse-from"])) : createCommentVNode("", true);
|
|
22305
22477
|
};
|
|
22306
22478
|
}
|
|
22307
22479
|
});
|
|
@@ -22366,7 +22538,7 @@ function createStickToBottomEngine(initialOptions = {}) {
|
|
|
22366
22538
|
};
|
|
22367
22539
|
function notify() {
|
|
22368
22540
|
const snapshot = getPublicState();
|
|
22369
|
-
for (const
|
|
22541
|
+
for (const l4 of listeners) l4(snapshot);
|
|
22370
22542
|
}
|
|
22371
22543
|
function getPublicState() {
|
|
22372
22544
|
return {
|
|
@@ -23194,7 +23366,7 @@ const _hoisted_2$i = {
|
|
|
23194
23366
|
class: "turn-edit-actions"
|
|
23195
23367
|
};
|
|
23196
23368
|
const _hoisted_3$e = ["role", "tabindex", "aria-label", "aria-disabled"];
|
|
23197
|
-
const _hoisted_4$
|
|
23369
|
+
const _hoisted_4$9 = ["data-word-active"];
|
|
23198
23370
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
23199
23371
|
__name: "TranscriptionTurn",
|
|
23200
23372
|
props: {
|
|
@@ -23431,7 +23603,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
23431
23603
|
createBaseVNode("span", {
|
|
23432
23604
|
class: normalizeClass({ "word--active": word.id === activeWordId.value }),
|
|
23433
23605
|
"data-word-active": word.id === activeWordId.value || void 0
|
|
23434
|
-
}, toDisplayString(word.text), 11, _hoisted_4$
|
|
23606
|
+
}, toDisplayString(word.text), 11, _hoisted_4$9),
|
|
23435
23607
|
createTextVNode(toDisplayString(i2 < __props.turn.words.length - 1 ? " " : ""), 1)
|
|
23436
23608
|
], 64);
|
|
23437
23609
|
}), 128)) : __props.turn.text ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -23615,7 +23787,7 @@ const _hoisted_2$g = {
|
|
|
23615
23787
|
class: "scroll-container"
|
|
23616
23788
|
};
|
|
23617
23789
|
const _hoisted_3$d = { class: "turns-container" };
|
|
23618
|
-
const _hoisted_4$
|
|
23790
|
+
const _hoisted_4$8 = {
|
|
23619
23791
|
key: 0,
|
|
23620
23792
|
class: "history-loading",
|
|
23621
23793
|
role: "status"
|
|
@@ -23728,7 +23900,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
23728
23900
|
return openBlock(), createElementBlock("article", _hoisted_1$j, [
|
|
23729
23901
|
createBaseVNode("div", _hoisted_2$g, [
|
|
23730
23902
|
createBaseVNode("div", _hoisted_3$d, [
|
|
23731
|
-
isLoadingHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23903
|
+
isLoadingHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$8, [..._cache[2] || (_cache[2] = [
|
|
23732
23904
|
createBaseVNode("progress", null, null, -1)
|
|
23733
23905
|
])])) : createCommentVNode("", true),
|
|
23734
23906
|
!hasMoreHistory.value && __props.turns.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5$7, toDisplayString(unref(t2)("transcription.historyStart")), 1)) : createCommentVNode("", true),
|
|
@@ -23790,7 +23962,7 @@ const TranscriptionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["styles",
|
|
|
23790
23962
|
const _hoisted_1$i = { class: "verbatim-panel" };
|
|
23791
23963
|
const _hoisted_2$f = { class: "verbatim-panel__content" };
|
|
23792
23964
|
const _hoisted_3$c = { class: "verbatim-panel__header" };
|
|
23793
|
-
const _hoisted_4$
|
|
23965
|
+
const _hoisted_4$7 = { class: "verbatim-panel__doc-title" };
|
|
23794
23966
|
const _hoisted_5$6 = { class: "verbatim-panel__turns" };
|
|
23795
23967
|
const _hoisted_6$6 = { class: "verbatim-panel__turn-header" };
|
|
23796
23968
|
const _hoisted_7$3 = { class: "verbatim-panel__speaker-name" };
|
|
@@ -23860,7 +24032,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
23860
24032
|
default: withCtx(() => [
|
|
23861
24033
|
createBaseVNode("article", _hoisted_2$f, [
|
|
23862
24034
|
createBaseVNode("header", _hoisted_3$c, [
|
|
23863
|
-
createBaseVNode("h1", _hoisted_4$
|
|
24035
|
+
createBaseVNode("h1", _hoisted_4$7, toDisplayString(title.value), 1)
|
|
23864
24036
|
]),
|
|
23865
24037
|
createBaseVNode("ul", _hoisted_5$6, [
|
|
23866
24038
|
(openBlock(true), createElementBlock(Fragment, null, renderList(turns.value, (turn) => {
|
|
@@ -23897,8 +24069,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
23897
24069
|
};
|
|
23898
24070
|
}
|
|
23899
24071
|
});
|
|
23900
|
-
const _style_0$i = "\n.verbatim-panel[data-v-
|
|
23901
|
-
const VerbatimPanel = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["styles", [_style_0$i]], ["__scopeId", "data-v-
|
|
24072
|
+
const _style_0$i = "\n.verbatim-panel[data-v-7a077f5a] {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.verbatim-panel__content[data-v-7a077f5a] {\n padding: 4rem clamp(1.5rem, 6rem, 8%);\n}\n.verbatim-panel__header[data-v-7a077f5a] {\n margin-bottom: var(--spacing-lg);\n padding-bottom: var(--spacing-md);\n border-bottom: 1px solid var(--color-border);\n}\n.verbatim-panel__doc-title[data-v-7a077f5a] {\n font-size: var(--font-size-xl);\n font-weight: 700;\n margin: 0;\n color: var(--color-text-primary);\n}\n.verbatim-panel__turns[data-v-7a077f5a] {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-lg);\n}\n.verbatim-panel__turn[data-v-7a077f5a] {\n display: block;\n}\n.verbatim-panel__turn-header[data-v-7a077f5a] {\n margin: 0 0 var(--spacing-xs);\n font-size: var(--font-size-base);\n line-height: 1.4;\n}\n.verbatim-panel__speaker-name[data-v-7a077f5a] {\n font-weight: 700;\n color: var(--color-text-primary);\n}\n.verbatim-panel__meta[data-v-7a077f5a] {\n color: var(--color-text-muted);\n font-weight: 400;\n}\n.verbatim-panel__sep[data-v-7a077f5a] {\n margin: 0 0.35em;\n}\n.verbatim-panel__text[data-v-7a077f5a] {\n margin: 0;\n font-size: var(--font-size-base);\n line-height: 1.6;\n color: var(--color-text-primary);\n}\n\n";
|
|
24073
|
+
const VerbatimPanel = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["styles", [_style_0$i]], ["__scopeId", "data-v-7a077f5a"]]);
|
|
23902
24074
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
23903
24075
|
__name: "ChannelSelector",
|
|
23904
24076
|
props: {
|
|
@@ -24075,7 +24247,7 @@ const _hoisted_2$d = {
|
|
|
24075
24247
|
class: "sidebar-section sidebar-section--selector"
|
|
24076
24248
|
};
|
|
24077
24249
|
const _hoisted_3$a = { class: "sidebar-title" };
|
|
24078
|
-
const _hoisted_4$
|
|
24250
|
+
const _hoisted_4$6 = {
|
|
24079
24251
|
key: 1,
|
|
24080
24252
|
class: "sidebar-section sidebar-section--selector"
|
|
24081
24253
|
};
|
|
@@ -24216,7 +24388,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24216
24388
|
"onUpdate:selectedChannelId": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:selectedChannelId", $event))
|
|
24217
24389
|
}, null, 8, ["channels", "selected-channel-id"])
|
|
24218
24390
|
])) : createCommentVNode("", true),
|
|
24219
|
-
__props.translations.length > 1 ? (openBlock(), createElementBlock("section", _hoisted_4$
|
|
24391
|
+
__props.translations.length > 1 ? (openBlock(), createElementBlock("section", _hoisted_4$6, [
|
|
24220
24392
|
createBaseVNode("h2", _hoisted_5$5, toDisplayString(unref(t2)("sidebar.translation")), 1),
|
|
24221
24393
|
createVNode(_sfc_main$j, {
|
|
24222
24394
|
translations: __props.translations,
|
|
@@ -24486,23 +24658,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24486
24658
|
});
|
|
24487
24659
|
const _style_0$f = "\n.selection-bar[data-v-9bad1410] {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--spacing-xs) var(--spacing-lg);\n /* No backdrop-filter: it forces a WebRender backdrop render target sized to\n the content behind, a heavy GPU-memory cost on long transcripts. The\n semi-opaque glass background stays legible without the blur. */\n background: var(--glass-background);\n border-bottom: 1px solid var(--color-border);\n animation: bar-slide-down-9bad1410 var(--transition-duration) ease;\n}\n.selection-count[data-v-9bad1410] {\n font-size: var(--font-size-sm);\n font-weight: 600;\n color: var(--color-primary);\n}\n.selection-actions[data-v-9bad1410] {\n display: flex;\n gap: var(--spacing-xs);\n}\n@keyframes bar-slide-down-9bad1410 {\nfrom {\n opacity: 0;\n translate: 0 -4px;\n}\nto {\n opacity: 1;\n translate: 0 0;\n}\n}\n@media (prefers-reduced-motion: reduce) {\n.selection-bar[data-v-9bad1410] {\n animation: none;\n}\n}\n@media (max-width: 767px) {\n.selection-bar[data-v-9bad1410] {\n padding: var(--spacing-xs) var(--spacing-md);\n flex-wrap: wrap;\n gap: var(--spacing-xs);\n}\n}\n";
|
|
24488
24660
|
const SelectionActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["styles", [_style_0$f]], ["__scopeId", "data-v-9bad1410"]]);
|
|
24489
|
-
const MOBILE_BREAKPOINT = "(max-width: 767px)";
|
|
24490
|
-
function useIsMobile() {
|
|
24491
|
-
const isMobile = /* @__PURE__ */ ref(false);
|
|
24492
|
-
let mql = null;
|
|
24493
|
-
function onChange(e3) {
|
|
24494
|
-
isMobile.value = e3.matches;
|
|
24495
|
-
}
|
|
24496
|
-
onMounted(() => {
|
|
24497
|
-
mql = window.matchMedia(MOBILE_BREAKPOINT);
|
|
24498
|
-
isMobile.value = mql.matches;
|
|
24499
|
-
mql.addEventListener("change", onChange);
|
|
24500
|
-
});
|
|
24501
|
-
onBeforeUnmount(() => {
|
|
24502
|
-
mql?.removeEventListener("change", onChange);
|
|
24503
|
-
});
|
|
24504
|
-
return { isMobile };
|
|
24505
|
-
}
|
|
24506
24661
|
const _hoisted_1$e = { class: "editor-layout" };
|
|
24507
24662
|
const _hoisted_2$b = {
|
|
24508
24663
|
key: 6,
|
|
@@ -24550,6 +24705,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24550
24705
|
);
|
|
24551
24706
|
const speakerList = computed(() => Array.from(speakers.values()));
|
|
24552
24707
|
const showTranscription = computed(() => activeTab.value === TRANSCRIPTION_TAB);
|
|
24708
|
+
watch(isMobile, (mobile) => {
|
|
24709
|
+
if (mobile && isSplit.value) isSplit.value = false;
|
|
24710
|
+
});
|
|
24553
24711
|
watch(activeTab, (id) => {
|
|
24554
24712
|
if (!core.llmServices) return;
|
|
24555
24713
|
if (id === TRANSCRIPTION_TAB || id === VERBATIM_TAB) {
|
|
@@ -24698,8 +24856,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24698
24856
|
};
|
|
24699
24857
|
}
|
|
24700
24858
|
});
|
|
24701
|
-
const _style_0$e = "\n.editor-layout[data-v-
|
|
24702
|
-
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["styles", [_style_0$e]], ["__scopeId", "data-v-
|
|
24859
|
+
const _style_0$e = "\n.editor-layout[data-v-972b2fff] {\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n background-color: var(--color-background);\n}\n.editor-body[data-v-972b2fff] {\n display: grid;\n grid-template-columns: 1fr var(--sidebar-width);\n flex: 1;\n min-height: 0;\n}\n\n/* Split mode: two panels already share the body between them, no room (or\n need) for the speaker sidebar too — see Layout's panels/isSplit state. */\n.editor-body--no-sidebar[data-v-972b2fff] {\n grid-template-columns: 1fr;\n}\n.editor-body__panels[data-v-972b2fff] {\n display: flex;\n min-width: 0;\n min-height: 0;\n}\n.editor-body__panels[data-v-972b2fff] > * {\n flex: 1;\n min-width: 0;\n}\n.editor-body__panels--split[data-v-972b2fff] > * + * {\n border-left: 1px solid var(--color-border);\n}\n.mobile-selectors[data-v-972b2fff] {\n display: flex;\n gap: var(--spacing-sm);\n padding: var(--spacing-sm) var(--spacing-md);\n border-top: 1px solid var(--color-border);\n background-color: var(--color-surface);\n flex-shrink: 0;\n box-shadow: var(--shadow-md);\n align-items: end;\n}\n.mobile-selectors[data-v-972b2fff] > * {\n flex: 1;\n min-width: 0;\n}\n@media (max-width: 767px) {\n.editor-body[data-v-972b2fff] {\n grid-template-columns: 1fr;\n}\n}\n";
|
|
24860
|
+
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["styles", [_style_0$e]], ["__scopeId", "data-v-972b2fff"]]);
|
|
24703
24861
|
const _hoisted_1$d = {
|
|
24704
24862
|
class: "editor-loading",
|
|
24705
24863
|
role: "status",
|
|
@@ -25317,7 +25475,7 @@ function createLivePlugin(options = {}) {
|
|
|
25317
25475
|
}
|
|
25318
25476
|
function isTranslationTrackFor(active, language) {
|
|
25319
25477
|
if (active.isSource) return false;
|
|
25320
|
-
return active.languages.some((
|
|
25478
|
+
return active.languages.some((l4) => isSameLanguage(l4, language));
|
|
25321
25479
|
}
|
|
25322
25480
|
function onPartial(event, channelId) {
|
|
25323
25481
|
if (core.activeChannelId.value !== channelId) return;
|
|
@@ -25522,7 +25680,7 @@ function createLivePlugin(options = {}) {
|
|
|
25522
25680
|
const _hoisted_1$a = { class: "player-controls" };
|
|
25523
25681
|
const _hoisted_2$8 = { class: "controls-left" };
|
|
25524
25682
|
const _hoisted_3$7 = { class: "controls-time" };
|
|
25525
|
-
const _hoisted_4$
|
|
25683
|
+
const _hoisted_4$5 = { class: "time-display" };
|
|
25526
25684
|
const _hoisted_5$4 = { class: "time-display" };
|
|
25527
25685
|
const _hoisted_6$4 = { class: "controls-right" };
|
|
25528
25686
|
const _hoisted_7$1 = ["value", "aria-label", "disabled"];
|
|
@@ -25596,7 +25754,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25596
25754
|
}, 8, ["aria-label", "disabled"])
|
|
25597
25755
|
]),
|
|
25598
25756
|
createBaseVNode("div", _hoisted_3$7, [
|
|
25599
|
-
createBaseVNode("time", _hoisted_4$
|
|
25757
|
+
createBaseVNode("time", _hoisted_4$5, toDisplayString(__props.currentTime), 1),
|
|
25600
25758
|
_cache[7] || (_cache[7] = createBaseVNode("span", { class: "time-separator" }, "/", -1)),
|
|
25601
25759
|
createBaseVNode("time", _hoisted_5$4, toDisplayString(__props.duration), 1)
|
|
25602
25760
|
]),
|
|
@@ -25662,25 +25820,25 @@ function t$1(t2, e3, i2, n2) {
|
|
|
25662
25820
|
return new (i2 || (i2 = Promise))((function(s2, r2) {
|
|
25663
25821
|
function o2(t3) {
|
|
25664
25822
|
try {
|
|
25665
|
-
|
|
25823
|
+
l4(n2.next(t3));
|
|
25666
25824
|
} catch (t4) {
|
|
25667
25825
|
r2(t4);
|
|
25668
25826
|
}
|
|
25669
25827
|
}
|
|
25670
25828
|
function a2(t3) {
|
|
25671
25829
|
try {
|
|
25672
|
-
|
|
25830
|
+
l4(n2.throw(t3));
|
|
25673
25831
|
} catch (t4) {
|
|
25674
25832
|
r2(t4);
|
|
25675
25833
|
}
|
|
25676
25834
|
}
|
|
25677
|
-
function
|
|
25835
|
+
function l4(t3) {
|
|
25678
25836
|
var e4;
|
|
25679
25837
|
t3.done ? s2(t3.value) : (e4 = t3.value, e4 instanceof i2 ? e4 : new i2((function(t4) {
|
|
25680
25838
|
t4(e4);
|
|
25681
25839
|
}))).then(o2, a2);
|
|
25682
25840
|
}
|
|
25683
|
-
|
|
25841
|
+
l4((n2 = n2.apply(t2, e3 || [])).next());
|
|
25684
25842
|
}));
|
|
25685
25843
|
}
|
|
25686
25844
|
"function" == typeof SuppressedError && SuppressedError;
|
|
@@ -25956,7 +26114,7 @@ let d$1 = class d extends e$1 {
|
|
|
25956
26114
|
return this.media.setSinkId(t2);
|
|
25957
26115
|
}
|
|
25958
26116
|
};
|
|
25959
|
-
function
|
|
26117
|
+
function u({ maxTop: t2, maxBottom: e3, halfHeight: i2, vScale: n2, barMinHeight: s2 = 0, barAlign: r2 }) {
|
|
25960
26118
|
let o2 = Math.round(t2 * i2 * n2);
|
|
25961
26119
|
let a2 = o2 + Math.round(e3 * i2 * n2) || 1;
|
|
25962
26120
|
return a2 < s2 && (a2 = s2, r2 || (o2 = a2 / 2)), { topHeight: o2, totalHeight: a2 };
|
|
@@ -26048,17 +26206,17 @@ class C extends e$1 {
|
|
|
26048
26206
|
if (e4.button !== n2) return;
|
|
26049
26207
|
if (o2.has(e4.pointerId)) return;
|
|
26050
26208
|
if (o2.set(e4.pointerId, e4), o2.size > 1) return;
|
|
26051
|
-
const
|
|
26052
|
-
let c3 = e4.clientX, d3 = e4.clientY,
|
|
26209
|
+
const l4 = e4.pointerId;
|
|
26210
|
+
let c3 = e4.clientX, d3 = e4.clientY, u2 = false;
|
|
26053
26211
|
const p2 = Date.now(), m2 = t3.getBoundingClientRect(), { left: g2, top: f2 } = m2, v2 = (t4) => {
|
|
26054
|
-
if (t4.pointerId !==
|
|
26212
|
+
if (t4.pointerId !== l4) return;
|
|
26055
26213
|
if (t4.defaultPrevented || o2.size > 1) return;
|
|
26056
26214
|
if (a2 && Date.now() - p2 < s2) return;
|
|
26057
26215
|
const e5 = t4.clientX, n3 = t4.clientY, h3 = e5 - c3, m3 = n3 - d3;
|
|
26058
|
-
(
|
|
26216
|
+
(u2 || Math.abs(h3) > i2 || Math.abs(m3) > i2) && (t4.preventDefault(), t4.stopPropagation(), u2 || (r2.set({ type: "start", x: c3 - g2, y: d3 - f2 }), u2 = true), r2.set({ type: "move", x: e5 - g2, y: n3 - f2, deltaX: h3, deltaY: m3 }), c3 = e5, d3 = n3);
|
|
26059
26217
|
}, b2 = (t4) => {
|
|
26060
26218
|
if (o2.delete(t4.pointerId)) {
|
|
26061
|
-
if (t4.pointerId ===
|
|
26219
|
+
if (t4.pointerId === l4 && u2) {
|
|
26062
26220
|
const e5 = t4.clientX, i3 = t4.clientY;
|
|
26063
26221
|
r2.set({ type: "end", x: e5 - g2, y: i3 - f2 });
|
|
26064
26222
|
}
|
|
@@ -26067,9 +26225,9 @@ class C extends e$1 {
|
|
|
26067
26225
|
}, y3 = (t4) => {
|
|
26068
26226
|
t4.relatedTarget && t4.relatedTarget !== document.documentElement || b2(t4);
|
|
26069
26227
|
}, C2 = (t4) => {
|
|
26070
|
-
|
|
26228
|
+
u2 && (t4.stopPropagation(), t4.preventDefault());
|
|
26071
26229
|
}, S3 = (t4) => {
|
|
26072
|
-
t4.defaultPrevented || o2.size > 1 ||
|
|
26230
|
+
t4.defaultPrevented || o2.size > 1 || u2 && t4.preventDefault();
|
|
26073
26231
|
};
|
|
26074
26232
|
document.addEventListener("pointermove", v2), document.addEventListener("pointerup", b2), document.addEventListener("pointerout", y3), document.addEventListener("pointercancel", y3), document.addEventListener("touchmove", S3, { passive: false }), document.addEventListener("click", C2, { capture: true }), h2 = () => {
|
|
26075
26233
|
document.removeEventListener("pointermove", v2), document.removeEventListener("pointerup", b2), document.removeEventListener("pointerout", y3), document.removeEventListener("pointercancel", y3), document.removeEventListener("touchmove", S3), setTimeout((() => {
|
|
@@ -26242,16 +26400,16 @@ class C extends e$1 {
|
|
|
26242
26400
|
var t2;
|
|
26243
26401
|
}
|
|
26244
26402
|
renderBarWaveform(t2, e3, i2, n2) {
|
|
26245
|
-
const { width: s2, height: r2 } = i2.canvas, { halfHeight: o2, barWidth: a2, barRadius:
|
|
26246
|
-
const r3 = e4 / 2, o3 = n3.barWidth ? n3.barWidth * s3 : 1, a3 = n3.barGap ? n3.barGap * s3 : n3.barWidth ? o3 / 2 : 0,
|
|
26247
|
-
return { halfHeight: r3, barWidth: o3, barGap: a3, barRadius: n3.barRadius || 0, barMinHeight: n3.barMinHeight ? n3.barMinHeight * s3 : 0, barIndexScale: i3 > 0 ? t3 /
|
|
26248
|
-
})({ width: s2, height: r2, length: (t2[0] || []).length, options: e3, pixelRatio: this.getPixelRatio() }), m2 = (function({ channelData: t3, barIndexScale: e4, barSpacing: i3, barWidth: n3, halfHeight: s3, vScale: r3, canvasHeight: o3, barAlign: a3, barMinHeight:
|
|
26403
|
+
const { width: s2, height: r2 } = i2.canvas, { halfHeight: o2, barWidth: a2, barRadius: l4, barIndexScale: h2, barSpacing: c2, barMinHeight: d3 } = (function({ width: t3, height: e4, length: i3, options: n3, pixelRatio: s3 }) {
|
|
26404
|
+
const r3 = e4 / 2, o3 = n3.barWidth ? n3.barWidth * s3 : 1, a3 = n3.barGap ? n3.barGap * s3 : n3.barWidth ? o3 / 2 : 0, l5 = o3 + a3 || 1;
|
|
26405
|
+
return { halfHeight: r3, barWidth: o3, barGap: a3, barRadius: n3.barRadius || 0, barMinHeight: n3.barMinHeight ? n3.barMinHeight * s3 : 0, barIndexScale: i3 > 0 ? t3 / l5 / i3 : 0, barSpacing: l5 };
|
|
26406
|
+
})({ width: s2, height: r2, length: (t2[0] || []).length, options: e3, pixelRatio: this.getPixelRatio() }), m2 = (function({ channelData: t3, barIndexScale: e4, barSpacing: i3, barWidth: n3, halfHeight: s3, vScale: r3, canvasHeight: o3, barAlign: a3, barMinHeight: l5 }) {
|
|
26249
26407
|
const h3 = t3[0] || [], c3 = t3[1] || h3, d4 = h3.length, m3 = [];
|
|
26250
26408
|
let g2 = 0, f2 = 0, v2 = 0;
|
|
26251
26409
|
for (let t4 = 0; t4 <= d4; t4++) {
|
|
26252
26410
|
const d5 = Math.round(t4 * e4);
|
|
26253
26411
|
if (d5 > g2) {
|
|
26254
|
-
const { topHeight: t5, totalHeight: e5 } =
|
|
26412
|
+
const { topHeight: t5, totalHeight: e5 } = u({ maxTop: f2, maxBottom: v2, halfHeight: s3, vScale: r3, barMinHeight: l5, barAlign: a3 }), h4 = p({ barAlign: a3, halfHeight: s3, topHeight: t5, totalHeight: e5, canvasHeight: o3 });
|
|
26255
26413
|
m3.push({ x: g2 * i3, y: h4, width: n3, height: e5 }), g2 = d5, f2 = 0, v2 = 0;
|
|
26256
26414
|
}
|
|
26257
26415
|
const b2 = Math.abs(h3[t4] || 0), y3 = Math.abs(c3[t4] || 0);
|
|
@@ -26260,19 +26418,19 @@ class C extends e$1 {
|
|
|
26260
26418
|
return m3;
|
|
26261
26419
|
})({ channelData: t2, barIndexScale: h2, barSpacing: c2, barWidth: a2, halfHeight: o2, vScale: n2, canvasHeight: r2, barAlign: e3.barAlign, barMinHeight: d3 });
|
|
26262
26420
|
i2.beginPath();
|
|
26263
|
-
for (const t3 of m2)
|
|
26421
|
+
for (const t3 of m2) l4 && "roundRect" in i2 ? i2.roundRect(t3.x, t3.y, t3.width, t3.height, l4) : i2.rect(t3.x, t3.y, t3.width, t3.height);
|
|
26264
26422
|
i2.fill(), i2.closePath();
|
|
26265
26423
|
}
|
|
26266
26424
|
renderLineWaveform(t2, e3, i2, n2) {
|
|
26267
26425
|
const { width: s2, height: r2 } = i2.canvas, o2 = (function({ channelData: t3, width: e4, height: i3, vScale: n3 }) {
|
|
26268
26426
|
const s3 = i3 / 2, r3 = t3[0] || [];
|
|
26269
26427
|
return [r3, t3[1] || r3].map(((t4, i4) => {
|
|
26270
|
-
const r4 = t4.length, o3 = r4 ? e4 / r4 : 0, a2 = s3,
|
|
26428
|
+
const r4 = t4.length, o3 = r4 ? e4 / r4 : 0, a2 = s3, l4 = 0 === i4 ? -1 : 1, h2 = [{ x: 0, y: a2 }];
|
|
26271
26429
|
let c2 = 0, d3 = 0;
|
|
26272
26430
|
for (let e5 = 0; e5 <= r4; e5++) {
|
|
26273
26431
|
const i5 = Math.round(e5 * o3);
|
|
26274
26432
|
if (i5 > c2) {
|
|
26275
|
-
const t5 = a2 + (Math.round(d3 * s3 * n3) || 1) *
|
|
26433
|
+
const t5 = a2 + (Math.round(d3 * s3 * n3) || 1) * l4;
|
|
26276
26434
|
h2.push({ x: c2, y: t5 }), c2 = i5, d3 = 0;
|
|
26277
26435
|
}
|
|
26278
26436
|
const r5 = Math.abs(t4[e5] || 0);
|
|
@@ -26309,43 +26467,43 @@ class C extends e$1 {
|
|
|
26309
26467
|
g(e3) ? this.renderBarWaveform(t2, e3, i2, n2) : this.renderLineWaveform(t2, e3, i2, n2);
|
|
26310
26468
|
}
|
|
26311
26469
|
renderSingleCanvas(t2, e3, i2, n2, s2, r2, o2) {
|
|
26312
|
-
const a2 = this.getPixelRatio(),
|
|
26313
|
-
|
|
26314
|
-
const h2 =
|
|
26315
|
-
if (e3.renderFunction ? (h2.fillStyle = this.convertColorValues(e3.waveColor, h2), e3.renderFunction(t2, h2)) : this.renderWaveform(t2, e3, h2),
|
|
26316
|
-
const t3 =
|
|
26317
|
-
i3.drawImage(
|
|
26470
|
+
const a2 = this.getPixelRatio(), l4 = document.createElement("canvas");
|
|
26471
|
+
l4.width = Math.round(i2 * a2), l4.height = Math.round(n2 * a2), l4.style.width = `${i2}px`, l4.style.height = `${n2}px`, l4.style.left = `${Math.round(s2)}px`, r2.appendChild(l4);
|
|
26472
|
+
const h2 = l4.getContext("2d");
|
|
26473
|
+
if (e3.renderFunction ? (h2.fillStyle = this.convertColorValues(e3.waveColor, h2), e3.renderFunction(t2, h2)) : this.renderWaveform(t2, e3, h2), l4.width > 0 && l4.height > 0) {
|
|
26474
|
+
const t3 = l4.cloneNode(), i3 = t3.getContext("2d");
|
|
26475
|
+
i3.drawImage(l4, 0, 0), i3.globalCompositeOperation = "source-in", i3.fillStyle = this.convertColorValues(e3.progressColor, i3), i3.fillRect(0, 0, l4.width, l4.height), o2.appendChild(t3);
|
|
26318
26476
|
}
|
|
26319
26477
|
}
|
|
26320
26478
|
renderMultiCanvas(t2, e3, i2, n2, s2, r2) {
|
|
26321
|
-
const o2 = this.getPixelRatio(), { clientWidth: a2 } = this.scrollContainer,
|
|
26479
|
+
const o2 = this.getPixelRatio(), { clientWidth: a2 } = this.scrollContainer, l4 = i2 / o2, h2 = (function({ clientWidth: t3, totalWidth: e4, options: i3 }) {
|
|
26322
26480
|
return f(Math.min(8e3, t3, e4), i3);
|
|
26323
|
-
})({ clientWidth: a2, totalWidth:
|
|
26481
|
+
})({ clientWidth: a2, totalWidth: l4, options: e3 });
|
|
26324
26482
|
let c2 = {};
|
|
26325
26483
|
if (0 === h2) return;
|
|
26326
26484
|
const d3 = (i3) => {
|
|
26327
|
-
if (i3 < 0 || i3 >=
|
|
26485
|
+
if (i3 < 0 || i3 >= u2) return;
|
|
26328
26486
|
if (c2[i3]) return;
|
|
26329
26487
|
c2[i3] = true;
|
|
26330
26488
|
const o3 = i3 * h2;
|
|
26331
|
-
let a3 = Math.min(
|
|
26489
|
+
let a3 = Math.min(l4 - o3, h2);
|
|
26332
26490
|
if (a3 = f(a3, e3), a3 <= 0) return;
|
|
26333
26491
|
const d4 = (function({ channelData: t3, offset: e4, clampedWidth: i4, totalWidth: n3 }) {
|
|
26334
26492
|
return t3.map(((t4) => {
|
|
26335
26493
|
const s3 = Math.floor(e4 / n3 * t4.length), r3 = Math.floor((e4 + i4) / n3 * t4.length);
|
|
26336
26494
|
return t4.slice(s3, r3);
|
|
26337
26495
|
}));
|
|
26338
|
-
})({ channelData: t2, offset: o3, clampedWidth: a3, totalWidth:
|
|
26496
|
+
})({ channelData: t2, offset: o3, clampedWidth: a3, totalWidth: l4 });
|
|
26339
26497
|
this.renderSingleCanvas(d4, e3, a3, n2, o3, s2, r2);
|
|
26340
|
-
},
|
|
26498
|
+
}, u2 = Math.ceil(l4 / h2);
|
|
26341
26499
|
if (!this.isScrollable) {
|
|
26342
|
-
for (let t3 = 0; t3 <
|
|
26500
|
+
for (let t3 = 0; t3 < u2; t3++) d3(t3);
|
|
26343
26501
|
return;
|
|
26344
26502
|
}
|
|
26345
|
-
if (v({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth:
|
|
26503
|
+
if (v({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth: l4, numCanvases: u2 }).forEach(((t3) => d3(t3))), u2 > 1) {
|
|
26346
26504
|
const t3 = this.on("scroll", (() => {
|
|
26347
26505
|
const { scrollLeft: t4 } = this.scrollContainer;
|
|
26348
|
-
Object.keys(c2).length > 10 && (s2.innerHTML = "", r2.innerHTML = "", c2 = {}), v({ scrollLeft: t4, totalWidth:
|
|
26506
|
+
Object.keys(c2).length > 10 && (s2.innerHTML = "", r2.innerHTML = "", c2 = {}), v({ scrollLeft: t4, totalWidth: l4, numCanvases: u2 }).forEach(((t5) => d3(t5)));
|
|
26349
26507
|
}));
|
|
26350
26508
|
this.unsubscribeOnScroll.push(t3);
|
|
26351
26509
|
}
|
|
@@ -26362,8 +26520,8 @@ class C extends e$1 {
|
|
|
26362
26520
|
})(e3, ["overlay"]);
|
|
26363
26521
|
const o2 = document.createElement("div"), a2 = this.getHeight(r2.height, r2.splitChannels);
|
|
26364
26522
|
o2.style.height = `${a2}px`, s2 && n2 > 0 && (o2.style.marginTop = `-${a2}px`), this.canvasWrapper.style.minHeight = `${a2}px`, this.canvasWrapper.appendChild(o2);
|
|
26365
|
-
const
|
|
26366
|
-
this.progressWrapper.appendChild(
|
|
26523
|
+
const l4 = o2.cloneNode();
|
|
26524
|
+
this.progressWrapper.appendChild(l4), this.renderMultiCanvas(t2, r2, i2, a2, o2, l4);
|
|
26367
26525
|
}
|
|
26368
26526
|
render(e3) {
|
|
26369
26527
|
return t$1(this, void 0, void 0, (function* () {
|
|
@@ -26401,12 +26559,12 @@ class C extends e$1 {
|
|
|
26401
26559
|
}
|
|
26402
26560
|
scrollIntoView(t2, e3 = false) {
|
|
26403
26561
|
var i2;
|
|
26404
|
-
const { scrollLeft: n2, scrollWidth: s2, clientWidth: r2 } = this.scrollContainer, o2 = t2 * s2, a2 = n2,
|
|
26562
|
+
const { scrollLeft: n2, scrollWidth: s2, clientWidth: r2 } = this.scrollContainer, o2 = t2 * s2, a2 = n2, l4 = n2 + r2, h2 = r2 / 2;
|
|
26405
26563
|
if (this.isDragging) {
|
|
26406
26564
|
const t3 = 30;
|
|
26407
|
-
o2 + t3 >
|
|
26565
|
+
o2 + t3 > l4 ? this.scrollContainer.scrollLeft += t3 : o2 - t3 < a2 && (this.scrollContainer.scrollLeft -= t3);
|
|
26408
26566
|
} else {
|
|
26409
|
-
(o2 < a2 || o2 >
|
|
26567
|
+
(o2 < a2 || o2 > l4) && (this.scrollContainer.scrollLeft = o2 - (this.options.autoCenter ? h2 : 0));
|
|
26410
26568
|
const t3 = o2 - n2 - h2;
|
|
26411
26569
|
if (e3 && this.options.autoCenter && t3 > 0) {
|
|
26412
26570
|
const e4 = null === (i2 = this.audioData) || void 0 === i2 ? void 0 : i2.duration;
|
|
@@ -26623,8 +26781,8 @@ class w extends d$1 {
|
|
|
26623
26781
|
super({ media: e3, mediaControls: t2.mediaControls, autoplay: t2.autoplay, playbackRate: t2.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = false, this._loadVersion = 0, this.options = Object.assign({}, P2, t2);
|
|
26624
26782
|
const { state: i2, actions: n2 } = (function(t3) {
|
|
26625
26783
|
var e4, i3, n3, s3, r3, o2;
|
|
26626
|
-
const a2 = null !== (e4 = null == t3 ? void 0 : t3.currentTime) && void 0 !== e4 ? e4 : l$1(0), c2 = null !== (i3 = null == t3 ? void 0 : t3.duration) && void 0 !== i3 ? i3 : l$1(0), d3 = null !== (n3 = null == t3 ? void 0 : t3.isPlaying) && void 0 !== n3 ? n3 : l$1(false),
|
|
26627
|
-
return { state: { currentTime: a2, duration: c2, isPlaying: d3, isPaused: C2, isSeeking:
|
|
26784
|
+
const a2 = null !== (e4 = null == t3 ? void 0 : t3.currentTime) && void 0 !== e4 ? e4 : l$1(0), c2 = null !== (i3 = null == t3 ? void 0 : t3.duration) && void 0 !== i3 ? i3 : l$1(0), d3 = null !== (n3 = null == t3 ? void 0 : t3.isPlaying) && void 0 !== n3 ? n3 : l$1(false), u2 = null !== (s3 = null == t3 ? void 0 : t3.isSeeking) && void 0 !== s3 ? s3 : l$1(false), p2 = null !== (r3 = null == t3 ? void 0 : t3.volume) && void 0 !== r3 ? r3 : l$1(1), m2 = null !== (o2 = null == t3 ? void 0 : t3.playbackRate) && void 0 !== o2 ? o2 : l$1(1), g2 = l$1(null), f2 = l$1(null), v2 = l$1(""), b2 = l$1(0), y3 = l$1(0), C2 = h$1((() => !d3.value), [d3]), S3 = h$1((() => null !== g2.value), [g2]), E2 = h$1((() => S3.value && c2.value > 0), [S3, c2]), P3 = h$1((() => a2.value), [a2]), w2 = h$1((() => c2.value > 0 ? a2.value / c2.value : 0), [a2, c2]);
|
|
26785
|
+
return { state: { currentTime: a2, duration: c2, isPlaying: d3, isPaused: C2, isSeeking: u2, volume: p2, playbackRate: m2, audioBuffer: g2, peaks: f2, url: v2, zoom: b2, scrollPosition: y3, canPlay: S3, isReady: E2, progress: P3, progressPercent: w2 }, actions: { setCurrentTime: (t4) => {
|
|
26628
26786
|
const e5 = Math.max(0, Math.min(c2.value || 1 / 0, t4));
|
|
26629
26787
|
a2.set(e5);
|
|
26630
26788
|
}, setDuration: (t4) => {
|
|
@@ -26632,7 +26790,7 @@ class w extends d$1 {
|
|
|
26632
26790
|
}, setPlaying: (t4) => {
|
|
26633
26791
|
d3.set(t4);
|
|
26634
26792
|
}, setSeeking: (t4) => {
|
|
26635
|
-
|
|
26793
|
+
u2.set(t4);
|
|
26636
26794
|
}, setVolume: (t4) => {
|
|
26637
26795
|
const e5 = Math.max(0, Math.min(1, t4));
|
|
26638
26796
|
p2.set(e5);
|
|
@@ -26787,16 +26945,16 @@ class w extends d$1 {
|
|
|
26787
26945
|
}
|
|
26788
26946
|
if (this._isDestroyed || o2 !== this._loadVersion) return;
|
|
26789
26947
|
this.setSrc(e3, n2);
|
|
26790
|
-
const
|
|
26948
|
+
const l4 = yield new Promise(((t3) => {
|
|
26791
26949
|
const e4 = r2 || this.getDuration();
|
|
26792
26950
|
e4 ? t3(e4) : this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata", (() => t3(this.getDuration())), { once: true }));
|
|
26793
26951
|
}));
|
|
26794
26952
|
if (!this._isDestroyed && o2 === this._loadVersion) {
|
|
26795
26953
|
if (!e3 && !n2) {
|
|
26796
26954
|
const t3 = this.getMediaElement();
|
|
26797
|
-
t3 instanceof E && (t3.duration =
|
|
26955
|
+
t3 instanceof E && (t3.duration = l4);
|
|
26798
26956
|
}
|
|
26799
|
-
if (s2) this.decodedData = i$1.createBuffer(s2,
|
|
26957
|
+
if (s2) this.decodedData = i$1.createBuffer(s2, l4 || 0);
|
|
26800
26958
|
else if (n2) {
|
|
26801
26959
|
const t3 = yield n2.arrayBuffer();
|
|
26802
26960
|
if (this._isDestroyed || o2 !== this._loadVersion) return;
|
|
@@ -26989,7 +27147,7 @@ function o(t2, e3) {
|
|
|
26989
27147
|
t2.removeEventListener(e3, n2);
|
|
26990
27148
|
}, i2;
|
|
26991
27149
|
}
|
|
26992
|
-
function
|
|
27150
|
+
function l3(t2) {
|
|
26993
27151
|
const e3 = t2._cleanup;
|
|
26994
27152
|
"function" == typeof e3 && e3();
|
|
26995
27153
|
}
|
|
@@ -27002,16 +27160,16 @@ function h(t2, e3 = {}) {
|
|
|
27002
27160
|
if (h2.has(e4.pointerId)) return;
|
|
27003
27161
|
if (h2.set(e4.pointerId, e4), h2.size > 1) return;
|
|
27004
27162
|
const s2 = e4.pointerId;
|
|
27005
|
-
let
|
|
27163
|
+
let l4 = e4.clientX, c3 = e4.clientY, u2 = false;
|
|
27006
27164
|
const p2 = Date.now(), v2 = t2.getBoundingClientRect(), { left: g2, top: m2 } = v2, f2 = (t3) => {
|
|
27007
27165
|
if (t3.pointerId !== s2) return;
|
|
27008
27166
|
if (t3.defaultPrevented || h2.size > 1) return;
|
|
27009
27167
|
if (a2 && Date.now() - p2 < r2) return;
|
|
27010
|
-
const e5 = t3.clientX, n3 = t3.clientY, d4 = e5 -
|
|
27011
|
-
(
|
|
27168
|
+
const e5 = t3.clientX, n3 = t3.clientY, d4 = e5 - l4, v3 = n3 - c3;
|
|
27169
|
+
(u2 || Math.abs(d4) > i2 || Math.abs(v3) > i2) && (t3.preventDefault(), t3.stopPropagation(), u2 || (o2.set({ type: "start", x: l4 - g2, y: c3 - m2 }), u2 = true), o2.set({ type: "move", x: e5 - g2, y: n3 - m2, deltaX: d4, deltaY: v3 }), l4 = e5, c3 = n3);
|
|
27012
27170
|
}, b2 = (t3) => {
|
|
27013
27171
|
if (h2.delete(t3.pointerId)) {
|
|
27014
|
-
if (t3.pointerId === s2 &&
|
|
27172
|
+
if (t3.pointerId === s2 && u2) {
|
|
27015
27173
|
const e5 = t3.clientX, i3 = t3.clientY;
|
|
27016
27174
|
o2.set({ type: "end", x: e5 - g2, y: i3 - m2 });
|
|
27017
27175
|
}
|
|
@@ -27020,9 +27178,9 @@ function h(t2, e3 = {}) {
|
|
|
27020
27178
|
}, E2 = (t3) => {
|
|
27021
27179
|
t3.relatedTarget && t3.relatedTarget !== document.documentElement || b2(t3);
|
|
27022
27180
|
}, C2 = (t3) => {
|
|
27023
|
-
|
|
27181
|
+
u2 && (t3.stopPropagation(), t3.preventDefault());
|
|
27024
27182
|
}, L2 = (t3) => {
|
|
27025
|
-
t3.defaultPrevented || h2.size > 1 ||
|
|
27183
|
+
t3.defaultPrevented || h2.size > 1 || u2 && t3.preventDefault();
|
|
27026
27184
|
};
|
|
27027
27185
|
document.addEventListener("pointermove", f2), document.addEventListener("pointerup", b2), document.addEventListener("pointerout", E2), document.addEventListener("pointercancel", E2), document.addEventListener("touchmove", L2, { passive: false }), document.addEventListener("click", C2, { capture: true }), d3 = () => {
|
|
27028
27186
|
document.removeEventListener("pointermove", f2), document.removeEventListener("pointerup", b2), document.removeEventListener("pointerout", E2), document.removeEventListener("pointercancel", E2), document.removeEventListener("touchmove", L2), setTimeout((() => {
|
|
@@ -27032,13 +27190,13 @@ function h(t2, e3 = {}) {
|
|
|
27032
27190
|
};
|
|
27033
27191
|
t2.addEventListener("pointerdown", c2);
|
|
27034
27192
|
return { signal: o2, cleanup: () => {
|
|
27035
|
-
d3(), t2.removeEventListener("pointerdown", c2), h2.clear(),
|
|
27193
|
+
d3(), t2.removeEventListener("pointerdown", c2), h2.clear(), l3(o2);
|
|
27036
27194
|
} };
|
|
27037
27195
|
}
|
|
27038
27196
|
class a extends t {
|
|
27039
27197
|
constructor(t2, e3, i2 = 0) {
|
|
27040
|
-
var n2, s2, r2, o2,
|
|
27041
|
-
super(), this.totalDuration = e3, this.numberOfChannels = i2, this.element = null, this.minLength = 0, this.maxLength = 1 / 0, this.contentEditable = false, this.subscriptions = [], this.updatingSide = void 0, this.isRemoved = false, this.subscriptions = [], this.id = t2.id || `region-${Math.random().toString(32).slice(2)}`, this.start = this.clampPosition(t2.start), this.end = this.clampPosition(null !== (n2 = t2.end) && void 0 !== n2 ? n2 : t2.start), this.drag = null === (s2 = t2.drag) || void 0 === s2 || s2, this.resize = null === (r2 = t2.resize) || void 0 === r2 || r2, this.resizeStart = null === (o2 = t2.resizeStart) || void 0 === o2 || o2, this.resizeEnd = null === (
|
|
27198
|
+
var n2, s2, r2, o2, l4, h2, a2, d3, c2, u2;
|
|
27199
|
+
super(), this.totalDuration = e3, this.numberOfChannels = i2, this.element = null, this.minLength = 0, this.maxLength = 1 / 0, this.contentEditable = false, this.subscriptions = [], this.updatingSide = void 0, this.isRemoved = false, this.subscriptions = [], this.id = t2.id || `region-${Math.random().toString(32).slice(2)}`, this.start = this.clampPosition(t2.start), this.end = this.clampPosition(null !== (n2 = t2.end) && void 0 !== n2 ? n2 : t2.start), this.drag = null === (s2 = t2.drag) || void 0 === s2 || s2, this.resize = null === (r2 = t2.resize) || void 0 === r2 || r2, this.resizeStart = null === (o2 = t2.resizeStart) || void 0 === o2 || o2, this.resizeEnd = null === (l4 = t2.resizeEnd) || void 0 === l4 || l4, this.color = null !== (h2 = t2.color) && void 0 !== h2 ? h2 : "rgba(0, 0, 0, 0.1)", this.minLength = null !== (a2 = t2.minLength) && void 0 !== a2 ? a2 : this.minLength, this.maxLength = null !== (d3 = t2.maxLength) && void 0 !== d3 ? d3 : this.maxLength, this.channelIdx = null !== (c2 = t2.channelIdx) && void 0 !== c2 ? c2 : -1, this.contentEditable = null !== (u2 = t2.contentEditable) && void 0 !== u2 ? u2 : this.contentEditable, this.element = this.initElement(), this.setContent(t2.content), this.setPart(), this.renderPosition(), this.initMouseEvents();
|
|
27042
27200
|
}
|
|
27043
27201
|
clampPosition(t2) {
|
|
27044
27202
|
return Math.max(0, Math.min(this.totalDuration, t2));
|
|
@@ -27049,15 +27207,15 @@ class a extends t {
|
|
|
27049
27207
|
null === (t2 = this.element) || void 0 === t2 || t2.setAttribute("part", `${e3 ? "marker" : "region"} ${this.id}`);
|
|
27050
27208
|
}
|
|
27051
27209
|
addResizeHandles(t2) {
|
|
27052
|
-
const e3 = { position: "absolute", zIndex: "2", width: "6px", height: "100%", top: "0", cursor: "ew-resize", wordBreak: "keep-all" }, i2 = n("div", { part: "region-handle region-handle-left", style: Object.assign(Object.assign({}, e3), { left: "0", borderLeft: "2px solid rgba(0, 0, 0, 0.5)", borderRadius: "2px 0 0 2px" }) }, t2), s2 = n("div", { part: "region-handle region-handle-right", style: Object.assign(Object.assign({}, e3), { right: "0", borderRight: "2px solid rgba(0, 0, 0, 0.5)", borderRadius: "0 2px 2px 0" }) }, t2), o2 = h(i2, { threshold: 1 }),
|
|
27210
|
+
const e3 = { position: "absolute", zIndex: "2", width: "6px", height: "100%", top: "0", cursor: "ew-resize", wordBreak: "keep-all" }, i2 = n("div", { part: "region-handle region-handle-left", style: Object.assign(Object.assign({}, e3), { left: "0", borderLeft: "2px solid rgba(0, 0, 0, 0.5)", borderRadius: "2px 0 0 2px" }) }, t2), s2 = n("div", { part: "region-handle region-handle-right", style: Object.assign(Object.assign({}, e3), { right: "0", borderRight: "2px solid rgba(0, 0, 0, 0.5)", borderRadius: "0 2px 2px 0" }) }, t2), o2 = h(i2, { threshold: 1 }), l4 = h(s2, { threshold: 1 }), a2 = r((() => {
|
|
27053
27211
|
const t3 = o2.signal.value;
|
|
27054
27212
|
t3 && ("move" === t3.type && void 0 !== t3.deltaX ? this.onResize(t3.deltaX, "start") : "end" === t3.type && this.onEndResizing("start"));
|
|
27055
27213
|
}), [o2.signal]), d3 = r((() => {
|
|
27056
|
-
const t3 =
|
|
27214
|
+
const t3 = l4.signal.value;
|
|
27057
27215
|
t3 && ("move" === t3.type && void 0 !== t3.deltaX ? this.onResize(t3.deltaX, "end") : "end" === t3.type && this.onEndResizing("end"));
|
|
27058
|
-
}), [
|
|
27216
|
+
}), [l4.signal]);
|
|
27059
27217
|
this.subscriptions.push((() => {
|
|
27060
|
-
a2(), d3(), o2.cleanup(),
|
|
27218
|
+
a2(), d3(), o2.cleanup(), l4.cleanup();
|
|
27061
27219
|
}));
|
|
27062
27220
|
}
|
|
27063
27221
|
removeResizeHandles(t2) {
|
|
@@ -27084,9 +27242,9 @@ class a extends t {
|
|
|
27084
27242
|
initMouseEvents() {
|
|
27085
27243
|
const { element: t2 } = this;
|
|
27086
27244
|
if (!t2) return;
|
|
27087
|
-
const e3 = o(t2, "click"), i2 = o(t2, "mouseenter"), n2 = o(t2, "mouseleave"), s2 = o(t2, "dblclick"), a2 = o(t2, "pointerdown"), d3 = o(t2, "pointerup"), c2 = e3.subscribe(((t3) => t3 && this.emit("click", t3))),
|
|
27245
|
+
const e3 = o(t2, "click"), i2 = o(t2, "mouseenter"), n2 = o(t2, "mouseleave"), s2 = o(t2, "dblclick"), a2 = o(t2, "pointerdown"), d3 = o(t2, "pointerup"), c2 = e3.subscribe(((t3) => t3 && this.emit("click", t3))), u2 = i2.subscribe(((t3) => t3 && this.emit("over", t3))), p2 = n2.subscribe(((t3) => t3 && this.emit("leave", t3))), v2 = s2.subscribe(((t3) => t3 && this.emit("dblclick", t3))), g2 = a2.subscribe(((t3) => t3 && this.toggleCursor(true))), m2 = d3.subscribe(((t3) => t3 && this.toggleCursor(false)));
|
|
27088
27246
|
this.subscriptions.push((() => {
|
|
27089
|
-
c2(),
|
|
27247
|
+
c2(), u2(), p2(), v2(), g2(), m2(), l3(e3), l3(i2), l3(n2), l3(s2), l3(a2), l3(d3);
|
|
27090
27248
|
}));
|
|
27091
27249
|
const f2 = h(t2), b2 = r((() => {
|
|
27092
27250
|
const t3 = f2.signal.value;
|
|
@@ -27100,13 +27258,13 @@ class a extends t {
|
|
|
27100
27258
|
var n2;
|
|
27101
27259
|
if (!(null === (n2 = this.element) || void 0 === n2 ? void 0 : n2.parentElement)) return;
|
|
27102
27260
|
const { width: s2 } = this.element.parentElement.getBoundingClientRect(), r2 = t2 / s2 * this.totalDuration;
|
|
27103
|
-
let o2 = e3 && "start" !== e3 ? this.start : this.start + r2,
|
|
27261
|
+
let o2 = e3 && "start" !== e3 ? this.start : this.start + r2, l4 = e3 && "end" !== e3 ? this.end : this.end + r2;
|
|
27104
27262
|
const h2 = void 0 !== i2;
|
|
27105
|
-
h2 && this.updatingSide && this.updatingSide !== e3 && ("start" === this.updatingSide ? o2 = i2 :
|
|
27106
|
-
const a2 =
|
|
27263
|
+
h2 && this.updatingSide && this.updatingSide !== e3 && ("start" === this.updatingSide ? o2 = i2 : l4 = i2), o2 = Math.max(0, o2), l4 = Math.min(this.totalDuration, l4);
|
|
27264
|
+
const a2 = l4 - o2;
|
|
27107
27265
|
this.updatingSide = e3;
|
|
27108
27266
|
const d3 = a2 >= this.minLength && a2 <= this.maxLength;
|
|
27109
|
-
o2 <=
|
|
27267
|
+
o2 <= l4 && (d3 || h2) && (this.start = o2, this.end = l4, this.renderPosition(), this.emit("update", e3));
|
|
27110
27268
|
}
|
|
27111
27269
|
onMove(t2) {
|
|
27112
27270
|
this.drag && this._onUpdate(t2);
|
|
@@ -27218,13 +27376,13 @@ class d2 extends e2 {
|
|
|
27218
27376
|
if (!n2) return;
|
|
27219
27377
|
const { clientWidth: s2, scrollWidth: r2 } = n2;
|
|
27220
27378
|
if (r2 <= s2) return;
|
|
27221
|
-
const o2 = n2.getBoundingClientRect(),
|
|
27379
|
+
const o2 = n2.getBoundingClientRect(), l4 = t2.element.getBoundingClientRect(), h2 = l4.left - o2.left, a2 = l4.right - o2.left;
|
|
27222
27380
|
h2 < 0 ? n2.scrollLeft += h2 : a2 > s2 && (n2.scrollLeft += a2 - s2);
|
|
27223
27381
|
}
|
|
27224
27382
|
virtualAppend(t2, e3, i2) {
|
|
27225
27383
|
const n2 = () => {
|
|
27226
27384
|
if (!this.wavesurfer) return;
|
|
27227
|
-
const n3 = this.wavesurfer.getWidth(), s2 = this.wavesurfer.getScroll(), r2 = e3.clientWidth, o2 = this.wavesurfer.getDuration(),
|
|
27385
|
+
const n3 = this.wavesurfer.getWidth(), s2 = this.wavesurfer.getScroll(), r2 = e3.clientWidth, o2 = this.wavesurfer.getDuration(), l4 = Math.round(t2.start / o2 * r2), h2 = l4 + (Math.round((t2.end - t2.start) / o2 * r2) || 1) > s2 && l4 < s2 + n3;
|
|
27228
27386
|
h2 && !i2.parentElement ? e3.appendChild(i2) : !h2 && i2.parentElement && i2.remove();
|
|
27229
27387
|
};
|
|
27230
27388
|
setTimeout((() => {
|
|
@@ -27275,17 +27433,17 @@ class d2 extends e2 {
|
|
|
27275
27433
|
const n2 = null === (i2 = this.wavesurfer) || void 0 === i2 ? void 0 : i2.getWrapper();
|
|
27276
27434
|
if (!(n2 && n2 instanceof HTMLElement)) return () => {
|
|
27277
27435
|
};
|
|
27278
|
-
let s2 = null, o2 = 0,
|
|
27436
|
+
let s2 = null, o2 = 0, l4 = 0;
|
|
27279
27437
|
const d3 = h(n2, { threshold: e3 }), c2 = r((() => {
|
|
27280
27438
|
var e4, i3;
|
|
27281
27439
|
const n3 = d3.signal.value;
|
|
27282
27440
|
if (n3) if ("start" === n3.type) {
|
|
27283
27441
|
if (o2 = n3.x, !this.wavesurfer) return;
|
|
27284
27442
|
const r2 = this.wavesurfer.getDuration(), h2 = null === (i3 = null === (e4 = this.wavesurfer) || void 0 === e4 ? void 0 : e4.getDecodedData()) || void 0 === i3 ? void 0 : i3.numberOfChannels, { width: d4 } = this.wavesurfer.getWrapper().getBoundingClientRect();
|
|
27285
|
-
|
|
27286
|
-
const c3 = n3.x / d4 * r2,
|
|
27287
|
-
s2 = new a(Object.assign(Object.assign({}, t2), { start: c3, end:
|
|
27288
|
-
} else "move" === n3.type && void 0 !== n3.deltaX ? s2 && s2._onUpdate(n3.deltaX, n3.x > o2 ? "end" : "start",
|
|
27443
|
+
l4 = o2 / d4 * r2;
|
|
27444
|
+
const c3 = n3.x / d4 * r2, u2 = (n3.x + 5) / d4 * r2;
|
|
27445
|
+
s2 = new a(Object.assign(Object.assign({}, t2), { start: c3, end: u2 }), r2, h2), this.emit("region-initialized", s2), s2.element && this.regionsContainer.appendChild(s2.element);
|
|
27446
|
+
} else "move" === n3.type && void 0 !== n3.deltaX ? s2 && s2._onUpdate(n3.deltaX, n3.x > o2 ? "end" : "start", l4) : "end" === n3.type && s2 && (this.saveRegion(s2), s2.updatingSide = void 0, s2 = null);
|
|
27289
27447
|
}), [d3.signal]);
|
|
27290
27448
|
return () => {
|
|
27291
27449
|
c2(), d3.cleanup();
|
|
@@ -27425,7 +27583,7 @@ function useAudioPlayer(options) {
|
|
|
27425
27583
|
eventUnsubs.push(core.on("channel:reset", onChannelReset));
|
|
27426
27584
|
}
|
|
27427
27585
|
function detachEventListeners() {
|
|
27428
|
-
for (const
|
|
27586
|
+
for (const u2 of eventUnsubs) u2();
|
|
27429
27587
|
eventUnsubs.length = 0;
|
|
27430
27588
|
}
|
|
27431
27589
|
function onPlayerReady() {
|
|
@@ -29333,12 +29491,13 @@ function createTranscriptionEditorPlugin(options = {}) {
|
|
|
29333
29491
|
};
|
|
29334
29492
|
}
|
|
29335
29493
|
const _hoisted_1$5 = { class: "llm-service-panel" };
|
|
29336
|
-
const _hoisted_2$5 = {
|
|
29494
|
+
const _hoisted_2$5 = { class: "llm-service-panel__download-label" };
|
|
29495
|
+
const _hoisted_3$5 = {
|
|
29337
29496
|
key: 0,
|
|
29338
29497
|
class: "llm-service-panel__empty",
|
|
29339
29498
|
role: "status"
|
|
29340
29499
|
};
|
|
29341
|
-
const
|
|
29500
|
+
const _hoisted_4$4 = { class: "llm-service-panel__empty-text" };
|
|
29342
29501
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
29343
29502
|
__name: "LLMServicePanel",
|
|
29344
29503
|
props: {
|
|
@@ -29460,11 +29619,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29460
29619
|
onClick: onExport
|
|
29461
29620
|
}, {
|
|
29462
29621
|
default: withCtx(() => [
|
|
29463
|
-
|
|
29622
|
+
createBaseVNode("span", _hoisted_2$5, toDisplayString(unref(t2)("llmService.download")), 1)
|
|
29464
29623
|
]),
|
|
29465
29624
|
_: 1
|
|
29466
29625
|
}, 8, ["disabled", "aria-label", "title"]),
|
|
29467
29626
|
createVNode(unref(Button), {
|
|
29627
|
+
class: "llm-service-panel__split",
|
|
29468
29628
|
variant: __props.split ? "primary" : "secondary",
|
|
29469
29629
|
icon: "panel-right",
|
|
29470
29630
|
"aria-pressed": !!__props.split,
|
|
@@ -29474,8 +29634,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29474
29634
|
}, null, 8, ["variant", "aria-pressed", "aria-label", "title"])
|
|
29475
29635
|
]),
|
|
29476
29636
|
default: withCtx(() => [
|
|
29477
|
-
isEmpty.value ? (openBlock(), createElementBlock("div",
|
|
29478
|
-
createBaseVNode("p",
|
|
29637
|
+
isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
29638
|
+
createBaseVNode("p", _hoisted_4$4, toDisplayString(unref(t2)("llmService.empty")), 1),
|
|
29479
29639
|
createVNode(unref(Button), {
|
|
29480
29640
|
variant: "primary",
|
|
29481
29641
|
icon: "sparkles",
|
|
@@ -29500,8 +29660,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29500
29660
|
};
|
|
29501
29661
|
}
|
|
29502
29662
|
});
|
|
29503
|
-
const _style_0$5 = "\n.llm-service-panel[data-v-
|
|
29504
|
-
const LLMServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["styles", [_style_0$5]], ["__scopeId", "data-v-
|
|
29663
|
+
const _style_0$5 = "\n.llm-service-panel[data-v-920b527a] {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.llm-service-panel__status[data-v-920b527a] {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-xs);\n font-size: var(--font-size-xs);\n font-weight: 500;\n}\n.llm-service-panel__status--ok[data-v-920b527a] {\n color: var(--color-success, #2e7d32);\n}\n.llm-service-panel__status--warn[data-v-920b527a] {\n color: var(--color-warning, #ed6c02);\n}\n.llm-service-panel__empty[data-v-920b527a] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-md);\n padding: var(--spacing-xl) var(--spacing-md);\n text-align: center;\n}\n.llm-service-panel__empty-text[data-v-920b527a] {\n margin: 0;\n max-width: 400px;\n font-size: var(--font-size-sm);\n color: var(--color-text-secondary);\n}\n\n/* Phone: no side-by-side (Layout forces split off below 767px), and the\n download button keeps its icon only. */\n@media (max-width: 767px) {\n.llm-service-panel[data-v-920b527a] {\n padding: var(--spacing-sm) 0;\n}\n.llm-service-panel__split[data-v-920b527a],\n .llm-service-panel__download-label[data-v-920b527a] {\n display: none;\n}\n}\n";
|
|
29664
|
+
const LLMServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["styles", [_style_0$5]], ["__scopeId", "data-v-920b527a"]]);
|
|
29505
29665
|
function createService(init) {
|
|
29506
29666
|
return {
|
|
29507
29667
|
id: init.id,
|
|
@@ -30290,4 +30450,4 @@ export {
|
|
|
30290
30450
|
purify as p,
|
|
30291
30451
|
register as r
|
|
30292
30452
|
};
|
|
30293
|
-
//# sourceMappingURL=index-
|
|
30453
|
+
//# sourceMappingURL=index-FoYxoCOv.js.map
|