@kong-ui-public/documentation 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, openBlock as h, createBlock as T, resolveDynamicComponent as Y, unref as k, withCtx as _, createElementVNode as R, renderSlot as z, normalizeClass as _e, computed as E, createElementBlock as q, toDisplayString as N, createVNode as F, mergeProps as ke, ref as J, Fragment as et, createTextVNode as G, createCommentVNode as H, watch as ge, resolveComponent as I, pushScopeId as fe, popScopeId as he, normalizeStyle as Ge, reactive as tt, onMounted as nt, Teleport as rt, createSlots as je } from "vue";
1
+ import { defineComponent as G, openBlock as v, createBlock as F, resolveDynamicComponent as Y, unref as y, withCtx as D, createElementVNode as N, renderSlot as z, normalizeClass as _e, computed as L, createElementBlock as C, toDisplayString as E, createVNode as R, mergeProps as ke, ref as U, Fragment as et, createTextVNode as O, createCommentVNode as H, watch as ge, resolveComponent as $, pushScopeId as fe, popScopeId as he, normalizeStyle as Ge, reactive as tt, onMounted as nt, Teleport as rt, createSlots as je } from "vue";
2
2
  import { createI18n as Oe, Translation as Me } from "@kong-ui-public/i18n";
3
3
  import "axios";
4
4
  import "@kong/kongponents";
@@ -74,18 +74,18 @@ function ct(e) {
74
74
  }
75
75
  const B = (e, n) => {
76
76
  const t = e.__vccOpts || e;
77
- for (const [r, a] of n)
78
- t[r] = a;
77
+ for (const [a, r] of n)
78
+ t[a] = r;
79
79
  return t;
80
80
  }, dt = {};
81
81
  function pt(e, n) {
82
- return h(), q("blockquote", null, [
82
+ return v(), C("blockquote", null, [
83
83
  z(e.$slots, "default", {}, void 0, !0)
84
84
  ]);
85
85
  }
86
86
  const mt = /* @__PURE__ */ B(dt, [["render", pt], ["__scopeId", "data-v-afdbfde6"]]), gt = {};
87
87
  function ft(e, n) {
88
- return h(), q("code", null, [
88
+ return v(), C("code", null, [
89
89
  z(e.$slots, "default", {}, void 0, !0)
90
90
  ]);
91
91
  }
@@ -110,8 +110,8 @@ var Re = Be.exports, ze = { exports: {} };
110
110
  * @namespace
111
111
  * @public
112
112
  */
113
- var t = function(r) {
114
- var a = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, p = 0, u = {}, l = {
113
+ var t = function(a) {
114
+ var r = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, c = 0, s = {}, l = {
115
115
  /**
116
116
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
117
117
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -133,7 +133,7 @@ var Re = Be.exports, ze = { exports: {} };
133
133
  * @memberof Prism
134
134
  * @public
135
135
  */
136
- manual: r.Prism && r.Prism.manual,
136
+ manual: a.Prism && a.Prism.manual,
137
137
  /**
138
138
  * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
139
139
  * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
@@ -155,7 +155,7 @@ var Re = Be.exports, ze = { exports: {} };
155
155
  * @memberof Prism
156
156
  * @public
157
157
  */
158
- disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler,
158
+ disableWorkerMessageHandler: a.Prism && a.Prism.disableWorkerMessageHandler,
159
159
  /**
160
160
  * A namespace for utility methods.
161
161
  *
@@ -166,8 +166,8 @@ var Re = Be.exports, ze = { exports: {} };
166
166
  * @memberof Prism
167
167
  */
168
168
  util: {
169
- encode: function o(i) {
170
- return i instanceof c ? new c(i.type, o(i.content), i.alias) : Array.isArray(i) ? i.map(o) : i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
169
+ encode: function i(o) {
170
+ return o instanceof g ? new g(o.type, i(o.content), o.alias) : Array.isArray(o) ? o.map(i) : o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
171
171
  },
172
172
  /**
173
173
  * Returns the name of the type of the given value.
@@ -185,8 +185,8 @@ var Re = Be.exports, ze = { exports: {} };
185
185
  * type(String) === 'Function'
186
186
  * type(/abc+/) === 'RegExp'
187
187
  */
188
- type: function(o) {
189
- return Object.prototype.toString.call(o).slice(8, -1);
188
+ type: function(i) {
189
+ return Object.prototype.toString.call(i).slice(8, -1);
190
190
  },
191
191
  /**
192
192
  * Returns a unique number for the given object. Later calls will still return the same number.
@@ -194,8 +194,8 @@ var Re = Be.exports, ze = { exports: {} };
194
194
  * @param {Object} obj
195
195
  * @returns {number}
196
196
  */
197
- objId: function(o) {
198
- return o.__id || Object.defineProperty(o, "__id", { value: ++p }), o.__id;
197
+ objId: function(i) {
198
+ return i.__id || Object.defineProperty(i, "__id", { value: ++c }), i.__id;
199
199
  },
200
200
  /**
201
201
  * Creates a deep clone of the given object.
@@ -207,30 +207,30 @@ var Re = Be.exports, ze = { exports: {} };
207
207
  * @returns {T}
208
208
  * @template T
209
209
  */
210
- clone: function o(i, d) {
211
- d = d || {};
212
- var m, s;
213
- switch (l.util.type(i)) {
210
+ clone: function i(o, u) {
211
+ u = u || {};
212
+ var d, p;
213
+ switch (l.util.type(o)) {
214
214
  case "Object":
215
- if (s = l.util.objId(i), d[s])
216
- return d[s];
217
- m = /** @type {Record<string, any>} */
218
- {}, d[s] = m;
219
- for (var g in i)
220
- i.hasOwnProperty(g) && (m[g] = o(i[g], d));
215
+ if (p = l.util.objId(o), u[p])
216
+ return u[p];
217
+ d = /** @type {Record<string, any>} */
218
+ {}, u[p] = d;
219
+ for (var m in o)
220
+ o.hasOwnProperty(m) && (d[m] = i(o[m], u));
221
221
  return (
222
222
  /** @type {any} */
223
- m
223
+ d
224
224
  );
225
225
  case "Array":
226
- return s = l.util.objId(i), d[s] ? d[s] : (m = [], d[s] = m, /** @type {Array} */
226
+ return p = l.util.objId(o), u[p] ? u[p] : (d = [], u[p] = d, /** @type {Array} */
227
227
  /** @type {any} */
228
- i.forEach(function(v, f) {
229
- m[f] = o(v, d);
228
+ o.forEach(function(w, f) {
229
+ d[f] = i(w, u);
230
230
  }), /** @type {any} */
231
- m);
231
+ d);
232
232
  default:
233
- return i;
233
+ return o;
234
234
  }
235
235
  },
236
236
  /**
@@ -241,12 +241,12 @@ var Re = Be.exports, ze = { exports: {} };
241
241
  * @param {Element} element
242
242
  * @returns {string}
243
243
  */
244
- getLanguage: function(o) {
245
- for (; o; ) {
246
- var i = a.exec(o.className);
247
- if (i)
248
- return i[1].toLowerCase();
249
- o = o.parentElement;
244
+ getLanguage: function(i) {
245
+ for (; i; ) {
246
+ var o = r.exec(i.className);
247
+ if (o)
248
+ return o[1].toLowerCase();
249
+ i = i.parentElement;
250
250
  }
251
251
  return "none";
252
252
  },
@@ -257,8 +257,8 @@ var Re = Be.exports, ze = { exports: {} };
257
257
  * @param {string} language
258
258
  * @returns {void}
259
259
  */
260
- setLanguage: function(o, i) {
261
- o.className = o.className.replace(RegExp(a, "gi"), ""), o.classList.add("language-" + i);
260
+ setLanguage: function(i, o) {
261
+ i.className = i.className.replace(RegExp(r, "gi"), ""), i.classList.add("language-" + o);
262
262
  },
263
263
  /**
264
264
  * Returns the script element that is currently executing.
@@ -277,13 +277,13 @@ var Re = Be.exports, ze = { exports: {} };
277
277
  );
278
278
  try {
279
279
  throw new Error();
280
- } catch (m) {
281
- var o = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(m.stack) || [])[1];
282
- if (o) {
283
- var i = document.getElementsByTagName("script");
284
- for (var d in i)
285
- if (i[d].src == o)
286
- return i[d];
280
+ } catch (d) {
281
+ var i = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(d.stack) || [])[1];
282
+ if (i) {
283
+ var o = document.getElementsByTagName("script");
284
+ for (var u in o)
285
+ if (o[u].src == i)
286
+ return o[u];
287
287
  }
288
288
  return null;
289
289
  }
@@ -307,16 +307,16 @@ var Re = Be.exports, ze = { exports: {} };
307
307
  * @param {boolean} [defaultActivation=false]
308
308
  * @returns {boolean}
309
309
  */
310
- isActive: function(o, i, d) {
311
- for (var m = "no-" + i; o; ) {
312
- var s = o.classList;
313
- if (s.contains(i))
310
+ isActive: function(i, o, u) {
311
+ for (var d = "no-" + o; i; ) {
312
+ var p = i.classList;
313
+ if (p.contains(o))
314
314
  return !0;
315
- if (s.contains(m))
315
+ if (p.contains(d))
316
316
  return !1;
317
- o = o.parentElement;
317
+ i = i.parentElement;
318
318
  }
319
- return !!d;
319
+ return !!u;
320
320
  }
321
321
  },
322
322
  /**
@@ -330,10 +330,10 @@ var Re = Be.exports, ze = { exports: {} };
330
330
  /**
331
331
  * The grammar for plain, unformatted text.
332
332
  */
333
- plain: u,
334
- plaintext: u,
335
- text: u,
336
- txt: u,
333
+ plain: s,
334
+ plaintext: s,
335
+ text: s,
336
+ txt: s,
337
337
  /**
338
338
  * Creates a deep copy of the language with the given id and appends the given tokens.
339
339
  *
@@ -362,11 +362,11 @@ var Re = Be.exports, ze = { exports: {} };
362
362
  * 'color': /\b(?:red|green|blue)\b/
363
363
  * });
364
364
  */
365
- extend: function(o, i) {
366
- var d = l.util.clone(l.languages[o]);
367
- for (var m in i)
368
- d[m] = i[m];
369
- return d;
365
+ extend: function(i, o) {
366
+ var u = l.util.clone(l.languages[i]);
367
+ for (var d in o)
368
+ u[d] = o[d];
369
+ return u;
370
370
  },
371
371
  /**
372
372
  * Inserts tokens _before_ another token in a language definition or any other grammar.
@@ -443,31 +443,31 @@ var Re = Be.exports, ze = { exports: {} };
443
443
  * @returns {Grammar} The new grammar object.
444
444
  * @public
445
445
  */
446
- insertBefore: function(o, i, d, m) {
447
- m = m || /** @type {any} */
446
+ insertBefore: function(i, o, u, d) {
447
+ d = d || /** @type {any} */
448
448
  l.languages;
449
- var s = m[o], g = {};
450
- for (var v in s)
451
- if (s.hasOwnProperty(v)) {
452
- if (v == i)
453
- for (var f in d)
454
- d.hasOwnProperty(f) && (g[f] = d[f]);
455
- d.hasOwnProperty(v) || (g[v] = s[v]);
449
+ var p = d[i], m = {};
450
+ for (var w in p)
451
+ if (p.hasOwnProperty(w)) {
452
+ if (w == o)
453
+ for (var f in u)
454
+ u.hasOwnProperty(f) && (m[f] = u[f]);
455
+ u.hasOwnProperty(w) || (m[w] = p[w]);
456
456
  }
457
- var S = m[o];
458
- return m[o] = g, l.languages.DFS(l.languages, function(D, K) {
459
- K === S && D != o && (this[D] = g);
460
- }), g;
457
+ var _ = d[i];
458
+ return d[i] = m, l.languages.DFS(l.languages, function(j, I) {
459
+ I === _ && j != i && (this[j] = m);
460
+ }), m;
461
461
  },
462
462
  // Traverse a language definition with Depth First Search
463
- DFS: function o(i, d, m, s) {
464
- s = s || {};
465
- var g = l.util.objId;
466
- for (var v in i)
467
- if (i.hasOwnProperty(v)) {
468
- d.call(i, v, i[v], m || v);
469
- var f = i[v], S = l.util.type(f);
470
- S === "Object" && !s[g(f)] ? (s[g(f)] = !0, o(f, d, null, s)) : S === "Array" && !s[g(f)] && (s[g(f)] = !0, o(f, d, v, s));
463
+ DFS: function i(o, u, d, p) {
464
+ p = p || {};
465
+ var m = l.util.objId;
466
+ for (var w in o)
467
+ if (o.hasOwnProperty(w)) {
468
+ u.call(o, w, o[w], d || w);
469
+ var f = o[w], _ = l.util.type(f);
470
+ _ === "Object" && !p[m(f)] ? (p[m(f)] = !0, i(f, u, null, p)) : _ === "Array" && !p[m(f)] && (p[m(f)] = !0, i(f, u, w, p));
471
471
  }
472
472
  }
473
473
  },
@@ -484,8 +484,8 @@ var Re = Be.exports, ze = { exports: {} };
484
484
  * @memberof Prism
485
485
  * @public
486
486
  */
487
- highlightAll: function(o, i) {
488
- l.highlightAllUnder(document, o, i);
487
+ highlightAll: function(i, o) {
488
+ l.highlightAllUnder(document, i, o);
489
489
  },
490
490
  /**
491
491
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -502,15 +502,15 @@ var Re = Be.exports, ze = { exports: {} };
502
502
  * @memberof Prism
503
503
  * @public
504
504
  */
505
- highlightAllUnder: function(o, i, d) {
506
- var m = {
507
- callback: d,
508
- container: o,
505
+ highlightAllUnder: function(i, o, u) {
506
+ var d = {
507
+ callback: u,
508
+ container: i,
509
509
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
510
510
  };
511
- l.hooks.run("before-highlightall", m), m.elements = Array.prototype.slice.apply(m.container.querySelectorAll(m.selector)), l.hooks.run("before-all-elements-highlight", m);
512
- for (var s = 0, g; g = m.elements[s++]; )
513
- l.highlightElement(g, i === !0, m.callback);
511
+ l.hooks.run("before-highlightall", d), d.elements = Array.prototype.slice.apply(d.container.querySelectorAll(d.selector)), l.hooks.run("before-all-elements-highlight", d);
512
+ for (var p = 0, m; m = d.elements[p++]; )
513
+ l.highlightElement(m, o === !0, d.callback);
514
514
  },
515
515
  /**
516
516
  * Highlights the code inside a single element.
@@ -540,39 +540,39 @@ var Re = Be.exports, ze = { exports: {} };
540
540
  * @memberof Prism
541
541
  * @public
542
542
  */
543
- highlightElement: function(o, i, d) {
544
- var m = l.util.getLanguage(o), s = l.languages[m];
545
- l.util.setLanguage(o, m);
546
- var g = o.parentElement;
547
- g && g.nodeName.toLowerCase() === "pre" && l.util.setLanguage(g, m);
548
- var v = o.textContent, f = {
549
- element: o,
550
- language: m,
551
- grammar: s,
552
- code: v
543
+ highlightElement: function(i, o, u) {
544
+ var d = l.util.getLanguage(i), p = l.languages[d];
545
+ l.util.setLanguage(i, d);
546
+ var m = i.parentElement;
547
+ m && m.nodeName.toLowerCase() === "pre" && l.util.setLanguage(m, d);
548
+ var w = i.textContent, f = {
549
+ element: i,
550
+ language: d,
551
+ grammar: p,
552
+ code: w
553
553
  };
554
- function S(K) {
555
- f.highlightedCode = K, l.hooks.run("before-insert", f), f.element.innerHTML = f.highlightedCode, l.hooks.run("after-highlight", f), l.hooks.run("complete", f), d && d.call(f.element);
554
+ function _(I) {
555
+ f.highlightedCode = I, l.hooks.run("before-insert", f), f.element.innerHTML = f.highlightedCode, l.hooks.run("after-highlight", f), l.hooks.run("complete", f), u && u.call(f.element);
556
556
  }
557
- if (l.hooks.run("before-sanity-check", f), g = f.element.parentElement, g && g.nodeName.toLowerCase() === "pre" && !g.hasAttribute("tabindex") && g.setAttribute("tabindex", "0"), !f.code) {
558
- l.hooks.run("complete", f), d && d.call(f.element);
557
+ if (l.hooks.run("before-sanity-check", f), m = f.element.parentElement, m && m.nodeName.toLowerCase() === "pre" && !m.hasAttribute("tabindex") && m.setAttribute("tabindex", "0"), !f.code) {
558
+ l.hooks.run("complete", f), u && u.call(f.element);
559
559
  return;
560
560
  }
561
561
  if (l.hooks.run("before-highlight", f), !f.grammar) {
562
- S(l.util.encode(f.code));
562
+ _(l.util.encode(f.code));
563
563
  return;
564
564
  }
565
- if (i && r.Worker) {
566
- var D = new Worker(l.filename);
567
- D.onmessage = function(K) {
568
- S(K.data);
569
- }, D.postMessage(JSON.stringify({
565
+ if (o && a.Worker) {
566
+ var j = new Worker(l.filename);
567
+ j.onmessage = function(I) {
568
+ _(I.data);
569
+ }, j.postMessage(JSON.stringify({
570
570
  language: f.language,
571
571
  code: f.code,
572
572
  immediateClose: !0
573
573
  }));
574
574
  } else
575
- S(l.highlight(f.code, f.grammar, f.language));
575
+ _(l.highlight(f.code, f.grammar, f.language));
576
576
  },
577
577
  /**
578
578
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -594,15 +594,15 @@ var Re = Be.exports, ze = { exports: {} };
594
594
  * @example
595
595
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
596
596
  */
597
- highlight: function(o, i, d) {
598
- var m = {
599
- code: o,
600
- grammar: i,
601
- language: d
597
+ highlight: function(i, o, u) {
598
+ var d = {
599
+ code: i,
600
+ grammar: o,
601
+ language: u
602
602
  };
603
- if (l.hooks.run("before-tokenize", m), !m.grammar)
604
- throw new Error('The language "' + m.language + '" has no grammar.');
605
- return m.tokens = l.tokenize(m.code, m.grammar), l.hooks.run("after-tokenize", m), c.stringify(l.util.encode(m.tokens), m.language);
603
+ if (l.hooks.run("before-tokenize", d), !d.grammar)
604
+ throw new Error('The language "' + d.language + '" has no grammar.');
605
+ return d.tokens = l.tokenize(d.code, d.grammar), l.hooks.run("after-tokenize", d), g.stringify(l.util.encode(d.tokens), d.language);
606
606
  },
607
607
  /**
608
608
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -628,15 +628,15 @@ var Re = Be.exports, ze = { exports: {} };
628
628
  * }
629
629
  * });
630
630
  */
631
- tokenize: function(o, i) {
632
- var d = i.rest;
633
- if (d) {
634
- for (var m in d)
635
- i[m] = d[m];
636
- delete i.rest;
631
+ tokenize: function(i, o) {
632
+ var u = o.rest;
633
+ if (u) {
634
+ for (var d in u)
635
+ o[d] = u[d];
636
+ delete o.rest;
637
637
  }
638
- var s = new L();
639
- return P(s, s.head, o), w(o, s, i, s.head, 0), j(s);
638
+ var p = new k();
639
+ return P(p, p.head, i), A(i, p, o, p.head, 0), x(p);
640
640
  },
641
641
  /**
642
642
  * @namespace
@@ -657,9 +657,9 @@ var Re = Be.exports, ze = { exports: {} };
657
657
  * @param {HookCallback} callback The callback function which is given environment variables.
658
658
  * @public
659
659
  */
660
- add: function(o, i) {
661
- var d = l.hooks.all;
662
- d[o] = d[o] || [], d[o].push(i);
660
+ add: function(i, o) {
661
+ var u = l.hooks.all;
662
+ u[i] = u[i] || [], u[i].push(o);
663
663
  },
664
664
  /**
665
665
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -670,131 +670,131 @@ var Re = Be.exports, ze = { exports: {} };
670
670
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
671
671
  * @public
672
672
  */
673
- run: function(o, i) {
674
- var d = l.hooks.all[o];
675
- if (!(!d || !d.length))
676
- for (var m = 0, s; s = d[m++]; )
677
- s(i);
673
+ run: function(i, o) {
674
+ var u = l.hooks.all[i];
675
+ if (!(!u || !u.length))
676
+ for (var d = 0, p; p = u[d++]; )
677
+ p(o);
678
678
  }
679
679
  },
680
- Token: c
680
+ Token: g
681
681
  };
682
- r.Prism = l;
683
- function c(o, i, d, m) {
684
- this.type = o, this.content = i, this.alias = d, this.length = (m || "").length | 0;
682
+ a.Prism = l;
683
+ function g(i, o, u, d) {
684
+ this.type = i, this.content = o, this.alias = u, this.length = (d || "").length | 0;
685
685
  }
686
- c.stringify = function o(i, d) {
687
- if (typeof i == "string")
688
- return i;
689
- if (Array.isArray(i)) {
690
- var m = "";
691
- return i.forEach(function(S) {
692
- m += o(S, d);
693
- }), m;
686
+ g.stringify = function i(o, u) {
687
+ if (typeof o == "string")
688
+ return o;
689
+ if (Array.isArray(o)) {
690
+ var d = "";
691
+ return o.forEach(function(_) {
692
+ d += i(_, u);
693
+ }), d;
694
694
  }
695
- var s = {
696
- type: i.type,
697
- content: o(i.content, d),
695
+ var p = {
696
+ type: o.type,
697
+ content: i(o.content, u),
698
698
  tag: "span",
699
- classes: ["token", i.type],
699
+ classes: ["token", o.type],
700
700
  attributes: {},
701
- language: d
702
- }, g = i.alias;
703
- g && (Array.isArray(g) ? Array.prototype.push.apply(s.classes, g) : s.classes.push(g)), l.hooks.run("wrap", s);
704
- var v = "";
705
- for (var f in s.attributes)
706
- v += " " + f + '="' + (s.attributes[f] || "").replace(/"/g, "&quot;") + '"';
707
- return "<" + s.tag + ' class="' + s.classes.join(" ") + '"' + v + ">" + s.content + "</" + s.tag + ">";
701
+ language: u
702
+ }, m = o.alias;
703
+ m && (Array.isArray(m) ? Array.prototype.push.apply(p.classes, m) : p.classes.push(m)), l.hooks.run("wrap", p);
704
+ var w = "";
705
+ for (var f in p.attributes)
706
+ w += " " + f + '="' + (p.attributes[f] || "").replace(/"/g, "&quot;") + '"';
707
+ return "<" + p.tag + ' class="' + p.classes.join(" ") + '"' + w + ">" + p.content + "</" + p.tag + ">";
708
708
  };
709
- function y(o, i, d, m) {
710
- o.lastIndex = i;
711
- var s = o.exec(d);
712
- if (s && m && s[1]) {
713
- var g = s[1].length;
714
- s.index += g, s[0] = s[0].slice(g);
709
+ function h(i, o, u, d) {
710
+ i.lastIndex = o;
711
+ var p = i.exec(u);
712
+ if (p && d && p[1]) {
713
+ var m = p[1].length;
714
+ p.index += m, p[0] = p[0].slice(m);
715
715
  }
716
- return s;
716
+ return p;
717
717
  }
718
- function w(o, i, d, m, s, g) {
719
- for (var v in d)
720
- if (!(!d.hasOwnProperty(v) || !d[v])) {
721
- var f = d[v];
718
+ function A(i, o, u, d, p, m) {
719
+ for (var w in u)
720
+ if (!(!u.hasOwnProperty(w) || !u[w])) {
721
+ var f = u[w];
722
722
  f = Array.isArray(f) ? f : [f];
723
- for (var S = 0; S < f.length; ++S) {
724
- if (g && g.cause == v + "," + S)
723
+ for (var _ = 0; _ < f.length; ++_) {
724
+ if (m && m.cause == w + "," + _)
725
725
  return;
726
- var D = f[S], K = D.inside, ie = !!D.lookbehind, oe = !!D.greedy, ne = D.alias;
727
- if (oe && !D.pattern.global) {
728
- var ve = D.pattern.toString().match(/[imsuy]*$/)[0];
729
- D.pattern = RegExp(D.pattern.source, ve + "g");
726
+ var j = f[_], I = j.inside, Q = !!j.lookbehind, ie = !!j.greedy, ve = j.alias;
727
+ if (ie && !j.pattern.global) {
728
+ var ne = j.pattern.toString().match(/[imsuy]*$/)[0];
729
+ j.pattern = RegExp(j.pattern.source, ne + "g");
730
730
  }
731
- for (var V = D.pattern || D, O = m.next, W = s; O !== i.tail && !(g && W >= g.reach); W += O.value.length, O = O.next) {
732
- var ee = O.value;
733
- if (i.length > o.length)
731
+ for (var oe = j.pattern || j, T = d.next, J = p; T !== o.tail && !(m && J >= m.reach); J += T.value.length, T = T.next) {
732
+ var ee = T.value;
733
+ if (o.length > i.length)
734
734
  return;
735
- if (!(ee instanceof c)) {
736
- var le = 1, U;
737
- if (oe) {
738
- if (U = y(V, W, o, ie), !U || U.index >= o.length)
735
+ if (!(ee instanceof g)) {
736
+ var le = 1, V;
737
+ if (ie) {
738
+ if (V = h(oe, J, i, Q), !V || V.index >= i.length)
739
739
  break;
740
- var se = U.index, Ze = U.index + U[0].length, X = W;
741
- for (X += O.value.length; se >= X; )
742
- O = O.next, X += O.value.length;
743
- if (X -= O.value.length, W = X, O.value instanceof c)
740
+ var se = V.index, Ze = V.index + V[0].length, W = J;
741
+ for (W += T.value.length; se >= W; )
742
+ T = T.next, W += T.value.length;
743
+ if (W -= T.value.length, J = W, T.value instanceof g)
744
744
  continue;
745
- for (var re = O; re !== i.tail && (X < Ze || typeof re.value == "string"); re = re.next)
746
- le++, X += re.value.length;
747
- le--, ee = o.slice(W, X), U.index -= W;
748
- } else if (U = y(V, 0, ee, ie), !U)
745
+ for (var re = T; re !== o.tail && (W < Ze || typeof re.value == "string"); re = re.next)
746
+ le++, W += re.value.length;
747
+ le--, ee = i.slice(J, W), V.index -= J;
748
+ } else if (V = h(oe, 0, ee, Q), !V)
749
749
  continue;
750
- var se = U.index, ue = U[0], we = ee.slice(0, se), Te = ee.slice(se + ue.length), be = W + ee.length;
751
- g && be > g.reach && (g.reach = be);
752
- var ce = O.prev;
753
- we && (ce = P(i, ce, we), W += we.length), x(i, ce, le);
754
- var Ye = new c(v, K ? l.tokenize(ue, K) : ue, ne, ue);
755
- if (O = P(i, ce, Ye), Te && P(i, O, Te), le > 1) {
750
+ var se = V.index, ue = V[0], we = ee.slice(0, se), Te = ee.slice(se + ue.length), be = J + ee.length;
751
+ m && be > m.reach && (m.reach = be);
752
+ var ce = T.prev;
753
+ we && (ce = P(o, ce, we), J += we.length), K(o, ce, le);
754
+ var Ye = new g(w, I ? l.tokenize(ue, I) : ue, ve, ue);
755
+ if (T = P(o, ce, Ye), Te && P(o, T, Te), le > 1) {
756
756
  var ye = {
757
- cause: v + "," + S,
757
+ cause: w + "," + _,
758
758
  reach: be
759
759
  };
760
- w(o, i, d, O.prev, W, ye), g && ye.reach > g.reach && (g.reach = ye.reach);
760
+ A(i, o, u, T.prev, J, ye), m && ye.reach > m.reach && (m.reach = ye.reach);
761
761
  }
762
762
  }
763
763
  }
764
764
  }
765
765
  }
766
766
  }
767
- function L() {
768
- var o = { value: null, prev: null, next: null }, i = { value: null, prev: o, next: null };
769
- o.next = i, this.head = o, this.tail = i, this.length = 0;
767
+ function k() {
768
+ var i = { value: null, prev: null, next: null }, o = { value: null, prev: i, next: null };
769
+ i.next = o, this.head = i, this.tail = o, this.length = 0;
770
770
  }
771
- function P(o, i, d) {
772
- var m = i.next, s = { value: d, prev: i, next: m };
773
- return i.next = s, m.prev = s, o.length++, s;
771
+ function P(i, o, u) {
772
+ var d = o.next, p = { value: u, prev: o, next: d };
773
+ return o.next = p, d.prev = p, i.length++, p;
774
774
  }
775
- function x(o, i, d) {
776
- for (var m = i.next, s = 0; s < d && m !== o.tail; s++)
777
- m = m.next;
778
- i.next = m, m.prev = i, o.length -= s;
775
+ function K(i, o, u) {
776
+ for (var d = o.next, p = 0; p < u && d !== i.tail; p++)
777
+ d = d.next;
778
+ o.next = d, d.prev = o, i.length -= p;
779
779
  }
780
- function j(o) {
781
- for (var i = [], d = o.head.next; d !== o.tail; )
782
- i.push(d.value), d = d.next;
783
- return i;
780
+ function x(i) {
781
+ for (var o = [], u = i.head.next; u !== i.tail; )
782
+ o.push(u.value), u = u.next;
783
+ return o;
784
784
  }
785
- if (!r.document)
786
- return r.addEventListener && (l.disableWorkerMessageHandler || r.addEventListener("message", function(o) {
787
- var i = JSON.parse(o.data), d = i.language, m = i.code, s = i.immediateClose;
788
- r.postMessage(l.highlight(m, l.languages[d], d)), s && r.close();
785
+ if (!a.document)
786
+ return a.addEventListener && (l.disableWorkerMessageHandler || a.addEventListener("message", function(i) {
787
+ var o = JSON.parse(i.data), u = o.language, d = o.code, p = o.immediateClose;
788
+ a.postMessage(l.highlight(d, l.languages[u], u)), p && a.close();
789
789
  }, !1)), l;
790
- var A = l.util.currentScript();
791
- A && (l.filename = A.src, A.hasAttribute("data-manual") && (l.manual = !0));
792
- function b() {
790
+ var b = l.util.currentScript();
791
+ b && (l.filename = b.src, b.hasAttribute("data-manual") && (l.manual = !0));
792
+ function S() {
793
793
  l.manual || l.highlightAll();
794
794
  }
795
795
  if (!l.manual) {
796
- var C = document.readyState;
797
- C === "loading" || C === "interactive" && A && A.defer ? document.addEventListener("DOMContentLoaded", b) : window.requestAnimationFrame ? window.requestAnimationFrame(b) : window.setTimeout(b, 16);
796
+ var q = document.readyState;
797
+ q === "loading" || q === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
798
798
  }
799
799
  return l;
800
800
  }(n);
@@ -875,8 +875,8 @@ var Re = Be.exports, ze = { exports: {} };
875
875
  },
876
876
  /&#x?[\da-f]{1,8};/i
877
877
  ]
878
- }, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(r) {
879
- r.type === "entity" && (r.attributes.title = r.content.replace(/&amp;/, "&"));
878
+ }, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(a) {
879
+ a.type === "entity" && (a.attributes.title = a.content.replace(/&amp;/, "&"));
880
880
  }), Object.defineProperty(t.languages.markup.tag, "addInlined", {
881
881
  /**
882
882
  * Adds an inlined language to markup.
@@ -889,31 +889,31 @@ var Re = Be.exports, ze = { exports: {} };
889
889
  * @example
890
890
  * addInlined('style', 'css');
891
891
  */
892
- value: function(r, a) {
893
- var p = {};
894
- p["language-" + a] = {
892
+ value: function(a, r) {
893
+ var c = {};
894
+ c["language-" + r] = {
895
895
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
896
896
  lookbehind: !0,
897
- inside: t.languages[a]
898
- }, p.cdata = /^<!\[CDATA\[|\]\]>$/i;
899
- var u = {
897
+ inside: t.languages[r]
898
+ }, c.cdata = /^<!\[CDATA\[|\]\]>$/i;
899
+ var s = {
900
900
  "included-cdata": {
901
901
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
902
- inside: p
902
+ inside: c
903
903
  }
904
904
  };
905
- u["language-" + a] = {
905
+ s["language-" + r] = {
906
906
  pattern: /[\s\S]+/,
907
- inside: t.languages[a]
907
+ inside: t.languages[r]
908
908
  };
909
909
  var l = {};
910
- l[r] = {
910
+ l[a] = {
911
911
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
912
- return r;
912
+ return a;
913
913
  }), "i"),
914
914
  lookbehind: !0,
915
915
  greedy: !0,
916
- inside: u
916
+ inside: s
917
917
  }, t.languages.insertBefore("markup", "cdata", l);
918
918
  }
919
919
  }), Object.defineProperty(t.languages.markup.tag, "addAttribute", {
@@ -928,10 +928,10 @@ var Re = Be.exports, ze = { exports: {} };
928
928
  * @example
929
929
  * addAttribute('style', 'css');
930
930
  */
931
- value: function(r, a) {
931
+ value: function(a, r) {
932
932
  t.languages.markup.tag.inside["special-attr"].push({
933
933
  pattern: RegExp(
934
- /(^|["'\s])/.source + "(?:" + r + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
934
+ /(^|["'\s])/.source + "(?:" + a + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
935
935
  "i"
936
936
  ),
937
937
  lookbehind: !0,
@@ -943,8 +943,8 @@ var Re = Be.exports, ze = { exports: {} };
943
943
  value: {
944
944
  pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
945
945
  lookbehind: !0,
946
- alias: [a, "language-" + a],
947
- inside: t.languages[a]
946
+ alias: [r, "language-" + r],
947
+ inside: t.languages[r]
948
948
  },
949
949
  punctuation: [
950
950
  {
@@ -958,12 +958,12 @@ var Re = Be.exports, ze = { exports: {} };
958
958
  }
959
959
  });
960
960
  }
961
- }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(r) {
962
- var a = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
963
- r.languages.css = {
961
+ }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(a) {
962
+ var r = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
963
+ a.languages.css = {
964
964
  comment: /\/\*[\s\S]*?\*\//,
965
965
  atrule: {
966
- pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + a.source + ")*?" + /(?:;|(?=\s*\{))/.source),
966
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + r.source + ")*?" + /(?:;|(?=\s*\{))/.source),
967
967
  inside: {
968
968
  rule: /^@[\w-]+/,
969
969
  "selector-function-argument": {
@@ -980,23 +980,23 @@ var Re = Be.exports, ze = { exports: {} };
980
980
  },
981
981
  url: {
982
982
  // https://drafts.csswg.org/css-values-3/#urls
983
- pattern: RegExp("\\burl\\((?:" + a.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
983
+ pattern: RegExp("\\burl\\((?:" + r.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
984
984
  greedy: !0,
985
985
  inside: {
986
986
  function: /^url/i,
987
987
  punctuation: /^\(|\)$/,
988
988
  string: {
989
- pattern: RegExp("^" + a.source + "$"),
989
+ pattern: RegExp("^" + r.source + "$"),
990
990
  alias: "url"
991
991
  }
992
992
  }
993
993
  },
994
994
  selector: {
995
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + a.source + ")*(?=\\s*\\{)"),
995
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + r.source + ")*(?=\\s*\\{)"),
996
996
  lookbehind: !0
997
997
  },
998
998
  string: {
999
- pattern: a,
999
+ pattern: r,
1000
1000
  greedy: !0
1001
1001
  },
1002
1002
  property: {
@@ -1009,9 +1009,9 @@ var Re = Be.exports, ze = { exports: {} };
1009
1009
  lookbehind: !0
1010
1010
  },
1011
1011
  punctuation: /[(){};:,]/
1012
- }, r.languages.css.atrule.inside.rest = r.languages.css;
1013
- var p = r.languages.markup;
1014
- p && (p.tag.addInlined("style", "css"), p.tag.addAttribute("style", "css"));
1012
+ }, a.languages.css.atrule.inside.rest = a.languages.css;
1013
+ var c = a.languages.markup;
1014
+ c && (c.tag.addInlined("style", "css"), c.tag.addAttribute("style", "css"));
1015
1015
  }(t), t.languages.clike = {
1016
1016
  comment: [
1017
1017
  {
@@ -1176,9 +1176,9 @@ var Re = Be.exports, ze = { exports: {} };
1176
1176
  if (typeof t > "u" || typeof document > "u")
1177
1177
  return;
1178
1178
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1179
- var r = "Loading…", a = function(A, b) {
1180
- return "✖ Error " + A + " while fetching file: " + b;
1181
- }, p = "✖ Error: File does not exist or is empty", u = {
1179
+ var a = "Loading…", r = function(b, S) {
1180
+ return "✖ Error " + b + " while fetching file: " + S;
1181
+ }, c = "✖ Error: File does not exist or is empty", s = {
1182
1182
  js: "javascript",
1183
1183
  py: "python",
1184
1184
  rb: "ruby",
@@ -1188,52 +1188,52 @@ var Re = Be.exports, ze = { exports: {} };
1188
1188
  bat: "batch",
1189
1189
  h: "c",
1190
1190
  tex: "latex"
1191
- }, l = "data-src-status", c = "loading", y = "loaded", w = "failed", L = "pre[data-src]:not([" + l + '="' + y + '"]):not([' + l + '="' + c + '"])';
1192
- function P(A, b, C) {
1193
- var o = new XMLHttpRequest();
1194
- o.open("GET", A, !0), o.onreadystatechange = function() {
1195
- o.readyState == 4 && (o.status < 400 && o.responseText ? b(o.responseText) : o.status >= 400 ? C(a(o.status, o.statusText)) : C(p));
1196
- }, o.send(null);
1191
+ }, l = "data-src-status", g = "loading", h = "loaded", A = "failed", k = "pre[data-src]:not([" + l + '="' + h + '"]):not([' + l + '="' + g + '"])';
1192
+ function P(b, S, q) {
1193
+ var i = new XMLHttpRequest();
1194
+ i.open("GET", b, !0), i.onreadystatechange = function() {
1195
+ i.readyState == 4 && (i.status < 400 && i.responseText ? S(i.responseText) : i.status >= 400 ? q(r(i.status, i.statusText)) : q(c));
1196
+ }, i.send(null);
1197
1197
  }
1198
- function x(A) {
1199
- var b = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(A || "");
1200
- if (b) {
1201
- var C = Number(b[1]), o = b[2], i = b[3];
1202
- return o ? i ? [C, Number(i)] : [C, void 0] : [C, C];
1198
+ function K(b) {
1199
+ var S = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
1200
+ if (S) {
1201
+ var q = Number(S[1]), i = S[2], o = S[3];
1202
+ return i ? o ? [q, Number(o)] : [q, void 0] : [q, q];
1203
1203
  }
1204
1204
  }
1205
- t.hooks.add("before-highlightall", function(A) {
1206
- A.selector += ", " + L;
1207
- }), t.hooks.add("before-sanity-check", function(A) {
1208
- var b = (
1205
+ t.hooks.add("before-highlightall", function(b) {
1206
+ b.selector += ", " + k;
1207
+ }), t.hooks.add("before-sanity-check", function(b) {
1208
+ var S = (
1209
1209
  /** @type {HTMLPreElement} */
1210
- A.element
1210
+ b.element
1211
1211
  );
1212
- if (b.matches(L)) {
1213
- A.code = "", b.setAttribute(l, c);
1214
- var C = b.appendChild(document.createElement("CODE"));
1215
- C.textContent = r;
1216
- var o = b.getAttribute("data-src"), i = A.language;
1217
- if (i === "none") {
1218
- var d = (/\.(\w+)$/.exec(o) || [, "none"])[1];
1219
- i = u[d] || d;
1212
+ if (S.matches(k)) {
1213
+ b.code = "", S.setAttribute(l, g);
1214
+ var q = S.appendChild(document.createElement("CODE"));
1215
+ q.textContent = a;
1216
+ var i = S.getAttribute("data-src"), o = b.language;
1217
+ if (o === "none") {
1218
+ var u = (/\.(\w+)$/.exec(i) || [, "none"])[1];
1219
+ o = s[u] || u;
1220
1220
  }
1221
- t.util.setLanguage(C, i), t.util.setLanguage(b, i);
1222
- var m = t.plugins.autoloader;
1223
- m && m.loadLanguages(i), P(
1224
- o,
1225
- function(s) {
1226
- b.setAttribute(l, y);
1227
- var g = x(b.getAttribute("data-range"));
1228
- if (g) {
1229
- var v = s.split(/\r\n?|\n/g), f = g[0], S = g[1] == null ? v.length : g[1];
1230
- f < 0 && (f += v.length), f = Math.max(0, Math.min(f - 1, v.length)), S < 0 && (S += v.length), S = Math.max(0, Math.min(S, v.length)), s = v.slice(f, S).join(`
1231
- `), b.hasAttribute("data-start") || b.setAttribute("data-start", String(f + 1));
1221
+ t.util.setLanguage(q, o), t.util.setLanguage(S, o);
1222
+ var d = t.plugins.autoloader;
1223
+ d && d.loadLanguages(o), P(
1224
+ i,
1225
+ function(p) {
1226
+ S.setAttribute(l, h);
1227
+ var m = K(S.getAttribute("data-range"));
1228
+ if (m) {
1229
+ var w = p.split(/\r\n?|\n/g), f = m[0], _ = m[1] == null ? w.length : m[1];
1230
+ f < 0 && (f += w.length), f = Math.max(0, Math.min(f - 1, w.length)), _ < 0 && (_ += w.length), _ = Math.max(0, Math.min(_, w.length)), p = w.slice(f, _).join(`
1231
+ `), S.hasAttribute("data-start") || S.setAttribute("data-start", String(f + 1));
1232
1232
  }
1233
- C.textContent = s, t.highlightElement(C);
1233
+ q.textContent = p, t.highlightElement(q);
1234
1234
  },
1235
- function(s) {
1236
- b.setAttribute(l, w), C.textContent = s;
1235
+ function(p) {
1236
+ S.setAttribute(l, A), q.textContent = p;
1237
1237
  }
1238
1238
  );
1239
1239
  }
@@ -1245,19 +1245,19 @@ var Re = Be.exports, ze = { exports: {} };
1245
1245
  *
1246
1246
  * @param {ParentNode} [container=document]
1247
1247
  */
1248
- highlight: function(A) {
1249
- for (var b = (A || document).querySelectorAll(L), C = 0, o; o = b[C++]; )
1250
- t.highlightElement(o);
1248
+ highlight: function(b) {
1249
+ for (var S = (b || document).querySelectorAll(k), q = 0, i; i = S[q++]; )
1250
+ t.highlightElement(i);
1251
1251
  }
1252
1252
  };
1253
- var j = !1;
1253
+ var x = !1;
1254
1254
  t.fileHighlight = function() {
1255
- j || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), j = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
1255
+ x || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), x = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
1256
1256
  };
1257
1257
  }();
1258
1258
  })(ze);
1259
1259
  var wt = ze.exports;
1260
- const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
1260
+ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ G({
1261
1261
  __name: "CodeBlock",
1262
1262
  props: {
1263
1263
  codeBlockIndex: {
@@ -1278,47 +1278,46 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
1278
1278
  }
1279
1279
  },
1280
1280
  setup(e) {
1281
- const n = e;
1282
1281
  de.manual = !0;
1283
- const t = J(!1), r = Object.keys(Re.languages).reduce((c, y) => {
1284
- const w = Re.languages[y].alias || [];
1285
- return [...c, y, ...Array.isArray(w) ? w : [w]];
1282
+ const n = e, t = U(!1), a = Object.keys(Re.languages).reduce((g, h) => {
1283
+ const A = Re.languages[h].alias || [];
1284
+ return [...g, h, ...Array.isArray(A) ? A : [A]];
1286
1285
  }, []).sort();
1287
- function a(c) {
1288
- t.value = !0, de.languages[c.language] || console.warn(`Prism: the language “${c.language}” isn’t enabled.`), c.preElement.classList.contains(`language-${c.language}`) || c.preElement.classList.add(`language-${c.language}`), c.codeElement.innerHTML = p(c.code), de.highlightElement(c.codeElement), t.value = !1;
1286
+ function r(g) {
1287
+ t.value = !0, de.languages[g.language] || console.warn(`Prism: the language “${g.language}” isn’t enabled.`), g.preElement.classList.contains(`language-${g.language}`) || g.preElement.classList.add(`language-${g.language}`), g.codeElement.innerHTML = c(g.code), de.highlightElement(g.codeElement), t.value = !1;
1289
1288
  }
1290
- const p = (c) => c.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#039;"), u = E(() => `document-code-block-${n.codeBlockIndex}`), l = E(() => {
1291
- var c, y;
1292
- const w = ((y = (c = n.lines) == null ? void 0 : c.flatMap((L) => L.text)) == null ? void 0 : y.join("")) || "";
1293
- return w.endsWith(`
1294
- `) && !n.isSingleLine ? w.slice(0, -1) : w;
1289
+ const c = (g) => g.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#039;"), s = L(() => `document-code-block-${n.codeBlockIndex}`), l = L(() => {
1290
+ var g, h;
1291
+ const A = ((h = (g = n.lines) == null ? void 0 : g.flatMap((k) => k.text)) == null ? void 0 : h.join("")) || "";
1292
+ return A.endsWith(`
1293
+ `) && !n.isSingleLine ? A.slice(0, -1) : A;
1295
1294
  });
1296
- return ge(() => n.lang, async (c) => {
1297
- if (r.includes(c))
1295
+ return ge(() => n.lang, async (g) => {
1296
+ if (a.includes(g))
1298
1297
  try {
1299
1298
  await import(
1300
1299
  /* @vite-ignore */
1301
- `../../../node_modules/prismjs/components/prism-${c}.min.js`
1300
+ `../../../node_modules/prismjs/components/prism-${g}.min.js`
1302
1301
  );
1303
1302
  } catch {
1304
- console.warn(`Prism does not have a language file for '${c}'`);
1303
+ console.warn(`Prism does not have a language file for '${g}'`);
1305
1304
  }
1306
1305
  de.highlightAll();
1307
- }, { immediate: !0 }), (c, y) => {
1308
- const w = I("KCodeBlock");
1309
- return h(), T(w, {
1310
- id: u.value,
1306
+ }, { immediate: !0 }), (g, h) => {
1307
+ const A = $("KCodeBlock");
1308
+ return v(), F(A, {
1309
+ id: s.value,
1311
1310
  class: "document-code-block",
1312
1311
  code: l.value,
1313
1312
  "is-processing": t.value,
1314
1313
  "is-single-line": e.isSingleLine,
1315
1314
  language: e.lang,
1316
1315
  theme: "light",
1317
- onCodeBlockRender: a
1316
+ onCodeBlockRender: r
1318
1317
  }, null, 8, ["id", "code", "is-processing", "is-single-line", "language"]);
1319
1318
  };
1320
1319
  }
1321
- }), yt = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-19aebd59"]]), kt = /* @__PURE__ */ $({
1320
+ }), yt = /* @__PURE__ */ B(bt, [["__scopeId", "data-v-19aebd59"]]), kt = /* @__PURE__ */ G({
1322
1321
  __name: "Emphasis",
1323
1322
  props: {
1324
1323
  level: {
@@ -1334,14 +1333,14 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
1334
1333
  },
1335
1334
  setup(e) {
1336
1335
  const n = e.level === 1 ? "em" : "strong";
1337
- return (t, r) => (h(), T(Y(k(n)), null, {
1338
- default: _(() => [
1336
+ return (t, a) => (v(), F(Y(y(n)), null, {
1337
+ default: D(() => [
1339
1338
  z(t.$slots, "default")
1340
1339
  ]),
1341
1340
  _: 3
1342
1341
  }));
1343
1342
  }
1344
- }), xt = /* @__PURE__ */ $({
1343
+ }), xt = /* @__PURE__ */ G({
1345
1344
  __name: "Heading",
1346
1345
  props: {
1347
1346
  level: {
@@ -1360,15 +1359,15 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
1360
1359
  }
1361
1360
  },
1362
1361
  setup(e) {
1363
- const n = e, t = `${n.slug}`, r = `h${n.level}`;
1364
- return (a, p) => (h(), T(Y(r), { id: t }, {
1365
- default: _(() => [
1366
- z(a.$slots, "default", {}, void 0, !0)
1362
+ const n = e, t = `${n.slug}`, a = `h${n.level}`;
1363
+ return (r, c) => (v(), F(Y(a), { id: t }, {
1364
+ default: D(() => [
1365
+ z(r.$slots, "default", {}, void 0, !0)
1367
1366
  ]),
1368
1367
  _: 3
1369
1368
  }));
1370
1369
  }
1371
- }), St = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-9ef4ad64"]]), _t = ["alt", "src", "title"], At = /* @__PURE__ */ $({
1370
+ }), St = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-9ef4ad64"]]), _t = ["alt", "src", "title"], At = /* @__PURE__ */ G({
1372
1371
  __name: "Image",
1373
1372
  props: {
1374
1373
  url: {
@@ -1385,29 +1384,29 @@ const de = /* @__PURE__ */ vt(wt), bt = /* @__PURE__ */ $({
1385
1384
  }
1386
1385
  },
1387
1386
  setup(e) {
1388
- return (n, t) => (h(), q("img", {
1387
+ return (n, t) => (v(), C("img", {
1389
1388
  alt: e.alt,
1390
1389
  src: e.url,
1391
1390
  title: e.title
1392
1391
  }, null, 8, _t));
1393
1392
  }
1394
- }), Dt = /* @__PURE__ */ B(At, [["__scopeId", "data-v-13314abe"]]), qt = {};
1393
+ }), qt = /* @__PURE__ */ B(At, [["__scopeId", "data-v-13314abe"]]), Dt = {};
1395
1394
  function Ct(e, n) {
1396
- return h(), q("hr");
1395
+ return v(), C("hr");
1397
1396
  }
1398
- const Tt = /* @__PURE__ */ B(qt, [["render", Ct], ["__scopeId", "data-v-b6e25b56"]]), jt = {};
1397
+ const Tt = /* @__PURE__ */ B(Dt, [["render", Ct], ["__scopeId", "data-v-b6e25b56"]]), jt = {};
1399
1398
  function Ft(e, n) {
1400
- return h(), q("s", null, [
1399
+ return v(), C("s", null, [
1401
1400
  z(e.$slots, "default")
1402
1401
  ]);
1403
1402
  }
1404
1403
  const Rt = /* @__PURE__ */ B(jt, [["render", Ft]]), Nt = {};
1405
1404
  function Et(e, n) {
1406
- return h(), q("table", null, [
1405
+ return v(), C("table", null, [
1407
1406
  z(e.$slots, "default", {}, void 0, !0)
1408
1407
  ]);
1409
1408
  }
1410
- const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730"]]), Pt = /* @__PURE__ */ $({
1409
+ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730"]]), Pt = /* @__PURE__ */ G({
1411
1410
  __name: "TableRow",
1412
1411
  props: {
1413
1412
  section: {
@@ -1418,16 +1417,16 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
1418
1417
  setup(e) {
1419
1418
  const n = e;
1420
1419
  let t;
1421
- return n.section === Z.header ? t = "thead" : n.section === Z.body ? t = "tbody" : n.section === Z.footer && (t = "tfoot"), (r, a) => (h(), T(Y(k(t)), null, {
1422
- default: _(() => [
1423
- R("tr", null, [
1424
- z(r.$slots, "default", {}, void 0, !0)
1420
+ return n.section === Z.header ? t = "thead" : n.section === Z.body ? t = "tbody" : n.section === Z.footer && (t = "tfoot"), (a, r) => (v(), F(Y(y(t)), null, {
1421
+ default: D(() => [
1422
+ N("tr", null, [
1423
+ z(a.$slots, "default", {}, void 0, !0)
1425
1424
  ])
1426
1425
  ]),
1427
1426
  _: 3
1428
1427
  }));
1429
1428
  }
1430
- }), Ne = /* @__PURE__ */ B(Pt, [["__scopeId", "data-v-90ab3ded"]]), It = /* @__PURE__ */ $({
1429
+ }), Ne = /* @__PURE__ */ B(Pt, [["__scopeId", "data-v-90ab3ded"]]), It = /* @__PURE__ */ G({
1431
1430
  __name: "TableCell",
1432
1431
  props: {
1433
1432
  alignment: {
@@ -1441,25 +1440,25 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
1441
1440
  },
1442
1441
  setup(e) {
1443
1442
  var n;
1444
- const t = e, r = ((n = t.parent) == null ? void 0 : n.section) === Z.header ? "th" : "td";
1445
- let a;
1446
- return t.alignment === pe.center ? a = "align-center" : t.alignment === pe.right && (a = "align-right"), (p, u) => (h(), T(Y(k(r)), {
1447
- class: _e(k(a))
1443
+ const t = e, a = ((n = t.parent) == null ? void 0 : n.section) === Z.header ? "th" : "td";
1444
+ let r;
1445
+ return t.alignment === pe.center ? r = "align-center" : t.alignment === pe.right && (r = "align-right"), (c, s) => (v(), F(Y(y(a)), {
1446
+ class: _e(y(r))
1448
1447
  }, {
1449
- default: _(() => [
1450
- z(p.$slots, "default", {}, void 0, !0)
1448
+ default: D(() => [
1449
+ z(c.$slots, "default", {}, void 0, !0)
1451
1450
  ]),
1452
1451
  _: 3
1453
1452
  }, 8, ["class"]));
1454
1453
  }
1455
- }), $t = /* @__PURE__ */ B(It, [["__scopeId", "data-v-6fde1a24"]]), Gt = ["checked"], Ot = /* @__PURE__ */ $({
1454
+ }), $t = /* @__PURE__ */ B(It, [["__scopeId", "data-v-6fde1a24"]]), Gt = ["checked"], Ot = /* @__PURE__ */ G({
1456
1455
  __name: "TaskCheckbox",
1457
1456
  props: {
1458
1457
  checked: { type: Boolean }
1459
1458
  },
1460
1459
  setup(e) {
1461
- const n = J(e.checked);
1462
- return (t, r) => (h(), q("input", {
1460
+ const n = U(e.checked);
1461
+ return (t, a) => (v(), C("input", {
1463
1462
  "aria-label": "Display-only checkbox for task",
1464
1463
  checked: n.value,
1465
1464
  type: "checkbox"
@@ -1467,7 +1466,7 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
1467
1466
  }
1468
1467
  }), Mt = { key: 0 }, Bt = { key: 1 }, zt = {
1469
1468
  inheritAttrs: !1
1470
- }, Ht = /* @__PURE__ */ $({
1469
+ }, Ht = /* @__PURE__ */ G({
1471
1470
  ...zt,
1472
1471
  __name: "Text",
1473
1472
  props: {
@@ -1485,25 +1484,25 @@ const Lt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
1485
1484
  }
1486
1485
  },
1487
1486
  setup(e) {
1488
- return (n, t) => (h(), q(et, null, [
1489
- G(N(e.text), 1),
1490
- e.appendSpace ? (h(), q("span", Mt, " ")) : H("", !0),
1491
- e.hardBreak ? (h(), q("br", Bt)) : H("", !0)
1487
+ return (n, t) => (v(), C(et, null, [
1488
+ O(E(e.text), 1),
1489
+ e.appendSpace ? (v(), C("span", Mt, " ")) : H("", !0),
1490
+ e.hardBreak ? (v(), C("br", Bt)) : H("", !0)
1492
1491
  ], 64));
1493
1492
  }
1494
1493
  }), Kt = {};
1495
1494
  function Vt(e, n) {
1496
- return h(), q("span", null, [
1495
+ return v(), C("span", null, [
1497
1496
  z(e.$slots, "default")
1498
1497
  ]);
1499
1498
  }
1500
1499
  const Ut = /* @__PURE__ */ B(Kt, [["render", Vt]]), Jt = {};
1501
1500
  function Wt(e, n) {
1502
- return h(), q("p", null, [
1501
+ return v(), C("p", null, [
1503
1502
  z(e.$slots, "default", {}, void 0, !0)
1504
1503
  ]);
1505
1504
  }
1506
- const Xt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530"]]), Qt = /* @__PURE__ */ $({
1505
+ const Qt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530"]]), Xt = /* @__PURE__ */ G({
1507
1506
  __name: "List",
1508
1507
  props: {
1509
1508
  isOrdered: {
@@ -1517,22 +1516,22 @@ const Xt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530
1517
1516
  },
1518
1517
  setup(e) {
1519
1518
  const n = e.isOrdered ? "ol" : "ul";
1520
- return (t, r) => (h(), T(Y(k(n)), {
1519
+ return (t, a) => (v(), F(Y(y(n)), {
1521
1520
  class: _e({ "has-task-items": e.hasTaskItems })
1522
1521
  }, {
1523
- default: _(() => [
1522
+ default: D(() => [
1524
1523
  z(t.$slots, "default", {}, void 0, !0)
1525
1524
  ]),
1526
1525
  _: 3
1527
1526
  }, 8, ["class"]));
1528
1527
  }
1529
- }), Zt = /* @__PURE__ */ B(Qt, [["__scopeId", "data-v-7555911f"]]), Yt = {};
1528
+ }), Zt = /* @__PURE__ */ B(Xt, [["__scopeId", "data-v-7555911f"]]), Yt = {};
1530
1529
  function en(e, n) {
1531
- return h(), q("li", null, [
1530
+ return v(), C("li", null, [
1532
1531
  z(e.$slots, "default", {}, void 0, !0)
1533
1532
  ]);
1534
1533
  }
1535
- const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78"]]), nn = ["href", "title"], rn = /* @__PURE__ */ $({
1534
+ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78"]]), nn = ["href", "title"], rn = /* @__PURE__ */ G({
1536
1535
  __name: "Link",
1537
1536
  props: {
1538
1537
  href: {
@@ -1545,7 +1544,7 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
1545
1544
  }
1546
1545
  },
1547
1546
  setup(e) {
1548
- return (n, t) => (h(), q("a", {
1547
+ return (n, t) => (v(), C("a", {
1549
1548
  href: e.href,
1550
1549
  rel: "noreferrer noopener nofollow",
1551
1550
  title: e.title
@@ -1559,12 +1558,12 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
1559
1558
  code_block: yt,
1560
1559
  emphasis: kt,
1561
1560
  heading: St,
1562
- image: Dt,
1561
+ image: qt,
1563
1562
  break: Tt,
1564
1563
  link: an,
1565
1564
  list: Zt,
1566
1565
  list_item: tn,
1567
- paragraph: Xt,
1566
+ paragraph: Qt,
1568
1567
  strikethrough: Rt,
1569
1568
  table: Lt,
1570
1569
  table_header: Ne,
@@ -1578,41 +1577,41 @@ function ln(e) {
1578
1577
  Ee.indexOf(e) === -1 && (Ee.push(e), console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`));
1579
1578
  }
1580
1579
  function xe(e, n) {
1581
- return e.map((t, r) => {
1582
- var a;
1580
+ return e.map((t, a) => {
1581
+ var r;
1583
1582
  if (!t)
1584
1583
  return null;
1585
1584
  const {
1586
- type: p,
1587
- children: u,
1585
+ type: c,
1586
+ children: s,
1588
1587
  ...l
1589
- } = t, c = on[t.type];
1590
- if (!c)
1591
- return ln(p), null;
1588
+ } = t, g = on[t.type];
1589
+ if (!g)
1590
+ return ln(c), null;
1592
1591
  if (lt(t) && (t.section = Z.header), ct(t)) {
1593
- const y = (a = t.children) == null ? void 0 : a.some((w) => {
1594
- var L;
1595
- return (L = w.children) == null ? void 0 : L.some((P) => {
1596
- var x;
1597
- return (x = P.children) == null ? void 0 : x.some((j) => j.type === "task_checkbox");
1592
+ const h = (r = t.children) == null ? void 0 : r.some((A) => {
1593
+ var k;
1594
+ return (k = A.children) == null ? void 0 : k.some((P) => {
1595
+ var K;
1596
+ return (K = P.children) == null ? void 0 : K.some((x) => x.type === "task_checkbox");
1598
1597
  });
1599
1598
  });
1600
- return F(c, ke({
1601
- hasTaskItems: y
1599
+ return R(g, ke({
1600
+ hasTaskItems: h
1602
1601
  }, l, {
1603
1602
  parent: n
1604
1603
  }), {
1605
- default: () => u && xe(u, t)
1604
+ default: () => s && xe(s, t)
1606
1605
  });
1607
1606
  }
1608
- return (t == null ? void 0 : t.type) === "code_block" ? F(c, ke(l, {
1609
- lines: u,
1610
- isSingleLine: (u == null ? void 0 : u.length) && u.length === 1,
1611
- codeBlockIndex: r
1612
- }), null) : F(c, ke(l, {
1607
+ return (t == null ? void 0 : t.type) === "code_block" ? R(g, ke(l, {
1608
+ lines: s,
1609
+ isSingleLine: (s == null ? void 0 : s.length) && s.length === 1,
1610
+ codeBlockIndex: a
1611
+ }), null) : R(g, ke(l, {
1613
1612
  parent: n
1614
1613
  }), {
1615
- default: () => u && xe(u, t)
1614
+ default: () => s && xe(s, t)
1616
1615
  });
1617
1616
  });
1618
1617
  }
@@ -1632,9 +1631,9 @@ function dn() {
1632
1631
  return {
1633
1632
  hasRequiredProps: (e, n) => {
1634
1633
  let t = !0;
1635
- return e.forEach((r) => {
1636
- n.forEach((a) => {
1637
- r[a] || (t = !1);
1634
+ return e.forEach((a) => {
1635
+ n.forEach((r) => {
1636
+ a[r] || (t = !1);
1638
1637
  });
1639
1638
  }), t;
1640
1639
  }
@@ -1651,16 +1650,16 @@ function He(e, n = /* @__PURE__ */ new Map()) {
1651
1650
  if (!e)
1652
1651
  return e;
1653
1652
  const t = n || /* @__PURE__ */ new Map();
1654
- return e.map((r) => ut(r) ? gn(r, n) : (r.children && (r.children = He(r.children, t)), r));
1653
+ return e.map((a) => ut(a) ? gn(a, n) : (a.children && (a.children = He(a.children, t)), a));
1655
1654
  }
1656
1655
  function gn(e, n, t = "doc-heading-") {
1657
- var r;
1658
- const a = (r = e.children) == null ? void 0 : r[0], p = `level-${e.level}`, u = st(a) && a.text || p, l = n.get(u);
1659
- n.set(u, (l || 0) + 1);
1660
- const c = l && l > 1 ? `-${l}` : "", y = t + mn(u, c);
1656
+ var a;
1657
+ const r = (a = e.children) == null ? void 0 : a[0], c = `level-${e.level}`, s = st(r) && r.text || c, l = n.get(s);
1658
+ n.set(s, (l || 0) + 1);
1659
+ const g = l && l > 1 ? `-${l}` : "", h = t + mn(s, g);
1661
1660
  return {
1662
1661
  ...e,
1663
- slug: y
1662
+ slug: h
1664
1663
  };
1665
1664
  }
1666
1665
  const fn = {
@@ -1669,7 +1668,7 @@ const fn = {
1669
1668
  }, hn = {
1670
1669
  key: 1,
1671
1670
  "data-testid": "document-viewer-error"
1672
- }, vn = /* @__PURE__ */ $({
1671
+ }, vn = /* @__PURE__ */ G({
1673
1672
  __name: "DocumentViewer",
1674
1673
  props: {
1675
1674
  document: {
@@ -1679,12 +1678,12 @@ const fn = {
1679
1678
  },
1680
1679
  setup(e) {
1681
1680
  var n;
1682
- const t = e, { i18n: r } = pn.useI18n(), a = (c) => !c || Object.keys(c).length === 0 && c.constructor === Object, p = E(() => !a(t.document)), u = He((n = t.document) == null ? void 0 : n.children), l = () => {
1683
- var c;
1684
- return (c = t.document) != null && c.children ? xe(u) : null;
1681
+ const t = e, { i18n: a } = pn.useI18n(), r = (g) => !g || Object.keys(g).length === 0 && g.constructor === Object, c = L(() => !r(t.document)), s = He((n = t.document) == null ? void 0 : n.children), l = () => {
1682
+ var g;
1683
+ return (g = t.document) != null && g.children ? xe(s) : null;
1685
1684
  };
1686
- return (c, y) => (h(), q("div", fn, [
1687
- p.value ? (h(), T(l, { key: 0 })) : (h(), q("div", hn, N(k(r).t("documentViewer.error")), 1))
1685
+ return (g, h) => (v(), C("div", fn, [
1686
+ c.value ? (v(), F(l, { key: 0 })) : (v(), C("div", hn, E(y(a).t("documentViewer.error")), 1))
1688
1687
  ]));
1689
1688
  }
1690
1689
  }), wn = /* @__PURE__ */ B(vn, [["__scopeId", "data-v-1ab71c85"]]);
@@ -1706,34 +1705,34 @@ function kn(e) {
1706
1705
  return Array.isArray(e) ? e : Ke(e) ? [] : [e];
1707
1706
  }
1708
1707
  function xn(e, n) {
1709
- var t, r, a, p;
1708
+ var t, a, r, c;
1710
1709
  if (n)
1711
- for (p = Object.keys(n), t = 0, r = p.length; t < r; t += 1)
1712
- a = p[t], e[a] = n[a];
1710
+ for (c = Object.keys(n), t = 0, a = c.length; t < a; t += 1)
1711
+ r = c[t], e[r] = n[r];
1713
1712
  return e;
1714
1713
  }
1715
1714
  function Sn(e, n) {
1716
- var t = "", r;
1717
- for (r = 0; r < n; r += 1)
1715
+ var t = "", a;
1716
+ for (a = 0; a < n; a += 1)
1718
1717
  t += e;
1719
1718
  return t;
1720
1719
  }
1721
1720
  function _n(e) {
1722
1721
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1723
1722
  }
1724
- var An = Ke, Dn = yn, qn = kn, Cn = Sn, Tn = _n, jn = xn, De = {
1723
+ var An = Ke, qn = yn, Dn = kn, Cn = Sn, Tn = _n, jn = xn, qe = {
1725
1724
  isNothing: An,
1726
- isObject: Dn,
1727
- toArray: qn,
1725
+ isObject: qn,
1726
+ toArray: Dn,
1728
1727
  repeat: Cn,
1729
1728
  isNegativeZero: Tn,
1730
1729
  extend: jn
1731
1730
  };
1732
1731
  function Ve(e, n) {
1733
- var t = "", r = e.reason || "(unknown reason)";
1732
+ var t = "", a = e.reason || "(unknown reason)";
1734
1733
  return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
1735
1734
 
1736
- ` + e.mark.snippet), r + " " + t) : r;
1735
+ ` + e.mark.snippet), a + " " + t) : a;
1737
1736
  }
1738
1737
  function ae(e, n) {
1739
1738
  Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Ve(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
@@ -1743,7 +1742,7 @@ ae.prototype.constructor = ae;
1743
1742
  ae.prototype.toString = function(e) {
1744
1743
  return this.name + ": " + Ve(this, e);
1745
1744
  };
1746
- var Q = ae, Fn = [
1745
+ var X = ae, Fn = [
1747
1746
  "kind",
1748
1747
  "multi",
1749
1748
  "resolve",
@@ -1762,30 +1761,30 @@ var Q = ae, Fn = [
1762
1761
  function Nn(e) {
1763
1762
  var n = {};
1764
1763
  return e !== null && Object.keys(e).forEach(function(t) {
1765
- e[t].forEach(function(r) {
1766
- n[String(r)] = t;
1764
+ e[t].forEach(function(a) {
1765
+ n[String(a)] = t;
1767
1766
  });
1768
1767
  }), n;
1769
1768
  }
1770
1769
  function En(e, n) {
1771
1770
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1772
1771
  if (Fn.indexOf(t) === -1)
1773
- throw new Q('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1772
+ throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1774
1773
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1775
1774
  return !0;
1776
1775
  }, this.construct = n.construct || function(t) {
1777
1776
  return t;
1778
1777
  }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Nn(n.styleAliases || null), Rn.indexOf(this.kind) === -1)
1779
- throw new Q('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1778
+ throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1780
1779
  }
1781
1780
  var M = En;
1782
1781
  function Pe(e, n) {
1783
1782
  var t = [];
1784
- return e[n].forEach(function(r) {
1785
- var a = t.length;
1786
- t.forEach(function(p, u) {
1787
- p.tag === r.tag && p.kind === r.kind && p.multi === r.multi && (a = u);
1788
- }), t[a] = r;
1783
+ return e[n].forEach(function(a) {
1784
+ var r = t.length;
1785
+ t.forEach(function(c, s) {
1786
+ c.tag === a.tag && c.kind === a.kind && c.multi === a.multi && (r = s);
1787
+ }), t[r] = a;
1789
1788
  }), t;
1790
1789
  }
1791
1790
  function Ln() {
@@ -1801,11 +1800,11 @@ function Ln() {
1801
1800
  fallback: []
1802
1801
  }
1803
1802
  }, n, t;
1804
- function r(a) {
1805
- a.multi ? (e.multi[a.kind].push(a), e.multi.fallback.push(a)) : e[a.kind][a.tag] = e.fallback[a.tag] = a;
1803
+ function a(r) {
1804
+ r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
1806
1805
  }
1807
1806
  for (n = 0, t = arguments.length; n < t; n += 1)
1808
- arguments[n].forEach(r);
1807
+ arguments[n].forEach(a);
1809
1808
  return e;
1810
1809
  }
1811
1810
  function Se(e) {
@@ -1820,20 +1819,20 @@ Se.prototype.extend = function(e) {
1820
1819
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
1821
1820
  e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
1822
1821
  else
1823
- throw new Q("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1824
- n.forEach(function(a) {
1825
- if (!(a instanceof M))
1826
- throw new Q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1827
- if (a.loadKind && a.loadKind !== "scalar")
1828
- throw new Q("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1829
- if (a.multi)
1830
- throw new Q("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1831
- }), t.forEach(function(a) {
1832
- if (!(a instanceof M))
1833
- throw new Q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1822
+ throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1823
+ n.forEach(function(r) {
1824
+ if (!(r instanceof M))
1825
+ throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1826
+ if (r.loadKind && r.loadKind !== "scalar")
1827
+ throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1828
+ if (r.multi)
1829
+ throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1830
+ }), t.forEach(function(r) {
1831
+ if (!(r instanceof M))
1832
+ throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1834
1833
  });
1835
- var r = Object.create(Se.prototype);
1836
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Pe(r, "implicit"), r.compiledExplicit = Pe(r, "explicit"), r.compiledTypeMap = Ln(r.compiledImplicit, r.compiledExplicit), r;
1834
+ var a = Object.create(Se.prototype);
1835
+ return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Pe(a, "implicit"), a.compiledExplicit = Pe(a, "explicit"), a.compiledTypeMap = Ln(a.compiledImplicit, a.compiledExplicit), a;
1837
1836
  };
1838
1837
  var Pn = Se, In = new M("tag:yaml.org,2002:str", {
1839
1838
  kind: "scalar",
@@ -1926,64 +1925,64 @@ var Jn = new M("tag:yaml.org,2002:bool", {
1926
1925
  function Wn(e) {
1927
1926
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1928
1927
  }
1929
- function Xn(e) {
1928
+ function Qn(e) {
1930
1929
  return 48 <= e && e <= 55;
1931
1930
  }
1932
- function Qn(e) {
1931
+ function Xn(e) {
1933
1932
  return 48 <= e && e <= 57;
1934
1933
  }
1935
1934
  function Zn(e) {
1936
1935
  if (e === null)
1937
1936
  return !1;
1938
- var n = e.length, t = 0, r = !1, a;
1937
+ var n = e.length, t = 0, a = !1, r;
1939
1938
  if (!n)
1940
1939
  return !1;
1941
- if (a = e[t], (a === "-" || a === "+") && (a = e[++t]), a === "0") {
1940
+ if (r = e[t], (r === "-" || r === "+") && (r = e[++t]), r === "0") {
1942
1941
  if (t + 1 === n)
1943
1942
  return !0;
1944
- if (a = e[++t], a === "b") {
1943
+ if (r = e[++t], r === "b") {
1945
1944
  for (t++; t < n; t++)
1946
- if (a = e[t], a !== "_") {
1947
- if (a !== "0" && a !== "1")
1945
+ if (r = e[t], r !== "_") {
1946
+ if (r !== "0" && r !== "1")
1948
1947
  return !1;
1949
- r = !0;
1948
+ a = !0;
1950
1949
  }
1951
- return r && a !== "_";
1950
+ return a && r !== "_";
1952
1951
  }
1953
- if (a === "x") {
1952
+ if (r === "x") {
1954
1953
  for (t++; t < n; t++)
1955
- if (a = e[t], a !== "_") {
1954
+ if (r = e[t], r !== "_") {
1956
1955
  if (!Wn(e.charCodeAt(t)))
1957
1956
  return !1;
1958
- r = !0;
1957
+ a = !0;
1959
1958
  }
1960
- return r && a !== "_";
1959
+ return a && r !== "_";
1961
1960
  }
1962
- if (a === "o") {
1961
+ if (r === "o") {
1963
1962
  for (t++; t < n; t++)
1964
- if (a = e[t], a !== "_") {
1965
- if (!Xn(e.charCodeAt(t)))
1963
+ if (r = e[t], r !== "_") {
1964
+ if (!Qn(e.charCodeAt(t)))
1966
1965
  return !1;
1967
- r = !0;
1966
+ a = !0;
1968
1967
  }
1969
- return r && a !== "_";
1968
+ return a && r !== "_";
1970
1969
  }
1971
1970
  }
1972
- if (a === "_")
1971
+ if (r === "_")
1973
1972
  return !1;
1974
1973
  for (; t < n; t++)
1975
- if (a = e[t], a !== "_") {
1976
- if (!Qn(e.charCodeAt(t)))
1974
+ if (r = e[t], r !== "_") {
1975
+ if (!Xn(e.charCodeAt(t)))
1977
1976
  return !1;
1978
- r = !0;
1977
+ a = !0;
1979
1978
  }
1980
- return !(!r || a === "_");
1979
+ return !(!a || r === "_");
1981
1980
  }
1982
1981
  function Yn(e) {
1983
- var n = e, t = 1, r;
1984
- if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
1982
+ var n = e, t = 1, a;
1983
+ if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0")
1985
1984
  return 0;
1986
- if (r === "0") {
1985
+ if (a === "0") {
1987
1986
  if (n[1] === "b")
1988
1987
  return t * parseInt(n.slice(2), 2);
1989
1988
  if (n[1] === "x")
@@ -1994,7 +1993,7 @@ function Yn(e) {
1994
1993
  return t * parseInt(n, 10);
1995
1994
  }
1996
1995
  function er(e) {
1997
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !De.isNegativeZero(e);
1996
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !qe.isNegativeZero(e);
1998
1997
  }
1999
1998
  var tr = new M("tag:yaml.org,2002:int", {
2000
1999
  kind: "scalar",
@@ -2066,12 +2065,12 @@ function or(e, n) {
2066
2065
  case "camelcase":
2067
2066
  return "-.Inf";
2068
2067
  }
2069
- else if (De.isNegativeZero(e))
2068
+ else if (qe.isNegativeZero(e))
2070
2069
  return "-0.0";
2071
2070
  return t = e.toString(10), ir.test(t) ? t.replace("e", ".e") : t;
2072
2071
  }
2073
2072
  function lr(e) {
2074
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || De.isNegativeZero(e));
2073
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || qe.isNegativeZero(e));
2075
2074
  }
2076
2075
  var sr = new M("tag:yaml.org,2002:float", {
2077
2076
  kind: "scalar",
@@ -2096,17 +2095,17 @@ function dr(e) {
2096
2095
  return e === null ? !1 : Ue.exec(e) !== null || Je.exec(e) !== null;
2097
2096
  }
2098
2097
  function pr(e) {
2099
- var n, t, r, a, p, u, l, c = 0, y = null, w, L, P;
2098
+ var n, t, a, r, c, s, l, g = 0, h = null, A, k, P;
2100
2099
  if (n = Ue.exec(e), n === null && (n = Je.exec(e)), n === null)
2101
2100
  throw new Error("Date resolve error");
2102
- if (t = +n[1], r = +n[2] - 1, a = +n[3], !n[4])
2103
- return new Date(Date.UTC(t, r, a));
2104
- if (p = +n[4], u = +n[5], l = +n[6], n[7]) {
2105
- for (c = n[7].slice(0, 3); c.length < 3; )
2106
- c += "0";
2107
- c = +c;
2101
+ if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
2102
+ return new Date(Date.UTC(t, a, r));
2103
+ if (c = +n[4], s = +n[5], l = +n[6], n[7]) {
2104
+ for (g = n[7].slice(0, 3); g.length < 3; )
2105
+ g += "0";
2106
+ g = +g;
2108
2107
  }
2109
- return n[9] && (w = +n[10], L = +(n[11] || 0), y = (w * 60 + L) * 6e4, n[9] === "-" && (y = -y)), P = new Date(Date.UTC(t, r, a, p, u, l, c)), y && P.setTime(P.getTime() - y), P;
2108
+ return n[9] && (A = +n[10], k = +(n[11] || 0), h = (A * 60 + k) * 6e4, n[9] === "-" && (h = -h)), P = new Date(Date.UTC(t, a, r, c, s, l, g)), h && P.setTime(P.getTime() - h), P;
2110
2109
  }
2111
2110
  function mr(e) {
2112
2111
  return e.toISOString();
@@ -2124,31 +2123,31 @@ function fr(e) {
2124
2123
  var hr = new M("tag:yaml.org,2002:merge", {
2125
2124
  kind: "scalar",
2126
2125
  resolve: fr
2127
- }), qe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2126
+ }), De = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2128
2127
  \r`;
2129
2128
  function vr(e) {
2130
2129
  if (e === null)
2131
2130
  return !1;
2132
- var n, t, r = 0, a = e.length, p = qe;
2133
- for (t = 0; t < a; t++)
2134
- if (n = p.indexOf(e.charAt(t)), !(n > 64)) {
2131
+ var n, t, a = 0, r = e.length, c = De;
2132
+ for (t = 0; t < r; t++)
2133
+ if (n = c.indexOf(e.charAt(t)), !(n > 64)) {
2135
2134
  if (n < 0)
2136
2135
  return !1;
2137
- r += 6;
2136
+ a += 6;
2138
2137
  }
2139
- return r % 8 === 0;
2138
+ return a % 8 === 0;
2140
2139
  }
2141
2140
  function wr(e) {
2142
- var n, t, r = e.replace(/[\r\n=]/g, ""), a = r.length, p = qe, u = 0, l = [];
2143
- for (n = 0; n < a; n++)
2144
- n % 4 === 0 && n && (l.push(u >> 16 & 255), l.push(u >> 8 & 255), l.push(u & 255)), u = u << 6 | p.indexOf(r.charAt(n));
2145
- return t = a % 4 * 6, t === 0 ? (l.push(u >> 16 & 255), l.push(u >> 8 & 255), l.push(u & 255)) : t === 18 ? (l.push(u >> 10 & 255), l.push(u >> 2 & 255)) : t === 12 && l.push(u >> 4 & 255), new Uint8Array(l);
2141
+ var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, c = De, s = 0, l = [];
2142
+ for (n = 0; n < r; n++)
2143
+ n % 4 === 0 && n && (l.push(s >> 16 & 255), l.push(s >> 8 & 255), l.push(s & 255)), s = s << 6 | c.indexOf(a.charAt(n));
2144
+ return t = r % 4 * 6, t === 0 ? (l.push(s >> 16 & 255), l.push(s >> 8 & 255), l.push(s & 255)) : t === 18 ? (l.push(s >> 10 & 255), l.push(s >> 2 & 255)) : t === 12 && l.push(s >> 4 & 255), new Uint8Array(l);
2146
2145
  }
2147
2146
  function br(e) {
2148
- var n = "", t = 0, r, a, p = e.length, u = qe;
2149
- for (r = 0; r < p; r++)
2150
- r % 3 === 0 && r && (n += u[t >> 18 & 63], n += u[t >> 12 & 63], n += u[t >> 6 & 63], n += u[t & 63]), t = (t << 8) + e[r];
2151
- return a = p % 3, a === 0 ? (n += u[t >> 18 & 63], n += u[t >> 12 & 63], n += u[t >> 6 & 63], n += u[t & 63]) : a === 2 ? (n += u[t >> 10 & 63], n += u[t >> 4 & 63], n += u[t << 2 & 63], n += u[64]) : a === 1 && (n += u[t >> 2 & 63], n += u[t << 4 & 63], n += u[64], n += u[64]), n;
2147
+ var n = "", t = 0, a, r, c = e.length, s = De;
2148
+ for (a = 0; a < c; a++)
2149
+ a % 3 === 0 && a && (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]), t = (t << 8) + e[a];
2150
+ return r = c % 3, r === 0 ? (n += s[t >> 18 & 63], n += s[t >> 12 & 63], n += s[t >> 6 & 63], n += s[t & 63]) : r === 2 ? (n += s[t >> 10 & 63], n += s[t >> 4 & 63], n += s[t << 2 & 63], n += s[64]) : r === 1 && (n += s[t >> 2 & 63], n += s[t << 4 & 63], n += s[64], n += s[64]), n;
2152
2151
  }
2153
2152
  function yr(e) {
2154
2153
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
@@ -2163,20 +2162,20 @@ var kr = new M("tag:yaml.org,2002:binary", {
2163
2162
  function _r(e) {
2164
2163
  if (e === null)
2165
2164
  return !0;
2166
- var n = [], t, r, a, p, u, l = e;
2167
- for (t = 0, r = l.length; t < r; t += 1) {
2168
- if (a = l[t], u = !1, Sr.call(a) !== "[object Object]")
2165
+ var n = [], t, a, r, c, s, l = e;
2166
+ for (t = 0, a = l.length; t < a; t += 1) {
2167
+ if (r = l[t], s = !1, Sr.call(r) !== "[object Object]")
2169
2168
  return !1;
2170
- for (p in a)
2171
- if (xr.call(a, p))
2172
- if (!u)
2173
- u = !0;
2169
+ for (c in r)
2170
+ if (xr.call(r, c))
2171
+ if (!s)
2172
+ s = !0;
2174
2173
  else
2175
2174
  return !1;
2176
- if (!u)
2175
+ if (!s)
2177
2176
  return !1;
2178
- if (n.indexOf(p) === -1)
2179
- n.push(p);
2177
+ if (n.indexOf(c) === -1)
2178
+ n.push(c);
2180
2179
  else
2181
2180
  return !1;
2182
2181
  }
@@ -2185,29 +2184,29 @@ function _r(e) {
2185
2184
  function Ar(e) {
2186
2185
  return e !== null ? e : [];
2187
2186
  }
2188
- var Dr = new M("tag:yaml.org,2002:omap", {
2187
+ var qr = new M("tag:yaml.org,2002:omap", {
2189
2188
  kind: "sequence",
2190
2189
  resolve: _r,
2191
2190
  construct: Ar
2192
- }), qr = Object.prototype.toString;
2191
+ }), Dr = Object.prototype.toString;
2193
2192
  function Cr(e) {
2194
2193
  if (e === null)
2195
2194
  return !0;
2196
- var n, t, r, a, p, u = e;
2197
- for (p = new Array(u.length), n = 0, t = u.length; n < t; n += 1) {
2198
- if (r = u[n], qr.call(r) !== "[object Object]" || (a = Object.keys(r), a.length !== 1))
2195
+ var n, t, a, r, c, s = e;
2196
+ for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1) {
2197
+ if (a = s[n], Dr.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
2199
2198
  return !1;
2200
- p[n] = [a[0], r[a[0]]];
2199
+ c[n] = [r[0], a[r[0]]];
2201
2200
  }
2202
2201
  return !0;
2203
2202
  }
2204
2203
  function Tr(e) {
2205
2204
  if (e === null)
2206
2205
  return [];
2207
- var n, t, r, a, p, u = e;
2208
- for (p = new Array(u.length), n = 0, t = u.length; n < t; n += 1)
2209
- r = u[n], a = Object.keys(r), p[n] = [a[0], r[a[0]]];
2210
- return p;
2206
+ var n, t, a, r, c, s = e;
2207
+ for (c = new Array(s.length), n = 0, t = s.length; n < t; n += 1)
2208
+ a = s[n], r = Object.keys(a), c[n] = [r[0], a[r[0]]];
2209
+ return c;
2211
2210
  }
2212
2211
  var jr = new M("tag:yaml.org,2002:pairs", {
2213
2212
  kind: "sequence",
@@ -2238,7 +2237,7 @@ cr.extend({
2238
2237
  ],
2239
2238
  explicit: [
2240
2239
  kr,
2241
- Dr,
2240
+ qr,
2242
2241
  jr,
2243
2242
  Er
2244
2243
  ]
@@ -2250,7 +2249,7 @@ function Ie(e) {
2250
2249
  var Lr = new Array(256), Pr = new Array(256);
2251
2250
  for (var te = 0; te < 256; te++)
2252
2251
  Lr[te] = Ie(te) ? 1 : 0, Pr[te] = Ie(te);
2253
- const We = /* @__PURE__ */ $({
2252
+ const We = /* @__PURE__ */ G({
2254
2253
  __name: "PermissionsWrapper",
2255
2254
  props: {
2256
2255
  /**
@@ -2272,15 +2271,15 @@ const We = /* @__PURE__ */ $({
2272
2271
  }
2273
2272
  },
2274
2273
  setup(e) {
2275
- const n = e, t = J(void 0), r = E(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
2274
+ const n = e, t = U(void 0), a = L(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
2276
2275
  return ge(() => n.authFunction, async () => {
2277
2276
  t.value = await n.authFunction();
2278
- }, { immediate: !0 }), (a, p) => r.value ? z(a.$slots, "default", {
2277
+ }, { immediate: !0 }), (r, c) => a.value ? z(r.$slots, "default", {
2279
2278
  key: 0,
2280
2279
  isAllowed: t.value
2281
2280
  }) : H("", !0);
2282
2281
  }
2283
- }), Ir = (e) => (fe("data-v-cb31890c"), e = e(), he(), e), $r = { class: "documentation-display" }, Gr = { class: "document-meta" }, Or = { class: "document-title meta-section" }, Mr = /* @__PURE__ */ Ir(() => /* @__PURE__ */ R("span", { class: "document-title-extension" }, "md", -1)), Br = {
2282
+ }), Ir = (e) => (fe("data-v-cb31890c"), e = e(), he(), e), $r = { class: "documentation-display" }, Gr = { class: "document-meta" }, Or = { class: "document-title meta-section" }, Mr = /* @__PURE__ */ Ir(() => /* @__PURE__ */ N("span", { class: "document-title-extension" }, "md", -1)), Br = {
2284
2283
  key: 0,
2285
2284
  class: "document-status meta-section"
2286
2285
  }, zr = { class: "meta-label" }, Hr = {
@@ -2290,7 +2289,7 @@ const We = /* @__PURE__ */ $({
2290
2289
  key: 0,
2291
2290
  class: "markdown-content-loading",
2292
2291
  "data-testid": "markdown-content-loading"
2293
- }, Jr = { key: 1 }, Wr = /* @__PURE__ */ $({
2292
+ }, Jr = { key: 1 }, Wr = /* @__PURE__ */ G({
2294
2293
  __name: "DocumentationDisplay",
2295
2294
  props: {
2296
2295
  /**
@@ -2317,101 +2316,101 @@ const We = /* @__PURE__ */ $({
2317
2316
  },
2318
2317
  emits: ["add", "edit", "toggle-published"],
2319
2318
  setup(e, { emit: n }) {
2320
- const t = e, { i18n: r } = Ae.useI18n(), a = J(!0), p = E(() => {
2321
- var x, j, A, b, C;
2322
- return ((j = (x = t.selectedDocument) == null ? void 0 : x.document) == null ? void 0 : j.title) || ((C = (b = (A = t.selectedDocument) == null ? void 0 : A.document) == null ? void 0 : b.revision) == null ? void 0 : C.title) || "";
2323
- }), u = E(() => ""), l = J(!1), c = J(r.t("documentation.common.unpublished")), y = J(null);
2319
+ const t = e, a = n, { i18n: r } = Ae.useI18n(), c = U(!0), s = L(() => {
2320
+ var x, b, S, q, i;
2321
+ return ((b = (x = t.selectedDocument) == null ? void 0 : x.document) == null ? void 0 : b.title) || ((i = (q = (S = t.selectedDocument) == null ? void 0 : S.document) == null ? void 0 : q.revision) == null ? void 0 : i.title) || "";
2322
+ }), l = L(() => ""), g = U(!1), h = U(r.t("documentation.common.unpublished")), A = U(null);
2324
2323
  ge(() => t.selectedDocument, (x) => {
2325
- var j;
2326
- bn(x) || (t.hidePublishToggle || L((j = x.document) == null ? void 0 : j.status), x.ast && P());
2324
+ var b;
2325
+ bn(x) || (t.hidePublishToggle || P((b = x.document) == null ? void 0 : b.status), x.ast && K());
2327
2326
  }, { deep: !0 });
2328
- const w = () => {
2329
- const x = !l.value;
2330
- n("toggle-published", x), l.value = x, c.value = x ? r.t("documentation.common.published") : r.t("documentation.common.unpublished");
2331
- }, L = (x) => {
2332
- x === "published" ? (l.value = !0, c.value = r.t("documentation.common.published")) : (l.value = !1, c.value = r.t("documentation.common.unpublished"));
2333
- }, P = () => {
2334
- y.value = {
2327
+ const k = () => {
2328
+ const x = !g.value;
2329
+ a("toggle-published", x), g.value = x, h.value = x ? r.t("documentation.common.published") : r.t("documentation.common.unpublished");
2330
+ }, P = (x) => {
2331
+ x === "published" ? (g.value = !0, h.value = r.t("documentation.common.published")) : (g.value = !1, h.value = r.t("documentation.common.unpublished"));
2332
+ }, K = () => {
2333
+ A.value = {
2335
2334
  children: t.selectedDocument.ast,
2336
2335
  type: "document",
2337
2336
  version: 1
2338
- }, a.value = !1;
2337
+ }, c.value = !1;
2339
2338
  };
2340
- return (x, j) => {
2341
- const A = I("KBadge"), b = I("KInputSwitch"), C = I("KButton"), o = I("KSkeleton");
2342
- return h(), q("div", $r, [
2343
- R("div", Gr, [
2344
- R("div", Or, [
2339
+ return (x, b) => {
2340
+ const S = $("KBadge"), q = $("KInputSwitch"), i = $("KButton"), o = $("KSkeleton");
2341
+ return v(), C("div", $r, [
2342
+ N("div", Gr, [
2343
+ N("div", Or, [
2345
2344
  z(x.$slots, "document-title", {}, () => [
2346
- R("span", null, N(p.value), 1),
2347
- G("."),
2345
+ N("span", null, E(s.value), 1),
2346
+ O("."),
2348
2347
  Mr
2349
2348
  ], !0)
2350
2349
  ]),
2351
- e.hidePublishToggle ? H("", !0) : (h(), q("div", Br, [
2352
- R("span", zr, N(k(r).t("documentation.documentation_display.status_label")), 1),
2353
- l.value ? (h(), T(A, {
2350
+ e.hidePublishToggle ? H("", !0) : (v(), C("div", Br, [
2351
+ N("span", zr, E(y(r).t("documentation.documentation_display.status_label")), 1),
2352
+ g.value ? (v(), F(S, {
2354
2353
  key: 0,
2355
2354
  appearance: "success"
2356
2355
  }, {
2357
- default: _(() => [
2358
- G(N(k(r).t("documentation.common.published")), 1)
2356
+ default: D(() => [
2357
+ O(E(y(r).t("documentation.common.published")), 1)
2359
2358
  ]),
2360
2359
  _: 1
2361
- })) : (h(), T(A, {
2360
+ })) : (v(), F(S, {
2362
2361
  key: 1,
2363
2362
  appearance: "neutral"
2364
2363
  }, {
2365
- default: _(() => [
2366
- G(N(k(r).t("documentation.common.unpublished")), 1)
2364
+ default: D(() => [
2365
+ O(E(y(r).t("documentation.common.unpublished")), 1)
2367
2366
  ]),
2368
2367
  _: 1
2369
2368
  }))
2370
2369
  ])),
2371
- u.value ? (h(), q("div", Hr, [
2372
- R("span", Kr, N(k(r).t("documentation.documentation_display.added_label")), 1),
2373
- F(A, { appearance: "neutral" }, {
2374
- default: _(() => [
2375
- G(N(u.value), 1)
2370
+ l.value ? (v(), C("div", Hr, [
2371
+ N("span", Kr, E(y(r).t("documentation.documentation_display.added_label")), 1),
2372
+ R(S, { appearance: "neutral" }, {
2373
+ default: D(() => [
2374
+ O(E(l.value), 1)
2376
2375
  ]),
2377
2376
  _: 1
2378
2377
  })
2379
2378
  ])) : H("", !0),
2380
- R("div", Vr, [
2381
- F(k(We), {
2379
+ N("div", Vr, [
2380
+ R(y(We), {
2382
2381
  "auth-function": () => e.canEdit()
2383
2382
  }, {
2384
- default: _(() => [
2385
- !e.hidePublishToggle && !e.card ? (h(), T(b, {
2383
+ default: D(() => [
2384
+ !e.hidePublishToggle && !e.card ? (v(), F(q, {
2386
2385
  key: 0,
2387
- modelValue: l.value,
2388
- "onUpdate:modelValue": j[0] || (j[0] = (i) => l.value = i),
2386
+ modelValue: g.value,
2387
+ "onUpdate:modelValue": b[0] || (b[0] = (u) => g.value = u),
2389
2388
  class: "document-publish-toggle",
2390
2389
  "data-testid": "document-publish-toggle",
2391
- label: c.value,
2390
+ label: h.value,
2392
2391
  "label-before": "",
2393
- onClick: w
2392
+ onClick: k
2394
2393
  }, null, 8, ["modelValue", "label"])) : H("", !0),
2395
- F(C, {
2394
+ R(i, {
2396
2395
  appearance: "secondary",
2397
2396
  class: "document-edit-button",
2398
2397
  "data-testid": "document-edit-button",
2399
2398
  size: "small",
2400
- onClick: j[1] || (j[1] = (i) => n("edit"))
2399
+ onClick: b[1] || (b[1] = (u) => a("edit"))
2401
2400
  }, {
2402
- default: _(() => [
2403
- G(N(k(r).t("documentation.documentation_display.edit_button")), 1)
2401
+ default: D(() => [
2402
+ O(E(y(r).t("documentation.documentation_display.edit_button")), 1)
2404
2403
  ]),
2405
2404
  _: 1
2406
2405
  }),
2407
- F(C, {
2406
+ R(i, {
2408
2407
  appearance: "primary",
2409
2408
  "data-testid": "add-new-page-button",
2410
2409
  size: "small",
2411
- onClick: j[2] || (j[2] = (i) => n("add"))
2410
+ onClick: b[2] || (b[2] = (u) => a("add"))
2412
2411
  }, {
2413
- default: _(() => [
2414
- G(N(k(r).t("documentation.documentation_display.add_new")), 1)
2412
+ default: D(() => [
2413
+ O(E(y(r).t("documentation.documentation_display.add_new")), 1)
2415
2414
  ]),
2416
2415
  _: 1
2417
2416
  })
@@ -2420,21 +2419,21 @@ const We = /* @__PURE__ */ $({
2420
2419
  }, 8, ["auth-function"])
2421
2420
  ])
2422
2421
  ]),
2423
- a.value ? (h(), q("div", Ur, [
2424
- e.card ? (h(), T(o, {
2422
+ c.value ? (v(), C("div", Ur, [
2423
+ e.card ? (v(), F(o, {
2425
2424
  key: 1,
2426
2425
  type: "card"
2427
- })) : (h(), T(o, {
2426
+ })) : (v(), F(o, {
2428
2427
  key: 0,
2429
2428
  class: "markdown-content-loader"
2430
2429
  }))
2431
- ])) : (h(), q("div", Jr, [
2432
- R("div", {
2430
+ ])) : (v(), C("div", Jr, [
2431
+ N("div", {
2433
2432
  class: _e(["document-content", { "content-card-view": e.card }])
2434
2433
  }, [
2435
- y.value ? (h(), T(k(wn), {
2434
+ A.value ? (v(), F(y(wn), {
2436
2435
  key: 0,
2437
- document: y.value
2436
+ document: A.value
2438
2437
  }, null, 8, ["document"])) : H("", !0)
2439
2438
  ], 2)
2440
2439
  ]))
@@ -2443,21 +2442,21 @@ const We = /* @__PURE__ */ $({
2443
2442
  }
2444
2443
  }), Ce = (e, n) => {
2445
2444
  const t = e.__vccOpts || e;
2446
- for (const [r, a] of n)
2447
- t[r] = a;
2445
+ for (const [a, r] of n)
2446
+ t[a] = r;
2448
2447
  return t;
2449
- }, Xr = /* @__PURE__ */ Ce(Wr, [["__scopeId", "data-v-cb31890c"]]), me = "24px", Xe = (e, n) => {
2448
+ }, Qr = /* @__PURE__ */ Ce(Wr, [["__scopeId", "data-v-cb31890c"]]), me = "24px", Qe = (e, n) => {
2450
2449
  const t = e.__vccOpts || e;
2451
- for (const [r, a] of n)
2452
- t[r] = a;
2450
+ for (const [a, r] of n)
2451
+ t[a] = r;
2453
2452
  return t;
2454
- }, Qr = (e) => (fe("data-v-97c8c2aa"), e = e(), he(), e), Zr = ["aria-hidden"], Yr = {
2453
+ }, Xr = (e) => (fe("data-v-97c8c2aa"), e = e(), he(), e), Zr = ["aria-hidden"], Yr = {
2455
2454
  key: 0,
2456
2455
  "data-testid": "kui-icon-svg-title"
2457
- }, ea = /* @__PURE__ */ Qr(() => /* @__PURE__ */ R("path", {
2456
+ }, ea = /* @__PURE__ */ Xr(() => /* @__PURE__ */ N("path", {
2458
2457
  d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
2459
2458
  fill: "currentColor"
2460
- }, null, -1)), ta = /* @__PURE__ */ $({
2459
+ }, null, -1)), ta = /* @__PURE__ */ G({
2461
2460
  __name: "AddIcon",
2462
2461
  props: {
2463
2462
  /** The accessibility text provided to screen readers */
@@ -2509,16 +2508,16 @@ const We = /* @__PURE__ */ $({
2509
2508
  }
2510
2509
  },
2511
2510
  setup(e) {
2512
- const n = e, t = E(() => {
2511
+ const n = e, t = L(() => {
2513
2512
  if (typeof n.size == "number" && n.size > 0)
2514
2513
  return `${n.size}px`;
2515
2514
  if (typeof n.size == "string") {
2516
- const a = String(n.size).replace(/px/gi, ""), p = Number(a);
2517
- if (p && !isNaN(p) && Number.isInteger(p) && p > 0)
2518
- return `${p}px`;
2515
+ const r = String(n.size).replace(/px/gi, ""), c = Number(r);
2516
+ if (c && !isNaN(c) && Number.isInteger(c) && c > 0)
2517
+ return `${c}px`;
2519
2518
  }
2520
2519
  return me;
2521
- }), r = E(() => ({
2520
+ }), a = L(() => ({
2522
2521
  boxSizing: "border-box",
2523
2522
  color: n.color,
2524
2523
  display: n.display,
@@ -2526,14 +2525,14 @@ const We = /* @__PURE__ */ $({
2526
2525
  lineHeight: "0",
2527
2526
  width: t.value
2528
2527
  }));
2529
- return (a, p) => (h(), T(Y(e.as), {
2528
+ return (r, c) => (v(), F(Y(e.as), {
2530
2529
  "aria-hidden": e.decorative ? "true" : void 0,
2531
2530
  class: "kui-icon add-icon",
2532
2531
  "data-testid": "kui-icon-wrapper-add-icon",
2533
- style: Ge(r.value)
2532
+ style: Ge(a.value)
2534
2533
  }, {
2535
- default: _(() => [
2536
- (h(), q("svg", {
2534
+ default: D(() => [
2535
+ (v(), C("svg", {
2537
2536
  "aria-hidden": e.decorative ? "true" : void 0,
2538
2537
  "data-testid": "kui-icon-svg-add-icon",
2539
2538
  fill: "none",
@@ -2543,21 +2542,21 @@ const We = /* @__PURE__ */ $({
2543
2542
  width: "100%",
2544
2543
  xmlns: "http://www.w3.org/2000/svg"
2545
2544
  }, [
2546
- e.title ? (h(), q("title", Yr, N(e.title), 1)) : H("", !0),
2545
+ e.title ? (v(), C("title", Yr, E(e.title), 1)) : H("", !0),
2547
2546
  ea
2548
2547
  ], 8, Zr))
2549
2548
  ]),
2550
2549
  _: 1
2551
2550
  }, 8, ["aria-hidden", "style"]));
2552
2551
  }
2553
- }), na = /* @__PURE__ */ Xe(ta, [["__scopeId", "data-v-97c8c2aa"]]), Qe = (e) => (fe("data-v-336ae8cf"), e = e(), he(), e), ra = ["aria-hidden"], aa = {
2552
+ }), na = /* @__PURE__ */ Qe(ta, [["__scopeId", "data-v-97c8c2aa"]]), Xe = (e) => (fe("data-v-336ae8cf"), e = e(), he(), e), ra = ["aria-hidden"], aa = {
2554
2553
  key: 0,
2555
2554
  "data-testid": "kui-icon-svg-title"
2556
- }, ia = /* @__PURE__ */ Qe(() => /* @__PURE__ */ R("path", {
2555
+ }, ia = /* @__PURE__ */ Xe(() => /* @__PURE__ */ N("path", {
2557
2556
  d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
2558
2557
  fill: "currentColor",
2559
2558
  "transform-origin": "center"
2560
- }, null, -1)), oa = /* @__PURE__ */ Qe(() => /* @__PURE__ */ R("animateTransform", {
2559
+ }, null, -1)), oa = /* @__PURE__ */ Xe(() => /* @__PURE__ */ N("animateTransform", {
2561
2560
  attributeName: "transform",
2562
2561
  attributeType: "XML",
2563
2562
  dur: "1.5s",
@@ -2565,7 +2564,7 @@ const We = /* @__PURE__ */ $({
2565
2564
  repeatCount: "indefinite",
2566
2565
  to: "360",
2567
2566
  type: "rotate"
2568
- }, null, -1)), la = /* @__PURE__ */ $({
2567
+ }, null, -1)), la = /* @__PURE__ */ G({
2569
2568
  __name: "ProgressIcon",
2570
2569
  props: {
2571
2570
  /** The accessibility text provided to screen readers */
@@ -2617,16 +2616,16 @@ const We = /* @__PURE__ */ $({
2617
2616
  }
2618
2617
  },
2619
2618
  setup(e) {
2620
- const n = e, t = E(() => {
2619
+ const n = e, t = L(() => {
2621
2620
  if (typeof n.size == "number" && n.size > 0)
2622
2621
  return `${n.size}px`;
2623
2622
  if (typeof n.size == "string") {
2624
- const a = String(n.size).replace(/px/gi, ""), p = Number(a);
2625
- if (p && !isNaN(p) && Number.isInteger(p) && p > 0)
2626
- return `${p}px`;
2623
+ const r = String(n.size).replace(/px/gi, ""), c = Number(r);
2624
+ if (c && !isNaN(c) && Number.isInteger(c) && c > 0)
2625
+ return `${c}px`;
2627
2626
  }
2628
2627
  return me;
2629
- }), r = E(() => ({
2628
+ }), a = L(() => ({
2630
2629
  boxSizing: "border-box",
2631
2630
  color: n.color,
2632
2631
  display: n.display,
@@ -2634,14 +2633,14 @@ const We = /* @__PURE__ */ $({
2634
2633
  lineHeight: "0",
2635
2634
  width: t.value
2636
2635
  }));
2637
- return (a, p) => (h(), T(Y(e.as), {
2636
+ return (r, c) => (v(), F(Y(e.as), {
2638
2637
  "aria-hidden": e.decorative ? "true" : void 0,
2639
2638
  class: "kui-icon progress-icon",
2640
2639
  "data-testid": "kui-icon-wrapper-progress-icon",
2641
- style: Ge(r.value)
2640
+ style: Ge(a.value)
2642
2641
  }, {
2643
- default: _(() => [
2644
- (h(), q("svg", {
2642
+ default: D(() => [
2643
+ (v(), C("svg", {
2645
2644
  "aria-hidden": e.decorative ? "true" : void 0,
2646
2645
  "data-testid": "kui-icon-svg-progress-icon",
2647
2646
  fill: "none",
@@ -2651,7 +2650,7 @@ const We = /* @__PURE__ */ $({
2651
2650
  width: "100%",
2652
2651
  xmlns: "http://www.w3.org/2000/svg"
2653
2652
  }, [
2654
- e.title ? (h(), q("title", aa, N(e.title), 1)) : H("", !0),
2653
+ e.title ? (v(), C("title", aa, E(e.title), 1)) : H("", !0),
2655
2654
  ia,
2656
2655
  oa
2657
2656
  ], 8, ra))
@@ -2659,7 +2658,7 @@ const We = /* @__PURE__ */ $({
2659
2658
  _: 1
2660
2659
  }, 8, ["aria-hidden", "style"]));
2661
2660
  }
2662
- }), $e = /* @__PURE__ */ Xe(la, [["__scopeId", "data-v-336ae8cf"]]), sa = /* @__PURE__ */ $({
2661
+ }), $e = /* @__PURE__ */ Qe(la, [["__scopeId", "data-v-336ae8cf"]]), sa = /* @__PURE__ */ G({
2663
2662
  __name: "DocumentationPageEmptyState",
2664
2663
  props: {
2665
2664
  /**
@@ -2674,36 +2673,36 @@ const We = /* @__PURE__ */ $({
2674
2673
  },
2675
2674
  emits: ["create-documentation"],
2676
2675
  setup(e, { emit: n }) {
2677
- const { i18n: t } = Ae.useI18n();
2678
- return (r, a) => {
2679
- const p = I("KButton"), u = I("KEmptyState");
2680
- return h(), T(u, {
2676
+ const t = n, { i18n: a } = Ae.useI18n();
2677
+ return (r, c) => {
2678
+ const s = $("KButton"), l = $("KEmptyState");
2679
+ return v(), F(l, {
2681
2680
  class: "documentation-page-empty-state",
2682
2681
  "data-testid": "documentation-page-empty-state",
2683
2682
  icon: "stateGruceo",
2684
2683
  "icon-size": "96"
2685
2684
  }, {
2686
- title: _(() => [
2687
- G(N(k(t).t("documentation.show.empty_state.title")), 1)
2685
+ title: D(() => [
2686
+ O(E(y(a).t("documentation.show.empty_state.title")), 1)
2688
2687
  ]),
2689
- message: _(() => [
2690
- G(N(k(t).t("documentation.show.empty_state.message")), 1)
2688
+ message: D(() => [
2689
+ O(E(y(a).t("documentation.show.empty_state.message")), 1)
2691
2690
  ]),
2692
- cta: _(() => [
2693
- F(k(We), {
2691
+ cta: D(() => [
2692
+ R(y(We), {
2694
2693
  "auth-function": () => e.canEdit()
2695
2694
  }, {
2696
- default: _(() => [
2697
- F(p, {
2695
+ default: D(() => [
2696
+ R(s, {
2698
2697
  appearance: "primary",
2699
2698
  "data-testid": "add-new-page-button",
2700
- onClick: a[0] || (a[0] = (l) => n("create-documentation"))
2699
+ onClick: c[0] || (c[0] = (g) => t("create-documentation"))
2701
2700
  }, {
2702
- icon: _(() => [
2703
- F(k(na), { size: "22" })
2701
+ icon: D(() => [
2702
+ R(y(na), { size: "22" })
2704
2703
  ]),
2705
- default: _(() => [
2706
- G(" " + N(k(t).t("documentation.show.empty_state.ctaText")), 1)
2704
+ default: D(() => [
2705
+ O(" " + E(y(a).t("documentation.show.empty_state.ctaText")), 1)
2707
2706
  ]),
2708
2707
  _: 1
2709
2708
  })
@@ -2718,10 +2717,10 @@ const We = /* @__PURE__ */ $({
2718
2717
  }), ua = {
2719
2718
  // @ts-ignore
2720
2719
  serviceDocumentationDocs: "https://docs.konghq.com/konnect/servicehub/service-documentation/#main"
2721
- }, ca = (e) => (fe("data-v-ad1a177c"), e = e(), he(), e), da = { class: "title" }, pa = { class: "subtitle" }, ma = /* @__PURE__ */ ca(() => /* @__PURE__ */ R("br", null, null, -1)), ga = { class: "document-inputs" }, fa = { class: "page-name side-by-side" }, ha = { class: "url-slug side-by-side" }, va = {
2720
+ }, ca = (e) => (fe("data-v-ad1a177c"), e = e(), he(), e), da = { class: "title" }, pa = { class: "subtitle" }, ma = /* @__PURE__ */ ca(() => /* @__PURE__ */ N("br", null, null, -1)), ga = { class: "document-inputs" }, fa = { class: "page-name side-by-side" }, ha = { class: "url-slug side-by-side" }, va = {
2722
2721
  key: 1,
2723
2722
  class: "documentation-status"
2724
- }, wa = { class: "action-buttons" }, ba = { class: "button-spacing" }, ya = /* @__PURE__ */ $({
2723
+ }, wa = { class: "action-buttons" }, ba = { class: "button-spacing" }, ya = /* @__PURE__ */ G({
2725
2724
  __name: "ProductDocumentModal",
2726
2725
  props: {
2727
2726
  actionPending: {
@@ -2751,206 +2750,206 @@ const We = /* @__PURE__ */ $({
2751
2750
  },
2752
2751
  emits: ["cancel", "save", "delete"],
2753
2752
  setup(e, { emit: n }) {
2754
- const t = e, { i18n: r } = Ae.useI18n(), a = E(() => {
2755
- var s;
2756
- return (s = t.record.file) == null ? void 0 : s.filename;
2757
- }), p = E(() => {
2758
- var s;
2759
- return b.value ? (s = b.value.name) == null ? void 0 : s.split(".")[0] : "";
2760
- }), u = J(!0), l = E(() => u.value ? "published" : "unpublished"), c = tt({
2753
+ const t = e, a = n, { i18n: r } = Ae.useI18n(), c = L(() => {
2754
+ var m;
2755
+ return (m = t.record.file) == null ? void 0 : m.filename;
2756
+ }), s = L(() => {
2757
+ var m;
2758
+ return q.value ? (m = q.value.name) == null ? void 0 : m.split(".")[0] : "";
2759
+ }), l = U(!0), g = L(() => l.value ? "published" : "unpublished"), h = tt({
2761
2760
  fileName: "",
2762
2761
  pageName: "",
2763
2762
  urlSlug: "",
2764
- status: l.value,
2763
+ status: g.value,
2765
2764
  parent: ""
2766
- }), y = /^[\w-]+$/, w = E(() => {
2767
- var s;
2768
- return c.urlSlug !== "" && !((s = c.urlSlug) != null && s.match(y));
2769
- }), L = E(() => {
2770
- var v;
2771
- let s = (v = t.documents) == null ? void 0 : v.filter((f) => {
2772
- var S;
2773
- return f.record.id !== ((S = t.record) == null ? void 0 : S.id) && !f.record.parent_document_id;
2774
- }).map((f) => ({
2775
- label: f.record.title,
2776
- value: f.record.id,
2765
+ }), A = /^[\w-]+$/, k = L(() => {
2766
+ var m;
2767
+ return h.urlSlug !== "" && !((m = h.urlSlug) != null && m.match(A));
2768
+ }), P = L(() => {
2769
+ var f;
2770
+ let m = (f = t.documents) == null ? void 0 : f.filter((_) => {
2771
+ var j;
2772
+ return _.record.id !== ((j = t.record) == null ? void 0 : j.id) && !_.record.parent_document_id;
2773
+ }).map((_) => ({
2774
+ label: _.record.title,
2775
+ value: _.record.id,
2777
2776
  selected: !1
2778
2777
  }));
2779
- s || (s = []);
2780
- const g = Le(s.length);
2781
- return s.push({
2778
+ m || (m = []);
2779
+ const w = Le(m.length);
2780
+ return m.push({
2782
2781
  label: r.t("documentation.form_modal.parent_document_select_option_none"),
2783
2782
  value: "none",
2784
- selected: !g
2785
- }), s;
2786
- }), P = E(() => !t.editing && !b.value || !c.pageName || w.value), x = E(() => t.editing ? r.t("documentation.form_modal.edit_title") : r.t("documentation.form_modal.create_title")), j = E(() => t.editing ? r.t("documentation.form_modal.replace_file_button_text") : r.t("documentation.form_modal.filename_button_text")), A = E(() => l.value === "published" ? r.t("documentation.common.published") : r.t("documentation.common.unpublished")), b = J(null), C = (s) => {
2787
- b.value = s == null ? void 0 : s[0], c.pageName = p.value, c.urlSlug = p.value, c.fileName = p.value;
2783
+ selected: !w
2784
+ }), m;
2785
+ }), K = L(() => !t.editing && !q.value || !h.pageName || k.value), x = L(() => t.editing ? r.t("documentation.form_modal.edit_title") : r.t("documentation.form_modal.create_title")), b = L(() => t.editing ? r.t("documentation.form_modal.replace_file_button_text") : r.t("documentation.form_modal.filename_button_text")), S = L(() => g.value === "published" ? r.t("documentation.common.published") : r.t("documentation.common.unpublished")), q = U(null), i = (m) => {
2786
+ q.value = m == null ? void 0 : m[0], h.pageName = s.value, h.urlSlug = s.value, h.fileName = s.value;
2788
2787
  }, o = () => {
2789
- b.value = null;
2790
- }, i = () => {
2791
- n("cancel"), m();
2788
+ q.value = null;
2789
+ }, u = () => {
2790
+ a("cancel"), p();
2792
2791
  }, d = () => {
2793
- n("save", Object.assign(c, { status: l.value }), b);
2794
- }, m = () => {
2795
- var s, g, v, f, S;
2796
- if (b.value = null, t.editing && ((s = t.record) != null && s.document)) {
2797
- const D = Le(t.record), K = D.status || t.record.document.status || u.value;
2798
- c.fileName = ((g = D.document.file) == null ? void 0 : g.filename) || ((f = (v = D.document.revision) == null ? void 0 : v.file) == null ? void 0 : f.filename), c.pageName = D.document.title || ((S = D.document.revision) == null ? void 0 : S.title), c.urlSlug = D.document.slug, c.parent = D.document.parent_document_id, c.status = K, u.value = K === "published";
2792
+ a("save", Object.assign(h, { status: g.value }), q);
2793
+ }, p = () => {
2794
+ var m, w, f, _, j;
2795
+ if (q.value = null, t.editing && ((m = t.record) != null && m.document)) {
2796
+ const I = Le(t.record), Q = I.status || t.record.document.status || l.value;
2797
+ h.fileName = ((w = I.document.file) == null ? void 0 : w.filename) || ((_ = (f = I.document.revision) == null ? void 0 : f.file) == null ? void 0 : _.filename), h.pageName = I.document.title || ((j = I.document.revision) == null ? void 0 : j.title), h.urlSlug = I.document.slug, h.parent = I.document.parent_document_id, h.status = Q, l.value = Q === "published";
2799
2798
  } else
2800
- c.fileName = "", c.pageName = "", c.urlSlug = "", c.parent = "", c.status = "";
2799
+ h.fileName = "", h.pageName = "", h.urlSlug = "", h.parent = "", h.status = "";
2801
2800
  };
2802
2801
  return nt(() => {
2803
- m();
2804
- }), (s, g) => {
2805
- const v = I("KExternalLink"), f = I("KAlert"), S = I("KFileUpload"), D = I("KInput"), K = I("KLabel"), ie = I("KInputSwitch"), oe = I("KSelect"), ne = I("KButton"), ve = I("KPrompt");
2806
- return h(), T(rt, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
2807
- F(ve, {
2802
+ p();
2803
+ }), (m, w) => {
2804
+ const f = $("KExternalLink"), _ = $("KAlert"), j = $("KFileUpload"), I = $("KInput"), Q = $("KLabel"), ie = $("KInputSwitch"), ve = $("KSelect"), ne = $("KButton"), oe = $("KPrompt");
2805
+ return v(), F(rt, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
2806
+ R(oe, {
2808
2807
  class: "edit-document-modal",
2809
2808
  "data-testid": "edit-document-modal",
2810
2809
  "is-visible": "",
2811
- onCanceled: i,
2810
+ onCanceled: u,
2812
2811
  onProceed: d
2813
2812
  }, {
2814
- "header-content": _(() => [
2815
- R("div", da, [
2816
- G(N(x.value) + " ", 1),
2817
- R("div", pa, [
2818
- G(N(k(r).t("documentation.form_modal.subtitle")) + " ", 1),
2813
+ "header-content": D(() => [
2814
+ N("div", da, [
2815
+ O(E(x.value) + " ", 1),
2816
+ N("div", pa, [
2817
+ O(E(y(r).t("documentation.form_modal.subtitle")) + " ", 1),
2819
2818
  ma,
2820
- F(v, {
2819
+ R(f, {
2821
2820
  class: "doc-link",
2822
- href: k(ua).serviceDocumentationDocs
2821
+ href: y(ua).serviceDocumentationDocs
2823
2822
  }, {
2824
- default: _(() => [
2825
- G(N(k(r).t("documentation.form_modal.documentation_link_text")), 1)
2823
+ default: D(() => [
2824
+ O(E(y(r).t("documentation.form_modal.documentation_link_text")), 1)
2826
2825
  ]),
2827
2826
  _: 1
2828
2827
  }, 8, ["href"])
2829
2828
  ])
2830
2829
  ])
2831
2830
  ]),
2832
- "body-content": _(() => [
2833
- e.errorMessage ? (h(), T(f, {
2831
+ "body-content": D(() => [
2832
+ e.errorMessage ? (v(), F(_, {
2834
2833
  key: 0,
2835
2834
  "alert-message": e.errorMessage,
2836
2835
  appearance: "danger",
2837
2836
  class: "bottom-spacing"
2838
2837
  }, null, 8, ["alert-message"])) : H("", !0),
2839
- F(S, {
2838
+ R(j, {
2840
2839
  accept: [".md", ".markdown"],
2841
- "button-text": j.value,
2840
+ "button-text": b.value,
2842
2841
  class: "document-file-upload",
2843
2842
  "data-testid": "document-file-upload",
2844
- label: k(r).t("documentation.form_modal.file_label"),
2845
- "label-attributes": { help: k(r).t("documentation.form_modal.file_tooltip") },
2846
- placeholder: e.editing ? a.value : void 0,
2847
- onFileAdded: C,
2843
+ label: y(r).t("documentation.form_modal.file_label"),
2844
+ "label-attributes": { help: y(r).t("documentation.form_modal.file_tooltip") },
2845
+ placeholder: e.editing ? c.value : void 0,
2846
+ onFileAdded: i,
2848
2847
  onFileRemoved: o
2849
2848
  }, null, 8, ["accept", "button-text", "label", "label-attributes", "placeholder"]),
2850
- R("div", ga, [
2851
- R("div", fa, [
2852
- F(D, {
2853
- modelValue: c.pageName,
2854
- "onUpdate:modelValue": g[0] || (g[0] = (V) => c.pageName = V),
2849
+ N("div", ga, [
2850
+ N("div", fa, [
2851
+ R(I, {
2852
+ modelValue: h.pageName,
2853
+ "onUpdate:modelValue": w[0] || (w[0] = (T) => h.pageName = T),
2855
2854
  modelModifiers: { trim: !0 },
2856
2855
  "data-testid": "documentation-page-name",
2857
- label: k(r).t("documentation.form_modal.title_label"),
2858
- placeholder: k(r).t("documentation.form_modal.title_placeholder"),
2856
+ label: y(r).t("documentation.form_modal.title_label"),
2857
+ placeholder: y(r).t("documentation.form_modal.title_placeholder"),
2859
2858
  required: ""
2860
2859
  }, null, 8, ["modelValue", "label", "placeholder"])
2861
2860
  ]),
2862
- R("div", ha, [
2863
- F(D, {
2864
- modelValue: c.urlSlug,
2865
- "onUpdate:modelValue": g[1] || (g[1] = (V) => c.urlSlug = V),
2861
+ N("div", ha, [
2862
+ R(I, {
2863
+ modelValue: h.urlSlug,
2864
+ "onUpdate:modelValue": w[1] || (w[1] = (T) => h.urlSlug = T),
2866
2865
  modelModifiers: { trim: !0 },
2867
2866
  "data-testid": "documentation-url-slug",
2868
- "error-message": k(r).t("documentation.form_modal.slug_error"),
2869
- "has-error": w.value,
2870
- label: k(r).t("documentation.form_modal.slug_label"),
2871
- pattern: y,
2872
- placeholder: k(r).t("documentation.form_modal.slug_placeholder")
2867
+ "error-message": y(r).t("documentation.form_modal.slug_error"),
2868
+ "has-error": k.value,
2869
+ label: y(r).t("documentation.form_modal.slug_label"),
2870
+ pattern: A,
2871
+ placeholder: y(r).t("documentation.form_modal.slug_placeholder")
2873
2872
  }, null, 8, ["modelValue", "error-message", "has-error", "label", "placeholder"])
2874
2873
  ])
2875
2874
  ]),
2876
- e.hidePublishToggle ? H("", !0) : (h(), q("div", va, [
2877
- R("div", null, [
2878
- F(K, null, {
2879
- default: _(() => [
2880
- G(N(k(r).t("documentation.form_modal.status_label")), 1)
2875
+ e.hidePublishToggle ? H("", !0) : (v(), C("div", va, [
2876
+ N("div", null, [
2877
+ R(Q, null, {
2878
+ default: D(() => [
2879
+ O(E(y(r).t("documentation.form_modal.status_label")), 1)
2881
2880
  ]),
2882
2881
  _: 1
2883
2882
  })
2884
2883
  ]),
2885
- F(ie, {
2886
- modelValue: u.value,
2887
- "onUpdate:modelValue": g[2] || (g[2] = (V) => u.value = V),
2884
+ R(ie, {
2885
+ modelValue: l.value,
2886
+ "onUpdate:modelValue": w[2] || (w[2] = (T) => l.value = T),
2888
2887
  "data-testid": "documentation-status",
2889
- label: A.value
2888
+ label: S.value
2890
2889
  }, null, 8, ["modelValue", "label"])
2891
2890
  ])),
2892
- F(oe, {
2893
- modelValue: c.parent,
2894
- "onUpdate:modelValue": g[3] || (g[3] = (V) => c.parent = V),
2891
+ R(ve, {
2892
+ modelValue: h.parent,
2893
+ "onUpdate:modelValue": w[3] || (w[3] = (T) => h.parent = T),
2895
2894
  appearance: "select",
2896
2895
  class: "document-parent-select",
2897
2896
  "data-testid": "documentation-parent",
2898
2897
  "enable-filtering": "",
2899
- items: L.value,
2900
- label: k(r).t("documentation.form_modal.parent_document_select_label"),
2898
+ items: P.value,
2899
+ label: y(r).t("documentation.form_modal.parent_document_select_label"),
2901
2900
  width: "100%"
2902
2901
  }, null, 8, ["modelValue", "items", "label"])
2903
2902
  ]),
2904
- "action-buttons": _(() => [
2905
- R("div", wa, [
2906
- e.editing ? (h(), T(ne, {
2903
+ "action-buttons": D(() => [
2904
+ N("div", wa, [
2905
+ e.editing ? (v(), F(ne, {
2907
2906
  key: 0,
2908
2907
  appearance: "danger",
2909
2908
  class: "edit-documentation-delete-button",
2910
2909
  "data-testid": "edit-documentation-delete-button",
2911
2910
  disabled: e.actionPending,
2912
- onClick: g[4] || (g[4] = (V) => n("delete"))
2911
+ onClick: w[4] || (w[4] = (T) => a("delete"))
2913
2912
  }, je({
2914
- default: _(() => [
2915
- G(" " + N(k(r).t("documentation.form_modal.delete_button_text")), 1)
2913
+ default: D(() => [
2914
+ O(" " + E(y(r).t("documentation.form_modal.delete_button_text")), 1)
2916
2915
  ]),
2917
2916
  _: 2
2918
2917
  }, [
2919
2918
  e.actionPending ? {
2920
2919
  name: "icon",
2921
- fn: _(() => [
2922
- F(k($e), { size: "16" })
2920
+ fn: D(() => [
2921
+ R(y($e), { size: "16" })
2923
2922
  ]),
2924
2923
  key: "0"
2925
2924
  } : void 0
2926
2925
  ]), 1032, ["disabled"])) : H("", !0),
2927
- R("div", ba, [
2928
- F(ne, {
2926
+ N("div", ba, [
2927
+ R(ne, {
2929
2928
  appearance: "secondary",
2930
2929
  class: "edit-documentation-cancel-button",
2931
2930
  "data-testid": "edit-documentation-cancel-button",
2932
- onClick: i
2931
+ onClick: u
2933
2932
  }, {
2934
- default: _(() => [
2935
- G(N(k(r).t("documentation.form_modal.cancel_button_text")), 1)
2933
+ default: D(() => [
2934
+ O(E(y(r).t("documentation.form_modal.cancel_button_text")), 1)
2936
2935
  ]),
2937
2936
  _: 1
2938
2937
  }),
2939
- F(ne, {
2938
+ R(ne, {
2940
2939
  appearance: "primary",
2941
2940
  "data-testid": "edit-documentation-save-button",
2942
- disabled: e.actionPending || P.value,
2941
+ disabled: e.actionPending || K.value,
2943
2942
  onClick: d
2944
2943
  }, je({
2945
- default: _(() => [
2946
- G(" " + N(k(r).t("documentation.form_modal.save_button_text")), 1)
2944
+ default: D(() => [
2945
+ O(" " + E(y(r).t("documentation.form_modal.save_button_text")), 1)
2947
2946
  ]),
2948
2947
  _: 2
2949
2948
  }, [
2950
2949
  e.actionPending ? {
2951
2950
  name: "icon",
2952
- fn: _(() => [
2953
- F(k($e), { size: "16" })
2951
+ fn: D(() => [
2952
+ R(y($e), { size: "16" })
2954
2953
  ]),
2955
2954
  key: "0"
2956
2955
  } : void 0
@@ -2963,7 +2962,7 @@ const We = /* @__PURE__ */ $({
2963
2962
  ]);
2964
2963
  };
2965
2964
  }
2966
- }), ka = /* @__PURE__ */ Ce(ya, [["__scopeId", "data-v-ad1a177c"]]), xa = { class: "documentation" }, Sa = { class: "documentation-parent-container" }, _a = /* @__PURE__ */ $({
2965
+ }), ka = /* @__PURE__ */ Ce(ya, [["__scopeId", "data-v-ad1a177c"]]), xa = { class: "documentation" }, Sa = { class: "documentation-parent-container" }, _a = /* @__PURE__ */ G({
2967
2966
  __name: "DocumentationContent",
2968
2967
  props: {
2969
2968
  actionPending: {
@@ -3021,68 +3020,68 @@ const We = /* @__PURE__ */ $({
3021
3020
  },
3022
3021
  emits: ["child-change", "delete", "edit", "document-selection", "modal-closed", "parent-change", "save", "toggle-published"],
3023
3022
  setup(e, { emit: n }) {
3024
- const t = e, r = J(!1), a = J(!1);
3025
- ge(() => t.actionSuccess, (y) => {
3026
- y && c();
3023
+ const t = n, a = U(!1), r = U(!1), c = e;
3024
+ ge(() => c.actionSuccess, (A) => {
3025
+ A && h();
3027
3026
  });
3028
- const p = E(() => {
3029
- var y, w;
3030
- return `data-display-${t.cacheKey}-${((w = (y = t.selectedDocument) == null ? void 0 : y.document) == null ? void 0 : w.id) || ""}`;
3031
- }), u = () => {
3032
- a.value = !1, r.value = !0;
3033
- }, l = () => {
3034
- a.value = !0, r.value = !0, n("edit");
3035
- }, c = () => {
3036
- r.value = !1, n("modal-closed");
3027
+ const s = L(() => {
3028
+ var A, k;
3029
+ return `data-display-${c.cacheKey}-${((k = (A = c.selectedDocument) == null ? void 0 : A.document) == null ? void 0 : k.id) || ""}`;
3030
+ }), l = () => {
3031
+ r.value = !1, a.value = !0;
3032
+ }, g = () => {
3033
+ r.value = !0, a.value = !0, t("edit");
3034
+ }, h = () => {
3035
+ a.value = !1, t("modal-closed");
3037
3036
  };
3038
- return (y, w) => {
3039
- const L = I("KTreeList"), P = I("KCard");
3040
- return h(), q("div", xa, [
3041
- e.documentList && !e.documentList.length ? (h(), T(sa, {
3037
+ return (A, k) => {
3038
+ const P = $("KTreeList"), K = $("KCard");
3039
+ return v(), C("div", xa, [
3040
+ e.documentList && !e.documentList.length ? (v(), F(sa, {
3042
3041
  key: 0,
3043
3042
  "can-edit": e.canEdit,
3044
- onCreateDocumentation: u
3045
- }, null, 8, ["can-edit"])) : (h(), T(P, {
3043
+ onCreateDocumentation: l
3044
+ }, null, 8, ["can-edit"])) : (v(), F(K, {
3046
3045
  key: 1,
3047
3046
  class: "documentation-card"
3048
3047
  }, {
3049
- default: _(() => [
3050
- R("div", Sa, [
3051
- (h(), T(L, {
3048
+ default: D(() => [
3049
+ N("div", Sa, [
3050
+ (v(), F(P, {
3052
3051
  key: `tree-list-${e.cacheKey}`,
3053
3052
  class: "document-tree-list",
3054
3053
  items: e.documentList,
3055
3054
  "max-depth": 2,
3056
- onChange: w[0] || (w[0] = (x) => n("parent-change", x)),
3057
- onChildChange: w[1] || (w[1] = (x) => n("child-change", x)),
3058
- onSelected: w[2] || (w[2] = (x) => n("document-selection", x))
3055
+ onChange: k[0] || (k[0] = (x) => t("parent-change", x)),
3056
+ onChildChange: k[1] || (k[1] = (x) => t("child-change", x)),
3057
+ onSelected: k[2] || (k[2] = (x) => t("document-selection", x))
3059
3058
  }, null, 8, ["items"])),
3060
- e.selectedDocument ? (h(), T(Xr, {
3061
- key: p.value,
3059
+ e.selectedDocument ? (v(), F(Qr, {
3060
+ key: s.value,
3062
3061
  "can-edit": e.canEdit,
3063
3062
  card: e.card,
3064
3063
  class: "document-holder",
3065
3064
  "hide-publish-toggle": e.hidePublishToggle,
3066
3065
  "selected-document": e.selectedDocument,
3067
- onAdd: u,
3068
- onEdit: l,
3069
- onTogglePublished: w[3] || (w[3] = (x) => n("toggle-published", x))
3066
+ onAdd: l,
3067
+ onEdit: g,
3068
+ onTogglePublished: k[3] || (k[3] = (x) => t("toggle-published", x))
3070
3069
  }, null, 8, ["can-edit", "card", "hide-publish-toggle", "selected-document"])) : H("", !0)
3071
3070
  ])
3072
3071
  ]),
3073
3072
  _: 1
3074
3073
  })),
3075
- r.value ? (h(), T(ka, {
3074
+ a.value ? (v(), F(ka, {
3076
3075
  key: 2,
3077
3076
  "action-pending": e.actionPending,
3078
3077
  documents: e.documentList,
3079
- editing: a.value,
3078
+ editing: r.value,
3080
3079
  "error-message": e.modalErrorMessage,
3081
3080
  "hide-publish-toggle": e.hidePublishToggle,
3082
- record: a.value && e.selectedDocument ? e.selectedDocument : void 0,
3083
- onCancel: c,
3084
- onDelete: w[4] || (w[4] = (x) => n("delete")),
3085
- onSave: w[5] || (w[5] = (x, j) => n("save", x, j))
3081
+ record: r.value && e.selectedDocument ? e.selectedDocument : void 0,
3082
+ onCancel: h,
3083
+ onDelete: k[4] || (k[4] = (x) => t("delete")),
3084
+ onSave: k[5] || (k[5] = (x, b) => t("save", x, b))
3086
3085
  }, null, 8, ["action-pending", "documents", "editing", "error-message", "hide-publish-toggle", "record"])) : H("", !0)
3087
3086
  ]);
3088
3087
  };
@@ -3090,7 +3089,7 @@ const We = /* @__PURE__ */ $({
3090
3089
  }), ja = /* @__PURE__ */ Ce(_a, [["__scopeId", "data-v-28dad1b5"]]);
3091
3090
  export {
3092
3091
  ja as DocumentationContent,
3093
- Xr as DocumentationDisplay,
3092
+ Qr as DocumentationDisplay,
3094
3093
  sa as DocumentationPageEmptyState,
3095
3094
  ka as ProductDocumentModal
3096
3095
  };