@dogsbay/ssg-cli 0.2.0-beta.182 → 0.2.0-beta.186
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/THIRD-PARTY-NOTICES.txt +17 -17
- package/chunks/{build-command-HIL2YZTZ.mjs → build-command-X76EICE4.mjs} +8 -6
- package/chunks/{check-command-N6UDUIQI.mjs → check-command-SXDUKSAZ.mjs} +45 -7
- package/chunks/chunk-AOHGXC4D.mjs +2012 -0
- package/chunks/{chunk-LNWQN7K7.mjs → chunk-FNP5PNJW.mjs} +1 -1
- package/chunks/{chunk-E3FODT5J.mjs → chunk-TRECVC6H.mjs} +247 -69
- package/chunks/{chunk-BN7J5H3S.mjs → chunk-XQORVEL6.mjs} +8 -6
- package/chunks/{chunk-IERF2DNL.mjs → chunk-YA6TJOAM.mjs} +8888 -9563
- package/chunks/{chunk-KFYMG4VB.mjs → chunk-YQ2K646L.mjs} +4 -1
- package/chunks/{dev-VKRNKGO4.mjs → dev-DXMZPST7.mjs} +4 -3
- package/chunks/{menu-N2AZSZKS.mjs → menu-W7ZXME4A.mjs} +7 -5
- package/chunks/{publish-command-PM4D37FB.mjs → publish-command-AVMRM4UZ.mjs} +5 -4
- package/chunks/{release-diff-ULY6YVSH.mjs → release-diff-3OZOYBXR.mjs} +5 -4
- package/chunks/{serve-WGWRM7JQ.mjs → serve-U2YV7AQH.mjs} +3 -1
- package/cli.mjs +8 -8
- package/package.json +2 -2
|
@@ -4,8 +4,27 @@ import {
|
|
|
4
4
|
ANNOUNCEMENT_HEAD_SCRIPT,
|
|
5
5
|
COLOR_MODE_HEAD_SCRIPTS,
|
|
6
6
|
FORWARD_SCRIPT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YQ2K646L.mjs";
|
|
8
8
|
import {
|
|
9
|
+
codeRequest,
|
|
10
|
+
createRenderContext,
|
|
11
|
+
dirname,
|
|
12
|
+
highlightInputs,
|
|
13
|
+
indexNav,
|
|
14
|
+
inlineText,
|
|
15
|
+
isExternal,
|
|
16
|
+
navFromPages,
|
|
17
|
+
normalize,
|
|
18
|
+
relative,
|
|
19
|
+
renderBlocks,
|
|
20
|
+
rootPrefix,
|
|
21
|
+
scriptUrl,
|
|
22
|
+
slugFromPath,
|
|
23
|
+
splitHref,
|
|
24
|
+
whenAttrs
|
|
25
|
+
} from "./chunk-AOHGXC4D.mjs";
|
|
26
|
+
import {
|
|
27
|
+
CHOICES_HEAD_SCRIPT,
|
|
9
28
|
CORE_SCHEMA,
|
|
10
29
|
DATA_DIRECTIVES,
|
|
11
30
|
DEFAULT_DATA_LIMITS,
|
|
@@ -23,55 +42,48 @@ import {
|
|
|
23
42
|
assignBlockIds,
|
|
24
43
|
authoredInlineAnchor,
|
|
25
44
|
callable,
|
|
26
|
-
|
|
45
|
+
choiceRootAttributes,
|
|
46
|
+
choicesCss,
|
|
27
47
|
composeTextMaps,
|
|
28
48
|
createEnvironment,
|
|
29
49
|
createFenceTracker,
|
|
30
|
-
createRenderContext,
|
|
31
50
|
declaresParams,
|
|
32
51
|
diffTextMap,
|
|
33
52
|
directoryChildren,
|
|
34
|
-
dirname,
|
|
35
53
|
dogsbayMdToTree,
|
|
36
54
|
examplePageLine,
|
|
37
55
|
firstH1,
|
|
56
|
+
fixedChoices,
|
|
38
57
|
hasChildLinks,
|
|
39
58
|
hasDataDirectives,
|
|
40
59
|
hasExampleSources,
|
|
60
|
+
hasWhen,
|
|
41
61
|
headingIds,
|
|
42
|
-
highlightInputs,
|
|
43
|
-
indexNav,
|
|
44
|
-
inlineText,
|
|
45
|
-
isExternal,
|
|
46
62
|
isMinjaProcessedFence,
|
|
47
63
|
load,
|
|
48
64
|
maskMinjaInCode,
|
|
49
|
-
navFromPages,
|
|
50
65
|
navKey,
|
|
51
|
-
normalize,
|
|
52
66
|
offsetIncludeMaps,
|
|
53
67
|
pageRecord,
|
|
68
|
+
parseChoices,
|
|
54
69
|
parseMeta,
|
|
55
70
|
readMarkdownStyle,
|
|
56
71
|
realizeChildLinks,
|
|
57
|
-
relative,
|
|
58
72
|
render,
|
|
59
|
-
renderBlocks,
|
|
60
73
|
renderWithSourceMap,
|
|
74
|
+
resolveChoices,
|
|
61
75
|
resolveDataDirectives,
|
|
62
76
|
resolveExampleSources,
|
|
63
|
-
rootPrefix,
|
|
64
77
|
safe,
|
|
65
|
-
scriptUrl,
|
|
66
|
-
slugFromPath,
|
|
67
78
|
splitFrontmatter,
|
|
68
|
-
splitHref,
|
|
69
79
|
stripFenceMinjaMarkers,
|
|
70
80
|
stripInlineMinjaMarkers,
|
|
71
81
|
textMapOfLines,
|
|
72
82
|
treeToDogsbayMd,
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
unfixedChoices,
|
|
84
|
+
unmaskMinjaInCode,
|
|
85
|
+
variantTree
|
|
86
|
+
} from "./chunk-YA6TJOAM.mjs";
|
|
75
87
|
import {
|
|
76
88
|
TEXT_FILE,
|
|
77
89
|
TextCache,
|
|
@@ -2841,6 +2853,10 @@ function parseConfig(text2, overrides = {}) {
|
|
|
2841
2853
|
const { style, errors } = readMarkdownStyle(raw.style);
|
|
2842
2854
|
return { markdownStyle: style, styleWarnings: errors };
|
|
2843
2855
|
})(),
|
|
2856
|
+
...(() => {
|
|
2857
|
+
const { choices, problems } = parseChoices(raw.choices);
|
|
2858
|
+
return { choices, choiceProblems: problems };
|
|
2859
|
+
})(),
|
|
2844
2860
|
llmsTxt: agent.llmsTxt !== false,
|
|
2845
2861
|
llmsFull: agent.llmsFull !== false,
|
|
2846
2862
|
pageActions: {
|
|
@@ -3917,7 +3933,7 @@ function staleUnitFiles(previous, now2, written, assets) {
|
|
|
3917
3933
|
}
|
|
3918
3934
|
|
|
3919
3935
|
// src/generated/versions.ts
|
|
3920
|
-
var PARSER_VERSION = "@dogsbay/format-dogsbay-md@0.2.0-beta.
|
|
3936
|
+
var PARSER_VERSION = "@dogsbay/format-dogsbay-md@0.2.0-beta.186 @dogsbay/corpus@0.2.0-beta.186 @dogsbay/format-topicmap@0.2.0-beta.186 @dogsbay/minja@0.2.0-beta.186 @dogsbay/serialize-core@0.2.0-beta.186 @dogsbay/types@0.2.0-beta.186 gray-matter@4.0.3 js-yaml@5.5.0 markdown-it@14.3.2 markdown-it-attrs@5.0.1 markdown-it-deflist@3.0.1 markdown-it-footnote@4.0.0 markdown-it-front-matter@0.2.4 pele@1.6.0";
|
|
3921
3937
|
|
|
3922
3938
|
// src/core/tree-cache.ts
|
|
3923
3939
|
var FORMAT = "p1";
|
|
@@ -4159,10 +4175,10 @@ function unitPages(cfg, unit, units, files, frontMatterOf, read, includeDrafts)
|
|
|
4159
4175
|
}
|
|
4160
4176
|
|
|
4161
4177
|
// src/generated/assets.ts
|
|
4162
|
-
var CLIENT_JS = '/*! dogsbay-ssg site client (Apache-2.0). Third-party notices: THIRD-PARTY-NOTICES.txt */\n"use strict";(()=>{var Ko=Object.defineProperty;var Vo=(n,t,e)=>t in n?Ko(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var g=(n,t,e)=>Vo(n,typeof t!="symbol"?t+"":t,e);var et=class extends HTMLElement{constructor(){super(...arguments);g(this,"_initialized",!1);g(this,"_deferred",!1)}connectedCallback(){if(!this._initialized&&!this.firstElementChild&&typeof document<"u"&&document.readyState==="loading"){this._deferred||(this._deferred=!0,document.addEventListener("DOMContentLoaded",()=>{this._deferred=!1,this.isConnected&&this.connectedCallback()},{once:!0}));return}this._initialized||(this.setup(),this._initialized=!0),this.connect()}disconnectedCallback(){this.disconnect()}setup(){}connect(){}disconnect(){}},Uo={"db-tabs":"block","db-accordion":"block","db-collapsible":"block","db-details-sheet":"block","db-card":"block","db-steps":"block","db-code-block":"block","db-link-button":"inline-block","db-dialog":"contents","db-popover":"inline-block","db-tooltip":"inline-block","db-select":"inline-block","db-combobox":"block","db-nav-tree":"block","db-toc":"block","db-announcement":"block"},Hn="dogsbay-elements-display";function nt(){if(typeof document>"u"||document.getElementById(Hn))return;let n=Object.entries(Uo).map(([e,i])=>`:where(${e}){display:${i}}`).join(""),t=document.createElement("style");t.id=Hn,t.textContent=n,document.head.prepend(t)}function Wo(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}function Yt(n,t,e){let i=t;do i+=e?-1:1;while(i>=0&&i<n.length&&Wo(n[i]));return i}var he=class{constructor(n,t,e={}){g(this,"container");g(this,"itemSelector");g(this,"opts");g(this,"keydownHandler",null);g(this,"active",!1);this.container=n,this.itemSelector=t,this.opts={orientation:e.orientation??"horizontal",loop:e.loop??!0,homeEnd:e.homeEnd??!0,onHighlightedIndexChange:e.onHighlightedIndexChange??(()=>{})}}getItems(){return Array.from(this.container.querySelectorAll(this.itemSelector))}isForwardKey(n,t){let{orientation:e}=this.opts;return(e==="horizontal"||e==="both")&&n===(t?"ArrowLeft":"ArrowRight")||(e==="vertical"||e==="both")&&n==="ArrowDown"}isBackwardKey(n,t){let{orientation:e}=this.opts;return(e==="horizontal"||e==="both")&&n===(t?"ArrowRight":"ArrowLeft")||(e==="vertical"||e==="both")&&n==="ArrowUp"}activate(){this.active||(this.active=!0,this.keydownHandler=n=>{let t=this.getItems();if(t.length===0||n.ctrlKey||n.altKey||n.metaKey)return;let e=getComputedStyle(this.container).direction==="rtl",i=t.indexOf(document.activeElement);if(i===-1)return;let o=null;this.isForwardKey(n.key,e)?(o=Yt(t,i,!1),o>=t.length&&(o=this.opts.loop?Yt(t,-1,!1):i)):this.isBackwardKey(n.key,e)?(o=Yt(t,i,!0),o<0&&(o=this.opts.loop?Yt(t,t.length,!0):i)):this.opts.homeEnd&&n.key==="Home"?o=Yt(t,-1,!1):this.opts.homeEnd&&n.key==="End"&&(o=Yt(t,t.length,!0)),o!==null&&(o<0||o>=t.length||o!==i&&(n.preventDefault(),t[i].setAttribute("tabindex","-1"),t[o].setAttribute("tabindex","0"),t[o].focus(),this.opts.onHighlightedIndexChange(o)))},this.container.addEventListener("keydown",this.keydownHandler))}deactivate(){this.active&&(this.active=!1,this.keydownHandler&&(this.container.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null))}setActiveIndex(n,t){n.forEach((e,i)=>{e.setAttribute("tabindex",i===t?"0":"-1")})}isActive(){return this.active}};var Yo=0;function Pn(n){return`${n}-${++Yo}`}var Fn=class extends et{constructor(){super(...arguments);g(this,"list");g(this,"triggers",[]);g(this,"panels",[]);g(this,"nav",null);g(this,"value","");g(this,"syncKey",null);g(this,"orientation","horizontal");g(this,"handleClick",t=>{let e=t.target.closest("[data-part=\'trigger\']");if(!e||e.hasAttribute("disabled"))return;let i=e.dataset.value;i&&this.select(i)});g(this,"handleStorage",t=>{if(!this.syncKey||t.key!==`db-tabs-sync:${this.syncKey}`)return;let e=t.newValue;e&&this.value!==e&&this.has(e)&&this.select(e)});g(this,"handleSyncEvent",(t=>{let e=t.detail.value;e&&this.value!==e&&this.has(e)&&this.select(e)}));g(this,"handleHashChange",()=>{let t=this.valueForHash();t&&(this.select(t.value),t.target&&this.reveal(t.target))})}has(t){return this.triggers.some(e=>e.dataset.value===t)}own(t){return Array.from(this.querySelectorAll(t)).filter(e=>e.closest("db-tabs")===this)}setup(){var s;let t=this.own("[data-part=\'list\']")[0]??null;if(!t)return;this.list=t,this.triggers=this.own("[data-part=\'trigger\']"),this.panels=this.own("[data-part=\'content\']"),this.orientation=this.getAttribute("orientation")||"horizontal",this.syncKey=this.getAttribute("sync-key")||null,t.setAttribute("role","tablist"),t.setAttribute("aria-orientation",this.orientation),this.triggers.forEach(r=>{let a=r.dataset.value;r.setAttribute("role","tab");let c=r.id||Pn("db-tab");r.id=c;let l=this.panels.find(d=>d.dataset.value===a);if(l){l.setAttribute("role","tabpanel");let d=l.id||Pn("db-tabpanel");l.id=d,r.setAttribute("aria-controls",d),l.setAttribute("aria-labelledby",c)}}),this.nav=new he(t,"[data-part=\'trigger\']",{orientation:this.orientation,loop:!0,homeEnd:!0,onHighlightedIndexChange:()=>{var c;let r=document.activeElement,a=(c=r==null?void 0:r.dataset)==null?void 0:c.value;a&&this.select(a)}}),this.nav.activate();let i=this.getAttribute("default-value")||((s=this.triggers[0])==null?void 0:s.dataset.value)||"";if(this.syncKey){let r=localStorage.getItem(`db-tabs-sync:${this.syncKey}`);r&&this.triggers.some(a=>a.dataset.value===r)&&(i=r)}let o=this.valueForHash();o&&(i=o.value),this.select(i),o!=null&&o.target&&this.reveal(o.target)}valueForHash(){let t=window.location.hash.slice(1);if(!t)return;try{t=decodeURIComponent(t)}catch{}if(this.triggers.some(o=>o.dataset.value===t))return{value:t};let e=document.getElementById(t);if(!e)return;let i=this.panels.find(o=>o===e||o.contains(e));return i!=null&&i.dataset.value?{value:i.dataset.value,target:e}:void 0}reveal(t){requestAnimationFrame(()=>{var e;return(e=t.scrollIntoView)==null?void 0:e.call(t)})}connect(){var t;(t=this.list)==null||t.addEventListener("click",this.handleClick),window.addEventListener("hashchange",this.handleHashChange),this.syncKey&&(window.addEventListener("storage",this.handleStorage),document.addEventListener(`db-tabs-sync:${this.syncKey}`,this.handleSyncEvent))}disconnect(){var t;(t=this.list)==null||t.removeEventListener("click",this.handleClick),window.removeEventListener("hashchange",this.handleHashChange),this.syncKey&&(window.removeEventListener("storage",this.handleStorage),document.removeEventListener(`db-tabs-sync:${this.syncKey}`,this.handleSyncEvent))}select(t){this.value!==t&&(this.value=t,this.triggers.forEach(e=>{let i=e.dataset.value===t;e.setAttribute("aria-selected",String(i)),e.setAttribute("tabindex",i?"0":"-1"),i?e.setAttribute("data-state","active"):e.removeAttribute("data-state")}),this.panels.forEach(e=>{let i=e.dataset.value===t;e.hidden=!i,i?(e.setAttribute("data-state","active"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0")):e.removeAttribute("data-state")}),this.syncKey&&(localStorage.setItem(`db-tabs-sync:${this.syncKey}`,t),document.dispatchEvent(new CustomEvent(`db-tabs-sync:${this.syncKey}`,{detail:{value:t,source:this}}))),this.dispatchEvent(new CustomEvent("db-tabs:change",{detail:{value:t},bubbles:!0})))}};nt();customElements.get("db-tabs")||customElements.define("db-tabs",Fn);var Xo=0;function Go(n){return`${n}-${++Xo}`}var _n=class{constructor(n,t,e={}){g(this,"trigger");g(this,"content");g(this,"_open",!1);g(this,"opts");this.trigger=n,this.content=t,this.opts=e;let i=Go("base-collapsible");n.id||(n.id=`${i}-trigger`),t.id||(t.id=`${i}-content`),n.setAttribute("aria-controls",t.id),t.setAttribute("aria-labelledby",n.id),t.setAttribute("role","region"),n.setAttribute("aria-expanded","false"),n.addEventListener("click",()=>{n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||this.toggle()})}get isOpen(){return this._open}toggle(){this._open?this.collapse():this.expand()}expand(){var n,t;this._open||(this._open=!0,this.trigger.setAttribute("aria-expanded","true"),this.content.hidden=!1,this.content.setAttribute("data-state","open"),(t=(n=this.opts).onToggle)==null||t.call(n,!0))}collapse(){var n,t;this._open&&(this._open=!1,this.trigger.setAttribute("aria-expanded","false"),this.content.hidden=!0,this.content.removeAttribute("data-state"),(t=(n=this.opts).onToggle)==null||t.call(n,!1))}};var zn=class extends et{constructor(){super(...arguments);g(this,"items",[]);g(this,"nav",null);g(this,"openValues",new Set);g(this,"type","single")}setup(){this.type=this.getAttribute("type")||"single";let t=this.getAttribute("default-value")||"",e=t?t.split(","):[],i=Array.from(this.querySelectorAll("[data-part=\'item\']"));this.items=i.map(o=>{let s=o.querySelector("[data-part=\'trigger\']"),r=o.querySelector("[data-part=\'content\']");if(!s||!r)return null;let a=o.dataset.value||"",c=o.hasAttribute("data-disabled");c&&(s.setAttribute("disabled",""),s.setAttribute("aria-disabled","true"));let l=new _n(s,r,{onToggle:d=>{d?this.onItemExpanded(a):this.onItemCollapsed(a)}});return{el:o,value:a,collapsible:l,disabled:c}}).filter(Boolean),this.nav=new he(this,"[data-part=\'trigger\']",{orientation:"vertical",loop:!0,homeEnd:!0}),this.nav.activate(),this.items.forEach((o,s)=>{o.collapsible.trigger.setAttribute("tabindex",s===0?"0":"-1")}),e.forEach(o=>{let s=this.items.find(r=>r.value===o&&!r.disabled);s&&s.collapsible.expand()})}onItemExpanded(t){if(this.type==="single"){for(let i of this.openValues)if(i!==t){let o=this.items.find(s=>s.value===i);o&&o.collapsible.collapse()}}this.openValues.add(t);let e=this.items.find(i=>i.value===t);e&&e.el.setAttribute("data-state","open"),this.dispatchEvent(new CustomEvent("db-accordion:change",{detail:{value:t,open:!0,openValues:[...this.openValues]},bubbles:!0}))}onItemCollapsed(t){this.openValues.delete(t);let e=this.items.find(i=>i.value===t);e&&e.el.removeAttribute("data-state"),this.dispatchEvent(new CustomEvent("db-accordion:change",{detail:{value:t,open:!1,openValues:[...this.openValues]},bubbles:!0}))}};nt();customElements.get("db-accordion")||customElements.define("db-accordion",zn);var Zo=0;function st(n){return`${n}-${++Zo}`}function Et(n,t){let e=n.localName;return Array.from(n.querySelectorAll(t)).filter(i=>i.closest(e)===n)}function rt(n,t){return Et(n,t)[0]??null}function Xt(n){if(!n||!n.hasAttribute("data-as-child"))return n;let t=n.firstElementChild;if(!t)return n;let e=n.getAttribute("data-part");return e&&t.setAttribute("data-part",e),t}function ft(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||n.getAttribute("data-disabled")==="true"}function $n(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype.showPopover=="function"}function Gt(n){if(n.hidden=!1,!$n())return"inline";n.hasAttribute("popover")||n.setAttribute("popover","manual"),n.style.inset="auto",n.style.margin="0";try{n.matches(":popover-open")||n.showPopover()}catch{return"inline"}return"top-layer"}function Zt(n){if($n())try{n.matches(":popover-open")&&n.hidePopover()}catch{}n.hidden=!0}var Qo=\'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]\';function qn(n){return Array.from(n.querySelectorAll(Qo)).filter(t=>!t.closest("[hidden]")&&!ft(t))}function Bn(n,t){let e=typeof n.getAnimations=="function"?n.getAnimations():[];if(!e.length)return t();Promise.all(e.map(i=>i.finished)).then(t,t)}function Qt(n){try{return decodeURIComponent(n)}catch{return n}}var Kn=class extends et{constructor(){super(...arguments);g(this,"details",null);g(this,"summary",null);g(this,"dialog",null);g(this,"body",null);g(this,"source",null);g(this,"moved",[]);g(this,"handledHash",null);g(this,"onSummaryClick",t=>{var i,o;let e=t.target;e&&e!==this.summary&&((o=(i=e.closest)==null?void 0:i.call(e,"a[href], button, input, select, textarea, label"))==null?void 0:o.closest("summary"))===this.summary||(t.preventDefault(),this.show())});g(this,"onDialogClick",t=>{let e=this.dialog;if(!e||t.target!==e)return;let i=e.getBoundingClientRect();!(t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom)&&(t.clientX!==0||t.clientY!==0)&&e.close()});g(this,"onDialogClose",()=>this.restore());g(this,"onDocClick",t=>{var s,r;if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let e=(r=(s=t.target)==null?void 0:s.closest)==null?void 0:r.call(s,"a[href]");if(!e||!this.details||this.open||e.hasAttribute("download")||e.target&&e.target!=="_self")return;let i=new URL(e.href,location.href);if(!i.hash||i.hash!==location.hash||i.pathname!==location.pathname||i.search!==location.search)return;let o=document.getElementById(Qt(i.hash.slice(1)));if(!(!o||!this.details.contains(o))){for(let a of this.details.querySelectorAll("db-details-sheet"))a.handledHash=null;this.show(o)}});g(this,"onHash",()=>{this.handledHash=null,this.openForHash()})}get open(){var t;return!!((t=this.dialog)!=null&&t.open)}setup(){var d;let t=Array.from(this.children).find(u=>u.tagName==="DETAILS")??null,e=t?Array.from(t.children).find(u=>u.tagName==="SUMMARY")??null:null,i=typeof HTMLDialogElement<"u"&&typeof HTMLDialogElement.prototype.showModal=="function";if(!t||!e||!i)return;for(let u of Array.from(t.children))u.getAttribute("role")==="status"&&u.setAttribute("aria-live","off");this.details=t,this.summary=e,t.open=!1,Jo();let o=(((d=e.querySelector("[data-part=\'title\']"))==null?void 0:d.textContent)??e.textContent??"").trim(),s=document.createElement("dialog");s.className="db-sheet",s.id=st("db-sheet");let r=document.createElement("h2");r.className="db-sheet-title",r.id=st("db-sheet-title"),r.textContent=o,s.setAttribute("aria-labelledby",r.id);let a=document.createElement("button");a.type="button",a.className="db-sheet-close",a.setAttribute("aria-label",this.getAttribute("close-label")||"Close"),a.innerHTML=\'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>\',a.addEventListener("click",()=>s.close());let c=document.createElement("div");c.className="db-sheet-header",c.append(r,a);let l=document.createElement("div");l.className="db-sheet-body",s.append(c,l),this.append(s),this.dialog=s,this.body=l,e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-controls",s.id),e.setAttribute("aria-expanded","false"),this.setAttribute("data-state","closed")}connect(){this.dialog&&(this.summary.addEventListener("click",this.onSummaryClick),this.dialog.addEventListener("click",this.onDialogClick),this.dialog.addEventListener("close",this.onDialogClose),window.addEventListener("hashchange",this.onHash),document.addEventListener("click",this.onDocClick),queueMicrotask(()=>this.isConnected&&this.openForHash()))}disconnect(){this.dialog&&(this.dialog.open&&this.dialog.close(),this.restore(!1),this.summary.removeEventListener("click",this.onSummaryClick),this.dialog.removeEventListener("click",this.onDialogClick),this.dialog.removeEventListener("close",this.onDialogClose),window.removeEventListener("hashchange",this.onHash),document.removeEventListener("click",this.onDocClick))}show(t){var c;let{dialog:e,details:i,body:o}=this;if(!e||!i||!o||e.open)return;let s=Array.from(i.childNodes).filter(l=>l!==this.summary),r=s.filter(l=>l.nodeType===Node.ELEMENT_NODE),a=r.length===1&&s.every(l=>{var d;return l===r[0]||!((d=l.textContent)!=null&&d.trim())})?r[0]:null;this.source=a??i,this.moved=a?Array.from(a.childNodes):s,o.append(...this.moved),e.showModal(),this.summary.setAttribute("aria-expanded","true"),this.setAttribute("data-state","open"),t&&t!==i&&((c=t.scrollIntoView)==null||c.call(t,{block:"start"})),this.dispatchEvent(new CustomEvent("db-details-sheet:open",{bubbles:!0}))}close(){var t;(t=this.dialog)==null||t.close()}restore(t=!0){var e,i;this.source&&(this.source.append(...this.moved),this.source=null,this.moved=[],this.summary.setAttribute("aria-expanded","false"),this.setAttribute("data-state","closed"),t&&this.isConnected&&((i=(e=this.summary).checkVisibility)==null?void 0:i.call(e))!==!1&&this.summary.focus(),this.dispatchEvent(new CustomEvent("db-details-sheet:close",{bubbles:!0})))}openForHash(){let t=Qt(location.hash.slice(1));if(!t||!this.details||this.handledHash===location.hash||(this.handledHash=location.hash,this.open))return;let e=document.getElementById(t);e&&this.details.contains(e)&&this.show(e)}},jn="dogsbay-details-sheet";function Jo(){if(document.getElementById(jn))return;let n=document.createElement("style");n.id=jn,n.textContent=["dialog.db-sheet{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:none;width:min(32rem,100vw);max-width:100vw;padding:0;border:0;border-left:1px solid var(--border);background:var(--background);color:var(--foreground);box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);flex-direction:column}","dialog.db-sheet[open]{display:flex}","dialog.db-sheet::backdrop{background:rgb(0 0 0/.6)}",".db-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border)}","dialog.db-sheet h2.db-sheet-title{margin:0;padding:0;border:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;scroll-margin:0}",".db-sheet-close{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:0;border-radius:.375rem;background:transparent;color:var(--muted-foreground);cursor:pointer}",".db-sheet-close:hover{background:var(--accent,var(--muted));color:var(--foreground)}",".db-sheet-close:focus-visible{outline:2px solid var(--ring);outline-offset:2px}",".db-sheet-body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;line-height:1.625}","dialog.db-sheet .db-sheet-body>:first-child{margin-top:0}","html:has(dialog.db-sheet[open]){overflow:hidden}","db-details-sheet>details>summary>span:last-child{transform:rotate(-90deg)}","@media (prefers-reduced-motion:no-preference){dialog.db-sheet[open]{animation:db-sheet-in .2s ease-out}dialog.db-sheet[open]::backdrop{animation:db-sheet-fade .2s ease-out}}","@keyframes db-sheet-in{from{transform:translateX(100%)}}","@keyframes db-sheet-fade{from{opacity:0}}"].join(""),document.head.append(n)}nt();customElements.get("db-details-sheet")||customElements.define("db-details-sheet",Kn);var Vn=class extends et{constructor(){super(...arguments);g(this,"copyBtn",null);g(this,"copyIcon",null);g(this,"checkIcon",null);g(this,"liveRegion",null);g(this,"resetTimeout",null);g(this,"handleCopy",async()=>{let t=this.getCopyText();if(t)try{await navigator.clipboard.writeText(t),this.showCopiedFeedback(),this.dispatchEvent(new CustomEvent("db-code-block:copied",{detail:{text:t},bubbles:!0}))}catch{}})}setup(){this.copyBtn=this.querySelector("[data-part=\'copy\']"),this.copyIcon=this.querySelector("[data-part=\'copy-icon\']"),this.checkIcon=this.querySelector("[data-part=\'check-icon\']"),this.copyBtn&&!this.copyBtn.hasAttribute("aria-label")&&this.copyBtn.setAttribute("aria-label","Copy code"),this.liveRegion=document.createElement("span"),this.liveRegion.setAttribute("aria-live","polite"),this.liveRegion.setAttribute("role","status"),this.liveRegion.className="sr-only",this.liveRegion.style.position="absolute",this.liveRegion.style.width="1px",this.liveRegion.style.height="1px",this.liveRegion.style.overflow="hidden",this.liveRegion.style.clip="rect(0, 0, 0, 0)",this.liveRegion.style.whiteSpace="nowrap",this.appendChild(this.liveRegion)}connect(){var t;(t=this.copyBtn)==null||t.addEventListener("click",this.handleCopy)}disconnect(){var t;(t=this.copyBtn)==null||t.removeEventListener("click",this.handleCopy),this.clearResetTimeout()}getCopyText(){let t=this.getAttribute("data-copy-text");if(t)return t;let e=this.querySelector("[data-part=\'code\'] code");if(e)return e.textContent??"";let i=this.querySelector("[data-part=\'code\']");return(i==null?void 0:i.textContent)??""}showCopiedFeedback(){this.clearResetTimeout(),this.copyIcon&&(this.copyIcon.hidden=!0),this.checkIcon&&(this.checkIcon.hidden=!1),this.setAttribute("data-state","copied"),this.liveRegion&&(this.liveRegion.textContent="Copied!"),this.resetTimeout=setTimeout(()=>{this.copyIcon&&(this.copyIcon.hidden=!1),this.checkIcon&&(this.checkIcon.hidden=!0),this.removeAttribute("data-state"),this.liveRegion&&(this.liveRegion.textContent=""),this.resetTimeout=null},2e3)}clearResetTimeout(){this.resetTimeout!==null&&(clearTimeout(this.resetTimeout),this.resetTimeout=null)}};nt();customElements.get("db-code-block")||customElements.define("db-code-block",Vn);var Un=class extends et{constructor(){super(...arguments);g(this,"navData",null);g(this,"onClick",t=>{let e=t.target.closest("[data-part=\'toggle\']");if(!e||e.closest("db-nav-tree")!==this)return;let i=e.closest("[data-part=\'item\']");i&&(this.ensurePrepared(i),this.toggle(i))});g(this,"onKey",t=>{var l,d;if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let e=document.activeElement;if(!e||!this.contains(e))return;let i=this.visibleRows(),o=e.closest("[data-part=\'row\']"),s=o?i.indexOf(o):-1;if(s<0)return;let r=o.closest("[data-part=\'item\']");this.ensurePrepared(r);let a=!!this.groupOf(r),c=u=>{var h;u&&(t.preventDefault(),(h=this.primary(u))==null||h.focus())};switch(t.key){case"ArrowDown":return c(i[s+1]);case"ArrowUp":return c(i[s-1]);case"Home":return c(i[0]);case"End":return c(i[i.length-1]);case"ArrowRight":if(!a)return;t.preventDefault(),this.isOpen(r)?c(this.visibleRows()[s+1]):this.setOpen(r,!0);return;case"ArrowLeft":{if(t.preventDefault(),a&&this.isOpen(r))return this.setOpen(r,!1);let u=(l=r.parentElement)==null?void 0:l.closest("[data-part=\'item\']");if(u&&this.contains(u)){let h=u.querySelector(":scope > [data-part=\'row\']");h&&((d=this.primary(h))==null||d.focus())}return}}})}setup(){for(let t of Et(this,"[data-part=\'item\']"))t.style.getPropertyValue("--db-level")||t.style.setProperty("--db-level",String(this.depthOf(t))),this.prepareItem(t)}depthOf(t){var i,o;let e=0;for(let s=(i=t.parentElement)==null?void 0:i.closest("[data-part=\'item\']");s&&this.contains(s);s=(o=s.parentElement)==null?void 0:o.closest("[data-part=\'item\']"))e++;return e}pathOf(t){var i,o;let e=[];for(let s=t;s&&this.contains(s);s=((i=s.parentElement)==null?void 0:i.closest("[data-part=\'item\']"))??null){let r=Array.from(((o=s.parentElement)==null?void 0:o.children)??[]).filter(a=>a.getAttribute("data-part")==="item");e.unshift(r.indexOf(s))}return e.join(".")}connect(){this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKey);for(let t of Et(this,"[data-part=\'group\'][data-lazy]")){let e=t.closest("[data-part=\'item\']");e&&this.isOpen(e)&&this.fill(t)}!this.fillEmpty()&&this.emptyList()&&document.readyState!=="complete"&&addEventListener("load",()=>this.isConnected&&this.fillEmpty()&&this.afterFill(),{once:!0}),this.afterFill()}afterFill(){this.hasAttribute("scroll-current")&&requestAnimationFrame(()=>this.revealCurrent())}emptyList(){let t=Et(this,"[data-part=\'list\']")[0];return t&&!t.querySelector("[data-part=\'item\']")?t:null}fillEmpty(){let t=this.emptyList(),e=this.data();if(!t||!e)return!1;t.replaceChildren(...this.build(e,""));let i=t,o=this.serverPath();for(let s of o!=null?o.split(".").map(Number):this.currentPath(e)){let r=Array.from(i.children).filter(c=>c.getAttribute("data-part")==="item")[s],a=r&&this.groupOf(r);if(!r||!a)break;a.hasAttribute("data-lazy")&&this.fill(a),this.apply(r,!0),i=a}return!0}serverPath(){var s;let t=(s=this.getAttribute("current-path"))==null?void 0:s.trim(),e=this.data();if(!t||!e||!/^\\d+(?:\\.\\d+)*$/.test(t))return null;let i=t.split(".").map(Number),o=e;for(let r of i){let a=o==null?void 0:o[r];if(!a)return null;o=a[2]}return i.join(".")}currentPath(t){let e=location.href.split("#")[0],i=o=>{for(let s=0;s<o.length;s++){let[,r,a,c]=o[s],l=r!=null&&!c?this.linkOf(r):null;if(l&&new URL(l.href,document.baseURI).href.split("#")[0]===e)return[s];let d=a!=null&&a.length?i(a):null;if(d)return[s,...d]}return null};return i(t)??[]}linkOf(t){let e=t.replace(/[\\u0000-\\u0020]/g,"");if(/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^(?:https?|mailto):/i.test(e))return null;let i=/^[a-z][a-z0-9+.-]*:|^\\/\\//i.test(e);return{href:i?t:(this.getAttribute("base")??"")+t,external:i}}disconnect(){this.removeEventListener("click",this.onClick),this.removeEventListener("keydown",this.onKey)}prepareItem(t){let e=t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'toggle\']");if(!e)return;let i=this.groupOf(t);i||(i=document.createElement("ul"),i.setAttribute("data-part","group"),i.dataset.lazy="",i.dataset.path=this.pathOf(t),i.hidden=!0,t.appendChild(i));let o=t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'link\']");o&&!e.hasAttribute("aria-label")&&!e.querySelector("[data-part=\'label\']")&&e.setAttribute("aria-label",(this.getAttribute("toggle-label")??"Toggle {label}").replace("{label}",()=>(o.getAttribute("aria-label")??o.textContent??"").trim())),this.getAttribute("chevron")!=="css"&&!e.querySelector("[data-part=\'chevron\']")&&e.insertAdjacentHTML("beforeend",ts),i.id||(i.id=st("db-nav-group")),e.setAttribute("aria-controls",i.id),e instanceof HTMLButtonElement&&!e.hasAttribute("type")&&(e.type="button");let s=e.getAttribute("aria-expanded")==="true"||t.getAttribute("data-state")==="open";this.apply(t,s)}ensurePrepared(t){let e=this.toggleOf(t);e&&!e.hasAttribute("aria-controls")&&this.prepareItem(t)}groupOf(t){return t.querySelector(":scope > [data-part=\'group\']")}toggleOf(t){return t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'toggle\']")}primary(t){return t.querySelector(":scope > [data-part=\'link\']")??t.querySelector(":scope > [data-part=\'toggle\']")}visibleRows(){return Et(this,"[data-part=\'row\']").filter(t=>!t.closest("[hidden]"))}isOpen(t){return t.getAttribute("data-state")==="open"}toggle(t){this.setOpen(t,!this.isOpen(t))}setOpen(t,e){let i=this.groupOf(t);!i||this.isOpen(t)===e||(e&&i.hasAttribute("data-lazy")&&this.fill(i),this.apply(t,e),this.dispatchEvent(new CustomEvent("db-nav-tree:toggle",{detail:{item:t,open:e},bubbles:!0})))}apply(t,e){let i=this.groupOf(t),o=this.toggleOf(t);i&&(i.hidden=!e),o==null||o.setAttribute("aria-expanded",String(e)),t.setAttribute("data-state",e?"open":"closed")}revealCurrent(){var s;let t=this.querySelector("[aria-current=\'page\']");if(!t)return;for(let r=t.closest("[data-part=\'item\']");r&&this.contains(r);r=((s=r.parentElement)==null?void 0:s.closest("[data-part=\'item\']"))??null)this.groupOf(r)&&!this.groupOf(r).contains(t)||this.groupOf(r)&&this.setOpen(r,!0);let e=es(this);if(!e)return;let i=t.getBoundingClientRect(),o=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&(e.scrollTop+=i.top-o.top-o.height/2+i.height/2)}data(){if(this.navData)return this.navData;let t=this.getAttribute("data-source"),e=t?globalThis[t]:void 0;return Array.isArray(e)?e:null}fill(t){let e=this.data(),i=t.dataset.path;if(!e||i==null)return;let o=e,s;for(let r of i.split(".").map(Number))s=o==null?void 0:o[r],o=s==null?void 0:s[2];s!=null&&s[2]&&(t.replaceChildren(...this.build(s[2],i)),t.removeAttribute("data-lazy"))}build(t,e){let i=this.getAttribute("toggle-label")??"Toggle {label}",o=location.href.split("#")[0],s=this.serverPath();return t.map(([r,a,c,l],d)=>{let u=e?`${e}.${d}`:String(d),h=document.createElement("li");h.setAttribute("data-part","item"),h.style.setProperty("--db-level",String(u.split(".").length-1));let m=document.createElement("div");m.setAttribute("data-part","row"),h.appendChild(m);let f=a!=null?this.linkOf(a):null;f||(a=null);let v=null;if(c!=null&&c.length)if(v=document.createElement("button"),v.type="button",v.setAttribute("data-part","toggle"),v.setAttribute("aria-expanded","false"),a!=null)v.setAttribute("aria-label",i.replace("{label}",()=>r));else{let p=document.createElement("span");p.setAttribute("data-part","label"),p.textContent=r,v.appendChild(p)}let w=this.getAttribute("toggle-position")==="end";if(v&&!w&&m.appendChild(v),a!=null){let p=document.createElement("a");p.setAttribute("data-part","link"),p.textContent=r,p.href=f.href,f.external&&(p.rel="noopener"),(s!=null?u===s:!l&&p.href.split("#")[0]===o)&&p.setAttribute("aria-current","page"),m.appendChild(p)}if(a==null&&!(c!=null&&c.length)){let p=document.createElement("span");p.setAttribute("data-part","label"),p.textContent=r,m.appendChild(p)}if(v&&w&&m.appendChild(v),c!=null&&c.length){let p=document.createElement("ul");p.setAttribute("data-part","group"),p.dataset.lazy="",p.dataset.path=u,p.hidden=!0,h.setAttribute("data-state","closed"),h.appendChild(p),this.prepareItem(h)}return h})}},ts=\'<svg data-part="chevron" viewBox="0 0 24 24" width="16" height="16" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>\';function es(n){for(let t=n.parentElement;t;t=t.parentElement){let e=getComputedStyle(t).overflowY;if((e==="auto"||e==="scroll")&&t.scrollHeight>t.clientHeight)return t}return null}nt();customElements.get("db-nav-tree")||customElements.define("db-nav-tree",Un);var Wn=class extends et{constructor(){super(...arguments);g(this,"links",[]);g(this,"headings",[]);g(this,"observer",null);g(this,"active",null);g(this,"onScroll",()=>{let t=document.documentElement;window.innerHeight+window.scrollY>=t.scrollHeight-2&&this.headings.length&&this.setActive(this.headings[this.headings.length-1].id)});g(this,"onHash",()=>{let t=Qt(location.hash.slice(1));t&&this.headings.some(e=>e.id===t)&&this.setActive(t)})}slugOf(t){return t.getAttribute("data-toc-slug")??Qt(t.getAttribute("href").slice(1))}setup(){this.links=Array.from(this.querySelectorAll("a[href^=\'#\'], a[data-toc-link]"))}connect(){var e;if(this.headings=this.links.map(i=>document.getElementById(this.slugOf(i))).filter(i=>!!i),!this.headings.length)return;let t=Number(this.getAttribute("offset")??80);typeof IntersectionObserver<"u"&&(this.observer=new IntersectionObserver(i=>{var s;let o=i.find(r=>r.isIntersecting);if(o)return this.setActive(o.target.id);this.setActive(((s=this.lastAbove(t))==null?void 0:s.id)??null)},{rootMargin:`-${t}px 0px -70% 0px`,threshold:0}),this.headings.forEach(i=>this.observer.observe(i))),window.addEventListener("hashchange",this.onHash),window.addEventListener("scroll",this.onScroll,{passive:!0}),this.setActive(((e=this.lastAbove(t))==null?void 0:e.id)??this.headings[0].id)}disconnect(){var t;(t=this.observer)==null||t.disconnect(),this.observer=null,window.removeEventListener("hashchange",this.onHash),window.removeEventListener("scroll",this.onScroll)}lastAbove(t){let e=null;for(let i of this.headings)i.getBoundingClientRect().top<=t+20&&(e=i);return e}setActive(t){if(!(!t||t===this.active)){this.active=t;for(let e of this.links)this.slugOf(e)===t?(e.setAttribute("aria-current","location"),e.setAttribute("data-active","")):(e.removeAttribute("aria-current"),e.removeAttribute("data-active"));this.dispatchEvent(new CustomEvent("db-toc:change",{detail:{id:t},bubbles:!0}))}}};nt();customElements.get("db-toc")||customElements.define("db-toc",Wn);var ns=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",\'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)\',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Je=ns.join(","),Gn=typeof Element>"u",fe=Gn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ke=!Gn&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Te=function(t,e){var i;e===void 0&&(e=!0);var o=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),s=o===""||o==="true",r=s||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Te(t.parentNode));return r},is=function(t){var e,i=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return i===""||i==="true"},os=function(t,e,i){if(Te(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Je));return e&&fe.call(t,Je)&&o.unshift(t),o=o.filter(i),o},tn=function(t,e,i){for(var o=[],s=Array.from(t);s.length;){var r=s.shift();if(!Te(r,!1))if(r.tagName==="SLOT"){var a=r.assignedElements(),c=a.length?a:r.children,l=tn(c,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:r,candidates:l})}else{var d=fe.call(r,Je);d&&i.filter(r)&&(e||!t.includes(r))&&o.push(r);var u=r.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(r),h=!Te(u,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(u&&h){var m=tn(u===!0?r.children:u.children,!0,i);i.flatten?o.push.apply(o,m):o.push({scopeParent:r,candidates:m})}else s.unshift.apply(s,r.children)}}return o},Zn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||is(t))&&!Zn(t)?0:t.tabIndex},ss=function(t,e){var i=Qn(t);return i<0&&e&&!Zn(t)?0:i},rs=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Jn=function(t){return t.tagName==="INPUT"},as=function(t){return Jn(t)&&t.type==="hidden"},cs=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return e},ls=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]},ds=function(t){if(!t.name)return!0;var e=t.form||ke(t),i=function(a){return e.querySelectorAll(\'input[type="radio"][name="\'+a+\'"]\')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=i(window.CSS.escape(t.name));else try{o=i(t.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var s=ls(o,t.form);return!s||s===t},us=function(t){return Jn(t)&&t.type==="radio"},hs=function(t){return us(t)&&!ds(t)},fs=function(t){var e,i=t&&ke(t),o=(e=i)===null||e===void 0?void 0:e.host,s=!1;if(i&&i!==t){var r,a,c;for(s=!!((r=o)!==null&&r!==void 0&&(a=r.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var l,d,u;i=ke(o),o=(l=i)===null||l===void 0?void 0:l.host,s=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return s},Yn=function(t){var e=t.getBoundingClientRect(),i=e.width,o=e.height;return i===0&&o===0},ps=function(t,e){var i=e.displayCheck,o=e.getShadowRoot;if(i==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var r=getComputedStyle(t),a=r.visibility;if(a==="hidden"||a==="collapse")return!0;var c=fe.call(t,"details>summary:first-of-type"),l=c?t.parentElement:t;if(fe.call(l,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof o=="function"){for(var d=t;t;){var u=t.parentElement,h=ke(t);if(u&&!u.shadowRoot&&o(u)===!0)return Yn(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=d}if(fs(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return Yn(t);return!1},ms=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var i=0;i<e.children.length;i++){var o=e.children.item(i);if(o.tagName==="LEGEND")return fe.call(e,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}e=e.parentElement}return!1},gs=function(t,e){return!(e.disabled||as(e)||ps(e,t)||cs(e)||ms(e))},Xn=function(t,e){return!(hs(e)||Qn(e)<0||!gs(t,e))},bs=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},ti=function(t){var e=[],i=[];return t.forEach(function(o,s){var r=!!o.scopeParent,a=r?o.scopeParent:o,c=ss(a,r),l=r?ti(o.candidates):a;c===0?r?e.push.apply(e,l):e.push(a):i.push({documentOrder:s,tabIndex:c,item:o,isScope:r,content:l})}),i.sort(rs).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(e)},en=function(t,e){e=e||{};var i;return e.getShadowRoot?i=tn([t],e.includeContainer,{filter:Xn.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:bs}):i=os(t,e.includeContainer,Xn.bind(null,e)),ti(i)};var nn=class{constructor(n,t={}){g(this,"root");g(this,"opts");g(this,"previouslyFocused",null);g(this,"keydownHandler",null);g(this,"active",!1);this.root=n,this.opts={initialFocus:t.initialFocus??"first",returnFocus:t.returnFocus??!0}}activate(){this.active||(this.active=!0,this.previouslyFocused=document.activeElement,this.keydownHandler=n=>{if(n.key!=="Tab")return;let t=en(this.root);if(t.length===0){n.preventDefault();return}let e=t[0],i=t[t.length-1];n.shiftKey?document.activeElement===e&&(i.focus(),n.preventDefault()):document.activeElement===i&&(e.focus(),n.preventDefault())},document.addEventListener("keydown",this.keydownHandler),requestAnimationFrame(()=>{var t;if(!this.active)return;let n=en(this.root);this.opts.initialFocus instanceof HTMLElement&&this.root.contains(this.opts.initialFocus)?this.opts.initialFocus.focus():this.opts.initialFocus==="container"?(this.root.hasAttribute("tabindex")||this.root.setAttribute("tabindex","-1"),this.root.focus()):(t=n[0])==null||t.focus()}))}deactivate(){this.active&&(this.active=!1,this.keydownHandler&&(document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null),this.opts.returnFocus&&this.previouslyFocused&&document.contains(this.previouslyFocused)&&this.previouslyFocused.focus(),this.previouslyFocused=null)}isActive(){return this.active}};var lt,Pt=(lt=class{static activate(){if(lt.count++,lt.count>1)return;let t=window.innerWidth-document.documentElement.clientWidth;lt.originalStyles={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight},document.body.style.overflow="hidden",t>0&&(document.body.style.paddingRight=`${t}px`)}static deactivate(){lt.count=Math.max(0,lt.count-1),!(lt.count>0)&<.originalStyles&&(document.body.style.overflow=lt.originalStyles.overflow,document.body.style.paddingRight=lt.originalStyles.paddingRight,lt.originalStyles=null)}static reset(){lt.count=0,lt.originalStyles=null}},g(lt,"count",0),g(lt,"originalStyles",null),lt);var St=[];function vs(n){if(n.key!=="Escape"||St.length===0)return;let t=St[St.length-1];t.escapePrevented||(n.preventDefault(),n.stopPropagation(),t.opts.onDismiss("escape-key"))}var ei=!1;function ys(){ei||(ei=!0,document.addEventListener("keydown",vs))}var Ft=class{constructor(n,t){g(this,"root");g(this,"opts");g(this,"outsideHandler",null);g(this,"active",!1);g(this,"frameId",null);g(this,"escapePrevented",!1);this.root=n,this.opts={onDismiss:t.onDismiss,escapeKey:t.escapeKey??!0,outsidePress:t.outsidePress??!0}}activate(){this.active||(this.active=!0,this.opts.escapeKey&&(ys(),St.push(this)),this.opts.outsidePress&&(this.outsideHandler=n=>{if(St.length>0&&St[St.length-1]!==this)return;let t=n.target;if(this.root.contains(t))return;let e=this.root.id;if(e){let o=document.querySelector(`[aria-controls="${e}"]`);if(o!=null&&o.contains(t))return}let i=this.root.getAttribute("aria-labelledby");if(i){let o=document.getElementById(i);if(o!=null&&o.contains(t))return}typeof this.opts.outsidePress=="function"&&!this.opts.outsidePress(n)||this.opts.onDismiss("outside-press")},this.frameId=requestAnimationFrame(()=>{this.frameId=null,this.outsideHandler&&document.addEventListener("pointerdown",this.outsideHandler)})))}deactivate(){if(!this.active)return;this.active=!1;let n=St.indexOf(this);n!==-1&&St.splice(n,1),this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.outsideHandler&&(document.removeEventListener("pointerdown",this.outsideHandler),this.outsideHandler=null)}isActive(){return this.active}};function on(n){let t=[],e=n;for(;e&&e!==document.body;){let i=e.parentElement;if(!i)break;for(let o=0;o<i.children.length;o++){let s=i.children[o];if(s===e||s.contains(n))continue;let r=s.tagName;if(r==="SCRIPT"||r==="STYLE"||r==="LINK")continue;let a=s.getAttribute("aria-hidden");a!=="true"&&(t.push({el:s,prev:a}),s.setAttribute("aria-hidden","true"))}e=i}return()=>{for(let{el:i,prev:o}of t)o===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",o)}}var ni=class extends et{constructor(){super(...arguments);g(this,"content",null);g(this,"backdrop",null);g(this,"trigger",null);g(this,"native",!1);g(this,"_open",!1);g(this,"openedBy",null);g(this,"focusTrap",null);g(this,"dismiss",null);g(this,"cleanupInert",null);g(this,"onTriggerClick",t=>{t.preventDefault(),this.toggle(t.currentTarget)});g(this,"onHostClick",t=>{let e=t.target.closest("[data-part=\'close\']");e&&e.closest("db-dialog")===this&&this.close("close-press")});g(this,"onDocumentClick",t=>{var o,s,r;let e=(s=(o=t.target).closest)==null?void 0:s.call(o,"[data-dialog-for]");if(!e||e===this.trigger)return;let i=e.getAttribute("data-dialog-for");i&&(i===this.id||i===((r=this.content)==null?void 0:r.id))&&(t.preventDefault(),this.toggle(e))});g(this,"onCancel",t=>{t.preventDefault(),this.dismissible&&this.close("escape-key")});g(this,"onNativeClick",t=>{if(!this.dismissible||t.target!==this.content||!this.content)return;let e=this.content.getBoundingClientRect();!(t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom)&&(t.clientX!==0||t.clientY!==0)&&this.close("outside-press")});g(this,"onNativeClose",()=>{this._open&&this.finishClose("close-press")})}get open(){return this._open}get dismissible(){return this.getAttribute("dismissible")!=="false"}setup(){if(this.content=rt(this,"[data-part=\'content\']"),!this.content)return;this.native=typeof HTMLDialogElement<"u"&&this.content instanceof HTMLDialogElement&&typeof this.content.showModal=="function",this.backdrop=rt(this,"[data-part=\'backdrop\']"),this.trigger=Xt(rt(this,"[data-part=\'trigger\']"));let t=this.content;t.id||(t.id=st("db-dialog")),this.native||(t.setAttribute("role",t.getAttribute("role")||"dialog"),t.setAttribute("aria-modal","true"),t.hidden=!this.hasAttribute("open"),this.backdrop&&(this.backdrop.hidden=!0));let e=t.querySelector("[data-part=\'title\']");e&&!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("aria-label")&&(e.id||(e.id=st("db-dialog-title")),t.setAttribute("aria-labelledby",e.id));let i=t.querySelector("[data-part=\'description\']");i&&!t.hasAttribute("aria-describedby")&&(i.id||(i.id=st("db-dialog-desc")),t.setAttribute("aria-describedby",i.id));for(let o of this.triggers())this.prepareTrigger(o);this.setState("closed"),this.native||(this.focusTrap=new nn(t),this.dismiss=new Ft(t,{onDismiss:o=>this.dismissible&&this.close(o)}))}connect(){var t;this.content&&((t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),this.addEventListener("click",this.onHostClick),document.addEventListener("click",this.onDocumentClick),this.native&&(this.content.addEventListener("cancel",this.onCancel),this.content.addEventListener("click",this.onNativeClick),this.content.addEventListener("close",this.onNativeClose)),queueMicrotask(()=>{if(this.isConnected){for(let e of this.triggers())e.hasAttribute("aria-controls")||this.prepareTrigger(e);this.hasAttribute("open")&&!this._open&&this.show()}}))}disconnect(){var t;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),this.removeEventListener("click",this.onHostClick),document.removeEventListener("click",this.onDocumentClick),this.content&&this.native&&(this.content.removeEventListener("cancel",this.onCancel),this.content.removeEventListener("click",this.onNativeClick),this.content.removeEventListener("close",this.onNativeClose)),this._open&&this.finishClose("api",!1)}triggers(){var i;let t=this.trigger?[this.trigger]:[],e=[this.id,(i=this.content)==null?void 0:i.id].filter(Boolean);for(let o of e)document.querySelectorAll(`[data-dialog-for="${CSS.escape(o)}"]`).forEach(s=>t.push(s));return t}prepareTrigger(t){t.hasAttribute("aria-haspopup")||t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-controls",this.content.id),t.setAttribute("aria-expanded","false")}setState(t){var e,i;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t),(i=this.backdrop)==null||i.setAttribute("data-state",t)}toggle(t){this._open?this.close("trigger-press"):this.show(t)}show(t){var i,o;let e=this.content;if(!(!e||this._open)){this._open=!0,this.openedBy=t??document.activeElement??this.trigger;for(let s of this.triggers())this.prepareTrigger(s),s.setAttribute("aria-expanded","true");if(Pt.activate(),this.native){let s=e;s.open||s.showModal()}else e.hidden=!1,this.backdrop&&(this.backdrop.hidden=!1),this.cleanupInert=on(e),(i=this.focusTrap)==null||i.activate(),(o=this.dismiss)==null||o.activate();this.setState("open"),this.dispatchEvent(new CustomEvent("db-dialog:open",{bubbles:!0}))}}close(t="api"){this._open&&this.finishClose(t)}finishClose(t,e=!0){var s,r,a;let i=this.content;this._open=!1,this.setState("closed");for(let c of this.triggers())c.setAttribute("aria-expanded","false");if(Pt.deactivate(),this.native){let c=i;c.open&&c.close()}else(s=this.dismiss)==null||s.deactivate(),(r=this.focusTrap)==null||r.deactivate(),(a=this.cleanupInert)==null||a.call(this),this.cleanupInert=null,Bn(i,()=>{this._open||(i.hidden=!0,this.backdrop&&(this.backdrop.hidden=!0))});let o=this.openedBy;this.openedBy=null,e&&o&&document.contains(o)&&o.focus(),this.dispatchEvent(new CustomEvent("db-dialog:close",{detail:{reason:t},bubbles:!0}))}};nt();customElements.get("db-dialog")||customElements.define("db-dialog",ni);var ii=class extends et{constructor(){super(...arguments);g(this,"input",null);g(this,"listbox",null);g(this,"empty",null);g(this,"_open",!1);g(this,"highlighted",null);g(this,"observer",null);g(this,"base",st("db-combobox"));g(this,"optionSeq",0);g(this,"onInput",()=>{this.filtering?this.filter(this.input.value):this.show()});g(this,"onFocus",()=>{(this.hasAttribute("open-on-focus")||this.filtering&&this.input.value)&&(this.filtering?this.filter(this.input.value):this.show())});g(this,"onKey",t=>{let e=this.visible(),i=this.highlighted?e.indexOf(this.highlighted):-1;switch(t.key){case"ArrowDown":t.preventDefault(),this._open||this.show(),e.length&&this.highlight(e[i<0?0:Math.min(i+1,e.length-1)]);break;case"ArrowUp":t.preventDefault(),this._open||this.show(),e.length&&this.highlight(e[i<0?e.length-1:Math.max(i-1,0)]);break;case"Home":case"End":this._open&&this.highlighted&&e.length&&(t.preventDefault(),this.highlight(t.key==="Home"?e[0]:e[e.length-1]));break;case"Enter":this._open&&this.highlighted&&(t.preventDefault(),this.choose(this.highlighted));break;case"Escape":this._open&&!this.inline?(t.preventDefault(),t.stopPropagation(),this.hide()):this.input.value&&(t.preventDefault(),t.stopPropagation(),this.input.value="",this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.hide());break;case"Tab":this.inline||this.hide();break}});g(this,"onListClick",t=>{let e=t.target.closest("[data-part=\'option\']");if(!e||e.closest("db-combobox")!==this||ft(e))return;let i=t.target.closest("a[href]");!this.choose(e,!i)&&i&&t.preventDefault()});g(this,"onListPointer",t=>{let e=t.target.closest("[data-part=\'option\']");e&&e.closest("db-combobox")===this&&!ft(e)&&!e.hidden&&this.highlight(e)});g(this,"onListDown",t=>t.preventDefault());g(this,"onDocDown",t=>{this._open&&!this.inline&&!this.contains(t.target)&&this.hide()})}get open(){return this._open}get inline(){return this.hasAttribute("inline")}get filtering(){return(this.getAttribute("filter")??"contains")!=="none"}options(){return this.listbox?Array.from(this.listbox.querySelectorAll("[data-part=\'option\']")).filter(t=>t.closest("db-combobox")===this):[]}visible(){return this.options().filter(t=>!t.hidden&&!ft(t))}setup(){if(this.input=rt(this,"[data-part=\'input\']"),this.listbox=rt(this,"[data-part=\'listbox\']"),this.empty=rt(this,"[data-part=\'empty\']"),!this.input||!this.listbox)return;let{input:t,listbox:e}=this;e.id||(e.id=`${this.base}-listbox`),e.setAttribute("role","listbox"),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls",e.id),t.setAttribute("autocomplete","off"),this.inline||(e.hidden=!0),this.prepareOptions(),this.syncExpanded()}prepareOptions(){this.options().forEach(t=>{t.id||(t.id=`${this.base}-option-${++this.optionSeq}`),t.setAttribute("role","option"),t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.matches("a[href], button")&&t.setAttribute("tabindex","-1"),t.querySelectorAll("a, button").forEach(e=>e.setAttribute("tabindex","-1")),t.parentElement&&t.parentElement!==this.listbox&&t.parentElement.localName==="li"&&!t.parentElement.hasAttribute("role")&&t.parentElement.setAttribute("role","none")})}connect(){let{input:t,listbox:e}=this;!t||!e||(t.addEventListener("input",this.onInput),t.addEventListener("focus",this.onFocus),t.addEventListener("keydown",this.onKey),e.addEventListener("click",this.onListClick),e.addEventListener("pointermove",this.onListPointer),e.addEventListener("mousedown",this.onListDown),document.addEventListener("pointerdown",this.onDocDown),typeof MutationObserver<"u"&&(this.observer=new MutationObserver(()=>this.onOptionsChanged()),this.observer.observe(e,{childList:!0,subtree:!0})))}disconnect(){var i;let{input:t,listbox:e}=this;t==null||t.removeEventListener("input",this.onInput),t==null||t.removeEventListener("focus",this.onFocus),t==null||t.removeEventListener("keydown",this.onKey),e==null||e.removeEventListener("click",this.onListClick),e==null||e.removeEventListener("pointermove",this.onListPointer),e==null||e.removeEventListener("mousedown",this.onListDown),document.removeEventListener("pointerdown",this.onDocDown),(i=this.observer)==null||i.disconnect(),this.observer=null}refresh(){this.onOptionsChanged()}onOptionsChanged(){this.prepareOptions(),this.highlighted&&!this.options().includes(this.highlighted)&&this.clearHighlight();let t=this.visible();this.filtering||(t.length||this.inline?this.show():this.hide(),t.length&&!this.highlighted&&!this.hasAttribute("no-autohighlight")&&this.highlight(t[0])),this.syncExpanded(),this.dispatchEvent(new CustomEvent("db-combobox:update",{detail:{count:t.length},bubbles:!0}))}filter(t){let e=t.toLowerCase().trim(),i=0;for(let s of this.options()){let r=!e||(s.textContent??"").toLowerCase().includes(e)||(s.dataset.value??"").toLowerCase().includes(e);s.hidden=!r,r&&i++}this.empty&&(this.empty.hidden=i>0||!e),this.clearHighlight(),i||e&&this.empty?this.show():this.hide();let o=this.visible();o.length&&!this.hasAttribute("no-autohighlight")&&this.highlight(o[0]),this.dispatchEvent(new CustomEvent("db-combobox:update",{detail:{count:i},bubbles:!0}))}syncExpanded(){if(!this.input)return;let t=this.inline?this.visible().length>0:this._open;this.input.setAttribute("aria-expanded",String(t)),this.setAttribute("data-state",t?"open":"closed")}show(){if(!this.listbox||this._open)return this.syncExpanded();this._open=!0,this.listbox.hidden=!1,this.syncExpanded()}hide(){if(this.listbox){if(this.clearHighlight(),!this._open)return this.syncExpanded();this._open=!1,this.inline||(this.listbox.hidden=!0),this.syncExpanded()}}highlight(t){var e,i,o;this.input&&((e=this.highlighted)==null||e.removeAttribute("data-highlighted"),(i=this.highlighted)==null||i.setAttribute("aria-selected","false"),this.highlighted=t,t.setAttribute("data-highlighted",""),t.setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",t.id),(o=t.scrollIntoView)==null||o.call(t,{block:"nearest"}))}clearHighlight(){var t,e,i;(t=this.highlighted)==null||t.removeAttribute("data-highlighted"),(e=this.highlighted)==null||e.setAttribute("aria-selected","false"),this.highlighted=null,(i=this.input)==null||i.removeAttribute("aria-activedescendant")}choose(t,e=!0){var a;let i=t.dataset.value??"",o=((a=t.textContent)==null?void 0:a.trim())??i,s=new CustomEvent("db-combobox:select",{detail:{value:i,text:o,option:t},bubbles:!0,cancelable:!0});if(!this.dispatchEvent(s))return!1;let r=t.matches("a[href]")?t:t.querySelector("a[href]");return r?(e&&r.click(),!0):(this.input&&(this.input.value=t.getAttribute("data-label")??o),this.inline||this.hide(),this.dispatchEvent(new CustomEvent("db-combobox:change",{detail:{value:i,text:o},bubbles:!0})),!0)}};nt();customElements.get("db-combobox")||customElements.define("db-combobox",ii);var Ot=Math.min,mt=Math.max,me=Math.round,ge=Math.floor,vt=n=>({x:n,y:n}),ws={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(n,t,e){return mt(n,Ot(t,e))}function Jt(n,t){return typeof n=="function"?n(t):n}function Rt(n){return n.split("-")[0]}function te(n){return n.split("-")[1]}function sn(n){return n==="x"?"y":"x"}function rn(n){return n==="y"?"height":"width"}function yt(n){let t=n[0];return t==="t"||t==="b"?"y":"x"}function an(n){return sn(yt(n))}function ai(n,t,e){e===void 0&&(e=!1);let i=te(n),o=an(n),s=rn(o),r=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=pe(r)),[r,pe(r)]}function ci(n){let t=pe(n);return[Oe(n),t,Oe(t)]}function Oe(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}var oi=["left","right"],si=["right","left"],xs=["top","bottom"],Es=["bottom","top"];function Ss(n,t,e){switch(n){case"top":case"bottom":return e?t?si:oi:t?oi:si;case"left":case"right":return t?xs:Es;default:return[]}}function li(n,t,e,i){let o=te(n),s=Ss(Rt(n),e==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Oe)))),s}function pe(n){let t=Rt(n);return ws[t]+n.slice(t.length)}function As(n){var t,e,i,o;return{top:(t=n.top)!=null?t:0,right:(e=n.right)!=null?e:0,bottom:(i=n.bottom)!=null?i:0,left:(o=n.left)!=null?o:0}}function di(n){return typeof n!="number"?As(n):{top:n,right:n,bottom:n,left:n}}function _t(n){let{x:t,y:e,width:i,height:o}=n;return{width:i,height:o,top:e,left:t,right:t+i,bottom:e+o,x:t,y:e}}function ui(n,t,e){let{reference:i,floating:o}=n,s=yt(t),r=an(t),a=rn(r),c=Rt(t),l=s==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,h=i[a]/2-o[a]/2,m;switch(c){case"top":m={x:d,y:i.y-o.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:u};break;case"left":m={x:i.x-o.width,y:u};break;default:m={x:i.x,y:i.y}}let f=te(t);return f&&(m[r]+=h*(f==="end"?1:-1)*(e&&l?-1:1)),m}async function hi(n,t){var e;t===void 0&&(t={});let{x:i,y:o,platform:s,rects:r,elements:a,strategy:c}=n,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=Jt(t,n),f=di(m),w=a[h?u==="floating"?"reference":"floating":u],p=_t(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(w)))==null||e?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},D=_t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(p.top-D.top+f.top)/E.y,bottom:(D.bottom-p.bottom+f.bottom)/E.y,left:(p.left-D.left+f.left)/E.x,right:(D.right-p.right+f.right)/E.x}}var Cs=50,fi=async(n,t,e)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=e,a=r.detectOverflow?r:{...r,detectOverflow:hi},c=await(r.isRTL==null?void 0:r.isRTL(t)),l=await r.getElementRects({reference:n,floating:t,strategy:o}),{x:d,y:u}=ui(l,i,c),h=i,m=0,f={};for(let v=0;v<s.length;v++){let w=s[v];if(!w)continue;let{name:p,fn:b}=w,{x,y:E,data:D,reset:S}=await b({x:d,y:u,initialPlacement:i,placement:h,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:n,floating:t}});d=x??d,u=E??u,f[p]={...f[p],...D},S&&m<Cs&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(l=S.rects===!0?await r.getElementRects({reference:n,floating:t,strategy:o}):S.rects),{x:d,y:u}=ui(l,h,c)),v=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:f}};var pi=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...w}=Jt(n,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let p=Rt(o),b=yt(a),x=Rt(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),D=h||(x||!v?[pe(a)]:ci(a)),S=f!=="none";!h&&S&&D.push(...li(a,v,f,E));let A=[a,...D],y=await c.detectOverflow(t,w),W=[],z=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&W.push(y[p]),u){let q=ai(o,r,E);W.push(y[q[0]],y[q[1]])}if(z=[...z,{placement:o,overflows:W}],!W.every(q=>q<=0)){var G,C;let q=(((G=s.flip)==null?void 0:G.index)||0)+1,K=A[q];if(K&&(!(u==="alignment"?b!==yt(K):!1)||z.every(X=>yt(X.placement)===b?X.overflows[0]>0:!0)))return{data:{index:q,overflows:z},reset:{placement:K}};let _=(C=z.filter(j=>j.overflows[0]<=0).sort((j,X)=>j.overflows[1]-X.overflows[1])[0])==null?void 0:C.placement;if(!_)switch(m){case"bestFit":{var O;let j=(O=z.filter(X=>{if(S){let ot=yt(X.placement);return ot===b||ot==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(ot=>ot>0).reduce((ot,it)=>ot+it,0)]).sort((X,ot)=>X[1]-ot[1])[0])==null?void 0:O[0];j&&(_=j);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};var Ls=new Set(["left","top"]);async function ks(n,t){let{placement:e,platform:i,elements:o}=n,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=Rt(e),a=te(e),c=yt(e)==="y",l=Ls.has(r)?-1:1,d=s&&c?-1:1,u=Jt(t,n),{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}var mi=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:o,y:s,placement:r,middlewareData:a}=t,c=await ks(t,n);return r===((e=a.offset)==null?void 0:e.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:r}}}}},gi=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){let{x:e,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:c={fn:b=>{let{x,y:E}=b;return{x,y:E}}},...l}=Jt(n,t),d={x:e,y:i},u=await s.detectOverflow(t,l),h=yt(o),m=sn(h),f=d[m],v=d[h],w=(b,x)=>ri(x+u[b==="y"?"top":"left"],x,x-u[b==="y"?"bottom":"right"]);r&&(f=w(m,f)),a&&(v=w(h,v));let p=c.fn({...t,[m]:f,[h]:v});return{...p,data:{x:p.x-e,y:p.y-i,enabled:{[m]:r,[h]:a}}}}}};var bi=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){let{placement:e,rects:i,platform:o,elements:s}=t,{apply:r=()=>{},...a}=Jt(n,t),c=await o.detectOverflow(t,a),l=Rt(e),d=te(e),u=yt(e)==="y",{width:h,height:m}=i.floating,f,v;l==="top"||l==="bottom"?(f=l,v=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=l,f=d==="end"?"top":"bottom");let w=m-c.top-c.bottom,p=h-c.left-c.right,b=Ot(m-c[f],w),x=Ot(h-c[v],p),E=t.middlewareData.shift,D=!E,S=b,A=x;E!=null&&E.enabled.x&&(A=p),E!=null&&E.enabled.y&&(S=w),D&&!d&&(u?A=h-2*mt(c.left,c.right):S=m-2*mt(c.top,c.bottom)),await r({...t,availableWidth:A,availableHeight:S});let y=await o.getDimensions(s.floating);return h!==y.width||m!==y.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function $t(n){return yi(n)?(n.nodeName||"").toLowerCase():"#document"}function ut(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function wt(n){var t;return(t=(yi(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function yi(n){return Re()?n instanceof Node||n instanceof ut(n).Node:!1}function gt(n){return Re()?n instanceof Element||n instanceof ut(n).Element:!1}function At(n){return Re()?n instanceof HTMLElement||n instanceof ut(n).HTMLElement:!1}function vi(n){return!Re()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ut(n).ShadowRoot}function be(n){let{overflow:t,overflowX:e,overflowY:i,display:o}=bt(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&o!=="inline"&&o!=="contents"}function wi(n){return/^(table|td|th)$/.test($t(n))}function ve(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}var Ts=/transform|translate|scale|rotate|perspective|filter/,Os=/paint|layout|strict|content/,zt=n=>!!n&&n!=="none",cn;function De(n){let t=gt(n)?bt(n):n;return zt(t.transform)||zt(t.translate)||zt(t.scale)||zt(t.rotate)||zt(t.perspective)||!Me()&&(zt(t.backdropFilter)||zt(t.filter))||Ts.test(t.willChange||"")||Os.test(t.contain||"")}function xi(n){let t=Dt(n);for(;At(t)&&!ne(t);){if(De(t))return t;if(ve(t))return null;t=Dt(t)}return null}function Me(){return cn==null&&(cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cn}function ne(n){return/^(html|body|#document)$/.test($t(n))}function bt(n){return ut(n).getComputedStyle(n)}function ye(n){return gt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dt(n){if($t(n)==="html")return n;let t=n.assignedSlot||n.parentNode||vi(n)&&n.host||wt(n);return vi(t)?t.host:t}function Ei(n){let t=Dt(n);return ne(t)?(n.ownerDocument||n).body:At(t)&&be(t)?t:Ei(t)}function ee(n,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=Ei(n),s=o===((i=n.ownerDocument)==null?void 0:i.body),r=ut(o);if(s){let a=Ie(r);return t.concat(r,r.visualViewport||[],be(o)?o:[],a&&e?ee(a):[])}else return t.concat(o,ee(o,[],e))}function Ie(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ci(n){let t=bt(n),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=At(n),s=o?n.offsetWidth:e,r=o?n.offsetHeight:i,a=me(e)!==s||me(i)!==r;return a&&(e=s,i=r),{width:e,height:i,$:a}}function dn(n){return gt(n)?n:n.contextElement}function ie(n){let t=dn(n);if(!At(t))return vt(1);let e=t.getBoundingClientRect(),{width:i,height:o,$:s}=Ci(t),r=(s?me(e.width):e.width)/i,a=(s?me(e.height):e.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}var Rs=vt(0);function Li(n){let t=ut(n);return!Me()||!t.visualViewport?Rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ds(n,t,e){return t===void 0&&(t=!1),!!e&&t&&e===ut(n)}function qt(n,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=n.getBoundingClientRect(),s=dn(n),r=vt(1);t&&(i?gt(i)&&(r=ie(i)):r=ie(n));let a=Ds(s,e,i)?Li(s):vt(0),c=(o.left+a.x)/r.x,l=(o.top+a.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(s&&i){let h=ut(s),m=gt(i)?ut(i):i,f=h,v=Ie(f);for(;v&&m!==f;){let w=ie(v),p=v.getBoundingClientRect(),b=bt(v),x=p.left+(v.clientLeft+parseFloat(b.paddingLeft))*w.x,E=p.top+(v.clientTop+parseFloat(b.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=x,l+=E,f=ut(v),v=Ie(f)}}return _t({width:d,height:u,x:c,y:l})}function Ne(n,t){let e=ye(n).scrollLeft;return t?t.left+e:qt(wt(n)).left+e}function ki(n,t){let e=n.getBoundingClientRect(),i=e.left+t.scrollLeft-Ne(n,e),o=e.top+t.scrollTop;return{x:i,y:o}}function Ms(n){let{elements:t,rect:e,offsetParent:i,strategy:o}=n,s=o==="fixed",r=wt(i),a=t?ve(t.floating):!1;if(i===r||a&&s)return e;let c={scrollLeft:0,scrollTop:0},l=vt(1),d=vt(0),u=At(i);if((u||!s)&&(($t(i)!=="body"||be(r))&&(c=ye(i)),u)){let m=qt(i);l=ie(i),d.x=m.x+i.clientLeft,d.y=m.y+i.clientTop}let h=r&&!u&&!s?ki(r,c):vt(0);return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:e.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Is(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function Ns(n){let t=ye(n),e=n.ownerDocument.body,i=mt(n.scrollWidth,n.clientWidth,e.scrollWidth,e.clientWidth),o=mt(n.scrollHeight,n.clientHeight,e.scrollHeight,e.clientHeight),s=-t.scrollLeft+Ne(n),r=-t.scrollTop;return bt(e).direction==="rtl"&&(s+=mt(n.clientWidth,e.clientWidth)-i),{width:i,height:o,x:s,y:r}}var Hs=25;function Ps(n,t,e){e===void 0&&(e="viewport");let i=e==="layoutViewport",o=ut(n),s=wt(n),r=o.visualViewport,a=s.clientWidth,c=s.clientHeight,l=0,d=0;if(r){let h=!Me()||t==="fixed";i?h||(l=-r.offsetLeft,d=-r.offsetTop):(a=r.width,c=r.height,h&&(l=r.offsetLeft,d=r.offsetTop))}if(Ne(s)<=0){let h=s.ownerDocument,m=h.body,f=getComputedStyle(m),v=h.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(s.clientWidth-m.clientWidth-v),p=getComputedStyle(s).scrollbarGutter==="stable both-edges"?w/2:w;p<=Hs&&(a-=p)}return{width:a,height:c,x:l,y:d}}function Fs(n,t){let e=qt(n,!0,t==="fixed"),i=e.top+n.clientTop,o=e.left+n.clientLeft,s=ie(n),r=n.clientWidth*s.x,a=n.clientHeight*s.y,c=o*s.x,l=i*s.y;return{width:r,height:a,x:c,y:l}}function Si(n,t,e){let i;if(t==="viewport"||t==="layoutViewport")i=Ps(n,e,t);else if(t==="document")i=Ns(wt(n));else if(gt(t))i=Fs(t,e);else{let o=Li(n);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _t(i)}function _s(n,t){let e=t.get(n);if(e)return e;let i=ee(n,[],!1).filter(a=>gt(a)&&$t(a)!=="body"),o=null,s=bt(n).position==="fixed",r=s?Dt(n):n;for(;gt(r)&&!ne(r);){let a=bt(r),c=De(r),l=o?o.position:s?"fixed":"";!c&&(l==="fixed"||l==="absolute"&&a.position==="static")?i=i.filter(u=>u!==r):o=a,r=Dt(r)}return t.set(n,i),i}function zs(n){let{element:t,boundary:e,rootBoundary:i,strategy:o}=n,r=[...e==="clippingAncestors"?ve(t)?[]:_s(t,this._c):[].concat(e),i],a=Si(t,r[0],o),c=a.top,l=a.right,d=a.bottom,u=a.left;for(let h=1;h<r.length;h++){let m=Si(t,r[h],o);c=mt(m.top,c),l=Ot(m.right,l),d=Ot(m.bottom,d),u=mt(m.left,u)}return{width:l-u,height:d-c,x:u,y:c}}function $s(n){let{width:t,height:e}=Ci(n);return{width:t,height:e}}function qs(n,t,e){let i=At(t),o=wt(t),s=e==="fixed",r=qt(n,!0,s,t),a={scrollLeft:0,scrollTop:0},c=vt(0);if((i||!s)&&(($t(t)!=="body"||be(o))&&(a=ye(t)),i)){let h=qt(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}!i&&o&&(c.x=Ne(o));let l=o&&!i&&!s?ki(o,a):vt(0),d=r.left+a.scrollLeft-c.x-l.x,u=r.top+a.scrollTop-c.y-l.y;return{x:d,y:u,width:r.width,height:r.height}}function ln(n){return bt(n).position==="static"}function Ai(n,t){if(!At(n)||bt(n).position==="fixed")return null;if(t)return t(n);let e=n.offsetParent;return wt(n)===e&&(e=e.ownerDocument.body),e}function Ti(n,t){let e=ut(n);if(ve(n))return e;if(!At(n)){let o=Dt(n);for(;o&&!ne(o);){if(gt(o)&&!ln(o))return o;o=Dt(o)}return e}let i=Ai(n,t);for(;i&&wi(i)&&ln(i);)i=Ai(i,t);return i&&ne(i)&&ln(i)&&!De(i)?e:i||xi(n)||e}var Bs=async function(n){let t=this.getOffsetParent||Ti,e=this.getDimensions,i=await e(n.floating);return{reference:qs(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function js(n){return bt(n).direction==="rtl"}var Ks={convertOffsetParentRelativeRectToViewportRelativeRect:Ms,getDocumentElement:wt,getClippingRect:zs,getOffsetParent:Ti,getElementRects:Bs,getClientRects:Is,getDimensions:$s,getScale:ie,isElement:gt,isRTL:js};function Oi(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function Vs(n,t,e){let i=null,o,s=wt(n);function r(){var d;clearTimeout(o),(d=i)==null||d.disconnect(),i=null}function a(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),r();let h=n.getBoundingClientRect(),{left:m,top:f,width:v,height:w}=h;if(d||t(),!v||!w)return;let p=ge(f),b=ge(s.clientWidth-(m+v)),x=ge(s.clientHeight-(f+w)),E=ge(m),S={rootMargin:-p+"px "+-b+"px "+-x+"px "+-E+"px",threshold:mt(0,Ot(1,u))||1},A=!0;function y(W){let z=W[0].intersectionRatio;if(!Oi(h,n.getBoundingClientRect()))return a();if(z!==u){if(!A)return a();z?a(!1,z):o=setTimeout(()=>{a(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(y,{...S,root:s.ownerDocument})}catch{i=new IntersectionObserver(y,S)}i.observe(n)}let c=ut(n),l=()=>a(e);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),r()}}function Ri(n,t,e,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,l=dn(n),d=o||s?[...l?ee(l):[],...t?ee(t):[]]:[];d.forEach(p=>{o&&p.addEventListener("scroll",e),s&&p.addEventListener("resize",e)});let u=l&&a?Vs(l,e,s):null,h=-1,m=null;r&&(m=new ResizeObserver(p=>{let[b]=p;b&&b.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),e()}),l&&!c&&m.observe(l),t&&m.observe(t));let f,v=c?qt(n):null;c&&w();function w(){let p=qt(n);v&&!Oi(v,p)&&e(),v=p,f=requestAnimationFrame(w)}return e(),()=>{var p;d.forEach(b=>{o&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),u==null||u(),(p=m)==null||p.disconnect(),m=null,c&&cancelAnimationFrame(f)}}var Di=mi;var Mi=gi,Ii=pi,Ni=bi;var Hi=(n,t,e)=>{let i=new Map,o=e??{},s={...Ks,...o.platform,_c:i};return fi(n,t,{...o,platform:s})};function Bt(n,t,e={}){let{placement:i="bottom-start",strategy:o="absolute",offset:s=4,flip:r=!0,shift:a=!0,padding:c=8,matchWidth:l=!1}=e,d=[Di(s),...r?[Ii({padding:c})]:[],...a?[Mi({padding:c})]:[],...l?[Ni({apply({rects:h}){Object.assign(t.style,{width:`${h.reference.width}px`})}})]:[]];return t.style.position=o,Ri(n,t,async()=>{let h=await Hi(n,t,{placement:i,strategy:o,middleware:d});Object.assign(t.style,{left:`${h.x}px`,top:`${h.y}px`});let m=h.placement.split("-")[0];t.setAttribute("data-side",m)})}var un=class{constructor(n){g(this,"opts");g(this,"buffer","");g(this,"timerId",null);g(this,"timeout");this.opts=n,this.timeout=n.timeout??1e3}handle(n){if(n.length!==1)return!1;this.timerId!==null&&clearTimeout(this.timerId),this.buffer+=n.toLowerCase(),this.timerId=setTimeout(()=>{this.buffer="",this.timerId=null},this.timeout);let t=this.opts.getItemCount();for(let e=0;e<t;e++)if(this.opts.getItemText(e).toLowerCase().startsWith(this.buffer))return this.opts.onMatch(e),!0;return!0}reset(){this.buffer="",this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}};var Pi=class extends et{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"valueEl",null);g(this,"items",[]);g(this,"nativeSelect",null);g(this,"hiddenInput",null);g(this,"labelEl",null);g(this,"onLabelClick",t=>{var e;t.target.closest("[data-part=\'trigger\']")||(t.preventDefault(),(e=this.trigger)==null||e.focus())});g(this,"dismiss",null);g(this,"typeahead",null);g(this,"cleanupFloating",null);g(this,"_open",!1);g(this,"_value","");g(this,"highlighted",-1);g(this,"syncing",!1);g(this,"onNativeChange",()=>{this.syncing||this.refresh()});g(this,"onFormReset",()=>setTimeout(()=>this.refresh()));g(this,"onTriggerClick",()=>{this.isDisabled||(this._open?this.close():this.show())});g(this,"onTriggerKeyUp",t=>{t.key===" "&&t.preventDefault()});g(this,"onTriggerKey",t=>{var s,r;if(this.isDisabled)return;let e=this.enabled();if(!this._open){if(t.key==="ArrowDown"||t.key==="ArrowUp"||t.key==="Enter"||t.key===" "||t.altKey&&t.key==="ArrowDown")t.preventDefault(),this.show(),t.key==="ArrowUp"&&e.length&&this.highlight(this.items.indexOf(e[e.length-1]));else if(t.key==="Home"||t.key==="End"){t.preventDefault(),this.show();let a=t.key==="Home"?e[0]:e[e.length-1];a&&this.highlight(this.items.indexOf(a))}else t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&((s=this.typeahead)==null||s.handle(t.key));return}if(!e.length)return;let i=this.highlighted>=0?e.indexOf(this.items[this.highlighted]):-1,o=a=>{t.preventDefault(),this.highlight(this.items.indexOf(e[a]))};switch(t.key){case"ArrowDown":return o(Math.min(i+1,e.length-1));case"ArrowUp":return t.altKey?(t.preventDefault(),this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close()):o(Math.max(i-1,0));case"Home":return o(0);case"End":return o(e.length-1);case"PageDown":return o(Math.min(i+10,e.length-1));case"PageUp":return o(Math.max(i-10,0));case"Enter":case" ":return t.preventDefault(),this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close();case"Tab":return this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close(!1);default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&((r=this.typeahead)==null||r.handle(t.key))}});g(this,"onListClick",t=>{let e=t.target.closest("[data-part=\'item\']");!e||!this.items.includes(e)||ft(e)||(this.select(e),this.close())});g(this,"onListPointer",t=>{let e=t.target.closest("[data-part=\'item\']");e&&this.items.includes(e)&&!ft(e)&&this.highlight(this.items.indexOf(e))});g(this,"preventBlur",t=>t.preventDefault())}get open(){return this._open}get value(){return this._value}set value(t){let e=this.items.find(i=>i.dataset.value===t);e&&this.select(e,!1)}get isDisabled(){var t;return this.hasAttribute("disabled")||!!((t=this.nativeSelect)!=null&&t.disabled)}refresh(){var i;let t=this.nativeSelect;if(!t)return;let e=this.items.find(o=>o.dataset.value===t.value);e&&this.select(e,!1),(i=this.trigger)==null||i.setAttribute("aria-disabled",String(this.isDisabled))}enabled(){return this.items.filter(t=>!ft(t))}setup(){var a,c;if(this.nativeSelect=rt(this,"select"),this.nativeSelect&&!rt(this,"[data-part=\'trigger\']")&&this.buildFromNative(this.nativeSelect),this.trigger=rt(this,"[data-part=\'trigger\']"),this.content=rt(this,"[data-part=\'content\']"),this.valueEl=rt(this,"[data-part=\'value\']"),!this.trigger||!this.content)return;let{trigger:t,content:e}=this;this.items=Et(this,"[data-part=\'item\']");let i=st("db-select");e.id||(e.id=`${i}-listbox`),e.setAttribute("role","listbox"),e.hidden=!0,t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",e.id),t instanceof HTMLButtonElement&&!t.hasAttribute("type")&&(t.type="button"),this.isDisabled&&t.setAttribute("aria-disabled","true"),this.items.forEach((l,d)=>{l.id||(l.id=`${i}-item-${d}`),l.setAttribute("role","option"),l.setAttribute("aria-selected","false")}),Et(this,"[data-part=\'group\']").forEach(l=>{l.setAttribute("role","group");let d=l.querySelector("[data-part=\'label\']");d&&(d.id||(d.id=st("db-select-label")),l.setAttribute("aria-labelledby",d.id))});let o=this.getAttribute("name");o&&!this.nativeSelect&&(this.hiddenInput=document.createElement("input"),this.hiddenInput.type="hidden",this.hiddenInput.name=o,this.hasAttribute("required")&&(this.hiddenInput.required=!0),this.appendChild(this.hiddenInput)),this.typeahead=new un({getItemCount:()=>this.enabled().length,getItemText:l=>{var d,u;return((u=(d=this.enabled()[l])==null?void 0:d.textContent)==null?void 0:u.trim())??""},onMatch:l=>{let d=this.enabled()[l];d&&(this._open?this.highlight(this.items.indexOf(d)):this.select(d))}}),this.dismiss=new Ft(e,{onDismiss:l=>this.close(l!=="outside-press")});let s=((a=this.nativeSelect)==null?void 0:a.value)??this.getAttribute("default-value")??"",r=this.items.find(l=>l.dataset.value===s);r&&ft(r)?this.valueEl&&(this.valueEl.textContent=((c=r.textContent)==null?void 0:c.trim())??"",this.valueEl.setAttribute("data-placeholder","")):r&&this.select(r,!1),this.setState("closed")}buildFromNative(t){let e=document.createElement("button");e.type="button",e.setAttribute("data-part","trigger"),e.className="db-select-trigger";let i=t.getAttribute("aria-label"),o=t.getAttribute("aria-labelledby"),s=!o&&t.id?document.querySelector(`label[for="${CSS.escape(t.id)}"]`):null;s&&(o=s.id||(s.id=st("db-select-for"))),i&&e.setAttribute("aria-label",i),o&&e.setAttribute("aria-labelledby",o);let r=t.closest("label");if(r){if(this.labelEl=r,!i&&!o){let u=Array.from(r.childNodes).filter(h=>!(h instanceof Element&&(h===t||h.contains(t)||h.localName==="db-select"))).map(h=>h.textContent??"").join(" ").replace(/\\s+/g," ").trim();u&&e.setAttribute("aria-label",u)}}else s&&(this.labelEl=s);let a=document.createElement("span");a.setAttribute("data-part","value"),a.className="db-select-value";let c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("viewBox","0 0 24 24"),c.setAttribute("aria-hidden","true"),c.setAttribute("class","db-select-chevron"),c.innerHTML=\'<path d="m6 9 6 6 6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\',e.append(a,c);let l=document.createElement("div");l.setAttribute("data-part","content"),l.className="db-select-content";let d=(u,h)=>{let m=document.createElement("div");m.setAttribute("data-part","item"),m.className="db-select-item",m.dataset.value=u.value;for(let[f,v]of Object.entries(u.dataset))v!=null&&(m.dataset[f]=v);u.disabled&&m.setAttribute("aria-disabled","true"),m.textContent=u.textContent??u.value,h.appendChild(m)};for(let u of Array.from(t.children))if(u instanceof HTMLOptGroupElement){let h=document.createElement("div");h.setAttribute("data-part","group");let m=document.createElement("div");m.setAttribute("data-part","label"),m.className="db-select-label",m.textContent=u.label,h.appendChild(m);for(let f of Array.from(u.children))f instanceof HTMLOptionElement&&d(f,h);l.appendChild(h)}else u instanceof HTMLOptionElement&&d(u,l);t.hidden=!0,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),this.append(e,l)}connect(){var t,e,i,o,s,r,a,c,l,d;(t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),(e=this.trigger)==null||e.addEventListener("keydown",this.onTriggerKey),(i=this.trigger)==null||i.addEventListener("keyup",this.onTriggerKeyUp),(o=this.nativeSelect)==null||o.addEventListener("change",this.onNativeChange),(r=(s=this.nativeSelect)==null?void 0:s.form)==null||r.addEventListener("reset",this.onFormReset),(a=this.labelEl)==null||a.addEventListener("click",this.onLabelClick),(c=this.content)==null||c.addEventListener("click",this.onListClick),(l=this.content)==null||l.addEventListener("pointermove",this.onListPointer),(d=this.content)==null||d.addEventListener("mousedown",this.preventBlur)}disconnect(){var t,e,i,o,s,r,a,c,l,d;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),(e=this.trigger)==null||e.removeEventListener("keydown",this.onTriggerKey),(i=this.trigger)==null||i.removeEventListener("keyup",this.onTriggerKeyUp),(o=this.nativeSelect)==null||o.removeEventListener("change",this.onNativeChange),(r=(s=this.nativeSelect)==null?void 0:s.form)==null||r.removeEventListener("reset",this.onFormReset),(a=this.labelEl)==null||a.removeEventListener("click",this.onLabelClick),(c=this.content)==null||c.removeEventListener("click",this.onListClick),(l=this.content)==null||l.removeEventListener("pointermove",this.onListPointer),(d=this.content)==null||d.removeEventListener("mousedown",this.preventBlur),this._open&&this.close(!1)}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}show(){var r,a;let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0;let i=Gt(e);this.setState("open"),t.setAttribute("aria-expanded","true"),this.cleanupFloating=Bt(t,e,{placement:"bottom-start",offset:4,matchWidth:!this.hasAttribute("auto-width"),strategy:i==="top-layer"?"fixed":"absolute"});let s=this.items.find(c=>c.dataset.value===this._value&&!ft(c))??this.enabled()[0];s&&this.highlight(this.items.indexOf(s)),(r=this.dismiss)==null||r.activate(),(a=this.typeahead)==null||a.reset(),t.focus()}close(t=!0){var o,s,r;let{trigger:e,content:i}=this;!e||!i||!this._open||(this._open=!1,(o=this.dismiss)==null||o.deactivate(),(s=this.cleanupFloating)==null||s.call(this),this.cleanupFloating=null,Zt(i),this.setState("closed"),e.setAttribute("aria-expanded","false"),e.removeAttribute("aria-activedescendant"),this.items.forEach(a=>a.removeAttribute("data-highlighted")),this.highlighted=-1,(r=this.typeahead)==null||r.reset(),t&&e.focus())}highlight(t){var r;let e=this.items[t],i=this.content;if(!e||!i||!this.trigger)return;this.highlighted>=0&&((r=this.items[this.highlighted])==null||r.removeAttribute("data-highlighted")),this.highlighted=t,e.setAttribute("data-highlighted",""),this.trigger.setAttribute("aria-activedescendant",e.id);let o=e.offsetTop,s=o+e.offsetHeight;o<i.scrollTop?i.scrollTop=o:s>i.scrollTop+i.clientHeight&&(i.scrollTop=s-i.clientHeight)}select(t,e=!0){var s;if(ft(t))return;let i=t.dataset.value??"",o=i!==this._value;this._value=i;for(let r of this.items){let a=r===t;r.setAttribute("aria-selected",String(a)),a?r.setAttribute("data-state","checked"):r.removeAttribute("data-state")}if(this.valueEl&&(this.valueEl.textContent=((s=t.textContent)==null?void 0:s.trim())??"",this.valueEl.removeAttribute("data-placeholder")),this.hiddenInput&&(this.hiddenInput.value=i),!e||!o){this.nativeSelect&&(this.nativeSelect.value=i);return}if(this.nativeSelect){this.nativeSelect.value=i,this.syncing=!0;try{this.nativeSelect.dispatchEvent(new Event("input",{bubbles:!0})),this.nativeSelect.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.syncing=!1}}this.dispatchEvent(new CustomEvent("db-select:change",{detail:{value:i},bubbles:!0}))}};nt();customElements.get("db-select")||customElements.define("db-select",Pi);var Fi=class extends et{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"dismiss",null);g(this,"cleanupFloating",null);g(this,"_open",!1);g(this,"onTriggerClick",()=>this.toggle());g(this,"onContentClick",t=>{let e=t.target.closest("[data-part=\'close\']");e&&e.closest("db-popover")===this&&this.close("close-press")})}get open(){return this._open}setup(){var e;if(this.trigger=Xt(rt(this,"[data-part=\'trigger\']")),this.content=rt(this,"[data-part=\'content\']"),!this.trigger||!this.content)return;let t=this.content;t.id||(t.id=st("db-popover")),t.hasAttribute("role")||t.setAttribute("role","dialog"),!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("aria-label")&&((e=this.trigger).id||(e.id=st("db-popover-trigger")),t.setAttribute("aria-labelledby",this.trigger.id)),t.hidden=!0,this.trigger.setAttribute("aria-haspopup","dialog"),this.trigger.setAttribute("aria-controls",t.id),this.trigger.setAttribute("aria-expanded","false"),this.setState("closed"),this.dismiss=new Ft(t,{onDismiss:i=>this.close(i)})}connect(){var t,e;(t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),(e=this.content)==null||e.addEventListener("click",this.onContentClick)}disconnect(){var t,e;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),(e=this.content)==null||e.removeEventListener("click",this.onContentClick),this._open&&this.close("api")}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}placement(){var o,s;let t=this.getAttribute("placement");if(t)return t;let e=((o=this.content)==null?void 0:o.dataset.side)||"bottom",i=((s=this.content)==null?void 0:s.dataset.align)||"center";return`${e}${i!=="center"?`-${i}`:""}`}toggle(){this._open?this.close("trigger-press"):this.show()}show(){var o;let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0;let i=Gt(e);this.setState("open"),t.setAttribute("aria-expanded","true"),this.cleanupFloating=Bt(t,e,{placement:this.placement(),offset:Number(this.getAttribute("offset")??8),strategy:i==="top-layer"?"fixed":"absolute"}),(o=this.dismiss)==null||o.activate(),this.hasAttribute("no-autofocus")||requestAnimationFrame(()=>{this._open&&(qn(e)[0]??e).focus({preventScroll:!0})}),this.dispatchEvent(new CustomEvent("db-popover:open",{bubbles:!0}))}close(t="api"){var s,r;let{trigger:e,content:i}=this;if(!e||!i||!this._open)return;this._open=!1,(s=this.dismiss)==null||s.deactivate(),(r=this.cleanupFloating)==null||r.call(this),this.cleanupFloating=null;let o=i.contains(document.activeElement);Zt(i),this.setState("closed"),e.setAttribute("aria-expanded","false"),t!=="outside-press"&&(o||t==="escape-key"||t==="close-press")&&e.focus(),this.dispatchEvent(new CustomEvent("db-popover:close",{detail:{reason:t},bubbles:!0}))}};nt();customElements.get("db-popover")||customElements.define("db-popover",Fi);var _i="db-announcement-closed:";var zi=class extends et{constructor(){super(...arguments);g(this,"closeButton",null);g(this,"onClose",()=>this.close())}setup(){var t;this.closeButton=[...this.querySelectorAll("[data-part=\'close\']")].find(e=>e.closest("db-announcement")===this)??null,this.closeButton&&!this.closeButton.hasAttribute("aria-label")&&!((t=this.closeButton.textContent)!=null&&t.trim())&&this.closeButton.setAttribute("aria-label","Close announcement")}connect(){var t;(t=this.closeButton)==null||t.addEventListener("click",this.onClose)}disconnect(){var t;(t=this.closeButton)==null||t.removeEventListener("click",this.onClose)}close(){var i;let t=this.getAttribute("announcement-id")??"";try{t&&localStorage.setItem(_i+t,"1")}catch{}let e=this.contains(document.activeElement);if(document.documentElement.setAttribute("data-announcement-closed",""),this.hidden=!0,this.style.display="none",e){let o=document.querySelector("main, [role=\'main\']");o?(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus({preventScroll:!0})):(i=document.activeElement)==null||i.blur()}this.dispatchEvent(new CustomEvent("db-announcement:close",{bubbles:!0,detail:{id:t}}))}};nt();customElements.get("db-announcement")||customElements.define("db-announcement",zi);var $i=class extends et{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"cleanupFloating",null);g(this,"showTimer",null);g(this,"hideTimer",null);g(this,"_open",!1);g(this,"onEnter",t=>{t.pointerType!=="touch"&&(this.clearTimers(),this._open||(this.showTimer=setTimeout(()=>this.show(),this.num("delay",200))))});g(this,"onLeave",t=>{t.pointerType!=="touch"&&(this.clearTimers(),this.hideTimer=setTimeout(()=>this.hide(),this.num("close-delay",100)))});g(this,"onContentEnter",()=>this.clearTimers());g(this,"onFocus",()=>{let t=!0;try{t=this.trigger.matches(":focus-visible")}catch{}t&&(this.clearTimers(),this.show())});g(this,"onBlur",()=>this.hide());g(this,"onPress",()=>this.hide());g(this,"onKey",t=>{t.key==="Escape"&&this._open&&(t.preventDefault(),t.stopImmediatePropagation(),this.hide())})}get open(){return this._open}num(t,e){let i=Number(this.getAttribute(t));return Number.isFinite(i)&&this.hasAttribute(t)?i:e}setup(){var e;if(this.trigger=Xt(rt(this,"[data-part=\'trigger\']")),this.content=rt(this,"[data-part=\'content\']"),!this.trigger||!this.content)return;(e=this.content).id||(e.id=st("db-tooltip")),this.content.setAttribute("role","tooltip"),this.content.hidden=!0;let t=(this.trigger.getAttribute("aria-describedby")??"").split(/\\s+/).filter(Boolean);t.includes(this.content.id)||this.trigger.setAttribute("aria-describedby",[...t,this.content.id].join(" ")),this.setState("closed")}connect(){let{trigger:t,content:e}=this;!t||!e||(t.addEventListener("pointerenter",this.onEnter),t.addEventListener("pointerleave",this.onLeave),t.addEventListener("focus",this.onFocus),t.addEventListener("blur",this.onBlur),t.addEventListener("pointerdown",this.onPress),e.addEventListener("pointerenter",this.onContentEnter),e.addEventListener("pointerleave",this.onLeave))}disconnect(){let{trigger:t,content:e}=this;t==null||t.removeEventListener("pointerenter",this.onEnter),t==null||t.removeEventListener("pointerleave",this.onLeave),t==null||t.removeEventListener("focus",this.onFocus),t==null||t.removeEventListener("blur",this.onBlur),t==null||t.removeEventListener("pointerdown",this.onPress),e==null||e.removeEventListener("pointerenter",this.onContentEnter),e==null||e.removeEventListener("pointerleave",this.onLeave),this.hide()}clearTimers(){this.showTimer&&clearTimeout(this.showTimer),this.hideTimer&&clearTimeout(this.hideTimer),this.showTimer=this.hideTimer=null}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}show(){let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0,this.clearTimers();let i=Gt(e);this.setState("open"),this.cleanupFloating=Bt(t,e,{placement:this.getAttribute("placement")||e.dataset.side||"top",offset:8,strategy:i==="top-layer"?"fixed":"absolute"}),document.addEventListener("keydown",this.onKey,!0),this.dispatchEvent(new CustomEvent("db-tooltip:open",{bubbles:!0}))}hide(){var t;this.clearTimers(),!(!this._open||!this.content)&&(this._open=!1,document.removeEventListener("keydown",this.onKey,!0),(t=this.cleanupFloating)==null||t.call(this),this.cleanupFloating=null,Zt(this.content),this.setState("closed"),this.dispatchEvent(new CustomEvent("db-tooltip:close",{bubbles:!0})))}};nt();customElements.get("db-tooltip")||customElements.define("db-tooltip",$i);var qi="sidebar_state",Us="b",Ws=768,we=new WeakMap;function Ys(n){try{return localStorage.getItem(n)}catch{return null}}function Xs(n,t){try{localStorage.setItem(n,t)}catch{}}function pn(n){if(we.has(n))return;let t=n.querySelector("[data-component=\'sidebar\']");if(!t)return;let e=t.dataset.collapsible||"offcanvas",i=t.dataset.side||"left",o=t.dataset.defaultOpen!=="false",s=Ys(qi),r=s!==null?s==="true":o,a=t.querySelector("[data-sidebar-desktop]"),c=t.querySelector("[data-sidebar-mobile]"),l=t.querySelector("[data-sidebar-mobile-backdrop]"),d=window.matchMedia(`(max-width: ${Ws-1}px)`),u={provider:n,sidebar:t,desktopSidebar:a,mobileSidebar:c,mobileBackdrop:l,collapsible:e,side:i,open:r,openMobile:!1,isMobile:d.matches,mediaQuery:d};we.set(n,u),Bi(u);let h=v=>{u.isMobile=v.matches,!v.matches&&u.openMobile&&Mt(n)};d.addEventListener("change",h);let m=v=>{v.key===Us&&(v.metaKey||v.ctrlKey)?(v.preventDefault(),hn(n)):v.key==="Escape"&&u.openMobile&&(v.preventDefault(),Mt(n))};document.addEventListener("keydown",m),Gs(n,u),l&&l.addEventListener("click",()=>{Mt(n)});let f=t.querySelector("[data-part=\'rail\']");f&&f.addEventListener("click",()=>{hn(n)})}function Gs(n,t){n.querySelectorAll("[data-part=\'sidebar-trigger\']").forEach(e=>{e.addEventListener("click",()=>{hn(n)})})}function hn(n){let t=we.get(n);t&&(t.isMobile?t.openMobile?Mt(n):Zs(n):(t.open=!t.open,Bi(t),Xs(qi,String(t.open))))}function Bi(n){let t=n.open?"expanded":"collapsed";n.provider.setAttribute("data-state",t),n.sidebar.setAttribute("data-state",t),n.desktopSidebar&&(n.desktopSidebar.setAttribute("data-state",t),n.open?n.desktopSidebar.setAttribute("data-collapsible",""):n.desktopSidebar.setAttribute("data-collapsible",n.collapsible))}function Zs(n){var i;let t=we.get(n);if(!t||t.openMobile||!t.mobileSidebar)return;t.openMobile=!0;let e=(i=t.desktopSidebar)==null?void 0:i.querySelector("[data-sidebar=\'sidebar-inner\']");if(e)for(;e.firstChild;)t.mobileSidebar.appendChild(e.firstChild);t.mobileSidebar.hidden=!1,t.mobileSidebar.setAttribute("data-state","open"),t.mobileBackdrop&&(t.mobileBackdrop.hidden=!1),Pt.activate(),requestAnimationFrame(()=>{var s;let o=(s=t.mobileSidebar)==null?void 0:s.querySelector(\'a, button, [tabindex]:not([tabindex="-1"])\');o==null||o.focus()})}function Mt(n){var o;let t=we.get(n);if(!t||!t.openMobile||!t.mobileSidebar)return;t.openMobile=!1;let e=(o=t.desktopSidebar)==null?void 0:o.querySelector("[data-sidebar=\'sidebar-inner\']");if(e&&t.mobileSidebar)for(;t.mobileSidebar.firstChild;)e.appendChild(t.mobileSidebar.firstChild);t.mobileSidebar.setAttribute("data-state","closed"),t.mobileSidebar.hidden=!0,t.mobileBackdrop&&(t.mobileBackdrop.hidden=!0),Pt.deactivate();let i=t.provider.querySelector("[data-part=\'sidebar-trigger\']");i==null||i.focus()}function fn(){document.querySelectorAll("[data-component=\'sidebar-provider\']").forEach(n=>{pn(n)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",fn):fn();document.addEventListener("astro:page-load",fn);var ji=/^[a-z][a-z0-9_-]{0,63}$/,He={docs:"docs.js",shard:n=>`t-${n}.js`,fragment:n=>`f-${n}.js`},Pe={docs:"docs",shard:n=>n,fragment:n=>`frag:${n}`};var Qs={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},Js={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},tr="[^aeiou]",gn="[aeiouy]",It="("+tr+"[^aeiouy]*)",_e="("+gn+"[aeiou]*)",mn=new RegExp("^"+It+"?"+_e+It),er=new RegExp("^"+It+"?"+_e+It+_e+"?$"),Fe=new RegExp("^"+It+"?("+_e+It+"){2,}"),Ki=new RegExp("^"+It+"?"+gn),Vi=new RegExp("^"+It+gn+"[^aeiouwxy]$"),nr=/ll$/,ir=/^(.+?)e$/,or=/^(.+?)y$/,sr=/^(.+?(s|t))(ion)$/,rr=/^(.+?)(ed|ing)$/,ar=/(at|bl|iz)$/,cr=/^(.+?)eed$/,lr=/^.+?[^s]s$/,dr=/^.+?(ss|i)es$/,ur=/([^aeiouylsz])\\1$/,hr=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,fr=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,pr=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;function Ui(n){let t=String(n).toLowerCase();if(t.length<3)return t;let e=!1;t.codePointAt(0)===121&&(e=!0,t="Y"+t.slice(1)),dr.test(t)?t=t.slice(0,-2):lr.test(t)&&(t=t.slice(0,-1));let i;return(i=cr.exec(t))?mn.test(i[1])&&(t=t.slice(0,-1)):(i=rr.exec(t))&&Ki.test(i[1])&&(t=i[1],ar.test(t)?t+="e":ur.test(t)?t=t.slice(0,-1):Vi.test(t)&&(t+="e")),(i=or.exec(t))&&Ki.test(i[1])&&(t=i[1]+"i"),(i=hr.exec(t))&&mn.test(i[1])&&(t=i[1]+Qs[i[2]]),(i=fr.exec(t))&&mn.test(i[1])&&(t=i[1]+Js[i[2]]),(i=pr.exec(t))?Fe.test(i[1])&&(t=i[1]):(i=sr.exec(t))&&Fe.test(i[1])&&(t=i[1]),(i=ir.exec(t))&&(Fe.test(i[1])||er.test(i[1])&&!Vi.test(i[1]))&&(t=i[1]),nr.test(t)&&Fe.test(t)&&(t=t.slice(0,-1)),e&&(t="y"+t.slice(1)),t}var Wi=new Set("a an and are as at be by for from has have in is it its of on or that the this to was were will with you your can not".split(" ")),mr=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}]/u,xe;function gr(n){if(xe===void 0)try{xe=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"word"}):null}catch{xe=null}if(xe)return[...xe.segment(n)].filter(i=>i.isWordLike).map(i=>i.segment);let t=[...n];if(t.length<2)return t;let e=[];for(let i=0;i<t.length-1;i++)e.push(t[i]+t[i+1]);return e}function jt(n){let t=[];for(let e of n.toLowerCase().normalize("NFKD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").matchAll(/[\\p{L}\\p{N}][\\p{L}\\p{N}_.-]*[\\p{L}\\p{N}]|[\\p{L}\\p{N}]/gu)){let i=e[0],o=i.split(/[._-]+/).filter(Boolean);if(o.length>1&&t.push(i),o.length>1&&!/[._]/.test(i)){let s=o.join("");s.length>=3&&!Wi.has(s)&&t.push(s)}for(let s of o)mr.test(s)?t.push(...gr(s)):s.length>=2&&!Wi.has(s)&&t.push(s)}return t}function bn(n,t){let e="";for(let i of n.slice(0,t))e+=/[a-z0-9]/.test(i)?i:`_${i.codePointAt(0).toString(16)}_`;return e}function Ee(n){if(!(!n||!/^en(-|$)/i.test(n)))return t=>/^[a-z]{3,}$/.test(t)?Ui(t):t}function Kt(n,t={}){var w,p;let e=[],i=[],o=[],s=!1,r={tag:[],section:[]},a={tag:[],section:[]},c=Object.create(null),l=Object.create(null),d=["tag","section",...new Set((t.facets??[]).filter(b=>ji.test(b)&&b!=="tag"&&b!=="section"))],u=new RegExp(`(?<!\\\\S)(-?)(${d.join("|")}):(?:"([^"]*)"?|(?!\\\\/\\\\/)(\\\\S*))|(-?)"([^"]*)"?|(\\\\S+)`,"gi"),h=[...n.matchAll(u)].map(b=>{var x;return{facetNeg:b[1]==="-",facet:(x=b[2])==null?void 0:x.toLowerCase(),value:b[3]??b[4],neg:b[5],phrase:b[6],word:b[7]}}),m=!1,f=!1;for(let[b,x]of h.entries()){if(x.facet){let O=xn(x.value??"");if(!O)continue;x.facet==="tag"||x.facet==="section"?(x.facetNeg?a:r)[x.facet].push(O):((w=x.facetNeg?l:c)[p=x.facet]??(w[p]=[])).push(O);continue}let E=x.word;if(E==="OR"){f=e.length>0,s=!0;continue}if(E==="NOT"){m=!0,s=!0;continue}if(E==="AND"){s=!0;continue}let D=x.phrase!==void 0,S=m||x.neg==="-"||(E==null?void 0:E.startsWith("-"))&&E.length>1;m=!1;let A=D?x.phrase:S&&(E!=null&&E.startsWith("-"))?E.slice(1):E,y=[...new Set(jt(A))];if(!y.length){f=!1;continue}if(S){i.push(D?y:[y[0]]),s=!0,f=!1;continue}if(D){f=!1,s=!0,y.length>1&&o.push(jt(A).join(" "));for(let O of y)e.push({terms:[O],prefix:!1,exact:!0});continue}let W=b===h.length-1&&!/\\s$/.test(n);if(f){e[e.length-1].terms.push(y[0]);for(let O of y.slice(1))e.push({terms:[O],prefix:!1});f=!1;continue}let z=y[0],G=/[._-]/.test(z),C=z.replace(/-/g,"");for(let[O,q]of y.entries())e.push({terms:[q],prefix:W&&q.length>=2&&(O===y.length-1||G&&(q===z||q===C))})}let v=[...new Set(e.flatMap(b=>b.terms))];return{groups:e,not:i,phrases:o,strict:s,highlight:v,filters:r,notFilters:a,...Object.keys(c).length?{facets:c}:{},...Object.keys(l).length?{notFacets:l}:{}}}async function br(n,t){let e=await t.meta(),i=typeof n=="string"?Kt(n,{facets:En([e])}):n,o=await Qi(i,e,t),s=eo(i,e);if(!i.groups.length)return Ji(e,o,s);let r=[];for(let c of i.groups)r.push(await wr(c,e,t));let a=yn(r,e,o,s,"and").sort(ze);return a.length||i.strict?a:yn(r,e,o,s,"or").sort(ze)}var ze=(n,t)=>t.score-n.score;async function Qi(n,t,e){let i=new Set;for(let o of n.not){let s;for(let r of o){let[a]=to(r,t),c=a?await e.shard(a):void 0,l=c&&Object.hasOwn(c,r)?c[r]:[],d=new Set;for(let u=0;u<l.length;u+=2)(!s||s.has(l[u]))&&d.add(l[u]);s=d}for(let r of s??[])i.add(r)}return i}function Ji(n,t,e){if(!e)return[];let i=[];return n.docs.forEach(([o,s,r],a)=>e(a)&&!t.has(a)&&i.push({id:a,title:o,url:s,section:n.sections[r]??"",score:1})),i}function yn(n,t,e,i,o){let s=new Map,r=new Map;for(let c of n)for(let[l,d]of c)s.set(l,(s.get(l)??0)+d),r.set(l,(r.get(l)??0)+1);let a=[];for(let[c,l]of s){if(e.has(c)||i&&!i(c)||o==="and"&&r.get(c)!==n.length)continue;let[d,u,h]=t.docs[c];a.push({id:c,title:d,url:u,section:t.sections[h]??"",score:l*(r.get(c)/n.length)})}return a}var Ct={prefix:.6,stem:.4,titleAll:1.5,titleExact:2,headingAll:1.4,headingExact:1.8,phrase:1.5,typo:.3};function vr(n,t){if(n===t)return!1;if(n.length===t.length){let s=[];for(let r=0;r<n.length&&s.length<=2;r++)n[r]!==t[r]&&s.push(r);return s.length===1?!0:s.length===2&&s[1]===s[0]+1&&n[s[0]]===t[s[1]]&&n[s[1]]===t[s[0]]}let[e,i]=n.length<t.length?[n,t]:[t,n];if(i.length-e.length!==1)return!1;let o=0;for(;o<e.length&&e[o]===i[o];)o++;return e.slice(o)===i.slice(o+1)}function to(n,t,e=!1){let i=yr(t);for(let s=Math.min(n.length,Yi);s>=1;s--){let r=bn(n,s);if(i.has(r))return!e||s<n.length?[r]:[r,...t.shards.filter(a=>a.length>r.length&&a.startsWith(r)).slice(0,10)]}let o=bn(n,Math.min(n.length,Yi));return e?t.shards.filter(s=>s.startsWith(o)).slice(0,10):[]}var Yi=3,Xi=new WeakMap;function yr(n){let t=Xi.get(n);return t||Xi.set(n,t=new Set(n.shards)),t}function xn(n){return n.replace(/"/g,"").trim().toLowerCase()}function eo(n,t){let{tag:e,section:i}=n.filters,o=n.notFilters??{tag:[],section:[]},s=Object.entries(n.facets??{}).filter(([,p])=>p.length),r=Object.entries(n.notFacets??{}).filter(([,p])=>p.length);if(!e.length&&!i.length&&!o.tag.length&&!o.section.length&&!s.length&&!r.length)return;let a=(p,b)=>new Set(p.flatMap((x,E)=>b.includes(xn(x))?[E]:[])),c=a(t.sections,i),l=a(t.tags??[],e),d=a(t.sections,o.section),u=a(t.tags??[],o.tag),h=p=>(t.facets??[]).findIndex(b=>b.name===p),m=p=>p.map(([b,x])=>{let E=h(b);return[E,E<0?new Set:a(t.facets[E].values,x)]}),f=m(s),v=m(r).filter(([p])=>p>=0),w=(p,[b,x])=>{var E;return b>=0&&(((E=p[4])==null?void 0:E[b])??[]).some(D=>x.has(D))};return p=>{let b=t.docs[p],x=b[3]??[];if(i.length&&!c.has(b[2])||e.length&&!x.some(E=>l.has(E))||d.has(b[2])||x.some(E=>u.has(E)))return!1;for(let E of f)if(!w(b,E))return!1;for(let E of v)if(w(b,E))return!1;return!0}}function En(n){return[...new Set(n.flatMap(t=>((t==null?void 0:t.facets)??[]).map(e=>e.name)))]}function no(n,t){let e=Object.create(null),i=new Map,o=(s,r)=>{let a=`${s}\\0${xn(r)}`,c=i.get(a);c===void 0&&i.set(a,c=r);let l=e[s]??(e[s]=Object.create(null));l[c]=(l[c]??0)+1};for(let s of n){let r=typeof t=="function"?t(s):t,a=r==null?void 0:r.docs[s.id];if(a){r.sections[a[2]]&&o("section",r.sections[a[2]]);for(let c of new Set(a[3]??[]))r.tags[c]!==void 0&&o("tag",r.tags[c]);(a[4]??[]).forEach((c,l)=>{var u;let d=(u=r.facets)==null?void 0:u[l];if(d)for(let h of new Set(c))d.values[h]!==void 0&&o(d.name,d.values[h])})}}return e}async function wr(n,t,e){let i=await oo(n,t,e,!0);return n.corrected=i.corrected.length?i.corrected:void 0,io(i,wn(t.count,i.docs.size))}function wn(n,t){return Math.log(1+(n-t+.5)/(t+.5))}function io(n,t){let e=new Map;for(let[i,o]of n.lists)for(let s=0;s<i.length;s+=2)e.set(i[s],Math.max(e.get(i[s])??0,i[s+1]*o*t));return e}async function oo(n,t,e,i){let o=Ee(t.lang),s=new Map,r=new Map;for(let d of n.terms)for(let u of to(d,t,n.prefix)){let h=await e.shard(u);if(!h)continue;let m=(p,b)=>{b>(s.get(p)??0)&&(s.set(p,b),r.set(p,h))};Object.hasOwn(h,d)&&m(d,1);let f=o==null?void 0:o(d),v=f?f.slice(0,Math.max(3,f.length-1)):void 0,w=0;for(let p in h)p!==d&&(n.prefix&&p.startsWith(d)&&w++<200&&m(p,Ct.prefix),f&&v&&p.startsWith(v)&&o(p)===f&&m(p,Ct.stem));if(i&&!s.size&&!n.exact&&d.length>=4&&!/[._-]/.test(d))for(let p in h)Math.abs(p.length-d.length)<=1&&vr(d,p)&&m(p,Ct.typo)}let a=[...s].filter(([,d])=>d===Ct.typo).map(([d])=>d),c=[...s].map(([d,u])=>[r.get(d)[d],u]),l=new Set;for(let[d]of c)for(let u=0;u<d.length;u+=2)l.add(d[u]);return{lists:c,docs:l,corrected:a}}var so=n=>typeof n=="function"?n:()=>n;async function ro(n,t){let e=so(t),i=new Map;for(let o of n){let s=e(o),r=i.get(s);r||i.set(s,r=[]),r.push(o)}await Promise.all([...i].map(async([o,s])=>{var l;let r=await o.meta(),a=[...new Set(s.map(d=>Math.floor(d.id/r.block)))],c=new Map;await Promise.all(a.map(async d=>{try{c.set(d,await o.fragment(d))}catch{c.set(d,void 0)}}));for(let d of s)d.fragment??(d.fragment=(l=c.get(Math.floor(d.id/r.block)))==null?void 0:l[d.id%r.block])}))}async function ao(n){let t=so(n),e=new Map;return async i=>{let o=t(i),s=e.get(o);if(!s){let r=Ee((await o.meta()).lang);s=(a,c)=>c.terms.some(l=>a===l||c.prefix&&a.startsWith(l)||r!==void 0&&r(a)===r(l))||(c.corrected??[]).includes(a),e.set(o,s)}return s}}async function co(n,t,e,i=10){let o=t.slice(0,i);await ro(o,e);let s=n.groups,r=await ao(e);for(let a of o){let c=await r(a),[l,d]=a.fragment??["",[]],u=jt(a.title),h=1;s.length&&s.every(f=>u.some(v=>c(v,f)))&&(h=Gi(u,s,c)?Ct.titleExact:Ct.titleAll);let m=[];for(let[f,v]of d){let w=jt(f);!s.length||!s.every(p=>w.some(b=>c(b,p)))||(m.push([f,v]),h=Math.max(h,Gi(w,s,c)?Ct.headingExact:Ct.headingAll))}if(a.sections=m.slice(0,3),n.phrases.length){let f=[a.title,l,...d.map(([v])=>v)].map(v=>jt(v).join(" ")).join(" \\0 ");n.phrases.every(v=>f.includes(v))&&(h*=Ct.phrase)}a.score*=h}return o.sort((a,c)=>c.score-a.score),[...o,...t.slice(i)]}async function lo(n,t,e){await ro(t,e);let i=await ao(e);for(let o of t){if(!o.fragment||o.sections)continue;let s=await i(o);o.sections=o.fragment[1].filter(([r])=>{let a=jt(r);return n.groups.length>0&&n.groups.every(c=>a.some(l=>s(l,c)))}).slice(0,3)}}function Gi(n,t,e){return n.every(i=>t.some(o=>e(i,o)))&&t.every(i=>n.some(o=>e(o,i)))}async function uo(n,t,e=10){let i=await t.meta(),o=Kt(n,{facets:En([i])}),s=Ee(i.lang);s&&(o.highlight=[...new Set([...o.highlight,...o.highlight.map(s).filter(a=>a.length>=3)])]);let r=await br(o,t);return o.highlight=[...new Set([...o.highlight,...o.groups.flatMap(a=>a.corrected??[])])],{parsed:o,results:await co(o,r,t,e),facets:no(r,i)}}async function xr(n){return Promise.all(n.map(t=>t.data.meta().then(e=>e&&e.format===5?e:void 0,()=>{})))}async function Er(n,t,e,i){let o=e,s=new Set,r=[],a=async(S,A)=>{if(!s.has(S))try{return await A()}catch(y){s.add(S),r.push({source:S,error:y});return}},c=t.flatMap((S,A)=>e[A]?[A]:[]),l=[];await Promise.all(c.map(async S=>l[S]=await a(S,()=>Qi(n,o[S],t[S].data))??new Set));let d=[],u=[],h=(S,A)=>Promise.all(c.map(y=>a(y,()=>oo(S,o[y],t[y].data,A)))),m=S=>S.every((A,y)=>!(A!=null&&A.docs.size)||s.has(c[y]));for(let S of n.groups){let A=await h(S,!1);u.push(m(A)),u[u.length-1]&&(A=await h(S,!0)),d.push(A)}for(let[S,A]of n.groups.entries())u[S]||!m(d[S])||(A.corrected=void 0,d[S]=await h(A,!0));if(c.length&&c.every(S=>s.has(S)))throw r[0].error;let f=c.filter(S=>!s.has(S)),v=[];for(let S of f)v[S]=eo(n,o[S]);let w=(S,A)=>S.map(y=>({...y,source:A,score:y.score*Sr(t[A])})),p=S=>({results:Ar(S,t),failed:[...s].sort((A,y)=>A-y),errors:r});if(!n.groups.length)return p(f.flatMap(S=>w(Ji(o[S],l[S],v[S]),S)).sort(ze));let b=t.map(()=>[]),x=f.reduce((S,A)=>S+o[A].count,0);n.groups.forEach((S,A)=>{let y=d[A],W=c.flatMap((C,O)=>s.has(C)?[]:[[C,y[O]]]),z=[...new Set(W.flatMap(([,C])=>C.corrected))];S.corrected=z.length?z:void 0;let G=W.reduce((C,[,O])=>C+O.docs.size,0);for(let[C,O]of W)b[C].push(io(O,i.stats==="own"?wn(o[C].count,O.docs.size):wn(x,G)))});let E=S=>f.flatMap(A=>w(yn(b[A],o[A],l[A],v[A],S),A)).sort(ze),D=E("and");return p(D.length||n.strict?D:E("or"))}function Sr(n){return typeof n.boost=="number"&&Number.isFinite(n.boost)&&n.boost>=0?n.boost:1}function Ar(n,t){let e=new Map,i=[];for(let o of n){let s=t[o.source].collapse;if(s===void 0){i.push(o);continue}let r=`${s}\\0${o.url}`,a=e.get(r);a?(a.others??(a.others=[])).push({source:o.source,id:o.id,url:o.url,score:o.score}):(e.set(r,o),i.push(o))}return i}async function ho(n,t,e=10,i={}){let o=await xr(t),s=Kt(n,{facets:En(o)}),r=t.flatMap((u,h)=>o[h]?[]:[h]);for(let u of new Set(o.flatMap(h=>h?[h.lang]:[]))){let h=Ee(u);h&&(s.highlight=[...new Set([...s.highlight,...s.highlight.map(h).filter(m=>m.length>=3)])])}let{results:a,failed:c,errors:l}=await Er(s,t,o,i);for(let u of c)r.includes(u)||r.push(u);r.sort((u,h)=>u-h),s.highlight=[...new Set([...s.highlight,...s.groups.flatMap(u=>u.corrected??[])])];let d=no(a,u=>o[u.source]);return{parsed:s,results:await co(s,a,u=>t[u.source].data,e),missing:r,facets:d,errors:l}}function Sn(n,t,e=globalThis){var m,f;let i=((m=e.document)==null?void 0:m.baseURI)??((f=e.location)==null?void 0:f.href),o=Zi(n,i),s=e.__DOGSBAY_SEARCH__??{q:[],load(){}},r=s.stores??(s.stores=new Map),a=r.get(o)??new Map;r.set(o,a);let c=(v,w,p)=>{let b;if(p){let x="",E=Zi(p,i);for(let D of r.keys())E.startsWith(D)&&D.length>x.length&&(x=D);b=x?r.get(x):void 0}!b&&r.size===1&&(b=a),b?b.set(v,w):s.q.push([v,w,p])},l=s.q;s.q=[],s.load=c;for(let[v,w,p]of l)c(v,w,p);e.__DOGSBAY_SEARCH__=s;let d=async(v,w)=>(a.has(v)||await t(n+w),a.get(v)),u,h={meta:()=>u??(u=d(Pe.docs,He.docs).then(v=>{if(!v||v.format!==5)throw new Error(`search index format ${(v==null?void 0:v.format)??"missing"}, expected ${5}: rebuild the site`);return v}).catch(v=>{throw u=void 0,v})),shard:async v=>(await h.meta()).shards.includes(v)?d(Pe.shard(v),He.shard(v)):void 0,fragment:v=>d(Pe.fragment(v),He.fragment(v))};return h}function Zi(n,t){try{return new URL(n,t).href}catch{return n}}function fo(n){let t,e=n;try{e=new URL(n||"./",document.baseURI).pathname}catch{}return async i=>{t??(t=import(new URL(`${n}pagefind/pagefind.js`,document.baseURI).href).catch(u=>{throw t=void 0,u}));let o=i.replace(new RegExp(\'(?<!\\\\S)-?(tag|section):("[^"]*"?|\\\\S*)\',"gi")," ").trim(),s=o?await(await t).search(o):null,r=(s==null?void 0:s.results)??[],a=async(u,h)=>{let m=await u.data(),f=m.url.startsWith(e)?m.url.slice(e.length):m.url.replace(/^\\/+/,""),v=(m.sub_results??[]).map(w=>[w.title,w.url.split("#")[1]??""]).filter(([,w])=>w);return{id:h,title:m.meta.title??f,url:f,section:"",score:r.length-h,fragment:[Cr(m.excerpt),v],sections:v.slice(0,3)}},c=await Promise.all(r.slice(0,10).map(a)),l=Promise.all(r.slice(10,30).map((u,h)=>a(u,h+10)));return l.catch(()=>{}),{results:c,more:l,later:(u,h)=>Promise.all(r.slice(u,u+h).map((m,f)=>a(m,u+f))),total:r.length,highlight:Kt(i).highlight}}}function Cr(n){return new DOMParser().parseFromString(n,"text/html").body.textContent??""}function po(n,t){let e=(n==null?void 0:n.units)??[],i=e.find(p=>p.prefix===t);if(!i)return{};let o=p=>p.product??"",s=p=>{var b;return((b=n==null?void 0:n.products)==null?void 0:b[p])??{versions:n==null?void 0:n.versions,defaultVersion:n==null?void 0:n.defaultVersion}},r=p=>{var b;return(b=s(o(p)).versions)==null?void 0:b.find(x=>x.id===p.version)},a=p=>{var b,x;return((x=(b=n==null?void 0:n.products)==null?void 0:b[p])==null?void 0:x.label)??(p||(n==null?void 0:n.name)||"")},c=p=>{var b;return[o(p)!==o(i)?a(o(p)):"",p.version!==void 0?((b=r(p))==null?void 0:b.label)??p.version:""].filter(Boolean).join(" \\xB7 ")},l=p=>({prefix:p.prefix,product:o(p),label:c(p),own:p===i,versioned:p.version!==void 0}),d=e.filter(p=>p.locale===i.locale),u=s(o(i)),h=(u.versions??[]).map(p=>p.id),m=p=>{var b;return p===i?-2:p.version===u.defaultVersion?-1:(b=r(p))!=null&&b.prerelease?h.length+h.indexOf(p.version):h.indexOf(p.version)},f=d.filter(p=>{var b;return o(p)===o(i)&&p.version!==void 0&&(p===i||!((b=r(p))!=null&&b.hidden))}).sort((p,b)=>m(p)-m(b)),v=[];for(let p of d){let b=o(p);if(v.some(D=>o(D)===b))continue;if(b===o(i)){v.push(i);continue}let x=d.filter(D=>o(D)===b),E=s(b).defaultVersion;v.push(x.find(D=>D.version===E)??x.find(D=>{var S;return!((S=r(D))!=null&&S.hidden)})??x[0])}let w={};return f.length>1&&(w.versions=f.map(l)),v.length>1&&(w.products=v.map(l)),(w.versions||w.products)&&(w.version=[l(i)]),w}var mo=1.5;function go(n,t){var s,r;let e={},i=(s=n.docs[t])==null?void 0:s[3];i!=null&&i.length&&(e.tag=i.map(a=>n.tags[a]).filter(a=>typeof a=="string"));let o=(r=n.docs[t])==null?void 0:r[4];return!o||!n.facets||n.facets.forEach((a,c)=>{let l=o[c];l!=null&&l.length&&(e[a.name]=l.map(d=>a.values[d]).filter(d=>typeof d=="string"))}),e}var Lt=n=>n.trim().toLowerCase();function bo(n,t,e){for(let[i,o]of Object.entries(t)){if(i===e||!o.length)continue;let s=new Set((n[i]??[]).map(Lt));if(!o.some(r=>s.has(Lt(r))))return!1}return!0}function vo(n,t,e){return n.filter(i=>bo(t(i),e))}function yo(n,t,e,i){var s;let o={};for(let r of i){let a={},c=new Map;for(let l of n){let d=t(l);if(!((s=d[r])!=null&&s.length)||!bo(d,e,r))continue;let u=new Set;for(let h of d[r]){if(u.has(Lt(h)))continue;u.add(Lt(h));let m=c.get(Lt(h))??(c.set(Lt(h),h),h);a[m]=(a[m]??0)+1}}for(let l of e[r]??[])c.has(Lt(l))||(a[l]=0);Object.keys(a).length&&(o[r]=a)}return o}function wo(n,t){let e={};for(let i of n.getAll("filter")){let o=i.indexOf(":");if(o<=0)continue;let s=i.slice(0,o),r=i.slice(o+1);!t.includes(s)||!r||(e[s]??(e[s]=[])).some(a=>Lt(a)===Lt(r))||e[s].push(r)}return e}function Lr(n,t,e){var s;if(n.length===0)return"";let i=n.join("/"),o=e==null?void 0:e[i];if(o&&o.length>0)return o;if(n.length===1){let r=(s=t==null?void 0:t[n[0]])==null?void 0:s.label;if(r&&r.length>0)return r}return n[n.length-1]}function xo(n){if(!n)return{};let t={};for(let[e,i]of Object.entries(n)){let o=kr(Object.entries(i).map(([s,r])=>({value:s,count:r})));o.length>0&&(t[e]=o)}return t}function kr(n){return[...n].sort((t,e)=>t.count!==e.count?e.count-t.count:t.value.localeCompare(e.value))}function oe(n,t,e){let i=e==null?void 0:e[n],o=t.split("/").filter(s=>s.length>0);return Lr(o,i==null?void 0:i.prefixes,i==null?void 0:i.labels)}function Eo(n,t){let e=i=>{var s;let o=(s=t==null?void 0:t[i])==null?void 0:s.order;return typeof o=="number"?o:void 0};return[...n].sort((i,o)=>{let s=e(i),r=e(o);return s!==void 0&&r!==void 0?s!==r?s-r:i.localeCompare(o):s!==void 0?-1:r!==void 0?1:i.localeCompare(o)})}function So(n,t,e){let i={...n},o=i[t]??[];if(o.includes(e)){let s=o.filter(r=>r!==e);s.length===0?delete i[t]:i[t]=s}else i[t]=[...o,e];return i}function Ao(n){let t=0;for(let e of Object.values(n))t+=e.length;return t}function Co(n,t,e={}){if(t.length===0)return[];if(t.some(o=>o.value.includes("/"))){let o=e.nav?Or(e.nav,new Set(t.map(s=>s.value))):void 0;return Tr(n,t,e.display,o)}return Rr(n,t,e.nav,e.display)}function Tr(n,t,e,i){let o=new Map,s=[];for(let l of t){let d=l.value.split("/").filter(m=>m.length>0);if(d.length===0)continue;let u="",h=null;for(let m=0;m<d.length;m++){u=u?`${u}/${d[m]}`:d[m];let f=o.get(u);f||(f={value:u,label:oe(n,u,e),count:0,depth:m,hasValue:!1,children:[]},o.set(u,f),h?h.children.push(f):s.push(u)),m===d.length-1&&(f.count=l.count,f.hasValue=!0),h=f}}let r=(l,d)=>{if(i){let u=i.get(l.value),h=i.get(d.value);if(u!==void 0&&h!==void 0&&u!==h)return u-h;if(u!==void 0&&h===void 0)return-1;if(u===void 0&&h!==void 0)return 1}return l.count!==d.count?d.count-l.count:l.value.localeCompare(d.value)},a=l=>{if(l.children.length!==0){l.children.sort(r);for(let d of l.children)a(d)}},c=s.map(l=>o.get(l));c.sort(r);for(let l of c)a(l);return c}function Or(n,t){let e=new Map,i=0,o=s=>{for(let r of s){if(r.href){let a=Lo(r.href);for(let c=0;c<a.length;c++){let l=a[c];if(!t.has(l))continue;let d="";for(let u=c;u<a.length;u++)d=d?`${d}/${a[u]}`:a[u],t.has(d)&&!e.has(d)&&e.set(d,i++);break}}r.children&&r.children.length>0&&o(r.children)}};return o(n),e}function Rr(n,t,e,i){let o=new Map;for(let h of t)o.set(h.value,h);if(!e||e.length===0)return t.map(h=>({value:h.value,label:oe(n,h.value,i),count:h.count,depth:0,hasValue:!0,children:[]}));let s=new Set,r=[],a=new Map,c=h=>{if(h.length===0)return;let m=r,f=a;for(let v=0;v<h.length;v++){let w=h[v],p=f.get(w);if(!p){let x=o.get(w);p={value:w,label:oe(n,w,i),count:x?x.count:0,depth:v,hasValue:x!==void 0,children:[]},m.push(p),f.set(w,p),x&&s.add(w)}let b=l.get(p);b||(b=new Map,l.set(p,b)),m=p.children,f=b}},l=new Map,d=h=>{for(let m of h){if(m.href){let f=Lo(m.href);c(f)}m.children&&m.children.length>0&&d(m.children)}};d(e);let u=[];for(let h of t)s.has(h.value)||u.push({value:h.value,label:oe(n,h.value,i),count:h.count,depth:0,hasValue:!0,children:[]});return u.sort((h,m)=>h.value.localeCompare(m.value)),[...r,...u]}function Lo(n){let t=n;try{/^[a-z]+:\\/\\//i.test(n)&&(t=new URL(n).pathname)}catch{}t=t.split("#")[0].split("?")[0];let e=t.split("/").filter(i=>i.length>0);return e.length<2?[]:e.slice(0,-1)}var Dr=6e4,Mr=30,$e=20,Ir=["version","versions","products"];function To(n){let{signal:t}=n,e=document.getElementById("db-search");if(!e)return;let i=e.querySelector("[data-db-search-input]"),o=e.querySelector("[data-part=\'listbox\']"),s=e.querySelector("[data-db-search-status]"),r=Ro(n,{input:i,list:o,status:s,page:!1});e.addEventListener("db-dialog:open",()=>{i.focus(),i.select(),r.activate()},{signal:t}),document.addEventListener("keydown",a=>{let c=a.target.closest("input, textarea, select, [contenteditable]");if(a.key==="/"&&!c||a.key.toLowerCase()==="k"&&(a.metaKey||a.ctrlKey)){a.preventDefault();let l=document.querySelector("[data-db-search-page] [data-db-search-input]");l&&!e.open?l.focus():e.open?i.focus():e.show()}},{signal:t}),e.addEventListener("click",a=>{a.target.closest("a")&&e.close("api")},{signal:t})}function Oo(n){var d;let t=document.querySelector("[data-db-search-page]");if(!t)return;let e=t.querySelector("[data-db-search-input]"),i=t.querySelector("[data-db-search-list]"),o=t.querySelector("[data-db-search-status]"),s=Nr(),r=s.get("p")||void 0,a=s.get("v")||void 0,c=s.get("scope")??(s.get("q")?"version":void 0),l=Ro(n,{input:e,list:i,status:o,page:!0,params:s,scope:c,forward:r!==void 0||a!==void 0?{product:r,version:a}:void 0});(d=t.querySelector("form"))==null||d.addEventListener("submit",u=>u.preventDefault(),{signal:n.signal}),e.value=s.get("q")??"",l.activate(),e.value.trim()&&l.run()}function Nr(){let n=new URLSearchParams(location.search);if(location.hash.includes("="))for(let[t,e]of new URLSearchParams(location.hash.slice(1)))n.has(t)||n.set(t,e);return n}var ko=()=>!location.search&&location.hash.includes("=");function Ro(n,{input:t,list:e,status:i,page:o,scope:s,forward:r,params:a}){var Nn;let{signal:c}=n,l=i.textContent??"",d=Sn(`${n.unitRoot}_dogsbay/search/`,n.loadScript,window),u=document.body.dataset.search??"builtin",h=location.protocol!=="file:",m=u==="pagefind"||u==="both"&&h?fo(n.unitRoot):void 0,f=u==="pagefind"&&!h,v=n.siteRoot??"",w=n.prefix??"",p={},b="version",x,E=`db-search-scope:${v}`;try{E=`db-search-scope:${new URL(v||"./",document.baseURI).pathname}`}catch{}let D=()=>{let L=window.__DOGSBAY_SITE__;if(r&&L&&S(L)||(r=void 0,m))return;p=po(L,w);let T=s??An(()=>sessionStorage.getItem(E)),k=b;T&&Object.prototype.hasOwnProperty.call(p,T)&&(b=T),dt(),b!==k&&t.value.trim()&&P(++j)},S=L=>{var Q,tt;let T=L.units??[],k=T.find(Y=>Y.prefix===w);if(!k)return!1;let H=r.product??k.product??"",N=T.filter(Y=>Y.locale===k.locale&&(Y.product??"")===H),R=((tt=(Q=L.products)==null?void 0:Q[H])==null?void 0:tt.defaultVersion)??L.defaultVersion,F=r.version!==void 0?N.find(Y=>Y.version===r.version||Y.prefix&&Y.prefix.split("/").pop()===r.version):N.find(Y=>Y===k)??N.find(Y=>Y.version===R)??N[0];if(!F||F.prefix===w||!F.search)return!1;let B=new URLSearchParams(a);B.delete("p"),B.delete("v");let I=B.toString();return location.replace(`${y(F.prefix)}${F.search}${I?ko()?`#${I}`:`?${I}`:""}`),!0},A=()=>x??(x=n.loadScript(`${v}_dogsbay/site.js`).then(D,D)),y=L=>`${v}${L?`${L}/`:""}`,W=new Map([[w,d]]),z=L=>{let T=W.get(L);return T||W.set(L,T=Sn(`${y(L)}_dogsbay/search/`,n.loadScript,window)),T},G=new Map,C=((Nn=o?e.closest("[data-db-search-page]"):e.closest("dialog"))==null?void 0:Nn.querySelector("[data-db-search-facets]"))??void 0,O=(()=>{try{return JSON.parse(e.dataset.facets??"{}")}catch{return{}}})(),q=C?Object.keys(O):[],K=o&&a?wo(a,q):{},_=()=>{r&&A(),f?i.textContent=e.dataset.needsServer??"":m||(d.meta().catch(()=>i.textContent="Search index could not be loaded."),A())},j=0,X,ot;t.addEventListener("input",()=>{clearTimeout(ot),ot=setTimeout(()=>void P(++j),80)},{signal:c});let it=new Map,at=typeof IntersectionObserver=="function"?new IntersectionObserver(L=>{var T;for(let k of L)k.isIntersecting&&((T=it.get(k.target))==null||T(),it.delete(k.target),at.unobserve(k.target))}):void 0,M=L=>{if(!o||r)return;let T=new URLSearchParams;L&&T.set("q",L),b!=="version"&&T.set("scope",b);for(let[N,R]of Object.entries(K))for(let F of R)T.append("filter",`${N}:${F}`);let k=T.toString(),H=ko();An(()=>history.replaceState(history.state,"",`${location.pathname}${k?H?`${location.search}#${k}`:`?${k}`:""}`))},P=async L=>{let T=t.value.trim();if(M(T),!T){at==null||at.disconnect(),it.clear(),$.hidden=!0,C&&(C.hidden=!0),Nt=void 0,e.replaceChildren(),V.hidden=Z.hidden=!0,i.textContent=l;return}if(!f){Nt=void 0;try{if(m){let k=await m(T);if(L!==j)return;if(o){let H=await k.more;if(L!==j)return;Le(T,[...k.results,...H].slice(0,$e),k.highlight,k.total,k.later)}else{Le(T,k.results,k.highlight,k.total);let H=await k.more;L===j&&H.length&&Bo(T,H,k.highlight)}}else if(b!=="version"&&p[b]){let k=Date.now(),H=p[b],N=H.filter(I=>I.own||k-(G.get(I.prefix)??-1/0)>Dr),R=await ho(T,N.map(I=>({data:z(I.prefix),boost:I.own?mo:1,collapse:I.product})));for(let I of R.missing)G.set(N[I].prefix,Date.now());if(L!==j)return;X=R.parsed;let F=R.results.map(I=>{var tt;let Q=N[I.source];return Object.assign(I,{base:y(Q.prefix),from:Q.own?void 0:Q.label,also:(tt=I.others)==null?void 0:tt.map(Y=>N[Y.source].label).filter(Boolean),data:z(Q.prefix)})}),B=R.missing.length+H.length-N.length;await Ce(L,T,F,R.parsed.highlight,B?` \\xB7 ${(e.dataset.unavailable??"{n}").replace("{n}",String(B))}`:"")}else{let k=await uo(T,d);if(L!==j)return;X=k.parsed,await Ce(L,T,k.results,k.parsed.highlight,"")}}catch{if(L!==j)return;i.textContent="Search index could not be loaded.",C&&(C.hidden=!0)}}},$=document.createElement("div");$.setAttribute("role","group"),$.setAttribute("aria-label",e.dataset.filterSection??"Filter by section"),$.className=o?"flex flex-wrap gap-1 pb-3":"flex flex-wrap gap-1 px-3 pb-2",$.hidden=!0,e.before($);let U=document.createElement("div");U.setAttribute("role","group"),U.setAttribute("aria-label",e.dataset.scope??"Search in"),U.className=o?"flex flex-wrap items-center gap-1 pb-3":"flex flex-wrap items-center gap-1 px-3 pb-2",U.hidden=!0,$.before(U);let Z=document.createElement("a");Z.className="mx-3 mb-2 mt-1 block rounded-md px-3 py-2 text-center text-sm font-medium hover:bg-accent",Z.dataset.dbSearchSeeAll="",Z.hidden=!0;let V=document.createElement("button");V.type="button",V.className="mt-4 rounded-md border px-3 py-1.5 text-sm hover:bg-accent",V.textContent=e.dataset.more??"More results",V.hidden=!0,e.after(o?V:Z);let dt=()=>{var k,H;let L=Ir.filter(N=>p[N]),T={version:((H=(k=p.version)==null?void 0:k[0])==null?void 0:H.versioned)===!1?e.dataset.scopeProduct:e.dataset.scopeVersion,versions:e.dataset.scopeVersions,products:e.dataset.scopeProducts};U.replaceChildren(...L.map(N=>{let R=document.createElement("button");return R.type="button",R.dataset.scope=N,R.setAttribute("aria-pressed",String(N===b)),R.className="rounded-md border px-2.5 py-0.5 text-xs hover:bg-accent aria-pressed:bg-primary aria-pressed:text-primary-foreground",R.textContent=T[N]??N,R.addEventListener("click",()=>{var F;b!==N&&(b=N,An(()=>sessionStorage.setItem(E,N)),dt(),(F=U.querySelector(`[data-scope="${N}"]`))==null||F.focus(),t.value.trim()?P(++j):M(""))},{signal:c}),R})),U.hidden=L.length<2};c==null||c.addEventListener("abort",()=>{clearTimeout(ot),j++,at==null||at.disconnect(),it.clear(),$.remove(),U.remove(),Z.remove(),V.remove()});let kt=L=>L.replace(/"/g,""),de=L=>`section:"${kt(L)}"`,pt,ue=(L,T)=>{let k=new Map;for(let F of T)F.section&&k.set(F.section,(k.get(F.section)??0)+1);let H=[...L.matchAll(/section:"([^"]*)"/gi)].map(F=>F[1].toLowerCase()),N=F=>H.includes(kt(F).toLowerCase()),R=[...k].sort((F,B)=>B[1]-F[1]).slice(0,6).map(([F])=>F);for(let F of H)R.some(B=>kt(B).toLowerCase()===F)||R.push(F);$.replaceChildren(...R.length>1||H.length?R.map(F=>{let B=document.createElement("button");B.type="button";let I=N(F);return B.setAttribute("aria-pressed",String(I)),B.className="rounded-full border px-2.5 py-0.5 text-xs hover:bg-accent aria-pressed:bg-primary aria-pressed:text-primary-foreground",B.textContent=F,B.addEventListener("click",()=>{let Q=de(F),tt=t.value.replace(new RegExp(`\\\\s*section:"${kt(F).replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}"`,"i"),"").trim();t.value=I?tt:`${tt} ${Q}`.trim(),pt=F,t.dispatchEvent(new Event("input",{bubbles:!0}))},{signal:c}),B}):[]),$.hidden=!$.childElementCount,pt!==void 0&&(([...$.querySelectorAll("button")].find(B=>B.textContent===pt)??t).focus(),pt=void 0)},Nt,Ce=async(L,T,k,H,N)=>{if(!q.length){Le(T,k,H,k.length),i.textContent+=N;return}let R=new Map;for(let B of k){let I=B.data??d;R.has(I)||R.set(I,await I.meta())}if(L!==j)return;let F=new Map(k.map(B=>[B,go(R.get(B.data??d),B.id)]));Nt={q:T,results:k,terms:H,note:N,valuesOf:B=>F.get(B)??{}},Ht()},Ht=()=>{if(!Nt)return;let{q:L,results:T,terms:k,note:H,valuesOf:N}=Nt,R=vo(T,N,K);Ge(yo(T,N,K,q)),Le(L,R,k,R.length),i.textContent+=H},Tt,Ge=L=>{var F,B;if(!C)return;let T=Eo(Object.keys(L),O);if(C.hidden=!T.length,!T.length)return C.replaceChildren();let k=(I,Q,tt,Y)=>{let J=document.createElement("label");J.className="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1 hover:bg-accent";let ct=document.createElement("input");ct.type="checkbox",ct.dataset.facetName=I,ct.dataset.facetValue=Q,ct.checked=(K[I]??[]).some(jo=>jo.toLowerCase()===Q.toLowerCase()),ct.className="size-3.5 rounded border-border accent-primary";let xt=document.createElement("span");xt.className="flex-1 truncate",xt.textContent=tt;let Qe=document.createElement("span");return Qe.className="text-xs text-muted-foreground",Qe.textContent=String(Y),J.append(ct,xt,Qe),J},H=(I,Q)=>{let tt=document.createElement("ul");tt.className="space-y-0.5";for(let Y of Q){let J=document.createElement("li");if(Y.hasValue)J.append(k(I,Y.value,Y.label,Y.count));else{let ct=document.createElement("span");ct.className="block px-2 py-1 text-muted-foreground",ct.textContent=Y.label,J.append(ct)}if(Y.children.length){let ct=H(I,Y.children);ct.classList.add("ml-4"),J.append(ct)}tt.append(J)}return tt},N=[],R=Ao(K);if(R){let I=document.createElement("button");I.type="button",I.dataset.clearFilters="",I.className="mb-3 w-full rounded-md border border-border px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",I.textContent=(e.dataset.facetsClear??"Clear all ({n})").replace("{n}",String(R)),N.push(I)}for(let I of T){let Q=xo({[I]:L[I]})[I]??[],tt=document.createElement("fieldset");tt.className="mb-3";let Y=document.createElement("legend");if(Y.className="mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground",Y.textContent=((F=O[I])==null?void 0:F.title)??I,tt.append(Y),(B=O[I])!=null&&B.hierarchical||Q.some(J=>J.value.includes("/")))tt.append(H(I,Co(I,Q,{display:O})));else{let J=document.createElement("ul");J.className="space-y-0.5";for(let ct of Q){let xt=document.createElement("li");xt.append(k(I,ct.value,oe(I,ct.value,O),ct.count)),J.append(xt)}tt.append(J)}N.push(tt)}C.replaceChildren(...N),Tt!==void 0&&(((Tt?[...C.querySelectorAll("input[data-facet-name]")].find(Q=>`${Q.dataset.facetName}\\0${Q.dataset.facetValue}`===Tt):C.querySelector("[data-clear-filters]"))??t).focus(),Tt=void 0)};C==null||C.addEventListener("change",L=>{let T=L.target;if(!T.dataset.facetName)return;let k=T.dataset.facetName,H=T.dataset.facetValue,N=(K[k]??[]).find(R=>R.toLowerCase()===H.toLowerCase());K=So(K,k,N??H),Tt=`${k}\\0${H}`,M(t.value.trim()),Ht()},{signal:c}),C==null||C.addEventListener("click",L=>{L.target.closest("[data-clear-filters]")&&(K={},Tt="",M(t.value.trim()),Ht())},{signal:c});let ht,Le=(L,T,k,H,N)=>{at==null||at.disconnect(),it.clear(),ue(L,T);let R=T.slice(0,o?$e:Mr);if(ht={q:L,results:T,terms:k,shown:R.length,total:H,later:N},e.replaceChildren(...Ze(L,R,k)),i.textContent=H?`${H} result${H===1?"":"s"}`:`${e.dataset.noResults} \\u201C${L}\\u201D`,V.hidden=!o||!Mn(),Z.hidden=o||!H||!e.dataset.searchPage,!Z.hidden){let F=new URLSearchParams({q:L});b!=="version"&&F.set("scope",b);for(let[B,I]of Object.entries(K))for(let Q of I)F.append("filter",`${B}:${Q}`);Z.href=`${e.dataset.searchPage}?${F}`,Z.textContent=(e.dataset.seeAll??"See all {n} results").replace("{n}",String(H))}},Bo=(L,T,k)=>e.append(...Ze(L,T,k)),Mn=()=>!!ht&&(ht.results.length>ht.shown||!!ht.later&&ht.shown<ht.total);V.addEventListener("click",async()=>{var H,N;let L=ht;if(!L)return;let T=L.results.slice(L.shown,L.shown+$e);if(!T.length&&L.later){if(T=await L.later(L.shown,$e).catch(()=>[]),L!==ht)return;L.results.push(...T)}let k=Ze(L.q,T,L.terms);e.append(...k),L.shown+=T.length,V.hidden=!T.length||!Mn(),(N=(H=k[0])==null?void 0:H.querySelector("a"))==null||N.focus()},{signal:c});let Ze=(L,T,k)=>{var N;let H=[];for(let R of T){let F=R.base??n.unitRoot,B=In(F,R.url,k,"block rounded-md p-3 hover:bg-accent"),I=document.createElement("div");I.className="font-medium",I.append(...Cn(R.title,k)),B.a.appendChild(I);let Q=[R.from,R.section].filter(Boolean).join(" \\xB7 ");if(Q){let J=document.createElement("div");J.className="text-xs text-muted-foreground",J.textContent=Q,B.a.appendChild(J)}let tt=document.createElement("div");if(tt.className="mt-1 line-clamp-2 text-xs text-muted-foreground",B.a.appendChild(tt),(N=R.also)!=null&&N.length){let J=document.createElement("div");J.className="mt-1 text-xs text-muted-foreground",J.textContent=`${e.dataset.alsoIn??"Also in"} ${R.also.join(", ")}`,B.a.appendChild(J)}H.push(B.li);let Y=()=>R.fragment?(R.fragment[0]&&tt.replaceChildren(...Cn(R.fragment[0],k)),(R.sections??[]).map(([J,ct])=>{let xt=In(F,`${R.url}#${ct}`,k,"ml-4 block rounded-md border-l px-3 py-1.5 text-sm hover:bg-accent");return xt.a.append(...Cn(J,k)),xt.li})):[];if(R.fragment)H.push(...Y());else if(at){let J=X??Kt(L);it.set(B.li,()=>void lo(J,[R],R.data??d).then(()=>B.li.after(...Y()),()=>{})),at.observe(B.li)}}return H},In=(L,T,k,H)=>{let N=document.createElement("li");o||N.setAttribute("role","none"),N.className="mb-1";let R=document.createElement("a");return o||(R.setAttribute("data-part","option"),R.dataset.value=T,R.tabIndex=-1),R.href=Hr(L+T,k),R.className=H,N.appendChild(R),{li:N,a:R}};return{activate:_,run:()=>void P(++j)}}function An(n){try{return n()}catch{return}}function Hr(n,t){if(!t.length)return n;let e=n.indexOf("#"),[i,o]=e<0?[n,""]:[n.slice(0,e),n.slice(e)];return`${i}${i.includes("?")?"&":"?"}h=${encodeURIComponent(t.join(" "))}${o}`}function Cn(n,t){if(!t.length)return[document.createTextNode(n)];let e=new RegExp(`(${t.map(i=>i.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")).join("|")})`,"gi");return n.split(e).map((i,o)=>{if(o%2===0)return document.createTextNode(i);let s=document.createElement("mark");return s.textContent=i,s})}var Do=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}]/u;function Mo(n){var v;let t;try{t=(new URLSearchParams(location.search).get("h")??"").split(/\\s+/).filter(w=>w.length>0)}catch{return}let e=document.querySelector("#db-content article")??document.querySelector("#db-content");if(!t.length||!e)return;let i=w=>w.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&"),o=[...t].sort((w,p)=>p.length-w.length),s=o.filter(w=>Do.test(w)).map(i),r=o.filter(w=>!Do.test(w)).map(i),a=[r.length?`(?<![\\\\p{L}\\\\p{N}])(?:${r.join("|")})`:"",s.length?`(?:${s.join("|")})`:""].filter(Boolean),c=new RegExp(`(${a.join("|")})`,"giu"),l=[],d=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:w=>{var p;return(p=w.parentElement)!=null&&p.closest("script, style, mark, button, [aria-hidden=\'true\']")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),u=[];for(let w=d.nextNode();w;w=d.nextNode())u.push(w);for(let w of u){if(l.length>=500)break;let p=w.data;if(c.lastIndex=0,!c.test(p))continue;c.lastIndex=0;let b=document.createDocumentFragment(),x=0;for(let E of p.matchAll(c)){b.append(p.slice(x,E.index));let D=document.createElement("mark");D.className="db-search-hl",D.textContent=E[0],b.append(D),l.push(D),x=E.index+E[0].length}b.append(p.slice(x)),w.replaceWith(b)}if(Pr(),!l.length)return;let h=((v=document.querySelector("[data-clear-highlights]"))==null?void 0:v.dataset.clearHighlights)??"Clear highlights",m=document.createElement("div");m.className="not-prose mb-4";let f=document.createElement("button");f.type="button",f.className="inline-flex h-8 items-center rounded-md border px-3 text-sm hover:bg-accent",f.textContent=h,f.addEventListener("click",()=>{var w;for(let p of l)p.replaceWith(document.createTextNode(p.textContent??""));e.normalize(),m.remove(),(w=document.getElementById("db-content"))==null||w.focus({preventScroll:!0})},{signal:n}),m.append(f),e.prepend(m),location.hash||l[0].scrollIntoView({block:"center"})}function Pr(){try{let n=new URL(location.href);n.searchParams.delete("h"),history.replaceState(history.state,"",n.toString())}catch{}}var Vt=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},qe=function(t){return t.tagName==="IMG"},Fr=function(t){return NodeList.prototype.isPrototypeOf(t)},Be=function(t){return t&&t.nodeType===1},Io=function(t){var e=t.currentSrc||t.src;return e.substr(-4).toLowerCase()===".svg"},No=function(t){try{return Array.isArray(t)?t.filter(qe):Fr(t)?[].slice.call(t).filter(qe):Be(t)?[t].filter(qe):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(qe):[]}catch{throw new TypeError(`The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom`)}},_r=function(t){var e=document.createElement("div");return e.classList.add("medium-zoom-overlay"),e.style.background=t,e},zr=function(t){var e=t.getBoundingClientRect(),i=e.top,o=e.left,s=e.width,r=e.height,a=t.cloneNode(),c=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=i+c+"px",a.style.left=o+l+"px",a.style.width=s+"px",a.style.height=r+"px",a.style.transform="",a},se=function(t,e){var i=Vt({bubbles:!1,cancelable:!1,detail:void 0},e);if(typeof window.CustomEvent=="function")return new CustomEvent(t,i);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),o},$r=function n(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=window.Promise||function(C){function O(){}C(O,O)},o=function(C){var O=C.target;if(O===W){f();return}x.indexOf(O)!==-1&&v({target:O})},s=function(){if(!(D||!y.original)){var C=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(S-C)>A.scrollOffset&&setTimeout(f,150)}},r=function(C){var O=C.key||C.keyCode;(O==="Escape"||O==="Esc"||O===27)&&f()},a=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C;if(C.background&&(W.style.background=C.background),C.container&&C.container instanceof Object&&(O.container=Vt({},A.container,C.container)),C.template){var q=Be(C.template)?C.template:document.querySelector(C.template);O.template=q}return A=Vt({},A,O),x.forEach(function(K){K.dispatchEvent(se("medium-zoom:update",{detail:{zoom:z}}))}),z},c=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(Vt({},A,C))},l=function(){for(var C=arguments.length,O=Array(C),q=0;q<C;q++)O[q]=arguments[q];var K=O.reduce(function(_,j){return[].concat(_,No(j))},[]);return K.filter(function(_){return x.indexOf(_)===-1}).forEach(function(_){x.push(_),_.classList.add("medium-zoom-image")}),E.forEach(function(_){var j=_.type,X=_.listener,ot=_.options;K.forEach(function(it){it.addEventListener(j,X,ot)})}),z},d=function(){for(var C=arguments.length,O=Array(C),q=0;q<C;q++)O[q]=arguments[q];y.zoomed&&f();var K=O.length>0?O.reduce(function(_,j){return[].concat(_,No(j))},[]):x;return K.forEach(function(_){_.classList.remove("medium-zoom-image"),_.dispatchEvent(se("medium-zoom:detach",{detail:{zoom:z}}))}),x=x.filter(function(_){return K.indexOf(_)===-1}),z},u=function(C,O){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return x.forEach(function(K){K.addEventListener("medium-zoom:"+C,O,q)}),E.push({type:"medium-zoom:"+C,listener:O,options:q}),z},h=function(C,O){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return x.forEach(function(K){K.removeEventListener("medium-zoom:"+C,O,q)}),E=E.filter(function(K){return!(K.type==="medium-zoom:"+C&&K.listener.toString()===O.toString())}),z},m=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C.target,q=function(){var _={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,X=void 0;if(A.container)if(A.container instanceof Object)_=Vt({},_,A.container),j=_.width-_.left-_.right-A.margin*2,X=_.height-_.top-_.bottom-A.margin*2;else{var ot=Be(A.container)?A.container:document.querySelector(A.container),it=ot.getBoundingClientRect(),at=it.width,M=it.height,P=it.left,$=it.top;_=Vt({},_,{width:at,height:M,left:P,top:$})}j=j||_.width-A.margin*2,X=X||_.height-A.margin*2;var U=y.zoomedHd||y.original,Z=Io(U)?j:U.naturalWidth||j,V=Io(U)?X:U.naturalHeight||X,dt=U.getBoundingClientRect(),kt=dt.top,de=dt.left,pt=dt.width,ue=dt.height,Nt=Math.min(Math.max(pt,Z),j)/pt,Ce=Math.min(Math.max(ue,V),X)/ue,Ht=Math.min(Nt,Ce),Tt=(-de+(j-pt)/2+A.margin+_.left)/Ht,Ge=(-kt+(X-ue)/2+A.margin+_.top)/Ht,ht="scale("+Ht+") translate3d("+Tt+"px, "+Ge+"px, 0)";y.zoomed.style.transform=ht,y.zoomedHd&&(y.zoomedHd.style.transform=ht)};return new i(function(K){if(O&&x.indexOf(O)===-1){K(z);return}var _=function at(){D=!1,y.zoomed.removeEventListener("transitionend",at),y.original.dispatchEvent(se("medium-zoom:opened",{detail:{zoom:z}})),K(z)};if(y.zoomed){K(z);return}if(O)y.original=O;else if(x.length>0){var j=x;y.original=j[0]}else{K(z);return}if(y.original.dispatchEvent(se("medium-zoom:open",{detail:{zoom:z}})),S=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,D=!0,y.zoomed=zr(y.original),document.body.appendChild(W),A.template){var X=Be(A.template)?A.template:document.querySelector(A.template);y.template=document.createElement("div"),y.template.appendChild(X.content.cloneNode(!0)),document.body.appendChild(y.template)}if(y.original.parentElement&&y.original.parentElement.tagName==="PICTURE"&&y.original.currentSrc&&(y.zoomed.src=y.original.currentSrc),document.body.appendChild(y.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),y.original.classList.add("medium-zoom-image--hidden"),y.zoomed.classList.add("medium-zoom-image--opened"),y.zoomed.addEventListener("click",f),y.zoomed.addEventListener("transitionend",_),y.original.getAttribute("data-zoom-src")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("srcset"),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading"),y.zoomedHd.src=y.zoomed.getAttribute("data-zoom-src"),y.zoomedHd.onerror=function(){clearInterval(ot),console.warn("Unable to reach the zoom image target "+y.zoomedHd.src),y.zoomedHd=null,q()};var ot=setInterval(function(){y.zoomedHd.complete&&(clearInterval(ot),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",f),document.body.appendChild(y.zoomedHd),q())},10)}else if(y.original.hasAttribute("srcset")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading");var it=y.zoomedHd.addEventListener("load",function(){y.zoomedHd.removeEventListener("load",it),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",f),document.body.appendChild(y.zoomedHd),q()})}else q()})},f=function(){return new i(function(C){if(D||!y.original){C(z);return}var O=function q(){y.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(y.zoomed),y.zoomedHd&&document.body.removeChild(y.zoomedHd),document.body.removeChild(W),y.zoomed.classList.remove("medium-zoom-image--opened"),y.template&&document.body.removeChild(y.template),D=!1,y.zoomed.removeEventListener("transitionend",q),y.original.dispatchEvent(se("medium-zoom:closed",{detail:{zoom:z}})),y.original=null,y.zoomed=null,y.zoomedHd=null,y.template=null,C(z)};D=!0,document.body.classList.remove("medium-zoom--opened"),y.zoomed.style.transform="",y.zoomedHd&&(y.zoomedHd.style.transform=""),y.template&&(y.template.style.transition="opacity 150ms",y.template.style.opacity=0),y.original.dispatchEvent(se("medium-zoom:close",{detail:{zoom:z}})),y.zoomed.addEventListener("transitionend",O)})},v=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C.target;return y.original?f():m({target:O})},w=function(){return A},p=function(){return x},b=function(){return y.original},x=[],E=[],D=!1,S=0,A=e,y={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?A=t:(t||typeof t=="string")&&l(t),A=Vt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},A);var W=_r(A.background);document.addEventListener("click",o),document.addEventListener("keyup",r),document.addEventListener("scroll",s),window.addEventListener("resize",f);var z={open:m,close:f,toggle:v,update:a,clone:c,attach:l,detach:d,on:u,off:h,getOptions:w,getImages:p,getZoomedImage:b};return z};function qr(n,t){t===void 0&&(t={});var e=t.insertAt;if(!(!n||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var Br=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";qr(Br);var Ho=$r;var jr;function Po(n){let t=document.body.dataset.imageZoom;if(!t)return;let e;try{e=JSON.parse(t)}catch{return}let i=[...document.querySelectorAll(\'img[data-zoomable="true"]\')];if(!i.length)return;let o=jr??(jr=Ho());o.update(e),o.attach(...i),n==null||n.addEventListener("abort",()=>{o.close(),o.detach(...i)});let s={signal:n},r=!1,a=c=>c.key==="Enter"||c.key===" ";for(let c of i)c.alt&&(c.tabIndex=0,c.addEventListener("keydown",l=>{a(l)&&(l.preventDefault(),r=!0,o.open({target:c}))},s),c.addEventListener("medium-zoom:opened",()=>{let l=document.querySelector(".medium-zoom-image--opened");!r||!l||(l.tabIndex=-1,l.addEventListener("keydown",d=>{a(d)&&(d.preventDefault(),o.close())}),l.focus())},s),c.addEventListener("medium-zoom:closed",()=>{r&&c.focus(),r=!1},s))}var Kr=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]),Vr=new Set(["script","style","textarea","title","noscript","template","xmp"]),Ur=new Set(["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"]),Wr=new Set(["nav","aside","header","footer","figure","table","details","blockquote","form","button","svg","math","dialog"]),Yr=new Set(["svg","math","button","select","img"]),Fo=Object.assign(Object.create(null),{amp:"&",lt:"<",gt:">",quot:\'"\',apos:"\'",nbsp:"\\xA0",hellip:"\\u2026",mdash:"\\u2014",ndash:"\\u2013",lsquo:"\\u2018",rsquo:"\\u2019",ldquo:"\\u201C",rdquo:"\\u201D",laquo:"\\xAB",raquo:"\\xBB",copy:"\\xA9",reg:"\\xAE",trade:"\\u2122",middot:"\\xB7",times:"\\xD7",para:"\\xB6",sect:"\\xA7",deg:"\\xB0",rarr:"\\u2192",larr:"\\u2190",bull:"\\u2022",shy:""});function Tn(n){return n.includes("&")?n.replace(/&(#[xX][0-9a-fA-F]{1,6}|#\\d{1,7}|[a-zA-Z]{2,8});/g,(t,e)=>{if(e[0]!=="#")return Fo[e]??Fo[e.toLowerCase()]??t;let i=e[1]==="x"||e[1]==="X"?Number.parseInt(e.slice(2),16):Number.parseInt(e.slice(1),10);return i>0&&i<=1114111&&!(i>=55296&&i<=57343)?String.fromCodePoint(i):"\\uFFFD"}):n}var _o=n=>n>" "&&n!==">"&&n!=="/"&&n!=="="&&n!==\'"\'&&n!=="\'";function Xr(n){let t={tag:"#root",attrs:{},children:[],start:0,end:0},e=n.toLowerCase(),i=t,o=0,s=0,r=1,a=new Map,c=u=>{u>s&&i.children.push(n.slice(s,u))},l=()=>{i.end=r,a.set(i.tag,a.get(i.tag)-1),i=i.parent},d=u=>{if(a.get(u))for(;i!==t;){let h=i.tag===u;if(l(),h)return}};for(;o<n.length;){let u=n.indexOf("<",o);if(u<0)break;let h=n[u+1]??"";if(n.startsWith("<!--",u)){c(u);let E=n.startsWith("<!-->",u)?5:n.startsWith("<!--->",u)?6:0,D=E?u:n.indexOf("-->",u+4);o=s=E?u+E:D<0?n.length:D+3;continue}if(h==="!"||h==="?"){c(u);let E=n.indexOf(">",u);o=s=E<0?n.length:E+1;continue}let m=h==="/",f=u+(m?2:1);if(!/[a-zA-Z]/.test(n[f]??"")){o=u+1;continue}let v=f;for(;f<n.length&&_o(n[f]);)f++;let w=e.slice(v,f),p={},b=!1;for(;f<n.length&&n[f]!==">";){let E=n[f];if(E==="/"){b=!0,f++;continue}if(E<=" "){f++;continue}b=!1;let D=f;for(;f<n.length&&(_o(n[f])||n[f]===\'"\'||n[f]==="\'")&&n[f]!=="=";)f++;let S=e.slice(D,f);for(;f<n.length&&n[f]<=" ";)f++;let A="";if(n[f]==="="){for(f++;f<n.length&&n[f]<=" ";)f++;let y=n[f];if(y===\'"\'||y==="\'"){let W=n.indexOf(y,f+1);A=n.slice(f+1,W<0?n.length:W),f=W<0?n.length:W+1}else{let W=f;for(;f<n.length&&n[f]>" "&&n[f]!==">";)f++;A=n.slice(W,f)}}S&&!(S in p)&&(p[S]=Tn(A)),f===D&&f++}if(f>=n.length){c(u),s=n.length;break}if(c(u),o=s=f+1,m){d(w);continue}Ur.has(w)&&d("p");let x={tag:w,attrs:p,children:[],parent:i,start:r++,end:0};if(x.excl=Wr.has(w)||On(x)||"data-pagefind-ignore"in p?x:i.excl,i.children.push(x),Vr.has(w)){let E=e.indexOf(`</${w}`,o),D=E<0?n.length:E;w==="title"&&x.children.push(n.slice(o,D));let S=E<0?-1:n.indexOf(">",E);o=s=S<0?n.length:S+1,x.end=r;continue}!Kr.has(w)&&!b?(i=x,a.set(w,(a.get(w)??0)+1)):x.end=r}for(c(n.length);i!==t;)l();return t.end=r,t}function*re(n){let t=[...n.children].reverse();for(;t.length;){let e=t.pop();if(typeof e!="string"){yield e;for(let i=e.children.length-1;i>=0;i--)t.push(e.children[i])}}}var On=n=>n.attrs["aria-hidden"]==="true"||"hidden"in n.attrs||n.tag==="template";function Wt(n,t){let e="",i=[n];for(;i.length;){let o=i.pop();if(typeof o=="string"){e+=Tn(o);continue}if(!(o!==n&&(On(o)||Yr.has(o.tag)||o.tag==="script"||o.tag==="style"||t!=null&&t(o)))){o.tag==="br"&&(e+=" ");for(let s=o.children.length-1;s>=0;s--)i.push(o.children[s])}}return e.replace(/[\\s\xA0]+/g," ").trim()}var Gr=600;function Zr(n){for(let t=n.parent,e=0;t&&e<4;t=t.parent,e++)if(t.attrs.role==="doc-endnotes"||"data-footnotes"in t.attrs||/(?:^|\\s)footnotes(?:\\s|$)/.test(t.attrs.class??""))return!0;return!1}function Qr(n){return Wt(n,t=>t.tag==="a"&&(t.attrs.role==="doc-backlink"||t.children.length===1&&typeof t.children[0]=="string"&&/^\\s*\u21A9\\uFE0E?\\s*$/.test(Tn(t.children[0]))))}var Ln=(n,t)=>n.start<=t.start&&t.end<=n.end;function Jr(n,t){var i;let e=(i=n.parent)==null?void 0:i.excl;return!e||Ln(e,t)}var kn=/^h([1-6])$/,ta=120;function Ke(n,t=200){if(n.length<=t)return n;let e=n.slice(0,t),i=e.lastIndexOf(" ");return`${(i>t*.6?e.slice(0,i):e).replace(/[\\s,;:.\u2013\u2014-]+$/,"")}\\u2026`}var Ve=n=>Ke(n,ta),ea=new Set(["p","li","dd","dt","td","th","blockquote","figcaption","caption","summary","pre"]);function je(n,t,e){for(let i of n){if(e!=null&&e(i))break;if(i.tag!=="p"||!Jr(i,t)||On(i))continue;let o=Wt(i);if(o)return Ke(o)}return""}function Ut(n,t){for(let e of re(n))if(t(e))return e}function na(n){let t=n.attrs["data-title"]??n.attrs["aria-label"]??n.attrs.title;if(t!=null&&t.trim())return Ve(t.replace(/\\s+/g," ").trim());let e=Ut(n,i=>i.tag==="figcaption"||i.tag==="caption"||i.tag==="summary"||"data-card-title"in i.attrs||"data-title"in i.attrs||kn.test(i.tag))??oa(n);return e?Ve(Wt(e)):""}var ia=n=>"data-component"in n.attrs||"data-type"in n.attrs||n.attrs.role==="note"||n.tag==="details"||n.tag==="figure"||n.tag.startsWith("db-");function oa(n){let t=new Set;for(let e of re(n)){if(e===n)continue;let i=e.parent;if(i&&i!==n&&(t.has(i)||ia(i))){t.add(e);continue}if(e.attrs["data-part"]==="title")return e}}var sa=n=>{var t;return n.tag==="meta"&&((t=n.attrs["http-equiv"])==null?void 0:t.trim().toLowerCase())==="refresh"&&/[;,]\\s*url\\s*=/i.test(n.attrs.content??"")};function zo(n,t){var m;let e=Xr(n);if(Ut(e,sa))return;let i=Ut(e,f=>f.tag==="main")??e,o=Ut(i,f=>f.tag==="article"&&/(?:^|\\s)docs-prose(?:\\s|$)/.test(f.attrs.class??""))??i,s=Ut(i,f=>f.tag==="h1"),r=Ut(e,f=>f.tag==="title"),a=Ve(s&&Wt(s)||(r?Wt(r).split(" | ")[0].trim():"")),c=t==null?void 0:t.replace(/^#/,"");if(!c||c==="top"){let f=[...re(o)],v=s?f.indexOf(s)+1:0;return{title:a,excerpt:je(f.slice(Math.max(0,v)),o),kind:"page"}}let l=Ut(e,f=>f.attrs.id===c);if(!l)return;let d=(m=kn.exec(l.tag))==null?void 0:m[1];if(d==="1")return{title:a,excerpt:je(re(o),o),kind:"page"};if(d){let f=l.parent??e,v=[...re(f)],w=v.slice(v.indexOf(l)+1).filter(b=>!Ln(l,b)),p=Ln(o,l)?o:i;return{title:a,label:Ve(Wt(l)),excerpt:je(w,p,b=>{let x=kn.exec(b.tag);return!!x&&Number(x[1])<=Number(d)}),kind:"heading"}}if(l.tag==="li"&&Zr(l)){let f=Qr(l);return f?{title:"",excerpt:Ke(f,Gr),kind:"footnote"}:void 0}let u=je(re(l),l),h=!u&&ea.has(l.tag)?Ke(Wt(l)):"";return{title:a,label:na(l),excerpt:u||h,kind:"target"}}var ra="dogsbay:link-preview-load",ae=[".db-link-preview{position:fixed;z-index:60;box-sizing:border-box;max-width:min(22rem,calc(100vw - 16px));max-height:min(16rem,calc(100vh - 16px));overflow:hidden;padding:.75rem .875rem;","border:1px solid var(--border,#e4e4e7);border-radius:var(--radius,.5rem);background:var(--popover,#fff);color:var(--popover-foreground,#18181b);","box-shadow:0 8px 24px rgb(0 0 0/.14);font-size:.875rem;line-height:1.45;text-align:start}",".db-link-preview[hidden]{display:none}",".db-link-preview-title{margin:0;font-weight:600}",".db-link-preview-label{font-weight:500}",".db-link-preview-excerpt{margin:.375rem 0 0;color:var(--muted-foreground,#52525b)}",".db-link-preview[data-kind=footnote] .db-link-preview-excerpt{margin:0;color:inherit}","@media (prefers-reduced-motion:no-preference){.db-link-preview:not([hidden]){animation:db-link-preview-in .12s ease-out}}","@keyframes db-link-preview-in{from{opacity:0;transform:translateY(2px)}}"].join(""),Se="db-link-preview",aa="nav:not(.related-resources), aside, header, footer, h1, h2, h3, h4, h5, h6, [data-no-link-preview], [data-card], db-card, db-link-button",ca="div, p, h1, h2, h3, h4, h5, h6, img, svg, picture, figure, ul, ol, table",la=/\\.(?:pdf|zip|gz|tgz|tar|bz2|xz|7z|rar|png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff?|mp[34]|m4a|webm|ogg|wav|mov|avi|json|xml|csv|tsv|txt|ya?ml|md|epub|docx?|xlsx?|pptx?|odt|ods|exe|msi|dmg|pkg|deb|rpm|apk|iso|bin|wasm|js|mjs|css|map|woff2?|ttf|otf)$/i,da=8e6,ce;async function $o(n,t=!1){let e=new URL(location.origin),[i="/",o=""]=n.split("?");if(e.pathname=i,e.search=o,e.origin!==location.origin)return;let s=await fetch(e.href,{credentials:"same-origin",redirect:"manual",headers:{Accept:"text/html"}});if(s.type==="opaqueredirect"||s.status>=300&&s.status<400)return!t&&!i.endsWith("/")?$o(`${i}/${o?`?${o}`:""}`,!0):void 0;if(!(!s.ok||!/html/i.test(s.headers.get("content-type")??"text/html")))return s.text()}function ua(n,t="article.docs-prose",e=location){if(!n.closest(t)||n.closest(aa)||n.hasAttribute("download")||n.getAttribute("aria-hidden")==="true"||n.hasAttribute("data-variant")||n.querySelector(ca))return;let i=n.getAttribute("href");if(!i)return;let o;try{o=new URL(i,e.href)}catch{return}let s=o.protocol==="http:"||o.protocol==="https:",r=o.protocol===e.protocol&&o.host!==""&&o.host===e.host;if(!(s?o.origin===e.origin:r)||la.test(o.pathname))return;let a;try{a=o.hash?decodeURIComponent(o.hash.slice(1)):void 0}catch{a=o.hash.slice(1)}if(!(o.pathname===e.pathname&&o.search===e.search&&(!a||a==="top")))return o.hash="",{url:o,...a?{id:a}:{}}}function ha(){var e;let n=document;if(n.dbLinkPreviewCss===ae||n.dbLinkPreviewCss===void 0&&((e=document.getElementById(`${Se}-style`))==null?void 0:e.textContent)===ae)return;try{let i=new CSSStyleSheet;i.replaceSync(ae),document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],n.dbLinkPreviewSheet=!0,n.dbLinkPreviewCss=ae;return}catch{}let t=document.createElement("style");t.id=`${Se}-style`,t.textContent=ae,document.head.append(t),n.dbLinkPreviewCss=ae}var fa=n=>!!n&&typeof n=="object"&&typeof n.title=="string";function qo(n={}){var at;ce==null||ce(),(at=document.dbLinkPreviewStop)==null||at.call(document);let t=n.content??"article.docs-prose",e=n.delay??500,i=location;if(n.base!==void 0)try{i=new URL(String(n.base))}catch{throw new TypeError(`initLinkPreviews: base must be an absolute URL, not ${String(n.base)}`)}let o=()=>i.href.split("#")[0];n.style!==!1&&ha();let s=new Map,r=new Map,a=0,c=new Map,l,d,u=0,h,m,f=null,v,w,p,b=document.createElement("div");b.id=Se,b.className="db-link-preview",b.setAttribute("role","tooltip"),b.hidden=!0;let x=document.createElement("p");x.className="db-link-preview-title";let E=document.createElement("p");E.className="db-link-preview-excerpt",b.append(x,E);let D=M=>{let P=M.href,$=s.get(P);return $?(s.delete(P),s.set(P,$)):($=(async()=>{if(n.load)return n.load(M);let U=!1,Z,V=new CustomEvent(ra,{cancelable:!0,detail:{url:P,respond(dt){U=!0,Z=dt}}});if(document.dispatchEvent(V),U||V.defaultPrevented)return Z;if(M.href===o())return document.documentElement.outerHTML;if(!(M.origin!==location.origin||location.origin==="null"))return $o(M.pathname+M.search)})().then(U=>{let Z=typeof U=="string"?U.length:0;r.set(P,Z),a+=Z;for(let[V]of s){if(a<=da||V===P)break;a-=r.get(V)??0,r.delete(V),s.delete(V);for(let dt of c.keys())dt.startsWith(V)&&c.delete(dt)}return U},()=>{s.delete(P)}),s.set(P,$)),$},S=()=>{clearTimeout(v),clearTimeout(w),l=void 0,d=void 0,h==null||h.disconnect(),h=void 0,m&&(f===null?m.removeAttribute("aria-describedby"):m.setAttribute("aria-describedby",f),m=void 0,b.hidden=!0)},A=M=>{let P=[...M.getClientRects()],$=(p&&P.find(pt=>p.y>=pt.top&&p.y<=pt.bottom))??P[0]??M.getBoundingClientRect(),U=b.offsetWidth,Z=b.offsetHeight,V=8,dt=$.bottom+V,kt=dt+Z<=window.innerHeight-V||$.top-V-Z<V?dt:$.top-V-Z,de=Math.max(V,Math.min($.left,window.innerWidth-U-V));b.style.top=`${Math.round(kt)}px`,b.style.left=`${Math.round(de)}px`},y=(M,P)=>{if(!(l!==M||!M.isConnected)){if(x.textContent="",x.append(P.title||P.label||""),P.label&&P.title){let $=document.createElement("span");$.className="db-link-preview-label",$.textContent=` \\u203A ${P.label}`,x.append($)}x.hidden=!x.textContent,E.textContent=P.excerpt,E.hidden=!P.excerpt,b.dataset.kind=P.kind,!(!x.textContent&&!P.excerpt)&&(b.isConnected||document.body.append(b),m!==M&&(f=M.getAttribute("aria-describedby"),M.setAttribute("aria-describedby",f?`${f} ${Se}`:Se),m=M),b.hidden=!1,A(M),h??(h=new MutationObserver(()=>{m&&!m.isConnected&&S()})),h.observe(document.body,{childList:!0,subtree:!0}))}},W=(M,P)=>{if(l===M)return;let $=ua(M,t,i);$&&(S(),l=M,d=P,v=setTimeout(async()=>{let U=await D($.url);if(l!==M)return;let Z=`${$.url.href}#${$.id??""}`,V=c.get(Z);V===void 0&&!c.has(Z)&&(V=fa(U)?U:typeof U=="string"?zo(U,$.id):void 0,typeof U=="string"&&c.set(Z,V)),V&&y(M,V)},e))},z=M=>M instanceof Element?M.closest("a[href]"):null,G=M=>{if(p={x:M.clientX,y:M.clientY},M.pointerType==="touch")return;if(b.contains(M.target)){clearTimeout(w);return}let P=z(M.target);P&&!(d==="focus"&&P===l)&&(clearTimeout(w),W(P,"pointer"))},C=M=>{if(M.pointerType==="touch"||!l||d!=="pointer")return;let P=M.relatedTarget;P&&(l.contains(P)||b.contains(P))||(clearTimeout(w),w=setTimeout(S,m?200:0))},ot=[[document,"pointerover",G],[document,"pointerout",C],[b,"pointerleave",(M=>C(M))],[document,"focusin",M=>{let P=z(M.target);if(!P)return;let $=!0;try{$=P.matches(":focus-visible")}catch{}$&&(p=void 0,u=performance.now(),W(P,"focus"))}],[document,"focusout",M=>{l&&(M.target===l||l.contains(M.target))&&S()}],[document,"keydown",M=>{M.key==="Escape"&&(l||m)&&S()}],[document,"pointerdown",M=>{b.contains(M.target)||S()},{capture:!0}],[document,"touchstart",()=>S(),{passive:!0,capture:!0}],[window,"scroll",()=>{if(d==="focus"&&l){m===l&&A(l);return}performance.now()-u<100||S()},{passive:!0,capture:!0}],[window,"resize",S,{passive:!0}],[window,"pagehide",S],[document,"astro:before-swap",S]];for(let[M,P,$,U]of ot)M.addEventListener(P,$,U);let it=()=>{S();for(let[M,P,$,U]of ot)M.removeEventListener(P,$,U);b.remove(),ce===it&&(ce=void 0),document.dbLinkPreviewStop===it&&(document.dbLinkPreviewStop=void 0)};return ce=it,document.dbLinkPreviewStop=it,it}function Ue(n){return!/^[\\x00-\\x20]*([a-z][a-z0-9+.-]*:|[\\\\/])/i.test(n.replace(/[\\t\\n\\r]/g,""))}var We=new Map,pa=15e3;function Rn(n){let t=We.get(n);if(!t){let e=new Promise((i,o)=>{let s=document.createElement("script");s.src=n;let r=setTimeout(()=>a(),pa),a=()=>{clearTimeout(r),s.onload=s.onerror=null,We.get(n)===e&&We.delete(n),o(new Error(`could not load ${n}`))};s.onload=()=>{clearTimeout(r),i()},s.onerror=a,document.head.appendChild(s)});We.set(n,t=e)}return t}function ma(n){document.querySelectorAll("[data-component=\'theme-toggle\']").forEach(t=>{let e=()=>t.setAttribute("aria-pressed",String(document.documentElement.classList.contains("dark")));e(),t.addEventListener("click",()=>{let i=!document.documentElement.classList.contains("dark");document.documentElement.classList.toggle("dark",i);try{localStorage.setItem("theme",i?"dark":"light")}catch{}e()},{signal:n})})}function ga(n){document.addEventListener("click",async t=>{var o,s,r,a;let e=t.target.closest("[data-copy-markdown]");if(!e)return;let i=(((o=document.getElementById("db-page-markdown"))==null?void 0:o.textContent)??"").replace(/<\\\\\\/(script)/gi,"</$1").replace(/<\\\\!--/g,"<!--");try{await navigator.clipboard.writeText(i);let c=(s=e.dataset).label??(s.label=e.textContent??"");e.textContent="Copied",clearTimeout(Number(e.dataset.timer)),e.dataset.timer=String(setTimeout(()=>e.textContent=c,1500))}catch{}(a=(r=e.closest("db-popover"))==null?void 0:r.close)==null||a.call(r,"close-press")},{signal:n})}function ba(n,t){let e=document.body.dataset.page??"index.html";document.querySelectorAll("select[data-db-switch]").forEach(i=>{i.addEventListener("change",async()=>{var a;let o=i.selectedOptions[0];if(!o||o.disabled||!o.hasAttribute("value"))return;let s=o.dataset.prefix??"",r=i.value;if(o.hasAttribute("data-link")){(Ue(r)||/^https?:\\/\\//i.test(r))&&(location.href=r);return}if(!(!Ue(r)||!Ue(s))){if(i.dataset.dbSwitch==="product"){location.href=r;return}try{let c=s?`${n}${s}/`:n;await Rn(`${c}_dogsbay/pages.js`);let l=(a=window.__DOGSBAY_PAGES__)==null?void 0:a[s];location.href=l&&!l.includes(e)?`${c}index.html`:r}catch{location.href=r}}},{signal:t})})}function va(n){document.addEventListener("click",t=>{var i;let e=t.target.closest("a.db-anchor");!e||location.protocol==="file:"||(i=navigator.clipboard)==null||i.writeText(e.href).catch(()=>{})},{signal:n})}var Ae=new Map,Xe=new Set;function Ye(){for(let[n,t]of Ae)n.isConnected||(Mt(n),t.abort(),Ae.delete(n));for(let n of Xe)n.isConnected||Mt(n)}function ya(n,t){let e=EventTarget.prototype,i=e.addEventListener,o=0;e.addEventListener=function(s,r,a){o++;let c=typeof a=="object"?a.signal:void 0;i.call(this,s,r,typeof a=="object"?{...a,signal:c?AbortSignal.any([c,n]):n}:{capture:a===!0,signal:n})};try{t()}finally{e.addEventListener=i}return o}function wa(){Ye(),document.querySelectorAll("[data-component=\'sidebar-provider\']").forEach(n=>{if(Ae.has(n)||Xe.has(n))return;let t=new AbortController;ya(t.signal,()=>pn(n))?Ae.set(n,t):n.querySelector("[data-component=\'sidebar\']")&&Xe.add(n)}),document.removeEventListener("keydown",Ye),document.addEventListener("keydown",Ye)}var le;function xa(n){if(n===!1||!document.querySelector("main[data-link-previews]"))return;let t=typeof n=="object"?n:{};if(!(location.protocol==="file:"&&t.base===void 0))try{return qo({delay:t.delay,base:t.base,load:t.load,content:"main[data-link-previews] article.docs-prose"})}catch(e){console.warn("dogsbay: link previews not started:",e);return}}function Dn(n={}){var c;le==null||le.unmount();let t=new AbortController,{signal:e}=t,i=document.body,o=i.dataset.unitRoot??"",s=i.dataset.siteRoot??"";if(n.nav!==void 0){window.__DOGSBAY_NAV__=n.nav;for(let l of document.querySelectorAll("db-nav-tree")){let d=l.querySelector(":scope > [data-part=\'list\']");d&&!d.querySelector("[data-part=\'item\']")&&((c=l.parentNode)==null||c.insertBefore(l,l.nextSibling))}}wa(),n.theme!==!1&&ma(e),ga(e),n.switchers!==!1&&ba(s,e),va(e),n.search!==!1&&(To({unitRoot:o,siteRoot:s,prefix:i.dataset.prefix??"",loadScript:Rn,signal:e}),Oo({unitRoot:o,siteRoot:s,prefix:i.dataset.prefix??"",loadScript:Rn,signal:e})),Mo(e),Po(e);let r=xa(n.linkPreviews);r&&e.addEventListener("abort",r,{once:!0});let a={unmount(){if(!e.aborted){t.abort();for(let l of[...Ae.keys(),...Xe])Mt(l);Ye(),le===a&&(le=void 0)}}};return le=a}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Dn()):Dn();})();\n';
|
|
4163
|
-
var CLIENT_FILE = "dogsbay-
|
|
4164
|
-
var SSG_VERSION = "0.2.0-beta.
|
|
4165
|
-
var THEME_TEMPLATES = { "layouts/blank.html": '{# A page without the sidebar or table of contents: landing pages, splash pages, 404. -#}\n<!doctype html>\n<html lang="{{ page.lang }}" dir="{{ page.dir }}"{% if site.colorMode == "dark" %} class="dark"{% endif %}{% if has.crowdedHeader %} data-header="crowded"{% endif %}>\n<head>\n{% include "partials/head.html" %}\n</head>\n<body class="bg-background text-foreground antialiased" data-unit-root="{{ paths.unit }}" data-site-root="{{ paths.site }}" data-prefix="{{ page.prefix }}" data-page="{{ page.out }}"{{ bodyAttrs }}>\n{{ skipLink }}\n<div class="relative flex min-h-svh w-full flex-col bg-background">\n{{ announcementBar }}\n{% include "partials/header.html" %}\n<main id="db-content" class="min-w-0 flex-1 px-6 py-8 outline-none lg:px-12" tabindex="-1"{% if linkPreviews %} data-link-previews{% endif %}>\n<div class="mx-auto {{ widthClass }}">\n{{ banner }}{{ versionBadge }}{{ h1 }}{{ byline }}{{ lede }}{{ hero }}{{ metaStrip }}{{ tocTop }}\n<article class="docs-prose">\n{{ content }}\n</article>\n{% include "partials/footer.html" %}\n</div>\n</main>\n</div>\n{{ searchDialog }}\n{{ scripts }}\n</body>\n</html>\n', "layouts/docs.html": '{# The docs layout: a port of @dogsbay/docs-layout DocsLayout.astro. -#}\n<!doctype html>\n<html lang="{{ page.lang }}" dir="{{ page.dir }}"{% if site.colorMode == "dark" %} class="dark"{% endif %}{% if has.crowdedHeader %} data-header="crowded"{% endif %}>\n<head>\n{% include "partials/head.html" %}\n</head>\n<body class="bg-background text-foreground antialiased" data-unit-root="{{ paths.unit }}" data-site-root="{{ paths.site }}" data-prefix="{{ page.prefix }}" data-page="{{ page.out }}"{{ bodyAttrs }}>\n{{ skipLink }}\n<div class="group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar" data-component="sidebar-provider" style="--sidebar-width: 16rem; --sidebar-width-icon: 3rem;">\n{{ sidebar }}\n<div class="relative flex w-full min-w-0 flex-1 flex-col bg-background">\n{{ announcementBar }}\n{% include "partials/header.html" %}\n<div class="flex min-w-0">\n<main id="db-content" class="min-w-0 flex-1 px-6 py-8 outline-none lg:px-12" tabindex="-1"{% if linkPreviews %} data-link-previews{% endif %}>\n<div class="mx-auto {{ widthClass }}">\n{{ banner }}{{ breadcrumb }}{{ pageActionsInline }}{{ versionBadge }}{{ h1 }}{{ byline }}{{ lede }}{{ hero }}{{ metaStrip }}{{ tocTop }}\n<article class="docs-prose">\n{{ content }}\n</article>\n{% include "partials/footer.html" %}\n</div>\n</main>\n{{ tocRail }}\n</div>\n</div>\n</div>\n{{ searchDialog }}\n{{ scripts }}\n</body>\n</html>\n', "partials/announcement.html": `{#- The site's announcement bar (site.announcement), as DocsLayout's AnnouncementBar.astro: a band above the
|
|
4178
|
+
var CLIENT_JS = '/*! dogsbay-ssg site client (Apache-2.0). Third-party notices: THIRD-PARTY-NOTICES.txt */\n"use strict";(()=>{var ss=Object.defineProperty;var rs=(n,t,e)=>t in n?ss(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var g=(n,t,e)=>rs(n,typeof t!="symbol"?t+"":t,e);var tt=class extends HTMLElement{constructor(){super(...arguments);g(this,"_initialized",!1);g(this,"_deferred",!1)}connectedCallback(){if(!this._initialized&&!this.firstElementChild&&typeof document<"u"&&document.readyState==="loading"){this._deferred||(this._deferred=!0,document.addEventListener("DOMContentLoaded",()=>{this._deferred=!1,this.isConnected&&this.connectedCallback()},{once:!0}));return}this._initialized||(this.setup(),this._initialized=!0),this.connect()}disconnectedCallback(){this.disconnect()}setup(){}connect(){}disconnect(){}},as={"db-tabs":"block","db-choice-select":"flex","db-accordion":"block","db-collapsible":"block","db-details-sheet":"block","db-card":"block","db-steps":"block","db-code-block":"block","db-link-button":"inline-block","db-dialog":"contents","db-popover":"inline-block","db-tooltip":"inline-block","db-select":"inline-block","db-combobox":"block","db-nav-tree":"block","db-toc":"block","db-announcement":"block"},jn="dogsbay-elements-display";function et(){if(typeof document>"u"||document.getElementById(jn))return;let n=Object.entries(as).map(([e,i])=>`:where(${e}){display:${i}}`).join(""),t=document.createElement("style");t.id=jn,t.textContent=n,document.head.prepend(t)}function cs(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}function Xt(n,t,e){let i=t;do i+=e?-1:1;while(i>=0&&i<n.length&&cs(n[i]));return i}var fe=class{constructor(n,t,e={}){g(this,"container");g(this,"itemSelector");g(this,"opts");g(this,"keydownHandler",null);g(this,"active",!1);this.container=n,this.itemSelector=t,this.opts={orientation:e.orientation??"horizontal",loop:e.loop??!0,homeEnd:e.homeEnd??!0,onHighlightedIndexChange:e.onHighlightedIndexChange??(()=>{})}}getItems(){return Array.from(this.container.querySelectorAll(this.itemSelector))}isForwardKey(n,t){let{orientation:e}=this.opts;return(e==="horizontal"||e==="both")&&n===(t?"ArrowLeft":"ArrowRight")||(e==="vertical"||e==="both")&&n==="ArrowDown"}isBackwardKey(n,t){let{orientation:e}=this.opts;return(e==="horizontal"||e==="both")&&n===(t?"ArrowRight":"ArrowLeft")||(e==="vertical"||e==="both")&&n==="ArrowUp"}activate(){this.active||(this.active=!0,this.keydownHandler=n=>{let t=this.getItems();if(t.length===0||n.ctrlKey||n.altKey||n.metaKey)return;let e=getComputedStyle(this.container).direction==="rtl",i=t.indexOf(document.activeElement);if(i===-1)return;let o=null;this.isForwardKey(n.key,e)?(o=Xt(t,i,!1),o>=t.length&&(o=this.opts.loop?Xt(t,-1,!1):i)):this.isBackwardKey(n.key,e)?(o=Xt(t,i,!0),o<0&&(o=this.opts.loop?Xt(t,t.length,!0):i)):this.opts.homeEnd&&n.key==="Home"?o=Xt(t,-1,!1):this.opts.homeEnd&&n.key==="End"&&(o=Xt(t,t.length,!0)),o!==null&&(o<0||o>=t.length||o!==i&&(n.preventDefault(),t[i].setAttribute("tabindex","-1"),t[o].setAttribute("tabindex","0"),t[o].focus(),this.opts.onHighlightedIndexChange(o)))},this.container.addEventListener("keydown",this.keydownHandler))}deactivate(){this.active&&(this.active=!1,this.keydownHandler&&(this.container.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null))}setActiveIndex(n,t){n.forEach((e,i)=>{e.setAttribute("tabindex",i===t?"0":"-1")})}isActive(){return this.active}};var Vn="db-choice-change",ls="db-choice-request",on=n=>n&&/^[a-z][a-z0-9-]*$/.test(n)&&typeof document<"u"?document.documentElement.getAttribute(`data-choice-${n}`):null,ds=0;function Un(n){return`${n}-${++ds}`}var Wn=class extends tt{constructor(){super(...arguments);g(this,"list");g(this,"triggers",[]);g(this,"panels",[]);g(this,"nav",null);g(this,"value","");g(this,"syncKey",null);g(this,"orientation","horizontal");g(this,"handleClick",t=>{let e=t.target.closest("[data-part=\'trigger\']");if(!e||e.hasAttribute("disabled"))return;let i=e.dataset.value;i&&this.select(i,!0)});g(this,"handleStorage",t=>{if(!this.syncKey||t.key!==`db-tabs-sync:${this.syncKey}`)return;let e=t.newValue;e&&this.value!==e&&this.has(e)&&this.select(e)});g(this,"handleSyncEvent",(t=>{let e=t.detail.value;e&&this.value!==e&&this.has(e)&&this.select(e)}));g(this,"handleHashChange",()=>{let t=this.valueForHash();t&&(this.select(t.value),t.target&&this.reveal(t.target))});g(this,"handleChoice",(t=>{var e;this.syncKey&&((e=t.detail)==null?void 0:e.name)===this.syncKey&&this.value!==t.detail.value&&this.has(t.detail.value)&&this.select(t.detail.value)}))}has(t){return this.triggers.some(e=>e.dataset.value===t)}own(t){return Array.from(this.querySelectorAll(t)).filter(e=>e.closest("db-tabs")===this)}setup(){var r;let t=this.own("[data-part=\'list\']")[0]??null;if(!t)return;this.list=t,this.triggers=this.own("[data-part=\'trigger\']"),this.panels=this.own("[data-part=\'content\']"),this.orientation=this.getAttribute("orientation")||"horizontal",this.syncKey=this.getAttribute("sync-key")||null,t.setAttribute("role","tablist"),t.setAttribute("aria-orientation",this.orientation),this.triggers.forEach(a=>{let l=a.dataset.value;a.setAttribute("role","tab");let c=a.id||Un("db-tab");a.id=c;let d=this.panels.find(u=>u.dataset.value===l);if(d){d.setAttribute("role","tabpanel");let u=d.id||Un("db-tabpanel");d.id=u,a.setAttribute("aria-controls",u),d.setAttribute("aria-labelledby",c)}}),this.nav=new fe(t,"[data-part=\'trigger\']",{orientation:this.orientation,loop:!0,homeEnd:!0,onHighlightedIndexChange:()=>{var c;let a=document.activeElement,l=(c=a==null?void 0:a.dataset)==null?void 0:c.value;l&&this.select(l,!0)}}),this.nav.activate();let i=this.getAttribute("default-value")||((r=this.triggers[0])==null?void 0:r.dataset.value)||"",o=on(this.syncKey);if(o!==null&&this.has(o))i=o;else if(this.syncKey&&o===null){let a=localStorage.getItem(`db-tabs-sync:${this.syncKey}`);a&&this.triggers.some(l=>l.dataset.value===a)&&(i=a)}let s=this.valueForHash();s&&(i=s.value),this.select(i),s!=null&&s.target&&this.reveal(s.target)}valueForHash(){let t=window.location.hash.slice(1);if(!t)return;try{t=decodeURIComponent(t)}catch{}if(this.triggers.some(o=>o.dataset.value===t))return{value:t};let e=document.getElementById(t);if(!e)return;let i=this.panels.find(o=>o===e||o.contains(e));return i!=null&&i.dataset.value?{value:i.dataset.value,target:e}:void 0}reveal(t){requestAnimationFrame(()=>{var e;return(e=t.scrollIntoView)==null?void 0:e.call(t)})}connect(){var t;(t=this.list)==null||t.addEventListener("click",this.handleClick),document.addEventListener(Vn,this.handleChoice),window.addEventListener("hashchange",this.handleHashChange),this.syncKey&&(window.addEventListener("storage",this.handleStorage),document.addEventListener(`db-tabs-sync:${this.syncKey}`,this.handleSyncEvent))}disconnect(){var t;(t=this.list)==null||t.removeEventListener("click",this.handleClick),document.removeEventListener(Vn,this.handleChoice),window.removeEventListener("hashchange",this.handleHashChange),this.syncKey&&(window.removeEventListener("storage",this.handleStorage),document.removeEventListener(`db-tabs-sync:${this.syncKey}`,this.handleSyncEvent))}select(t,e=!1){this.value!==t&&(this.value=t,this.triggers.forEach(i=>{let o=i.dataset.value===t;i.setAttribute("aria-selected",String(o)),i.setAttribute("tabindex",o?"0":"-1"),o?i.setAttribute("data-state","active"):i.removeAttribute("data-state")}),this.panels.forEach(i=>{let o=i.dataset.value===t;i.hidden=!o,o?(i.setAttribute("data-state","active"),i.hasAttribute("tabindex")||i.setAttribute("tabindex","0")):i.removeAttribute("data-state")}),this.syncKey&&on(this.syncKey)!==null?e&&on(this.syncKey)!==t&&document.dispatchEvent(new CustomEvent(ls,{detail:{name:this.syncKey,value:t}})):this.syncKey&&(localStorage.setItem(`db-tabs-sync:${this.syncKey}`,t),document.dispatchEvent(new CustomEvent(`db-tabs-sync:${this.syncKey}`,{detail:{value:t,source:this}}))),this.dispatchEvent(new CustomEvent("db-tabs:change",{detail:{value:t},bubbles:!0})))}};et();customElements.get("db-tabs")||customElements.define("db-tabs",Wn);var us=0;function hs(n){return`${n}-${++us}`}var Yn=class{constructor(n,t,e={}){g(this,"trigger");g(this,"content");g(this,"_open",!1);g(this,"opts");this.trigger=n,this.content=t,this.opts=e;let i=hs("base-collapsible");n.id||(n.id=`${i}-trigger`),t.id||(t.id=`${i}-content`),n.setAttribute("aria-controls",t.id),t.setAttribute("aria-labelledby",n.id),t.setAttribute("role","region"),n.setAttribute("aria-expanded","false"),n.addEventListener("click",()=>{n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||this.toggle()})}get isOpen(){return this._open}toggle(){this._open?this.collapse():this.expand()}expand(){var n,t;this._open||(this._open=!0,this.trigger.setAttribute("aria-expanded","true"),this.content.hidden=!1,this.content.setAttribute("data-state","open"),(t=(n=this.opts).onToggle)==null||t.call(n,!0))}collapse(){var n,t;this._open&&(this._open=!1,this.trigger.setAttribute("aria-expanded","false"),this.content.hidden=!0,this.content.removeAttribute("data-state"),(t=(n=this.opts).onToggle)==null||t.call(n,!1))}};var Xn=class extends tt{constructor(){super(...arguments);g(this,"items",[]);g(this,"nav",null);g(this,"openValues",new Set);g(this,"type","single")}setup(){this.type=this.getAttribute("type")||"single";let t=this.getAttribute("default-value")||"",e=t?t.split(","):[],i=Array.from(this.querySelectorAll("[data-part=\'item\']"));this.items=i.map(o=>{let s=o.querySelector("[data-part=\'trigger\']"),r=o.querySelector("[data-part=\'content\']");if(!s||!r)return null;let a=o.dataset.value||"",l=o.hasAttribute("data-disabled");l&&(s.setAttribute("disabled",""),s.setAttribute("aria-disabled","true"));let c=new Yn(s,r,{onToggle:d=>{d?this.onItemExpanded(a):this.onItemCollapsed(a)}});return{el:o,value:a,collapsible:c,disabled:l}}).filter(Boolean),this.nav=new fe(this,"[data-part=\'trigger\']",{orientation:"vertical",loop:!0,homeEnd:!0}),this.nav.activate(),this.items.forEach((o,s)=>{o.collapsible.trigger.setAttribute("tabindex",s===0?"0":"-1")}),e.forEach(o=>{let s=this.items.find(r=>r.value===o&&!r.disabled);s&&s.collapsible.expand()})}onItemExpanded(t){if(this.type==="single"){for(let i of this.openValues)if(i!==t){let o=this.items.find(s=>s.value===i);o&&o.collapsible.collapse()}}this.openValues.add(t);let e=this.items.find(i=>i.value===t);e&&e.el.setAttribute("data-state","open"),this.dispatchEvent(new CustomEvent("db-accordion:change",{detail:{value:t,open:!0,openValues:[...this.openValues]},bubbles:!0}))}onItemCollapsed(t){this.openValues.delete(t);let e=this.items.find(i=>i.value===t);e&&e.el.removeAttribute("data-state"),this.dispatchEvent(new CustomEvent("db-accordion:change",{detail:{value:t,open:!1,openValues:[...this.openValues]},bubbles:!0}))}};et();customElements.get("db-accordion")||customElements.define("db-accordion",Xn);var fs=0;function st(n){return`${n}-${++fs}`}function xt(n,t){let e=n.localName;return Array.from(n.querySelectorAll(t)).filter(i=>i.closest(e)===n)}function rt(n,t){return xt(n,t)[0]??null}function Gt(n){if(!n||!n.hasAttribute("data-as-child"))return n;let t=n.firstElementChild;if(!t)return n;let e=n.getAttribute("data-part");return e&&t.setAttribute("data-part",e),t}function ft(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||n.getAttribute("data-disabled")==="true"}function Gn(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype.showPopover=="function"}function Qt(n){if(n.hidden=!1,!Gn())return"inline";n.hasAttribute("popover")||n.setAttribute("popover","manual"),n.style.inset="auto",n.style.margin="0";try{n.matches(":popover-open")||n.showPopover()}catch{return"inline"}return"top-layer"}function Zt(n){if(Gn())try{n.matches(":popover-open")&&n.hidePopover()}catch{}n.hidden=!0}var ps=\'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]\';function Qn(n){return Array.from(n.querySelectorAll(ps)).filter(t=>!t.closest("[hidden]")&&!ft(t))}function Zn(n,t){let e=typeof n.getAnimations=="function"?n.getAnimations():[];if(!e.length)return t();Promise.all(e.map(i=>i.finished)).then(t,t)}function Jt(n){try{return decodeURIComponent(n)}catch{return n}}var ti=class extends tt{constructor(){super(...arguments);g(this,"details",null);g(this,"summary",null);g(this,"dialog",null);g(this,"body",null);g(this,"source",null);g(this,"moved",[]);g(this,"handledHash",null);g(this,"onSummaryClick",t=>{var i,o;let e=t.target;e&&e!==this.summary&&((o=(i=e.closest)==null?void 0:i.call(e,"a[href], button, input, select, textarea, label"))==null?void 0:o.closest("summary"))===this.summary||(t.preventDefault(),this.show())});g(this,"onDialogClick",t=>{let e=this.dialog;if(!e||t.target!==e)return;let i=e.getBoundingClientRect();!(t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom)&&(t.clientX!==0||t.clientY!==0)&&e.close()});g(this,"onDialogClose",()=>this.restore());g(this,"onDocClick",t=>{var s,r;if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let e=(r=(s=t.target)==null?void 0:s.closest)==null?void 0:r.call(s,"a[href]");if(!e||!this.details||this.open||e.hasAttribute("download")||e.target&&e.target!=="_self")return;let i=new URL(e.href,location.href);if(!i.hash||i.hash!==location.hash||i.pathname!==location.pathname||i.search!==location.search)return;let o=document.getElementById(Jt(i.hash.slice(1)));if(!(!o||!this.details.contains(o))){for(let a of this.details.querySelectorAll("db-details-sheet"))a.handledHash=null;this.show(o)}});g(this,"onHash",()=>{this.handledHash=null,this.openForHash()})}get open(){var t;return!!((t=this.dialog)!=null&&t.open)}setup(){var d;let t=Array.from(this.children).find(u=>u.tagName==="DETAILS")??null,e=t?Array.from(t.children).find(u=>u.tagName==="SUMMARY")??null:null,i=typeof HTMLDialogElement<"u"&&typeof HTMLDialogElement.prototype.showModal=="function";if(!t||!e||!i)return;for(let u of Array.from(t.children))u.getAttribute("role")==="status"&&u.setAttribute("aria-live","off");this.details=t,this.summary=e,t.open=!1,ms();let o=(((d=e.querySelector("[data-part=\'title\']"))==null?void 0:d.textContent)??e.textContent??"").trim(),s=document.createElement("dialog");s.className="db-sheet",s.id=st("db-sheet");let r=document.createElement("h2");r.className="db-sheet-title",r.id=st("db-sheet-title"),r.textContent=o,s.setAttribute("aria-labelledby",r.id);let a=document.createElement("button");a.type="button",a.className="db-sheet-close",a.setAttribute("aria-label",this.getAttribute("close-label")||"Close"),a.innerHTML=\'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>\',a.addEventListener("click",()=>s.close());let l=document.createElement("div");l.className="db-sheet-header",l.append(r,a);let c=document.createElement("div");c.className="db-sheet-body",s.append(l,c),this.append(s),this.dialog=s,this.body=c,e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-controls",s.id),e.setAttribute("aria-expanded","false"),this.setAttribute("data-state","closed")}connect(){this.dialog&&(this.summary.addEventListener("click",this.onSummaryClick),this.dialog.addEventListener("click",this.onDialogClick),this.dialog.addEventListener("close",this.onDialogClose),window.addEventListener("hashchange",this.onHash),document.addEventListener("click",this.onDocClick),queueMicrotask(()=>this.isConnected&&this.openForHash()))}disconnect(){this.dialog&&(this.dialog.open&&this.dialog.close(),this.restore(!1),this.summary.removeEventListener("click",this.onSummaryClick),this.dialog.removeEventListener("click",this.onDialogClick),this.dialog.removeEventListener("close",this.onDialogClose),window.removeEventListener("hashchange",this.onHash),document.removeEventListener("click",this.onDocClick))}show(t){var l;let{dialog:e,details:i,body:o}=this;if(!e||!i||!o||e.open)return;let s=Array.from(i.childNodes).filter(c=>c!==this.summary),r=s.filter(c=>c.nodeType===Node.ELEMENT_NODE),a=r.length===1&&s.every(c=>{var d;return c===r[0]||!((d=c.textContent)!=null&&d.trim())})?r[0]:null;this.source=a??i,this.moved=a?Array.from(a.childNodes):s,o.append(...this.moved),e.showModal(),this.summary.setAttribute("aria-expanded","true"),this.setAttribute("data-state","open"),t&&t!==i&&((l=t.scrollIntoView)==null||l.call(t,{block:"start"})),this.dispatchEvent(new CustomEvent("db-details-sheet:open",{bubbles:!0}))}close(){var t;(t=this.dialog)==null||t.close()}restore(t=!0){var e,i;this.source&&(this.source.append(...this.moved),this.source=null,this.moved=[],this.summary.setAttribute("aria-expanded","false"),this.setAttribute("data-state","closed"),t&&this.isConnected&&((i=(e=this.summary).checkVisibility)==null?void 0:i.call(e))!==!1&&this.summary.focus(),this.dispatchEvent(new CustomEvent("db-details-sheet:close",{bubbles:!0})))}openForHash(){let t=Jt(location.hash.slice(1));if(!t||!this.details||this.handledHash===location.hash||(this.handledHash=location.hash,this.open))return;let e=document.getElementById(t);e&&this.details.contains(e)&&this.show(e)}},Jn="dogsbay-details-sheet";function ms(){if(document.getElementById(Jn))return;let n=document.createElement("style");n.id=Jn,n.textContent=["dialog.db-sheet{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:none;width:min(32rem,100vw);max-width:100vw;padding:0;border:0;border-left:1px solid var(--border);background:var(--background);color:var(--foreground);box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);flex-direction:column}","dialog.db-sheet[open]{display:flex}","dialog.db-sheet::backdrop{background:rgb(0 0 0/.6)}",".db-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border)}","dialog.db-sheet h2.db-sheet-title{margin:0;padding:0;border:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;scroll-margin:0}",".db-sheet-close{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:0;border-radius:.375rem;background:transparent;color:var(--muted-foreground);cursor:pointer}",".db-sheet-close:hover{background:var(--accent,var(--muted));color:var(--foreground)}",".db-sheet-close:focus-visible{outline:2px solid var(--ring);outline-offset:2px}",".db-sheet-body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;line-height:1.625}","dialog.db-sheet .db-sheet-body>:first-child{margin-top:0}","html:has(dialog.db-sheet[open]){overflow:hidden}","db-details-sheet>details>summary>span:last-child{transform:rotate(-90deg)}","@media (prefers-reduced-motion:no-preference){dialog.db-sheet[open]{animation:db-sheet-in .2s ease-out}dialog.db-sheet[open]::backdrop{animation:db-sheet-fade .2s ease-out}}","@keyframes db-sheet-in{from{transform:translateX(100%)}}","@keyframes db-sheet-fade{from{opacity:0}}"].join(""),document.head.append(n)}et();customElements.get("db-details-sheet")||customElements.define("db-details-sheet",ti);var ei=class extends tt{constructor(){super(...arguments);g(this,"copyBtn",null);g(this,"copyIcon",null);g(this,"checkIcon",null);g(this,"liveRegion",null);g(this,"resetTimeout",null);g(this,"handleCopy",async()=>{let t=this.getCopyText();if(t)try{await navigator.clipboard.writeText(t),this.showCopiedFeedback(),this.dispatchEvent(new CustomEvent("db-code-block:copied",{detail:{text:t},bubbles:!0}))}catch{}})}setup(){this.copyBtn=this.querySelector("[data-part=\'copy\']"),this.copyIcon=this.querySelector("[data-part=\'copy-icon\']"),this.checkIcon=this.querySelector("[data-part=\'check-icon\']"),this.copyBtn&&!this.copyBtn.hasAttribute("aria-label")&&this.copyBtn.setAttribute("aria-label","Copy code"),this.liveRegion=document.createElement("span"),this.liveRegion.setAttribute("aria-live","polite"),this.liveRegion.setAttribute("role","status"),this.liveRegion.className="sr-only",this.liveRegion.style.position="absolute",this.liveRegion.style.width="1px",this.liveRegion.style.height="1px",this.liveRegion.style.overflow="hidden",this.liveRegion.style.clip="rect(0, 0, 0, 0)",this.liveRegion.style.whiteSpace="nowrap",this.appendChild(this.liveRegion)}connect(){var t;(t=this.copyBtn)==null||t.addEventListener("click",this.handleCopy)}disconnect(){var t;(t=this.copyBtn)==null||t.removeEventListener("click",this.handleCopy),this.clearResetTimeout()}getCopyText(){let t=this.getAttribute("data-copy-text");if(t)return t;let e=this.querySelector("[data-part=\'code\'] code");if(e)return e.textContent??"";let i=this.querySelector("[data-part=\'code\']");return(i==null?void 0:i.textContent)??""}showCopiedFeedback(){this.clearResetTimeout(),this.copyIcon&&(this.copyIcon.hidden=!0),this.checkIcon&&(this.checkIcon.hidden=!1),this.setAttribute("data-state","copied"),this.liveRegion&&(this.liveRegion.textContent="Copied!"),this.resetTimeout=setTimeout(()=>{this.copyIcon&&(this.copyIcon.hidden=!1),this.checkIcon&&(this.checkIcon.hidden=!0),this.removeAttribute("data-state"),this.liveRegion&&(this.liveRegion.textContent=""),this.resetTimeout=null},2e3)}clearResetTimeout(){this.resetTimeout!==null&&(clearTimeout(this.resetTimeout),this.resetTimeout=null)}};et();customElements.get("db-code-block")||customElements.define("db-code-block",ei);var ni=class extends tt{constructor(){super(...arguments);g(this,"navData",null);g(this,"onClick",t=>{let e=t.target.closest("[data-part=\'toggle\']");if(!e||e.closest("db-nav-tree")!==this)return;let i=e.closest("[data-part=\'item\']");i&&(this.ensurePrepared(i),this.toggle(i))});g(this,"onKey",t=>{var c,d;if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let e=document.activeElement;if(!e||!this.contains(e))return;let i=this.visibleRows(),o=e.closest("[data-part=\'row\']"),s=o?i.indexOf(o):-1;if(s<0)return;let r=o.closest("[data-part=\'item\']");this.ensurePrepared(r);let a=!!this.groupOf(r),l=u=>{var h;u&&(t.preventDefault(),(h=this.primary(u))==null||h.focus())};switch(t.key){case"ArrowDown":return l(i[s+1]);case"ArrowUp":return l(i[s-1]);case"Home":return l(i[0]);case"End":return l(i[i.length-1]);case"ArrowRight":if(!a)return;t.preventDefault(),this.isOpen(r)?l(this.visibleRows()[s+1]):this.setOpen(r,!0);return;case"ArrowLeft":{if(t.preventDefault(),a&&this.isOpen(r))return this.setOpen(r,!1);let u=(c=r.parentElement)==null?void 0:c.closest("[data-part=\'item\']");if(u&&this.contains(u)){let h=u.querySelector(":scope > [data-part=\'row\']");h&&((d=this.primary(h))==null||d.focus())}return}}})}setup(){for(let t of xt(this,"[data-part=\'item\']"))t.style.getPropertyValue("--db-level")||t.style.setProperty("--db-level",String(this.depthOf(t))),this.prepareItem(t)}depthOf(t){var i,o;let e=0;for(let s=(i=t.parentElement)==null?void 0:i.closest("[data-part=\'item\']");s&&this.contains(s);s=(o=s.parentElement)==null?void 0:o.closest("[data-part=\'item\']"))e++;return e}pathOf(t){var i,o;let e=[];for(let s=t;s&&this.contains(s);s=((i=s.parentElement)==null?void 0:i.closest("[data-part=\'item\']"))??null){let r=Array.from(((o=s.parentElement)==null?void 0:o.children)??[]).filter(a=>a.getAttribute("data-part")==="item");e.unshift(r.indexOf(s))}return e.join(".")}connect(){this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKey);for(let t of xt(this,"[data-part=\'group\'][data-lazy]")){let e=t.closest("[data-part=\'item\']");e&&this.isOpen(e)&&this.fill(t)}!this.fillEmpty()&&this.emptyList()&&document.readyState!=="complete"&&addEventListener("load",()=>this.isConnected&&this.fillEmpty()&&this.afterFill(),{once:!0}),this.afterFill()}afterFill(){this.hasAttribute("scroll-current")&&requestAnimationFrame(()=>this.revealCurrent())}emptyList(){let t=xt(this,"[data-part=\'list\']")[0];return t&&!t.querySelector("[data-part=\'item\']")?t:null}fillEmpty(){let t=this.emptyList(),e=this.data();if(!t||!e)return!1;t.replaceChildren(...this.build(e,""));let i=t,o=this.serverPath();for(let s of o!=null?o.split(".").map(Number):this.currentPath(e)){let r=Array.from(i.children).filter(l=>l.getAttribute("data-part")==="item")[s],a=r&&this.groupOf(r);if(!r||!a)break;a.hasAttribute("data-lazy")&&this.fill(a),this.apply(r,!0),i=a}return!0}serverPath(){var s;let t=(s=this.getAttribute("current-path"))==null?void 0:s.trim(),e=this.data();if(!t||!e||!/^\\d+(?:\\.\\d+)*$/.test(t))return null;let i=t.split(".").map(Number),o=e;for(let r of i){let a=o==null?void 0:o[r];if(!a)return null;o=a[2]}return i.join(".")}currentPath(t){let e=location.href.split("#")[0],i=o=>{for(let s=0;s<o.length;s++){let[,r,a,l]=o[s],c=r!=null&&!l?this.linkOf(r):null;if(c&&new URL(c.href,document.baseURI).href.split("#")[0]===e)return[s];let d=a!=null&&a.length?i(a):null;if(d)return[s,...d]}return null};return i(t)??[]}linkOf(t){let e=t.replace(/[\\u0000-\\u0020]/g,"");if(/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^(?:https?|mailto):/i.test(e))return null;let i=/^[a-z][a-z0-9+.-]*:|^\\/\\//i.test(e);return{href:i?t:(this.getAttribute("base")??"")+t,external:i}}disconnect(){this.removeEventListener("click",this.onClick),this.removeEventListener("keydown",this.onKey)}prepareItem(t){let e=t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'toggle\']");if(!e)return;let i=this.groupOf(t);i||(i=document.createElement("ul"),i.setAttribute("data-part","group"),i.dataset.lazy="",i.dataset.path=this.pathOf(t),i.hidden=!0,t.appendChild(i));let o=t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'link\']");o&&!e.hasAttribute("aria-label")&&!e.querySelector("[data-part=\'label\']")&&e.setAttribute("aria-label",(this.getAttribute("toggle-label")??"Toggle {label}").replace("{label}",()=>(o.getAttribute("aria-label")??o.textContent??"").trim())),this.getAttribute("chevron")!=="css"&&!e.querySelector("[data-part=\'chevron\']")&&e.insertAdjacentHTML("beforeend",gs),i.id||(i.id=st("db-nav-group")),e.setAttribute("aria-controls",i.id),e instanceof HTMLButtonElement&&!e.hasAttribute("type")&&(e.type="button");let s=e.getAttribute("aria-expanded")==="true"||t.getAttribute("data-state")==="open";this.apply(t,s)}ensurePrepared(t){let e=this.toggleOf(t);e&&!e.hasAttribute("aria-controls")&&this.prepareItem(t)}groupOf(t){return t.querySelector(":scope > [data-part=\'group\']")}toggleOf(t){return t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'toggle\']")}primary(t){return t.querySelector(":scope > [data-part=\'link\']")??t.querySelector(":scope > [data-part=\'toggle\']")}visibleRows(){return xt(this,"[data-part=\'row\']").filter(t=>!t.closest("[hidden]"))}isOpen(t){return t.getAttribute("data-state")==="open"}toggle(t){this.setOpen(t,!this.isOpen(t))}setOpen(t,e){let i=this.groupOf(t);!i||this.isOpen(t)===e||(e&&i.hasAttribute("data-lazy")&&this.fill(i),this.apply(t,e),this.dispatchEvent(new CustomEvent("db-nav-tree:toggle",{detail:{item:t,open:e},bubbles:!0})))}apply(t,e){let i=this.groupOf(t),o=this.toggleOf(t);i&&(i.hidden=!e),o==null||o.setAttribute("aria-expanded",String(e)),t.setAttribute("data-state",e?"open":"closed")}revealCurrent(){var s;let t=this.querySelector("[aria-current=\'page\']");if(!t)return;for(let r=t.closest("[data-part=\'item\']");r&&this.contains(r);r=((s=r.parentElement)==null?void 0:s.closest("[data-part=\'item\']"))??null)this.groupOf(r)&&!this.groupOf(r).contains(t)||this.groupOf(r)&&this.setOpen(r,!0);let e=bs(this);if(!e)return;let i=t.getBoundingClientRect(),o=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&(e.scrollTop+=i.top-o.top-o.height/2+i.height/2)}data(){if(this.navData)return this.navData;let t=this.getAttribute("data-source"),e=t?globalThis[t]:void 0;return Array.isArray(e)?e:null}fill(t){let e=this.data(),i=t.dataset.path;if(!e||i==null)return;let o=e,s;for(let r of i.split(".").map(Number))s=o==null?void 0:o[r],o=s==null?void 0:s[2];s!=null&&s[2]&&(t.replaceChildren(...this.build(s[2],i)),t.removeAttribute("data-lazy"))}build(t,e){let i=this.getAttribute("toggle-label")??"Toggle {label}",o=location.href.split("#")[0],s=this.serverPath();return t.map(([r,a,l,c],d)=>{let u=e?`${e}.${d}`:String(d),h=document.createElement("li");h.setAttribute("data-part","item"),h.style.setProperty("--db-level",String(u.split(".").length-1));let m=document.createElement("div");m.setAttribute("data-part","row"),h.appendChild(m);let f=a!=null?this.linkOf(a):null;f||(a=null);let v=null;if(l!=null&&l.length)if(v=document.createElement("button"),v.type="button",v.setAttribute("data-part","toggle"),v.setAttribute("aria-expanded","false"),a!=null)v.setAttribute("aria-label",i.replace("{label}",()=>r));else{let p=document.createElement("span");p.setAttribute("data-part","label"),p.textContent=r,v.appendChild(p)}let w=this.getAttribute("toggle-position")==="end";if(v&&!w&&m.appendChild(v),a!=null){let p=document.createElement("a");p.setAttribute("data-part","link"),p.textContent=r,p.href=f.href,f.external&&(p.rel="noopener"),(s!=null?u===s:!c&&p.href.split("#")[0]===o)&&p.setAttribute("aria-current","page"),m.appendChild(p)}if(a==null&&!(l!=null&&l.length)){let p=document.createElement("span");p.setAttribute("data-part","label"),p.textContent=r,m.appendChild(p)}if(v&&w&&m.appendChild(v),l!=null&&l.length){let p=document.createElement("ul");p.setAttribute("data-part","group"),p.dataset.lazy="",p.dataset.path=u,p.hidden=!0,h.setAttribute("data-state","closed"),h.appendChild(p),this.prepareItem(h)}return h})}},gs=\'<svg data-part="chevron" viewBox="0 0 24 24" width="16" height="16" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>\';function bs(n){for(let t=n.parentElement;t;t=t.parentElement){let e=getComputedStyle(t).overflowY;if((e==="auto"||e==="scroll")&&t.scrollHeight>t.clientHeight)return t}return null}et();customElements.get("db-nav-tree")||customElements.define("db-nav-tree",ni);var ii=class extends tt{constructor(){super(...arguments);g(this,"links",[]);g(this,"headings",[]);g(this,"observer",null);g(this,"active",null);g(this,"onScroll",()=>{let t=document.documentElement;window.innerHeight+window.scrollY>=t.scrollHeight-2&&this.headings.length&&this.setActive(this.headings[this.headings.length-1].id)});g(this,"onHash",()=>{let t=Jt(location.hash.slice(1));t&&this.headings.some(e=>e.id===t)&&this.setActive(t)})}slugOf(t){return t.getAttribute("data-toc-slug")??Jt(t.getAttribute("href").slice(1))}setup(){this.links=Array.from(this.querySelectorAll("a[href^=\'#\'], a[data-toc-link]"))}connect(){var e;if(this.headings=this.links.map(i=>document.getElementById(this.slugOf(i))).filter(i=>!!i),!this.headings.length)return;let t=Number(this.getAttribute("offset")??80);typeof IntersectionObserver<"u"&&(this.observer=new IntersectionObserver(i=>{var s;let o=i.find(r=>r.isIntersecting);if(o)return this.setActive(o.target.id);this.setActive(((s=this.lastAbove(t))==null?void 0:s.id)??null)},{rootMargin:`-${t}px 0px -70% 0px`,threshold:0}),this.headings.forEach(i=>this.observer.observe(i))),window.addEventListener("hashchange",this.onHash),window.addEventListener("scroll",this.onScroll,{passive:!0}),this.setActive(((e=this.lastAbove(t))==null?void 0:e.id)??this.headings[0].id)}disconnect(){var t;(t=this.observer)==null||t.disconnect(),this.observer=null,window.removeEventListener("hashchange",this.onHash),window.removeEventListener("scroll",this.onScroll)}lastAbove(t){let e=null;for(let i of this.headings)i.getBoundingClientRect().top<=t+20&&(e=i);return e}setActive(t){if(!(!t||t===this.active)){this.active=t;for(let e of this.links)this.slugOf(e)===t?(e.setAttribute("aria-current","location"),e.setAttribute("data-active","")):(e.removeAttribute("aria-current"),e.removeAttribute("data-active"));this.dispatchEvent(new CustomEvent("db-toc:change",{detail:{id:t},bubbles:!0}))}}};et();customElements.get("db-toc")||customElements.define("db-toc",ii);var vs=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",\'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)\',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],sn=vs.join(","),ri=typeof Element>"u",pe=ri?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Te=!ri&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Oe=function(t,e){var i;e===void 0&&(e=!0);var o=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),s=o===""||o==="true",r=s||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Oe(t.parentNode));return r},ys=function(t){var e,i=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return i===""||i==="true"},ws=function(t,e,i){if(Oe(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(sn));return e&&pe.call(t,sn)&&o.unshift(t),o=o.filter(i),o},rn=function(t,e,i){for(var o=[],s=Array.from(t);s.length;){var r=s.shift();if(!Oe(r,!1))if(r.tagName==="SLOT"){var a=r.assignedElements(),l=a.length?a:r.children,c=rn(l,!0,i);i.flatten?o.push.apply(o,c):o.push({scopeParent:r,candidates:c})}else{var d=pe.call(r,sn);d&&i.filter(r)&&(e||!t.includes(r))&&o.push(r);var u=r.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(r),h=!Oe(u,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(u&&h){var m=rn(u===!0?r.children:u.children,!0,i);i.flatten?o.push.apply(o,m):o.push({scopeParent:r,candidates:m})}else s.unshift.apply(s,r.children)}}return o},ai=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ci=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ys(t))&&!ai(t)?0:t.tabIndex},Es=function(t,e){var i=ci(t);return i<0&&e&&!ai(t)?0:i},xs=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},li=function(t){return t.tagName==="INPUT"},Ss=function(t){return li(t)&&t.type==="hidden"},As=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return e},Cs=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]},Ls=function(t){if(!t.name)return!0;var e=t.form||Te(t),i=function(a){return e.querySelectorAll(\'input[type="radio"][name="\'+a+\'"]\')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=i(window.CSS.escape(t.name));else try{o=i(t.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var s=Cs(o,t.form);return!s||s===t},ks=function(t){return li(t)&&t.type==="radio"},Ts=function(t){return ks(t)&&!Ls(t)},Os=function(t){var e,i=t&&Te(t),o=(e=i)===null||e===void 0?void 0:e.host,s=!1;if(i&&i!==t){var r,a,l;for(s=!!((r=o)!==null&&r!==void 0&&(a=r.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!s&&o;){var c,d,u;i=Te(o),o=(c=i)===null||c===void 0?void 0:c.host,s=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return s},oi=function(t){var e=t.getBoundingClientRect(),i=e.width,o=e.height;return i===0&&o===0},Rs=function(t,e){var i=e.displayCheck,o=e.getShadowRoot;if(i==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var r=getComputedStyle(t),a=r.visibility;if(a==="hidden"||a==="collapse")return!0;var l=pe.call(t,"details>summary:first-of-type"),c=l?t.parentElement:t;if(pe.call(c,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof o=="function"){for(var d=t;t;){var u=t.parentElement,h=Te(t);if(u&&!u.shadowRoot&&o(u)===!0)return oi(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=d}if(Os(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return oi(t);return!1},Ds=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var i=0;i<e.children.length;i++){var o=e.children.item(i);if(o.tagName==="LEGEND")return pe.call(e,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}e=e.parentElement}return!1},Ms=function(t,e){return!(e.disabled||Ss(e)||Rs(e,t)||As(e)||Ds(e))},si=function(t,e){return!(Ts(e)||ci(e)<0||!Ms(t,e))},Is=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},di=function(t){var e=[],i=[];return t.forEach(function(o,s){var r=!!o.scopeParent,a=r?o.scopeParent:o,l=Es(a,r),c=r?di(o.candidates):a;l===0?r?e.push.apply(e,c):e.push(a):i.push({documentOrder:s,tabIndex:l,item:o,isScope:r,content:c})}),i.sort(xs).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(e)},an=function(t,e){e=e||{};var i;return e.getShadowRoot?i=rn([t],e.includeContainer,{filter:si.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Is}):i=ws(t,e.includeContainer,si.bind(null,e)),di(i)};var cn=class{constructor(n,t={}){g(this,"root");g(this,"opts");g(this,"previouslyFocused",null);g(this,"keydownHandler",null);g(this,"active",!1);this.root=n,this.opts={initialFocus:t.initialFocus??"first",returnFocus:t.returnFocus??!0}}activate(){this.active||(this.active=!0,this.previouslyFocused=document.activeElement,this.keydownHandler=n=>{if(n.key!=="Tab")return;let t=an(this.root);if(t.length===0){n.preventDefault();return}let e=t[0],i=t[t.length-1];n.shiftKey?document.activeElement===e&&(i.focus(),n.preventDefault()):document.activeElement===i&&(e.focus(),n.preventDefault())},document.addEventListener("keydown",this.keydownHandler),requestAnimationFrame(()=>{var t;if(!this.active)return;let n=an(this.root);this.opts.initialFocus instanceof HTMLElement&&this.root.contains(this.opts.initialFocus)?this.opts.initialFocus.focus():this.opts.initialFocus==="container"?(this.root.hasAttribute("tabindex")||this.root.setAttribute("tabindex","-1"),this.root.focus()):(t=n[0])==null||t.focus()}))}deactivate(){this.active&&(this.active=!1,this.keydownHandler&&(document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null),this.opts.returnFocus&&this.previouslyFocused&&document.contains(this.previouslyFocused)&&this.previouslyFocused.focus(),this.previouslyFocused=null)}isActive(){return this.active}};var lt,Ft=(lt=class{static activate(){if(lt.count++,lt.count>1)return;let t=window.innerWidth-document.documentElement.clientWidth;lt.originalStyles={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight},document.body.style.overflow="hidden",t>0&&(document.body.style.paddingRight=`${t}px`)}static deactivate(){lt.count=Math.max(0,lt.count-1),!(lt.count>0)&<.originalStyles&&(document.body.style.overflow=lt.originalStyles.overflow,document.body.style.paddingRight=lt.originalStyles.paddingRight,lt.originalStyles=null)}static reset(){lt.count=0,lt.originalStyles=null}},g(lt,"count",0),g(lt,"originalStyles",null),lt);var St=[];function Ns(n){if(n.key!=="Escape"||St.length===0)return;let t=St[St.length-1];t.escapePrevented||(n.preventDefault(),n.stopPropagation(),t.opts.onDismiss("escape-key"))}var ui=!1;function Hs(){ui||(ui=!0,document.addEventListener("keydown",Ns))}var _t=class{constructor(n,t){g(this,"root");g(this,"opts");g(this,"outsideHandler",null);g(this,"active",!1);g(this,"frameId",null);g(this,"escapePrevented",!1);this.root=n,this.opts={onDismiss:t.onDismiss,escapeKey:t.escapeKey??!0,outsidePress:t.outsidePress??!0}}activate(){this.active||(this.active=!0,this.opts.escapeKey&&(Hs(),St.push(this)),this.opts.outsidePress&&(this.outsideHandler=n=>{if(St.length>0&&St[St.length-1]!==this)return;let t=n.target;if(this.root.contains(t))return;let e=this.root.id;if(e){let o=document.querySelector(`[aria-controls="${e}"]`);if(o!=null&&o.contains(t))return}let i=this.root.getAttribute("aria-labelledby");if(i){let o=document.getElementById(i);if(o!=null&&o.contains(t))return}typeof this.opts.outsidePress=="function"&&!this.opts.outsidePress(n)||this.opts.onDismiss("outside-press")},this.frameId=requestAnimationFrame(()=>{this.frameId=null,this.outsideHandler&&document.addEventListener("pointerdown",this.outsideHandler)})))}deactivate(){if(!this.active)return;this.active=!1;let n=St.indexOf(this);n!==-1&&St.splice(n,1),this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.outsideHandler&&(document.removeEventListener("pointerdown",this.outsideHandler),this.outsideHandler=null)}isActive(){return this.active}};function ln(n){let t=[],e=n;for(;e&&e!==document.body;){let i=e.parentElement;if(!i)break;for(let o=0;o<i.children.length;o++){let s=i.children[o];if(s===e||s.contains(n))continue;let r=s.tagName;if(r==="SCRIPT"||r==="STYLE"||r==="LINK")continue;let a=s.getAttribute("aria-hidden");a!=="true"&&(t.push({el:s,prev:a}),s.setAttribute("aria-hidden","true"))}e=i}return()=>{for(let{el:i,prev:o}of t)o===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",o)}}var hi=class extends tt{constructor(){super(...arguments);g(this,"content",null);g(this,"backdrop",null);g(this,"trigger",null);g(this,"native",!1);g(this,"_open",!1);g(this,"openedBy",null);g(this,"focusTrap",null);g(this,"dismiss",null);g(this,"cleanupInert",null);g(this,"onTriggerClick",t=>{t.preventDefault(),this.toggle(t.currentTarget)});g(this,"onHostClick",t=>{let e=t.target.closest("[data-part=\'close\']");e&&e.closest("db-dialog")===this&&this.close("close-press")});g(this,"onDocumentClick",t=>{var o,s,r;let e=(s=(o=t.target).closest)==null?void 0:s.call(o,"[data-dialog-for]");if(!e||e===this.trigger)return;let i=e.getAttribute("data-dialog-for");i&&(i===this.id||i===((r=this.content)==null?void 0:r.id))&&(t.preventDefault(),this.toggle(e))});g(this,"onCancel",t=>{t.preventDefault(),this.dismissible&&this.close("escape-key")});g(this,"onNativeClick",t=>{if(!this.dismissible||t.target!==this.content||!this.content)return;let e=this.content.getBoundingClientRect();!(t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom)&&(t.clientX!==0||t.clientY!==0)&&this.close("outside-press")});g(this,"onNativeClose",()=>{this._open&&this.finishClose("close-press")})}get open(){return this._open}get dismissible(){return this.getAttribute("dismissible")!=="false"}setup(){if(this.content=rt(this,"[data-part=\'content\']"),!this.content)return;this.native=typeof HTMLDialogElement<"u"&&this.content instanceof HTMLDialogElement&&typeof this.content.showModal=="function",this.backdrop=rt(this,"[data-part=\'backdrop\']"),this.trigger=Gt(rt(this,"[data-part=\'trigger\']"));let t=this.content;t.id||(t.id=st("db-dialog")),this.native||(t.setAttribute("role",t.getAttribute("role")||"dialog"),t.setAttribute("aria-modal","true"),t.hidden=!this.hasAttribute("open"),this.backdrop&&(this.backdrop.hidden=!0));let e=t.querySelector("[data-part=\'title\']");e&&!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("aria-label")&&(e.id||(e.id=st("db-dialog-title")),t.setAttribute("aria-labelledby",e.id));let i=t.querySelector("[data-part=\'description\']");i&&!t.hasAttribute("aria-describedby")&&(i.id||(i.id=st("db-dialog-desc")),t.setAttribute("aria-describedby",i.id));for(let o of this.triggers())this.prepareTrigger(o);this.setState("closed"),this.native||(this.focusTrap=new cn(t),this.dismiss=new _t(t,{onDismiss:o=>this.dismissible&&this.close(o)}))}connect(){var t;this.content&&((t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),this.addEventListener("click",this.onHostClick),document.addEventListener("click",this.onDocumentClick),this.native&&(this.content.addEventListener("cancel",this.onCancel),this.content.addEventListener("click",this.onNativeClick),this.content.addEventListener("close",this.onNativeClose)),queueMicrotask(()=>{if(this.isConnected){for(let e of this.triggers())e.hasAttribute("aria-controls")||this.prepareTrigger(e);this.hasAttribute("open")&&!this._open&&this.show()}}))}disconnect(){var t;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),this.removeEventListener("click",this.onHostClick),document.removeEventListener("click",this.onDocumentClick),this.content&&this.native&&(this.content.removeEventListener("cancel",this.onCancel),this.content.removeEventListener("click",this.onNativeClick),this.content.removeEventListener("close",this.onNativeClose)),this._open&&this.finishClose("api",!1)}triggers(){var i;let t=this.trigger?[this.trigger]:[],e=[this.id,(i=this.content)==null?void 0:i.id].filter(Boolean);for(let o of e)document.querySelectorAll(`[data-dialog-for="${CSS.escape(o)}"]`).forEach(s=>t.push(s));return t}prepareTrigger(t){t.hasAttribute("aria-haspopup")||t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-controls",this.content.id),t.setAttribute("aria-expanded","false")}setState(t){var e,i;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t),(i=this.backdrop)==null||i.setAttribute("data-state",t)}toggle(t){this._open?this.close("trigger-press"):this.show(t)}show(t){var i,o;let e=this.content;if(!(!e||this._open)){this._open=!0,this.openedBy=t??document.activeElement??this.trigger;for(let s of this.triggers())this.prepareTrigger(s),s.setAttribute("aria-expanded","true");if(Ft.activate(),this.native){let s=e;s.open||s.showModal()}else e.hidden=!1,this.backdrop&&(this.backdrop.hidden=!1),this.cleanupInert=ln(e),(i=this.focusTrap)==null||i.activate(),(o=this.dismiss)==null||o.activate();this.setState("open"),this.dispatchEvent(new CustomEvent("db-dialog:open",{bubbles:!0}))}}close(t="api"){this._open&&this.finishClose(t)}finishClose(t,e=!0){var s,r,a;let i=this.content;this._open=!1,this.setState("closed");for(let l of this.triggers())l.setAttribute("aria-expanded","false");if(Ft.deactivate(),this.native){let l=i;l.open&&l.close()}else(s=this.dismiss)==null||s.deactivate(),(r=this.focusTrap)==null||r.deactivate(),(a=this.cleanupInert)==null||a.call(this),this.cleanupInert=null,Zn(i,()=>{this._open||(i.hidden=!0,this.backdrop&&(this.backdrop.hidden=!0))});let o=this.openedBy;this.openedBy=null,e&&o&&document.contains(o)&&o.focus(),this.dispatchEvent(new CustomEvent("db-dialog:close",{detail:{reason:t},bubbles:!0}))}};et();customElements.get("db-dialog")||customElements.define("db-dialog",hi);var fi=class extends tt{constructor(){super(...arguments);g(this,"input",null);g(this,"listbox",null);g(this,"empty",null);g(this,"_open",!1);g(this,"highlighted",null);g(this,"observer",null);g(this,"base",st("db-combobox"));g(this,"optionSeq",0);g(this,"onInput",()=>{this.filtering?this.filter(this.input.value):this.show()});g(this,"onFocus",()=>{(this.hasAttribute("open-on-focus")||this.filtering&&this.input.value)&&(this.filtering?this.filter(this.input.value):this.show())});g(this,"onKey",t=>{let e=this.visible(),i=this.highlighted?e.indexOf(this.highlighted):-1;switch(t.key){case"ArrowDown":t.preventDefault(),this._open||this.show(),e.length&&this.highlight(e[i<0?0:Math.min(i+1,e.length-1)]);break;case"ArrowUp":t.preventDefault(),this._open||this.show(),e.length&&this.highlight(e[i<0?e.length-1:Math.max(i-1,0)]);break;case"Home":case"End":this._open&&this.highlighted&&e.length&&(t.preventDefault(),this.highlight(t.key==="Home"?e[0]:e[e.length-1]));break;case"Enter":this._open&&this.highlighted&&(t.preventDefault(),this.choose(this.highlighted));break;case"Escape":this._open&&!this.inline?(t.preventDefault(),t.stopPropagation(),this.hide()):this.input.value&&(t.preventDefault(),t.stopPropagation(),this.input.value="",this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.hide());break;case"Tab":this.inline||this.hide();break}});g(this,"onListClick",t=>{let e=t.target.closest("[data-part=\'option\']");if(!e||e.closest("db-combobox")!==this||ft(e))return;let i=t.target.closest("a[href]");!this.choose(e,!i)&&i&&t.preventDefault()});g(this,"onListPointer",t=>{let e=t.target.closest("[data-part=\'option\']");e&&e.closest("db-combobox")===this&&!ft(e)&&!e.hidden&&this.highlight(e)});g(this,"onListDown",t=>t.preventDefault());g(this,"onDocDown",t=>{this._open&&!this.inline&&!this.contains(t.target)&&this.hide()})}get open(){return this._open}get inline(){return this.hasAttribute("inline")}get filtering(){return(this.getAttribute("filter")??"contains")!=="none"}options(){return this.listbox?Array.from(this.listbox.querySelectorAll("[data-part=\'option\']")).filter(t=>t.closest("db-combobox")===this):[]}visible(){return this.options().filter(t=>!t.hidden&&!ft(t))}setup(){if(this.input=rt(this,"[data-part=\'input\']"),this.listbox=rt(this,"[data-part=\'listbox\']"),this.empty=rt(this,"[data-part=\'empty\']"),!this.input||!this.listbox)return;let{input:t,listbox:e}=this;e.id||(e.id=`${this.base}-listbox`),e.setAttribute("role","listbox"),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls",e.id),t.setAttribute("autocomplete","off"),this.inline||(e.hidden=!0),this.prepareOptions(),this.syncExpanded()}prepareOptions(){this.options().forEach(t=>{t.id||(t.id=`${this.base}-option-${++this.optionSeq}`),t.setAttribute("role","option"),t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.matches("a[href], button")&&t.setAttribute("tabindex","-1"),t.querySelectorAll("a, button").forEach(e=>e.setAttribute("tabindex","-1")),t.parentElement&&t.parentElement!==this.listbox&&t.parentElement.localName==="li"&&!t.parentElement.hasAttribute("role")&&t.parentElement.setAttribute("role","none")})}connect(){let{input:t,listbox:e}=this;!t||!e||(t.addEventListener("input",this.onInput),t.addEventListener("focus",this.onFocus),t.addEventListener("keydown",this.onKey),e.addEventListener("click",this.onListClick),e.addEventListener("pointermove",this.onListPointer),e.addEventListener("mousedown",this.onListDown),document.addEventListener("pointerdown",this.onDocDown),typeof MutationObserver<"u"&&(this.observer=new MutationObserver(()=>this.onOptionsChanged()),this.observer.observe(e,{childList:!0,subtree:!0})))}disconnect(){var i;let{input:t,listbox:e}=this;t==null||t.removeEventListener("input",this.onInput),t==null||t.removeEventListener("focus",this.onFocus),t==null||t.removeEventListener("keydown",this.onKey),e==null||e.removeEventListener("click",this.onListClick),e==null||e.removeEventListener("pointermove",this.onListPointer),e==null||e.removeEventListener("mousedown",this.onListDown),document.removeEventListener("pointerdown",this.onDocDown),(i=this.observer)==null||i.disconnect(),this.observer=null}refresh(){this.onOptionsChanged()}onOptionsChanged(){this.prepareOptions(),this.highlighted&&!this.options().includes(this.highlighted)&&this.clearHighlight();let t=this.visible();this.filtering||(t.length||this.inline?this.show():this.hide(),t.length&&!this.highlighted&&!this.hasAttribute("no-autohighlight")&&this.highlight(t[0])),this.syncExpanded(),this.dispatchEvent(new CustomEvent("db-combobox:update",{detail:{count:t.length},bubbles:!0}))}filter(t){let e=t.toLowerCase().trim(),i=0;for(let s of this.options()){let r=!e||(s.textContent??"").toLowerCase().includes(e)||(s.dataset.value??"").toLowerCase().includes(e);s.hidden=!r,r&&i++}this.empty&&(this.empty.hidden=i>0||!e),this.clearHighlight(),i||e&&this.empty?this.show():this.hide();let o=this.visible();o.length&&!this.hasAttribute("no-autohighlight")&&this.highlight(o[0]),this.dispatchEvent(new CustomEvent("db-combobox:update",{detail:{count:i},bubbles:!0}))}syncExpanded(){if(!this.input)return;let t=this.inline?this.visible().length>0:this._open;this.input.setAttribute("aria-expanded",String(t)),this.setAttribute("data-state",t?"open":"closed")}show(){if(!this.listbox||this._open)return this.syncExpanded();this._open=!0,this.listbox.hidden=!1,this.syncExpanded()}hide(){if(this.listbox){if(this.clearHighlight(),!this._open)return this.syncExpanded();this._open=!1,this.inline||(this.listbox.hidden=!0),this.syncExpanded()}}highlight(t){var e,i,o;this.input&&((e=this.highlighted)==null||e.removeAttribute("data-highlighted"),(i=this.highlighted)==null||i.setAttribute("aria-selected","false"),this.highlighted=t,t.setAttribute("data-highlighted",""),t.setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",t.id),(o=t.scrollIntoView)==null||o.call(t,{block:"nearest"}))}clearHighlight(){var t,e,i;(t=this.highlighted)==null||t.removeAttribute("data-highlighted"),(e=this.highlighted)==null||e.setAttribute("aria-selected","false"),this.highlighted=null,(i=this.input)==null||i.removeAttribute("aria-activedescendant")}choose(t,e=!0){var a;let i=t.dataset.value??"",o=((a=t.textContent)==null?void 0:a.trim())??i,s=new CustomEvent("db-combobox:select",{detail:{value:i,text:o,option:t},bubbles:!0,cancelable:!0});if(!this.dispatchEvent(s))return!1;let r=t.matches("a[href]")?t:t.querySelector("a[href]");return r?(e&&r.click(),!0):(this.input&&(this.input.value=t.getAttribute("data-label")??o),this.inline||this.hide(),this.dispatchEvent(new CustomEvent("db-combobox:change",{detail:{value:i,text:o},bubbles:!0})),!0)}};et();customElements.get("db-combobox")||customElements.define("db-combobox",fi);var Ot=Math.min,mt=Math.max,ge=Math.round,be=Math.floor,vt=n=>({x:n,y:n}),Ps={left:"right",right:"left",bottom:"top",top:"bottom"};function gi(n,t,e){return mt(n,Ot(t,e))}function te(n,t){return typeof n=="function"?n(t):n}function Rt(n){return n.split("-")[0]}function ee(n){return n.split("-")[1]}function dn(n){return n==="x"?"y":"x"}function un(n){return n==="y"?"height":"width"}function yt(n){let t=n[0];return t==="t"||t==="b"?"y":"x"}function hn(n){return dn(yt(n))}function bi(n,t,e){e===void 0&&(e=!1);let i=ee(n),o=hn(n),s=un(o),r=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=me(r)),[r,me(r)]}function vi(n){let t=me(n);return[Re(n),t,Re(t)]}function Re(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}var pi=["left","right"],mi=["right","left"],Fs=["top","bottom"],_s=["bottom","top"];function $s(n,t,e){switch(n){case"top":case"bottom":return e?t?mi:pi:t?pi:mi;case"left":case"right":return t?Fs:_s;default:return[]}}function yi(n,t,e,i){let o=ee(n),s=$s(Rt(n),e==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Re)))),s}function me(n){let t=Rt(n);return Ps[t]+n.slice(t.length)}function zs(n){var t,e,i,o;return{top:(t=n.top)!=null?t:0,right:(e=n.right)!=null?e:0,bottom:(i=n.bottom)!=null?i:0,left:(o=n.left)!=null?o:0}}function wi(n){return typeof n!="number"?zs(n):{top:n,right:n,bottom:n,left:n}}function $t(n){let{x:t,y:e,width:i,height:o}=n;return{width:i,height:o,top:e,left:t,right:t+i,bottom:e+o,x:t,y:e}}function Ei(n,t,e){let{reference:i,floating:o}=n,s=yt(t),r=hn(t),a=un(r),l=Rt(t),c=s==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,h=i[a]/2-o[a]/2,m;switch(l){case"top":m={x:d,y:i.y-o.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:u};break;case"left":m={x:i.x-o.width,y:u};break;default:m={x:i.x,y:i.y}}let f=ee(t);return f&&(m[r]+=h*(f==="end"?1:-1)*(e&&c?-1:1)),m}async function xi(n,t){var e;t===void 0&&(t={});let{x:i,y:o,platform:s,rects:r,elements:a,strategy:l}=n,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=te(t,n),f=wi(m),w=a[h?u==="floating"?"reference":"floating":u],p=$t(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(w)))==null||e?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},D=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:E,strategy:l}):b);return{top:(p.top-D.top+f.top)/x.y,bottom:(D.bottom-p.bottom+f.bottom)/x.y,left:(p.left-D.left+f.left)/x.x,right:(D.right-p.right+f.right)/x.x}}var qs=50,Si=async(n,t,e)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=e,a=r.detectOverflow?r:{...r,detectOverflow:xi},l=await(r.isRTL==null?void 0:r.isRTL(t)),c=await r.getElementRects({reference:n,floating:t,strategy:o}),{x:d,y:u}=Ei(c,i,l),h=i,m=0,f={};for(let v=0;v<s.length;v++){let w=s[v];if(!w)continue;let{name:p,fn:b}=w,{x:E,y:x,data:D,reset:S}=await b({x:d,y:u,initialPlacement:i,placement:h,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:n,floating:t}});d=E??d,u=x??u,f[p]={...f[p],...D},S&&m<qs&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:n,floating:t,strategy:o}):S.rects),{x:d,y:u}=Ei(c,h,l)),v=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:f}};var Ai=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...w}=te(n,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let p=Rt(o),b=yt(a),E=Rt(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),D=h||(E||!v?[me(a)]:vi(a)),S=f!=="none";!h&&S&&D.push(...yi(a,v,f,x));let A=[a,...D],y=await l.detectOverflow(t,w),W=[],$=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&W.push(y[p]),u){let q=bi(o,r,x);W.push(y[q[0]],y[q[1]])}if($=[...$,{placement:o,overflows:W}],!W.every(q=>q<=0)){var G,C;let q=(((G=s.flip)==null?void 0:G.index)||0)+1,j=A[q];if(j&&(!(u==="alignment"?b!==yt(j):!1)||$.every(X=>yt(X.placement)===b?X.overflows[0]>0:!0)))return{data:{index:q,overflows:$},reset:{placement:j}};let _=(C=$.filter(K=>K.overflows[0]<=0).sort((K,X)=>K.overflows[1]-X.overflows[1])[0])==null?void 0:C.placement;if(!_)switch(m){case"bestFit":{var O;let K=(O=$.filter(X=>{if(S){let ot=yt(X.placement);return ot===b||ot==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(ot=>ot>0).reduce((ot,it)=>ot+it,0)]).sort((X,ot)=>X[1]-ot[1])[0])==null?void 0:O[0];K&&(_=K);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};var Bs=new Set(["left","top"]);async function Ks(n,t){let{placement:e,platform:i,elements:o}=n,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=Rt(e),a=ee(e),l=yt(e)==="y",c=Bs.has(r)?-1:1,d=s&&l?-1:1,u=te(t,n),{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}var Ci=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:o,y:s,placement:r,middlewareData:a}=t,l=await Ks(t,n);return r===((e=a.offset)==null?void 0:e.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}},Li=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){let{x:e,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:E,y:x}=b;return{x:E,y:x}}},...c}=te(n,t),d={x:e,y:i},u=await s.detectOverflow(t,c),h=yt(o),m=dn(h),f=d[m],v=d[h],w=(b,E)=>gi(E+u[b==="y"?"top":"left"],E,E-u[b==="y"?"bottom":"right"]);r&&(f=w(m,f)),a&&(v=w(h,v));let p=l.fn({...t,[m]:f,[h]:v});return{...p,data:{x:p.x-e,y:p.y-i,enabled:{[m]:r,[h]:a}}}}}};var ki=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){let{placement:e,rects:i,platform:o,elements:s}=t,{apply:r=()=>{},...a}=te(n,t),l=await o.detectOverflow(t,a),c=Rt(e),d=ee(e),u=yt(e)==="y",{width:h,height:m}=i.floating,f,v;c==="top"||c==="bottom"?(f=c,v=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=c,f=d==="end"?"top":"bottom");let w=m-l.top-l.bottom,p=h-l.left-l.right,b=Ot(m-l[f],w),E=Ot(h-l[v],p),x=t.middlewareData.shift,D=!x,S=b,A=E;x!=null&&x.enabled.x&&(A=p),x!=null&&x.enabled.y&&(S=w),D&&!d&&(u?A=h-2*mt(l.left,l.right):S=m-2*mt(l.top,l.bottom)),await r({...t,availableWidth:A,availableHeight:S});let y=await o.getDimensions(s.floating);return h!==y.width||m!==y.height?{reset:{rects:!0}}:{}}}};function De(){return typeof window<"u"}function qt(n){return Oi(n)?(n.nodeName||"").toLowerCase():"#document"}function ut(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function wt(n){var t;return(t=(Oi(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function Oi(n){return De()?n instanceof Node||n instanceof ut(n).Node:!1}function gt(n){return De()?n instanceof Element||n instanceof ut(n).Element:!1}function At(n){return De()?n instanceof HTMLElement||n instanceof ut(n).HTMLElement:!1}function Ti(n){return!De()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ut(n).ShadowRoot}function ve(n){let{overflow:t,overflowX:e,overflowY:i,display:o}=bt(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&o!=="inline"&&o!=="contents"}function Ri(n){return/^(table|td|th)$/.test(qt(n))}function ye(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}var js=/transform|translate|scale|rotate|perspective|filter/,Vs=/paint|layout|strict|content/,zt=n=>!!n&&n!=="none",fn;function Me(n){let t=gt(n)?bt(n):n;return zt(t.transform)||zt(t.translate)||zt(t.scale)||zt(t.rotate)||zt(t.perspective)||!Ie()&&(zt(t.backdropFilter)||zt(t.filter))||js.test(t.willChange||"")||Vs.test(t.contain||"")}function Di(n){let t=Dt(n);for(;At(t)&&!ie(t);){if(Me(t))return t;if(ye(t))return null;t=Dt(t)}return null}function Ie(){return fn==null&&(fn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fn}function ie(n){return/^(html|body|#document)$/.test(qt(n))}function bt(n){return ut(n).getComputedStyle(n)}function we(n){return gt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dt(n){if(qt(n)==="html")return n;let t=n.assignedSlot||n.parentNode||Ti(n)&&n.host||wt(n);return Ti(t)?t.host:t}function Mi(n){let t=Dt(n);return ie(t)?(n.ownerDocument||n).body:At(t)&&ve(t)?t:Mi(t)}function ne(n,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=Mi(n),s=o===((i=n.ownerDocument)==null?void 0:i.body),r=ut(o);if(s){let a=Ne(r);return t.concat(r,r.visualViewport||[],ve(o)?o:[],a&&e?ne(a):[])}else return t.concat(o,ne(o,[],e))}function Ne(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Hi(n){let t=bt(n),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=At(n),s=o?n.offsetWidth:e,r=o?n.offsetHeight:i,a=ge(e)!==s||ge(i)!==r;return a&&(e=s,i=r),{width:e,height:i,$:a}}function mn(n){return gt(n)?n:n.contextElement}function oe(n){let t=mn(n);if(!At(t))return vt(1);let e=t.getBoundingClientRect(),{width:i,height:o,$:s}=Hi(t),r=(s?ge(e.width):e.width)/i,a=(s?ge(e.height):e.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}var Us=vt(0);function Pi(n){let t=ut(n);return!Ie()||!t.visualViewport?Us:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ws(n,t,e){return t===void 0&&(t=!1),!!e&&t&&e===ut(n)}function Bt(n,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=n.getBoundingClientRect(),s=mn(n),r=vt(1);t&&(i?gt(i)&&(r=oe(i)):r=oe(n));let a=Ws(s,e,i)?Pi(s):vt(0),l=(o.left+a.x)/r.x,c=(o.top+a.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(s&&i){let h=ut(s),m=gt(i)?ut(i):i,f=h,v=Ne(f);for(;v&&m!==f;){let w=oe(v),p=v.getBoundingClientRect(),b=bt(v),E=p.left+(v.clientLeft+parseFloat(b.paddingLeft))*w.x,x=p.top+(v.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,c*=w.y,d*=w.x,u*=w.y,l+=E,c+=x,f=ut(v),v=Ne(f)}}return $t({width:d,height:u,x:l,y:c})}function He(n,t){let e=we(n).scrollLeft;return t?t.left+e:Bt(wt(n)).left+e}function Fi(n,t){let e=n.getBoundingClientRect(),i=e.left+t.scrollLeft-He(n,e),o=e.top+t.scrollTop;return{x:i,y:o}}function Ys(n){let{elements:t,rect:e,offsetParent:i,strategy:o}=n,s=o==="fixed",r=wt(i),a=t?ye(t.floating):!1;if(i===r||a&&s)return e;let l={scrollLeft:0,scrollTop:0},c=vt(1),d=vt(0),u=At(i);if((u||!s)&&((qt(i)!=="body"||ve(r))&&(l=we(i)),u)){let m=Bt(i);c=oe(i),d.x=m.x+i.clientLeft,d.y=m.y+i.clientTop}let h=r&&!u&&!s?Fi(r,l):vt(0);return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:e.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Xs(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function Gs(n){let t=we(n),e=n.ownerDocument.body,i=mt(n.scrollWidth,n.clientWidth,e.scrollWidth,e.clientWidth),o=mt(n.scrollHeight,n.clientHeight,e.scrollHeight,e.clientHeight),s=-t.scrollLeft+He(n),r=-t.scrollTop;return bt(e).direction==="rtl"&&(s+=mt(n.clientWidth,e.clientWidth)-i),{width:i,height:o,x:s,y:r}}var Qs=25;function Zs(n,t,e){e===void 0&&(e="viewport");let i=e==="layoutViewport",o=ut(n),s=wt(n),r=o.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,d=0;if(r){let h=!Ie()||t==="fixed";i?h||(c=-r.offsetLeft,d=-r.offsetTop):(a=r.width,l=r.height,h&&(c=r.offsetLeft,d=r.offsetTop))}if(He(s)<=0){let h=s.ownerDocument,m=h.body,f=getComputedStyle(m),v=h.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(s.clientWidth-m.clientWidth-v),p=getComputedStyle(s).scrollbarGutter==="stable both-edges"?w/2:w;p<=Qs&&(a-=p)}return{width:a,height:l,x:c,y:d}}function Js(n,t){let e=Bt(n,!0,t==="fixed"),i=e.top+n.clientTop,o=e.left+n.clientLeft,s=oe(n),r=n.clientWidth*s.x,a=n.clientHeight*s.y,l=o*s.x,c=i*s.y;return{width:r,height:a,x:l,y:c}}function Ii(n,t,e){let i;if(t==="viewport"||t==="layoutViewport")i=Zs(n,e,t);else if(t==="document")i=Gs(wt(n));else if(gt(t))i=Js(t,e);else{let o=Pi(n);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(i)}function tr(n,t){let e=t.get(n);if(e)return e;let i=ne(n,[],!1).filter(a=>gt(a)&&qt(a)!=="body"),o=null,s=bt(n).position==="fixed",r=s?Dt(n):n;for(;gt(r)&&!ie(r);){let a=bt(r),l=Me(r),c=o?o.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(u=>u!==r):o=a,r=Dt(r)}return t.set(n,i),i}function er(n){let{element:t,boundary:e,rootBoundary:i,strategy:o}=n,r=[...e==="clippingAncestors"?ye(t)?[]:tr(t,this._c):[].concat(e),i],a=Ii(t,r[0],o),l=a.top,c=a.right,d=a.bottom,u=a.left;for(let h=1;h<r.length;h++){let m=Ii(t,r[h],o);l=mt(m.top,l),c=Ot(m.right,c),d=Ot(m.bottom,d),u=mt(m.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function nr(n){let{width:t,height:e}=Hi(n);return{width:t,height:e}}function ir(n,t,e){let i=At(t),o=wt(t),s=e==="fixed",r=Bt(n,!0,s,t),a={scrollLeft:0,scrollTop:0},l=vt(0);if((i||!s)&&((qt(t)!=="body"||ve(o))&&(a=we(t)),i)){let h=Bt(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}!i&&o&&(l.x=He(o));let c=o&&!i&&!s?Fi(o,a):vt(0),d=r.left+a.scrollLeft-l.x-c.x,u=r.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:r.width,height:r.height}}function pn(n){return bt(n).position==="static"}function Ni(n,t){if(!At(n)||bt(n).position==="fixed")return null;if(t)return t(n);let e=n.offsetParent;return wt(n)===e&&(e=e.ownerDocument.body),e}function _i(n,t){let e=ut(n);if(ye(n))return e;if(!At(n)){let o=Dt(n);for(;o&&!ie(o);){if(gt(o)&&!pn(o))return o;o=Dt(o)}return e}let i=Ni(n,t);for(;i&&Ri(i)&&pn(i);)i=Ni(i,t);return i&&ie(i)&&pn(i)&&!Me(i)?e:i||Di(n)||e}var or=async function(n){let t=this.getOffsetParent||_i,e=this.getDimensions,i=await e(n.floating);return{reference:ir(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function sr(n){return bt(n).direction==="rtl"}var rr={convertOffsetParentRelativeRectToViewportRelativeRect:Ys,getDocumentElement:wt,getClippingRect:er,getOffsetParent:_i,getElementRects:or,getClientRects:Xs,getDimensions:nr,getScale:oe,isElement:gt,isRTL:sr};function $i(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function ar(n,t,e){let i=null,o,s=wt(n);function r(){var d;clearTimeout(o),(d=i)==null||d.disconnect(),i=null}function a(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),r();let h=n.getBoundingClientRect(),{left:m,top:f,width:v,height:w}=h;if(d||t(),!v||!w)return;let p=be(f),b=be(s.clientWidth-(m+v)),E=be(s.clientHeight-(f+w)),x=be(m),S={rootMargin:-p+"px "+-b+"px "+-E+"px "+-x+"px",threshold:mt(0,Ot(1,u))||1},A=!0;function y(W){let $=W[0].intersectionRatio;if(!$i(h,n.getBoundingClientRect()))return a();if($!==u){if(!A)return a();$?a(!1,$):o=setTimeout(()=>{a(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(y,{...S,root:s.ownerDocument})}catch{i=new IntersectionObserver(y,S)}i.observe(n)}let l=ut(n),c=()=>a(e);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),r()}}function zi(n,t,e,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=mn(n),d=o||s?[...c?ne(c):[],...t?ne(t):[]]:[];d.forEach(p=>{o&&p.addEventListener("scroll",e),s&&p.addEventListener("resize",e)});let u=c&&a?ar(c,e,s):null,h=-1,m=null;r&&(m=new ResizeObserver(p=>{let[b]=p;b&&b.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),e()}),c&&!l&&m.observe(c),t&&m.observe(t));let f,v=l?Bt(n):null;l&&w();function w(){let p=Bt(n);v&&!$i(v,p)&&e(),v=p,f=requestAnimationFrame(w)}return e(),()=>{var p;d.forEach(b=>{o&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),u==null||u(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(f)}}var qi=Ci;var Bi=Li,Ki=Ai,ji=ki;var Vi=(n,t,e)=>{let i=new Map,o=e??{},s={...rr,...o.platform,_c:i};return Si(n,t,{...o,platform:s})};function Kt(n,t,e={}){let{placement:i="bottom-start",strategy:o="absolute",offset:s=4,flip:r=!0,shift:a=!0,padding:l=8,matchWidth:c=!1}=e,d=[qi(s),...r?[Ki({padding:l})]:[],...a?[Bi({padding:l})]:[],...c?[ji({apply({rects:h}){Object.assign(t.style,{width:`${h.reference.width}px`})}})]:[]];return t.style.position=o,zi(n,t,async()=>{let h=await Vi(n,t,{placement:i,strategy:o,middleware:d});Object.assign(t.style,{left:`${h.x}px`,top:`${h.y}px`});let m=h.placement.split("-")[0];t.setAttribute("data-side",m)})}var gn=class{constructor(n){g(this,"opts");g(this,"buffer","");g(this,"timerId",null);g(this,"timeout");this.opts=n,this.timeout=n.timeout??1e3}handle(n){if(n.length!==1)return!1;this.timerId!==null&&clearTimeout(this.timerId),this.buffer+=n.toLowerCase(),this.timerId=setTimeout(()=>{this.buffer="",this.timerId=null},this.timeout);let t=this.opts.getItemCount();for(let e=0;e<t;e++)if(this.opts.getItemText(e).toLowerCase().startsWith(this.buffer))return this.opts.onMatch(e),!0;return!0}reset(){this.buffer="",this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}};var Ui=class extends tt{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"valueEl",null);g(this,"items",[]);g(this,"nativeSelect",null);g(this,"hiddenInput",null);g(this,"labelEl",null);g(this,"onLabelClick",t=>{var e;t.target.closest("[data-part=\'trigger\']")||(t.preventDefault(),(e=this.trigger)==null||e.focus())});g(this,"dismiss",null);g(this,"typeahead",null);g(this,"cleanupFloating",null);g(this,"_open",!1);g(this,"_value","");g(this,"highlighted",-1);g(this,"syncing",!1);g(this,"onNativeChange",()=>{this.syncing||this.refresh()});g(this,"onFormReset",()=>setTimeout(()=>this.refresh()));g(this,"onTriggerClick",()=>{this.isDisabled||(this._open?this.close():this.show())});g(this,"onTriggerKeyUp",t=>{t.key===" "&&t.preventDefault()});g(this,"onTriggerKey",t=>{var s,r;if(this.isDisabled)return;let e=this.enabled();if(!this._open){if(t.key==="ArrowDown"||t.key==="ArrowUp"||t.key==="Enter"||t.key===" "||t.altKey&&t.key==="ArrowDown")t.preventDefault(),this.show(),t.key==="ArrowUp"&&e.length&&this.highlight(this.items.indexOf(e[e.length-1]));else if(t.key==="Home"||t.key==="End"){t.preventDefault(),this.show();let a=t.key==="Home"?e[0]:e[e.length-1];a&&this.highlight(this.items.indexOf(a))}else t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&((s=this.typeahead)==null||s.handle(t.key));return}if(!e.length)return;let i=this.highlighted>=0?e.indexOf(this.items[this.highlighted]):-1,o=a=>{t.preventDefault(),this.highlight(this.items.indexOf(e[a]))};switch(t.key){case"ArrowDown":return o(Math.min(i+1,e.length-1));case"ArrowUp":return t.altKey?(t.preventDefault(),this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close()):o(Math.max(i-1,0));case"Home":return o(0);case"End":return o(e.length-1);case"PageDown":return o(Math.min(i+10,e.length-1));case"PageUp":return o(Math.max(i-10,0));case"Enter":case" ":return t.preventDefault(),this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close();case"Tab":return this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close(!1);default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&((r=this.typeahead)==null||r.handle(t.key))}});g(this,"onListClick",t=>{let e=t.target.closest("[data-part=\'item\']");!e||!this.items.includes(e)||ft(e)||(this.select(e),this.close())});g(this,"onListPointer",t=>{let e=t.target.closest("[data-part=\'item\']");e&&this.items.includes(e)&&!ft(e)&&this.highlight(this.items.indexOf(e))});g(this,"preventBlur",t=>t.preventDefault())}get open(){return this._open}get value(){return this._value}set value(t){let e=this.items.find(i=>i.dataset.value===t);e&&this.select(e,!1)}get isDisabled(){var t;return this.hasAttribute("disabled")||!!((t=this.nativeSelect)!=null&&t.disabled)}refresh(){var i;let t=this.nativeSelect;if(!t)return;let e=this.items.find(o=>o.dataset.value===t.value);e&&this.select(e,!1),(i=this.trigger)==null||i.setAttribute("aria-disabled",String(this.isDisabled))}enabled(){return this.items.filter(t=>!ft(t))}setup(){var a,l;if(this.nativeSelect=rt(this,"select"),this.nativeSelect&&!rt(this,"[data-part=\'trigger\']")&&this.buildFromNative(this.nativeSelect),this.trigger=rt(this,"[data-part=\'trigger\']"),this.content=rt(this,"[data-part=\'content\']"),this.valueEl=rt(this,"[data-part=\'value\']"),!this.trigger||!this.content)return;let{trigger:t,content:e}=this;this.items=xt(this,"[data-part=\'item\']");let i=st("db-select");e.id||(e.id=`${i}-listbox`),e.setAttribute("role","listbox"),e.hidden=!0,t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",e.id),t instanceof HTMLButtonElement&&!t.hasAttribute("type")&&(t.type="button"),this.isDisabled&&t.setAttribute("aria-disabled","true"),this.items.forEach((c,d)=>{c.id||(c.id=`${i}-item-${d}`),c.setAttribute("role","option"),c.setAttribute("aria-selected","false")}),xt(this,"[data-part=\'group\']").forEach(c=>{c.setAttribute("role","group");let d=c.querySelector("[data-part=\'label\']");d&&(d.id||(d.id=st("db-select-label")),c.setAttribute("aria-labelledby",d.id))});let o=this.getAttribute("name");o&&!this.nativeSelect&&(this.hiddenInput=document.createElement("input"),this.hiddenInput.type="hidden",this.hiddenInput.name=o,this.hasAttribute("required")&&(this.hiddenInput.required=!0),this.appendChild(this.hiddenInput)),this.typeahead=new gn({getItemCount:()=>this.enabled().length,getItemText:c=>{var d,u;return((u=(d=this.enabled()[c])==null?void 0:d.textContent)==null?void 0:u.trim())??""},onMatch:c=>{let d=this.enabled()[c];d&&(this._open?this.highlight(this.items.indexOf(d)):this.select(d))}}),this.dismiss=new _t(e,{onDismiss:c=>this.close(c!=="outside-press")});let s=((a=this.nativeSelect)==null?void 0:a.value)??this.getAttribute("default-value")??"",r=this.items.find(c=>c.dataset.value===s);r&&ft(r)?this.valueEl&&(this.valueEl.textContent=((l=r.textContent)==null?void 0:l.trim())??"",this.valueEl.setAttribute("data-placeholder","")):r&&this.select(r,!1),this.setState("closed")}buildFromNative(t){let e=document.createElement("button");e.type="button",e.setAttribute("data-part","trigger"),e.className="db-select-trigger";let i=t.getAttribute("aria-label"),o=t.getAttribute("aria-labelledby"),s=!o&&t.id?document.querySelector(`label[for="${CSS.escape(t.id)}"]`):null;s&&(o=s.id||(s.id=st("db-select-for"))),i&&e.setAttribute("aria-label",i),o&&e.setAttribute("aria-labelledby",o);let r=t.closest("label");if(r){if(this.labelEl=r,!i&&!o){let u=Array.from(r.childNodes).filter(h=>!(h instanceof Element&&(h===t||h.contains(t)||h.localName==="db-select"))).map(h=>h.textContent??"").join(" ").replace(/\\s+/g," ").trim();u&&e.setAttribute("aria-label",u)}}else s&&(this.labelEl=s);let a=document.createElement("span");a.setAttribute("data-part","value"),a.className="db-select-value";let l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("viewBox","0 0 24 24"),l.setAttribute("aria-hidden","true"),l.setAttribute("class","db-select-chevron"),l.innerHTML=\'<path d="m6 9 6 6 6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\',e.append(a,l);let c=document.createElement("div");c.setAttribute("data-part","content"),c.className="db-select-content";let d=(u,h)=>{let m=document.createElement("div");m.setAttribute("data-part","item"),m.className="db-select-item",m.dataset.value=u.value;for(let[f,v]of Object.entries(u.dataset))v!=null&&(m.dataset[f]=v);u.disabled&&m.setAttribute("aria-disabled","true"),m.textContent=u.textContent??u.value,h.appendChild(m)};for(let u of Array.from(t.children))if(u instanceof HTMLOptGroupElement){let h=document.createElement("div");h.setAttribute("data-part","group");let m=document.createElement("div");m.setAttribute("data-part","label"),m.className="db-select-label",m.textContent=u.label,h.appendChild(m);for(let f of Array.from(u.children))f instanceof HTMLOptionElement&&d(f,h);c.appendChild(h)}else u instanceof HTMLOptionElement&&d(u,c);t.hidden=!0,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),this.append(e,c)}connect(){var t,e,i,o,s,r,a,l,c,d;(t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),(e=this.trigger)==null||e.addEventListener("keydown",this.onTriggerKey),(i=this.trigger)==null||i.addEventListener("keyup",this.onTriggerKeyUp),(o=this.nativeSelect)==null||o.addEventListener("change",this.onNativeChange),(r=(s=this.nativeSelect)==null?void 0:s.form)==null||r.addEventListener("reset",this.onFormReset),(a=this.labelEl)==null||a.addEventListener("click",this.onLabelClick),(l=this.content)==null||l.addEventListener("click",this.onListClick),(c=this.content)==null||c.addEventListener("pointermove",this.onListPointer),(d=this.content)==null||d.addEventListener("mousedown",this.preventBlur)}disconnect(){var t,e,i,o,s,r,a,l,c,d;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),(e=this.trigger)==null||e.removeEventListener("keydown",this.onTriggerKey),(i=this.trigger)==null||i.removeEventListener("keyup",this.onTriggerKeyUp),(o=this.nativeSelect)==null||o.removeEventListener("change",this.onNativeChange),(r=(s=this.nativeSelect)==null?void 0:s.form)==null||r.removeEventListener("reset",this.onFormReset),(a=this.labelEl)==null||a.removeEventListener("click",this.onLabelClick),(l=this.content)==null||l.removeEventListener("click",this.onListClick),(c=this.content)==null||c.removeEventListener("pointermove",this.onListPointer),(d=this.content)==null||d.removeEventListener("mousedown",this.preventBlur),this._open&&this.close(!1)}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}show(){var r,a;let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0;let i=Qt(e);this.setState("open"),t.setAttribute("aria-expanded","true"),this.cleanupFloating=Kt(t,e,{placement:"bottom-start",offset:4,matchWidth:!this.hasAttribute("auto-width"),strategy:i==="top-layer"?"fixed":"absolute"});let s=this.items.find(l=>l.dataset.value===this._value&&!ft(l))??this.enabled()[0];s&&this.highlight(this.items.indexOf(s)),(r=this.dismiss)==null||r.activate(),(a=this.typeahead)==null||a.reset(),t.focus()}close(t=!0){var o,s,r;let{trigger:e,content:i}=this;!e||!i||!this._open||(this._open=!1,(o=this.dismiss)==null||o.deactivate(),(s=this.cleanupFloating)==null||s.call(this),this.cleanupFloating=null,Zt(i),this.setState("closed"),e.setAttribute("aria-expanded","false"),e.removeAttribute("aria-activedescendant"),this.items.forEach(a=>a.removeAttribute("data-highlighted")),this.highlighted=-1,(r=this.typeahead)==null||r.reset(),t&&e.focus())}highlight(t){var r;let e=this.items[t],i=this.content;if(!e||!i||!this.trigger)return;this.highlighted>=0&&((r=this.items[this.highlighted])==null||r.removeAttribute("data-highlighted")),this.highlighted=t,e.setAttribute("data-highlighted",""),this.trigger.setAttribute("aria-activedescendant",e.id);let o=e.offsetTop,s=o+e.offsetHeight;o<i.scrollTop?i.scrollTop=o:s>i.scrollTop+i.clientHeight&&(i.scrollTop=s-i.clientHeight)}select(t,e=!0){var s;if(ft(t))return;let i=t.dataset.value??"",o=i!==this._value;this._value=i;for(let r of this.items){let a=r===t;r.setAttribute("aria-selected",String(a)),a?r.setAttribute("data-state","checked"):r.removeAttribute("data-state")}if(this.valueEl&&(this.valueEl.textContent=((s=t.textContent)==null?void 0:s.trim())??"",this.valueEl.removeAttribute("data-placeholder")),this.hiddenInput&&(this.hiddenInput.value=i),!e||!o){this.nativeSelect&&(this.nativeSelect.value=i);return}if(this.nativeSelect){this.nativeSelect.value=i,this.syncing=!0;try{this.nativeSelect.dispatchEvent(new Event("input",{bubbles:!0})),this.nativeSelect.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.syncing=!1}}this.dispatchEvent(new CustomEvent("db-select:change",{detail:{value:i},bubbles:!0}))}};et();customElements.get("db-select")||customElements.define("db-select",Ui);var Wi=class extends tt{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"dismiss",null);g(this,"cleanupFloating",null);g(this,"_open",!1);g(this,"onTriggerClick",()=>this.toggle());g(this,"onContentClick",t=>{let e=t.target.closest("[data-part=\'close\']");e&&e.closest("db-popover")===this&&this.close("close-press")})}get open(){return this._open}setup(){var e;if(this.trigger=Gt(rt(this,"[data-part=\'trigger\']")),this.content=rt(this,"[data-part=\'content\']"),!this.trigger||!this.content)return;let t=this.content;t.id||(t.id=st("db-popover")),t.hasAttribute("role")||t.setAttribute("role","dialog"),!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("aria-label")&&((e=this.trigger).id||(e.id=st("db-popover-trigger")),t.setAttribute("aria-labelledby",this.trigger.id)),t.hidden=!0,this.trigger.setAttribute("aria-haspopup","dialog"),this.trigger.setAttribute("aria-controls",t.id),this.trigger.setAttribute("aria-expanded","false"),this.setState("closed"),this.dismiss=new _t(t,{onDismiss:i=>this.close(i)})}connect(){var t,e;(t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),(e=this.content)==null||e.addEventListener("click",this.onContentClick)}disconnect(){var t,e;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),(e=this.content)==null||e.removeEventListener("click",this.onContentClick),this._open&&this.close("api")}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}placement(){var o,s;let t=this.getAttribute("placement");if(t)return t;let e=((o=this.content)==null?void 0:o.dataset.side)||"bottom",i=((s=this.content)==null?void 0:s.dataset.align)||"center";return`${e}${i!=="center"?`-${i}`:""}`}toggle(){this._open?this.close("trigger-press"):this.show()}show(){var o;let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0;let i=Qt(e);this.setState("open"),t.setAttribute("aria-expanded","true"),this.cleanupFloating=Kt(t,e,{placement:this.placement(),offset:Number(this.getAttribute("offset")??8),strategy:i==="top-layer"?"fixed":"absolute"}),(o=this.dismiss)==null||o.activate(),this.hasAttribute("no-autofocus")||requestAnimationFrame(()=>{this._open&&(Qn(e)[0]??e).focus({preventScroll:!0})}),this.dispatchEvent(new CustomEvent("db-popover:open",{bubbles:!0}))}close(t="api"){var s,r;let{trigger:e,content:i}=this;if(!e||!i||!this._open)return;this._open=!1,(s=this.dismiss)==null||s.deactivate(),(r=this.cleanupFloating)==null||r.call(this),this.cleanupFloating=null;let o=i.contains(document.activeElement);Zt(i),this.setState("closed"),e.setAttribute("aria-expanded","false"),t!=="outside-press"&&(o||t==="escape-key"||t==="close-press")&&e.focus(),this.dispatchEvent(new CustomEvent("db-popover:close",{detail:{reason:t},bubbles:!0}))}};et();customElements.get("db-popover")||customElements.define("db-popover",Wi);var Yi="db-announcement-closed:";var Xi=class extends tt{constructor(){super(...arguments);g(this,"closeButton",null);g(this,"onClose",()=>this.close())}setup(){var t;this.closeButton=[...this.querySelectorAll("[data-part=\'close\']")].find(e=>e.closest("db-announcement")===this)??null,this.closeButton&&!this.closeButton.hasAttribute("aria-label")&&!((t=this.closeButton.textContent)!=null&&t.trim())&&this.closeButton.setAttribute("aria-label","Close announcement")}connect(){var t;(t=this.closeButton)==null||t.addEventListener("click",this.onClose)}disconnect(){var t;(t=this.closeButton)==null||t.removeEventListener("click",this.onClose)}close(){var i;let t=this.getAttribute("announcement-id")??"";try{t&&localStorage.setItem(Yi+t,"1")}catch{}let e=this.contains(document.activeElement);if(document.documentElement.setAttribute("data-announcement-closed",""),this.hidden=!0,this.style.display="none",e){let o=document.querySelector("main, [role=\'main\']");o?(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus({preventScroll:!0})):(i=document.activeElement)==null||i.blur()}this.dispatchEvent(new CustomEvent("db-announcement:close",{bubbles:!0,detail:{id:t}}))}};et();customElements.get("db-announcement")||customElements.define("db-announcement",Xi);var Gi=class extends tt{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"cleanupFloating",null);g(this,"showTimer",null);g(this,"hideTimer",null);g(this,"_open",!1);g(this,"onEnter",t=>{t.pointerType!=="touch"&&(this.clearTimers(),this._open||(this.showTimer=setTimeout(()=>this.show(),this.num("delay",200))))});g(this,"onLeave",t=>{t.pointerType!=="touch"&&(this.clearTimers(),this.hideTimer=setTimeout(()=>this.hide(),this.num("close-delay",100)))});g(this,"onContentEnter",()=>this.clearTimers());g(this,"onFocus",()=>{let t=!0;try{t=this.trigger.matches(":focus-visible")}catch{}t&&(this.clearTimers(),this.show())});g(this,"onBlur",()=>this.hide());g(this,"onPress",()=>this.hide());g(this,"onKey",t=>{t.key==="Escape"&&this._open&&(t.preventDefault(),t.stopImmediatePropagation(),this.hide())})}get open(){return this._open}num(t,e){let i=Number(this.getAttribute(t));return Number.isFinite(i)&&this.hasAttribute(t)?i:e}setup(){var e;if(this.trigger=Gt(rt(this,"[data-part=\'trigger\']")),this.content=rt(this,"[data-part=\'content\']"),!this.trigger||!this.content)return;(e=this.content).id||(e.id=st("db-tooltip")),this.content.setAttribute("role","tooltip"),this.content.hidden=!0;let t=(this.trigger.getAttribute("aria-describedby")??"").split(/\\s+/).filter(Boolean);t.includes(this.content.id)||this.trigger.setAttribute("aria-describedby",[...t,this.content.id].join(" ")),this.setState("closed")}connect(){let{trigger:t,content:e}=this;!t||!e||(t.addEventListener("pointerenter",this.onEnter),t.addEventListener("pointerleave",this.onLeave),t.addEventListener("focus",this.onFocus),t.addEventListener("blur",this.onBlur),t.addEventListener("pointerdown",this.onPress),e.addEventListener("pointerenter",this.onContentEnter),e.addEventListener("pointerleave",this.onLeave))}disconnect(){let{trigger:t,content:e}=this;t==null||t.removeEventListener("pointerenter",this.onEnter),t==null||t.removeEventListener("pointerleave",this.onLeave),t==null||t.removeEventListener("focus",this.onFocus),t==null||t.removeEventListener("blur",this.onBlur),t==null||t.removeEventListener("pointerdown",this.onPress),e==null||e.removeEventListener("pointerenter",this.onContentEnter),e==null||e.removeEventListener("pointerleave",this.onLeave),this.hide()}clearTimers(){this.showTimer&&clearTimeout(this.showTimer),this.hideTimer&&clearTimeout(this.hideTimer),this.showTimer=this.hideTimer=null}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}show(){let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0,this.clearTimers();let i=Qt(e);this.setState("open"),this.cleanupFloating=Kt(t,e,{placement:this.getAttribute("placement")||e.dataset.side||"top",offset:8,strategy:i==="top-layer"?"fixed":"absolute"}),document.addEventListener("keydown",this.onKey,!0),this.dispatchEvent(new CustomEvent("db-tooltip:open",{bubbles:!0}))}hide(){var t;this.clearTimers(),!(!this._open||!this.content)&&(this._open=!1,document.removeEventListener("keydown",this.onKey,!0),(t=this.cleanupFloating)==null||t.call(this),this.cleanupFloating=null,Zt(this.content),this.setState("closed"),this.dispatchEvent(new CustomEvent("db-tooltip:close",{bubbles:!0})))}};et();customElements.get("db-tooltip")||customElements.define("db-tooltip",Gi);var Pe="db-choice-change",Zi="db-choice-request",Ji=/^[a-z][a-z0-9-]*$/,Mt=(n,t)=>n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0;function _e(){if(typeof document>"u")return{};try{let n=JSON.parse(document.documentElement.getAttribute("data-choices")||"{}");return n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{return{}}}var to=n=>Array.isArray(n==null?void 0:n.values)?n.values.filter(t=>typeof t=="string"):[];function bn(n){return Ji.test(n)&&Mt(_e(),n)!==void 0}function vn(n){if(!bn(n))return;let t=document.documentElement.getAttribute(`data-choice-${n}`);return t!==null&&to(Mt(_e(),n)).includes(t)?t:void 0}function cr(n){let t=n.replace(/[\\u0000- \\u007f]+/g,"").toLowerCase();return!/^(?:javascript|vbscript|data):/.test(t)}function lr(n){try{let t=document.cookie.match(new RegExp(`(?:^|; )${n}=([^;]*)`));return t?decodeURIComponent(t[1]):null}catch{return null}}function dr(n,t,e){let i=`db-choice-${n}`;if(t.store==="cookie"){try{document.cookie=`${i}=${encodeURIComponent(e)}; path=/; max-age=31536000; samesite=lax`}catch{}if(lr(i)===e)return}if(t.store!=="none")try{localStorage.setItem(i,e)}catch{}}function Fe(n=document){let t=_e();for(let e of Array.from(n.querySelectorAll("[data-choice-value]"))){let[i="",o=""]=(e.getAttribute("data-choice-value")??"").split(":"),s=Mt(t,i),r=vn(i);if(!s||r===void 0)continue;if(e.hasAttribute("data-choice-href")){let c=Mt(Mt(s.hrefs,o),r);if(typeof c=="string"&&cr(c)){e.setAttribute("href",c);let d=/^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i.test(c);e.setAttribute("data-link-kind",d?"external":"internal"),d?e.setAttribute("rel","noopener"):e.removeAttribute("rel")}continue}let a=Mt(Mt(s.keys,o),r);if(typeof a!="string")continue;let l=e.getAttribute("data-choice-part");if(l){e.textContent=l.split("/")[1]==="0"?a:"";continue}e.textContent=a}}function yn(n,t){let e=Mt(_e(),n);if(!e||!to(e).includes(t))return!1;if(document.documentElement.getAttribute(`data-choice-${n}`)===t)return!0;document.documentElement.setAttribute(`data-choice-${n}`,t),dr(n,e,t);try{let i=new URL(location.href),o=typeof e.param=="string"&&Ji.test(e.param)?e.param:n;i.searchParams.has(o)&&(i.searchParams.set(o,t),history.replaceState(history.state,"",i))}catch{}return Fe(),document.dispatchEvent(new CustomEvent(Pe,{detail:{name:n,value:t}})),!0}var Qi=!1;function wn(){Qi||typeof document>"u"||(Qi=!0,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Fe(),{once:!0}):Fe())}var eo=class extends tt{constructor(){super(...arguments);g(this,"select",null);g(this,"onChange",()=>{let t=this.getAttribute("name")??"";this.select&&!yn(t,this.select.value)&&this.sync()});g(this,"onChoice",(t=>{var e;((e=t.detail)==null?void 0:e.name)===this.getAttribute("name")&&this.sync()}))}sync(){let t=vn(this.getAttribute("name")??"");this.select&&t!==void 0&&(this.select.value=t)}setup(){this.select=this.querySelector("select"),bn(this.getAttribute("name")??"")||(this.hidden=!0),this.sync(),wn()}connect(){var t;(t=this.select)==null||t.addEventListener("change",this.onChange),document.addEventListener(Pe,this.onChoice)}disconnect(){var t;(t=this.select)==null||t.removeEventListener("change",this.onChange),document.removeEventListener(Pe,this.onChoice)}};et();typeof document<"u"&&(wn(),document.addEventListener(Zi,(n=>{var t;typeof((t=n.detail)==null?void 0:t.name)=="string"&&typeof n.detail.value=="string"&&yn(n.detail.name,n.detail.value)})));typeof customElements<"u"&&!customElements.get("db-choice-select")&&customElements.define("db-choice-select",eo);var no="sidebar_state",ur="b",hr=768,Ee=new WeakMap;function fr(n){try{return localStorage.getItem(n)}catch{return null}}function pr(n,t){try{localStorage.setItem(n,t)}catch{}}function Sn(n){if(Ee.has(n))return;let t=n.querySelector("[data-component=\'sidebar\']");if(!t)return;let e=t.dataset.collapsible||"offcanvas",i=t.dataset.side||"left",o=t.dataset.defaultOpen!=="false",s=fr(no),r=s!==null?s==="true":o,a=t.querySelector("[data-sidebar-desktop]"),l=t.querySelector("[data-sidebar-mobile]"),c=t.querySelector("[data-sidebar-mobile-backdrop]"),d=window.matchMedia(`(max-width: ${hr-1}px)`),u={provider:n,sidebar:t,desktopSidebar:a,mobileSidebar:l,mobileBackdrop:c,collapsible:e,side:i,open:r,openMobile:!1,isMobile:d.matches,mediaQuery:d};Ee.set(n,u),io(u);let h=v=>{u.isMobile=v.matches,!v.matches&&u.openMobile&&It(n)};d.addEventListener("change",h);let m=v=>{v.key===ur&&(v.metaKey||v.ctrlKey)?(v.preventDefault(),En(n)):v.key==="Escape"&&u.openMobile&&(v.preventDefault(),It(n))};document.addEventListener("keydown",m),mr(n,u),c&&c.addEventListener("click",()=>{It(n)});let f=t.querySelector("[data-part=\'rail\']");f&&f.addEventListener("click",()=>{En(n)})}function mr(n,t){n.querySelectorAll("[data-part=\'sidebar-trigger\']").forEach(e=>{e.addEventListener("click",()=>{En(n)})})}function En(n){let t=Ee.get(n);t&&(t.isMobile?t.openMobile?It(n):gr(n):(t.open=!t.open,io(t),pr(no,String(t.open))))}function io(n){let t=n.open?"expanded":"collapsed";n.provider.setAttribute("data-state",t),n.sidebar.setAttribute("data-state",t),n.desktopSidebar&&(n.desktopSidebar.setAttribute("data-state",t),n.open?n.desktopSidebar.setAttribute("data-collapsible",""):n.desktopSidebar.setAttribute("data-collapsible",n.collapsible))}function gr(n){var i;let t=Ee.get(n);if(!t||t.openMobile||!t.mobileSidebar)return;t.openMobile=!0;let e=(i=t.desktopSidebar)==null?void 0:i.querySelector("[data-sidebar=\'sidebar-inner\']");if(e)for(;e.firstChild;)t.mobileSidebar.appendChild(e.firstChild);t.mobileSidebar.hidden=!1,t.mobileSidebar.setAttribute("data-state","open"),t.mobileBackdrop&&(t.mobileBackdrop.hidden=!1),Ft.activate(),requestAnimationFrame(()=>{var s;let o=(s=t.mobileSidebar)==null?void 0:s.querySelector(\'a, button, [tabindex]:not([tabindex="-1"])\');o==null||o.focus()})}function It(n){var o;let t=Ee.get(n);if(!t||!t.openMobile||!t.mobileSidebar)return;t.openMobile=!1;let e=(o=t.desktopSidebar)==null?void 0:o.querySelector("[data-sidebar=\'sidebar-inner\']");if(e&&t.mobileSidebar)for(;t.mobileSidebar.firstChild;)e.appendChild(t.mobileSidebar.firstChild);t.mobileSidebar.setAttribute("data-state","closed"),t.mobileSidebar.hidden=!0,t.mobileBackdrop&&(t.mobileBackdrop.hidden=!0),Ft.deactivate();let i=t.provider.querySelector("[data-part=\'sidebar-trigger\']");i==null||i.focus()}function xn(){document.querySelectorAll("[data-component=\'sidebar-provider\']").forEach(n=>{Sn(n)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",xn):xn();document.addEventListener("astro:page-load",xn);var oo=/^[a-z][a-z0-9_-]{0,63}$/,$e={docs:"docs.js",shard:n=>`t-${n}.js`,fragment:n=>`f-${n}.js`},ze={docs:"docs",shard:n=>n,fragment:n=>`frag:${n}`};var br={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},vr={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},yr="[^aeiou]",Cn="[aeiouy]",Nt="("+yr+"[^aeiouy]*)",Be="("+Cn+"[aeiou]*)",An=new RegExp("^"+Nt+"?"+Be+Nt),wr=new RegExp("^"+Nt+"?"+Be+Nt+Be+"?$"),qe=new RegExp("^"+Nt+"?("+Be+Nt+"){2,}"),so=new RegExp("^"+Nt+"?"+Cn),ro=new RegExp("^"+Nt+Cn+"[^aeiouwxy]$"),Er=/ll$/,xr=/^(.+?)e$/,Sr=/^(.+?)y$/,Ar=/^(.+?(s|t))(ion)$/,Cr=/^(.+?)(ed|ing)$/,Lr=/(at|bl|iz)$/,kr=/^(.+?)eed$/,Tr=/^.+?[^s]s$/,Or=/^.+?(ss|i)es$/,Rr=/([^aeiouylsz])\\1$/,Dr=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,Mr=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,Ir=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;function ao(n){let t=String(n).toLowerCase();if(t.length<3)return t;let e=!1;t.codePointAt(0)===121&&(e=!0,t="Y"+t.slice(1)),Or.test(t)?t=t.slice(0,-2):Tr.test(t)&&(t=t.slice(0,-1));let i;return(i=kr.exec(t))?An.test(i[1])&&(t=t.slice(0,-1)):(i=Cr.exec(t))&&so.test(i[1])&&(t=i[1],Lr.test(t)?t+="e":Rr.test(t)?t=t.slice(0,-1):ro.test(t)&&(t+="e")),(i=Sr.exec(t))&&so.test(i[1])&&(t=i[1]+"i"),(i=Dr.exec(t))&&An.test(i[1])&&(t=i[1]+br[i[2]]),(i=Mr.exec(t))&&An.test(i[1])&&(t=i[1]+vr[i[2]]),(i=Ir.exec(t))?qe.test(i[1])&&(t=i[1]):(i=Ar.exec(t))&&qe.test(i[1])&&(t=i[1]),(i=xr.exec(t))&&(qe.test(i[1])||wr.test(i[1])&&!ro.test(i[1]))&&(t=i[1]),Er.test(t)&&qe.test(t)&&(t=t.slice(0,-1)),e&&(t="y"+t.slice(1)),t}var co=new Set("a an and are as at be by for from has have in is it its of on or that the this to was were will with you your can not".split(" ")),Nr=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}]/u,xe;function Hr(n){if(xe===void 0)try{xe=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"word"}):null}catch{xe=null}if(xe)return[...xe.segment(n)].filter(i=>i.isWordLike).map(i=>i.segment);let t=[...n];if(t.length<2)return t;let e=[];for(let i=0;i<t.length-1;i++)e.push(t[i]+t[i+1]);return e}function jt(n){let t=[];for(let e of n.toLowerCase().normalize("NFKD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").matchAll(/[\\p{L}\\p{N}][\\p{L}\\p{N}_.-]*[\\p{L}\\p{N}]|[\\p{L}\\p{N}]/gu)){let i=e[0],o=i.split(/[._-]+/).filter(Boolean);if(o.length>1&&t.push(i),o.length>1&&!/[._]/.test(i)){let s=o.join("");s.length>=3&&!co.has(s)&&t.push(s)}for(let s of o)Nr.test(s)?t.push(...Hr(s)):s.length>=2&&!co.has(s)&&t.push(s)}return t}function Ln(n,t){let e="";for(let i of n.slice(0,t))e+=/[a-z0-9]/.test(i)?i:`_${i.codePointAt(0).toString(16)}_`;return e}function Se(n){if(!(!n||!/^en(-|$)/i.test(n)))return t=>/^[a-z]{3,}$/.test(t)?ao(t):t}function Vt(n,t={}){var w,p;let e=[],i=[],o=[],s=!1,r={tag:[],section:[]},a={tag:[],section:[]},l=Object.create(null),c=Object.create(null),d=["tag","section",...new Set((t.facets??[]).filter(b=>oo.test(b)&&b!=="tag"&&b!=="section"))],u=new RegExp(`(?<!\\\\S)(-?)(${d.join("|")}):(?:"([^"]*)"?|(?!\\\\/\\\\/)(\\\\S*))|(-?)"([^"]*)"?|(\\\\S+)`,"gi"),h=[...n.matchAll(u)].map(b=>{var E;return{facetNeg:b[1]==="-",facet:(E=b[2])==null?void 0:E.toLowerCase(),value:b[3]??b[4],neg:b[5],phrase:b[6],word:b[7]}}),m=!1,f=!1;for(let[b,E]of h.entries()){if(E.facet){let O=Rn(E.value??"");if(!O)continue;E.facet==="tag"||E.facet==="section"?(E.facetNeg?a:r)[E.facet].push(O):((w=E.facetNeg?c:l)[p=E.facet]??(w[p]=[])).push(O);continue}let x=E.word;if(x==="OR"){f=e.length>0,s=!0;continue}if(x==="NOT"){m=!0,s=!0;continue}if(x==="AND"){s=!0;continue}let D=E.phrase!==void 0,S=m||E.neg==="-"||(x==null?void 0:x.startsWith("-"))&&x.length>1;m=!1;let A=D?E.phrase:S&&(x!=null&&x.startsWith("-"))?x.slice(1):x,y=[...new Set(jt(A))];if(!y.length){f=!1;continue}if(S){i.push(D?y:[y[0]]),s=!0,f=!1;continue}if(D){f=!1,s=!0,y.length>1&&o.push(jt(A).join(" "));for(let O of y)e.push({terms:[O],prefix:!1,exact:!0});continue}let W=b===h.length-1&&!/\\s$/.test(n);if(f){e[e.length-1].terms.push(y[0]);for(let O of y.slice(1))e.push({terms:[O],prefix:!1});f=!1;continue}let $=y[0],G=/[._-]/.test($),C=$.replace(/-/g,"");for(let[O,q]of y.entries())e.push({terms:[q],prefix:W&&q.length>=2&&(O===y.length-1||G&&(q===$||q===C))})}let v=[...new Set(e.flatMap(b=>b.terms))];return{groups:e,not:i,phrases:o,strict:s,highlight:v,filters:r,notFilters:a,...Object.keys(l).length?{facets:l}:{},...Object.keys(c).length?{notFacets:c}:{}}}async function Pr(n,t){let e=await t.meta(),i=typeof n=="string"?Vt(n,{facets:Dn([e])}):n,o=await po(i,e,t),s=bo(i,e);if(!i.groups.length)return mo(e,o,s);let r=[];for(let l of i.groups)r.push(await $r(l,e,t));let a=Tn(r,e,o,s,"and").sort(Ke);return a.length||i.strict?a:Tn(r,e,o,s,"or").sort(Ke)}var Ke=(n,t)=>t.score-n.score;async function po(n,t,e){let i=new Set;for(let o of n.not){let s;for(let r of o){let[a]=go(r,t),l=a?await e.shard(a):void 0,c=l&&Object.hasOwn(l,r)?l[r]:[],d=new Set;for(let u=0;u<c.length;u+=2)(!s||s.has(c[u]))&&d.add(c[u]);s=d}for(let r of s??[])i.add(r)}return i}function mo(n,t,e){if(!e)return[];let i=[];return n.docs.forEach(([o,s,r],a)=>e(a)&&!t.has(a)&&i.push({id:a,title:o,url:s,section:n.sections[r]??"",score:1})),i}function Tn(n,t,e,i,o){let s=new Map,r=new Map;for(let l of n)for(let[c,d]of l)s.set(c,(s.get(c)??0)+d),r.set(c,(r.get(c)??0)+1);let a=[];for(let[l,c]of s){if(e.has(l)||i&&!i(l)||o==="and"&&r.get(l)!==n.length)continue;let[d,u,h]=t.docs[l];a.push({id:l,title:d,url:u,section:t.sections[h]??"",score:c*(r.get(l)/n.length)})}return a}var Ct={prefix:.6,stem:.4,titleAll:1.5,titleExact:2,headingAll:1.4,headingExact:1.8,phrase:1.5,typo:.3};function Fr(n,t){if(n===t)return!1;if(n.length===t.length){let s=[];for(let r=0;r<n.length&&s.length<=2;r++)n[r]!==t[r]&&s.push(r);return s.length===1?!0:s.length===2&&s[1]===s[0]+1&&n[s[0]]===t[s[1]]&&n[s[1]]===t[s[0]]}let[e,i]=n.length<t.length?[n,t]:[t,n];if(i.length-e.length!==1)return!1;let o=0;for(;o<e.length&&e[o]===i[o];)o++;return e.slice(o)===i.slice(o+1)}function go(n,t,e=!1){let i=_r(t);for(let s=Math.min(n.length,lo);s>=1;s--){let r=Ln(n,s);if(i.has(r))return!e||s<n.length?[r]:[r,...t.shards.filter(a=>a.length>r.length&&a.startsWith(r)).slice(0,10)]}let o=Ln(n,Math.min(n.length,lo));return e?t.shards.filter(s=>s.startsWith(o)).slice(0,10):[]}var lo=3,uo=new WeakMap;function _r(n){let t=uo.get(n);return t||uo.set(n,t=new Set(n.shards)),t}function Rn(n){return n.replace(/"/g,"").trim().toLowerCase()}function bo(n,t){let{tag:e,section:i}=n.filters,o=n.notFilters??{tag:[],section:[]},s=Object.entries(n.facets??{}).filter(([,p])=>p.length),r=Object.entries(n.notFacets??{}).filter(([,p])=>p.length);if(!e.length&&!i.length&&!o.tag.length&&!o.section.length&&!s.length&&!r.length)return;let a=(p,b)=>new Set(p.flatMap((E,x)=>b.includes(Rn(E))?[x]:[])),l=a(t.sections,i),c=a(t.tags??[],e),d=a(t.sections,o.section),u=a(t.tags??[],o.tag),h=p=>(t.facets??[]).findIndex(b=>b.name===p),m=p=>p.map(([b,E])=>{let x=h(b);return[x,x<0?new Set:a(t.facets[x].values,E)]}),f=m(s),v=m(r).filter(([p])=>p>=0),w=(p,[b,E])=>{var x;return b>=0&&(((x=p[4])==null?void 0:x[b])??[]).some(D=>E.has(D))};return p=>{let b=t.docs[p],E=b[3]??[];if(i.length&&!l.has(b[2])||e.length&&!E.some(x=>c.has(x))||d.has(b[2])||E.some(x=>u.has(x)))return!1;for(let x of f)if(!w(b,x))return!1;for(let x of v)if(w(b,x))return!1;return!0}}function Dn(n){return[...new Set(n.flatMap(t=>((t==null?void 0:t.facets)??[]).map(e=>e.name)))]}function vo(n,t){let e=Object.create(null),i=new Map,o=(s,r)=>{let a=`${s}\\0${Rn(r)}`,l=i.get(a);l===void 0&&i.set(a,l=r);let c=e[s]??(e[s]=Object.create(null));c[l]=(c[l]??0)+1};for(let s of n){let r=typeof t=="function"?t(s):t,a=r==null?void 0:r.docs[s.id];if(a){r.sections[a[2]]&&o("section",r.sections[a[2]]);for(let l of new Set(a[3]??[]))r.tags[l]!==void 0&&o("tag",r.tags[l]);(a[4]??[]).forEach((l,c)=>{var u;let d=(u=r.facets)==null?void 0:u[c];if(d)for(let h of new Set(l))d.values[h]!==void 0&&o(d.name,d.values[h])})}}return e}async function $r(n,t,e){let i=await wo(n,t,e,!0);return n.corrected=i.corrected.length?i.corrected:void 0,yo(i,On(t.count,i.docs.size))}function On(n,t){return Math.log(1+(n-t+.5)/(t+.5))}function yo(n,t){let e=new Map;for(let[i,o]of n.lists)for(let s=0;s<i.length;s+=2)e.set(i[s],Math.max(e.get(i[s])??0,i[s+1]*o*t));return e}async function wo(n,t,e,i){let o=Se(t.lang),s=new Map,r=new Map;for(let d of n.terms)for(let u of go(d,t,n.prefix)){let h=await e.shard(u);if(!h)continue;let m=(p,b)=>{b>(s.get(p)??0)&&(s.set(p,b),r.set(p,h))};Object.hasOwn(h,d)&&m(d,1);let f=o==null?void 0:o(d),v=f?f.slice(0,Math.max(3,f.length-1)):void 0,w=0;for(let p in h)p!==d&&(n.prefix&&p.startsWith(d)&&w++<200&&m(p,Ct.prefix),f&&v&&p.startsWith(v)&&o(p)===f&&m(p,Ct.stem));if(i&&!s.size&&!n.exact&&d.length>=4&&!/[._-]/.test(d))for(let p in h)Math.abs(p.length-d.length)<=1&&Fr(d,p)&&m(p,Ct.typo)}let a=[...s].filter(([,d])=>d===Ct.typo).map(([d])=>d),l=[...s].map(([d,u])=>[r.get(d)[d],u]),c=new Set;for(let[d]of l)for(let u=0;u<d.length;u+=2)c.add(d[u]);return{lists:l,docs:c,corrected:a}}var Eo=n=>typeof n=="function"?n:()=>n;async function xo(n,t){let e=Eo(t),i=new Map;for(let o of n){let s=e(o),r=i.get(s);r||i.set(s,r=[]),r.push(o)}await Promise.all([...i].map(async([o,s])=>{var c;let r=await o.meta(),a=[...new Set(s.map(d=>Math.floor(d.id/r.block)))],l=new Map;await Promise.all(a.map(async d=>{try{l.set(d,await o.fragment(d))}catch{l.set(d,void 0)}}));for(let d of s)d.fragment??(d.fragment=(c=l.get(Math.floor(d.id/r.block)))==null?void 0:c[d.id%r.block])}))}async function So(n){let t=Eo(n),e=new Map;return async i=>{let o=t(i),s=e.get(o);if(!s){let r=Se((await o.meta()).lang);s=(a,l)=>l.terms.some(c=>a===c||l.prefix&&a.startsWith(c)||r!==void 0&&r(a)===r(c))||(l.corrected??[]).includes(a),e.set(o,s)}return s}}async function Ao(n,t,e,i=10){let o=t.slice(0,i);await xo(o,e);let s=n.groups,r=await So(e);for(let a of o){let l=await r(a),[c,d]=a.fragment??["",[]],u=jt(a.title),h=1;s.length&&s.every(f=>u.some(v=>l(v,f)))&&(h=ho(u,s,l)?Ct.titleExact:Ct.titleAll);let m=[];for(let[f,v]of d){let w=jt(f);!s.length||!s.every(p=>w.some(b=>l(b,p)))||(m.push([f,v]),h=Math.max(h,ho(w,s,l)?Ct.headingExact:Ct.headingAll))}if(a.sections=m.slice(0,3),n.phrases.length){let f=[a.title,c,...d.map(([v])=>v)].map(v=>jt(v).join(" ")).join(" \\0 ");n.phrases.every(v=>f.includes(v))&&(h*=Ct.phrase)}a.score*=h}return o.sort((a,l)=>l.score-a.score),[...o,...t.slice(i)]}async function Co(n,t,e){await xo(t,e);let i=await So(e);for(let o of t){if(!o.fragment||o.sections)continue;let s=await i(o);o.sections=o.fragment[1].filter(([r])=>{let a=jt(r);return n.groups.length>0&&n.groups.every(l=>a.some(c=>s(c,l)))}).slice(0,3)}}function ho(n,t,e){return n.every(i=>t.some(o=>e(i,o)))&&t.every(i=>n.some(o=>e(o,i)))}async function Lo(n,t,e=10){let i=await t.meta(),o=Vt(n,{facets:Dn([i])}),s=Se(i.lang);s&&(o.highlight=[...new Set([...o.highlight,...o.highlight.map(s).filter(a=>a.length>=3)])]);let r=await Pr(o,t);return o.highlight=[...new Set([...o.highlight,...o.groups.flatMap(a=>a.corrected??[])])],{parsed:o,results:await Ao(o,r,t,e),facets:vo(r,i)}}async function zr(n){return Promise.all(n.map(t=>t.data.meta().then(e=>e&&e.format===5?e:void 0,()=>{})))}async function qr(n,t,e,i){let o=e,s=new Set,r=[],a=async(S,A)=>{if(!s.has(S))try{return await A()}catch(y){s.add(S),r.push({source:S,error:y});return}},l=t.flatMap((S,A)=>e[A]?[A]:[]),c=[];await Promise.all(l.map(async S=>c[S]=await a(S,()=>po(n,o[S],t[S].data))??new Set));let d=[],u=[],h=(S,A)=>Promise.all(l.map(y=>a(y,()=>wo(S,o[y],t[y].data,A)))),m=S=>S.every((A,y)=>!(A!=null&&A.docs.size)||s.has(l[y]));for(let S of n.groups){let A=await h(S,!1);u.push(m(A)),u[u.length-1]&&(A=await h(S,!0)),d.push(A)}for(let[S,A]of n.groups.entries())u[S]||!m(d[S])||(A.corrected=void 0,d[S]=await h(A,!0));if(l.length&&l.every(S=>s.has(S)))throw r[0].error;let f=l.filter(S=>!s.has(S)),v=[];for(let S of f)v[S]=bo(n,o[S]);let w=(S,A)=>S.map(y=>({...y,source:A,score:y.score*Br(t[A])})),p=S=>({results:Kr(S,t),failed:[...s].sort((A,y)=>A-y),errors:r});if(!n.groups.length)return p(f.flatMap(S=>w(mo(o[S],c[S],v[S]),S)).sort(Ke));let b=t.map(()=>[]),E=f.reduce((S,A)=>S+o[A].count,0);n.groups.forEach((S,A)=>{let y=d[A],W=l.flatMap((C,O)=>s.has(C)?[]:[[C,y[O]]]),$=[...new Set(W.flatMap(([,C])=>C.corrected))];S.corrected=$.length?$:void 0;let G=W.reduce((C,[,O])=>C+O.docs.size,0);for(let[C,O]of W)b[C].push(yo(O,i.stats==="own"?On(o[C].count,O.docs.size):On(E,G)))});let x=S=>f.flatMap(A=>w(Tn(b[A],o[A],c[A],v[A],S),A)).sort(Ke),D=x("and");return p(D.length||n.strict?D:x("or"))}function Br(n){return typeof n.boost=="number"&&Number.isFinite(n.boost)&&n.boost>=0?n.boost:1}function Kr(n,t){let e=new Map,i=[];for(let o of n){let s=t[o.source].collapse;if(s===void 0){i.push(o);continue}let r=`${s}\\0${o.url}`,a=e.get(r);a?(a.others??(a.others=[])).push({source:o.source,id:o.id,url:o.url,score:o.score}):(e.set(r,o),i.push(o))}return i}async function ko(n,t,e=10,i={}){let o=await zr(t),s=Vt(n,{facets:Dn(o)}),r=t.flatMap((u,h)=>o[h]?[]:[h]);for(let u of new Set(o.flatMap(h=>h?[h.lang]:[]))){let h=Se(u);h&&(s.highlight=[...new Set([...s.highlight,...s.highlight.map(h).filter(m=>m.length>=3)])])}let{results:a,failed:l,errors:c}=await qr(s,t,o,i);for(let u of l)r.includes(u)||r.push(u);r.sort((u,h)=>u-h),s.highlight=[...new Set([...s.highlight,...s.groups.flatMap(u=>u.corrected??[])])];let d=vo(a,u=>o[u.source]);return{parsed:s,results:await Ao(s,a,u=>t[u.source].data,e),missing:r,facets:d,errors:c}}function Mn(n,t,e=globalThis){var m,f;let i=((m=e.document)==null?void 0:m.baseURI)??((f=e.location)==null?void 0:f.href),o=fo(n,i),s=e.__DOGSBAY_SEARCH__??{q:[],load(){}},r=s.stores??(s.stores=new Map),a=r.get(o)??new Map;r.set(o,a);let l=(v,w,p)=>{let b;if(p){let E="",x=fo(p,i);for(let D of r.keys())x.startsWith(D)&&D.length>E.length&&(E=D);b=E?r.get(E):void 0}!b&&r.size===1&&(b=a),b?b.set(v,w):s.q.push([v,w,p])},c=s.q;s.q=[],s.load=l;for(let[v,w,p]of c)l(v,w,p);e.__DOGSBAY_SEARCH__=s;let d=async(v,w)=>(a.has(v)||await t(n+w),a.get(v)),u,h={meta:()=>u??(u=d(ze.docs,$e.docs).then(v=>{if(!v||v.format!==5)throw new Error(`search index format ${(v==null?void 0:v.format)??"missing"}, expected ${5}: rebuild the site`);return v}).catch(v=>{throw u=void 0,v})),shard:async v=>(await h.meta()).shards.includes(v)?d(ze.shard(v),$e.shard(v)):void 0,fragment:v=>d(ze.fragment(v),$e.fragment(v))};return h}function fo(n,t){try{return new URL(n,t).href}catch{return n}}function To(n){let t,e=n;try{e=new URL(n||"./",document.baseURI).pathname}catch{}return async i=>{t??(t=import(new URL(`${n}pagefind/pagefind.js`,document.baseURI).href).catch(u=>{throw t=void 0,u}));let o=i.replace(new RegExp(\'(?<!\\\\S)-?(tag|section):("[^"]*"?|\\\\S*)\',"gi")," ").trim(),s=o?await(await t).search(o):null,r=(s==null?void 0:s.results)??[],a=async(u,h)=>{let m=await u.data(),f=m.url.startsWith(e)?m.url.slice(e.length):m.url.replace(/^\\/+/,""),v=(m.sub_results??[]).map(w=>[w.title,w.url.split("#")[1]??""]).filter(([,w])=>w);return{id:h,title:m.meta.title??f,url:f,section:"",score:r.length-h,fragment:[jr(m.excerpt),v],sections:v.slice(0,3)}},l=await Promise.all(r.slice(0,10).map(a)),c=Promise.all(r.slice(10,30).map((u,h)=>a(u,h+10)));return c.catch(()=>{}),{results:l,more:c,later:(u,h)=>Promise.all(r.slice(u,u+h).map((m,f)=>a(m,u+f))),total:r.length,highlight:Vt(i).highlight}}}function jr(n){return new DOMParser().parseFromString(n,"text/html").body.textContent??""}function Oo(n,t){let e=(n==null?void 0:n.units)??[],i=e.find(p=>p.prefix===t);if(!i)return{};let o=p=>p.product??"",s=p=>{var b;return((b=n==null?void 0:n.products)==null?void 0:b[p])??{versions:n==null?void 0:n.versions,defaultVersion:n==null?void 0:n.defaultVersion}},r=p=>{var b;return(b=s(o(p)).versions)==null?void 0:b.find(E=>E.id===p.version)},a=p=>{var b,E;return((E=(b=n==null?void 0:n.products)==null?void 0:b[p])==null?void 0:E.label)??(p||(n==null?void 0:n.name)||"")},l=p=>{var b;return[o(p)!==o(i)?a(o(p)):"",p.version!==void 0?((b=r(p))==null?void 0:b.label)??p.version:""].filter(Boolean).join(" \\xB7 ")},c=p=>({prefix:p.prefix,product:o(p),label:l(p),own:p===i,versioned:p.version!==void 0}),d=e.filter(p=>p.locale===i.locale),u=s(o(i)),h=(u.versions??[]).map(p=>p.id),m=p=>{var b;return p===i?-2:p.version===u.defaultVersion?-1:(b=r(p))!=null&&b.prerelease?h.length+h.indexOf(p.version):h.indexOf(p.version)},f=d.filter(p=>{var b;return o(p)===o(i)&&p.version!==void 0&&(p===i||!((b=r(p))!=null&&b.hidden))}).sort((p,b)=>m(p)-m(b)),v=[];for(let p of d){let b=o(p);if(v.some(D=>o(D)===b))continue;if(b===o(i)){v.push(i);continue}let E=d.filter(D=>o(D)===b),x=s(b).defaultVersion;v.push(E.find(D=>D.version===x)??E.find(D=>{var S;return!((S=r(D))!=null&&S.hidden)})??E[0])}let w={};return f.length>1&&(w.versions=f.map(c)),v.length>1&&(w.products=v.map(c)),(w.versions||w.products)&&(w.version=[c(i)]),w}var Ro=1.5;function Do(n,t){var s,r;let e={},i=(s=n.docs[t])==null?void 0:s[3];i!=null&&i.length&&(e.tag=i.map(a=>n.tags[a]).filter(a=>typeof a=="string"));let o=(r=n.docs[t])==null?void 0:r[4];return!o||!n.facets||n.facets.forEach((a,l)=>{let c=o[l];c!=null&&c.length&&(e[a.name]=c.map(d=>a.values[d]).filter(d=>typeof d=="string"))}),e}var Lt=n=>n.trim().toLowerCase();function Mo(n,t,e){for(let[i,o]of Object.entries(t)){if(i===e||!o.length)continue;let s=new Set((n[i]??[]).map(Lt));if(!o.some(r=>s.has(Lt(r))))return!1}return!0}function Io(n,t,e){return n.filter(i=>Mo(t(i),e))}function No(n,t,e,i){var s;let o={};for(let r of i){let a={},l=new Map;for(let c of n){let d=t(c);if(!((s=d[r])!=null&&s.length)||!Mo(d,e,r))continue;let u=new Set;for(let h of d[r]){if(u.has(Lt(h)))continue;u.add(Lt(h));let m=l.get(Lt(h))??(l.set(Lt(h),h),h);a[m]=(a[m]??0)+1}}for(let c of e[r]??[])l.has(Lt(c))||(a[c]=0);Object.keys(a).length&&(o[r]=a)}return o}function Ho(n,t){let e={};for(let i of n.getAll("filter")){let o=i.indexOf(":");if(o<=0)continue;let s=i.slice(0,o),r=i.slice(o+1);!t.includes(s)||!r||(e[s]??(e[s]=[])).some(a=>Lt(a)===Lt(r))||e[s].push(r)}return e}function Vr(n,t,e){var s;if(n.length===0)return"";let i=n.join("/"),o=e==null?void 0:e[i];if(o&&o.length>0)return o;if(n.length===1){let r=(s=t==null?void 0:t[n[0]])==null?void 0:s.label;if(r&&r.length>0)return r}return n[n.length-1]}function Po(n){if(!n)return{};let t={};for(let[e,i]of Object.entries(n)){let o=Ur(Object.entries(i).map(([s,r])=>({value:s,count:r})));o.length>0&&(t[e]=o)}return t}function Ur(n){return[...n].sort((t,e)=>t.count!==e.count?e.count-t.count:t.value.localeCompare(e.value))}function se(n,t,e){let i=e==null?void 0:e[n],o=t.split("/").filter(s=>s.length>0);return Vr(o,i==null?void 0:i.prefixes,i==null?void 0:i.labels)}function Fo(n,t){let e=i=>{var s;let o=(s=t==null?void 0:t[i])==null?void 0:s.order;return typeof o=="number"?o:void 0};return[...n].sort((i,o)=>{let s=e(i),r=e(o);return s!==void 0&&r!==void 0?s!==r?s-r:i.localeCompare(o):s!==void 0?-1:r!==void 0?1:i.localeCompare(o)})}function _o(n,t,e){let i={...n},o=i[t]??[];if(o.includes(e)){let s=o.filter(r=>r!==e);s.length===0?delete i[t]:i[t]=s}else i[t]=[...o,e];return i}function $o(n){let t=0;for(let e of Object.values(n))t+=e.length;return t}function zo(n,t,e={}){if(t.length===0)return[];if(t.some(o=>o.value.includes("/"))){let o=e.nav?Yr(e.nav,new Set(t.map(s=>s.value))):void 0;return Wr(n,t,e.display,o)}return Xr(n,t,e.nav,e.display)}function Wr(n,t,e,i){let o=new Map,s=[];for(let c of t){let d=c.value.split("/").filter(m=>m.length>0);if(d.length===0)continue;let u="",h=null;for(let m=0;m<d.length;m++){u=u?`${u}/${d[m]}`:d[m];let f=o.get(u);f||(f={value:u,label:se(n,u,e),count:0,depth:m,hasValue:!1,children:[]},o.set(u,f),h?h.children.push(f):s.push(u)),m===d.length-1&&(f.count=c.count,f.hasValue=!0),h=f}}let r=(c,d)=>{if(i){let u=i.get(c.value),h=i.get(d.value);if(u!==void 0&&h!==void 0&&u!==h)return u-h;if(u!==void 0&&h===void 0)return-1;if(u===void 0&&h!==void 0)return 1}return c.count!==d.count?d.count-c.count:c.value.localeCompare(d.value)},a=c=>{if(c.children.length!==0){c.children.sort(r);for(let d of c.children)a(d)}},l=s.map(c=>o.get(c));l.sort(r);for(let c of l)a(c);return l}function Yr(n,t){let e=new Map,i=0,o=s=>{for(let r of s){if(r.href){let a=qo(r.href);for(let l=0;l<a.length;l++){let c=a[l];if(!t.has(c))continue;let d="";for(let u=l;u<a.length;u++)d=d?`${d}/${a[u]}`:a[u],t.has(d)&&!e.has(d)&&e.set(d,i++);break}}r.children&&r.children.length>0&&o(r.children)}};return o(n),e}function Xr(n,t,e,i){let o=new Map;for(let h of t)o.set(h.value,h);if(!e||e.length===0)return t.map(h=>({value:h.value,label:se(n,h.value,i),count:h.count,depth:0,hasValue:!0,children:[]}));let s=new Set,r=[],a=new Map,l=h=>{if(h.length===0)return;let m=r,f=a;for(let v=0;v<h.length;v++){let w=h[v],p=f.get(w);if(!p){let E=o.get(w);p={value:w,label:se(n,w,i),count:E?E.count:0,depth:v,hasValue:E!==void 0,children:[]},m.push(p),f.set(w,p),E&&s.add(w)}let b=c.get(p);b||(b=new Map,c.set(p,b)),m=p.children,f=b}},c=new Map,d=h=>{for(let m of h){if(m.href){let f=qo(m.href);l(f)}m.children&&m.children.length>0&&d(m.children)}};d(e);let u=[];for(let h of t)s.has(h.value)||u.push({value:h.value,label:se(n,h.value,i),count:h.count,depth:0,hasValue:!0,children:[]});return u.sort((h,m)=>h.value.localeCompare(m.value)),[...r,...u]}function qo(n){let t=n;try{/^[a-z]+:\\/\\//i.test(n)&&(t=new URL(n).pathname)}catch{}t=t.split("#")[0].split("?")[0];let e=t.split("/").filter(i=>i.length>0);return e.length<2?[]:e.slice(0,-1)}var Gr=6e4,Qr=30,je=20,Zr=["version","versions","products"];function Ko(n){let{signal:t}=n,e=document.getElementById("db-search");if(!e)return;let i=e.querySelector("[data-db-search-input]"),o=e.querySelector("[data-part=\'listbox\']"),s=e.querySelector("[data-db-search-status]"),r=Vo(n,{input:i,list:o,status:s,page:!1});e.addEventListener("db-dialog:open",()=>{i.focus(),i.select(),r.activate()},{signal:t}),document.addEventListener("keydown",a=>{let l=a.target.closest("input, textarea, select, [contenteditable]");if(a.key==="/"&&!l||a.key.toLowerCase()==="k"&&(a.metaKey||a.ctrlKey)){a.preventDefault();let c=document.querySelector("[data-db-search-page] [data-db-search-input]");c&&!e.open?c.focus():e.open?i.focus():e.show()}},{signal:t}),e.addEventListener("click",a=>{a.target.closest("a")&&e.close("api")},{signal:t})}function jo(n){var d;let t=document.querySelector("[data-db-search-page]");if(!t)return;let e=t.querySelector("[data-db-search-input]"),i=t.querySelector("[data-db-search-list]"),o=t.querySelector("[data-db-search-status]"),s=Jr(),r=s.get("p")||void 0,a=s.get("v")||void 0,l=s.get("scope")??(s.get("q")?"version":void 0),c=Vo(n,{input:e,list:i,status:o,page:!0,params:s,scope:l,forward:r!==void 0||a!==void 0?{product:r,version:a}:void 0});(d=t.querySelector("form"))==null||d.addEventListener("submit",u=>u.preventDefault(),{signal:n.signal}),e.value=s.get("q")??"",c.activate(),e.value.trim()&&c.run()}function Jr(){let n=new URLSearchParams(location.search);if(location.hash.includes("="))for(let[t,e]of new URLSearchParams(location.hash.slice(1)))n.has(t)||n.set(t,e);return n}var Bo=()=>!location.search&&location.hash.includes("=");function Vo(n,{input:t,list:e,status:i,page:o,scope:s,forward:r,params:a}){var Kn;let{signal:l}=n,c=i.textContent??"",d=Mn(`${n.unitRoot}_dogsbay/search/`,n.loadScript,window),u=document.body.dataset.search??"builtin",h=location.protocol!=="file:",m=u==="pagefind"||u==="both"&&h?To(n.unitRoot):void 0,f=u==="pagefind"&&!h,v=n.siteRoot??"",w=n.prefix??"",p={},b="version",E,x=`db-search-scope:${v}`;try{x=`db-search-scope:${new URL(v||"./",document.baseURI).pathname}`}catch{}let D=()=>{let L=window.__DOGSBAY_SITE__;if(r&&L&&S(L)||(r=void 0,m))return;p=Oo(L,w);let T=s??In(()=>sessionStorage.getItem(x)),k=b;T&&Object.prototype.hasOwnProperty.call(p,T)&&(b=T),dt(),b!==k&&t.value.trim()&&P(++K)},S=L=>{var Z,nt;let T=L.units??[],k=T.find(Y=>Y.prefix===w);if(!k)return!1;let H=r.product??k.product??"",N=T.filter(Y=>Y.locale===k.locale&&(Y.product??"")===H),R=((nt=(Z=L.products)==null?void 0:Z[H])==null?void 0:nt.defaultVersion)??L.defaultVersion,F=r.version!==void 0?N.find(Y=>Y.version===r.version||Y.prefix&&Y.prefix.split("/").pop()===r.version):N.find(Y=>Y===k)??N.find(Y=>Y.version===R)??N[0];if(!F||F.prefix===w||!F.search)return!1;let B=new URLSearchParams(a);B.delete("p"),B.delete("v");let I=B.toString();return location.replace(`${y(F.prefix)}${F.search}${I?Bo()?`#${I}`:`?${I}`:""}`),!0},A=()=>E??(E=n.loadScript(`${v}_dogsbay/site.js`).then(D,D)),y=L=>`${v}${L?`${L}/`:""}`,W=new Map([[w,d]]),$=L=>{let T=W.get(L);return T||W.set(L,T=Mn(`${y(L)}_dogsbay/search/`,n.loadScript,window)),T},G=new Map,C=((Kn=o?e.closest("[data-db-search-page]"):e.closest("dialog"))==null?void 0:Kn.querySelector("[data-db-search-facets]"))??void 0,O=(()=>{try{return JSON.parse(e.dataset.facets??"{}")}catch{return{}}})(),q=C?Object.keys(O):[],j=o&&a?Ho(a,q):{},_=()=>{r&&A(),f?i.textContent=e.dataset.needsServer??"":m||(d.meta().catch(()=>i.textContent="Search index could not be loaded."),A())},K=0,X,ot;t.addEventListener("input",()=>{clearTimeout(ot),ot=setTimeout(()=>void P(++K),80)},{signal:l});let it=new Map,at=typeof IntersectionObserver=="function"?new IntersectionObserver(L=>{var T;for(let k of L)k.isIntersecting&&((T=it.get(k.target))==null||T(),it.delete(k.target),at.unobserve(k.target))}):void 0,M=L=>{if(!o||r)return;let T=new URLSearchParams;L&&T.set("q",L),b!=="version"&&T.set("scope",b);for(let[N,R]of Object.entries(j))for(let F of R)T.append("filter",`${N}:${F}`);let k=T.toString(),H=Bo();In(()=>history.replaceState(history.state,"",`${location.pathname}${k?H?`${location.search}#${k}`:`?${k}`:""}`))},P=async L=>{let T=t.value.trim();if(M(T),!T){at==null||at.disconnect(),it.clear(),z.hidden=!0,C&&(C.hidden=!0),Ht=void 0,e.replaceChildren(),V.hidden=Q.hidden=!0,i.textContent=c;return}if(!f){Ht=void 0;try{if(m){let k=await m(T);if(L!==K)return;if(o){let H=await k.more;if(L!==K)return;ke(T,[...k.results,...H].slice(0,je),k.highlight,k.total,k.later)}else{ke(T,k.results,k.highlight,k.total);let H=await k.more;L===K&&H.length&&is(T,H,k.highlight)}}else if(b!=="version"&&p[b]){let k=Date.now(),H=p[b],N=H.filter(I=>I.own||k-(G.get(I.prefix)??-1/0)>Gr),R=await ko(T,N.map(I=>({data:$(I.prefix),boost:I.own?Ro:1,collapse:I.product})));for(let I of R.missing)G.set(N[I].prefix,Date.now());if(L!==K)return;X=R.parsed;let F=R.results.map(I=>{var nt;let Z=N[I.source];return Object.assign(I,{base:y(Z.prefix),from:Z.own?void 0:Z.label,also:(nt=I.others)==null?void 0:nt.map(Y=>N[Y.source].label).filter(Boolean),data:$(Z.prefix)})}),B=R.missing.length+H.length-N.length;await Le(L,T,F,R.parsed.highlight,B?` \\xB7 ${(e.dataset.unavailable??"{n}").replace("{n}",String(B))}`:"")}else{let k=await Lo(T,d);if(L!==K)return;X=k.parsed,await Le(L,T,k.results,k.parsed.highlight,"")}}catch{if(L!==K)return;i.textContent="Search index could not be loaded.",C&&(C.hidden=!0)}}},z=document.createElement("div");z.setAttribute("role","group"),z.setAttribute("aria-label",e.dataset.filterSection??"Filter by section"),z.className=o?"flex flex-wrap gap-1 pb-3":"flex flex-wrap gap-1 px-3 pb-2",z.hidden=!0,e.before(z);let U=document.createElement("div");U.setAttribute("role","group"),U.setAttribute("aria-label",e.dataset.scope??"Search in"),U.className=o?"flex flex-wrap items-center gap-1 pb-3":"flex flex-wrap items-center gap-1 px-3 pb-2",U.hidden=!0,z.before(U);let Q=document.createElement("a");Q.className="mx-3 mb-2 mt-1 block rounded-md px-3 py-2 text-center text-sm font-medium hover:bg-accent",Q.dataset.dbSearchSeeAll="",Q.hidden=!0;let V=document.createElement("button");V.type="button",V.className="mt-4 rounded-md border px-3 py-1.5 text-sm hover:bg-accent",V.textContent=e.dataset.more??"More results",V.hidden=!0,e.after(o?V:Q);let dt=()=>{var k,H;let L=Zr.filter(N=>p[N]),T={version:((H=(k=p.version)==null?void 0:k[0])==null?void 0:H.versioned)===!1?e.dataset.scopeProduct:e.dataset.scopeVersion,versions:e.dataset.scopeVersions,products:e.dataset.scopeProducts};U.replaceChildren(...L.map(N=>{let R=document.createElement("button");return R.type="button",R.dataset.scope=N,R.setAttribute("aria-pressed",String(N===b)),R.className="rounded-md border px-2.5 py-0.5 text-xs hover:bg-accent aria-pressed:bg-primary aria-pressed:text-primary-foreground",R.textContent=T[N]??N,R.addEventListener("click",()=>{var F;b!==N&&(b=N,In(()=>sessionStorage.setItem(x,N)),dt(),(F=U.querySelector(`[data-scope="${N}"]`))==null||F.focus(),t.value.trim()?P(++K):M(""))},{signal:l}),R})),U.hidden=L.length<2};l==null||l.addEventListener("abort",()=>{clearTimeout(ot),K++,at==null||at.disconnect(),it.clear(),z.remove(),U.remove(),Q.remove(),V.remove()});let kt=L=>L.replace(/"/g,""),ue=L=>`section:"${kt(L)}"`,pt,he=(L,T)=>{let k=new Map;for(let F of T)F.section&&k.set(F.section,(k.get(F.section)??0)+1);let H=[...L.matchAll(/section:"([^"]*)"/gi)].map(F=>F[1].toLowerCase()),N=F=>H.includes(kt(F).toLowerCase()),R=[...k].sort((F,B)=>B[1]-F[1]).slice(0,6).map(([F])=>F);for(let F of H)R.some(B=>kt(B).toLowerCase()===F)||R.push(F);z.replaceChildren(...R.length>1||H.length?R.map(F=>{let B=document.createElement("button");B.type="button";let I=N(F);return B.setAttribute("aria-pressed",String(I)),B.className="rounded-full border px-2.5 py-0.5 text-xs hover:bg-accent aria-pressed:bg-primary aria-pressed:text-primary-foreground",B.textContent=F,B.addEventListener("click",()=>{let Z=ue(F),nt=t.value.replace(new RegExp(`\\\\s*section:"${kt(F).replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}"`,"i"),"").trim();t.value=I?nt:`${nt} ${Z}`.trim(),pt=F,t.dispatchEvent(new Event("input",{bubbles:!0}))},{signal:l}),B}):[]),z.hidden=!z.childElementCount,pt!==void 0&&(([...z.querySelectorAll("button")].find(B=>B.textContent===pt)??t).focus(),pt=void 0)},Ht,Le=async(L,T,k,H,N)=>{if(!q.length){ke(T,k,H,k.length),i.textContent+=N;return}let R=new Map;for(let B of k){let I=B.data??d;R.has(I)||R.set(I,await I.meta())}if(L!==K)return;let F=new Map(k.map(B=>[B,Do(R.get(B.data??d),B.id)]));Ht={q:T,results:k,terms:H,note:N,valuesOf:B=>F.get(B)??{}},Pt()},Pt=()=>{if(!Ht)return;let{q:L,results:T,terms:k,note:H,valuesOf:N}=Ht,R=Io(T,N,j);tn(No(T,N,j,q)),ke(L,R,k,R.length),i.textContent+=H},Tt,tn=L=>{var F,B;if(!C)return;let T=Fo(Object.keys(L),O);if(C.hidden=!T.length,!T.length)return C.replaceChildren();let k=(I,Z,nt,Y)=>{let J=document.createElement("label");J.className="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1 hover:bg-accent";let ct=document.createElement("input");ct.type="checkbox",ct.dataset.facetName=I,ct.dataset.facetValue=Z,ct.checked=(j[I]??[]).some(os=>os.toLowerCase()===Z.toLowerCase()),ct.className="size-3.5 rounded border-border accent-primary";let Et=document.createElement("span");Et.className="flex-1 truncate",Et.textContent=nt;let nn=document.createElement("span");return nn.className="text-xs text-muted-foreground",nn.textContent=String(Y),J.append(ct,Et,nn),J},H=(I,Z)=>{let nt=document.createElement("ul");nt.className="space-y-0.5";for(let Y of Z){let J=document.createElement("li");if(Y.hasValue)J.append(k(I,Y.value,Y.label,Y.count));else{let ct=document.createElement("span");ct.className="block px-2 py-1 text-muted-foreground",ct.textContent=Y.label,J.append(ct)}if(Y.children.length){let ct=H(I,Y.children);ct.classList.add("ml-4"),J.append(ct)}nt.append(J)}return nt},N=[],R=$o(j);if(R){let I=document.createElement("button");I.type="button",I.dataset.clearFilters="",I.className="mb-3 w-full rounded-md border border-border px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",I.textContent=(e.dataset.facetsClear??"Clear all ({n})").replace("{n}",String(R)),N.push(I)}for(let I of T){let Z=Po({[I]:L[I]})[I]??[],nt=document.createElement("fieldset");nt.className="mb-3";let Y=document.createElement("legend");if(Y.className="mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground",Y.textContent=((F=O[I])==null?void 0:F.title)??I,nt.append(Y),(B=O[I])!=null&&B.hierarchical||Z.some(J=>J.value.includes("/")))nt.append(H(I,zo(I,Z,{display:O})));else{let J=document.createElement("ul");J.className="space-y-0.5";for(let ct of Z){let Et=document.createElement("li");Et.append(k(I,ct.value,se(I,ct.value,O),ct.count)),J.append(Et)}nt.append(J)}N.push(nt)}C.replaceChildren(...N),Tt!==void 0&&(((Tt?[...C.querySelectorAll("input[data-facet-name]")].find(Z=>`${Z.dataset.facetName}\\0${Z.dataset.facetValue}`===Tt):C.querySelector("[data-clear-filters]"))??t).focus(),Tt=void 0)};C==null||C.addEventListener("change",L=>{let T=L.target;if(!T.dataset.facetName)return;let k=T.dataset.facetName,H=T.dataset.facetValue,N=(j[k]??[]).find(R=>R.toLowerCase()===H.toLowerCase());j=_o(j,k,N??H),Tt=`${k}\\0${H}`,M(t.value.trim()),Pt()},{signal:l}),C==null||C.addEventListener("click",L=>{L.target.closest("[data-clear-filters]")&&(j={},Tt="",M(t.value.trim()),Pt())},{signal:l});let ht,ke=(L,T,k,H,N)=>{at==null||at.disconnect(),it.clear(),he(L,T);let R=T.slice(0,o?je:Qr);if(ht={q:L,results:T,terms:k,shown:R.length,total:H,later:N},e.replaceChildren(...en(L,R,k)),i.textContent=H?`${H} result${H===1?"":"s"}`:`${e.dataset.noResults} \\u201C${L}\\u201D`,V.hidden=!o||!qn(),Q.hidden=o||!H||!e.dataset.searchPage,!Q.hidden){let F=new URLSearchParams({q:L});b!=="version"&&F.set("scope",b);for(let[B,I]of Object.entries(j))for(let Z of I)F.append("filter",`${B}:${Z}`);Q.href=`${e.dataset.searchPage}?${F}`,Q.textContent=(e.dataset.seeAll??"See all {n} results").replace("{n}",String(H))}},is=(L,T,k)=>e.append(...en(L,T,k)),qn=()=>!!ht&&(ht.results.length>ht.shown||!!ht.later&&ht.shown<ht.total);V.addEventListener("click",async()=>{var H,N;let L=ht;if(!L)return;let T=L.results.slice(L.shown,L.shown+je);if(!T.length&&L.later){if(T=await L.later(L.shown,je).catch(()=>[]),L!==ht)return;L.results.push(...T)}let k=en(L.q,T,L.terms);e.append(...k),L.shown+=T.length,V.hidden=!T.length||!qn(),(N=(H=k[0])==null?void 0:H.querySelector("a"))==null||N.focus()},{signal:l});let en=(L,T,k)=>{var N;let H=[];for(let R of T){let F=R.base??n.unitRoot,B=Bn(F,R.url,k,"block rounded-md p-3 hover:bg-accent"),I=document.createElement("div");I.className="font-medium",I.append(...Nn(R.title,k)),B.a.appendChild(I);let Z=[R.from,R.section].filter(Boolean).join(" \\xB7 ");if(Z){let J=document.createElement("div");J.className="text-xs text-muted-foreground",J.textContent=Z,B.a.appendChild(J)}let nt=document.createElement("div");if(nt.className="mt-1 line-clamp-2 text-xs text-muted-foreground",B.a.appendChild(nt),(N=R.also)!=null&&N.length){let J=document.createElement("div");J.className="mt-1 text-xs text-muted-foreground",J.textContent=`${e.dataset.alsoIn??"Also in"} ${R.also.join(", ")}`,B.a.appendChild(J)}H.push(B.li);let Y=()=>R.fragment?(R.fragment[0]&&nt.replaceChildren(...Nn(R.fragment[0],k)),(R.sections??[]).map(([J,ct])=>{let Et=Bn(F,`${R.url}#${ct}`,k,"ml-4 block rounded-md border-l px-3 py-1.5 text-sm hover:bg-accent");return Et.a.append(...Nn(J,k)),Et.li})):[];if(R.fragment)H.push(...Y());else if(at){let J=X??Vt(L);it.set(B.li,()=>void Co(J,[R],R.data??d).then(()=>B.li.after(...Y()),()=>{})),at.observe(B.li)}}return H},Bn=(L,T,k,H)=>{let N=document.createElement("li");o||N.setAttribute("role","none"),N.className="mb-1";let R=document.createElement("a");return o||(R.setAttribute("data-part","option"),R.dataset.value=T,R.tabIndex=-1),R.href=ta(L+T,k),R.className=H,N.appendChild(R),{li:N,a:R}};return{activate:_,run:()=>void P(++K)}}function In(n){try{return n()}catch{return}}function ta(n,t){if(!t.length)return n;let e=n.indexOf("#"),[i,o]=e<0?[n,""]:[n.slice(0,e),n.slice(e)];return`${i}${i.includes("?")?"&":"?"}h=${encodeURIComponent(t.join(" "))}${o}`}function Nn(n,t){if(!t.length)return[document.createTextNode(n)];let e=new RegExp(`(${t.map(i=>i.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")).join("|")})`,"gi");return n.split(e).map((i,o)=>{if(o%2===0)return document.createTextNode(i);let s=document.createElement("mark");return s.textContent=i,s})}var Uo=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}]/u;function Wo(n){var v;let t;try{t=(new URLSearchParams(location.search).get("h")??"").split(/\\s+/).filter(w=>w.length>0)}catch{return}let e=document.querySelector("#db-content article")??document.querySelector("#db-content");if(!t.length||!e)return;let i=w=>w.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&"),o=[...t].sort((w,p)=>p.length-w.length),s=o.filter(w=>Uo.test(w)).map(i),r=o.filter(w=>!Uo.test(w)).map(i),a=[r.length?`(?<![\\\\p{L}\\\\p{N}])(?:${r.join("|")})`:"",s.length?`(?:${s.join("|")})`:""].filter(Boolean),l=new RegExp(`(${a.join("|")})`,"giu"),c=[],d=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:w=>{var p;return(p=w.parentElement)!=null&&p.closest("script, style, mark, button, [aria-hidden=\'true\']")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),u=[];for(let w=d.nextNode();w;w=d.nextNode())u.push(w);for(let w of u){if(c.length>=500)break;let p=w.data;if(l.lastIndex=0,!l.test(p))continue;l.lastIndex=0;let b=document.createDocumentFragment(),E=0;for(let x of p.matchAll(l)){b.append(p.slice(E,x.index));let D=document.createElement("mark");D.className="db-search-hl",D.textContent=x[0],b.append(D),c.push(D),E=x.index+x[0].length}b.append(p.slice(E)),w.replaceWith(b)}if(ea(),!c.length)return;let h=((v=document.querySelector("[data-clear-highlights]"))==null?void 0:v.dataset.clearHighlights)??"Clear highlights",m=document.createElement("div");m.className="not-prose mb-4";let f=document.createElement("button");f.type="button",f.className="inline-flex h-8 items-center rounded-md border px-3 text-sm hover:bg-accent",f.textContent=h,f.addEventListener("click",()=>{var w;for(let p of c)p.replaceWith(document.createTextNode(p.textContent??""));e.normalize(),m.remove(),(w=document.getElementById("db-content"))==null||w.focus({preventScroll:!0})},{signal:n}),m.append(f),e.prepend(m),location.hash||c[0].scrollIntoView({block:"center"})}function ea(){try{let n=new URL(location.href);n.searchParams.delete("h"),history.replaceState(history.state,"",n.toString())}catch{}}var Ut=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Ve=function(t){return t.tagName==="IMG"},na=function(t){return NodeList.prototype.isPrototypeOf(t)},Ue=function(t){return t&&t.nodeType===1},Yo=function(t){var e=t.currentSrc||t.src;return e.substr(-4).toLowerCase()===".svg"},Xo=function(t){try{return Array.isArray(t)?t.filter(Ve):na(t)?[].slice.call(t).filter(Ve):Ue(t)?[t].filter(Ve):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(Ve):[]}catch{throw new TypeError(`The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom`)}},ia=function(t){var e=document.createElement("div");return e.classList.add("medium-zoom-overlay"),e.style.background=t,e},oa=function(t){var e=t.getBoundingClientRect(),i=e.top,o=e.left,s=e.width,r=e.height,a=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=i+l+"px",a.style.left=o+c+"px",a.style.width=s+"px",a.style.height=r+"px",a.style.transform="",a},re=function(t,e){var i=Ut({bubbles:!1,cancelable:!1,detail:void 0},e);if(typeof window.CustomEvent=="function")return new CustomEvent(t,i);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),o},sa=function n(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=window.Promise||function(C){function O(){}C(O,O)},o=function(C){var O=C.target;if(O===W){f();return}E.indexOf(O)!==-1&&v({target:O})},s=function(){if(!(D||!y.original)){var C=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(S-C)>A.scrollOffset&&setTimeout(f,150)}},r=function(C){var O=C.key||C.keyCode;(O==="Escape"||O==="Esc"||O===27)&&f()},a=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C;if(C.background&&(W.style.background=C.background),C.container&&C.container instanceof Object&&(O.container=Ut({},A.container,C.container)),C.template){var q=Ue(C.template)?C.template:document.querySelector(C.template);O.template=q}return A=Ut({},A,O),E.forEach(function(j){j.dispatchEvent(re("medium-zoom:update",{detail:{zoom:$}}))}),$},l=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(Ut({},A,C))},c=function(){for(var C=arguments.length,O=Array(C),q=0;q<C;q++)O[q]=arguments[q];var j=O.reduce(function(_,K){return[].concat(_,Xo(K))},[]);return j.filter(function(_){return E.indexOf(_)===-1}).forEach(function(_){E.push(_),_.classList.add("medium-zoom-image")}),x.forEach(function(_){var K=_.type,X=_.listener,ot=_.options;j.forEach(function(it){it.addEventListener(K,X,ot)})}),$},d=function(){for(var C=arguments.length,O=Array(C),q=0;q<C;q++)O[q]=arguments[q];y.zoomed&&f();var j=O.length>0?O.reduce(function(_,K){return[].concat(_,Xo(K))},[]):E;return j.forEach(function(_){_.classList.remove("medium-zoom-image"),_.dispatchEvent(re("medium-zoom:detach",{detail:{zoom:$}}))}),E=E.filter(function(_){return j.indexOf(_)===-1}),$},u=function(C,O){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(j){j.addEventListener("medium-zoom:"+C,O,q)}),x.push({type:"medium-zoom:"+C,listener:O,options:q}),$},h=function(C,O){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(j){j.removeEventListener("medium-zoom:"+C,O,q)}),x=x.filter(function(j){return!(j.type==="medium-zoom:"+C&&j.listener.toString()===O.toString())}),$},m=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C.target,q=function(){var _={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},K=void 0,X=void 0;if(A.container)if(A.container instanceof Object)_=Ut({},_,A.container),K=_.width-_.left-_.right-A.margin*2,X=_.height-_.top-_.bottom-A.margin*2;else{var ot=Ue(A.container)?A.container:document.querySelector(A.container),it=ot.getBoundingClientRect(),at=it.width,M=it.height,P=it.left,z=it.top;_=Ut({},_,{width:at,height:M,left:P,top:z})}K=K||_.width-A.margin*2,X=X||_.height-A.margin*2;var U=y.zoomedHd||y.original,Q=Yo(U)?K:U.naturalWidth||K,V=Yo(U)?X:U.naturalHeight||X,dt=U.getBoundingClientRect(),kt=dt.top,ue=dt.left,pt=dt.width,he=dt.height,Ht=Math.min(Math.max(pt,Q),K)/pt,Le=Math.min(Math.max(he,V),X)/he,Pt=Math.min(Ht,Le),Tt=(-ue+(K-pt)/2+A.margin+_.left)/Pt,tn=(-kt+(X-he)/2+A.margin+_.top)/Pt,ht="scale("+Pt+") translate3d("+Tt+"px, "+tn+"px, 0)";y.zoomed.style.transform=ht,y.zoomedHd&&(y.zoomedHd.style.transform=ht)};return new i(function(j){if(O&&E.indexOf(O)===-1){j($);return}var _=function at(){D=!1,y.zoomed.removeEventListener("transitionend",at),y.original.dispatchEvent(re("medium-zoom:opened",{detail:{zoom:$}})),j($)};if(y.zoomed){j($);return}if(O)y.original=O;else if(E.length>0){var K=E;y.original=K[0]}else{j($);return}if(y.original.dispatchEvent(re("medium-zoom:open",{detail:{zoom:$}})),S=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,D=!0,y.zoomed=oa(y.original),document.body.appendChild(W),A.template){var X=Ue(A.template)?A.template:document.querySelector(A.template);y.template=document.createElement("div"),y.template.appendChild(X.content.cloneNode(!0)),document.body.appendChild(y.template)}if(y.original.parentElement&&y.original.parentElement.tagName==="PICTURE"&&y.original.currentSrc&&(y.zoomed.src=y.original.currentSrc),document.body.appendChild(y.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),y.original.classList.add("medium-zoom-image--hidden"),y.zoomed.classList.add("medium-zoom-image--opened"),y.zoomed.addEventListener("click",f),y.zoomed.addEventListener("transitionend",_),y.original.getAttribute("data-zoom-src")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("srcset"),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading"),y.zoomedHd.src=y.zoomed.getAttribute("data-zoom-src"),y.zoomedHd.onerror=function(){clearInterval(ot),console.warn("Unable to reach the zoom image target "+y.zoomedHd.src),y.zoomedHd=null,q()};var ot=setInterval(function(){y.zoomedHd.complete&&(clearInterval(ot),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",f),document.body.appendChild(y.zoomedHd),q())},10)}else if(y.original.hasAttribute("srcset")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading");var it=y.zoomedHd.addEventListener("load",function(){y.zoomedHd.removeEventListener("load",it),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",f),document.body.appendChild(y.zoomedHd),q()})}else q()})},f=function(){return new i(function(C){if(D||!y.original){C($);return}var O=function q(){y.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(y.zoomed),y.zoomedHd&&document.body.removeChild(y.zoomedHd),document.body.removeChild(W),y.zoomed.classList.remove("medium-zoom-image--opened"),y.template&&document.body.removeChild(y.template),D=!1,y.zoomed.removeEventListener("transitionend",q),y.original.dispatchEvent(re("medium-zoom:closed",{detail:{zoom:$}})),y.original=null,y.zoomed=null,y.zoomedHd=null,y.template=null,C($)};D=!0,document.body.classList.remove("medium-zoom--opened"),y.zoomed.style.transform="",y.zoomedHd&&(y.zoomedHd.style.transform=""),y.template&&(y.template.style.transition="opacity 150ms",y.template.style.opacity=0),y.original.dispatchEvent(re("medium-zoom:close",{detail:{zoom:$}})),y.zoomed.addEventListener("transitionend",O)})},v=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C.target;return y.original?f():m({target:O})},w=function(){return A},p=function(){return E},b=function(){return y.original},E=[],x=[],D=!1,S=0,A=e,y={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?A=t:(t||typeof t=="string")&&c(t),A=Ut({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},A);var W=ia(A.background);document.addEventListener("click",o),document.addEventListener("keyup",r),document.addEventListener("scroll",s),window.addEventListener("resize",f);var $={open:m,close:f,toggle:v,update:a,clone:l,attach:c,detach:d,on:u,off:h,getOptions:w,getImages:p,getZoomedImage:b};return $};function ra(n,t){t===void 0&&(t={});var e=t.insertAt;if(!(!n||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var aa=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";ra(aa);var Go=sa;var ca;function Qo(n){let t=document.body.dataset.imageZoom;if(!t)return;let e;try{e=JSON.parse(t)}catch{return}let i=[...document.querySelectorAll(\'img[data-zoomable="true"]\')];if(!i.length)return;let o=ca??(ca=Go());o.update(e),o.attach(...i),n==null||n.addEventListener("abort",()=>{o.close(),o.detach(...i)});let s={signal:n},r=!1,a=l=>l.key==="Enter"||l.key===" ";for(let l of i)l.alt&&(l.tabIndex=0,l.addEventListener("keydown",c=>{a(c)&&(c.preventDefault(),r=!0,o.open({target:l}))},s),l.addEventListener("medium-zoom:opened",()=>{let c=document.querySelector(".medium-zoom-image--opened");!r||!c||(c.tabIndex=-1,c.addEventListener("keydown",d=>{a(d)&&(d.preventDefault(),o.close())}),c.focus())},s),l.addEventListener("medium-zoom:closed",()=>{r&&l.focus(),r=!1},s))}var la=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]),da=new Set(["script","style","textarea","title","noscript","template","xmp"]),ua=new Set(["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"]),ha=new Set(["nav","aside","header","footer","figure","table","details","blockquote","form","button","svg","math","dialog"]),fa=new Set(["svg","math","button","select","img"]),Zo=Object.assign(Object.create(null),{amp:"&",lt:"<",gt:">",quot:\'"\',apos:"\'",nbsp:"\\xA0",hellip:"\\u2026",mdash:"\\u2014",ndash:"\\u2013",lsquo:"\\u2018",rsquo:"\\u2019",ldquo:"\\u201C",rdquo:"\\u201D",laquo:"\\xAB",raquo:"\\xBB",copy:"\\xA9",reg:"\\xAE",trade:"\\u2122",middot:"\\xB7",times:"\\xD7",para:"\\xB6",sect:"\\xA7",deg:"\\xB0",rarr:"\\u2192",larr:"\\u2190",bull:"\\u2022",shy:""});function Fn(n){return n.includes("&")?n.replace(/&(#[xX][0-9a-fA-F]{1,6}|#\\d{1,7}|[a-zA-Z]{2,8});/g,(t,e)=>{if(e[0]!=="#")return Zo[e]??Zo[e.toLowerCase()]??t;let i=e[1]==="x"||e[1]==="X"?Number.parseInt(e.slice(2),16):Number.parseInt(e.slice(1),10);return i>0&&i<=1114111&&!(i>=55296&&i<=57343)?String.fromCodePoint(i):"\\uFFFD"}):n}var Jo=n=>n>" "&&n!==">"&&n!=="/"&&n!=="="&&n!==\'"\'&&n!=="\'";function pa(n){let t={tag:"#root",attrs:{},children:[],start:0,end:0},e=n.toLowerCase(),i=t,o=0,s=0,r=1,a=new Map,l=u=>{u>s&&i.children.push(n.slice(s,u))},c=()=>{i.end=r,a.set(i.tag,a.get(i.tag)-1),i=i.parent},d=u=>{if(a.get(u))for(;i!==t;){let h=i.tag===u;if(c(),h)return}};for(;o<n.length;){let u=n.indexOf("<",o);if(u<0)break;let h=n[u+1]??"";if(n.startsWith("<!--",u)){l(u);let x=n.startsWith("<!-->",u)?5:n.startsWith("<!--->",u)?6:0,D=x?u:n.indexOf("-->",u+4);o=s=x?u+x:D<0?n.length:D+3;continue}if(h==="!"||h==="?"){l(u);let x=n.indexOf(">",u);o=s=x<0?n.length:x+1;continue}let m=h==="/",f=u+(m?2:1);if(!/[a-zA-Z]/.test(n[f]??"")){o=u+1;continue}let v=f;for(;f<n.length&&Jo(n[f]);)f++;let w=e.slice(v,f),p={},b=!1;for(;f<n.length&&n[f]!==">";){let x=n[f];if(x==="/"){b=!0,f++;continue}if(x<=" "){f++;continue}b=!1;let D=f;for(;f<n.length&&(Jo(n[f])||n[f]===\'"\'||n[f]==="\'")&&n[f]!=="=";)f++;let S=e.slice(D,f);for(;f<n.length&&n[f]<=" ";)f++;let A="";if(n[f]==="="){for(f++;f<n.length&&n[f]<=" ";)f++;let y=n[f];if(y===\'"\'||y==="\'"){let W=n.indexOf(y,f+1);A=n.slice(f+1,W<0?n.length:W),f=W<0?n.length:W+1}else{let W=f;for(;f<n.length&&n[f]>" "&&n[f]!==">";)f++;A=n.slice(W,f)}}S&&!(S in p)&&(p[S]=Fn(A)),f===D&&f++}if(f>=n.length){l(u),s=n.length;break}if(l(u),o=s=f+1,m){d(w);continue}ua.has(w)&&d("p");let E={tag:w,attrs:p,children:[],parent:i,start:r++,end:0};if(E.excl=ha.has(w)||_n(E)||"data-pagefind-ignore"in p?E:i.excl,i.children.push(E),da.has(w)){let x=e.indexOf(`</${w}`,o),D=x<0?n.length:x;w==="title"&&E.children.push(n.slice(o,D));let S=x<0?-1:n.indexOf(">",x);o=s=S<0?n.length:S+1,E.end=r;continue}!la.has(w)&&!b?(i=E,a.set(w,(a.get(w)??0)+1)):E.end=r}for(l(n.length);i!==t;)c();return t.end=r,t}function*ae(n){let t=[...n.children].reverse();for(;t.length;){let e=t.pop();if(typeof e!="string"){yield e;for(let i=e.children.length-1;i>=0;i--)t.push(e.children[i])}}}var _n=n=>n.attrs["aria-hidden"]==="true"||"hidden"in n.attrs||n.tag==="template";function Yt(n,t){let e="",i=[n];for(;i.length;){let o=i.pop();if(typeof o=="string"){e+=Fn(o);continue}if(!(o!==n&&(_n(o)||fa.has(o.tag)||o.tag==="script"||o.tag==="style"||t!=null&&t(o)))){o.tag==="br"&&(e+=" ");for(let s=o.children.length-1;s>=0;s--)i.push(o.children[s])}}return e.replace(/[\\s\xA0]+/g," ").trim()}var ma=600;function ga(n){for(let t=n.parent,e=0;t&&e<4;t=t.parent,e++)if(t.attrs.role==="doc-endnotes"||"data-footnotes"in t.attrs||/(?:^|\\s)footnotes(?:\\s|$)/.test(t.attrs.class??""))return!0;return!1}function ba(n){return Yt(n,t=>t.tag==="a"&&(t.attrs.role==="doc-backlink"||t.children.length===1&&typeof t.children[0]=="string"&&/^\\s*\u21A9\\uFE0E?\\s*$/.test(Fn(t.children[0]))))}var Hn=(n,t)=>n.start<=t.start&&t.end<=n.end;function va(n,t){var i;let e=(i=n.parent)==null?void 0:i.excl;return!e||Hn(e,t)}var Pn=/^h([1-6])$/,ya=120;function Ye(n,t=200){if(n.length<=t)return n;let e=n.slice(0,t),i=e.lastIndexOf(" ");return`${(i>t*.6?e.slice(0,i):e).replace(/[\\s,;:.\u2013\u2014-]+$/,"")}\\u2026`}var Xe=n=>Ye(n,ya),wa=new Set(["p","li","dd","dt","td","th","blockquote","figcaption","caption","summary","pre"]);function We(n,t,e){for(let i of n){if(e!=null&&e(i))break;if(i.tag!=="p"||!va(i,t)||_n(i))continue;let o=Yt(i);if(o)return Ye(o)}return""}function Wt(n,t){for(let e of ae(n))if(t(e))return e}function Ea(n){let t=n.attrs["data-title"]??n.attrs["aria-label"]??n.attrs.title;if(t!=null&&t.trim())return Xe(t.replace(/\\s+/g," ").trim());let e=Wt(n,i=>i.tag==="figcaption"||i.tag==="caption"||i.tag==="summary"||"data-card-title"in i.attrs||"data-title"in i.attrs||Pn.test(i.tag))??Sa(n);return e?Xe(Yt(e)):""}var xa=n=>"data-component"in n.attrs||"data-type"in n.attrs||n.attrs.role==="note"||n.tag==="details"||n.tag==="figure"||n.tag.startsWith("db-");function Sa(n){let t=new Set;for(let e of ae(n)){if(e===n)continue;let i=e.parent;if(i&&i!==n&&(t.has(i)||xa(i))){t.add(e);continue}if(e.attrs["data-part"]==="title")return e}}var Aa=n=>{var t;return n.tag==="meta"&&((t=n.attrs["http-equiv"])==null?void 0:t.trim().toLowerCase())==="refresh"&&/[;,]\\s*url\\s*=/i.test(n.attrs.content??"")};function ts(n,t){var m;let e=pa(n);if(Wt(e,Aa))return;let i=Wt(e,f=>f.tag==="main")??e,o=Wt(i,f=>f.tag==="article"&&/(?:^|\\s)docs-prose(?:\\s|$)/.test(f.attrs.class??""))??i,s=Wt(i,f=>f.tag==="h1"),r=Wt(e,f=>f.tag==="title"),a=Xe(s&&Yt(s)||(r?Yt(r).split(" | ")[0].trim():"")),l=t==null?void 0:t.replace(/^#/,"");if(!l||l==="top"){let f=[...ae(o)],v=s?f.indexOf(s)+1:0;return{title:a,excerpt:We(f.slice(Math.max(0,v)),o),kind:"page"}}let c=Wt(e,f=>f.attrs.id===l);if(!c)return;let d=(m=Pn.exec(c.tag))==null?void 0:m[1];if(d==="1")return{title:a,excerpt:We(ae(o),o),kind:"page"};if(d){let f=c.parent??e,v=[...ae(f)],w=v.slice(v.indexOf(c)+1).filter(b=>!Hn(c,b)),p=Hn(o,c)?o:i;return{title:a,label:Xe(Yt(c)),excerpt:We(w,p,b=>{let E=Pn.exec(b.tag);return!!E&&Number(E[1])<=Number(d)}),kind:"heading"}}if(c.tag==="li"&&ga(c)){let f=ba(c);return f?{title:"",excerpt:Ye(f,ma),kind:"footnote"}:void 0}let u=We(ae(c),c),h=!u&&wa.has(c.tag)?Ye(Yt(c)):"";return{title:a,label:Ea(c),excerpt:u||h,kind:"target"}}var Ca="dogsbay:link-preview-load",ce=[".db-link-preview{position:fixed;z-index:60;box-sizing:border-box;max-width:min(22rem,calc(100vw - 16px));max-height:min(16rem,calc(100vh - 16px));overflow:hidden;padding:.75rem .875rem;","border:1px solid var(--border,#e4e4e7);border-radius:var(--radius,.5rem);background:var(--popover,#fff);color:var(--popover-foreground,#18181b);","box-shadow:0 8px 24px rgb(0 0 0/.14);font-size:.875rem;line-height:1.45;text-align:start}",".db-link-preview[hidden]{display:none}",".db-link-preview-title{margin:0;font-weight:600}",".db-link-preview-label{font-weight:500}",".db-link-preview-excerpt{margin:.375rem 0 0;color:var(--muted-foreground,#52525b)}",".db-link-preview[data-kind=footnote] .db-link-preview-excerpt{margin:0;color:inherit}","@media (prefers-reduced-motion:no-preference){.db-link-preview:not([hidden]){animation:db-link-preview-in .12s ease-out}}","@keyframes db-link-preview-in{from{opacity:0;transform:translateY(2px)}}"].join(""),Ae="db-link-preview",La="nav:not(.related-resources), aside, header, footer, h1, h2, h3, h4, h5, h6, [data-no-link-preview], [data-card], db-card, db-link-button",ka="div, p, h1, h2, h3, h4, h5, h6, img, svg, picture, figure, ul, ol, table",Ta=/\\.(?:pdf|zip|gz|tgz|tar|bz2|xz|7z|rar|png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff?|mp[34]|m4a|webm|ogg|wav|mov|avi|json|xml|csv|tsv|txt|ya?ml|md|epub|docx?|xlsx?|pptx?|odt|ods|exe|msi|dmg|pkg|deb|rpm|apk|iso|bin|wasm|js|mjs|css|map|woff2?|ttf|otf)$/i,Oa=8e6,le;async function es(n,t=!1){let e=new URL(location.origin),[i="/",o=""]=n.split("?");if(e.pathname=i,e.search=o,e.origin!==location.origin)return;let s=await fetch(e.href,{credentials:"same-origin",redirect:"manual",headers:{Accept:"text/html"}});if(s.type==="opaqueredirect"||s.status>=300&&s.status<400)return!t&&!i.endsWith("/")?es(`${i}/${o?`?${o}`:""}`,!0):void 0;if(!(!s.ok||!/html/i.test(s.headers.get("content-type")??"text/html")))return s.text()}function Ra(n,t="article.docs-prose",e=location){if(!n.closest(t)||n.closest(La)||n.hasAttribute("download")||n.getAttribute("aria-hidden")==="true"||n.hasAttribute("data-variant")||n.querySelector(ka))return;let i=n.getAttribute("href");if(!i)return;let o;try{o=new URL(i,e.href)}catch{return}let s=o.protocol==="http:"||o.protocol==="https:",r=o.protocol===e.protocol&&o.host!==""&&o.host===e.host;if(!(s?o.origin===e.origin:r)||Ta.test(o.pathname))return;let a;try{a=o.hash?decodeURIComponent(o.hash.slice(1)):void 0}catch{a=o.hash.slice(1)}if(!(o.pathname===e.pathname&&o.search===e.search&&(!a||a==="top")))return o.hash="",{url:o,...a?{id:a}:{}}}function Da(){var e;let n=document;if(n.dbLinkPreviewCss===ce||n.dbLinkPreviewCss===void 0&&((e=document.getElementById(`${Ae}-style`))==null?void 0:e.textContent)===ce)return;try{let i=new CSSStyleSheet;i.replaceSync(ce),document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],n.dbLinkPreviewSheet=!0,n.dbLinkPreviewCss=ce;return}catch{}let t=document.createElement("style");t.id=`${Ae}-style`,t.textContent=ce,document.head.append(t),n.dbLinkPreviewCss=ce}var Ma=n=>!!n&&typeof n=="object"&&typeof n.title=="string";function ns(n={}){var at;le==null||le(),(at=document.dbLinkPreviewStop)==null||at.call(document);let t=n.content??"article.docs-prose",e=n.delay??500,i=location;if(n.base!==void 0)try{i=new URL(String(n.base))}catch{throw new TypeError(`initLinkPreviews: base must be an absolute URL, not ${String(n.base)}`)}let o=()=>i.href.split("#")[0];n.style!==!1&&Da();let s=new Map,r=new Map,a=0,l=new Map,c,d,u=0,h,m,f=null,v,w,p,b=document.createElement("div");b.id=Ae,b.className="db-link-preview",b.setAttribute("role","tooltip"),b.hidden=!0;let E=document.createElement("p");E.className="db-link-preview-title";let x=document.createElement("p");x.className="db-link-preview-excerpt",b.append(E,x);let D=M=>{let P=M.href,z=s.get(P);return z?(s.delete(P),s.set(P,z)):(z=(async()=>{if(n.load)return n.load(M);let U=!1,Q,V=new CustomEvent(Ca,{cancelable:!0,detail:{url:P,respond(dt){U=!0,Q=dt}}});if(document.dispatchEvent(V),U||V.defaultPrevented)return Q;if(M.href===o())return document.documentElement.outerHTML;if(!(M.origin!==location.origin||location.origin==="null"))return es(M.pathname+M.search)})().then(U=>{let Q=typeof U=="string"?U.length:0;r.set(P,Q),a+=Q;for(let[V]of s){if(a<=Oa||V===P)break;a-=r.get(V)??0,r.delete(V),s.delete(V);for(let dt of l.keys())dt.startsWith(V)&&l.delete(dt)}return U},()=>{s.delete(P)}),s.set(P,z)),z},S=()=>{clearTimeout(v),clearTimeout(w),c=void 0,d=void 0,h==null||h.disconnect(),h=void 0,m&&(f===null?m.removeAttribute("aria-describedby"):m.setAttribute("aria-describedby",f),m=void 0,b.hidden=!0)},A=M=>{let P=[...M.getClientRects()],z=(p&&P.find(pt=>p.y>=pt.top&&p.y<=pt.bottom))??P[0]??M.getBoundingClientRect(),U=b.offsetWidth,Q=b.offsetHeight,V=8,dt=z.bottom+V,kt=dt+Q<=window.innerHeight-V||z.top-V-Q<V?dt:z.top-V-Q,ue=Math.max(V,Math.min(z.left,window.innerWidth-U-V));b.style.top=`${Math.round(kt)}px`,b.style.left=`${Math.round(ue)}px`},y=(M,P)=>{if(!(c!==M||!M.isConnected)){if(E.textContent="",E.append(P.title||P.label||""),P.label&&P.title){let z=document.createElement("span");z.className="db-link-preview-label",z.textContent=` \\u203A ${P.label}`,E.append(z)}E.hidden=!E.textContent,x.textContent=P.excerpt,x.hidden=!P.excerpt,b.dataset.kind=P.kind,!(!E.textContent&&!P.excerpt)&&(b.isConnected||document.body.append(b),m!==M&&(f=M.getAttribute("aria-describedby"),M.setAttribute("aria-describedby",f?`${f} ${Ae}`:Ae),m=M),b.hidden=!1,A(M),h??(h=new MutationObserver(()=>{m&&!m.isConnected&&S()})),h.observe(document.body,{childList:!0,subtree:!0}))}},W=(M,P)=>{if(c===M)return;let z=Ra(M,t,i);z&&(S(),c=M,d=P,v=setTimeout(async()=>{let U=await D(z.url);if(c!==M)return;let Q=`${z.url.href}#${z.id??""}`,V=l.get(Q);V===void 0&&!l.has(Q)&&(V=Ma(U)?U:typeof U=="string"?ts(U,z.id):void 0,typeof U=="string"&&l.set(Q,V)),V&&y(M,V)},e))},$=M=>M instanceof Element?M.closest("a[href]"):null,G=M=>{if(p={x:M.clientX,y:M.clientY},M.pointerType==="touch")return;if(b.contains(M.target)){clearTimeout(w);return}let P=$(M.target);P&&!(d==="focus"&&P===c)&&(clearTimeout(w),W(P,"pointer"))},C=M=>{if(M.pointerType==="touch"||!c||d!=="pointer")return;let P=M.relatedTarget;P&&(c.contains(P)||b.contains(P))||(clearTimeout(w),w=setTimeout(S,m?200:0))},ot=[[document,"pointerover",G],[document,"pointerout",C],[b,"pointerleave",(M=>C(M))],[document,"focusin",M=>{let P=$(M.target);if(!P)return;let z=!0;try{z=P.matches(":focus-visible")}catch{}z&&(p=void 0,u=performance.now(),W(P,"focus"))}],[document,"focusout",M=>{c&&(M.target===c||c.contains(M.target))&&S()}],[document,"keydown",M=>{M.key==="Escape"&&(c||m)&&S()}],[document,"pointerdown",M=>{b.contains(M.target)||S()},{capture:!0}],[document,"touchstart",()=>S(),{passive:!0,capture:!0}],[window,"scroll",()=>{if(d==="focus"&&c){m===c&&A(c);return}performance.now()-u<100||S()},{passive:!0,capture:!0}],[window,"resize",S,{passive:!0}],[window,"pagehide",S],[document,"astro:before-swap",S]];for(let[M,P,z,U]of ot)M.addEventListener(P,z,U);let it=()=>{S();for(let[M,P,z,U]of ot)M.removeEventListener(P,z,U);b.remove(),le===it&&(le=void 0),document.dbLinkPreviewStop===it&&(document.dbLinkPreviewStop=void 0)};return le=it,document.dbLinkPreviewStop=it,it}function Ge(n){return!/^[\\x00-\\x20]*([a-z][a-z0-9+.-]*:|[\\\\/])/i.test(n.replace(/[\\t\\n\\r]/g,""))}var Qe=new Map,Ia=15e3;function $n(n){let t=Qe.get(n);if(!t){let e=new Promise((i,o)=>{let s=document.createElement("script");s.src=n;let r=setTimeout(()=>a(),Ia),a=()=>{clearTimeout(r),s.onload=s.onerror=null,Qe.get(n)===e&&Qe.delete(n),o(new Error(`could not load ${n}`))};s.onload=()=>{clearTimeout(r),i()},s.onerror=a,document.head.appendChild(s)});Qe.set(n,t=e)}return t}function Na(n){document.querySelectorAll("[data-component=\'theme-toggle\']").forEach(t=>{let e=()=>t.setAttribute("aria-pressed",String(document.documentElement.classList.contains("dark")));e(),t.addEventListener("click",()=>{let i=!document.documentElement.classList.contains("dark");document.documentElement.classList.toggle("dark",i);try{localStorage.setItem("theme",i?"dark":"light")}catch{}e()},{signal:n})})}function Ha(n){document.addEventListener("click",async t=>{var o,s,r,a;let e=t.target.closest("[data-copy-markdown]");if(!e)return;let i=(((o=document.getElementById("db-page-markdown"))==null?void 0:o.textContent)??"").replace(/<\\\\\\/(script)/gi,"</$1").replace(/<\\\\!--/g,"<!--");try{await navigator.clipboard.writeText(i);let l=(s=e.dataset).label??(s.label=e.textContent??"");e.textContent="Copied",clearTimeout(Number(e.dataset.timer)),e.dataset.timer=String(setTimeout(()=>e.textContent=l,1500))}catch{}(a=(r=e.closest("db-popover"))==null?void 0:r.close)==null||a.call(r,"close-press")},{signal:n})}function Pa(n,t){let e=document.body.dataset.page??"index.html";document.querySelectorAll("select[data-db-switch]").forEach(i=>{i.addEventListener("change",async()=>{var a;let o=i.selectedOptions[0];if(!o||o.disabled||!o.hasAttribute("value"))return;let s=o.dataset.prefix??"",r=i.value;if(o.hasAttribute("data-link")){(Ge(r)||/^https?:\\/\\//i.test(r))&&(location.href=r);return}if(!(!Ge(r)||!Ge(s))){if(i.dataset.dbSwitch==="product"){location.href=r;return}try{let l=s?`${n}${s}/`:n;await $n(`${l}_dogsbay/pages.js`);let c=(a=window.__DOGSBAY_PAGES__)==null?void 0:a[s];location.href=c&&!c.includes(e)?`${l}index.html`:r}catch{location.href=r}}},{signal:t})})}function Fa(n){document.addEventListener("click",t=>{var i;let e=t.target.closest("a.db-anchor");!e||location.protocol==="file:"||(i=navigator.clipboard)==null||i.writeText(e.href).catch(()=>{})},{signal:n})}var Ce=new Map,Je=new Set;function Ze(){for(let[n,t]of Ce)n.isConnected||(It(n),t.abort(),Ce.delete(n));for(let n of Je)n.isConnected||It(n)}function _a(n,t){let e=EventTarget.prototype,i=e.addEventListener,o=0;e.addEventListener=function(s,r,a){o++;let l=typeof a=="object"?a.signal:void 0;i.call(this,s,r,typeof a=="object"?{...a,signal:l?AbortSignal.any([l,n]):n}:{capture:a===!0,signal:n})};try{t()}finally{e.addEventListener=i}return o}function $a(){Ze(),document.querySelectorAll("[data-component=\'sidebar-provider\']").forEach(n=>{if(Ce.has(n)||Je.has(n))return;let t=new AbortController;_a(t.signal,()=>Sn(n))?Ce.set(n,t):n.querySelector("[data-component=\'sidebar\']")&&Je.add(n)}),document.removeEventListener("keydown",Ze),document.addEventListener("keydown",Ze)}var de;function za(n){if(n===!1||!document.querySelector("main[data-link-previews]"))return;let t=typeof n=="object"?n:{};if(!(location.protocol==="file:"&&t.base===void 0))try{return ns({delay:t.delay,base:t.base,load:t.load,content:"main[data-link-previews] article.docs-prose"})}catch(e){console.warn("dogsbay: link previews not started:",e);return}}function zn(n={}){var l;de==null||de.unmount();let t=new AbortController,{signal:e}=t,i=document.body,o=i.dataset.unitRoot??"",s=i.dataset.siteRoot??"";if(n.nav!==void 0){window.__DOGSBAY_NAV__=n.nav;for(let c of document.querySelectorAll("db-nav-tree")){let d=c.querySelector(":scope > [data-part=\'list\']");d&&!d.querySelector("[data-part=\'item\']")&&((l=c.parentNode)==null||l.insertBefore(c,c.nextSibling))}}$a(),n.theme!==!1&&Na(e),Ha(e),n.switchers!==!1&&Pa(s,e),Fa(e),n.search!==!1&&(Ko({unitRoot:o,siteRoot:s,prefix:i.dataset.prefix??"",loadScript:$n,signal:e}),jo({unitRoot:o,siteRoot:s,prefix:i.dataset.prefix??"",loadScript:$n,signal:e})),Wo(e),Qo(e);let r=za(n.linkPreviews);r&&e.addEventListener("abort",r,{once:!0});let a={unmount(){if(!e.aborted){t.abort();for(let c of[...Ce.keys(),...Je])It(c);Ze(),de===a&&(de=void 0)}}};return de=a}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>zn()):zn();})();\n';
|
|
4179
|
+
var CLIENT_FILE = "dogsbay-a3d0c1a91e.js";
|
|
4180
|
+
var SSG_VERSION = "0.2.0-beta.186";
|
|
4181
|
+
var THEME_TEMPLATES = { "layouts/blank.html": '{# A page without the sidebar or table of contents: landing pages, splash pages, 404. -#}\n<!doctype html>\n<html lang="{{ page.lang }}" dir="{{ page.dir }}"{% if site.colorMode == "dark" %} class="dark"{% endif %}{% if has.crowdedHeader %} data-header="crowded"{% endif %}{{ htmlAttrs }}>\n<head>\n{% include "partials/head.html" %}\n</head>\n<body class="bg-background text-foreground antialiased" data-unit-root="{{ paths.unit }}" data-site-root="{{ paths.site }}" data-prefix="{{ page.prefix }}" data-page="{{ page.out }}"{{ bodyAttrs }}>\n{{ skipLink }}\n<div class="relative flex min-h-svh w-full flex-col bg-background">\n{{ announcementBar }}\n{% include "partials/header.html" %}\n<main id="db-content" class="min-w-0 flex-1 px-6 py-8 outline-none lg:px-12" tabindex="-1"{% if linkPreviews %} data-link-previews{% endif %}>\n<div class="mx-auto {{ widthClass }}">\n{{ banner }}{{ versionBadge }}{{ h1 }}{{ byline }}{{ lede }}{{ hero }}{{ metaStrip }}{{ tocTop }}\n<article class="docs-prose">\n{{ content }}\n</article>\n{% include "partials/footer.html" %}\n</div>\n</main>\n</div>\n{{ searchDialog }}\n{{ scripts }}\n</body>\n</html>\n', "layouts/docs.html": '{# The docs layout: a port of @dogsbay/docs-layout DocsLayout.astro. -#}\n<!doctype html>\n<html lang="{{ page.lang }}" dir="{{ page.dir }}"{% if site.colorMode == "dark" %} class="dark"{% endif %}{% if has.crowdedHeader %} data-header="crowded"{% endif %}{{ htmlAttrs }}>\n<head>\n{% include "partials/head.html" %}\n</head>\n<body class="bg-background text-foreground antialiased" data-unit-root="{{ paths.unit }}" data-site-root="{{ paths.site }}" data-prefix="{{ page.prefix }}" data-page="{{ page.out }}"{{ bodyAttrs }}>\n{{ skipLink }}\n<div class="group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar" data-component="sidebar-provider" style="--sidebar-width: 16rem; --sidebar-width-icon: 3rem;">\n{{ sidebar }}\n<div class="relative flex w-full min-w-0 flex-1 flex-col bg-background">\n{{ announcementBar }}\n{% include "partials/header.html" %}\n<div class="flex min-w-0">\n<main id="db-content" class="min-w-0 flex-1 px-6 py-8 outline-none lg:px-12" tabindex="-1"{% if linkPreviews %} data-link-previews{% endif %}>\n<div class="mx-auto {{ widthClass }}">\n{{ banner }}{{ breadcrumb }}{{ pageActionsInline }}{{ versionBadge }}{{ h1 }}{{ byline }}{{ lede }}{{ hero }}{{ metaStrip }}{{ tocTop }}\n<article class="docs-prose">\n{{ content }}\n</article>\n{% include "partials/footer.html" %}\n</div>\n</main>\n{{ tocRail }}\n</div>\n</div>\n</div>\n{{ searchDialog }}\n{{ scripts }}\n</body>\n</html>\n', "partials/announcement.html": `{#- The site's announcement bar (site.announcement), as DocsLayout's AnnouncementBar.astro: a band above the
|
|
4166
4182
|
header in the callout colours of its tone. A closeable one is closed and remembered by <db-announcement>,
|
|
4167
4183
|
and the head script hides a closed one before first paint. Context: announcement = {id, key (what a close is
|
|
4168
4184
|
stored under, as the head meta), html (inline Markdown, rendered), toneClass, closeable} or "". -#}
|
|
@@ -4198,6 +4214,14 @@ var THEME_TEMPLATES = { "layouts/blank.html": '{# A page without the sidebar or
|
|
|
4198
4214
|
{%- if post.updated %}<span>· {{ t("updated") }} <time datetime="{{ post.updatedDatetime }}">{{ post.updated }}</time></span>{% endif -%}
|
|
4199
4215
|
</div>
|
|
4200
4216
|
{%- endif -%}
|
|
4217
|
+
`, "partials/choice-select.html": `{#- A reader choice's selector in the header (plans/reader-choices.md): <db-choice-select> (@dogsbay/elements/choices)
|
|
4218
|
+
around a native <select> of the choice's values, the default selected; the choices script selects the reader's.
|
|
4219
|
+
Context: choice = {name, label, options: [{value, label, selected}]}. -#}
|
|
4220
|
+
<db-choice-select name="{{ choice.name }}" class="db-choice"><select aria-label="{{ choice.label }}" class="rounded-md border border-border bg-background px-2 py-1.5 text-sm">
|
|
4221
|
+
{%- for o in choice.options -%}
|
|
4222
|
+
<option value="{{ o.value }}"{% if o.selected %} selected{% endif %}>{{ o.label }}</option>
|
|
4223
|
+
{%- endfor -%}
|
|
4224
|
+
</select></db-choice-select>
|
|
4201
4225
|
`, "partials/footer-columns.html": `{#- The site's footer columns (footer.columns), as DocsFooter.astro: titled link lists that wrap on narrow screens.
|
|
4202
4226
|
Context: footerColumns = [{title, links: [{label, href, external}]}]. -#}
|
|
4203
4227
|
{%- if footerColumns | length -%}
|
|
@@ -4211,7 +4235,7 @@ var THEME_TEMPLATES = { "layouts/blank.html": '{# A page without the sidebar or
|
|
|
4211
4235
|
{%- endfor -%}
|
|
4212
4236
|
</nav>
|
|
4213
4237
|
{%- endif -%}
|
|
4214
|
-
`, "partials/footer-links.html": '{#- Footer links: llms.txt and "Powered by". Context: llmsHref, poweredBy, t, icons. -#}\n{%- if llmsHref %}<a class="hover:text-foreground" data-llms-link href="{{ llmsHref }}">{{ t("llmsTxt") }}</a>{% endif -%}\n{%- if poweredBy %}<a class="inline-flex items-center gap-1.5 hover:text-foreground" data-powered-by href="https://dogsbay.ai" rel="noopener">{{ icons.layers }}{{ t("poweredBy") }}</a>{% endif -%}\n', "partials/footer-meta.html": '{#- Edit link and last-updated date. Context: editUrl, lastUpdated (already formatted), t. -#}\n{%- if editUrl or lastUpdated -%}\n<div class="mb-6 flex flex-wrap items-center gap-4 text-sm text-muted-foreground">\n{%- if editUrl %}<a class="inline-flex items-center gap-1 hover:text-foreground" href="{{ editUrl }}" rel="noopener">{{ t("edit") }}</a>{% endif -%}\n{%- if lastUpdated %}<span data-last-updated>{{ t("lastUpdated") | replace("{date}", lastUpdated, 1) }}</span>{% endif -%}\n</div>\n{%- endif -%}\n', "partials/footer.html": '<footer class="mt-12 border-t pt-6">\n{{ footerMeta }}\n{{ pager }}\n{{ footerColumns }}\n<div class="mt-6 flex flex-wrap items-center justify-between gap-2 border-t pt-4 text-xs text-muted-foreground">\n<span>{{ copyrightHtml }}</span>\n<div class="flex flex-wrap items-center gap-4">{% if has.footerSocial %}<div class="flex items-center gap-1">{{ footerSocial }}</div>{% endif %}{{ footerLinks }}</div>\n</div>\n</footer>\n', "partials/head.html": '<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<title>{{ page.documentTitle }}</title>\n{% if page.description %}<meta name="description" content="{{ page.description }}">\n{% endif %}<meta name="generator" content="dogsbay-ssg">\n{{ headLinks }}\n<link rel="stylesheet" href="{{ paths.unit }}_dogsbay/site.css">\n<link rel="icon" href="{{ paths.site }}_dogsbay/assets/favicon.svg" type="image/svg+xml">\n{{ themeBoot }}\n{{ head }}\n', "partials/header-links.html": `{#- The site's header links (header.links), as DocsLayout's HeaderLinks.astro: links, and one-level dropdowns
|
|
4238
|
+
`, "partials/footer-links.html": '{#- Footer links: llms.txt and "Powered by". Context: llmsHref, poweredBy, t, icons. -#}\n{%- if llmsHref %}<a class="hover:text-foreground" data-llms-link href="{{ llmsHref }}">{{ t("llmsTxt") }}</a>{% endif -%}\n{%- if poweredBy %}<a class="inline-flex items-center gap-1.5 hover:text-foreground" data-powered-by href="https://dogsbay.ai" rel="noopener">{{ icons.layers }}{{ t("poweredBy") }}</a>{% endif -%}\n', "partials/footer-meta.html": '{#- Edit link and last-updated date. Context: editUrl, lastUpdated (already formatted), t. -#}\n{%- if editUrl or lastUpdated -%}\n<div class="mb-6 flex flex-wrap items-center gap-4 text-sm text-muted-foreground">\n{%- if editUrl %}<a class="inline-flex items-center gap-1 hover:text-foreground" href="{{ editUrl }}" rel="noopener">{{ t("edit") }}</a>{% endif -%}\n{%- if lastUpdated %}<span data-last-updated>{{ t("lastUpdated") | replace("{date}", lastUpdated, 1) }}</span>{% endif -%}\n</div>\n{%- endif -%}\n', "partials/footer.html": '<footer class="mt-12 border-t pt-6">\n{{ footerMeta }}\n{{ pager }}\n{{ footerColumns }}\n<div class="mt-6 flex flex-wrap items-center justify-between gap-2 border-t pt-4 text-xs text-muted-foreground">\n<span>{{ copyrightHtml }}</span>\n<div class="flex flex-wrap items-center gap-4">{% if has.footerSocial %}<div class="flex items-center gap-1">{{ footerSocial }}</div>{% endif %}{{ footerLinks }}</div>\n</div>\n</footer>\n', "partials/head.html": '<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n{{ choicesBoot }}<title>{{ page.documentTitle }}</title>\n{% if page.description %}<meta name="description" content="{{ page.description }}">\n{% endif %}<meta name="generator" content="dogsbay-ssg">\n{{ headLinks }}\n<link rel="stylesheet" href="{{ paths.unit }}_dogsbay/site.css">\n<link rel="icon" href="{{ paths.site }}_dogsbay/assets/favicon.svg" type="image/svg+xml">\n{{ themeBoot }}\n{{ head }}\n', "partials/header-links.html": `{#- The site's header links (header.links), as DocsLayout's HeaderLinks.astro: links, and one-level dropdowns
|
|
4215
4239
|
as <details> lists, so every link is in the HTML (crawlers, readers without JavaScript).
|
|
4216
4240
|
Context: headerLinks = [{label, href, current, items}] (items: [{label, href, current}], empty for a link;
|
|
4217
4241
|
href relative to the page; current "page" or ""), layout = "bar" (the header, from lg) or "list" (the sidebar, below lg),
|
|
@@ -4390,42 +4414,52 @@ var THEME_TEMPLATES = { "layouts/blank.html": '{# A page without the sidebar or
|
|
|
4390
4414
|
<p class="text-sm text-muted-foreground">{{ t("noTaggedPages") }}</p>
|
|
4391
4415
|
{%- endif %}
|
|
4392
4416
|
</section>
|
|
4393
|
-
`, "partials/toc-popover.html": '{#- Table of contents in a header popover. -#}\n{%- set toc_label = t("toc") -%}\n{%- set toc_title = "" -%}\n<details class="dba-toc-popover relative" data-toc-popover><summary class="cursor-pointer list-none rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground">{{ toc_label }}</summary><div class="absolute right-0 z-50 mt-1 max-h-[70vh] w-64 overflow-y-auto rounded-md border bg-background p-3 shadow-md">\n{%- include "partials/toc.html" -%}\n</div></details>\n', "partials/toc-rail.html": '{#- Table of contents in a right-hand rail, with a visible title. -#}\n{%- set toc_label = t("toc") -%}\n{%- set toc_title = toc_label -%}\n<div class="sticky top-12 hidden h-[calc(100vh-3rem)] w-56 shrink-0 overflow-y-auto border-l p-4 lg:block">\n{%- include "partials/toc.html" -%}\n</div>\n', "partials/toc-top.html": '{#- Table of contents above the content, collapsed. -#}\n{%- set toc_label = t("toc") -%}\n{%- set toc_title = "" -%}\n<details class="dba-toc-top not-prose mb-6 rounded-md border" data-toc-top><summary class="cursor-pointer list-none px-3 py-2 text-sm font-medium text-muted-foreground">{{ toc_label }}</summary><div class="border-t px-3 py-2">\n{%- include "partials/toc.html" -%}\n</div></details>\n', "partials/toc.html":
|
|
4394
|
-
|
|
4417
|
+
`, "partials/toc-popover.html": '{#- Table of contents in a header popover. -#}\n{%- set toc_label = t("toc") -%}\n{%- set toc_title = "" -%}\n<details class="dba-toc-popover relative" data-toc-popover><summary class="cursor-pointer list-none rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground">{{ toc_label }}</summary><div class="absolute right-0 z-50 mt-1 max-h-[70vh] w-64 overflow-y-auto rounded-md border bg-background p-3 shadow-md">\n{%- include "partials/toc.html" -%}\n</div></details>\n', "partials/toc-rail.html": '{#- Table of contents in a right-hand rail, with a visible title. -#}\n{%- set toc_label = t("toc") -%}\n{%- set toc_title = toc_label -%}\n<div class="sticky top-12 hidden h-[calc(100vh-3rem)] w-56 shrink-0 overflow-y-auto border-l p-4 lg:block">\n{%- include "partials/toc.html" -%}\n</div>\n', "partials/toc-top.html": '{#- Table of contents above the content, collapsed. -#}\n{%- set toc_label = t("toc") -%}\n{%- set toc_title = "" -%}\n<details class="dba-toc-top not-prose mb-6 rounded-md border" data-toc-top><summary class="cursor-pointer list-none px-3 py-2 text-sm font-medium text-muted-foreground">{{ toc_label }}</summary><div class="border-t px-3 py-2">\n{%- include "partials/toc.html" -%}\n</div></details>\n', "partials/toc.html": `{#- The table-of-contents link list (DocsToc.astro), shared by toc-top, toc-rail and toc-popover.
|
|
4418
|
+
Context: headings = [{depth, id, text, when}] (when: a variant heading's data-when-* attributes, safe), toc_label (aria-label), toc_title (visible heading, may be empty). -#}
|
|
4419
|
+
<db-toc offset="64"><nav class="text-sm" aria-label="{{ toc_label }}">
|
|
4420
|
+
{%- if toc_title %}<div class="text-xs font-semibold uppercase text-muted-foreground" aria-hidden="true">{{ toc_title }}</div>{% endif -%}
|
|
4421
|
+
<ul class="mt-2 space-y-1">
|
|
4422
|
+
{%- for h in headings -%}
|
|
4423
|
+
<li{% if h.when is defined %}{{ h.when }}{% endif %}><a href="#{{ h.id }}" data-toc-link data-toc-slug="{{ h.id }}" class="block py-0.5 text-muted-foreground transition-colors hover:text-foreground data-[active]:font-medium data-[active]:text-foreground" style="padding-left:{{ (h.depth - 2) * 0.75 }}rem">{{ h.text }}</a></li>
|
|
4424
|
+
{%- endfor -%}
|
|
4425
|
+
</ul></nav></db-toc>
|
|
4426
|
+
{#- An included partial keeps its final newline (keepTrailingNewline); this strips it, since toc-top/rail/popover place the list inline. -#}
|
|
4427
|
+
`, "partials/version-badge.html": '{#- The version badge above the title (Docusaurus\'s DocVersionBadge), on versions with `badge: true`.\n Context: versionBadge = "Version: 3.33" (the text, worded and filled in), or empty. -#}\n{%- if versionBadge -%}\n<div class="not-prose mb-3" data-version-badge><span class="inline-flex items-center rounded-md border border-border px-2 py-0.5 text-xs font-medium text-muted-foreground">{{ versionBadge }}</span></div>\n{%- endif -%}\n' };
|
|
4428
|
+
var CLIENT_CANDIDATES = ['""', '""}', '"&"', '")}', '"./",', '"Also', '"\\\\$&")).join("|")})', '"\\\\$&")}"', '"s"}', '"{n}").replace("{n}",', "#db-content", "#q=", "([^", "(a", "(hashed", "(here", "(inFragment()", "(index.ts)", "(the", "({n})", "./", "./elements.js", "./highlight.js", "./image-zoom.js", "./mount.js", "./pagefind.js", "./search-facets.js", "./search-scope.js", "./search.js", "./targets.js", ".medium-zoom-image--opened", "/g,", "1.0", "1.x", ":scope", "<!--", "</", "</$1", "<\\/", "<db-combobox", "<db-dialog", "<main", "<main>", "<script>", "===", "=>", "??", "?h=<terms>", "?q=", "?|\\S*)/gi,", "@dogsbay/elements/choices", "@dogsbay/elements/db-accordion", "@dogsbay/elements/db-announcement", "@dogsbay/elements/db-code-block", "@dogsbay/elements/db-combobox", "@dogsbay/elements/db-details-sheet", "@dogsbay/elements/db-dialog", "@dogsbay/elements/db-nav-tree", "@dogsbay/elements/db-popover", "@dogsbay/elements/db-select", "@dogsbay/elements/db-tabs", "@dogsbay/elements/db-toc", "@dogsbay/elements/db-tooltip", "@dogsbay/elements/link-previews", "@dogsbay/search/facets", "@dogsbay/search/format", "@dogsbay/search/query", "@dogsbay/ssg/client", "@dogsbay/ui/sidebar/sidebar.ts", "All", "Also", "Clear", "Copied", "DOMContentLoaded", "Enter", "Filter", "Gizmo", "More", "No", "Platform", "Product", "Search", "See", "String(missing))}", "This", "URL(siteRoot", "[^", "[aria-hidden='true']", "[contenteditable]", "[data-clear-filters]", "[data-clear-highlights]", "[data-component='sidebar']", "[data-component='sidebar-provider']", "[data-component='theme-toggle']", "[data-copy-markdown]", "[data-db-search-facets]", "[data-db-search-input]", "[data-db-search-list]", "[data-db-search-page]", "[data-db-search-status]", "[data-part='item']", "[data-part='list']", "[data-part='listbox']", "\\\\$&", "_dogsbay", "_dogsbay/nav.js", "_dogsbay/site.js", "`about:srcdoc`,", "`base`,", "`blob:`,", "`file:`)", "a-b", "a.db-anchor", "abort", "about:srcdoc", "accent-primary", "all", "allow-same-origin", "alone.", "and", "api", "applies", "are", "aria-label", "aria-pressed", "aria-pressed:bg-primary", "aria-pressed:text-primary-foreground", "arrive", "article", "article.docs-prose", "base", "base:", "be", "before", "block", "border", "border-border", "border-l", "both", "build.navMode:", "builtin", "button", "button,", "by", "category", "center", "change", "checkbox", "click", "client", "close-press", "config", "could", "cursor-pointer", "dark", "data", "data-choices", "data-facets", "data-link", "data-link-previews", "data-link-previews>", "data-part", "db-content", "db-dialog:open", "db-nav-tree", "db-page-markdown", "db-popover", "db-search", "db-search-hl", "default,", "delay", "dialog", "disabled", "display,", "div", "docs.js", "document", "document.baseURI).pathname}", "dogsbay:", "dogsbay:link-preview-load", "each", "else", "except", "facet", "facets", "false", "fieldset", "file:", "filter", 'filter="none"', "filter=name:value", "flex", "flex-1", "flex-wrap", "fn", "folder", "font-medium", "font-semibold", "for", "form", "frame,", "from", "fullNavLimit", "function", "gap-1", "gap-2", "gi", "giu", "group", "h-8", "hidden", "highlights", "host", "hover:bg-accent", "hover:text-foreground", "https:", 'id="db-search">', 'img[data-zoomable="true"]', "in", 'in"}', "index", "index.html", "inline-flex", "inline>", "input", "input,", "input[data-facet-name]", "inst", "install", "install/aws", "installing", "items-center", "its", "javascript:", "keydown", "label", "last", "later", "legend", "li", "light", "line-clamp-2", "link", "linkPreviews", "linkPreviews:", "list", "load", "loaded.", "loading", "loads.", "main[data-link-previews]", "mark", "mark,", "mb-1", "mb-2", "mb-3", "mb-4", "medium-zoom", "medium-zoom:closed", "medium-zoom:opened", "ml-4", "mount()", "mounts", "mt-1", "mt-4", "mx-3", "name\\0value", "names", "none", "not", "not-prose", "object", "once", "only", "option", "others", "own", "own,", "p-3", "p=", "page", "page,", "page.html#id", "page.html?h=terms#id", "pagefind", "parameters:", "passes", "pb-2", "pb-3", "platform", "preview", "previews", "product", "product,", "product.", "product;", "products", "products:", "puts", "px-2", "px-2.5", "px-3", "py-0.5", "py-1", "py-1.5", "py-2", "query", "query:", "readDataScript:", "reader", "results", "results,", "role", "rounded", "rounded-full", "rounded-md", "scope", "scope;", "scope=", "script", "script,", "search", "search.html", "searched", "section", "select,", "select[data-db-switch]", "signal", "site", "size-3.5", "space-y-0.5", "span", "ssg.search:", "started:", "string", "style,", "submit", "tag", "taxonomies", "text-center", "text-muted-foreground", "text-sm", "text-xs", "text/html", "textarea,", "that", "the", "them,", "theme", "they", "this", "to", "tracking-wide", "transition-colors", "true", "truncate", "ul", "unit", "unmount()", "uppercase", "v:", "v=", "value", "values", "version", "versions", "w-full", "way", "when", "window.__DOGSBAY_NAV__", "with", "{n}", "{}", "||"];
|
|
4395
4429
|
var SITE_NOTICES = `Third-party software in this site's _dogsbay/ files (dogsbay.js, site.css) and pages
|
|
4396
4430
|
|
|
4397
4431
|
========================================================================
|
|
4398
|
-
@dogsbay/elements@0.2.0-beta.
|
|
4432
|
+
@dogsbay/elements@0.2.0-beta.186 (MIT)
|
|
4399
4433
|
https://github.com/dogsbay/dogsbay.git
|
|
4400
4434
|
|
|
4401
4435
|
Licensed under MIT; the package ships no licence file.
|
|
4402
4436
|
|
|
4403
4437
|
========================================================================
|
|
4404
|
-
@dogsbay/primitives@0.2.0-beta.
|
|
4438
|
+
@dogsbay/primitives@0.2.0-beta.186 (MIT)
|
|
4405
4439
|
https://github.com/dogsbay/dogsbay.git
|
|
4406
4440
|
|
|
4407
4441
|
Licensed under MIT; the package ships no licence file.
|
|
4408
4442
|
|
|
4409
4443
|
========================================================================
|
|
4410
|
-
@dogsbay/render-html@0.2.0-beta.
|
|
4444
|
+
@dogsbay/render-html@0.2.0-beta.186 (MIT)
|
|
4411
4445
|
https://github.com/dogsbay/dogsbay.git
|
|
4412
4446
|
|
|
4413
4447
|
Licensed under MIT; the package ships no licence file.
|
|
4414
4448
|
|
|
4415
4449
|
========================================================================
|
|
4416
|
-
@dogsbay/search@0.2.0-beta.
|
|
4450
|
+
@dogsbay/search@0.2.0-beta.186 (MIT)
|
|
4417
4451
|
https://github.com/dogsbay/dogsbay.git
|
|
4418
4452
|
|
|
4419
4453
|
Licensed under MIT; the package ships no licence file.
|
|
4420
4454
|
|
|
4421
4455
|
========================================================================
|
|
4422
|
-
@dogsbay/site-files@0.2.0-beta.
|
|
4456
|
+
@dogsbay/site-files@0.2.0-beta.186 (MIT)
|
|
4423
4457
|
https://github.com/dogsbay/dogsbay.git
|
|
4424
4458
|
|
|
4425
4459
|
Licensed under MIT; the package ships no licence file.
|
|
4426
4460
|
|
|
4427
4461
|
========================================================================
|
|
4428
|
-
@dogsbay/ui@0.2.0-beta.
|
|
4462
|
+
@dogsbay/ui@0.2.0-beta.186 (MIT)
|
|
4429
4463
|
https://github.com/dogsbay/dogsbay.git
|
|
4430
4464
|
|
|
4431
4465
|
Licensed under MIT; the package ships no licence file.
|
|
@@ -9101,6 +9135,13 @@ var PROVIDERS = {
|
|
|
9101
9135
|
perplexity: { label: "Open in Perplexity", url: "https://www.perplexity.ai/search?q={q}" },
|
|
9102
9136
|
gemini: { label: "Open in Gemini", url: "https://gemini.google.com/app?q={q}" }
|
|
9103
9137
|
};
|
|
9138
|
+
function attrString(a) {
|
|
9139
|
+
return Object.entries(a).map(([k, v]) => ` ${k}="${esc(v)}"`).join("");
|
|
9140
|
+
}
|
|
9141
|
+
function labelOf(c, v) {
|
|
9142
|
+
const l = Object.hasOwn(c.entries, v) ? c.entries[v]?.label : void 0;
|
|
9143
|
+
return typeof l === "string" ? l : v;
|
|
9144
|
+
}
|
|
9104
9145
|
function linkIconBodyAttrs(icons) {
|
|
9105
9146
|
const { tokens, style } = linkIconAttrs(icons);
|
|
9106
9147
|
return tokens ? ` data-link-icons="${esc(tokens)}" style="${esc(style ?? "")}"` : "";
|
|
@@ -9213,7 +9254,8 @@ async function composePage(p, cfg, templates) {
|
|
|
9213
9254
|
t: callable(([key2]) => t(String(key2))),
|
|
9214
9255
|
// Every key present (possibly empty), so partials run under strictTemplates.
|
|
9215
9256
|
breadcrumbs: p.breadcrumb.map((b) => ({ label: b.label, href: b.href })),
|
|
9216
|
-
|
|
9257
|
+
// A heading in a variant (reader choices): its item is shown for the same values, by the choices CSS
|
|
9258
|
+
headings: p.headings.map((h) => ({ depth: h.depth, id: h.id, text: h.text, when: safe(attrString(whenAttrs(h.when))) })),
|
|
9217
9259
|
tags: p.tags,
|
|
9218
9260
|
tagChips: p.tagChips ?? [],
|
|
9219
9261
|
badges: p.badges ?? [],
|
|
@@ -9232,7 +9274,13 @@ async function composePage(p, cfg, templates) {
|
|
|
9232
9274
|
};
|
|
9233
9275
|
const region = (name, extra) => templates.region(`partials/${name}.html`, extra ? { ...base, ...extra } : base);
|
|
9234
9276
|
const switcher2 = (kind, options, label) => region("switcher", { switcher: { kind, label, options: options.map((o) => ({ label: o.label, href: o.href, current: o.current, prefix: o.prefix, note: o.note, disabled: o.disabled, link: o.link })) } });
|
|
9235
|
-
const
|
|
9277
|
+
const switches = !!p.choices && Object.keys(p.choices.root).length > 0;
|
|
9278
|
+
const choiceSelects = switches ? (await Promise.all(
|
|
9279
|
+
p.choices.selects.map(
|
|
9280
|
+
(c) => region("choice-select", { choice: { name: c.name, label: c.label ?? c.name, options: c.values.map((v) => ({ value: v, label: labelOf(c, v), selected: v === c.default })) } })
|
|
9281
|
+
)
|
|
9282
|
+
)).map(String).join("") : "";
|
|
9283
|
+
const switchersHtml = String(await switcher2("product", p.products ?? [], t("product"))) + String(await switcher2("locale", p.locales, t("language"))) + String(await switcher2("version", p.versions, t("version"))) + choiceSelects;
|
|
9236
9284
|
const actionsInHeader = !!actions && (cfg.pageActions.placement !== "inline" || p.layout === "blank");
|
|
9237
9285
|
const headerLinkList = cfg.chrome.header.links;
|
|
9238
9286
|
const crowded = hasSidebar && headerLinkList.length > 0 && (switchersHtml.trim() !== "" || actionsInHeader);
|
|
@@ -9291,6 +9339,10 @@ async function composePage(p, cfg, templates) {
|
|
|
9291
9339
|
})) : "")
|
|
9292
9340
|
),
|
|
9293
9341
|
themeBoot: safe(headBoot(cfg)),
|
|
9342
|
+
// First in <head>, before the stylesheet: the reader's choice is on <html> before anything is drawn
|
|
9343
|
+
choicesBoot: safe(switches ? `<script>${CHOICES_HEAD_SCRIPT}</script>
|
|
9344
|
+
` : ""),
|
|
9345
|
+
htmlAttrs: safe(switches ? attrString(p.choices.root) : ""),
|
|
9294
9346
|
head: "",
|
|
9295
9347
|
// Tells the client which search to use (src/client/search.ts).
|
|
9296
9348
|
bodyAttrs: safe((p.servedAt ? ` data-served-root="${esc(p.servedAt)}"` : "") + (cfg.search && cfg.searchEngine !== "builtin" ? ` data-search="${cfg.searchEngine}"` : "") + linkIconBodyAttrs(cfg.linkIcons) + (cfg.imageZoom ? ` data-image-zoom="${esc(JSON.stringify({ background: cfg.imageZoom.background, margin: cfg.imageZoom.margin, scrollOffset: cfg.imageZoom.scrollOffset }))}"` : "")),
|
|
@@ -10445,7 +10497,8 @@ function extractText(tree) {
|
|
|
10445
10497
|
let s = "";
|
|
10446
10498
|
for (const n of a) {
|
|
10447
10499
|
if (n.type === "text" || n.type === "code") s += n.text;
|
|
10448
|
-
else if (n.type === "link" || n.type === "highlight") s += inl(n.children);
|
|
10500
|
+
else if (n.type === "link" || n.type === "highlight" || n.type === "when") s += inl(n.children);
|
|
10501
|
+
else if (n.type === "choice-value") s += n.form === "link" && n.children?.length ? inl(n.children) : n.text ?? "";
|
|
10449
10502
|
else if (n.type === "kbd") s += n.keys.join(" ");
|
|
10450
10503
|
else if (n.type === "badge") s += n.text;
|
|
10451
10504
|
else if (n.type === "image") s += n.alt ?? "";
|
|
@@ -11370,6 +11423,21 @@ function decodedFragment(f) {
|
|
|
11370
11423
|
var LAYOUT_IDS = ["db-content", "db-sidebar", "db-search", "db-search-results", "db-toc-title", "db-page-markdown"];
|
|
11371
11424
|
var generatedOut = (path, cfg) => outFileFor(path, true, cfg.linkStyle);
|
|
11372
11425
|
var MERGED_FILES = /* @__PURE__ */ new Set(["_headers", "_redirects"]);
|
|
11426
|
+
function onceBroken(r, link2) {
|
|
11427
|
+
return (href) => {
|
|
11428
|
+
const n = r.broken.length;
|
|
11429
|
+
const v = link2(href);
|
|
11430
|
+
for (const b of r.broken.splice(n)) if (!r.broken.includes(b)) r.broken.push(b);
|
|
11431
|
+
return v;
|
|
11432
|
+
};
|
|
11433
|
+
}
|
|
11434
|
+
function siteFixedChoices(cfg) {
|
|
11435
|
+
const r = fixedChoices(cfg.choices, cfg.attributes);
|
|
11436
|
+
return { ...r, messages: new Set(r.problems.map((p) => p.message)) };
|
|
11437
|
+
}
|
|
11438
|
+
var mayUseFor = (text2) => /:when\b/.test(text2) && /\bfor\s*=/.test(text2) || FOR_TABS.test(text2);
|
|
11439
|
+
var FOR_TABS = /\b(?:sync-?key|sync|group)\s*=\s*["']?for\b/i;
|
|
11440
|
+
var NO_CHOICE = { tree: [], used: {}, links: {}, varies: false, problems: [] };
|
|
11373
11441
|
function reporter(warnings, problems) {
|
|
11374
11442
|
return (code, text2, at = {}) => {
|
|
11375
11443
|
const t = detach(text2);
|
|
@@ -11603,6 +11671,9 @@ async function buildWith(input, hooks) {
|
|
|
11603
11671
|
const state = { redirects: [], notes: /* @__PURE__ */ new Map(), navCache: navCache(), written: /* @__PURE__ */ new Set(), stubs: [], pageOut: /* @__PURE__ */ new Map(), sitemaps: /* @__PURE__ */ new Map(), supplied: /* @__PURE__ */ new Set(), hostFiles: /* @__PURE__ */ new Map(), homeForward: /* @__PURE__ */ new Map(), searchPages: /* @__PURE__ */ new Map(), notFound: /* @__PURE__ */ new Map(), crossLinked: /* @__PURE__ */ new Set(), usedMath: false, mathUnits: /* @__PURE__ */ new Set(), diagrams: diagramStore(input, cfg), scan: hooks.keep || hooks.lazy ? new ScanCache() : void 0, parseCache: input.parseCacheBytes === 0 ? false : new ParseCache(input.parseCacheBytes ?? DEFAULT_PARSE_CACHE_BYTES), templateBudget: templateBudget(input.untrusted === true, input.templateMs), dataCache: new DataCache(input.dataCacheBytes ?? DEFAULT_DATA_CACHE_BYTES) };
|
|
11604
11672
|
for (const w of cfg.chrome.warnings) report("config", `[config] ${w}`);
|
|
11605
11673
|
for (const w of cfg.styleWarnings) report("config", `[config] ${w}; the default applies`);
|
|
11674
|
+
for (const w of theme.choiceWarnings) report("theme", `[theme] ${w}`);
|
|
11675
|
+
for (const p of cfg.choiceProblems) report("choice", `[choice] dogsbay.config.yml: ${p.message}`, { file: "dogsbay.config.yml" });
|
|
11676
|
+
for (const p of siteFixedChoices(cfg).problems) report("choice", `[choice] dogsbay.config.yml attributes: ${p.message}`, { file: "dogsbay.config.yml", message: p.message });
|
|
11606
11677
|
state.logo = await emitLogo(cfg, input, emit, report);
|
|
11607
11678
|
for (const r of cfg.redirects) {
|
|
11608
11679
|
const from = sitePath(r.from, cfg.basePath);
|
|
@@ -12229,7 +12300,7 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12229
12300
|
menus.set(m.source, kept);
|
|
12230
12301
|
continue;
|
|
12231
12302
|
}
|
|
12232
|
-
const { menuError, sourceMenu } = await import("./menu-
|
|
12303
|
+
const { menuError, sourceMenu } = await import("./menu-W7ZXME4A.mjs");
|
|
12233
12304
|
const reads = /* @__PURE__ */ new Map();
|
|
12234
12305
|
const projectText = async (p) => {
|
|
12235
12306
|
const c = input.files.get(p);
|
|
@@ -12260,6 +12331,50 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12260
12331
|
}
|
|
12261
12332
|
return a;
|
|
12262
12333
|
};
|
|
12334
|
+
const fixedBy = /* @__PURE__ */ new Map();
|
|
12335
|
+
const fixedOf = (p) => {
|
|
12336
|
+
const key2 = named.length ? namespaceOf(p) : "";
|
|
12337
|
+
let f = fixedBy.get(key2);
|
|
12338
|
+
if (!f) {
|
|
12339
|
+
const r = fixedChoices(cfg.choices, attributesOf(p));
|
|
12340
|
+
fixedBy.set(key2, f = r.fixed);
|
|
12341
|
+
const src = sourceOf(p);
|
|
12342
|
+
for (const pr of r.problems) if (!siteFixed.messages.has(pr.message)) warn("choice", `content.sources (${src.path}): ${pr.message}`, { file: "dogsbay.config.yml", message: pr.message });
|
|
12343
|
+
}
|
|
12344
|
+
return f;
|
|
12345
|
+
};
|
|
12346
|
+
const siteFixed = siteFixedChoices(cfg);
|
|
12347
|
+
const declaresChoices = Object.keys(cfg.choices).length > 0;
|
|
12348
|
+
const chooseTree = (tree, source, text2, audience = "web") => {
|
|
12349
|
+
const none = { tree, used: {}, links: {}, varies: false, problems: [] };
|
|
12350
|
+
if (!declaresChoices && !/:when\b|choice-(?:value|select)|\{choices\}/.test(text2) && !FOR_TABS.test(text2)) return none;
|
|
12351
|
+
const r = resolveChoices(tree, { choices: cfg.choices, fixed: fixedOf(source), for: audience });
|
|
12352
|
+
const varies = hasWhen(r.tree) || Object.keys(r.used).length > 0 || Object.keys(r.links).length > 0;
|
|
12353
|
+
return { tree: r.tree, used: r.used, links: r.links, varies, problems: r.problems };
|
|
12354
|
+
};
|
|
12355
|
+
const choiceRoot = (source, used, links, link2, fixed = source !== void 0 ? fixedOf(source) : {}) => declaresChoices ? choiceRootAttributes(cfg.choices, fixed, { used, links, link: link2 }) : {};
|
|
12356
|
+
const whenLabel = (when) => Object.entries(when).map(([name, values]) => {
|
|
12357
|
+
const c = Object.hasOwn(cfg.choices, name) ? cfg.choices[name] : void 0;
|
|
12358
|
+
return values.map((v) => c && Object.hasOwn(c.entries, v) && typeof c.entries[v].label === "string" ? c.entries[v].label : v).join(", ");
|
|
12359
|
+
}).join("; ");
|
|
12360
|
+
const inNamespace = (ns, href) => {
|
|
12361
|
+
if (!ns || !href.startsWith("/")) return href;
|
|
12362
|
+
const t2 = [{ type: "paragraph", inline: [{ type: "link", href, children: [] }] }];
|
|
12363
|
+
rewriteContentRefs(t2, [ns], globalPrefixes);
|
|
12364
|
+
return t2[0].inline[0].href;
|
|
12365
|
+
};
|
|
12366
|
+
const choiceLinksInNamespace = (tree, ns) => {
|
|
12367
|
+
const walk = (n) => {
|
|
12368
|
+
if (Array.isArray(n)) return n.forEach(walk);
|
|
12369
|
+
if (!n || typeof n !== "object") return;
|
|
12370
|
+
const o = n;
|
|
12371
|
+
if (o.type === "choice-value" && o.form === "link" && typeof o.text === "string") o.text = inNamespace(ns, o.text);
|
|
12372
|
+
if (o.inline) walk(o.inline);
|
|
12373
|
+
if (o.children) walk(o.children);
|
|
12374
|
+
};
|
|
12375
|
+
walk(tree);
|
|
12376
|
+
};
|
|
12377
|
+
const pageChoices = (root2, fixed) => Object.keys(root2).length ? { root: root2, selects: unfixedChoices(cfg.choices, fixed) } : void 0;
|
|
12263
12378
|
const resolvedKeys = /* @__PURE__ */ new Map();
|
|
12264
12379
|
const resolvedKey = (p) => {
|
|
12265
12380
|
const key2 = named.length ? namespaceOf(p) : "";
|
|
@@ -12531,7 +12646,7 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12531
12646
|
const m = `${w.file}${w.line ? `:${w.line}` : ""}: [${w.code}] ${w.message}`;
|
|
12532
12647
|
warn("menu", m, { file: w.file, ...w.line ? { line: w.line } : {}, message: `[${w.code}] ${w.message}` });
|
|
12533
12648
|
}
|
|
12534
|
-
const { menuNav } = await import("./menu-
|
|
12649
|
+
const { menuNav } = await import("./menu-W7ZXME4A.mjs");
|
|
12535
12650
|
const pageLabel = (slug) => {
|
|
12536
12651
|
const info = infos.get(ns ? prefixSlug([ns], slug) : slug);
|
|
12537
12652
|
return info && !info.untitled ? info.title : void 0;
|
|
@@ -12774,7 +12889,7 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12774
12889
|
let mdBudget = llmsFull ? input.llmsFullChars ?? 2e6 : 0;
|
|
12775
12890
|
let zipBudget = llmsFull ? input.llmsFullZipBytes ?? 6e6 : 0;
|
|
12776
12891
|
const linkToken = `dblnk${Math.random().toString(36).slice(2, 10)}`;
|
|
12777
|
-
const copyMarkdowns = (tree, info, outs) => {
|
|
12892
|
+
const copyMarkdowns = (tree, info, outs, varies = false, full = []) => {
|
|
12778
12893
|
const md = cfg.mdMirrorLinks === "md";
|
|
12779
12894
|
const copy = markdownFile(info.out, cfg.linkStyle);
|
|
12780
12895
|
const own = md ? copy : info.out;
|
|
@@ -12799,24 +12914,28 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12799
12914
|
values.push(inHtml ? vs.map(escAttr) : vs);
|
|
12800
12915
|
return `${linkToken}${values.length - 1}z`;
|
|
12801
12916
|
};
|
|
12802
|
-
const
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12917
|
+
const write = (t2) => {
|
|
12918
|
+
const restore = rewriteTreeLinks(t2, { link: via("link"), asset: via("asset") });
|
|
12919
|
+
try {
|
|
12920
|
+
return treeToDogsbayMd(t2, cfg.markdownStyle);
|
|
12921
|
+
} finally {
|
|
12922
|
+
restore();
|
|
12923
|
+
}
|
|
12924
|
+
};
|
|
12925
|
+
const text2 = write(tree);
|
|
12926
|
+
const variants = varies && full.some(Boolean) ? write(variantTree(tree, cfg.choices)) : void 0;
|
|
12927
|
+
const textOf = (i) => variants !== void 0 && full[i] ? variants : text2;
|
|
12928
|
+
if (!values.length) return outs.map((_, i) => textOf(i));
|
|
12810
12929
|
const token = new RegExp(`${linkToken}(\\d+)z`, "g");
|
|
12811
|
-
return outs.map((_, i) =>
|
|
12930
|
+
return outs.map((_, i) => textOf(i).replace(token, (_m, n) => values[Number(n)][i]));
|
|
12812
12931
|
};
|
|
12813
|
-
const pageMarkdowns = (tree, info, full) => {
|
|
12932
|
+
const pageMarkdowns = (tree, info, full, varies = false) => {
|
|
12814
12933
|
if (!full) return { markdown: copyMarkdowns(tree, info, [info.out])[0] };
|
|
12815
12934
|
if (siteBase(cfg)) {
|
|
12816
|
-
const [markdown3] = copyMarkdowns(tree, info, [info.out]);
|
|
12817
|
-
return { markdown: markdown3, full: markdown3 };
|
|
12935
|
+
const [markdown3, f2] = varies ? copyMarkdowns(tree, info, [info.out, info.out], true, [false, true]) : copyMarkdowns(tree, info, [info.out]);
|
|
12936
|
+
return { markdown: markdown3, full: f2 ?? markdown3 };
|
|
12818
12937
|
}
|
|
12819
|
-
const [markdown2, f] = copyMarkdowns(tree, info, [info.out, "llms-full.txt"]);
|
|
12938
|
+
const [markdown2, f] = copyMarkdowns(tree, info, [info.out, "llms-full.txt"], varies, [false, true]);
|
|
12820
12939
|
return { markdown: markdown2, full: f };
|
|
12821
12940
|
};
|
|
12822
12941
|
const brokenCounts = /* @__PURE__ */ new Map();
|
|
@@ -12828,7 +12947,7 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12828
12947
|
if (info.virtual) {
|
|
12829
12948
|
const tree2 = structuredClone(info.virtual.tree);
|
|
12830
12949
|
const { markdown: markdown3, full: full2 } = cfg.mdMirror ? pageMarkdowns(tree2, info, mdBudget > 0 || zipBudget > 0) : { markdown: "", full: void 0 };
|
|
12831
|
-
return { raw: markdown3, fm: { title: info.title }, bodySrc: markdown3, pre: { text: markdown3 }, tree: tree2, warned, markdown: markdown3, full: full2, diagnostics };
|
|
12950
|
+
return { raw: markdown3, fm: { title: info.title }, bodySrc: markdown3, pre: { text: markdown3 }, tree: tree2, warned, markdown: markdown3, full: full2, diagnostics, choice: NO_CHOICE, agents: void 0, agentsKeys: void 0 };
|
|
12832
12951
|
}
|
|
12833
12952
|
const raw = await read(info.source);
|
|
12834
12953
|
let fm = {};
|
|
@@ -12922,6 +13041,10 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12922
13041
|
t2 = now();
|
|
12923
13042
|
let tree;
|
|
12924
13043
|
let parsedOk = true;
|
|
13044
|
+
let choice = NO_CHOICE;
|
|
13045
|
+
let agents;
|
|
13046
|
+
let agentsVary = false;
|
|
13047
|
+
let agentsKeys = { used: {}, links: {} };
|
|
12925
13048
|
const inMember = scoped(info.source);
|
|
12926
13049
|
const printed = mode.dataLines && "variables" in pre && pre.variables ? pre.variables.map((v, index) => {
|
|
12927
13050
|
const d = v.definition;
|
|
@@ -12931,6 +13054,18 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12931
13054
|
try {
|
|
12932
13055
|
const parsed = trees ? { tree: await trees.tree(info.source, pre.text), diagnostics: void 0 } : dogsbayMdToTree(pre.text, mode.diagnostics || mode.dataLines ? { ...mode.diagnostics ? { diagnostics: true } : {}, ...mode.dataLines ? { sourceLines: true, sourceMap: map, ...printed ? { variablePlaces: printed } : {} } : {} } : void 0);
|
|
12933
13056
|
tree = parsed.tree;
|
|
13057
|
+
if (mayUseFor(pre.text)) ({ tree: agents, varies: agentsVary, ...agentsKeys } = chooseTree(structuredClone(tree), info.source, pre.text, "agents"));
|
|
13058
|
+
choice = chooseTree(tree, info.source, pre.text);
|
|
13059
|
+
tree = choice.tree;
|
|
13060
|
+
if (choice.problems.length) {
|
|
13061
|
+
const lined = choice.problems.some((pr) => pr.line === void 0) ? chooseTree(dogsbayMdToTree(pre.text, { sourceLines: true }).tree, info.source, pre.text).problems : choice.problems;
|
|
13062
|
+
for (const pr of lined) {
|
|
13063
|
+
const line = pr.line !== void 0 ? pageLine(pr.line) : void 0;
|
|
13064
|
+
const shown = pr.line !== void 0 && line === void 0 ? `${pr.message} (line ${pr.line} of the page after templating)` : pr.message;
|
|
13065
|
+
warn2("choice", shown, line);
|
|
13066
|
+
if (mode.diagnostics) (diagnostics ??= []).push({ code: "choice", message: detach(shown), ...line ? { line } : {} });
|
|
13067
|
+
}
|
|
13068
|
+
}
|
|
12934
13069
|
if (mode.dataLines) {
|
|
12935
13070
|
assignBlockIds(tree);
|
|
12936
13071
|
const page = prefix + info.out;
|
|
@@ -12943,19 +13078,26 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
12943
13078
|
if (mode.diagnostics) (diagnostics ??= []).push({ code: "parse", message: detach(`parse error: ${e.message}`) });
|
|
12944
13079
|
tree = [{ type: "html", html: `<pre>${esc(pre.text)}</pre>` }];
|
|
12945
13080
|
parsedOk = false;
|
|
13081
|
+
agents = void 0;
|
|
13082
|
+
agentsVary = false;
|
|
12946
13083
|
}
|
|
12947
13084
|
phase.parse = (phase.parse ?? 0) + now() - t2;
|
|
12948
13085
|
const ns = named.length ? namespaceOf(info.source) : "";
|
|
12949
13086
|
if (ns) rewriteContentRefs(dropMount(tree, mounts), [ns], globalPrefixes);
|
|
13087
|
+
if (ns && choice.varies) choiceLinksInNamespace(tree, ns);
|
|
13088
|
+
if (ns && agents) rewriteContentRefs(dropMount(agents, mounts), [ns], globalPrefixes);
|
|
13089
|
+
if (ns && agents && agentsVary) choiceLinksInNamespace(agents, ns);
|
|
12950
13090
|
t2 = now();
|
|
12951
13091
|
const unresolved = await resolvePlaceholders(tree, resolvers, { source: info.source, read, has: hasContent, scope: scoped(info.source) });
|
|
12952
|
-
|
|
12953
|
-
|
|
13092
|
+
const agentsUnresolved = agents ? await resolvePlaceholders(agents, resolvers, { source: info.source, read, has: hasContent, scope: scoped(info.source) }) : void 0;
|
|
13093
|
+
if (unresolved || agentsUnresolved) {
|
|
13094
|
+
for (const m of unresolved ?? []) warn2("placeholder", m);
|
|
13095
|
+
for (const m of agentsUnresolved ?? []) if (!unresolved?.includes(m)) warn2("placeholder", m);
|
|
12954
13096
|
phase.resolve = (phase.resolve ?? 0) + now() - t2;
|
|
12955
13097
|
}
|
|
12956
13098
|
const keep = mdBudget > 0 || zipBudget > 0;
|
|
12957
|
-
const { markdown: markdown2, full } = !cfg.mdMirror ? { markdown: "", full: void 0 } : parsedOk ? pageMarkdowns(tree, info, keep) : { markdown: pre.text, full: keep ? pre.text : void 0 };
|
|
12958
|
-
return { raw, fm, bodySrc, pre, tree, warned, markdown: markdown2, full, diagnostics };
|
|
13099
|
+
const { markdown: markdown2, full } = !cfg.mdMirror ? { markdown: "", full: void 0 } : parsedOk ? pageMarkdowns(agents ?? tree, info, keep, agents ? agentsVary : choice.varies) : { markdown: pre.text, full: keep ? pre.text : void 0 };
|
|
13100
|
+
return { raw, fm, bodySrc, pre, tree, warned, markdown: markdown2, full, diagnostics, choice, agents, agentsKeys };
|
|
12959
13101
|
};
|
|
12960
13102
|
const heldBy = (p) => p.raw.length + (p.markdown !== p.raw && p.markdown !== p.pre.text ? p.markdown.length : 0) + (p.full !== void 0 && p.full !== p.markdown ? p.full.length : 0);
|
|
12961
13103
|
const pagesOpt = Math.floor(input.highlightAhead?.pages ?? 24);
|
|
@@ -13137,7 +13279,7 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
13137
13279
|
const h1Text = hasH1 ? inlineText(tree[0].inline) : void 0;
|
|
13138
13280
|
const title = isTemplated(str2(fm.title) ?? "") ? h1Text && !isTemplated(h1Text) ? h1Text : info.title : str2(fm.title) ?? h1Text ?? info.title;
|
|
13139
13281
|
const description = isTemplated(str2(fm.description) ?? "") ? info.description : str2(fm.description);
|
|
13140
|
-
input.onPageBuilt?.({ slug: [unit.prefix, info.slug].filter(Boolean).join("/"), unit: unit.prefix, source: srcOf(info), contentPath: info.source, text: raw, title, frontmatter: fm, tree });
|
|
13282
|
+
input.onPageBuilt?.({ slug: [unit.prefix, info.slug].filter(Boolean).join("/"), unit: unit.prefix, source: srcOf(info), contentPath: info.source, text: raw, title, frontmatter: fm, tree, ...got.agents ? { agentsTree: got.agents } : {} });
|
|
13141
13283
|
if (isReplaced) return;
|
|
13142
13284
|
if (post && hasH1) {
|
|
13143
13285
|
tree = tree.slice(1);
|
|
@@ -13146,6 +13288,7 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, reads),
|
|
|
13146
13288
|
const txt = post || search ? extractText(tree) : void 0;
|
|
13147
13289
|
if (post) blog.setMinutes(info.slug, readingMinutes(`${txt.headings.join(" ")} ${txt.body}`.split(/\s+/).filter(Boolean).length));
|
|
13148
13290
|
let body = renderBlocks(tree, ctx);
|
|
13291
|
+
const choices = pageChoices(choiceRoot(info.source, got.choice.used, got.choice.links, onceBroken(resolver, (h) => resolver.link(inNamespace(named.length ? namespaceOf(info.source) : "", h)))), fixedOf(info.source));
|
|
13149
13292
|
const unloaded = (highlighter.cacheStats().unloaded ?? 0) - unloadedBefore;
|
|
13150
13293
|
if (unloaded) warnPage(info, "highlight", `${unloaded} code block(s) rendered without highlighting: their grammar was not loaded before the page rendered`);
|
|
13151
13294
|
const postHead = post ? postHeader(post, lang, t_, (src) => resolver.asset(src)) : void 0;
|
|
@@ -13167,6 +13310,12 @@ ${body}`;
|
|
|
13167
13310
|
state.usedMath = true;
|
|
13168
13311
|
state.mathUnits.add(unit.prefix);
|
|
13169
13312
|
}
|
|
13313
|
+
if (got.agents) {
|
|
13314
|
+
rewriteTreeLinks(got.agents, { link: onceBroken(resolver, resolver.link), asset: onceBroken(resolver, resolver.asset) })();
|
|
13315
|
+
const keys = got.agentsKeys;
|
|
13316
|
+
if (Object.keys(keys.links).length) choiceRoot(info.source, keys.used, keys.links, onceBroken(resolver, (h) => resolver.link(inNamespace(named.length ? namespaceOf(info.source) : "", h))));
|
|
13317
|
+
got.agents = void 0;
|
|
13318
|
+
}
|
|
13170
13319
|
if (resolver.crossed) state.crossLinked.add(prefix + info.out);
|
|
13171
13320
|
for (const b of resolver.broken) brokenCounts.has(b) ? brokenCounts.set(b, brokenCounts.get(b) + 1) : brokenCounts.set(detach(b), 1);
|
|
13172
13321
|
phase.render = (phase.render ?? 0) + now() - t;
|
|
@@ -13211,6 +13360,7 @@ ${body}`;
|
|
|
13211
13360
|
homeHref,
|
|
13212
13361
|
headings: ctx.headings,
|
|
13213
13362
|
toc: tocMode,
|
|
13363
|
+
choices,
|
|
13214
13364
|
...side,
|
|
13215
13365
|
breadcrumb: [
|
|
13216
13366
|
{ label: t_("home"), href: homeHref },
|
|
@@ -13291,7 +13441,7 @@ ${body}`;
|
|
|
13291
13441
|
url: info.out,
|
|
13292
13442
|
section: chain.length > 1 ? chain[chain.length - 2].label : "",
|
|
13293
13443
|
excerpt: excerpt(description ?? txt.body),
|
|
13294
|
-
anchors: ctx.headings.filter((h) => h.depth <= 3).map((h) => [h.text, h.id]),
|
|
13444
|
+
anchors: ctx.headings.filter((h) => h.depth <= 3).map((h) => [h.when ? `${h.text} (${whenLabel(h.when)})` : h.text, h.id]),
|
|
13295
13445
|
...searchFilters(cfg.taxonomies, fm, info.slug, { product: unit.product, version: unit.version })
|
|
13296
13446
|
},
|
|
13297
13447
|
{ title, headings: txt.headings, body: txt.body, keywords: keywordsOf(fm) }
|
|
@@ -13305,6 +13455,9 @@ ${body}`;
|
|
|
13305
13455
|
const bookTable = recording(out);
|
|
13306
13456
|
const parts = [];
|
|
13307
13457
|
const tops = /* @__PURE__ */ new Map();
|
|
13458
|
+
const used = {};
|
|
13459
|
+
const links = {};
|
|
13460
|
+
let fixed;
|
|
13308
13461
|
for (const e of plan.entries) {
|
|
13309
13462
|
const info = e.slug ? infos.get(e.slug) : void 0;
|
|
13310
13463
|
let tree = [];
|
|
@@ -13312,6 +13465,9 @@ ${body}`;
|
|
|
13312
13465
|
if (info) {
|
|
13313
13466
|
const got = await prepare(info);
|
|
13314
13467
|
tree = structuredClone(got.tree);
|
|
13468
|
+
for (const [into, from2] of [[used, got.choice.used], [links, got.choice.links]]) for (const [name, keys] of Object.entries(from2)) for (const k of keys) (into[name] ??= /* @__PURE__ */ new Set()).add(k);
|
|
13469
|
+
const its = fixedOf(info.source);
|
|
13470
|
+
fixed = fixed === void 0 ? { ...its } : Object.fromEntries(Object.entries(fixed).filter(([k, v]) => its[k] === v));
|
|
13315
13471
|
if (sanitizing) tree = sanitizeTree(tree, () => {
|
|
13316
13472
|
});
|
|
13317
13473
|
if (hasChildLinks(tree)) childLinksIn(tree, info, out, false);
|
|
@@ -13332,6 +13488,10 @@ ${body}`;
|
|
|
13332
13488
|
if (cfg.math && !math && mayHaveMath(p.tree)) math = await loadMath();
|
|
13333
13489
|
if (!input.highlightPool || codeRequests(p.tree, !!diagrams).some((r) => !pageHighlighter.has(r.code, r.lang, r.opts))) await highlighter.load?.(highlightInputs(p.tree));
|
|
13334
13490
|
}
|
|
13491
|
+
const inBook = (ref, suffix) => {
|
|
13492
|
+
const hash = suffix.indexOf("#");
|
|
13493
|
+
return bookTarget(plan, ids, ref.slug, hash < 0 ? "" : suffix.slice(hash));
|
|
13494
|
+
};
|
|
13335
13495
|
let current = createResolver(bookTable, { source: "", out });
|
|
13336
13496
|
let from = "";
|
|
13337
13497
|
const ctx = createRenderContext({
|
|
@@ -13365,12 +13525,7 @@ ${body}`;
|
|
|
13365
13525
|
body += `<p class="dsb-open-as-page not-prose"><a href="${esc(hrefBetween(out, pageOut, cfg.linkStyle))}">${esc(t_("openAsPage"))}</a></p>
|
|
13366
13526
|
`;
|
|
13367
13527
|
from = p.slug;
|
|
13368
|
-
current = createResolver(bookTable, { source: p.info.source, out }, {
|
|
13369
|
-
pageLink: (ref, suffix) => {
|
|
13370
|
-
const hash = suffix.indexOf("#");
|
|
13371
|
-
return bookTarget(plan, ids, ref.slug, hash < 0 ? "" : suffix.slice(hash));
|
|
13372
|
-
}
|
|
13373
|
-
});
|
|
13528
|
+
current = createResolver(bookTable, { source: p.info.source, out }, { pageLink: inBook });
|
|
13374
13529
|
body += renderBlocks(p.tree, ctx);
|
|
13375
13530
|
p.tree = [];
|
|
13376
13531
|
p.own = /* @__PURE__ */ new Map();
|
|
@@ -13412,6 +13567,13 @@ ${body}`;
|
|
|
13412
13567
|
homeHref,
|
|
13413
13568
|
headings: ctx.headings,
|
|
13414
13569
|
toc: cfg.toc,
|
|
13570
|
+
choices: (() => {
|
|
13571
|
+
const lists = (m) => Object.fromEntries(Object.entries(m).map(([k, v]) => [k, [...v]]));
|
|
13572
|
+
const first = parts.find((p) => p.info)?.info;
|
|
13573
|
+
const r = createResolver(bookTable, { source: first?.source ?? "", out }, { pageLink: inBook });
|
|
13574
|
+
const ns = first && named.length ? namespaceOf(first.source) : "";
|
|
13575
|
+
return pageChoices(choiceRoot(void 0, lists(used), lists(links), (h) => r.link(inNamespace(ns, h)), fixed ?? {}), fixed ?? {});
|
|
13576
|
+
})(),
|
|
13415
13577
|
...side,
|
|
13416
13578
|
breadcrumb: [{ label: t_("home"), href: homeHref }, ...chain.map((n) => ({ label: n.label, href: n.slug != null ? hrefTo(n.slug) : void 0 }))].filter((c, i, a) => !(i > 0 && c.href === homeHref && a[0].href === homeHref)),
|
|
13417
13579
|
products: productOptions(unit, cfg, siteRoot, t_),
|
|
@@ -13528,14 +13690,16 @@ ${body}`;
|
|
|
13528
13690
|
const text2 = hasDataDirectives(shown) ? (await resolveDataDirectives(shown, pageDataOf(info.source))).text : shown;
|
|
13529
13691
|
const ns = named.length ? namespaceOf(info.source) : "";
|
|
13530
13692
|
let tree;
|
|
13693
|
+
let varies = false;
|
|
13531
13694
|
try {
|
|
13532
|
-
tree = dogsbayMdToTree(text2).tree;
|
|
13695
|
+
({ tree, varies } = chooseTree(dogsbayMdToTree(text2).tree, info.source, text2, "agents"));
|
|
13533
13696
|
} catch {
|
|
13534
13697
|
return text2;
|
|
13535
13698
|
}
|
|
13536
13699
|
if (ns) rewriteContentRefs(dropMount(tree, mounts), [ns], globalPrefixes);
|
|
13700
|
+
if (ns && varies) choiceLinksInNamespace(tree, ns);
|
|
13537
13701
|
if (PLACEHOLDER_DIRECTIVE.test(text2)) await resolvePlaceholders(tree, resolvers, { source: info.source, read, has: hasContent, scope: scoped(info.source) });
|
|
13538
|
-
return copyMarkdowns(tree, info, [siteBase(cfg) ? info.out : "llms-full.txt"])[0];
|
|
13702
|
+
return copyMarkdowns(tree, info, [siteBase(cfg) ? info.out : "llms-full.txt"], varies, [true])[0];
|
|
13539
13703
|
};
|
|
13540
13704
|
const order2 = fullOrder(llmsNav2, records);
|
|
13541
13705
|
await emit(prefix + "llms-full.txt", {
|
|
@@ -13708,6 +13872,8 @@ ${body}`;
|
|
|
13708
13872
|
homeHref,
|
|
13709
13873
|
headings: [],
|
|
13710
13874
|
toc: "off",
|
|
13875
|
+
// The reader's choice kept, and the header's selector, on the site's own pages too
|
|
13876
|
+
choices: pageChoices(choiceRoot(void 0, {}, {}, (h) => h, siteFixed.fixed), siteFixed.fixed),
|
|
13711
13877
|
...(({ order: _, ...side }) => side)(sidebarOf(void 0, [], out, hrefTo, homeHref)),
|
|
13712
13878
|
breadcrumb: [],
|
|
13713
13879
|
products: o.absolute ? [] : productOptions(unit, cfg, siteRoot, t_),
|
|
@@ -14064,7 +14230,7 @@ async function loadTheme(files, cfg, untrusted) {
|
|
|
14064
14230
|
const dir = cfg.themeDir ? cfg.themeDir + "/" : "";
|
|
14065
14231
|
const overrides = {};
|
|
14066
14232
|
let themeCss;
|
|
14067
|
-
const extraCss = [];
|
|
14233
|
+
const extraCss = Object.keys(cfg.choices).length ? [{ name: "choices", css: choicesCss(cfg.choices) }] : [];
|
|
14068
14234
|
for (const [path, c] of [...files].sort(([a], [b]) => a.localeCompare(b))) {
|
|
14069
14235
|
if (!dir || !path.startsWith(dir)) continue;
|
|
14070
14236
|
const rel = path.slice(dir.length);
|
|
@@ -14079,7 +14245,18 @@ async function loadTheme(files, cfg, untrusted) {
|
|
|
14079
14245
|
const c = files.get(p.replace(/^\.\//, ""));
|
|
14080
14246
|
if (c != null) extraCss.push({ name: p, css: await readText(c) });
|
|
14081
14247
|
}
|
|
14082
|
-
|
|
14248
|
+
const choiceWarnings = [];
|
|
14249
|
+
if (Object.keys(cfg.choices).length) {
|
|
14250
|
+
const need = [
|
|
14251
|
+
[/^layouts\/[^/]+\.html$/, "htmlAttrs", "<html \u2026{{ htmlAttrs }}>"],
|
|
14252
|
+
[/^partials\/head\.html$/, "choicesBoot", "{{ choicesBoot }} before its stylesheet"],
|
|
14253
|
+
[/^partials\/toc\.html$/, "h.when", "<li{% if h.when is defined %}{{ h.when }}{% endif %}>"]
|
|
14254
|
+
];
|
|
14255
|
+
for (const [rel, text2] of Object.entries(overrides)) {
|
|
14256
|
+
for (const [re, word, what] of need) if (re.test(rel) && !text2.includes(word)) choiceWarnings.push(`${dir}${rel} has no ${word}: the site declares reader choices, which need ${what} (docs/theming.md)`);
|
|
14257
|
+
}
|
|
14258
|
+
}
|
|
14259
|
+
return { templates: new ThemeTemplates(overrides, { strict: cfg.strictTemplates }), themeCss, extraCss, choiceWarnings };
|
|
14083
14260
|
}
|
|
14084
14261
|
var NOTE_WORDS = {
|
|
14085
14262
|
eol: /(?<![\p{L}\p{N}])(?:eol|end[- ]of[- ]life)(?![\p{L}\p{N}])/iu,
|
|
@@ -14331,7 +14508,7 @@ async function readMenus(root, cfg, files, exclude = []) {
|
|
|
14331
14508
|
if (s.from === "openapi") continue;
|
|
14332
14509
|
const path = s.nav ?? ["nav.yml", "nav.yaml", "nav.json"].map((f) => sourceRoot(s) + f).find((f) => files.has(f));
|
|
14333
14510
|
if (!path) continue;
|
|
14334
|
-
const { sourceMenu } = await import("./menu-
|
|
14511
|
+
const { sourceMenu } = await import("./menu-W7ZXME4A.mjs");
|
|
14335
14512
|
const read = async (p) => {
|
|
14336
14513
|
let c = files.get(p);
|
|
14337
14514
|
if (c === void 0) {
|
|
@@ -14422,6 +14599,7 @@ function removeStaleUnitFiles(out, previous, written) {
|
|
|
14422
14599
|
}
|
|
14423
14600
|
|
|
14424
14601
|
export {
|
|
14602
|
+
htmlIsText,
|
|
14425
14603
|
staticPathServed,
|
|
14426
14604
|
loadYaml,
|
|
14427
14605
|
versionsOf,
|