@forsakringskassan/docs-generator 3.3.1 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/markdown.mjs CHANGED
@@ -2,8 +2,8 @@ import { createRequire as $createRequire } from "node:module";
2
2
 
3
3
  const require = $createRequire(import.meta.url);
4
4
 
5
- export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-39oFx5NW.mjs';
6
- import './vendor-DjC7coI1.mjs';
5
+ export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-O3H4lWpJ.mjs';
6
+ import './vendor-CjH-H-vc.mjs';
7
7
  import 'node:url';
8
8
  import 'node:path';
9
9
  import 'fs';
@@ -39,6 +39,6 @@ import 'v8';
39
39
  import 'node:path/posix';
40
40
  import 'node:child_process';
41
41
  import 'vue';
42
- import './vue3-B3-18vX3.mjs';
42
+ import './vue3-DbJPWpmQ.mjs';
43
43
  import 'vue/compiler-sfc';
44
44
  //# sourceMappingURL=markdown.mjs.map
@@ -2031,7 +2031,7 @@ var motdSymbol = /* @__PURE__ */ Symbol.for("motd");
2031
2031
  // src/runtime/motd/motd-proxy.ts
2032
2032
  var motdProxy = {
2033
2033
  get enabled() {
2034
- return Boolean(window[motdSymbol]);
2034
+ return Object.hasOwn(window, motdSymbol);
2035
2035
  },
2036
2036
  showMessage(...args) {
2037
2037
  const api = window[motdSymbol];
@@ -2156,7 +2156,7 @@ function updateVersionList(element, versions) {
2156
2156
  a.textContent = version;
2157
2157
  ul.append(item);
2158
2158
  }
2159
- element.innerHTML = "";
2159
+ element.replaceChildren();
2160
2160
  element.append(ul);
2161
2161
  }
2162
2162
  function setErrorMessage(element) {
@@ -2165,7 +2165,7 @@ function setErrorMessage(element) {
2165
2165
  }
2166
2166
  const p = document.createElement("p");
2167
2167
  p.textContent = "Det gick inte att hitta n\xE5gra tidigare versioner!";
2168
- element.innerHTML = "";
2168
+ element.replaceChildren();
2169
2169
  element.append(p);
2170
2170
  }
2171
2171
  window.addEventListener("docs:navigation", () => {
@@ -2,7 +2,7 @@
2
2
  function onContentReady(callback) {
3
3
  const { readyState } = document;
4
4
  if (readyState === "complete" || readyState === "interactive") {
5
- setTimeout(callback, 0);
5
+ queueMicrotask(callback);
6
6
  } else {
7
7
  document.addEventListener("DOMContentLoaded", callback);
8
8
  }
package/dist/runtime.mjs CHANGED
@@ -1516,7 +1516,7 @@ function isRegex(value2) {
1516
1516
  function createDOMPurify() {
1517
1517
  let window3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
1518
1518
  const DOMPurify = (root4) => createDOMPurify(root4);
1519
- DOMPurify.version = "3.4.11";
1519
+ DOMPurify.version = "3.4.12";
1520
1520
  DOMPurify.removed = [];
1521
1521
  if (!window3 || !window3.document || window3.document.nodeType !== NODE_TYPE.document || !window3.Element) {
1522
1522
  DOMPurify.isSupported = false;
@@ -1957,6 +1957,7 @@ function createDOMPurify() {
1957
1957
  }
1958
1958
  };
1959
1959
  const _neutralizeRoot = function _neutralizeRoot2(root4) {
1960
+ _neutralizeSubtree(root4);
1960
1961
  const childNodes = getChildNodes(root4);
1961
1962
  if (childNodes) {
1962
1963
  const snapshot = [];
@@ -2044,6 +2045,42 @@ function createDOMPurify() {
2044
2045
  }
2045
2046
  }
2046
2047
  };
2048
+ const _neutralizePatchLinkage = function _neutralizePatchLinkage2(root4) {
2049
+ if (!SAFE_FOR_XML) {
2050
+ return;
2051
+ }
2052
+ const stack = [root4];
2053
+ while (stack.length > 0) {
2054
+ const node2 = stack.pop();
2055
+ const nodeType3 = getNodeType ? getNodeType(node2) : node2.nodeType;
2056
+ if (nodeType3 === NODE_TYPE.processingInstruction || nodeType3 === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node2.data)) {
2057
+ try {
2058
+ remove3(node2);
2059
+ } catch (_3) {
2060
+ }
2061
+ continue;
2062
+ }
2063
+ if (nodeType3 === NODE_TYPE.element) {
2064
+ const element3 = node2;
2065
+ const lcTag = transformCaseFunc(getNodeName ? getNodeName(node2) : node2.nodeName);
2066
+ try {
2067
+ if (element3.hasAttribute && element3.hasAttribute("patchsrc")) {
2068
+ element3.removeAttribute("patchsrc");
2069
+ }
2070
+ if (element3.hasAttribute && element3.hasAttribute("for") && lcTag !== "label" && lcTag !== "output") {
2071
+ element3.removeAttribute("for");
2072
+ }
2073
+ } catch (_3) {
2074
+ }
2075
+ }
2076
+ const childNodes = getChildNodes(node2);
2077
+ if (childNodes) {
2078
+ for (let i5 = childNodes.length - 1; i5 >= 0; --i5) {
2079
+ stack.push(childNodes[i5]);
2080
+ }
2081
+ }
2082
+ }
2083
+ };
2047
2084
  const _initDocument = function _initDocument2(dirty) {
2048
2085
  let doc = null;
2049
2086
  let leadingWhitespace = null;
@@ -2217,8 +2254,11 @@ function createDOMPurify() {
2217
2254
  _forceRemove(currentNode);
2218
2255
  return true;
2219
2256
  };
2220
- const _sanitizeElements = function _sanitizeElements2(currentNode) {
2257
+ const _sanitizeElements = function _sanitizeElements2(currentNode, root4) {
2221
2258
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
2259
+ if (currentNode !== root4 && getParentNode(currentNode) === null) {
2260
+ return true;
2261
+ }
2222
2262
  if (_isClobbered(currentNode)) {
2223
2263
  _forceRemove(currentNode);
2224
2264
  return true;
@@ -2228,12 +2268,19 @@ function createDOMPurify() {
2228
2268
  tagName,
2229
2269
  allowedTags: ALLOWED_TAGS
2230
2270
  });
2271
+ if (currentNode !== root4 && getParentNode(currentNode) === null) {
2272
+ return true;
2273
+ }
2231
2274
  if (_isUnsafeNode(currentNode, tagName)) {
2232
2275
  _forceRemove(currentNode);
2233
2276
  return true;
2234
2277
  }
2235
2278
  if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
2236
- return _sanitizeDisallowedNode(currentNode, tagName);
2279
+ const removed = _sanitizeDisallowedNode(currentNode, tagName);
2280
+ if (removed === false) {
2281
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
2282
+ }
2283
+ return removed;
2237
2284
  }
2238
2285
  const nt2 = getNodeType ? getNodeType(currentNode) : currentNode.nodeType;
2239
2286
  if (nt2 === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
@@ -2260,6 +2307,12 @@ function createDOMPurify() {
2260
2307
  if (FORBID_ATTR[lcName]) {
2261
2308
  return false;
2262
2309
  }
2310
+ if (SAFE_FOR_XML && lcName === "patchsrc") {
2311
+ return false;
2312
+ }
2313
+ if (SAFE_FOR_XML && lcName === "for" && lcTag !== "label" && lcTag !== "output") {
2314
+ return false;
2315
+ }
2263
2316
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value2 in document2 || value2 in formElement)) {
2264
2317
  return false;
2265
2318
  }
@@ -2390,7 +2443,7 @@ function createDOMPurify() {
2390
2443
  _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
2391
2444
  while (shadowNode = shadowIterator.nextNode()) {
2392
2445
  _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2393
- _sanitizeElements(shadowNode);
2446
+ _sanitizeElements(shadowNode, fragment);
2394
2447
  _sanitizeAttributes(shadowNode);
2395
2448
  if (_isDocumentFragment(shadowNode.content)) {
2396
2449
  _sanitizeShadowDOM2(shadowNode.content);
@@ -2489,14 +2542,17 @@ function createDOMPurify() {
2489
2542
  DOMPurify.removed = [];
2490
2543
  const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
2491
2544
  if (inPlace) {
2545
+ _neutralizePatchLinkage(dirty);
2492
2546
  const nn = getNodeName ? getNodeName(dirty) : dirty.nodeName;
2493
2547
  if (typeof nn === "string") {
2494
2548
  const tagName = transformCaseFunc(nn);
2495
2549
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
2550
+ _neutralizeRoot(dirty);
2496
2551
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
2497
2552
  }
2498
2553
  }
2499
2554
  if (_isClobbered(dirty)) {
2555
+ _neutralizeRoot(dirty);
2500
2556
  throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
2501
2557
  }
2502
2558
  try {
@@ -2529,10 +2585,11 @@ function createDOMPurify() {
2529
2585
  if (body && FORCE_BODY) {
2530
2586
  _forceRemove(body.firstChild);
2531
2587
  }
2532
- const nodeIterator = _createNodeIterator(inPlace ? dirty : body);
2588
+ const walkRoot = inPlace ? dirty : body;
2589
+ const nodeIterator = _createNodeIterator(walkRoot);
2533
2590
  try {
2534
2591
  while (currentNode = nodeIterator.nextNode()) {
2535
- _sanitizeElements(currentNode);
2592
+ _sanitizeElements(currentNode, walkRoot);
2536
2593
  _sanitizeAttributes(currentNode);
2537
2594
  if (_isDocumentFragment(currentNode.content)) {
2538
2595
  _sanitizeShadowDOM2(currentNode.content);
@@ -2541,6 +2598,11 @@ function createDOMPurify() {
2541
2598
  } catch (error3) {
2542
2599
  if (inPlace) {
2543
2600
  _neutralizeRoot(dirty);
2601
+ arrayForEach(DOMPurify.removed, (entry) => {
2602
+ if (entry.element) {
2603
+ _neutralizeSubtree(entry.element);
2604
+ }
2605
+ });
2544
2606
  }
2545
2607
  throw error3;
2546
2608
  }
@@ -2702,7 +2764,7 @@ var init_purify_es = __esm({
2702
2764
  mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
2703
2765
  text = freeze(["#text"]);
2704
2766
  html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]);
2705
- svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
2767
+ svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
2706
2768
  mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
2707
2769
  xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
2708
2770
  MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
@@ -183101,10 +183163,10 @@ function toggleMarkup(button) {
183101
183163
  expand3.style.height = `${String(rect3.height)}px`;
183102
183164
  expand3.classList.add("animate-expand");
183103
183165
  expand3.classList.add("animate-expand--expanded");
183104
- setTimeout(() => {
183166
+ queueMicrotask(() => {
183105
183167
  expand3.classList.remove("animate-expand--expanded");
183106
183168
  expand3.style.height = "0px";
183107
- }, 0);
183169
+ });
183108
183170
  setTimeout(() => {
183109
183171
  expand3.hidden = true;
183110
183172
  }, 500);
@@ -184977,7 +185039,7 @@ var BREAKPOINT_LARGE = style3.getPropertyValue("--docs-breakpoint-lg");
184977
185039
  function onContentReady(callback) {
184978
185040
  const { readyState } = document;
184979
185041
  if (readyState === "complete" || readyState === "interactive") {
184980
- setTimeout(callback, 0);
185042
+ queueMicrotask(callback);
184981
185043
  } else {
184982
185044
  document.addEventListener("DOMContentLoaded", callback);
184983
185045
  }
@@ -184994,7 +185056,7 @@ function tableOfContents(toc, headings) {
184994
185056
  li2.classList.remove("active");
184995
185057
  }
184996
185058
  const href = `#${target.id}`;
184997
- const link2 = toc.querySelector(`a[href="${href}"]`);
185059
+ const link2 = toc.querySelector(`a[href="${CSS.escape(href)}"]`);
184998
185060
  const li = link2?.closest("li");
184999
185061
  li?.classList.add("active");
185000
185062
  }
@@ -185011,10 +185073,10 @@ function tableOfContents(toc, headings) {
185011
185073
  }
185012
185074
  onContentReady(() => {
185013
185075
  const toc = document.querySelector("#outline");
185014
- const headings = document.querySelectorAll("#content h2");
185015
185076
  if (!toc) {
185016
185077
  return;
185017
185078
  }
185079
+ const headings = document.querySelectorAll("#content h2");
185018
185080
  tableOfContents(toc, headings);
185019
185081
  });
185020
185082
  var tableOfContentsQuery = window.matchMedia(
@@ -185059,7 +185121,7 @@ function cloneScripts(element3, href) {
185059
185121
  if (src) {
185060
185122
  const url = new URL(src, href);
185061
185123
  url.searchParams.append("ts", ts);
185062
- copy5.src = url.toString();
185124
+ copy5.src = url.href;
185063
185125
  }
185064
185126
  if (script2.textContent) {
185065
185127
  copy5.textContent = script2.textContent;
@@ -185095,7 +185157,9 @@ async function replaceContent(href) {
185095
185157
  if (!path4) {
185096
185158
  continue;
185097
185159
  }
185098
- const element4 = doc.querySelector(`#sidenav a[data-path="${path4}"]`);
185160
+ const element4 = doc.querySelector(
185161
+ `#sidenav a[data-path="${CSS.escape(path4)}"]`
185162
+ );
185099
185163
  const href2 = element4?.getAttribute("href");
185100
185164
  if (href2) {
185101
185165
  link2.setAttribute("href", href2);
@@ -185153,11 +185217,10 @@ function getVisibleHeight(el) {
185153
185217
  const rect3 = el.getBoundingClientRect();
185154
185218
  if (rect3.bottom < 0 || rect3.top > clientHeight) {
185155
185219
  return 0;
185156
- } else {
185157
- const top2 = Math.max(-rect3.top, 0);
185158
- const bottom2 = rect3.height - Math.max(rect3.bottom - clientHeight, 0);
185159
- return Math.floor(bottom2 - top2);
185160
185220
  }
185221
+ const top2 = Math.max(-rect3.top, 0);
185222
+ const bottom2 = rect3.height - Math.max(rect3.bottom - clientHeight, 0);
185223
+ return Math.floor(bottom2 - top2);
185161
185224
  }
185162
185225
  function updateSidenavHeight(navigation2) {
185163
185226
  const { clientHeight } = document.documentElement;
@@ -186109,7 +186172,7 @@ function setup() {
186109
186172
  function updateResults() {
186110
186173
  const searchResults = getSearchResults(searchTerm);
186111
186174
  if (searchResults.length === 0) {
186112
- results.innerHTML = "";
186175
+ results.replaceChildren();
186113
186176
  return;
186114
186177
  }
186115
186178
  active = 0;
@@ -186134,7 +186197,7 @@ function setup() {
186134
186197
  );
186135
186198
  fragment.append(li);
186136
186199
  }
186137
- results.innerHTML = "";
186200
+ results.replaceChildren();
186138
186201
  results.append(fragment);
186139
186202
  }
186140
186203
  function clickOutside(event3) {
@@ -186190,14 +186253,15 @@ function setup() {
186190
186253
  }
186191
186254
  });
186192
186255
  document.addEventListener("keydown", (event3) => {
186193
- if (event3.ctrlKey && event3.key === "k") {
186194
- event3.preventDefault();
186195
- input.value = searchTerm = "";
186196
- updateResults();
186197
- dialog.showModal();
186198
- document.body.addEventListener("click", clickOutside);
186199
- document.body.classList.add("docs-modal-active");
186256
+ if (!(event3.ctrlKey && event3.key === "k")) {
186257
+ return;
186200
186258
  }
186259
+ event3.preventDefault();
186260
+ input.value = searchTerm = "";
186261
+ updateResults();
186262
+ dialog.showModal();
186263
+ document.body.addEventListener("click", clickOutside);
186264
+ document.body.classList.add("docs-modal-active");
186201
186265
  });
186202
186266
  window.addEventListener("docs:navigation", () => {
186203
186267
  initButton();
@@ -186341,10 +186405,11 @@ function togglePopover(event3, refs) {
186341
186405
  setPopoverVisibility(refs.popover.style.visibility === "hidden", refs);
186342
186406
  }
186343
186407
  function closePopoverOnEsc(event3, refs) {
186344
- if (event3.key === "Escape") {
186345
- setPopoverVisibility(false, refs);
186346
- refs.moreButton.focus();
186408
+ if (event3.key !== "Escape") {
186409
+ return;
186347
186410
  }
186411
+ setPopoverVisibility(false, refs);
186412
+ refs.moreButton.focus();
186348
186413
  }
186349
186414
  function onClickPopover(event3) {
186350
186415
  event3.stopPropagation();
@@ -186432,7 +186497,7 @@ var motdSymbol = /* @__PURE__ */ Symbol.for("motd");
186432
186497
  // src/runtime/motd/motd-proxy.ts
186433
186498
  var motdProxy = {
186434
186499
  get enabled() {
186435
- return Boolean(window[motdSymbol]);
186500
+ return Object.hasOwn(window, motdSymbol);
186436
186501
  },
186437
186502
  showMessage(...args) {
186438
186503
  const api2 = window[motdSymbol];
@@ -186455,7 +186520,7 @@ export {
186455
186520
  /*! Bundled license information:
186456
186521
 
186457
186522
  dompurify/dist/purify.es.mjs:
186458
- (*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
186523
+ (*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE *)
186459
186524
 
186460
186525
  mermaid/dist/chunks/mermaid.core/chunk-ZIRB5QZD.mjs:
186461
186526
  (*! Bundled license information: